@brainfish-ai/web-tracker 0.0.22 → 0.0.24

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/tracker.js CHANGED
@@ -1,2 +1,2 @@
1
- var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r);!function(){"use strict";const e=Object.create(null);e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Object.keys(e).forEach(r=>{t[e[r]]=r});const r={type:"error",data:"parser error"},n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,o=({type:t,data:r},o,l)=>n&&r instanceof Blob?o?l(r):a(r,l):s&&(r instanceof ArrayBuffer||i(r))?o?l(r):a(new Blob([r]),l):l(e[t]+(r||"")),a=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function l(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let Hk=0;Hk<64;Hk++)u[h.charCodeAt(Hk)]=Hk;const d="function"==typeof ArrayBuffer,p=(e,n)=>{if("string"!=typeof e)return{type:"message",data:f(e,n)};const s=e.charAt(0);if("b"===s)return{type:"message",data:m(e.substring(1),n)};return t[s]?e.length>1?{type:t[s],data:e.substring(1)}:{type:t[s]}:r},m=(e,t)=>{if(d){const r=(e=>{let t,r,n,s,i,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);const c=new ArrayBuffer(o),h=new Uint8Array(c);for(t=0;t<a;t+=4)r=u[e.charCodeAt(t)],n=u[e.charCodeAt(t+1)],s=u[e.charCodeAt(t+2)],i=u[e.charCodeAt(t+3)],h[l++]=r<<2|n>>4,h[l++]=(15&n)<<4|s>>2,h[l++]=(3&s)<<6|63&i;return c})(e);return f(r,t)}return{base64:!0,data:e}},f=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,g=String.fromCharCode(30);function y(){return new TransformStream({transform(e,t){!function(e,t){n&&e.data instanceof Blob?e.data.arrayBuffer().then(l).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(l(e.data)):o(e,!1,e=>{c||(c=new TextEncoder),t(c.encode(e))})}(e,r=>{const n=r.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(r)})}})}let b;function w(e){return e.reduce((e,t)=>e+t.length,0)}function k(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)r[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function v(e){if(e)return function(e){for(var t in v.prototype)e[t]=v.prototype[t];return e}(e)}v.prototype.on=v.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},v.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<n.length;s++)if((r=n[s])===t||r.fn===t){n.splice(s,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},v.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var s=(r=r.slice(0)).length;n<s;++n)r[n].apply(this,t)}return this},v.prototype.emitReserved=v.prototype.emit,v.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},v.prototype.hasListeners=function(e){return!!this.listeners(e).length};const S="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function x(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const I=C.setTimeout,A=C.clearTimeout;function E(e,t){t.useNativeTimers?(e.setTimeoutFn=I.bind(C),e.clearTimeoutFn=A.bind(C)):(e.setTimeoutFn=C.setTimeout.bind(C),e.clearTimeoutFn=C.clearTimeout.bind(C))}function O(e){return"string"==typeof e?function(e){let t=0,r=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil(1.33*(e.byteLength||e.size))}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class M extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class j extends v{constructor(e){super(),this.writable=!1,E(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new M(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=p(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class N extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(g),n=[];for(let s=0;s<r.length;s++){const e=p(r[s],t);if(n.push(e),"error"===e.type)break}return n})(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let s=0;e.forEach((e,i)=>{o(e,!1,e=>{n[i]=e,++s===r&&t(n.join(g))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let z=!1;try{z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Jk){}const _=z;function T(){}class P extends N{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class L extends v{constructor(e,t,r){super(),this.createRequest=e,E(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;const t=x(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(n){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(n){return void this.setTimeoutFn(()=>{this._onError(n)},0)}"undefined"!=typeof document&&(this._index=L.requestsCount++,L.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=T,e)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete L.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(L.requestsCount=0,L.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",F);else if("function"==typeof addEventListener){addEventListener("onpagehide"in C?"pagehide":"unload",F,!1)}function F(){for(let e in L.requests)L.requests.hasOwnProperty(e)&&L.requests[e].abort()}const D=function(){const e=B({xdomain:!1});return e&&null!==e.responseType}();function B(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||_))return new XMLHttpRequest}catch(r){}if(!t)try{return new(C[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}const U="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class W extends j{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=U?{}:x(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(Jk){return this.emitReserved("error",Jk)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;o(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(t){}n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const V=C.WebSocket||C.MozWebSocket;const q={websocket:class extends W{createSocket(e,t,r){return U?new V(e,t,r):t?new V(e,t):new V(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Jk){return this.emitReserved("error",Jk)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=function(e,t){b||(b=new TextDecoder);const n=[];let s=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(0===s){if(w(n)<1)break;const e=k(n,1);o=!(128&~e[0]),i=127&e[0],s=i<126?3:126===i?1:2}else if(1===s){if(w(n)<2)break;const e=k(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(w(n)<8)break;const e=k(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){l.enqueue(r);break}i=o*Math.pow(2,32)+t.getUint32(4),s=3}else{if(w(n)<i)break;const e=k(n,i);l.enqueue(p(o?e:b.decode(e),t)),s=0}if(0===i||i>e){l.enqueue(r);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=y();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();const i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends P{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=D&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new L(B,this.uri(),e)}}},$=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Z(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let s=$.exec(e||""),i={},o=14;for(;o--;)i[Y[o]]=s[o]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,i.path),i.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,i.query),i}const G="function"==typeof addEventListener&&"function"==typeof removeEventListener,J=[];G&&addEventListener("offline",()=>{J.forEach(e=>e())},!1);class H extends v{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=Z(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=Z(t.host).host);E(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,s=r.length;n<s;n++){let e=r[n].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),G&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},J.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const e=this.opts.rememberUpgrade&&H.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",H.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=O(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,S(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(H.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),G&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=J.indexOf(this._offlineEventListener);-1!==e&&J.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}H.protocol=4;class X extends H{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;H.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;H.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function s(){r||(r=!0,c(),t.close(),t=null)}const i=e=>{const r=new Error("probe error: "+e);r.transport=t.name,s(),this.emitReserved("upgradeError",r)};function o(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",i),t.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let K=class extends X{constructor(e,t={}){const r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>q[e]).filter(e=>!!e)),super(e,r)}};const Q="function"==typeof ArrayBuffer,ee=Object.prototype.toString,te="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ee.call(Blob),re="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ee.call(File);function ne(e){return Q&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||te&&e instanceof Blob||re&&e instanceof File}function se(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(se(e[t]))return!0;return!1}if(ne(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return se(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&se(e[r]))return!0;return!1}function ie(e){const t=[],r=e.data,n=e;return n.data=oe(r,t),n.attachments=t.length,{packet:n,buffers:t}}function oe(e,t){if(!e)return e;if(ne(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=oe(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=oe(e[n],t));return r}return e}function ae(e,t){return e.data=le(e.data,t),delete e.attachments,e}function le(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=le(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=le(e[r],t));return e}const ce=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var he,ue;(ue=he||(he={}))[ue.CONNECT=0]="CONNECT",ue[ue.DISCONNECT=1]="DISCONNECT",ue[ue.EVENT=2]="EVENT",ue[ue.ACK=3]="ACK",ue[ue.CONNECT_ERROR=4]="CONNECT_ERROR",ue[ue.BINARY_EVENT=5]="BINARY_EVENT",ue[ue.BINARY_ACK=6]="BINARY_ACK";function de(e){return"[object Object]"===Object.prototype.toString.call(e)}class pe extends v{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===he.BINARY_EVENT;r||t.type===he.BINARY_ACK?(t.type=r?he.EVENT:he.ACK,this.reconstructor=new me(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ne(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===he[r.type])throw new Error("unknown packet type "+r.type);if(r.type===he.BINARY_EVENT||r.type===he.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(n,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(s)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!pe.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case he.CONNECT:return de(t);case he.DISCONNECT:return void 0===t;case he.CONNECT_ERROR:return"string"==typeof t||de(t);case he.EVENT:case he.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ce.indexOf(t[0]));case he.ACK:case he.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class me{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=ae(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pe,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==he.EVENT&&e.type!==he.ACK||!se(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===he.EVENT?he.BINARY_EVENT:he.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==he.BINARY_EVENT&&e.type!==he.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ie(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},get PacketType(){return he},protocol:5},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const ye=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class be extends v{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ge(e,"open",this.onopen.bind(this)),ge(e,"packet",this.onpacket.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,s;if(ye.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:he.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),i.id=e}const o=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(s=this.io.engine)||void 0===s?void 0:s._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},n),i=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((r,n)=>{const s=(e,t)=>e?n(e):r(t);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:he.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case he.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case he.EVENT:case he.BINARY_EVENT:this.onevent(e);break;case he.ACK:case he.BINARY_ACK:this.onack(e);break;case he.DISCONNECT:this.ondisconnect();break;case he.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:he.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:he.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function we(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}we.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},we.prototype.reset=function(){this.attempts=0},we.prototype.setMin=function(e){this.ms=e},we.prototype.setMax=function(e){this.max=e},we.prototype.setJitter=function(e){this.jitter=e};class ke extends v{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,E(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new we({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||fe;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new K(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=ge(t,"open",function(){r.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=ge(t,"error",s);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ge(e,"ping",this.onping.bind(this)),ge(e,"data",this.ondata.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this)),ge(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){S(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new be(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ve={};function Se(e,t){"object"==typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=Z(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,s=r.id,i=r.path,o=ve[s]&&i in ve[s].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||o?a=new ke(n,t):(ve[s]||(ve[s]=new ke(n,t)),a=ve[s]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(Se,{Manager:ke,Socket:be,io:Se,connect:Se});class Ce{constructor(e){__publicField(this,"socket"),__publicField(this,"encode"),__publicField(this,"decode"),this.socket=Se(e.baseUrl,{transports:["websocket"],path:"/analytics/ws",auth:{token:e.authToken},query:e.query}),this.encode=e.encoder??(e=>function(e){const t=(new TextEncoder).encode(e);if("undefined"!=typeof window&&"function"==typeof window.btoa){const e=Array.from(t,e=>String.fromCharCode(e)).join("");return btoa(e)}if("undefined"!=typeof Buffer)return Buffer.from(t).toString("base64");throw new Error("[utils.base64Encode]: Unsupported environment")}(JSON.stringify(e))),this.decode=e.decoder??(e=>JSON.parse((e=>{if("undefined"!=typeof window&&"function"==typeof window.atob){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return(new TextDecoder).decode(n)}if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf-8");throw new Error("[utils.base64Decode]: Unsupported environment")})(e)))}send(e,t,r){"function"==typeof r?this.socket.emit(e,this.encode(t),r):this.socket.emit(e,this.encode(t))}on(e,t){this.socket.on(e,e=>t(this.decode(e)))}}class xe{constructor(e){__publicField(this,"baseUrl"),__publicField(this,"authToken"),__publicField(this,"sdkMetadata"),this.baseUrl=e.baseUrl,this.authToken=e.authToken,this.sdkMetadata=e.sdkMetadata}async send(e,t){const r=new URL(e,this.baseUrl),n={...t,...this.sdkMetadata&&{sdk:this.sdkMetadata}};try{const e=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json",...this.authToken&&{Authorization:`Bearer ${this.authToken}`}},body:JSON.stringify(n)});if(!e.ok)return null;let t;try{t=await e.json()}catch{t={}}return t}catch(s){}}}class Ie{constructor(e){if(__publicField(this,"defaultTTL"),__publicField(this,"items"),this.defaultTTL=e,e<=0)throw new Error("Default TTL must be a positive number.");this.items=new Map,this.defaultTTL=e,setInterval(()=>this.cleanup(),e)}add(e,t){const r=void 0!==t?t:this.defaultTTL;if(r<=0)throw new Error("TTL must be a positive number.");const n=Date.now()+r;this.items.set(e,n)}has(e){const t=this.items.get(e);return void 0!==t&&(!(Date.now()>t)||(this.items.delete(e),!1))}delete(e){this.items.delete(e)}get size(){return this.cleanup(),this.items.size}clear(){this.items.clear()}cleanup(){const e=Date.now();for(const[t,r]of this.items.entries())r<=e&&this.items.delete(t)}toArray(){return this.cleanup(),Array.from(this.items.keys())}}var Ae,Ee,Oe,Re;(Ee=Ae||(Ae={})).OpenUrl="openUrl",Ee.CallPhone="callPhone",Ee.SendEmail="sendEmail",Ee.TriggerEvent="triggerEvent",(Re=Oe||(Oe={})).Button="button",Re.Link="link";class Me{constructor(e){__publicField(this,"options"),__publicField(this,"client"),__publicField(this,"httpClient"),__publicField(this,"userId"),__publicField(this,"global"),__publicField(this,"queue",[]),__publicField(this,"knownEvents",["nudge.show"]),__publicField(this,"eventListeners",{}),__publicField(this,"recentNudgeIds",new Ie(1e3)),this.options=e;const t={sdk_name:e.sdk||"node",sdk_version:e.sdkVersion||""},r=e.apiUrl||"https://analytic.brainfi.sh",n=e.accessKey;this.client=new Ce({baseUrl:r,authToken:n,query:t}),this.httpClient=new xe({baseUrl:r,authToken:n,sdkMetadata:{name:e.sdk||"node",version:e.sdkVersion||""}}),this.setupIncomingPayloadHandler()}init(){}ready(){this.options.waitForUser=!1,this.flush()}setupIncomingPayloadHandler(){this.client.on("e",this.handleIncomingPayload.bind(this))}handleIncomingPayload(e){if("nudge.show"===e.type){const{nudgeId:t}=e.payload;if(this.recentNudgeIds.has(t))return;this.recentNudgeIds.add(t),this.dispatchEventListeners("nudge.show",e.payload)}}dispatchEventListeners(e,t){this.eventListeners[e]?.forEach(e=>e(t))}on(e,t){this.knownEvents.includes(e)&&(this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t))}off(e,t){this.knownEvents.includes(e)&&this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter(e=>e!==t),0===this.eventListeners[e].length&&delete this.eventListeners[e])}async send(e,t){return this.options.disabled||this.options.filter&&!this.options.filter(e)?Promise.resolve():this.options.waitForUser&&!this.userId?(this.queue.push(e),Promise.resolve()):this.client.send("t",e,t)}setGlobalProperties(e){this.global={...this.global,...e}}async track(e,t,r){return this.send({type:"event.track",payload:{name:e,userId:t?.userId??this.userId,properties:{...this.global??{},...t??{},...r?{_bfOverrides:r}:{}}}})}async identify(e){e.userId?(this.userId=e.userId,this.flush()):console.warn("BrainfishWidgetWarn: `.identify` called without a userId. User identification requires a valid userId to be provided.");const t=document.querySelector("#bf-iframe-container .trigger-iframe");if(t){const r=()=>{t.contentWindow&&t.contentWindow.postMessage({type:"USER_IDENTIFY",payload:e},"*")};t.contentWindow&&r(),t.addEventListener("load",r)}if(Object.keys(e).length>1)return this.send({type:"user.identify",payload:{...e,properties:{...this.global,...e.properties}}})}async record(e){if(this.options.disabled)return Promise.resolve(null);const t={type:"event.record",payload:{events:e,userId:this.userId}};if(this.options.filter&&!this.options.filter(t))return Promise.resolve(null);const r=await this.httpClient.send("/s",{events:e,userId:this.userId});return r?.sessionId||null}async alias(e){return this.send({type:"user.alias",payload:e})}async increment(e){return this.send({type:"user.increment",payload:e})}async decrement(e){return this.send({type:"user.decrement",payload:e})}clear(){this.userId=void 0}flush(){this.queue.forEach(e=>{this.send({...e,payload:{...e.payload,userId:e.payload.userId??this.userId}})}),this.queue=[]}}var je={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,snapshot:new WeakMap,snapshotKey:new Map,reset:function(){je.computedStyle=new WeakMap}};var Ne=new Set(["-webkit-locale"]);function ze(e,t,r=!1){const n=[],s=function(e){if(je.defaultStyle.has(e))return je.defaultStyle.get(e);if(new Set(["script","style","meta","link","noscript","template","defs","symbol","title","metadata","desc"]).has(e)){const t={};return je.defaultStyle.set(e,t),t}let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0",t.style.height="0",t.style.overflow="hidden",document.body.appendChild(t));const r=document.createElement(e);r.style.all="initial",t.appendChild(r);const n=getComputedStyle(r),s={};for(let i of n)s[i]=n.getPropertyValue(i);return t.removeChild(r),je.defaultStyle.set(e,s),s}(t);for(let[i,o]of Object.entries(e))if(!Ne.has(i))if(r){const e=s[i];o&&o!==e&&n.push(`${i}:${o}`)}else o&&n.push(`${i}:${o}`);return n.sort().join(";")}async function _e(e,t={}){const r=Fe(e);/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e);if(r){const e=qe(r);if(je.background.has(e))return t.skipInline?void 0:`url(${je.background.get(e)})`;{const r=await We(e,{useProxy:t.useProxy});return je.background.set(e,r),t.skipInline?void 0:`url("${r}")`}}return e}function Te(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function Pe(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let r=je.computedStyle.get(e);if(r||(r=new Map,je.computedStyle.set(e,r)),!r.has(t)){const n=window.getComputedStyle(e,t);r.set(t,n)}return r.get(t)}function Le(e){let t=e.replace(/^['"]|['"]$/g,"");if(t.startsWith("\\"))try{return String.fromCharCode(parseInt(t.replace("\\",""),16))}catch{return t}return t}function Fe(e){const t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;const r=t[2].trim();return r.startsWith("#")?null:r}async function De(e,{useProxy:t=""}={}){async function r(e){const t=await fetch(e);if(!t.ok)throw new Error(`[snapdom] Failed to fetch resource: ${e}`);return t}try{return await r(e)}catch(n){if(t&&"string"==typeof t){return r(t.replace(/\/$/,"")+qe(e))}throw n}}var Be=new Map,Ue=new Map;function We(e,{timeout:t=3e3,useProxy:r="",errorTTL:n=8e3}={}){function s(e){try{return new URL(e,window.location.href).origin===window.location.origin?"use-credentials":"anonymous"}catch{return"anonymous"}}const i=e=>({ok:!0,data:e}),o=e=>({ok:!1,error:e instanceof Error?e:new Error(String(e))});function a(e){try{return fetch(e,{mode:"cors",credentials:"use-credentials"===s(e)?"include":"omit"}).then(e=>e.ok?e.blob().then(e=>new Promise(t=>{const r=new FileReader;r.onloadend=()=>{const e=r.result;"string"==typeof e&&e.startsWith("data:image/")?t(i(e)):t(o(new Error("Invalid image data URL")))},r.onerror=()=>t(o(new Error("FileReader error"))),r.readAsDataURL(e)})):o(new Error("HTTP "+e.status))).catch(e=>o(e))}catch(t){return Promise.resolve(o(t))}}function l(e){return a(e).then(t=>{if(t.ok)return t;if(r&&"string"==typeof r){return a(r.replace(/\/$/,"")+qe(e)).then(e=>e.ok?e:o(new Error("[SnapDOM - fetchImage] Fetch failed and no proxy provided")))}return o(new Error("[SnapDOM - fetchImage] Fetch failed and no proxy provided"))})}const c=Date.now(),h=Ue.get(e);if(h&&h>c){const e=Promise.reject(new Error("[SnapDOM - fetchImage] Recently failed (cooldown)."));return e.catch(()=>{}),e}if(Be.has(e))return Be.get(e);const u=s(e);if(je.image.has(e))return Promise.resolve(je.image.get(e));if(e.startsWith("data:image/"))return je.image.set(e,e),Promise.resolve(e);if(/\.svg(\?.*)?$/i.test(e)){const t=(async()=>{const t=await(async()=>{try{const t=await fetch(e,{mode:"cors",credentials:"use-credentials"===u?"include":"omit"});if(!t.ok)return o(new Error("HTTP "+t.status));const r=await t.text();return i(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`)}catch(t){return o(t)}})();if(t.ok)return je.image.set(e,t.data),t.data;const r=await l(e);return r.ok?(je.image.set(e,r.data),r.data):(Ue.set(e,c+n),Promise.reject(r.error))})();return Be.set(e,t),t.finally(()=>Be.delete(e)),t.catch(()=>{}),t}const d=new Promise((r,s)=>{let i=!1;const o=new Image,a=e=>t=>{i||(i=!0,clearTimeout(d),o.onload=o.onerror=null,e(t))},c=t=>{je.image.set(e,t),r(t)},h=t=>{Ue.set(e,Date.now()+n),s(t)},d=setTimeout(a(()=>{l(e).then(e=>{e.ok?c(e.data):h(new Error("Image load timed out"))})}),t);o.crossOrigin=u,o.onload=a(()=>{Promise.resolve(o.decode()).then(()=>{try{const e=document.createElement("canvas");e.width=o.naturalWidth||o.width,e.height=o.naturalHeight||o.height;e.getContext("2d").drawImage(o,0,0,e.width,e.height),c(e.toDataURL("image/png"))}catch{l(e).then(e=>{e.ok?c(e.data):h(e.error)})}}).catch(()=>{l(e).then(e=>{e.ok?c(e.data):h(e.error)})})}),o.onerror=a(()=>{l(e).then(e=>{e.ok?c(e.data):h(e.error)})}),o.src=e});return Be.set(e,d),d.finally(()=>Be.delete(e)),d.catch(()=>{}),d}function Ve(e){const t={};for(let r of e)t[r]=e.getPropertyValue(r);return t}function qe(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function $e(e){const t=[];let r=0,n=0;for(let s=0;s<e.length;s++){const i=e[s];"("===i&&r++,")"===i&&r--,","===i&&0===r&&(t.push(e.slice(n,s).trim()),n=s+1)}return t.push(e.slice(n).trim()),t}var Ye=new WeakMap,Ze=new Map;function Ge(e,t,r,n,s){if("STYLE"===e.tagName)return;n.has(e)||n.set(e,Pe(e));const i=n.get(e);if(!Ye.has(e)){const t=function(e){const t={},r=e.getPropertyValue("visibility");for(let n=0;n<e.length;n++){const r=e[n];let s=e.getPropertyValue(r);"background-image"!==r&&"content"!==r||!s.includes("url(")||s.includes("data:")||(s="none"),t[r]=s}return"hidden"===r&&(t.opacity="0"),t}(i);Ye.set(e,t)}const o=Ye.get(e),a=Object.entries(o).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join(";");if(Ze.has(a))return void r.set(t,Ze.get(a));const l=ze(o,e.tagName?.toLowerCase()||"div",s);Ze.set(a,l),r.set(t,l)}function Je(e,t,r,n,s,i={},o){if(!e)throw new Error("Invalid node");const a=new Set;let l,c=null;if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!0);if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}if(i.exclude&&Array.isArray(i.exclude))for(const h of i.exclude)try{if(e.matches?.(h)){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}}catch(Jk){console.warn(`Invalid selector in exclude option: ${h}`,Jk)}if("function"==typeof i.filter)try{if(!i.filter(e,o||e)){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}}catch(Jk){console.warn("Error in filter function:",Jk)}if("IFRAME"===e.tagName){const t=document.createElement("div");return t.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,t}if("placeholder"===e.getAttribute("data-capture")){const i=e.cloneNode(!1);n.set(i,e),Ge(e,i,t,r,s);const o=document.createElement("div");return o.textContent=e.getAttribute("data-placeholder-text")||"",o.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",i.appendChild(o),i}if("CANVAS"===e.tagName){const i=e.toDataURL(),o=document.createElement("img");return o.src=i,o.width=e.width,o.height=e.height,n.set(o,e),Ge(e,o,t,r,s),o}try{l=e.cloneNode(!1),n.set(l,e),"IMG"===e.tagName&&function(e,t){try{const r=e.currentSrc||e.src||"";if(!r)return;t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}(e,l)}catch(Jk){throw console.error("[Snapdom] Failed to clone node:",e,Jk),Jk}if(e instanceof HTMLTextAreaElement){l.textContent=e.value,l.value=e.value;const t=e.getBoundingClientRect();return l.style.width=`${t.width}px`,l.style.height=`${t.height}px`,l}if(e instanceof HTMLInputElement&&(l.value=e.value,l.setAttribute("value",e.value),void 0!==e.checked&&(l.checked=e.checked,e.checked&&l.setAttribute("checked",""),e.indeterminate&&(l.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(c=e.value),Ge(e,l,t,r,s),e.shadowRoot){if(Array.from(e.shadowRoot.querySelectorAll("slot")).length>0){for(const t of e.shadowRoot.childNodes)if(t.nodeType===Node.ELEMENT_NODE&&"STYLE"===t.tagName){const e=t.textContent||"";e.trim()&&s&&r.set(t,e)}}else{const a=document.createDocumentFragment();for(const l of e.shadowRoot.childNodes){if(l.nodeType===Node.ELEMENT_NODE&&"STYLE"===l.tagName){const e=l.textContent||"";e.trim()&&s&&r.set(l,e);continue}const c=Je(l,t,r,n,s,i,o||e);c&&a.appendChild(c)}l.appendChild(a)}}if("SLOT"===e.tagName){const a=e.assignedNodes?.({flatten:!0})||[],l=a.length>0?a:Array.from(e.childNodes),c=document.createDocumentFragment();for(const h of l){const a=Je(h,t,r,n,s,i,o||e);a&&c.appendChild(a)}return c}for(const h of e.childNodes){if(a.has(h))continue;const c=Je(h,t,r,n,s,i,o||e);c&&l.appendChild(c)}if(null!==c&&l instanceof HTMLSelectElement){l.value=c;for(const e of l.options)e.value===c?e.setAttribute("selected",""):e.removeAttribute("selected")}return l}var He=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],Xe=[];function Ke(e){const t="string"==typeof e?e:"",r=[...He,...Xe];for(const n of r)if(n instanceof RegExp&&n.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}async function Qe(e,t,r,n=32,s="#000"){t=t.replace(/^['"]+|['"]+$/g,"");const i=window.devicePixelRatio||1;await document.fonts.ready;const o=document.createElement("span");o.textContent=e,o.style.position="absolute",o.style.visibility="hidden",o.style.fontFamily=`"${t}"`,o.style.fontWeight=r||"normal",o.style.fontSize=`${n}px`,o.style.lineHeight="1",o.style.whiteSpace="nowrap",o.style.padding="0",o.style.margin="0",document.body.appendChild(o);const a=o.getBoundingClientRect(),l=Math.ceil(a.width),c=Math.ceil(a.height);document.body.removeChild(o);const h=document.createElement("canvas");h.width=l*i,h.height=c*i;const u=h.getContext("2d");return u.scale(i,i),u.font=r?`${r} ${n}px "${t}"`:`${n}px "${t}"`,u.textAlign="left",u.textBaseline="top",u.fillStyle=s,u.fillText(e,0,0),{dataUrl:h.toDataURL(),width:l,height:c}}function et(e){return Array.from(document.styleSheets).some(t=>t.href===e)}function tt(e){return new Promise(t=>{if(et(e))return t(null);const r=document.createElement("link");r.rel="stylesheet",r.href=e,r.setAttribute("data-snapdom","injected-import"),r.onload=()=>t(r),r.onerror=()=>t(null),document.head.appendChild(r)})}async function rt(e,t,r,n,s){if(!(e instanceof Element&&t instanceof Element))return;for(const l of["::before","::after","::first-letter"])try{const n=Pe(e,l);if(!n||"function"!=typeof n[Symbol.iterator])continue;if(!("none"!==n.content||"none"!==n.backgroundImage||"transparent"!==n.backgroundColor||"none"!==n.borderStyle&&0!==parseFloat(n.borderWidth)||n.transform&&"none"!==n.transform||"inline"!==n.display))continue;if("::first-letter"===l){const i=getComputedStyle(e);if(!(n.color!==i.color||n.fontSize!==i.fontSize||n.fontWeight!==i.fontWeight))continue;const o=Array.from(t.childNodes).find(e=>e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length>0);if(!o)continue;const a=o.textContent,l=a.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u),c=l?.[0],h=a.slice(c?.length||0);if(!c||/[\uD800-\uDFFF]/.test(c))continue;const u=document.createElement("span");u.textContent=c,u.dataset.snapdomPseudo="::first-letter";const d=ze(Ve(n),"span",s);r.set(u,d);const p=document.createTextNode(h);t.replaceChild(p,o),t.insertBefore(u,p);continue}const i=n.content,o=/counter\s*\(|counters\s*\(/.test(i)?"- ":Le(i),c=n.backgroundImage,h=n.backgroundColor,u=n.fontFamily,d=parseInt(n.fontSize)||32,p=parseInt(n.fontWeight)||!1,m=n.color||"#000",f=n.display,g=parseFloat(n.width),y=parseFloat(n.height),b=n.borderStyle,w=parseFloat(n.borderWidth),k=n.transform,v=Ke(u),S="none"!==i&&""!==o,C=c&&"none"!==c,x=h&&"transparent"!==h&&"rgba(0, 0, 0, 0)"!==h,I="inline"!==f&&(g>0||y>0),A=b&&"none"!==b&&w>0,E=k&&"none"!==k;if(!(S||C||x||I||A||E))continue;const O=document.createElement("span");O.dataset.snapdomPseudo=l,O.style.verticalAlign="middle";const R=ze(Ve(n),"span",s);if(r.set(O,R),v&&1===o.length){const{dataUrl:e,width:r,height:n}=await Qe(o,u,p,d,m),s=document.createElement("img");s.src=e,s.style=`height:${d}px;width:${r/n*d}px;object-fit:contain;`,O.appendChild(s),t.dataset.snapdomHasIcon="true"}else if(o.startsWith("url(")){const t=Fe(o);if(t?.trim())try{const e=document.createElement("img"),r=await We(qe(t),s);e.src=r,e.style=`width:${d}px;height:auto;object-fit:contain;`,O.appendChild(e)}catch(a){console.error(`[snapdom] Error in pseudo ${l} for`,e,a)}}else!v&&S&&(O.textContent=o);if(C)try{const e=$e(c),t=await Promise.all(e.map(_e));O.style.backgroundImage=t.join(", ")}catch(a){console.warn(`[snapdom] Failed to inline background-image for ${l}`,a)}x&&(O.style.backgroundColor=h);const M=O.childNodes.length>0||""!==O.textContent?.trim();if(!(M||C||x||I||A||E))continue;"::before"===l?t.insertBefore(O,t.firstChild):t.appendChild(O)}catch(a){console.warn(`[snapdom] Failed to capture ${l} for`,e,a)}const i=Array.from(e.children),o=Array.from(t.children).filter(e=>!e.dataset.snapdomPseudo);for(let l=0;l<Math.min(i.length,o.length);l++)await rt(i[l],o[l],r,n,s)}async function nt(e,t=!1,r=!1,n={}){const s=new Map,i=new WeakMap,o=new Map;let a,l="";!function(e){const t=getComputedStyle(e),r=t.outlineStyle,n=t.outlineWidth,s=t.borderStyle,i=t.borderWidth,o="none"!==r&&parseFloat(n)>0,a="none"===s||0===parseFloat(i);o&&a&&(e.style.border=`${n} solid transparent`)}(e);try{!function(e){if(!e)return;const t=new Set;if(e.querySelectorAll("use").forEach(e=>{const r=e.getAttribute("xlink:href")||e.getAttribute("href");r&&r.startsWith("#")&&t.add(r.slice(1))}),!t.size)return;const r=Array.from(document.querySelectorAll("svg > symbol, svg > defs")),n=r.filter(e=>"symbol"===e.tagName.toLowerCase()),s=r.filter(e=>"defs"===e.tagName.toLowerCase());let i=e.querySelector("svg.inline-defs-container");i||(i=document.createElementNS("http://www.w3.org/2000/svg","svg"),i.setAttribute("aria-hidden","true"),i.setAttribute("style","position: absolute; width: 0; height: 0; overflow: hidden;"),i.classList.add("inline-defs-container"),e.insertBefore(i,e.firstChild));const o=new Set;e.querySelectorAll("symbol[id], defs > *[id]").forEach(e=>{o.add(e.id)}),t.forEach(e=>{if(o.has(e))return;const t=n.find(t=>t.id===e);if(t)return i.appendChild(t.cloneNode(!0)),void o.add(e);for(const r of s){const t=r.querySelector(`#${CSS.escape(e)}`);if(t){let r=i.querySelector("defs");r||(r=document.createElementNS("http://www.w3.org/2000/svg","defs"),i.appendChild(r)),r.appendChild(t.cloneNode(!0)),o.add(e);break}}})}(e)}catch(c){console.warn("inlineExternal defs or symbol failed:",c)}try{a=Je(e,s,i,o,t,n,e)}catch(c){throw console.warn("deepClone failed:",c),c}try{await rt(e,a,s,i,t,n.useProxy)}catch(c){console.warn("inlinePseudoElements failed:",c)}if(await async function(e){if(!e)return;const t=e.querySelectorAll?e.querySelectorAll("img"):[];for(const o of t)try{const e=o.getAttribute("src")||o.currentSrc||"";if(lt(e)){const t=await it(e);o.setAttribute("src",t)}const t=o.getAttribute("srcset");if(t&&t.includes("blob:")){const e=ct(t);let r=!1;for(const t of e)if(lt(t.url))try{t.url=await it(t.url),r=!0}catch{}r&&o.setAttribute("srcset",ht(e))}}catch{}const r=e.querySelectorAll?e.querySelectorAll("image"):[];for(const o of r)try{const e="http://www.w3.org/1999/xlink",t=o.getAttribute("href")||o.getAttributeNS?.(e,"href");if(lt(t)){const r=await it(t);o.setAttribute("href",r),o.removeAttributeNS?.(e,"href")}}catch{}const n=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(const o of n)try{const e=o.getAttribute("style");if(e&&e.includes("blob:")){const t=await at(e);o.setAttribute("style",t)}}catch{}const s=e.querySelectorAll?e.querySelectorAll("style"):[];for(const o of s)try{const e=o.textContent||"";e.includes("blob:")&&(o.textContent=await at(e))}catch{}const i=["poster"];for(const o of i){const t=e.querySelectorAll?e.querySelectorAll(`[${o}^='blob:']`):[];for(const e of t)try{const t=e.getAttribute(o);lt(t)&&e.setAttribute(o,await it(t))}catch{}}}(a),t){const e=function(e){const t=new Set(e.values()),r=new Map;let n=1;for(const s of t)s.trim()&&r.set(s,"c"+n++);return r}(s);l=Array.from(e.entries()).map(([e,t])=>`.${t}{${e}}`).join("");for(const[t,r]of s.entries()){if("STYLE"===t.tagName)continue;if(t.getRootNode&&t.getRootNode()instanceof ShadowRoot){t.setAttribute("style",r.replace(/;/g,"; "));continue}const n=e.get(r);n&&t.classList.add(n);const s=t.style?.backgroundImage,i=t.dataset?.snapdomHasIcon;s&&"none"!==s&&(t.style.backgroundImage=s),i&&(t.style.verticalAlign="middle",t.style.display="inline")}}else for(const[h,u]of s.entries())"STYLE"!==h.tagName&&h.setAttribute("style",u.replace(/;/g,"; "));for(const[h,u]of o.entries()){const e=u.scrollLeft,t=u.scrollTop;if((e||t)&&h instanceof HTMLElement){h.style.overflow="hidden",h.style.scrollbarWidth="none",h.style.msOverflowStyle="none";const r=document.createElement("div");for(r.style.transform=`translate(${-e}px, ${-t}px)`,r.style.willChange="transform",r.style.display="inline-block",r.style.width="100%";h.firstChild;)r.appendChild(h.firstChild);h.appendChild(r)}}if(e===o.get(a)){const t=i.get(e)||window.getComputedStyle(e);i.set(e,t);const r=function(e){if(!e||"none"===e)return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,t)=>{const r=t.split(",").map(e=>e.trim());return 6!==r.length?`matrix(${t})`:(r[4]="0",r[5]="0",`matrix(${r.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,t)=>{const r=t.split(",").map(e=>e.trim());return 16!==r.length?`matrix3d(${t})`:(r[12]="0",r[13]="0",`matrix3d(${r.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}(t.transform);a.style.margin="0",a.style.position="static",a.style.top="auto",a.style.left="auto",a.style.right="auto",a.style.bottom="auto",a.style.zIndex="auto",a.style.float="none",a.style.clear="none",a.style.transform=r||""}for(const[h,u]of o.entries())"PRE"===u.tagName&&(h.style.marginTop="0",h.style.marginBlockStart="0");return{clone:a,classCSS:l,styleCache:i}}var st=new Map;async function it(e){if(st.has(e))return st.get(e);const t=await fetch(e);if(!t.ok)throw new Error(`[SnapDOM] HTTP ${t.status} on blob fetch (${e})`);const r=await t.blob(),n=await new Promise((e,t)=>{const n=new FileReader;n.onloadend=()=>{const r=n.result;"string"==typeof r&&r.startsWith("data:")?e(r):t(new Error("[SnapDOM] Invalid data URL from blob"))},n.onerror=()=>t(new Error("[SnapDOM] FileReader error")),n.readAsDataURL(r)});return st.set(e,n),n}var ot=/\bblob:[^)"'\s]+/g;async function at(e){if(!e||-1===e.indexOf("blob:"))return e;const t=Array.from(new Set(e.match(ot)||[]));if(0===t.length)return e;let r=e;for(const n of t)try{const e=await it(n);r=r.split(n).join(e)}catch{}return r}function lt(e){return"string"==typeof e&&e.startsWith("blob:")}function ct(e){return(e||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>{const t=e.match(/^(\S+)(\s+.+)?$/);return t?{url:t[1],desc:t[2]||""}:null}).filter(Boolean)}function ht(e){return e.map(e=>e.desc?`${e.url} ${e.desc.trim()}`:e.url).join(", ")}async function ut(e,t={}){if(!e)throw new Error("Element cannot be null or undefined");je.reset();const{compress:r=!0,embedFonts:n=!1,fast:s=!0,scale:i=1,useProxy:o="",localFonts:a=[]}=t;let l,c,h,u,d,p="",m="";if(({clone:l,classCSS:c,styleCache:h}=await nt(e,r,n,t)),await new Promise(e=>{Te(async()=>{await async function(e,t={}){const r=Array.from(e.querySelectorAll("img")),n=async e=>{if(!e.getAttribute("src")){const t=e.currentSrc||e.src||"";t&&e.setAttribute("src",t)}e.removeAttribute("srcset"),e.removeAttribute("sizes");const r=e.src;try{const n=await We(r,{useProxy:t.useProxy});e.src=n,e.width||(e.width=e.naturalWidth||100),e.height||(e.height=e.naturalHeight||100)}catch{const t=document.createElement("div");t.style=`width: ${e.width||100}px; height: ${e.height||100}px; background: #ccc; display: inline-block; text-align: center; line-height: ${e.height||100}px; color: #666; font-size: 12px;`,t.innerText="img",e.replaceWith(t)}};for(let s=0;s<r.length;s+=4){const e=r.slice(s,s+4).map(n);await Promise.allSettled(e)}}(l,t),e()},{fast:s})}),await new Promise(r=>{Te(async()=>{await async function(e,t,r,n={}){const s=[[e,t]],i=["background-image","mask","mask-image","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;s.length;){const[e,t]=s.shift(),o=r.get(e)||Pe(e);r.has(e)||r.set(e,o);const a=(()=>{const e=o.getPropertyValue("border-image"),t=o.getPropertyValue("border-image-source");return e&&"none"!==e||t&&"none"!==t})();for(const r of i){if(["border-image-slice","border-image-width","border-image-outset","border-image-repeat"].includes(r)&&!a)continue;const e=o.getPropertyValue(r);if(!e||"none"===e)continue;const s=$e(e),i=await Promise.all(s.map(e=>_e(e,n)));i.some(e=>e&&"none"!==e&&!/^url\(undefined/.test(e))&&t.style.setProperty(r,i.join(", "))}const l=o.getPropertyValue("background-color");l&&"transparent"!==l&&"rgba(0, 0, 0, 0)"!==l&&(t.style.backgroundColor=l);const c=Array.from(e.children),h=Array.from(t.children);for(let r=0;r<Math.min(c.length,h.length);r++)s.push([c[r],h[r]])}}(e,l,h,t),r()},{fast:s})}),n&&await new Promise(e=>{Te(async()=>{p=await async function({preCached:e=!1,localFonts:t=[],useProxy:r=""}={}){if(je.resource.has("fonts-embed-css")){if(e){const e=document.createElement("style");e.setAttribute("data-snapdom","embedFonts"),e.textContent=je.resource.get("fonts-embed-css"),document.head.appendChild(e)}return je.resource.get("fonts-embed-css")}const n=new Set;try{for(const e of document.fonts)"loaded"===e.status&&n.add(`${e.family}__${e.weight||"normal"}__${e.style||"normal"}`)}catch{}const s=/@import\s+url\(["']?([^"')]+)["']?\)/g,i=[];for(const c of document.querySelectorAll("style")){const e=c.textContent||"",t=Array.from(e.matchAll(s));for(const r of t){const e=r[1];Ke(e)||et(e)||i.push(e)}}await Promise.all(i.map(tt));const o=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(e=>e.href);let a="";for(const c of o)try{const e=await De(c.href,{useProxy:r}),t=await e.text();if(Ke(c.href)||Ke(t))continue;const s=/@font-face[^{}]*{[^}]*}/g;let i=t;for(const o of t.match(s)||[]){const e=o.match(/font-family:\s*([^;]+);/i);if(!e)continue;const t=e[1].replace(/['"]/g,"").trim(),s=o.match(/font-weight:\s*([^;]+);/i),a=o.match(/font-style:\s*([^;]+);/i),h=`${t}__${s?s[1].trim():"normal"}__${a?a[1].trim():"normal"}`,u=/url\((["']?)([^"')]+)\1\)/g,d=/url\(/i.test(o),p=/local\(/i.test(o);if(!d&&p)continue;if(!n.has(h)){i=i.replace(o,"");continue}let m=o;const f=Array.from(o.matchAll(u));for(const n of f){let e=Fe(n[0]);if(!e)continue;let t=e;if(t.startsWith("http")||t.startsWith("data:")||(t=new URL(t,c.href).href),!Ke(t))if(je.resource.has(t))je.font.add(t),m=m.replace(n[0],`url(${je.resource.get(t)})`);else if(!je.font.has(t))try{const e=await De(t,{useProxy:r}),s=await e.blob(),i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(s)});je.resource.set(t,i),je.font.add(t),m=m.replace(n[0],`url(${i})`)}catch(l){console.warn("[snapdom] Failed to fetch font resource:",t)}}i=i.replace(o,m)}a+=i+"\n"}catch(l){console.warn("[snapdom] Failed to fetch CSS:",c.href)}for(const c of document.styleSheets)try{if(!c.href||o.every(e=>e.href!==c.href))for(const e of c.cssRules)if(e.type===CSSRule.FONT_FACE_RULE){const t=e.style.getPropertyValue("src"),s=e.style.getPropertyValue("font-family");if(!t||Ke(s))continue;const i=e.style.getPropertyValue("font-weight")||"normal",o=e.style.getPropertyValue("font-style")||"normal",h=`${s}__${i}__${o}`,u=/url\((["']?)([^"')]+)\1\)/g,d=/local\((["']?)[^)]+?\1\)/g,p=!!t.match(u),m=!!t.match(d);if(!p&&m){a+=`@font-face{font-family:${s};src:${t};font-style:${o};font-weight:${i};}`;continue}if(!n.has(h))continue;let f=t;const g=Array.from(t.matchAll(u));for(const e of g){let t=e[2].trim();if(!t)continue;let n=t;if(n.startsWith("http")||n.startsWith("data:")||(n=new URL(n,c.href||location.href).href),!Ke(n))if(je.resource.has(n))je.font.add(n),f=f.replace(e[0],`url(${je.resource.get(n)})`);else if(!je.font.has(n))try{const t=await De(n,{useProxy:r}),s=await t.blob(),i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(s)});je.resource.set(n,i),je.font.add(n),f=f.replace(e[0],`url(${i})`)}catch(l){console.warn("[snapdom] Failed to fetch font URL:",n)}}a+=`@font-face{font-family:${s};src:${f};font-style:${o};font-weight:${i};}`}}catch(l){console.warn("[snapdom] Cannot access stylesheet",c.href,l)}for(const c of document.fonts)if(c.family&&"loaded"===c.status&&c._snapdomSrc){if(Ke(c.family))continue;let e=c._snapdomSrc;if(!e.startsWith("data:"))if(je.resource.has(c._snapdomSrc))e=je.resource.get(c._snapdomSrc),je.font.add(c._snapdomSrc);else if(!je.font.has(c._snapdomSrc))try{const t=await De(c._snapdomSrc,{useProxy:r}),n=await t.blob();e=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(n)}),je.resource.set(c._snapdomSrc,e),je.font.add(c._snapdomSrc)}catch(l){console.warn("[snapdom] Failed to fetch dynamic font src:",c._snapdomSrc);continue}a+=`@font-face{font-family:'${c.family}';src:url(${e});font-style:${c.style||"normal"};font-weight:${c.weight||"normal"};}`}for(const c of t){if(!c||"object"!=typeof c)continue;const{family:e,src:t,weight:n="normal",style:s="normal"}=c;if(!e||!t)continue;let i=t;if(i.startsWith("data:"))je.resource.set(t,i),je.font.add(t);else try{const e=await De(t,{useProxy:r}),n=await e.blob();i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(n)}),je.resource.set(t,i),je.font.add(t)}catch(l){console.warn("[snapdom] Failed to load local font:",t);continue}a+=`@font-face{font-family:'${e}';src:url(${i});font-style:${s};font-weight:${n};}`}if(a&&(je.resource.set("fonts-embed-css",a),e)){const e=document.createElement("style");e.setAttribute("data-snapdom","embedFonts"),e.textContent=a,document.head.appendChild(e)}return a}({localFonts:a,useProxy:o}),e()},{fast:s})}),r){const e=function(e){const t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),"function"==typeof e.querySelectorAll&&e.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}(l).sort(),t=e.join(",");je.baseStyle.has(t)?m=je.baseStyle.get(t):await new Promise(r=>{Te(()=>{m=function(e){const t=new Map;for(let n of e){const e=je.defaultStyle.get(n);if(!e)continue;const r=Object.entries(e).map(([e,t])=>`${e}:${t};`).sort().join("");t.has(r)||t.set(r,[]),t.get(r).push(n)}let r="";for(let[n,s]of t.entries())r+=`${s.join(",")} { ${n} }\n`;return r}(e),je.baseStyle.set(t,m),r()},{fast:s})})}await new Promise(r=>{Te(()=>{const n=e.getBoundingClientRect();let s=n.width,o=n.height;const a=Number.isFinite(t.width),h=Number.isFinite(t.height),f="number"==typeof i&&1!==i;if(!f){const e=n.width/n.height;a&&h?(s=t.width,o=t.height):a?(s=t.width,o=s/e):h&&(o=t.height,s=o*e)}if(s=Math.ceil(s),o=Math.ceil(o),l.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),l.style.transformOrigin="top left",!f&&(a||h)){const e=s/n.width,t=o/n.height,r=l.style.transform||"",i=`scale(${e}, ${t})`;l.style.transform=`${i} ${r}`.trim()}const g="http://www.w3.org/2000/svg",y=document.createElementNS(g,"foreignObject");y.setAttribute("width","100%"),y.setAttribute("height","100%");const b=document.createElement("style");b.textContent=m+p+"svg{overflow:visible;}"+c,y.appendChild(b),y.appendChild(l);const w=(new XMLSerializer).serializeToString(y);d=`<svg xmlns="${g}" width="${s}" height="${o}" viewBox="0 0 ${s} ${o}">`+w+"</svg>",u=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,r()},{fast:s})});const f=document.getElementById("snapdom-sandbox");return f&&"absolute"===f.style.position&&f.remove(),u}async function dt(e,{dpr:t=1,scale:r=1}={}){const n=new Image;n.src=e,n.crossOrigin="anonymous",n.loading="eager",n.decoding="sync";const s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);let i=!1;if(s&&(document.body.appendChild(n),i=!0),await n.decode(),s&&await new Promise(e=>setTimeout(e,100)),0===n.width||0===n.height)throw i&&n.remove(),new Error("Image failed to load or has no dimensions");const o=n.naturalWidth*r,a=n.naturalHeight*r,l=document.createElement("canvas");l.width=Math.ceil(o*t),l.height=Math.ceil(a*t),l.style.width=`${o}px`,l.style.height=`${a}px`;const c=l.getContext("2d");return c.scale(t,t),c.drawImage(n,0,0,o,a),i&&n.remove(),l}async function pt(e,{type:t="svg",scale:r=1,backgroundColor:n="#fff",quality:s}={}){const i={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[t]||"image/png";if("svg"===t){const t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}const o=await mt(e,{dpr:1,scale:r},n);return new Promise(e=>{o.toBlob(t=>e(t),`${i}`,s)})}async function mt(e,{dpr:t=1,scale:r=1},n){const s=await dt(e,{dpr:t,scale:r});if(!n)return s;const i=document.createElement("canvas");i.width=s.width,i.height=s.height;const o=i.getContext("2d");return o.fillStyle=n,o.fillRect(0,0,i.width,i.height),o.drawImage(s,0,0),i}async function ft(e,{dpr:t=1,scale:r=1,backgroundColor:n,quality:s},i="png"){const o=["jpg","jpeg","webp"].includes(i)?"#fff":void 0,a=n??o,l=await mt(e,{dpr:t,scale:r},a),c=new Image;return c.src=l.toDataURL(`image/${i}`,s),await c.decode(),c.style.width=l.width/t+"px",c.style.height=l.height/t+"px",c}async function gt(e,t={}){if(t={scale:1,...t},!e)throw new Error("Element cannot be null or undefined");return t.iconFonts&&function(e){const t=Array.isArray(e)?e:[e];for(const r of t)r instanceof RegExp?Xe.push(r):"string"==typeof r?Xe.push(new RegExp(r,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",r)}(t.iconFonts),await gt.capture(e,t)}gt.capture=async(e,t={})=>{const r=await ut(e,t),n=t.dpr??(window.devicePixelRatio||1),s=t.scale||1;return{url:r,options:t,toRaw:()=>r,toImg:(e={})=>async function(e,{scale:t=1}={}){const r=new Image;return r.src=e,await r.decode(),1!==t&&(r.style.width=r.naturalWidth*t+"px",r.style.height=r.naturalHeight*t+"px"),r}(r,{scale:s,...e}),toCanvas:(e={})=>dt(r,{dpr:n,scale:s,...e}),toBlob:(e={})=>pt(r,{scale:s,...e}),toPng:(e={})=>ft(r,{dpr:n,scale:s,...e},"png"),toJpg:(e={})=>ft(r,{dpr:n,scale:s,...e},"jpeg"),toWebp:(e={})=>ft(r,{dpr:n,scale:s,...e},"webp"),download:({format:e="png",filename:t="snapDOM",backgroundColor:i,...o}={})=>async function(e,{dpr:t=1,scale:r=1,backgroundColor:n,format:s="png",filename:i="snapDOM"}={}){if("svg"===s){const t=await pt(e),r=URL.createObjectURL(t),n=document.createElement("a");return n.href=r,n.download=`${i}.svg`,n.click(),void URL.revokeObjectURL(r)}const o=["jpg","jpeg","webp"].includes(s)?"#fff":void 0,a=n??o,l=await mt(e,{dpr:t,scale:r},a),c={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[s]||"image/png",h=l.toDataURL(c),u=document.createElement("a");u.href=h,u.download=`${i}.${s}`,u.click()}(r,{dpr:n,scale:s,format:e,filename:t,backgroundColor:i,...o})}},gt.toRaw=async(e,t)=>(await gt.capture(e,t)).toRaw(),gt.toImg=async(e,t)=>(await gt.capture(e,t)).toImg(),gt.toCanvas=async(e,t)=>(await gt.capture(e,t)).toCanvas(),gt.toBlob=async(e,t)=>(await gt.capture(e,t)).toBlob(t),gt.toPng=async(e,t)=>(await gt.capture(e,t)).toPng(t),gt.toJpg=async(e,t)=>(await gt.capture(e,t)).toJpg(t),gt.toWebp=async(e,t)=>(await gt.capture(e,t)).toWebp(t),gt.download=async(e,t={})=>{const{format:r="png",filename:n="capture",backgroundColor:s,...i}=t,o=await gt.capture(e,i);return await o.download({format:r,filename:n,backgroundColor:s})};async function yt(e){const t=document.documentElement.scrollHeight,r=document.documentElement.scrollWidth,{width:n,height:s}=function(e,t){if(e<=1920&&t<=1080)return{width:e,height:t};const r=1920/e,n=1080/t,s=Math.min(r,n);return{width:Math.round(e*s),height:Math.round(t*s)}}(r,t),i=Array.from(document.styleSheets).map(e=>{try{return Array.from(e.cssRules).map(e=>e.cssText).join("")}catch(t){return""}}).join("\n"),o=document.createElement("style");o.textContent=i,e.appendChild(o);try{return(await gt.toCanvas(e,{quality:.7,width:n,height:s,exclude:[".bf-nocapture"]})).toDataURL("image/webp",.7)}finally{e.removeChild(o)}}const bt=new RegExp("((("+/(^|\.\s+)(dear|hi|hello|greetings|hey|hey there)/gi.source+")|("+/(thx|thanks|thank you|regards|best|[a-z]+ly|[a-z]+ regards|all the best|happy [a-z]+ing|take care|have a [a-z]+ (weekend|night|day))/gi.source+"\\s*[,.!]*))[\\s-]*)","gi"),wt=new RegExp("( ?(([A-Z][a-z]+)|([A-Z]\\.)))+([,.]|[,.]?$)","gm"),kt=new RegExp("\\b(\\s*)(\\s*("+["aaron","abad","abarca","abbate","abbey","abbie","abbott","abby","abdullah","abel","abell","abercrombie","abernathy","abernethy","abeyta","abigail","ables","abner","abney","abraham","abrams","abramson","abrego","abreu","absher","abshire","acevedo","aceves","acker","ackerman","ackley","acklin","acord","acosta","acree","acuff","acuna","ada","adah","adair","adaline","adam","adame","adames","adams","adamski","adamson","adcock","addie","addington","addis","addison","adela","adelaida","adelaide","adele","adelia","adelina","adeline","adell","adella","adelle","adena","adina","adkins","adkinson","adkison","adkisson","adler","adorno","adria","adrian","adriana","adriane","adrianna","adrianne","adrien","adriene","adrienne","afton","agatha","agnes","agnew","agnus","agosto","agripina","aguayo","agueda","aguero","aguiar","aguila","aguilar","aguilera","aguirre","agustin","agustina","ahearn","ahern","ahlers","ahmad","ahmed","ahn","ahner","aho","ahrens","ahumada","aida","aiello","aiken","aikens","aiko","aileen","ailene","aimee","ainsworth","aisha","aitken","aja","aker","akers","akiko","akilah","akins","alaina","alaine","alan","alana","alane","alanis","alaniz","alanna","alarcon","alayna","alba","albanese","albano","albaugh","albers","albert","alberta","albertha","albertina","albertine","alberto","albertson","albin","albina","albrecht","albright","albritton","alcala","alcantar","alcantara","alcaraz","alcorn","alda","aldana","alden","alderete","alderson","aldrich","aldridge","alease","alecia","aleen","aleida","aleisha","alejandra","alejandrina","alejandro","aleman","alena","alene","alesha","aleshia","alesia","alessandra","alessi","aleta","aletha","alethea","alethia","alex","alexa","alexander","alexandra","alexandria","alexia","alexis","alfano","alfaro","alfonso","alford","alfred","alfreda","alfredia","alger","ali","alia","alica","alice","alicea","alicia","alida","alina","aline","alisa","alise","alisha","alishia","alisia","alison","alissa","alita","alix","aliza","alla","allain","allan","allard","alleen","allegra","alleman","allen","allena","allene","alleyne","allgood","allie","alline","allison","allman","allmon","allred","allyn","allyson","alma","almanza","almaraz","almazan","almeda","almeida","almeta","almonte","alona","alonso","alonzo","alpert","alston","alsup","alta","altagracia","altamirano","altha","althea","altman","alton","alva","alvarado","alvardo","alvarez","alvera","alverez","alverson","alverta","alves","alvey","alvina","alvis","alyce","alycia","alysa","alyse","alysha","alysia","alyson","alyssa","amada","amador","amal","amalia","aman","amanda","amaral","amaro","amato","amaya","amber","amberly","ambriz","ambrose","amee","amelia","america","amerson","ames","amey","amick","amie","amiee","amin","amina","amira","ammerman","ammie","amos","amparo","amundson","amy","anabel","analisa","anamaria","anastacia","anastasia","anaya","ancheta","andera","anders","andersen","anderson","anderton","andes","andino","andra","andrade","andre","andrea","andree","andres","andresen","andress","andrew","andrews","andria","andrus","anette","ange","angela","angele","angelena","angeles","angelia","angelica","angelika","angelina","angeline","angelique","angelita","angell","angella","angelo","angelyn","angie","angila","angla","anglea","anglin","anguiano","angulo","angus","anh","anika","anisa","anisha","anissa","anita","anitra","anja","anjanette","anjelica","ann","anna","annabel","annabell","annabelle","annalee","annalisa","annamae","annamaria","annamarie","anne","anneliese","annelle","annemarie","annett","annetta","annette","annice","annie","annika","annis","annita","annmarie","anselmo","ansley","anson","anthony","antionette","antoine","antoinette","anton","antonelli","antonetta","antonette","antonia","antonietta","antonina","antonio","anya","aparicio","apodaca","apolonia","aponte","appleby","applegate","appleton","applewhite","appling","apryl","aquilar","aquino","araceli","aracelis","aracely","aragon","araiza","arana","aranda","arango","araujo","arbogast","arbuckle","arce","arcelia","arceneaux","archambault","archibald","archie","archuleta","arciniega","ardath","ardelia","ardell","ardella","ardelle","ardis","ardith","ardoin","arellano","aretha","arevalo","argelia","argentina","argo","arguelles","arguello","argueta","ariana","ariane","arianna","arianne","arica","arie","ariel","arielle","arla","arlean","arleen","arlena","arlene","arletha","arletta","arlette","arlinda","arline","arlyne","armanda","armandina","armbruster","armendariz","armenta","armentrout","armes","armida","armijo","arminda","armistead","armitage","armstead","armstrong","arndt","arneson","arnett","arnetta","arnette","arnita","arnold","arnone","aronson","arredondo","arreola","arriaga","arrington","arriola","arrowood","arruda","arsenault","arteaga","arthur","artie","artis","arvilla","arvizu","arwood","arzola","asberry","asbury","asha","ashanti","ashbaugh","ashburn","ashby","ashcraft","ashe","ashely","asher","ashford","ashlea","ashlee","ashleigh","ashley","ashli","ashlie","ashly","ashlyn","ashmore","ashton","ashworth","asia","askins","asley","assunta","aston","astrid","asuncion","atchison","atchley","atencio","athena","atherton","athey","atkins","atkinson","attaway","atwater","atwell","atwood","aube","aubin","aubrey","aucoin","audet","audette","audie","audra","audrea","audrey","audria","audrie","audry","augusta","augustin","augustina","augustine","augustus","ault","aultman","aundrea","aurea","aurelia","aurora","aurore","austin","auten","autrey","autry","ava","avalos","avelar","avelina","avent","averett","averill","avery","avila","aviles","avina","avis","avril","awilda","ayako","ayala","ayana","ayanna","aycock","ayer","ayers","ayesha","ayotte","azalee","azar","azevedo","azucena","azzie","babara","babb","babcock","baber","babette","babin","babineaux","baca","bachman","backman","backus","bader","badgett","badillo","baer","baez","baeza","bagby","baggett","bagley","bagwell","bahena","bahr","baier","bailes","bailey","baillargeon","baily","bain","baines","bair","baird","baisden","bakke","bakken","bakker","balch","balcom","balderas","baldridge","baldwin","ballance","ballard","ballenger","ballentine","ballesteros","ballew","ballinger","ballou","baltazar","balzer","bambi","banas","bancroft","bankhead","bankston","bannon","banta","banuelos","bao","baptiste","barabara","barahona","barajas","baran","baranowski","barba","barbar","barbara","barbee","barbera","barbieri","barbosa","barbour","barboza","barbra","barclay","barden","bardwell","barela","barfield","barger","barham","barhorst","barkley","barksdale","barlow","barnard","barner","barnes","barnett","barnette","barnhart","barnhill","barnum","barnwell","barone","barr","barragan","barraza","barrera","barreto","barrett","barrick","barrie","barrientos","barringer","barrington","barron","barros","barry","barta","bartel","bartell","bartels","barth","bartholomew","bartlett","bartley","barto","bartz","bascom","basham","basile","basilia","basinger","baskerville","baskin","bassett","bastian","batchelder","batchelor","bateman","batey","batista","batson","battaglia","battista","batton","baty","baucom","bauer","baugh","baugher","baughman","baum","bauman","baumann","baumgardner","baumgartner","bautista","baxley","bayer","bayless","baylor","bayne","bazan","bazemore","beaird","beal","beale","beall","beals","beaman","beamon","beane","bearden","beardsley","beasley","beason","beaton","beatrice","beatris","beatriz","beattie","beatty","beaty","beauchamp","beaudette","beaudoin","beaudry","beaulah","beaulieu","beaumont","beauregard","bebe","becerra","bechtel","bechtold","becker","beckett","beckford","beckham","becki","beckie","beckley","beckman","beckner","beckwith","becky","becnel","bedard","bedford","bedwell","beebe","beecher","beeler","beem","beeman","beene","beesley","beeson","begay","beggs","begley","behling","behr","behrens","bejarano","belanger","belden","belen","belew","belia","belinda","belisle","belk","belkis","belknap","bella","bellamy","belle","beller","bellinger","bello","belton","beltran","beltz","belva","bemis","benally","benavides","benavidez","benbow","benedetto","benedict","benefield","benfield","benford","benge","benham","benita","benites","benitez","benn","benner","bennett","bennie","benning","bennington","benoit","benson","bentley","benton","bentz","benz","berard","berenice","bergen","berger","bergeron","bergin","berglund","bergman","bergmann","bergquist","bergstrom","berkey","berkley","berkowitz","berman","bermudez","berna","bernadette","bernadine","bernal","bernard","bernarda","bernardina","bernardine","bernardo","berndt","berneice","berner","bernetta","bernhardt","bernice","bernie","berniece","bernier","bernita","bernstein","berrios","berryhill","berryman","berta","bertha","bertie","bertram","bertrand","berube","beryl","bess","bessette","bessie","betancourt","beth","bethanie","bethann","bethany","bethea","bethel","bethune","betsey","betsy","bette","bettencourt","bettie","bettina","bettis","betts","betty","bettyann","bettye","betz","beula","beulah","bev","bevan","beveridge","beverlee","beverley","beverly","bevins","bevis","bewley","beyer","bianca","bianchi","bianco","bibb","bibbs","bickel","bickerstaff","bickford","biddle","bidwell","bieber","bierman","bigelow","biggers","biggerstaff","bigham","bigler","bigley","bilbrey","biller","billi","billie","billingsley","billington","billiot","billups","billy","billye","bilodeau","bilyeu","binette","binford","bingaman","bingham","binion","binkley","binns","birchfield","birdsall","birdsong","birdwell","birgit","birmingham","birnbaum","birt","bischoff","bissell","bissonnette","bitner","bittner","bivens","bivins","bixby","bixler","blackburn","blackford","blackman","blackmon","blackmore","blackshear","blackstock","blackstone","blackwell","blaine","blair","blais","blaisdell","blake","blakely","blakemore","blakeney","blakeslee","blakey","blakley","blakney","blalock","blanc","blanca","blanch","blanchard","blanche","blanchette","blanding","blaney","blankenship","blanton","blaylock","bledsoe","blevins","bloch","blodgett","blomquist","blondell","bloodworth","bloomfield","blouin","blount","bluhm","blum","blume","blumenthal","bly","blythe","boardman","boatright","boatwright","bobb","bobbi","bobbie","bobbitt","bobby","bobbye","bobette","bobo","bocanegra","boddie","boden","bodine","bodnar","boehm","boettcher","bogard","bogart","boger","boggess","boggs","bohannan","bohannon","bohn","boisvert","bojorquez","bok","boland","bolanos","bolding","boldt","bolduc","bolen","boley","bolick","bolin","boling","bolinger","bollinger","bolton","bolyard","boman","bomar","bonanno","boney","bonham","bonilla","bonin","bonita","bonnell","bonner","bonnett","bonney","bonnie","bonny","bono","booher","booker","bookout","boone","boothe","bopp","borchardt","borchers","bordeaux","bordelon","borden","boren","borg","borges","borja","borkowski","borowski","borrego","borrero","borst","bosch","bosco","bosley","bost","bostic","bostick","bostwick","boswell","bosworth","botelho","botello","bouchard","boucher","boudreau","boudreaux","bouffard","boughton","bouie","boulanger","bouldin","boulware","bourassa","bourque","bousquet","boutin","boutte","boutwell","bova","bove","bowden","bowe","bowen","bowens","bowes","bowie","bowker","bowles","bowlin","boyce","boyd","boyer","boyes","boyett","boyette","boykin","boykins","boylan","boyle","boyles","boynton","bozarth","bozeman","bracey","brackett","bracy","bradberry","bradbury","braddock","braddy","braden","bradfield","bradford","bradley","bradshaw","brady","bragdon","bragg","brainard","braithwaite","braley","bramblett","bramlett","brammer","branda","brande","brandee","brandenburg","brandes","brandi","brandie","brandon","brandt","branham","brann","brannan","brannen","brannon","branscum","branson","brantley","branton","branum","brashear","braswell","bratcher","bratton","braud","brauer","braun","brawley","brawner","braxton","brayton","brazell","braziel","breana","breann","breanna","breanne","breault","breaux","breazeale","breckenridge","bree","breeden","breedlove","breen","brehm","breland","bremer","brenda","brenna","brennan","brenneman","brenner","bresnahan","brett","bretz","breunig","brewington","brewton","brian","briana","brianna","brianne","brice","briceno","bricker","brickey","bridgeman","bridgers","bridget","bridgett","bridgette","bridgewater","brien","brigette","briggs","brigham","brigid","brigida","brigitte","briley","brinda","brinker","brinkley","brinkman","brinson","brinton","briones","brisco","briscoe","briseno","brisson","brister","bristol","bristow","britany","britney","britni","brito","britt","britta","brittain","brittaney","brittani","brittanie","brittany","britteny","brittingham","brittney","brittni","brittny","britton","broadbent","broaddus","broadnax","broadus","broadwater","brochu","brockington","brockman","brockway","broderick","brodeur","brodie","brodsky","brody","brogdon","brokaw","bromley","bronson","bronwyn","brooke","brooker","brookins","brookshire","broome","broomfield","brophy","brotherton","broughton","broussard","browder","brower","browne","brownell","brownfield","brownlee","broyles","brubaker","bruce","brumbaugh","brumfield","brumley","brummett","bruna","brundage","brune","brunelle","bruner","brunilda","brunner","bruno","bruns","brunson","bruton","bryan","bryanna","bryant","bryce","brynn","bryson","bucci","buchanan","bucher","buchholz","buckingham","buckley","buckman","buckner","budd","budde","buehler","buell","buena","bueno","buenrostro","buettner","buffington","bufford","buffy","buford","bugg","buggs","bui","buie","bula","bulah","bullard","bullen","buller","bullington","bullins","bullis","bulter","bumgardner","bumgarner","bunn","bunnell","bunton","burbank","burch","burcham","burchell","burchett","burchette","burchfield","burdett","burdette","burdick","burdine","burford","burge","burgett","burgin","burgos","burkett","burkey","burkhalter","burkhardt","burkhart","burkholder","burleigh","burleson","burlingame","burma","burmeister","burnell","burnett","burnette","burney","burnham","burrell","burress","burris","burroughs","burrus","burruss","burson","burt","burwell","busch","bushey","bushnell","bussard","busse","bussell","bussey","bustamante","bustos","butterfield","butterworth","butz","buxton","buzzell","byars","bybee","byer","byerly","byers","byington","byler","bynum","byrd","byrne","byrnes","byron","byrum","caballero","caban","cabe","cabral","cabrales","cabrera","caceres","caddell","cadena","cadwell","cady","caffey","cagle","cahill","cahoon","caine","caines","caitlin","caitlyn","calabro","calandra","calder","calderon","caldwell","calfee","calhoun","calista","callaghan","callahan","callaway","callen","callender","callie","callihan","callis","callison","calloway","calton","calvert","calvillo","calvin","calvo","calzada","camacho","camara","camarena","camargo","camarillo","cambell","camelia","camellia","cameron","cami","camie","camila","camilla","camille","camire","cammack","cammie","cammy","campbell","campuzano","canada","canaday","canady","canales","candace","candance","candelaria","candelario","candi","candice","candida","candie","candis","candler","candra","candyce","cannady","cano","cantara","cantrell","cantu","cantwell","cao","capel","capone","capps","caprice","capuano","caputo","cara","caraballo","carbajal","carbaugh","carbone","carden","cardenas","cardin","cardinale","cardona","cardoso","cardoza","cardwell","caren","carey","cargile","cargill","cari","caridad","carie","carillo","carin","carina","carisa","carissa","carita","carl","carla","carlee","carleen","carlena","carlene","carleton","carletta","carley","carli","carlie","carlile","carlin","carline","carlisle","carlita","carlo","carlos","carlota","carlotta","carlsen","carlson","carlton","carly","carlyle","carlyn","carma","carmack","carman","carmel","carmela","carmelia","carmelina","carmelita","carmella","carmen","carmichael","carmina","carmody","carmon","carmona","carnahan","carner","carnes","caro","carola","carolann","carole","carolee","carolin","carolina","caroline","caroll","carolyn","carolyne","carolynn","caron","carothers","caroyln","carpio","carranza","carrasco","carrasquillo","carreno","carreon","carrera","carrero","carri","carrico","carrie","carrigan","carrillo","carrington","carrizales","carrol","carroll","carruth","carruthers","carson","carswell","cartagena","cartier","carty","caruso","caruthers","carvajal","carvalho","cary","caryl","carylon","caryn","casandra","casanova","casares","casarez","casavant","cascio","casey","cashman","casiano","casias","casie","casillas","casimira","caskey","cason","casper","cass","cassady","cassandra","cassaundra","cassel","cassell","cassey","cassi","cassidy","cassie","cassity","cassondra","cassy","castaneda","castano","castanon","casteel","castellano","castellanos","castello","castillo","castleberry","castleman","casto","caston","castorena","castro","caswell","catalan","catalano","catalina","catarina","caterina","catharine","cathcart","catherin","catherina","catherine","cathern","catheryn","cathey","cathi","cathie","cathleen","cathrine","cathryn","cathy","catina","catlett","catlin","cato","caton","catrice","catrina","catron","caudell","caudill","cauley","caulfield","cauthen","cavanaugh","cavazos","cavender","cavin","caviness","cawley","cawthon","cayla","caylor","cazares","ceasar","ceballos","cecelia","cecil","cecila","cecile","cecilia","cecille","cecily","cedeno","cedillo","ceja","celena","celesta","celeste","celestina","celestine","celia","celina","celinda","celine","celsa","centeno","ceola","cepeda","cerda","cervantes","cervantez","chabot","chacon","chadwell","chadwick","chae","chaffee","chaffin","chafin","chaisson","chalfant","chalmers","chamberlain","chamberlin","chamblee","chambless","chambliss","chamness","champlin","chan","chana","chanda","chandra","chanel","chanell","chanelle","chaney","chang","chantal","chantay","chante","chantel","chantell","chantelle","chao","chapa","chaparro","chapin","chaplin","chappell","chapple","chara","charbonneau","charest","charette","charis","charise","charissa","charisse","charita","charla","charland","charleen","charlena","charlene","charles","charlesetta","charlette","charley","charlie","charline","charlott","charlotte","charlsie","charlton","charlyn","charmain","charmaine","charolette","charron","chartier","chasidy","chasity","chassidy","chastain","chasteen","chatham","chatman","chau","chavarria","chavers","chaves","chavez","chavira","chavis","chaya","cheatham","chee","chelsea","chelsey","chelsie","chen","chenault","cheney","cheng","chenoweth","cher","chere","cheree","cherelle","cheri","cherie","cherilyn","cherise","cherly","cherlyn","cherri","cherrie","cherryl","chery","cheryl","cheryle","cheryll","chesser","chesson","chester","cheung","chewning","cheyenne","chiang","chidester","chieko","childers","childress","childs","chilton","ching","chinn","chipman","chiquita","chisholm","chism","chisolm","chitwood","chiu","chloe","cho","choate","choe","choi","chong","chouinard","chris","chrisman","chrissy","christ","christa","christal","christeen","christel","christen","christena","christene","christensen","christenson","christi","christia","christian","christiana","christiane","christiansen","christianson","christie","christin","christina","christine","christinia","christman","christmas","christner","christopher","christopherso","christy","chronister","chrystal","chu","chun","chung","churchill","churchwell","ciara","cicely","ciera","cierra","cimino","cinda","cinderella","cindi","cindie","cindy","cinthia","cintron","cioffi","cira","cisneros","claar","claiborne","clair","claire","clancy","clanton","clapp","clara","clardy","clare","clarence","claretha","claretta","claribel","clarice","clarinda","clarine","claris","clarisa","clarissa","clarita","clark","clarke","clarkson","classie","claude","claudette","claudia","claudie","claudine","claudio","claus","clausen","claussen","clawson","claxton","claycomb","claypool","claypoole","clayton","claytor","cleary","clegg","cleghorn","cleland","clelia","clemencia","clemens","clemente","clementina","clementine","clements","clemmer","clemmie","clemmons","clemons","cleo","cleopatra","cleora","cleotilde","cleta","cleveland","clevenger","clifford","clifton","clinkscales","clinton","cloninger","clora","clorinda","clotilde","clouse","cloutier","clower","clowers","cloyd","cluff","clyburn","clyde","clymer","coakley","coan","coates","cobos","coburn","cochran","cochrane","cockerham","cockrell","codi","cody","coe","coelho","coen","cofer","coffelt","coffey","coffman","cofield","cogan","coggins","cogswell","cohen","cohn","coker","colangelo","colbert","colburn","colby","coldiron","coleen","colella","coleman","colene","coletta","colette","collado","collazo","colleen","collen","collene","collett","collette","colletti","colley","collin","collins","collinsworth","collum","colman","colombo","colquitt","colson","colston","colton","colucci","colunga","colvin","colwell","comeau","comeaux","compton","comstock","conant","conaway","concepcion","concetta","concha","conchita","conde","condon","congdon","conklin","conley","conlin","conlon","connally","connell","connelly","connie","connolly","connor","connors","conover","conrad","conroy","constance","constantine","constantino","consuela","consuelo","contessa","conti","contreras","conway","conwell","conyers","cooke","cooksey","cookson","cooley","coolidge","coomer","cooney","copeland","copenhaver","copley","coppage","coppola","cora","coralee","coralie","corazon","corbett","corbin","corbitt","corcoran","cordeiro","cordelia","cordell","corder","cordero","cordes","cordia","cordie","cordoba","cordova","coreen","corene","coretta","corey","cori","corie","corina","corine","corinna","corinne","corley","corliss","cormier","cornejo","cornelia","cornelison","cornelius","cornell","cornish","cornwell","coronado","coronel","corpuz","corr","corrales","correa","correia","correll","corrie","corrigan","corrin","corrina","corrine","corrinne","corriveau","corson","cortes","cortese","cortez","cortney","corum","corwin","cory","cosby","cosentino","cosgrove","cosme","cosper","costanzo","costello","coston","cota","cothran","cotten","cottingham","cottle","cotto","cottrell","cottrill","coughlin","coulombe","coulson","courson","courtney","covarrubias","covington","cowart","cowden","cowell","cowen","cowgill","cowles","cowley","coyle","coyne","cozart","crabb","crabtree","craddock","crafton","craighead","crain","cramer","crampton","crandall","crandell","cranford","crawford","crawley","crayton","creech","creekmore","creighton","crenshaw","creola","crespo","creswell","cribb","cribbs","crider","crigger","crim","criner","crippen","cris","criselda","criss","crissman","crissy","crist","crista","cristal","cristen","cristi","cristie","cristin","cristina","cristine","cristy","criswell","crites","crittenden","crocker","crockett","cromer","cromwell","cronin","croom","crosby","crossland","crossley","crossman","crosson","croteau","crotty","crowe","crowell","crowl","crowley","crowson","crowther","croy","cruce","crum","crumley","crumpler","crumpton","crutcher","crutchfield","cruz","crysta","crystle","cuc","cuellar","cuevas","culbertson","culbreth","cullen","culley","cullum","culp","culpepper","cumming","cummings","cundiff","cunha","cunningham","cuomo","cupp","curcio","cureton","curiel","curley","curran","currey","currin","curtin","curtis","curtiss","cusack","cushing","cushman","cusick","custer","cuthbertson","cutright","cutshall","cyndi","cyndy","cynthia","cyr","cyrstal","cyrus","cythia","dabbs","dabney","dacia","dacosta","dade","daggett","dagmar","dagny","dagostino","dahlberg","dahlgren","dahlia","daigle","dail","dailey","daina","daine","daisey","dakota","dale","dalene","dalessandro","dalessio","daley","dalia","dalila","dallas","dalrymple","dalton","daly","damaris","damato","dambrosio","dameron","damian","damiano","damico","damon","dampier","damron","dan","dana","danae","dancy","dandrea","dandridge","danelle","danette","danford","danforth","dangelo","dangerfield","dani","dania","danica","daniel","daniela","daniele","daniell","daniella","danielle","daniels","danielson","danika","danille","danita","danley","dann","danna","danner","dannette","dannie","dannielle","dansby","dantzler","danuta","danyel","danyell","danyelle","dao","daphine","daphne","dara","darby","darcel","darcey","darci","darcie","darcy","dardar","darden","daria","darla","darleen","darlena","darlene","darline","darnell","darr","darrow","daryl","dashiell","dasilva","daugherty","daughtry","daves","davey","david","davida","davidson","davie","davies","davila","davina","davis","davison","davisson","davy","dawes","dawkins","dawna","dawne","dawson","daye","dayle","dayna","daysi","dayton","deadra","deana","deanda","deandra","deandrea","deane","deangelis","deangelo","deann","deanna","deanne","dearborn","dearing","dearman","deas","deason","deaton","deaver","deb","debbi","debbie","debbra","debby","debera","deberry","debi","deboer","debora","deborah","debose","debra","debrah","debroah","decarlo","decastro","deckard","decosta","decoteau","dede","dedra","dee","deeann","deeanna","deedee","deedra","deegan","deel","deen","deena","deering","deese","deetta","defazio","defelice","degraw","degroot","deguzman","dehart","dehaven","deherrera","deidra","deidre","deirdre","deitz","deja","dejesus","dejong","delacruz","delafuente","delagarza","delaine","delana","delancey","delaney","delano","delao","delapaz","delarosa","delatorre","delcie","delena","deleon","delfina","delgadillo","delgado","delia","delicia","delila","delilah","delinda","delisa","delisle","delk","dell","della","dellinger","delma","delmy","deloach","delois","deloise","delong","delora","deloras","delorenzo","delores","deloris","delorse","delossantos","delozier","delp","delpha","delphia","delphine","delrio","delrosario","delsie","deltoro","deluca","deluna","delvalle","delvecchio","demarco","demars","demello","demers","demetra","demetria","demetrice","demetrius","deming","demoss","dempsey","dena","denae","dendy","deneen","denese","denham","denice","denis","denise","denisha","denison","denisse","denita","denman","denna","dennard","denney","dennis","dennise","dennison","denny","densmore","denson","denton","denyse","deon","deonna","depalma","depew","depriest","derosa","derose","derosier","derouen","derr","derryberry","desai","desalvo","desantis","desilva","desimone","desirae","desiree","desjardins","desmarais","desmond","desouza","despain","despina","desrochers","desrosiers","dessie","destefano","detra","detwiler","deutsch","devaney","devaughn","devault","dever","deville","devin","devine","devito","devlin","devoe","devon","devona","devora","devorah","devore","devries","dewberry","deweese","dewey","deyo","deyoung","dia","dian","diana","diane","diann","dianna","dianne","dias","diaz","dicarlo","dicken","dickenson","dickerson","dickinson","dickman","dickson","diedra","diedre","diego","diehl","diep","dierdre","dietrich","dietz","diez","diggins","diggs","digiacomo","digiovanni","digna","dillard","diller","dilley","dillingham","dillion","dillman","dillon","dillow","dilorenzo","dilworth","dimaggio","dimarco","dimmick","dina","dinah","dineen","dingess","dingman","dinh","dinkins","dinorah","dinsmore","dion","dione","dionna","dionne","diorio","dipietro","dishman","dismuke","disney","distefano","dittman","dittmer","divina","dix","dixie","dixon","dixson","dizon","doak","doan","doane","dobbs","dobson","doby","dockery","dodd","dodds","dodie","dodson","doering","doerr","doggett","doherty","doiron","dolan","dollie","dolores","doloris","dombrowski","domenica","dominga","domingo","dominguez","dominica","dominick","dominique","dominque","dominquez","domitila","domonique","dona","donahue","donald","donaldson","donato","donegan","donella","donelson","donetta","donette","doney","donita","donley","donna","donnell","donnelly","donner","donnetta","donnette","donnie","donofrio","donohoe","donohue","donovan","donya","doody","dooley","doolittle","dora","doran","dorathy","dorcas","dore","doreatha","doreen","dorene","doretha","dorethea","doretta","dori","doria","dorian","dorie","dorinda","dorine","doris","dorla","dorman","dorn","dorotha","dorothea","dorothy","dorris","dorsett","dorsey","dortch","dortha","dorthea","dorthey","dorthy","dorton","dostie","dotson","dottie","dotty","doucette","doud","dougherty","douglas","douglass","dovie","dowdell","dowden","dowell","dowling","downes","downey","doyle","doyon","drayton","dreama","dreher","drema","drennan","drennen","dressler","drews","dreyer","driggers","driscoll","driskell","drouin","drucilla","drumm","drummond","drury","drusilla","dryden","drye","duarte","dube","dubois","dubose","ducharme","duckett","duckworth","duclos","duda","dudek","dudley","duenas","duffey","duffy","dufour","dufrene","dufresne","dugan","dugas","duggan","dugger","duggins","duhon","dulaney","dulce","dulcie","duley","dulin","dumont","dunagan","dunaway","dunbar","duncan","dunford","dungan","dunham","dunigan","dunkin","dunkle","dunlap","dunleavy","dunlop","dunn","dunne","dunson","dunston","dunton","duong","duplessis","dupont","dupre","dupree","duprey","dupuis","duque","duquette","duran","durand","durante","durbin","durden","duren","durfee","durham","durkee","durkin","duron","durr","durrett","dusti","dustin","dutcher","dutra","dutton","duval","duvall","dvorak","dwana","dwyer","dyan","dykstra","dyson","eaddy","eades","eads","eady","eagan","eakin","eakins","eames","eanes","earle","earlean","earleen","earlene","earley","earlie","earline","earnestine","earp","eartha","easley","eason","easterday","eastman","easton","eastwood","eatmon","eaton","eberhardt","eberle","eberly","ebersole","ebert","ebner","eboni","ebonie","eby","eccles","echevarria","echeverria","echols","eck","eckard","eckenrode","ecker","eckert","eckhardt","ecklund","eckman","eckstein","eda","edda","eddie","eddings","eddington","eddins","edelman","edelmira","edelstein","eden","edens","edgar","edgerton","edgington","edie","edington","edison","edith","edmiston","edmond","edmonds","edmondson","edmonson","edmunds","edmundson","edna","edra","edris","edson","edward","edwards","edwina","edyth","edythe","effie","egan","egbert","eggert","eggleston","ehlers","ehrlich","ehtel","eichelberger","eicher","eichhorn","eichler","eidson","eiland","eileen","eilene","eisele","eisenberg","eklund","ela","eladia","elaina","elaine","elam","elana","elane","elanor","elayne","elba","elbert","elda","eldora","eldred","eldredge","eldridge","eleanor","eleanora","eleanore","elease","elena","elene","eleni","elenor","elenora","elenore","eleonor","eleonora","eleonore","eley","elfreda","elfrieda","elfriede","elgin","elia","eliana","elias","eliason","elicia","elida","elidia","elin","elina","elinor","elinore","elisa","elisabeth","elise","elisha","elissa","eliz","eliza","elizabet","elizabeth","elizbeth","elizebeth","elizondo","elke","elkins","ella","ellamae","ellan","elledge","ellen","ellena","ellender","eller","elli","ellie","ellinger","ellingson","ellington","elliot","elliott","ellis","ellison","ellsworth","elly","ellyn","elma","elmer","elmira","elmore","elna","elnora","elodia","elois","eloisa","eloise","elouise","elrod","elsa","elsie","elson","elston","elswick","elsy","elva","elvera","elvia","elvie","elvina","elvira","elwanda","elwell","elwood","ely","elyse","elza","ema","emanuel","embree","embrey","embry","emelda","emelia","emelina","emeline","emely","emerick","emerita","emerson","emiko","emilee","emilia","emilie","emily","emma","emmaline","emmert","emmett","emmie","emmons","emmy","emogene","emory","emrich","emrick","encarnacion","enciso","enda","endicott","endres","endsley","enedina","eneida","eng","engel","engelhardt","england","engle","engleman","engler","englert","english","engstrom","enid","enloe","ennis","enoch","enola","enos","enright","enriqueta","enriquez","ensor","epifania","epley","epperson","epps","epstein","erb","erdman","erdmann","eric","erica","ericka","erickson","ericson","erika","erin","erinn","erlene","erlinda","erline","erma","ermelinda","erminia","erna","ernest","ernestina","ernestine","ernst","erskine","ervin","erwin","eryn","escalante","escalera","escamilla","escobar","escobedo","eshelman","eskew","eskridge","eslinger","esmeralda","esparza","esperanza","espinal","espino","espinosa","espinoza","esposito","esqueda","esquibel","esquivel","essary","essex","essie","esta","estabrook","estefana","estela","estell","estella","estelle","estep","ester","estes","estevez","esther","estrada","estrella","etha","ethel","ethelene","ethelyn","etheridge","ethridge","ethyl","etienne","etsuko","etta","etter","ettie","eubank","eubanks","eudy","eufemia","eugena","eugene","eugenia","eugenie","eulah","eulalia","eun","euna","eunice","eura","eure","eusebia","eustolia","eva","evalyn","evan","evangelina","evangeline","evangelista","evans","eveland","evelia","evelin","evelina","eveline","evelyn","evelyne","evelynn","evenson","everett","everette","everhart","evers","eversole","everson","evette","evia","evie","evita","evon","evonne","ewa","ewald","ewell","ewing","exie","exum","eyler","ezell","ezzell","faber","fabian","fabiola","fabrizio","fagan","fahey","fairbanks","fairchild","faircloth","fairfield","fairley","faison","fajardo","falco","falcone","falgoust","falgout","falk","falkner","fallon","fancher","fanelli","fann","fannie","fannin","fanny","fant","farah","farber","faria","farias","faris","farkas","farley","farnham","farnsworth","farr","farrah","farrar","farrell","farrington","farris","farwell","fasano","fassett","fatima","fatimah","faucher","faught","faulk","faulkner","faust","faustina","faviola","fawcett","faye","fazio","featherston","featherstone","fecteau","feder","federico","feeley","feeney","fehr","feinberg","feinstein","felder","feldman","felecia","felica","felice","felicia","feliciano","felicidad","felicita","felicitas","felipa","felipe","felisa","felisha","felix","felker","feltner","felton","fenderson","fendley","fenn","fennell","fenner","fenske","fenton","fenwick","ferebee","ferguson","ferland","fermina","fernanda","fernande","fernandes","fernandez","fernando","ferne","ferrante","ferrari","ferraro","ferree","ferreira","ferrell","ferrer","ferretti","ferri","ferrin","ferris","ferro","fessler","fewell","fick","fidela","fidelia","fidler","fiedler","fierro","fifield","figueroa","fike","fikes","fillmore","filomena","fincher","findlay","findley","finke","finkelstein","finkle","finlay","finley","finn","finnegan","finnell","finney","fiona","fiore","fischer","fiscus","fishman","fiske","fite","fitz","fitzgerald","fitzhugh","fitzpatrick","fitzsimmons","fitzwater","flagg","flaherty","flanagan","flanders","flanigan","flannery","flatt","flavia","fleenor","fleetwood","fleischer","fleischman","flemming","fleta","flickinger","flinn","florance","florencia","florene","florentina","flores","floretta","florez","floria","florinda","florine","florio","florrie","flossie","flournoy","floy","floyd","fluellen","fluker","flynn","flynt","fogarty","fogel","fogg","foley","follett","folse","folsom","foltz","fonda","fong","fonseca","fontaine","fontana","fontanez","fontenot","fontes","foote","foran","forbes","forbis","forcier","forde","fordham","foret","forman","forney","forrest","forrester","forsberg","forster","forsyth","forsythe","fortenberry","fortier","fortin","fortner","fortney","fortson","fortuna","fortunato","foti","fournier","foust","fouts","fowlkes","foxworth","frady","fraga","fraley","frampton","fran","france","francene","frances","francesca","franchesca","francie","francina","francine","francis","francisca","francisco","franck","franco","francois","francoise","franke","frankel","frankie","franko","fransisca","frantz","franz","franzen","fraser","frasier","frausto","frawley","frazee","frazer","frazier","frechette","fred","freda","fredda","freddie","frederica","frederick","fredericka","fredericks","frederickson","fredette","fredia","fredrick","fredricka","fredrickson","freeda","freeland","freese","fregoso","freida","freitag","freitas","fretwell","freund","frey","frias","frick","fricke","frida","friday","frieda","friedman","friedrich","friel","frierson","friesen","frink","frisbee","frisbie","frisby","frisch","fritts","fritz","frizzell","froehlich","fromm","fruge","frye","fuchs","fuentes","fugate","fuhrman","fujimoto","fulbright","fulcher","fulford","fulk","fulkerson","fulks","fullerton","fullmer","fulmer","fulton","fults","fultz","fumiko","funches","funderburk","fung","funke","funkhouser","fuqua","furman","furr","furst","furtado","fusco","fussell","futch","futrell","fye","gabel","gabriel","gabriela","gabriele","gabriella","gabrielle","gaddis","gaddy","gadson","gaffney","gagliano","gagliardi","gagne","gagnon","gailey","gaines","gainey","gaitan","gaither","galan","galarza","galbraith","galbreath","galicia","galina","galindo","gallagher","gallaher","gallardo","gallaway","gallego","gallegos","galligan","gallion","gallman","gallo","galloway","gallup","galvan","galvez","galvin","gamache","gambill","gamboa","gambrell","gamez","gandy","gann","gannon","gantt","gantz","gaona","garay","garber","garcia","gard","gardiner","gardner","garfield","garibay","garica","garman","garmon","garnet","garnett","garofalo","garrard","garretson","garrett","garrick","garrido","garris","garrity","garrow","garry","gartner","garton","garver","garvey","garvin","gary","garza","gasaway","gaskill","gaspar","gaspard","gass","gassaway","gastelum","gaston","gatewood","gatlin","gatling","gattis","gatto","gaudet","gaudette","gaudreau","gaughan","gaul","gause","gauthier","gauvin","gavin","gayden","gaye","gayla","gayle","gaylene","gaylor","gaylord","gaynell","gaynelle","gaynor","gaytan","gayton","gearhart","gearldine","geary","gebhardt","gebhart","geddes","geer","gehring","gehrke","geier","geiger","geis","geisler","gelinas","geller","gema","gendron","genevie","genevieve","genevive","genia","genna","gennie","genny","genovese","genoveva","georgann","george","georgeann","georgeanna","georgene","georgetta","georgette","georgia","georgiana","georgiann","georgianna","georgianne","georgie","georgina","georgine","gerald","geraldine","geralyn","gerard","gerber","gerda","gerdes","gerena","gerhardt","gerhart","geri","gerlach","germaine","germany","gerri","gerry","gertha","gertie","gertrud","gertrude","gertrudis","gertude","gervais","geter","getty","getz","geyer","ghislaine","gholston","gia","gianna","gibb","gibbs","gibson","giddens","giddings","gideon","gidget","giese","giffin","gifford","gigi","giglio","giguere","gil","gilberte","gilbertson","gilbreath","gilchrist","gilda","gile","giles","gilkey","gillam","gillard","gillen","gillenwater","gilles","gillespie","gillett","gillette","gilley","gilliam","gillian","gilliard","gilligan","gilliland","gillis","gillispie","gillman","gillum","gilma","gilman","gilmer","gilmore","gilpin","gilreath","gilroy","gilson","gilstrap","gina","ginder","ginette","gingerich","gingras","gingrich","ginny","ginsberg","ginter","giordano","giovanna","gipson","girard","giroux","gisela","gisele","giselle","gish","gita","gittens","giuseppina","givens","gladis","gladney","gladstone","glady","gladys","glaser","glasgow","glasper","glasscock","glasser","glayds","gleason","glenda","glendora","glenn","glenna","glennie","glennis","glick","glidden","glidewell","glinda","glisson","gloria","gluck","glynda","glynis","glynn","gober","goble","godbey","goddard","godfrey","godin","godinez","godoy","godsey","godwin","goebel","goetz","goforth","goines","goins","golda","goldberg","goldfarb","golding","goldman","goldsberry","goldstein","gomes","gomez","gonsalez","gonsalves","gonzales","gonzalez","gooch","goodale","goodall","goode","goodell","gooden","goodin","gooding","goodloe","goodnight","goodrich","goodrum","goodsell","goodson","goodwin","goolsby","gordan","gordon","gordy","goree","gorham","gorman","gormley","gorski","gorton","goshorn","gosnell","goss","gosselin","gossett","gott","gottlieb","gottschalk","gough","gould","goulet","gourley","gouveia","govan","gove","govea","gowen","gower","goyette","graber","grabowski","gracia","gracie","graciela","grady","graf","graff","grafton","gragg","graham","grajeda","grammer","granado","granados","grantham","granville","grasso","grau","gravitt","gravois","graybill","grayce","grayson","graziano","grazyna","greathouse","greco","greeley","greenberg","greene","greenhaw","greenlaw","greenleaf","greenlee","greenwald","greenway","greenwell","greer","greeson","gregg","gregoire","gregor","gregoria","gregorio","gregory","greig","greiner","grenier","gresham","greta","gretchen","gretta","gricelda","grider","grieco","griego","grier","griffen","griffey","griffis","griffith","griffiths","grigg","griggs","grigsby","grijalva","grillo","grimaldi","grimaldo","grimm","grimmett","grimsley","grindle","griner","grisby","grisel","griselda","grisham","grissom","griswold","groce","groff","grogan","groh","grose","grossman","grosso","groth","grover","grubb","grubbs","grube","gruber","grundy","guadalupe","guajardo","guardado","guarino","guay","gudrun","guenther","guerin","guerra","guerrero","guertin","guevara","guffey","guido","guidry","guilford","guillen","guillermina","guillermo","guillory","guillot","guimond","guinn","gulick","gulledge","gullett","gumm","gump","gunderson","gunn","gunther","gupta","gupton","gurley","gurrola","gurule","gusman","gussie","gustafson","gustin","guth","guthrie","gutierrez","gutshall","guyer","guyette","guyton","guzman","gwen","gwenda","gwendolyn","gwenn","gwin","gwinn","gwyn","gwyneth","haag","haas","haase","haber","haberman","hackett","hackman","hackworth","haddad","haddix","hadfield","hadley","hadlock","hae","hafer","haffner","hafner","haga","hagan","hagans","hagar","hage","hageman","hagen","hager","hagerman","hagerty","haggerty","hagler","hagood","hague","hagy","hahn","haigh","haight","haile","hailey","haines","haire","hairston","halcomb","hales","haley","halford","halina","halle","haller","hallett","halley","halliburton","halliday","hallie","hallman","hallock","halloran","hallowell","halpern","halpin","halsey","halstead","halverson","halvorsen","halvorson","hamann","hamblin","hambrick","hamby","hamel","hamer","hamill","hamilton","hamlett","hamlin","hamm","hammack","hamman","hammel","hammett","hammon","hammond","hammonds","hammons","hamner","hampson","hampton","hamrick","han","hana","hancock","handley","hanes","haney","hanh","hanke","hankins","hanley","hanlon","hann","hanna","hannah","hannan","hannelore","hanner","hannigan","hannon","hanrahan","hans","hansen","hanson","harbaugh","harber","harbin","harbison","hardaway","hardcastle","hardee","hardeman","hardesty","hardie","hardiman","hardin","harding","hardison","hardman","hardnett","hardwick","hargett","hargis","hargrave","hargrove","harker","harkey","harkins","harkness","harlan","harless","harley","harlow","harmon","harner","harney","haro","harold","harr","harrell","harrelson","harriet","harriett","harriette","harrigan","harriman","harrington","harris","harrison","harrod","harrold","harter","hartfield","hartford","hartle","hartley","hartman","hartmann","hartnett","hartsell","hartsfield","hartsock","hartung","hartwell","hartwig","harty","hartz","hartzell","hartzog","harvell","harvey","harville","harvin","harwell","harwood","hashimoto","haskell","haskins","hass","hassan","hassell","hassett","hassie","hassler","hasson","hatchett","hatfield","hathaway","hathcock","hathorn","hatley","hatten","hattie","hatton","hauck","haug","haugen","haun","haupt","hauser","havard","haviland","hawes","hawkes","hawkins","hawkinson","hawley","hawn","haworth","hawthorne","hayashi","haydee","hayden","haydon","hayes","haygood","hayley","hayman","hayner","haynes","haynie","haywood","hazelton","hazelwood","hazen","hazlett","hazzard","headley","headrick","healey","healy","heaney","hearn","hearne","heather","heatherly","heaton","hebert","hecht","hecker","heckman","hedden","hedgepeth","hedrick","hedwig","hedy","hee","heffernan","heffner","heflin","hefner","hegarty","heide","heidi","heidy","heike","heil","heilman","heim","hein","heine","heinrich","heins","heintz","heinz","heise","heiser","heisler","helaine","helen","helena","helene","helfrich","helga","helgeson","hellen","hellman","helman","helmer","helmick","helmuth","helton","helwig","hembree","hemingway","hemphill","hendershot","henderson","hendley","hendon","hendren","hendrick","hendricks","hendrickson","hendrix","hendry","henke","henkel","henley","hennessey","hennessy","henninger","henrietta","henriette","henriques","henriquez","henry","hensel","henshaw","hensley","henson","henton","hepburn","hepler","hepner","herbert","herbst","heredia","hereford","herlinda","herma","herman","hermann","hermelinda","hermes","hermila","hermina","hermine","herminia","hermosillo","hernadez","hernandes","hernandez","herndon","herod","herold","herr","herren","herrera","herrick","herrin","herrington","herrmann","herrod","herron","hersey","hersh","hershberger","hershey","herta","hertel","hertha","herzog","hess","hesse","hesson","hester","hetrick","hettie","hetzel","heuer","hewett","hewitt","hewlett","heyer","heyward","heywood","hiatt","hibbard","hibbert","hibbler","hibbs","hickerson","hickman","hickok","hickox","hickson","hiedi","hien","hiers","higa","higbee","higdon","higginbotham","higgins","higgs","highsmith","hightower","higley","hilaria","hilary","hilbert","hilburn","hilda","hilde","hildebrand","hildebrandt","hildegard","hildegarde","hildred","hildreth","hileman","hiles","hillard","hillary","hiller","hilliard","hillis","hillman","hillyer","hilma","hilton","himes","hinckley","hindman","hine","hines","hinkle","hinkley","hinman","hinojosa","hinrichs","hinshaw","hinson","hinton","hintz","hinz","hipp","hiroko","hirsch","hirst","hisako","hitchcock","hite","hitt","hix","hixon","hixson","hoa","hoag","hoagland","hoang","hobart","hobbs","hobson","hoch","hochstetler","hockenberry","hockett","hodge","hodges","hodgkins","hodgson","hodson","hoekstra","hoelscher","hoey","hofer","hoff","hoffer","hoffman","hoffmann","hofmann","hoggard","hogue","holbert","holbrook","holcomb","holcombe","holguin","holifield","holladay","hollander","hollar","hollenbeck","holley","holli","holliday","hollie","hollifield","holliman","hollinger","hollingshead","hollingsworth","hollins","hollis","hollister","holloman","holloway","hollowell","holman","holmberg","holmes","holmgren","holmquist","holsinger","holst","holstein","holston","holter","holton","holtz","holzer","hom","homan","honaker","honea","honeycutt","hoopes","hooten","hopkins","hoppe","hopson","horan","hord","horgan","hornback","hornbeck","horne","hornsby","horowitz","horrocks","horsley","horta","hortencia","hortense","hortensia","horton","horvath","hosey","hoskins","hosmer","hostetler","hostetter","hotchkiss","houchens","houck","houghton","houk","houle","houlihan","householder","houser","housley","housman","houston","hovey","hovis","howard","howarth","howell","howells","hower","howerton","howie","howland","howlett","howse","howze","hoye","hoyle","hoyos","hoyt","hsiu","hsu","hua","huang","hubbard","hubbell","hubble","hubbs","huber","hubert","huckaby","hudak","huddleston","hudgens","hudgins","hudnall","hudson","hudspeth","huebner","huerta","huertas","huey","huffman","hufford","huggins","hughes","hughey","hughs","hui","huie","hulbert","hulda","hulett","hulse","hulsey","humbert","hume","humes","humphrey","humphreys","humphries","hundley","huneycutt","hungerford","hunley","hunnicutt","hunsaker","huntington","huntley","huong","hupp","hurd","hurlburt","hurtado","huskey","hussey","husted","huston","hutchens","hutcherson","hutcheson","hutchings","hutchins","hutchinson","hutchison","huth","hutson","hutt","hutto","hutton","huynh","hwa","hwang","hyacinth","hyatt","hyde","hyden","hyder","hye","hyland","hylton","hyman","hynes","hyo","hyon","hysell","hyun","ibanez","ibarra","ibrahim","ickes","idell","idella","iesha","iglesias","ignacia","ilana","ilda","ileana","ileen","ilene","iliana","ilona","ilse","iluminada","imelda","imes","imhoff","imogene","india","indira","inell","ines","inez","inga","ingalls","ingeborg","ingersoll","ingham","ingraham","ingrid","inman","inocencia","iona","ione","ira","iraida","irby","ireland","irena","irene","irick","irina","irish","irizarry","irma","irmgard","irvin","irvine","irving","irwin","iryna","isa","isaac","isaacs","isaacson","isabel","isabell","isabella","isabelle","isadora","isaura","isbell","isela","isenberg","isham","isidra","isis","islas","isley","isobel","isom","ison","israel","ito","ivana","ivelisse","iverson","ives","ivette","ivey","ivie","ivonne","izaguirre","izetta","izola","izzo","jablonski","jacalyn","jacelyn","jacinda","jacinta","jacinto","jackeline","jackelyn","jacki","jackie","jacklyn","jackqueline","jackson","jaclyn","jaco","jacob","jacobi","jacobo","jacobs","jacobsen","jacobson","jacoby","jacqualine","jacque","jacquelin","jacqueline","jacquelyn","jacquelyne","jacquelynn","jacques","jacquetta","jacquez","jacqui","jacquie","jacquiline","jacquline","jacqulyn","jada","jadwiga","jae","jaffe","jahn","jahnke","jaime","jaimee","jaimes","jaimie","jalbert","jaleesa","jalisa","jama","jame","jamee","jamerson","james","jameson","jamey","jami","jamie","jamieson","jamika","jamila","jamison","jammie","jan","jana","janae","janay","jane","janean","janee","janeen","janel","janell","janella","janelle","janene","janessa","janet","janeth","janett","janetta","janette","janey","jani","janice","janie","janiece","janina","janine","janis","janise","janita","jankowski","jann","janna","jannet","jannette","jannie","jansen","janson","janssen","janyce","jaqueline","jaquelyn","jaques","jaquez","jara","jaramillo","jarboe","jardine","jarman","jarmon","jarrell","jarrett","jarvis","jason","jasso","jaunita","jauregui","javier","jaworski","jaye","jayme","jaymie","jayna","jayne","jaynes","jazmin","jazmine","jeana","jeanbaptiste","jeane","jeanelle","jeanene","jeanett","jeanetta","jeanette","jeanice","jeanie","jeanine","jeanlouis","jeanmarie","jeanna","jeanne","jeannetta","jeannette","jeannie","jeannine","jeffcoat","jefferies","jeffers","jefferson","jeffery","jeffie","jeffrey","jeffreys","jeffries","jemison","jen","jena","jenae","jene","jenee","jenell","jenelle","jenette","jeneva","jeni","jenice","jenifer","jeniffer","jenine","jenise","jenkins","jenks","jenna","jennefer","jennell","jennette","jenni","jennie","jennifer","jenniffer","jennine","jennings","jenny","jensen","jenson","jepson","jeraldine","jeremy","jeri","jerica","jerilyn","jerlene","jernigan","jerome","jerri","jerrica","jerrie","jerry","jesenia","jesica","jeske","jesse","jessee","jessen","jessenia","jessi","jessia","jessica","jessie","jessika","jessup","jestine","jesus","jesusa","jesusita","jeter","jett","jetta","jettie","jewell","jewett","jiles","jill","jillian","jim","jimenez","jimerson","jiminez","jimmie","joan","joana","joane","joanie","joann","joanna","joanne","joannie","joaquina","jobe","jocelyn","jodee","jodi","jodie","jody","joe","joeann","joel","joella","joelle","joellen","joeseph","joesph","joetta","joette","joey","johana","johanna","johanne","johansen","johanson","john","johna","johnetta","johnette","johnie","johnna","johnnie","johnny","johnsen","johnsie","johnson","johnston","johnstone","joi","joie","jolanda","joleen","jolene","jolie","jolin","joline","jolley","jolyn","jolynn","jon","jona","jonas","jone","jonell","jonelle","jones","jong","joni","jonie","jonna","jonnie","joplin","jordan","jordon","jorge","jorgensen","jorgenson","jose","josefa","josefina","josefine","joselyn","joseph","josephina","josephine","josephson","josette","josey","joshua","josie","joslin","joslyn","josphine","jost","joubert","jovan","jovita","jowers","joya","joyce","joycelyn","joye","joyner","juan","juana","juanita","juarez","judd","jude","judi","judie","judith","judkins","judson","judy","jule","julee","julene","juli","julia","julian","juliana","juliane","juliann","julianna","julianne","julie","julieann","julien","julienne","juliet","julieta","julietta","juliette","julio","julissa","julius","jung","junie","junita","junko","jurado","justa","justin","justina","justine","justus","jutta","kacey","kaci","kacie","kacy","kaczmarek","kahl","kahle","kahler","kahn","kaila","kaitlin","kaitlyn","kala","kaleigh","kaley","kali","kallie","kalyn","kam","kamala","kami","kamilah","kaminski","kaminsky","kammerer","kamp","kandace","kandi","kandice","kandis","kandra","kandy","kane","kanesha","kanisha","kantor","kao","kaplan","kapp","kara","karan","kareen","karen","karena","karey","kari","karie","karima","karin","karina","karine","karisa","karissa","karl","karla","karleen","karlene","karly","karlyn","karmen","karnes","karns","karol","karole","karoline","karolyn","karon","karp","karr","karren","karri","karrie","karry","kary","karyl","karyn","kasandra","kasey","kasha","kasi","kasie","kasper","kass","kassandra","kassie","kasten","kastner","kate","katelin","katelyn","katelynn","katerine","kates","kathaleen","katharina","katharine","katharyn","kathe","katheleen","katherin","katherina","katherine","kathern","katheryn","kathey","kathi","kathie","kathleen","kathlene","kathline","kathlyn","kathrin","kathrine","kathryn","kathryne","kathy","kathyrn","kati","katia","katie","katina","katlyn","kato","katrice","katrina","kattie","katy","katz","kauffman","kaufman","kaufmann","kautz","kavanagh","kavanaugh","kay","kayce","kaycee","kaye","kayla","kaylee","kayleen","kayleigh","kaylene","kaylor","kayser","kazuko","kean","keane","kearney","kearns","kearse","keating","keaton","kecia","kee","keefe","keefer","keegan","keele","keeley","keely","keena","keenan","keene","keeney","keesee","keesha","keeter","keeton","keever","keffer","kehoe","keiko","keil","keila","keim","keira","keiser","keisha","keith","keitha","keitt","keli","kellam","kellar","kelle","kellee","kelleher","keller","kellerman","kelley","kelli","kellie","kellner","kellogg","kellum","kelly","kellye","kelm","kelsey","kelsi","kelsie","kelso","kelton","kemberly","kempf","kena","kenda","kendal","kendall","kendra","kendrick","kendricks","kenia","kenisha","kenna","kennard","kennedy","kenneth","kenney","kennon","kenny","kenya","kenyatta","kenyetta","kenyon","keown","kephart","kepler","kera","kerby","keren","keri","kerley","kerr","kerri","kerrie","kerrigan","kerry","kershaw","kershner","kerstin","kesha","keshia","kesler","kessel","kessinger","kessler","kester","kesterson","ketcham","ketchum","ketron","keturah","keva","kevin","keyes","keyser","khadijah","khalilah","khoury","kia","kiana","kiara","kibler","kidd","kidwell","kiefer","kieffer","kiel","kiely","kiera","kiernan","kiersten","kiesha","kiger","kight","kilburn","kilby","kile","kiley","kilgore","killebrew","killen","killian","killingsworth","killion","killough","kilmer","kilpatrick","kim","kimball","kimber","kimberely","kimberlee","kimberley","kimberli","kimberlie","kimberlin","kimberly","kimbery","kimble","kimbra","kimbrell","kimbro","kimbrough","kimes","kimi","kimiko","kimmel","kimsey","kimura","kina","kinard","kincaid","kindra","kingery","kingsbury","kingsley","kingston","kinlaw","kinnard","kinney","kinsella","kinser","kinsey","kinsler","kinsley","kinslow","kinzer","kira","kirby","kirchner","kirkendall","kirkham","kirkland","kirkpatrick","kirksey","kirkwood","kirschner","kirsten","kirstie","kirstin","kirtley","kirwan","kiser","kisha","kisner","kissinger","kistler","kittie","kittrell","kitts","kitty","kiyoko","kizer","kizzie","kizzy","klara","klatt","klaus","klein","kline","kling","klingensmith","klinger","klink","klotz","klug","knapp","knecht","knepper","knighten","knighton","knisley","knopp","knorr","knott","knotts","knowles","knowlton","knox","knudsen","knudson","knuth","knutson","kobayashi","koch","kocher","koehler","koehn","koenig","koerner","koester","koger","kohler","kohn","kolb","koller","kong","konrad","koon","koonce","koons","koontz","koopman","kopp","kori","korn","kornegay","korte","kortney","koski","koster","kourtney","kovac","kovach","kovacs","kowal","kowalczyk","kowalewski","kowalski","kozak","koziol","kozlowski","kraemer","krall","kramer","kratz","kratzer","kraus","krause","krauss","krawczyk","krebs","kremer","kress","krick","krieg","krieger","kris","krishna","krissy","krista","kristal","kristan","kristeen","kristel","kristen","kristi","kristian","kristie","kristin","kristina","kristine","kristle","kristy","kristyn","kroeger","krohn","krol","kroll","kropp","krouse","krueger","krug","kruger","krumm","kruse","krysta","krystal","krysten","krystin","krystina","krystle","krystyna","kubiak","kucera","kuehl","kuehn","kugler","kuhl","kuhlman","kuhlmann","kuhn","kuhns","kujawa","kulp","kum","kumar","kunkel","kunkle","kuntz","kunz","kurth","kurtz","kushner","kuster","kutz","kuykendall","kwan","kwiatkowski","kwon","kyla","kyle","kylee","kylie","kym","kymberly","kyoko","kyong","kyra","kyser","kyung","labarbera","labbe","labelle","labonte","laboy","labrecque","labrie","lacasse","lacey","lach","lachance","lachelle","laci","lacie","laclair","lacombe","lacour","lacresha","lacroix","ladawn","ladd","ladner","ladonna","lael","lafave","lafayette","lafferty","laflamme","lafleur","lafollette","lafond","lafontaine","lafountain","lafrance","lafreniere","lagasse","laguna","lagunas","lahoma","lahr","lai","lail","laila","laine","laing","lajoie","lajuana","lakeesha","lakeisha","lakendra","lakenya","lakesha","lakeshia","lakey","lakia","lakiesha","lakisha","lakita","lala","laliberte","lally","lalonde","lamanna","lamar","lambrecht","lamere","lamkin","lamm","lamonica","lamont","lamontagne","lamoreaux","lamothe","lamoureux","lampe","lampkin","lampley","lana","lancaster","landa","landeros","landes","landin","landis","landon","landreth","landrum","landry","lanell","lanelle","lanette","laney","lang","langan","langdon","lange","langer","langevin","langford","langham","langley","langlois","langston","lanham","lani","lanie","lanier","lanita","lankford","lannie","lanning","lanora","lansing","lantz","lanza","lao","lapierre","laplante","lapoint","lapointe","laporte","lapp","laquanda","laquita","lara","larae","laraine","laree","largent","larhonda","larios","larisa","larissa","larita","lariviere","larkin","larkins","larocca","laroche","larochelle","larock","laronda","larosa","larose","larrabee","larraine","larry","larsen","larson","larue","lasalle","lasandra","lasater","lashanda","lashandra","lashaun","lashaunda","lashawn","lashawna","lashawnda","lashay","lashell","lashley","lashon","lashonda","lashunda","laskowski","lasky","lasley","lasonya","lasseter","lassiter","latanya","latarsha","latasha","latashia","latesha","latham","lathan","lathrop","latia","laticia","latimer","latina","latisha","latonia","latonya","latoria","latosha","latour","latoya","latoyia","latrice","latricia","latrina","latrisha","latta","lattimore","lau","lauderdale","lauer","laughlin","launa","laura","lauralee","lauran","laure","laureano","laureen","lauren","laurena","laurence","laurene","laurent","lauretta","laurette","lauri","laurice","laurie","laurinda","laurine","lauryn","laux","lavada","lavallee","lavalley","lavelle","lavenia","lavera","lavergne","lavern","laverna","laverne","laverty","lavery","laveta","lavette","lavigne","lavin","lavina","lavine","lavinia","lavoie","lavon","lavona","lavonda","lavone","lavonia","lavonna","lavonne","lawana","lawanda","lawanna","lawhorn","lawler","lawlor","lawrence","lawson","lawton","layfield","layla","layne","layton","lazarus","lazo","leah","leahy","leake","leana","leandra","leann","leanna","leanne","leanora","leath","leatha","leatherman","leatherwood","leatrice","leavitt","lebeau","lebel","leblanc","leboeuf","lebron","lebrun","lechner","lecia","leclair","leclaire","leclerc","lecompte","leda","ledbetter","lederman","ledesma","ledet","ledezma","ledford","ledoux","leduc","leeann","leeanna","leeanne","leeds","leena","leeper","leesa","lefebvre","lefevre","leffler","lefler","leflore","leftwich","legault","legere","legg","leggett","legrand","lehman","lehmann","leia","leibowitz","leida","leigh","leigha","leighann","leighton","leija","leiker","leila","leilani","leininger","leisa","leisha","leith","leiva","lejeune","lekisha","lela","lelah","leland","lelia","lemaster","lemay","lemieux","lemire","lemke","lemley","lemmon","lemmons","lemoine","lemos","lemus","lena","lenard","lenhart","lenita","lenna","lennie","lennon","lennox","lenoir","lenora","lenore","lentz","lenz","leo","leola","leoma","leon","leona","leonard","leonarda","leonardo","leone","leong","leonia","leonida","leonie","leonila","leonor","leonora","leonore","leontine","leora","leos","leota","lepage","lepore","lera","lerch","lerma","lerner","leroy","lesa","lesha","lesher","lesia","lesko","leslee","lesley","lesli","leslie","lessard","lessie","lester","leta","letendre","letha","leticia","letisha","letitia","letourneau","lett","lettie","letty","leung","levan","levasseur","leveille","leverett","levesque","levi","levine","levinson","levitt","lewallen","lewandowski","lewellen","lewin","lewis","lexie","leyba","leyva","lezlie","lheureux","liane","lianne","libbie","libby","librada","lida","liddell","liddle","lidia","lieb","lieberman","lieselotte","liggett","liggins","lightfoot","lightner","ligia","ligon","lila","liles","lili","lilia","lilian","liliana","lilla","lillard","lilley","lilli","lillia","lilliam","lillian","lilliana","lillie","lilly","lim","limon","linares","lincoln","linda","lindahl","lindberg","lindell","lindeman","linder","linderman","lindgren","lindholm","lindley","lindner","lindo","lindquist","lindsay","lindsey","lindsley","lindstrom","lindsy","lindy","lineberry","linette","ling","lingenfelter","lingerfelt","lingle","linh","linkous","linn","linnea","linnie","linsey","linton","linville","lippert","lipps","lipscomb","lipsey","lisa","lisabeth","lisandra","lisbeth","lise","lisette","lisha","lissa","lissette","liston","lita","litchfield","littlefield","littlejohn","littleton","litton","littrell","liu","livengood","livesay","livia","livingston","liz","liza","lizabeth","lizarraga","lizbeth","lizeth","lizette","lizotte","lizzette","lizzie","llanes","llewellyn","lloyd","lockard","locke","lockett","lockhart","locklear","lockridge","lockwood","loeb","loeffler","loehr","loera","loesch","loftin","loftis","lofton","loftus","logan","loggins","logsdon","logue","lohman","lohr","loida","lois","loise","lola","lolita","lollar","lollis","loma","lomax","lombardi","lombardo","lomeli","lona","londa","london","lonergan","loney","longley","longmire","longo","longoria","loni","lonna","lonnie","loomis","looney","lopez","lora","loraine","loralee","lorean","loree","loreen","lorelei","loren","lorena","lorene","lorenz","lorenza","lorenzen","lorenzo","loreta","loretta","lorette","lori","loria","loriann","lorie","lorilee","lorina","lorinda","lorine","lorita","lorna","lorraine","lorretta","lorri","lorriane","lorrie","lorrine","lory","lott","lottie","lotz","lou","louann","louanne","loucks","loudermilk","louella","louetta","loughlin","louie","louis","louisa","louise","louque","loura","lourdes","lourie","louvenia","lovato","lovejoy","lovelace","lovelady","loveland","lovell","lovella","lovett","lovetta","lovie","lovins","lowder","lowell","lowman","lowrance","lowrey","lowry","lowther","loya","loyce","loyd","lozada","lozano","lozier","lozoya","luana","luann","luanna","luanne","luba","lubin","lucas","lucero","luci","lucia","luciana","luciano","lucie","lucienne","lucier","lucila","lucile","lucilla","lucille","lucina","lucinda","lucio","luckett","luckey","lucrecia","lucretia","lucy","ludie","ludivina","ludlow","ludwick","ludwig","lueck","luella","luetta","luevano","lugo","lui","luis","luisa","luise","lujan","lukas","lukens","luker","lula","lulu","luna","lund","lundberg","lunde","lundgren","lundquist","lundy","lunn","lunsford","luong","lupe","lupita","lupo","lura","lurlene","lurline","lussier","luther","luttrell","luu","luvenia","luz","lyda","lydia","lydon","lykins","lyla","lyle","lyles","lyman","lyn","lynda","lyndia","lyndsay","lyndsey","lynell","lynelle","lynetta","lynette","lynn","lynna","lynne","lynnette","lynsey","lyon","lyons","lytle","mabe","mabel","mabelle","mable","mabry","macaluso","macarthur","macdonald","macdougall","macedo","macfarlane","macgregor","mach","machado","machelle","machuca","macias","macie","maciel","mackay","mackenzie","mackey","mackie","mackinnon","macklin","maclean","macleod","macmillan","macneil","macomber","macon","macpherson","macy","madalene","madaline","madalyn","maddie","maddox","maddux","madelaine","madeleine","madelene","madeline","madelyn","mader","madera","madewell","madge","madie","madigan","madison","madlyn","madonna","madore","madrid","madsen","madson","mae","maeda","maegan","maes","maestas","mafalda","magali","magallanes","magaly","magan","magana","magaret","magda","magdalen","magdalena","magdalene","magdaleno","magee","magen","maggard","maggie","maggio","magill","magness","magnolia","magnuson","magruder","maguire","mahaffey","mahalia","mahan","maher","mahler","mahon","mahone","mahoney","mai","maia","maida","maier","maile","maines","maira","maire","maisha","maisie","majewski","majorie","makeda","maki","makowski","malave","malcolm","malcom","maldonado","malek","malena","maley","malia","malika","malinda","malinowski","malisa","malissa","malka","mallett","mallette","malley","mallie","mallon","mallory","malloy","malone","maloney","malorie","maloy","malvina","mamie","mammie","manchester","mancilla","mancini","mancuso","manda","mandel","mandeville","mandi","mandie","mandy","maness","mangan","mangrum","mangum","manie","manion","manis","manley","mann","mannino","manns","manriquez","mansell","mansfield","manson","mansour","mantooth","manuel","manuela","manzanares","manzano","manzo","mapes","mapp","marable","maragaret","maragret","maranda","marasco","marcano","marceau","marcela","marcelene","marcelina","marceline","marcell","marcella","marcelle","marcene","marchand","marchant","marchelle","marchetti","marci","marcia","marciano","marcie","marcotte","marcoux","marcum","marcus","marcy","mardell","marden","mardis","marek","maren","margaret","margareta","margarete","margarett","margaretta","margarette","margart","marge","margene","margeret","margert","margery","marget","margherita","margie","margit","margo","margorie","margot","margret","margrett","marguerita","marguerite","margurite","margy","marhta","mari","maria","mariah","mariam","marian","mariana","marianela","mariani","mariann","marianna","marianne","mariano","maribel","maribeth","marica","maricela","maricruz","marie","mariel","mariela","mariella","marielle","marietta","mariette","mariko","marilee","marilou","marilu","marilyn","marilynn","marin","marinda","marinelli","marino","mario","marion","maris","marisa","mariscal","marisela","marisha","marisol","marissa","marita","maritza","marivel","marjorie","marjory","markel","marketta","markey","markham","markita","markle","markley","markowitz","markus","marla","marlana","marleen","marlen","marlena","marlene","marler","marley","marlin","marline","marlo","marlow","marlowe","marlyn","marlys","marna","marni","marnie","maroney","marotta","marquardt","marquerite","marquetta","marquez","marquita","marquitta","marr","marra","marrero","marriott","marron","marroquin","marrs","marrufo","marsha","marshall","marston","marta","marte","martell","marth","martha","marti","martin","martina","martindale","martine","martineau","martinelli","martines","martinez","martino","martinson","marty","martz","marva","marvella","marvin","marvis","marx","mary","marya","maryalice","maryam","maryann","maryanna","maryanne","marybelle","marybeth","maryellen","maryetta","maryjane","maryjo","maryland","marylee","marylin","maryln","marylou","marylouise","marylyn","marylynn","maryrose","masako","mascarenas","mashburn","masse","massengale","massey","massie","masterson","mastin","mata","mateo","matha","matheny","mather","matherly","matherne","mathers","mathes","matheson","mathew","mathews","mathewson","mathias","mathieu","mathilda","mathilde","mathis","mathison","matias","matilda","matilde","matlock","matney","matos","matson","matsumoto","matta","mattern","matteson","matthew","matthews","mattie","mattingly","mattison","mattos","mattox","mattson","matz","maude","maudie","mauk","mauldin","mauney","maupin","maura","maureen","maurer","maurice","mauricio","maurine","maurita","mauro","maus","mavis","maxey","maxfield","maxie","maxima","maximina","maxine","maxon","maxson","maybell","maybelle","mayberry","maye","mayer","mayers","mayes","mayfield","mayhew","mayle","mayme","maynard","mayne","maynor","mayo","mayola","mayorga","mayra","mazie","mazur","mazurek","mazza","mazzola","mcabee","mcadams","mcadoo","mcafee","mcalister","mcallister","mcalpin","mcalpine","mcanally","mcandrew","mcardle","mcarthur","mcatee","mcauley","mcauliffe","mcavoy","mcbee","mcbrayer","mcbride","mcbroom","mcbryde","mcburney","mccabe","mccafferty","mccaffrey","mccain","mccaleb","mccall","mccalla","mccallister","mccallum","mccammon","mccandless","mccann","mccants","mccarley","mccarron","mccarter","mccarthy","mccartney","mccarty","mccarver","mccary","mccaskill","mccaslin","mccauley","mccay","mcchesney","mcclain","mcclanahan","mcclary","mcclean","mccleary","mcclellan","mcclelland","mcclendon","mcclintock","mcclinton","mccloskey","mccloud","mcclung","mcclure","mcclurg","mccluskey","mccollough","mccollum","mccomas","mccomb","mccombs","mcconnell","mccool","mccord","mccorkle","mccormack","mccormick","mccourt","mccowan","mccown","mccoy","mccracken","mccrae","mccrary","mccraw","mccray","mccrea","mccready","mccreary","mccrory","mccubbin","mccue","mcculley","mcculloch","mccullough","mccullum","mccully","mccune","mccurdy","mccurry","mccusker","mccutchen","mccutcheon","mcdade","mcdaniel","mcdaniels","mcdavid","mcdermott","mcdevitt","mcdonald","mcdonnell","mcdonough","mcdougal","mcdougald","mcdougall","mcdowell","mcduffie","mceachern","mcelhaney","mcelrath","mcelroy","mcentire","mcevoy","mcewen","mcfadden","mcfall","mcfarland","mcfarlane","mcfarlin","mcgaha","mcgann","mcgarry","mcgary","mcgee","mcgehee","mcghee","mcgill","mcginley","mcginn","mcginnis","mcginty","mcglone","mcglothlin","mcglynn","mcgough","mcgovern","mcgowan","mcgowen","mcgrath","mcgraw","mcgregor","mcgrew","mcgriff","mcgruder","mcguigan","mcguinness","mcguire","mchale","mchenry","mchugh","mcilwain","mcinerney","mcinnis","mcintire","mcintosh","mcintyre","mciver","mckamey","mckay","mckean","mckee","mckeehan","mckeever","mckellar","mckelvey","mckenna","mckenney","mckenzie","mckeon","mckeown","mckibben","mckie","mckim","mckinley","mckinney","mckinnie","mckinnon","mckinzie","mckissick","mcknight","mckown","mckoy","mclain","mclane","mclaren","mclaughlin","mclaurin","mclean","mclellan","mclemore","mclendon","mcleod","mclin","mcloughlin","mcmahan","mcmahon","mcmann","mcmanus","mcmaster","mcmasters","mcmichael","mcmillan","mcmillen","mcmillian","mcmillin","mcmillon","mcminn","mcmorris","mcmullen","mcmullin","mcmurray","mcmurry","mcnabb","mcnair","mcnally","mcnamara","mcnamee","mcnary","mcneal","mcneely","mcneese","mcneil","mcneill","mcnew","mcniel","mcnulty","mcnutt","mcpeak","mcphail","mcphee","mcpherson","mcquade","mcqueen","mcquiston","mcrae","mcreynolds","mcroberts","mcshane","mcswain","mcsweeney","mcvay","mcvey","mcwhirter","mcwhorter","mcwilliams","meacham","meade","meader","meador","meadors","meagan","meaghan","meagher","mears","mebane","mecham","mechelle","meda","medeiros","medellin","medford","medlin","medlock","medrano","mee","meehan","meekins","meeks","mefford","meg","megan","meggan","meghan","meghann","mehta","mei","meier","meissner","mejia","mejias","melaine","melancon","melani","melania","melanie","melanson","melany","melba","melcher","melchor","melda","mele","melendez","melgar","melia","melida","melina","melinda","melisa","melissa","melissia","melita","mellie","mellisa","mellissa","mello","mellon","mellott","melnick","melo","melodee","melodi","melodie","melonie","melony","melson","melva","melville","melvin","melvina","melynda","mena","menard","menchaca","mendenhall","mendes","mendez","mendiola","mendoza","mendy","menefee","menendez","meneses","menjivar","menke","meraz","mercado","mercedes","mercedez","mercier","mercurio","meredith","meri","merida","merideth","meridith","merilyn","merissa","merkel","merkle","merle","merlene","merlyn","merna","merrell","merri","merrick","merrie","merrifield","merrilee","merrill","merriman","merritt","merriweather","mertens","mertie","mertz","merwin","meryl","messer","messick","messina","messinger","messner","mestas","metcalf","metcalfe","metts","metz","metzger","metzler","meunier","meyer","meyers","meza","mia","mica","micaela","micah","miceli","micha","michael","michaela","michaele","michaelis","michaels","michaelson","michal","michalak","michalski","michaud","micheal","michel","michele","michelina","micheline","michell","michelle","michels","michiko","mickel","mickelson","mickens","mickey","micki","mickie","middaugh","middlebrooks","middleton","midgett","midkiff","miele","mielke","mier","miesha","migdalia","mignon","miguel","miguelina","mika","mikaela","mike","mikell","mikesell","miki","mikki","mila","milagro","milagros","milam","milan","milano","milburn","milda","mildred","miley","milford","milissa","millan","millar","millard","millen","millett","millican","millicent","millie","milligan","milliken","millner","millsap","millsaps","milly","milne","milner","milton","mimi","mims","minard","mincey","minda","mindi","mindy","minerva","ming","mingo","minh","minna","minnich","minnick","minnie","minta","minton","mintz","mira","miramontes","miranda","mireille","mireles","mirella","mireya","miriam","mirian","mirna","mirta","mirtha","misha","miss","missy","misti","mistie","mitchel","mitchell","mitchem","mitchum","mitsue","mitsuko","mittie","mitzi","mitzie","mixon","miyamoto","miyoko","mize","mizell","moberg","mobley","modesta","modica","modlin","moeller","moen","moffatt","moffett","moffitt","mohamed","mohammed","mohan","mohler","moira","mojica","molina","moller","mollie","molloy","molly","molnar","mona","monaco","monaghan","monahan","moncada","moncrief","monday","mondragon","monet","monge","monica","monika","monique","moniz","monnie","monroe","monroy","monserrate","monson","montague","montalvo","montana","montanez","montano","monteiro","montelongo","montemayor","montenegro","montez","montgomery","monti","montiel","montoya","monzon","mooney","mooneyham","moore","moorefield","moorehead","moorer","moores","moorhead","mora","morabito","moralez","moran","moreau","morehead","morehouse","moreira","moreland","morell","morelli","morelock","moreno","morey","morgan","mori","moriah","moriarty","morin","moritz","morley","morman","morrell","morrill","morrison","morrissette","morrissey","mortensen","mortenson","mortimer","morton","mosby","moseley","mosely","moser","mosher","mosier","moskowitz","mosley","mosqueda","mota","moten","moton","motta","moua","moulton","moultrie","mowery","mowry","moxley","moye","moyer","moyers","moynihan","mozell","mozella","mozelle","mudd","mueller","muhammad","mui","mulcahy","mulder","muldoon","muldrow","mulholland","mulkey","mullen","mullens","mullin","mullinax","mullins","mullis","mulvaney","mulvey","mumford","muncy","munday","mundell","mundy","munford","munger","munguia","muniz","munn","munos","munoz","munro","munroe","munsey","munson","muoi","murchison","murdoch","murdock","murguia","muriel","murillo","muro","murphey","murphree","murr","murrell","musgrave","musgrove","musick","musselman","musser","musso","muth","myatt","myer","myers","myesha","myhre","myles","myong","myra","myriam","myrick","myrl","myrle","myrna","myrta","myrtice","myrtie","myrtis","myrtle","myung","nabors","nadeau","nadene","nader","nadia","nadine","nadler","nagel","nagle","nagy","naida","najera","nakamura","nakano","nakesha","nakia","nakisha","nakita","nall","nalley","nancee","nancey","nanci","nancie","nancy","nanette","nannette","nannie","naoma","naomi","napier","napoli","napolitano","naquin","naranjo","narcisa","nardi","nardone","narvaez","nash","nason","natacha","natale","natalia","natalie","natalya","natasha","natashia","nate","nathalie","nathan","natisha","natividad","natosha","naughton","naumann","nava","navarra","navarrete","navarrette","navarro","naylor","nazario","neace","neale","nealy","neary","necaise","necole","neda","nedra","needham","neel","neeley","neely","neff","negrete","negron","neida","neil","neill","neilson","nelda","nelia","nelida","nell","nella","nelle","nellie","nelly","nelms","nelsen","nemeth","nena","nenita","neoma","neomi","nereida","neri","nerissa","nero","nery","nesbit","nesbitt","nesmith","nestor","neta","nettie","neu","neubauer","neuman","neumann","neva","nevada","nevarez","neville","nevins","newberry","newby","newcomb","newhouse","newkirk","newland","newlin","newman","newport","newsom","newsome","newson","ney","nez","ngan","ngo","ngoc","nguyen","nguyet","nichelle","nichol","nicholas","nichole","nicholle","nicholls","nichols","nicholson","nickell","nickelson","nickens","nickerson","nicki","nickie","nickles","nickole","nicky","nicol","nicola","nicolas","nicolasa","nicole","nicolette","nicolle","nida","nidia","nielsen","nielson","nieman","niemann","niemeyer","niemi","niesha","nieto","nieves","nightingale","nigro","niki","nikia","nikita","nikki","nikole","nila","nilda","niles","nilsa","nilsen","nilsson","nimmons","nina","ninfa","nino","nisha","nissen","nita","nixon","noah","nobuko","noe","noel","noelia","noella","noelle","noemi","nohemi","nola","nolan","noland","nolasco","nolen","noles","nolin","nolte","noma","nona","noonan","nora","norah","nord","nordstrom","noreen","norene","norfleet","noriega","noriko","norine","norma","norman","normand","norris","norsworthy","northcutt","northrop","northrup","norton","norvell","norwood","nottingham","novak","novotny","nowak","nowell","nowicki","nowlin","nubia","nugent","nunes","nunez","nunley","nunn","nunnally","nuno","nuss","nussbaum","nutt","nyberg","nydia","nygaard","nyla","nystrom","oakes","oakley","oates","obannon","obdulia","ober","oberg","obregon","obrian","obrien","obryan","obryant","ocampo","ocasio","ochoa","ocie","oconnell","oconner","oconnor","octavia","oda","odaniel","oday","odelia","odell","oden","odessa","odette","odilia","odle","odom","odonnell","odum","ofelia","offutt","ogburn","ogden","oglesby","ogletree","ogrady","ohalloran","ohara","ohare","ojeda","okeefe","okelley","olander","oldham","oleary","olene","oleson","oleta","olevia","olga","olguin","olimpia","olin","olinda","olinger","oliva","olivares","olivarez","olivas","oliveira","olivera","olivia","olivier","olivo","oller","ollie","ollis","olmos","olmstead","olney","oloughlin","olsen","olson","olszewski","olvera","olympia","omalley","omar","omara","omeara","oneal","oneida","oneil","oneill","oney","ong","onie","onita","ontiveros","ophelia","oquendo","oquinn","oralee","oralia","orcutt","ordonez","ordway","oreilly","orellana","oretha","orlando","orman","ormsby","orndorff","ornelas","orosco","orourke","orozco","orpha","orr","orta","ortega","ortego","orth","ortiz","orton","osborn","osborne","osburn","oscar","osgood","oshaughnessy","oshea","oshiro","osman","osorio","ossie","osteen","oster","osterman","ostrander","ostrom","ostrowski","osullivan","osuna","oswald","oswalt","otelia","otero","otey","otha","otilia","otis","otoole","ott","otte","otten","ottinger","oubre","ouellette","ouida","ousley","ovalle","overcash","overstreet","overton","overturf","owen","owens","owensby","owings","owsley","oxendine","oxford","oxley","oyler","ozell","ozella","ozie","ozuna","pabon","pacheco","packard","padgett","padilla","padron","paez","pagano","pagel","paige","paine","paiz","pak","palacio","palacios","palermo","palladino","palma","palmieri","palmira","palmore","palomo","palumbo","pam","pamala","pamela","pamelia","pamella","pamila","pamula","panek","paniagua","pankey","pannell","pantoja","paola","pappas","paquette","paquin","parada","paradis","pardo","pardue","paredes","parenteau","parham","paris","parisi","parke","parkhurst","parkinson","parkman","parmenter","parmer","parnell","parra","parrett","parris","parrish","parrott","partain","partee","parthenia","particia","partida","partin","partlow","paschall","pascoe","pasley","pasquale","passmore","pastore","patel","paterson","patino","patnode","patria","patrica","patrice","patricia","patrick","patrina","patsy","patterson","patti","pattie","pattison","patton","patty","paugh","paul","paula","paulene","pauletta","paulette","pauley","paulin","paulina","pauline","paulino","paulita","paulk","paulsen","paulson","paulus","paxton","payne","paynter","payton","paz","peabody","peachey","peake","pearcy","pearle","pearlene","pearlie","pearline","pearman","pearsall","pearson","peaslee","peay","peckham","pecoraro","peden","pedersen","pederson","pedigo","pedraza","pedroza","peebles","peele","peeples","peggie","peggy","pegram","pegues","pei","peiffer","pelayo","pelfrey","pelkey","pellegrini","pellegrino","pellerin","pelletier","peloquin","peltier","pelton","peluso","pemberton","pena","pender","pendergast","pendergrass","pendleton","pendley","penelope","penick","penland","penley","penn","pennell","penney","penni","pennie","pennington","penrod","penton","pepe","pepin","perales","peralta","peraza","percy","perdomo","perea","peres","pereyra","perez","perla","perlman","permenter","pernell","perrault","perreault","perreira","perri","perrin","perrine","perrone","perrotta","perry","perryman","persaud","persinger","pesce","pete","peter","peterkin","peterman","petersen","peterson","petra","petree","petrie","petrillo","petrina","petro","petronila","petry","pettaway","petterson","pettiford","pettigrew","pettis","pettit","pettus","pettway","peyton","pfaff","pfeffer","pfeifer","pfeiffer","pfister","pham","phan","pharr","phebe","phelan","phelps","phifer","philbrick","philip","philips","phillip","phillips","phillis","philomena","philpot","philpott","phinney","phipps","phoebe","phung","phuong","phylicia","phylis","phyliss","phyllis","piatt","picard","pichardo","pickard","pickel","pickens","pickering","pickett","piedad","pieper","piercy","pierre","pierson","pifer","pigg","pilkington","pimental","pimentel","pina","pinard","pinckney","pineda","pinero","pinkard","pinkerton","pinkham","pinkney","pinkston","pino","pinon","pinson","piotrowski","pires","pirtle","pisano","pitchford","pitre","pitt","pittman","pitts","pitzer","pizarro","placencia","plante","plascencia","platt","plemmons","pless","plotkin","plott","plourde","plumlee","plumley","plummer","plunkett","plyler","poche","poe","poff","pogue","pohl","poindexter","poirier","poisson","pok","polanco","poland","polito","polley","polly","polson","polston","pomerleau","pomeroy","poole","pooler","poore","popham","popovich","popp","porras","porsche","porsha","porterfield","portia","portillo","portis","posner","poston","poteat","poteet","poulin","pouliot","poulos","poulson","powe","powell","poynter","prado","prather","preciado","preece","prendergast","prentiss","prescott","presley","presnell","pressley","preston","prevost","prewitt","prichard","pricilla","prickett","priddy","pridemore","pridgen","priester","prieto","primm","prindle","prine","pringle","priscila","priscilla","pritchard","pritchett","privett","probst","proffitt","propst","prosser","proulx","prouty","provencher","providencia","pruett","pruitt","pryor","puckett","puente","puentes","puga","pugliese","puleo","pulido","pullen","pulliam","pumphrey","pura","purcell","purdy","purifoy","purkey","purnell","pursley","purvis","puryear","putman","putnam","pyatt","pyle","pyles","qiana","quach","quackenbush","quade","qualls","quan","quattlebaum","queenie","quesada","quesenberry","quevedo","quezada","quiana","quigley","quijano","quiles","quillen","quimby","quinlan","quinn","quinonez","quintana","quintanilla","quintero","quinton","quiroz","quyen","raab","rabb","rabe","raber","rabideau","rabinowitz","rabon","raby","rachael","rachal","racheal","rachel","rachele","rachell","rachelle","racine","rackley","racquel","radcliff","radcliffe","rademacher","rader","radford","radke","radtke","rae","raeann","rael","raelene","rafaela","rafferty","ragan","ragin","ragland","ragsdale","raguel","rahman","rahn","railey","raina","rainbolt","rainer","raines","rainey","rainwater","raisa","raleigh","raley","ralph","ralston","ramage","rambo","ramer","rameriz","ramey","ramires","ramirez","ramon","ramona","ramonita","ramos","ramsay","ramsdell","ramsey","ranae","rancourt","randa","randall","randazzo","randee","randel","randell","randi","randle","randolph","randy","ranee","raney","rangel","rankin","rankins","ransdell","ranson","rao","raphael","raposa","rapp","raquel","rasberry","rascon","rasheeda","rashid","rashida","rasmussen","ratchford","ratcliff","ratcliffe","rathbone","rathbun","ratliff","rau","rauch","rausch","rawlings","rawlins","rawls","rawson","raya","rayborn","rayburn","raye","rayfield","rayford","raylene","raymer","raymond","raymonde","raymund","rayna","rayner","raynor","razo","rea","reagan","reanna","reardon","reatha","reavis","reba","rebbeca","rebbecca","rebeca","rebecca","rebecka","rebekah","reber","reda","reddick","redford","redman","redmon","redmond","redwine","reece","reena","reese","refugia","refugio","regalado","regan","regena","regenia","regina","regine","reginia","rehm","reich","reichard","reichel","reichert","reid","reiff","reiko","reilly","reimer","reimers","reina","reiner","reinert","reinhardt","reinhart","reinhold","reinke","reiser","reiss","reita","reitz","rema","rembert","remedios","remillard","remington","remona","remy","rena","renae","renata","renate","renaud","renay","renda","rendon","rene","renea","reneau","renee","renetta","renfro","renfroe","renfrow","renita","renn","renna","renner","rennie","reno","renshaw","renteria","renz","resendez","resnick","ressie","ressler","reta","retha","retta","reuter","reva","revell","revis","rey","reyes","reyna","reynalda","reynolds","reynoso","rhea","rheba","rhee","rhiannon","rhinehart","rhoades","rhoads","rhoda","rhoden","rhodes","rhona","rhonda","rhyne","ribeiro","ricarda","ricci","ricciardi","riccio","richard","richards","richardson","richburg","richelle","richerson","richert","richey","richie","richman","richmond","rickard","rickert","ricketts","ricki","rickie","rickman","rico","riddell","riddick","ridenhour","ridenour","rideout","ridgway","ridley","riedel","rieger","riehl","riendeau","ries","riffe","rigby","rigdon","riggins","riggle","rigney","rigsby","riker","rikki","riley","rimmer","rinaldi","rincon","rinehart","ringler","rinker","riojas","riordan","rios","rioux","ripley","rippy","risa","risinger","risley","risner","ritchey","ritchie","rittenhouse","ritz","rivard","rivera","rivero","rivka","rizo","rizzo","roa","roane","roark","robb","robbie","robbin","robbins","robbyn","robena","roberge","roberson","robert","roberta","roberto","roberts","robertson","robeson","robey","robichaud","robichaux","robinett","robinette","robinson","robison","robledo","robson","roby","robyn","rocco","rocha","roche","rochel","rochell","rochelle","rochester","rocio","rockett","rockwell","rockwood","rodarte","rodas","roddy","roden","roderick","rodgers","rodney","rodrigez","rodrigue","rodrigues","rodriguez","rodriques","rodriquez","roeder","roemer","roesch","roesler","rogan","roger","rogers","rohde","rohr","rohrer","rojas","rojo","roland","rolanda","rolande","roldan","rolf","rolfe","rolle","rollins","rollo","rolon","romana","romano","rome","romelia","romeo","romero","romine","romo","romona","rona","ronald","ronda","roney","roni","ronna","ronni","ronnie","rooker","rooney","rory","rosa","rosado","rosalba","rosalee","rosales","rosalia","rosalie","rosalina","rosalind","rosalinda","rosaline","rosalva","rosalyn","rosamaria","rosamond","rosana","rosann","rosanna","rosanne","rosaria","rosario","rosas","rosaura","roscoe","roseann","roseanna","roseanne","roseberry","roseboro","roselee","roselia","roseline","rosella","roselle","roselyn","roseman","rosemarie","rosemond","rosen","rosena","rosenbaum","rosenberg","rosenberger","rosenberry","rosenblatt","rosenblum","rosenda","rosenfeld","rosenthal","rosetta","rosette","rosia","rosie","rosina","rosio","rosita","roslyn","ross","rossana","rossi","rossie","rossiter","rossman","rost","roth","rothman","rothrock","rothstein","rothwell","rotz","roundtree","roundy","rountree","rourke","roush","rousseau","roussel","rowden","rowe","rowell","rowena","rowland","rowles","rowlett","rowley","roxana","roxane","roxann","roxanna","roxanne","roxie","roy","roybal","royce","royer","royston","rozanne","rozella","rozier","ruano","rubalcava","ruben","rubenstein","rubi","rubie","rubin","rubino","rubio","rubye","ruch","rucker","ruckman","rudnick","rudolph","rudy","rueda","ruelas","ruffner","rufina","rugg","ruggiero","ruggles","ruhl","ruiz","rummel","rumph","rumsey","rundell","runge","runion","runyan","runyon","rupe","rupert","rupp","ruppert","rusch","rushton","russ","russell","russo","rutan","ruth","rutha","ruthann","ruthanne","ruthe","ruthie","rutkowski","rutland","rutledge","ruvalcaba","ryan","ryann","ryder","saad","saari","saavedra","sabina","sabine","sabo","sabol","sabra","sabrina","sacco","sacha","sachiko","sachs","sackett","sadie","sadler","sadowski","sadye","saechao","saenz","saez","safford","saito","saiz","sala","salas","salazar","salcedo","salcido","saldana","saldivar","saleh","salem","salena","salerno","salgado","salisbury","salley","sallie","sally","salo","salome","salomon","saltzman","salvador","salvatore","salyer","salyers","salzman","sam","samaniego","samantha","samara","samatha","samella","samira","sammie","sammons","sammy","samons","samora","sampson","sams","samson","samuel","samuels","samuelson","sana","sanabria","sanborn","sanches","sanchez","sanda","sandberg","sandee","sanderlin","sanderson","sandi","sandidge","sandie","sandifer","sandler","sandlin","sandoval","sandra","sandstrom","sandusky","sanford","sanjuana","sanjuanita","sankey","sanmiguel","sanora","sansom","sansone","santa","santacruz","santamaria","santana","santiago","santillan","santina","santo","santoro","santos","santoyo","sapp","sappington","sara","sarabia","sarah","sarai","saran","sargeant","sargent","sari","sarina","sarita","sarmiento","sartain","sartin","sarver","sasaki","sasha","sasser","sather","sato","satterfield","satterwhite","sattler","saturnina","sau","sauceda","saucedo","sauer","saunders","saundra","sauter","savannah","saville","savino","savoie","sawicki","saxon","saxton","sayles","saylor","sayre","scaife","scalf","scalise","scanlan","scanlon","scarberry","scarborough","scarbrough","scarlett","schaaf","schaal","schade","schaefer","schaeffer","schafer","schaffer","schaffner","schall","schaller","scharf","schatz","schaub","schauer","scheel","scheer","scheffler","schell","scheller","schenck","schenk","scherer","schermerhorn","schexnayder","schick","schiff","schiffman","schindler","schlegel","schleicher","schlosser","schlueter","schmid","schmidt","schmit","schmitt","schmitz","schneider","schock","schoen","schoenfeld","schofield","scholl","scholz","schoonmaker","schoonover","schott","schrader","schram","schramm","schreck","schreiber","schreiner","schrimsher","schrock","schroder","schroeder","schubert","schuck","schuh","schuler","schuller","schulman","schulte","schultz","schulz","schulze","schumacher","schuman","schumann","schuster","schutt","schutz","schuyler","schwab","schwartz","schwarz","schweitzer","scofield","scoggins","scott","scottie","scoville","scribner","scrivner","scroggins","scruggs","scully","seabolt","seabrook","seagraves","seale","sealey","sealy","sean","searcy","searle","searles","seaton","seaver","seavey","seawright","seay","sebastian","sebrina","sechrist","seda","sedillo","seeger","seeley","seema","segal","segarra","seger","segovia","segura","seibel","seiber","seibert","seidel","seifert","seiler","seitz","selby","selena","selene","selina","sellars","selma","selman","sena","senaida","seng","senn","senter","sepulveda","serafina","serena","sergent","serina","serita","serna","serrano","serrato","sessoms","setser","setsuko","setzer","severson","sevier","sevigny","sevilla","seward","sewell","seymore","seymour","shackelford","shackleford","shae","shafer","shaffer","shaina","shakia","shakira","shakita","shala","shalanda","shalon","shalonda","shamblin","shameka","shamika","shana","shanae","shanahan","shanda","shandi","shandra","shane","shaneka","shanel","shanell","shanelle","shaner","shani","shanice","shanika","shaniqua","shanita","shankle","shanklin","shanna","shannan","shannon","shanon","shanta","shantae","shantay","shante","shantel","shantell","shantelle","shanti","shapiro","shaquana","shaquita","shara","sharan","sharda","sharee","sharell","sharen","shari","sharice","sharie","sharika","sharilyn","sharita","sharkey","sharla","sharleen","sharlene","sharma","sharmaine","sharolyn","sharon","sharonda","sharpe","sharri","sharron","sharyl","sharyn","shasta","shattuck","shaughnessy","shaun","shauna","shaunda","shaunna","shaunta","shaunte","shavon","shavonda","shavonne","shawana","shawanda","shawanna","shawn","shawna","shawnda","shawnee","shawnna","shawnta","shay","shayla","shayna","shayne","shea","shealy","shearin","sheba","shedd","sheehan","sheehy","sheena","sheffield","sheila","sheilah","shela","shelba","shelby","sheldon","shelia","shella","shelley","shelli","shellie","shelly","shelton","shemeka","shemika","shena","shenika","shenita","shenk","shenna","shepard","shephard","sheppard","shera","sheree","sherell","sherer","sheri","sherice","sheridan","sherie","sherika","sherill","sherilyn","sherise","sherita","sherlene","sherley","sherly","sherlyn","sherman","sheron","sherrell","sherrer","sherri","sherrie","sherril","sherrill","sherrod","sherron","sherryl","sherwin","sherwood","shery","sheryl","sheryll","shetler","shick","shiela","shifflett","shiflett","shila","shiloh","shinn","shipe","shipley","shipp","shippy","shira","shirely","shirey","shirl","shirlee","shirleen","shirlene","shirley","shirly","shively","shizue","shizuko","shockey","shockley","shoemake","shoffner","shona","shonda","shondra","shonna","shonta","shoop","shortridge","shoshana","shotwell","shoup","shouse","showalter","shrader","shreve","shropshire","shroyer","shrum","shu","shubert","shuler","shull","shults","shultz","shumaker","shuman","shumate","shumpert","shumway","shupe","shuster","shutt","shyla","sibert","sibley","sibyl","sickler","sidney","siebert","siegel","siegfried","sievers","sifuentes","sigler","sigman","sigmon","signe","sigrid","sikora","silas","silva","silvana","silveira","silverman","silverstein","silvey","silvia","simard","simas","simmon","simmons","simms","simon","simona","simonds","simone","simoneau","simoneaux","simonne","simons","simonson","simonton","simpkins","simpson","sinclair","sindy","singh","singletary","singley","siobhan","sirena","sirois","sisco","sisk","sisneros","sisson","sistrunk","sitton","siu","sixta","sizemore","skaggs","skeen","skeens","skelton","skidmore","skiles","skye","slagle","slaton","slavin","slayton","sloat","slocum","slone","slover","slusher","slyvia","smalley","smallwood","smedley","smelser","smitherman","smithson","smtih","smyth","smythe","snapp","snavely","snodgrass","snowden","snyder","soares","sobel","socorro","sofia","sohn","soila","soileau","sokol","solange","solberg","soledad","solis","soliz","soloman","solomon","solorio","solorzano","somer","somers","somerville","sommer","sommers","sommerville","sona","sondra","songer","sonia","sonja","sonnier","sonya","soper","sophia","sophie","sophy","soraya","sorensen","sorenson","soria","soriano","sorrell","sorrells","sosa","sotelo","soto","soucy","soukup","soule","sousa","southard","southerland","southwick","southworth","souza","sowder","sowell","spalding","spann","spano","sparkman","spaulding","specht","spector","speight","spellman","sperry","spiegel","spielman","spiers","spiker","spillman","spinelli","spitler","spitzer","spivey","spooner","spradlin","spradling","spraggins","sprague","spratt","sprayberry","spriggs","sproul","sprouse","spruill","spurgeon","spurlock","staats","stacee","stacey","staci","stacia","stacie","stackhouse","stacy","stadler","stafford","stagg","staggs","stagner","stahl","staley","stallard","stallworth","stalnaker","stambaugh","stamey","stamm","stancil","standifer","standley","standridge","stanfield","stanfill","stanford","stanger","stanley","stansberry","stansbury","stanton","stapleton","starkey","starla","starnes","starr","stasia","staten","staton","staub","stauffer","stclair","stcyr","steadman","stearns","stebbins","steck","stedman","steele","steelman","stefani","stefania","stefanie","stefany","steffanie","steffen","steffens","stegall","steger","steib","steiger","steinbach","steinberg","steiner","steinke","steinman","steinmetz","stella","stelly","stenson","stepanie","stephaine","stephan","stephane","stephani","stephania","stephanie","stephany","stephen","stephenie","stephens","stephenson","stephine","stephnie","stepp","sternberg","stetson","steven","stevenson","steverson","stevie","stewart","stgermain","sthilaire","stickney","stidham","stier","stiffler","stillman","stillwell","stiltner","stilwell","stine","stines","stinnett","stinson","stites","stith","stitt","stjohn","stlaurent","stlouis","stockdale","stockton","stockwell","stoddard","stoffel","stogner","stoll","stollings","stoltz","stoltzfus","stonge","stott","stotts","stouffer","stovall","stowe","stowell","stpeter","stpierre","strachan","strader","strahan","straka","straley","strasser","stratton","straub","strauss","strawn","strawser","streeter","streit","stribling","stricker","strickland","strickler","stricklin","stringfellow","strobel","stroh","strom","stroman","stromberg","strother","strouse","struble","strunk","stuart","stubblefield","stuckey","studer","stultz","stumpf","sturdivant","sturges","sturgill","sturgis","sturm","sturtevant","stutz","stutzman","suanne","suarez","suazo","sublett","sudduth","sudie","sueann","suellen","suggs","suh","suiter","suk","sulema","sullins","sullivan","sumiko","summerlin","summerville","sumner","sumrall","sundberg","sunderland","sunni","surber","surratt","susan","susana","susann","susanna","susannah","susanne","susie","sussman","susy","suter","sutherland","sutphin","sutter","sutton","suzan","suzann","suzanna","suzanne","suzette","suzi","suzie","suzuki","suzy","svetlana","svitlana","svoboda","swafford","swaim","swaney","swanger","swann","swanner","swanson","swarey","swartz","swearingen","sweatt","sweitzer","swenson","swett","swick","swiger","swindell","swinford","swinney","swinson","swint","swinton","switzer","swope","sybil","syble","sydney","sydnor","sylvester","sylvia","sylvie","symons","synder","synthia","syreeta","szabo","szymanski","tabatha","tabb","taber","tabetha","tabitha","tackett","tafoya","taft","taggart","tague","taina","taisha","tajuana","takahashi","takako","takisha","talamantes","talavera","talbert","talbott","talia","taliaferro","talisha","talitha","talkington","tallent","talley","tallman","talton","tamala","tamar","tamara","tamatha","tamayo","tambra","tameika","tameka","tamekia","tamela","tamera","tamesha","tamez","tami","tamica","tamie","tamika","tamiko","tamisha","tammara","tammera","tammi","tammie","tammy","tamra","tana","tanaka","tandra","tandy","taneka","tanesha","tangela","tanguay","tania","tanika","tanisha","tanja","tankersley","tanna","tanya","tapia","tapley","tapp","tara","tarah","tarango","tarbox","tardif","tardiff","taren","tari","tarpley","tarr","tarra","tarrant","tarsha","tarver","taryn","tasha","tashia","tashina","tasia","tatiana","tatro","tatum","tatyana","taunya","tavares","tavarez","taveras","tawana","tawanda","tawanna","tawna","tawnya","taylor","tayna","teague","teasley","tedford","teena","teets","tegan","teisha","teixeira","tejada","tejeda","telford","telles","tellez","tello","telma","temeka","temika","tempie","templeton","templin","tena","tenesha","tenisha","tennant","tenney","tennie","tennille","tennison","tennyson","tenorio","teodora","teofila","tera","teran","tereasa","teresa","terese","teresia","teresita","teressa","teri","terica","terina","terisa","terra","terrazas","terrell","terresa","terri","terrie","terrill","terrilyn","terry","terwilliger","tesch","tesha","tess","tessa","tessie","tessier","testerman","teter","tetreault","thach","thacker","thai","thalia","thames","thanh","thao","tharp","tharpe","thaxton","thayer","thea","theda","theis","theisen","theiss","thelen","thelma","theo","theobald","theodora","theodore","theola","theresa","therese","theresia","theressa","theriault","theriot","therrien","thersa","thi","thibault","thibeault","thibodeau","thibodeaux","thiel","thiele","thielen","thies","thigpen","thom","thoma","thomas","thomasena","thomasina","thomasine","thomason","thomasson","thompkins","thompson","thomsen","thomson","thora","thornberry","thornburg","thorne","thornhill","thornton","thorson","thorton","threadgill","threatt","thresa","throckmorton","thu","thurber","thurman","thurmond","thurston","thuy","tia","tiana","tianna","tibbetts","tibbs","tidwell","tiera","tierney","tierra","tiesha","tifany","tiffaney","tiffani","tiffanie","tiffany","tiffiny","tighe","tijerina","tijuana","tilda","tilghman","tillery","tillett","tilley","tillie","tillis","tillman","tillotson","tilton","timberlake","timika","timm","timmerman","timmons","timms","timothy","tims","tina","tincher","tindall","tindle","tingley","tinisha","tinney","tinsley","tippett","tipton","tirado","tisa","tisdale","tish","tisha","titus","tobar","tobey","tobi","tobias","tobie","tobin","toby","toccara","todd","toi","toland","tolbert","toledo","tolentino","toler","toliver","tolle","tollefson","tolley","tolliver","tolman","tolson","tomas","tomasa","tomblin","tomeka","tomi","tomika","tomiko","tomlin","tomlinson","tommie","tommy","tommye","tomoko","tompkins","tona","tonda","tonette","toni","tonia","tonie","tonisha","tonita","tonja","tony","tonya","toole","tooley","toombs","toomer","toomey","tora","torgerson","tori","torie","toro","torre","torrence","torres","torrey","torrez","torri","torrie","tory","toscano","tosha","toshia","toshiko","toth","totten","toussaint","tova","tovar","towanda","towe","towle","towne","towner","townes","townley","townsend","townsley","toya","tracee","tracey","traci","tracie","tracy","trahan","trainor","tramel","trammell","tran","trang","trantham","trapp","trask","travers","travis","trawick","traylor","traynor","treadway","treadwell","treasa","treece","treena","trejo","tremblay","trena","trent","tresa","tressa","tressie","treva","trevino","trexler","tricia","trigg","trimble","trina","trinh","trinidad","triplett","tripp","trish","trisha","trista","tristan","trombley","trost","trotman","trott","trottier","troup","troutman","trowbridge","troxell","troxler","troy","troyer","truax","trudeau","trudi","trudie","trudy","trueblood","truelove","truesdale","truett","truitt","trujillo","trula","truman","truong","trussell","tsai","tsang","tse","tso","tsosie","tubbs","tucci","tudor","tuggle","tula","tull","tullis","tully","tunnell","tunstall","tupper","turcotte","turgeon","turk","turley","turman","turnage","turnbow","turnbull","turney","turpin","tutt","tuttle","tuyet","twana","twanda","twanna","twigg","twila","twilley","twitty","twombly","twomey","twyla","twyman","tyesha","tyisha","tyler","tyndall","tyner","tynisha","tyra","tyree","tyrrell","tyson","tyus","uhl","ulibarri","ullman","ulloa","ullrich","ulmer","ulrich","ulrike","underhill","ung","unger","unknow","unruh","upchurch","upshaw","upton","urbina","urias","uribe","urquhart","urrutia","ursula","usha","ussery","ute","utley","vaca","vaccaro","vachon","vada","vaden","vadnais","vaillancourt","val","valadez","valarie","valda","valdes","valdez","valdivia","valdovinos","valencia","valene","valente","valenti","valentin","valentina","valentino","valenzuela","valeri","valeria","valerie","valerio","valero","valery","valladares","valle","vallee","vallejo","valles","vallie","valliere","valorie","valrie","valverde","vanatta","vanburen","vanbuskirk","vance","vancleave","vanda","vandenberg","vanderpool","vandiver","vandusen","vandyke","vanegas","vanesa","vanessa","vanetta","vanhook","vanhoose","vanhorn","vanhouten","vania","vanita","vankirk","vanlandingham","vanmeter","vann","vanna","vannatta","vannesa","vanness","vannessa","vannoy","vanover","vanpelt","vanscoy","vansickle","vantassel","vanwinkle","vanzandt","vanzant","varela","varga","vargas","vargo","varnado","varner","varney","vashti","vasiliki","vasques","vasquez","vassallo","vassar","vaughan","vaughn","vaught","vazquez","veach","veasey","veda","veilleux","velarde","velasco","velasquez","velazquez","velda","velez","velia","veliz","vella","velma","veloz","velva","vena","venable","venegas","venessa","venetta","venice","venita","vennie","ventura","veola","vera","verda","verdell","verdie","verdugo","verduzco","vereen","verena","vergara","vergie","verla","verlene","verlie","verline","vermillion","verna","vernell","vernetta","vernia","vernice","vernie","vernita","vernon","verona","veronica","veronika","veronique","verret","versie","vertie","vesta","veta","vetter","vicenta","vick","vickers","vickery","vickey","vicki","vickie","vicky","victoria","victorina","vida","vidal","vidrine","vieira","viera","vierra","vigue","viki","vikki","villagomez","villalba","villalobos","villalpando","villanueva","villareal","villarreal","villasenor","villatoro","villegas","villeneuve","vilma","vincent","vincenza","vinita","vinnie","vinson","violeta","violette","virgen","virgie","virgil","virgina","virginia","visser","vitale","vivan","vivian","viviana","vivien","vivienne","voelker","vogel","vogler","vogt","voight","voigt","volkman","vollmer","volpe","volz","voncile","vonda","vonnie","voorhees","voss","vowell","voyles","vue","vuong","wachter","waddell","wadley","wadsworth","wagner","wagstaff","wahl","wai","waite","waites","wakefield","walcott","walczak","walden","waldman","waldon","waldron","waldrop","waldrup","wallace","wallen","walley","wallin","wallis","walsh","walston","walter","walters","walther","waltman","walton","waltraud","walz","wampler","wanda","waneta","wanetta","wanita","wardell","wardlaw","warfield","wargo","warnke","warnock","warr","warrick","warrington","warwick","washburn","washington","wasson","watanabe","waterhouse","watford","watkins","watson","watters","watterson","wava","wayland","wayman","wayne","weatherby","weatherford","weathersby","weatherspoon","webb","webber","weddle","weeden","weekley","weese","wegner","wei","weidman","weidner","weigand","weigel","weiland","weiler","weimer","weinberg","weinberger","weiner","weinstein","weintraub","weis","weisberg","weise","weiser","weisman","weiss","weissman","weitzel","welborn","weldon","welker","weller","wellington","wellman","welton","welty","wendel","wendell","wendi","wendie","wendling","wendolyn","wendt","wendy","wenger","wenona","wentworth","wentz","wentzel","wenzel","werner","werth","wertz","wescott","wesley","wessel","wessels","wesson","westberry","westbrook","westbrooks","westcott","westerfield","westerman","westfall","westlund","westmoreland","weston","westover","westphal","wethington","wetmore","wetzel","wexler","whalen","whaley","wharton","whatley","wheatley","wheaton","wheelock","whelan","whipple","whisenant","whisenhunt","whisler","whitacre","whitaker","whitcomb","whitehead","whitehouse","whitehurst","whiteley","whiteman","whitesell","whiteside","whitfield","whitford","whitley","whitlock","whitman","whitmer","whitmire","whitmore","whitney","whitson","whitt","whittaker","whitted","whittemore","whitten","whittier","whittington","whitton","whitworth","whorton","whyte","wickham","wicklund","wickman","wideman","widmer","widner","wiegand","wieland","wiener","wiese","wigfall","wiggins","wiggs","wigley","wilbanks","wilber","wilborn","wilbourn","wilbur","wilburn","wilcher","wilcox","wilda","wilde","wildman","wiley","wilfong","wilford","wilhelm","wilhelmina","wilhemina","wilhite","wilhoit","wilk","wilke","wilkens","wilkerson","wilkes","wilkey","wilkie","wilkins","wilkinson","wilks","willa","willaims","willams","willard","wille","willena","willene","willett","willetta","willette","willhite","willia","william","williams","williamson","willie","williemae","williford","willingham","willis","willison","willman","willodean","willoughby","willson","wilma","wilmot","wilmoth","wilson","wilton","wimberly","wimbush","wimer","wimmer","winburn","winchell","winchester","windham","windom","windsor","winegar","winfield","winfrey","wingard","wingate","wingfield","wingo","winifred","winkelman","winkler","winn","winnie","winnifred","winona","winslow","winstead","winston","winton","wirth","wiseman","wisner","wisniewski","witcher","witham","witherspoon","withrow","witkowski","witmer","witt","witte","witten","wittman","wofford","wojcik","wolcott","wolfe","wolfenbarger","wolff","wolfgang","wolford","wolfson","wolter","wolters","womack","wonda","wong","woodall","woodard","woodbury","woodford","woodham","woodley","woodring","woodrow","woodrum","woodson","woodworth","woolard","wooldridge","woolery","wooley","woolf","woolfolk","woolley","woolridge","woosley","wooster","wooten","wooton","worden","worley","worrell","worsham","worsley","wortham","worthen","worthington","wortman","wozniak","wray","wrenn","wulf","wunderlich","wurth","wyant","wyatt","wyche","wyckoff","wylie","wyman","wynell","wynne","wynona","wyrick","wysocki","xenia","xiao","xiomara","xiong","xochitl","xuan","yadira","yaeko","yael","yahaira","yajaira","yamada","yamamoto","yan","yancey","yancy","yandell","yanez","yanira","yarber","yarborough","yarbrough","yasmin","yasmine","yasuko","yates","yazzie","ybarra","yeager","yee","yeh","yelena","yepez","yer","yesenia","yessenia","yetta","yeung","yevette","yi","yim","ying","yingling","yoakum","yockey","yocum","yoder","yoel","yoho","yoko","yolanda","yolande","yolando","yolonda","yong","yoo","yoon","yoshida","yoshie","yoshiko","yost","youlanda","youmans","youngblood","youngman","youngs","yount","younts","yu","yuen","yuette","yuk","yuki","yukiko","yuko","yulanda","yun","yung","yuonne","yuri","yuriko","yvette","yvone","yvonne","zachary","zack","zada","zahn","zaida","zajac","zak","zamarripa","zambrano","zamora","zamudio","zana","zandra","zaragoza","zarate","zavala","zayas","zeigler","zelaya","zelda","zella","zeller","zellers","zelma","zena","zenaida","zendejas","zenia","zenobia","zepeda","zeringue","zetta","zhang","zhao","ziegler","zielinski","zimmerman","zimmermann","zina","zink","zinn","zita","zito","zoe","zofia","zoila","zola","zona","zonia","zook","zora","zoraida","zorn","zuber","zucker","zula","zulema","zulma","zumwalt","zuniga"].join("|")+"))+\\b","gim");class vt{constructor(e="PERSON_NAME"){this.replaceWith=e}redact(e){bt.lastIndex=0,wt.lastIndex=0;let t=bt.exec(e);for(;null!==t;){wt.lastIndex=bt.lastIndex;let r=wt.exec(e);if(null!==r&&r.index===bt.lastIndex){let t=null===r[5]?"":r[5];e=e.slice(0,r.index)+this.replaceWith+t+e.slice(r.index+r[0].length)}t=bt.exec(e)}return e=e.replace(kt,"$1"+this.replaceWith)}}const St=new RegExp("(\\d+\\s*(\\w+ ){1,2}"+/(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi.source+"(\\s+"+/(apt|bldg|dept|fl|hngr|lot|pier|rm|ste|slip|trlr|unit|#)\.? *[a-z0-9-]+\b/gi.source+")?)|("+/P\.? ?O\.? *Box +\d+/gi.source+")","gi"),Ct=Object.freeze(Object.defineProperty({__proto__:null,credentials:/(login( cred(ential)?s| info(rmation)?)?|cred(ential)?s) ?:\s*\S+\s+\/?\s*\S+/gi,creditCardNumber:/\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4}|\d{4}[ -]?\d{6}[ -]?\d{4}\d?/g,digits:/\b\d{4,}\b/g,emailAddress:/([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi,ipAddress:/(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,password:/(pass(word|phrase)?|secret): \S+/gi,phoneNumber:/(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,streetAddress:St,url:/([^\s:/?#]+):\/\/([^/?#\s]*)([^?#\s]*)(\?([^#\s]*))?(#([^\s]*))?/g,usSocialSecurityNumber:/\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,username:/(user( ?name)?|login): \S+/gi,zipcode:/\b\d{5}\b(-\d{4})?\b/g},Symbol.toStringTag,{value:"Module"}));function xt(e){return e.replace(/[A-Z]/g,(e,t)=>0!==t?`_${e.toLowerCase()}`:e.toLowerCase())}class It{constructor({replaceWith:e=xt("default").toUpperCase(),regexpPattern:t}){__publicField(this,"regexpMatcher"),__publicField(this,"replaceWith"),this.replaceWith=e,this.regexpMatcher=t}redact(e){return e.replace(this.regexpMatcher,this.replaceWith)}}function At(e){return void 0!==e.regexpPattern?new It({regexpPattern:e.regexpPattern,replaceWith:e.replaceWith}):e}class Et{constructor(e){__publicField(this,"childRedactors",[]),__publicField(this,"redact",e=>{for(const t of this.childRedactors)e=t.redact(e);return e}),this.childRedactors=function(e={}){const t=[];e.customRedactors&&e.customRedactors.before&&e.customRedactors.before.map(At).forEach(e=>t.push(e));for(const r of Object.keys(Ct))e.builtInRedactors&&e.builtInRedactors[r]&&!1===e.builtInRedactors[r].enabled||t.push(new It({regexpPattern:Ct[r],replaceWith:e.globalReplaceWith||xt(r).toUpperCase()}));return e.builtInRedactors&&e.builtInRedactors.names&&!1===e.builtInRedactors.names.enabled||t.push(new vt(e.globalReplaceWith)),e.customRedactors&&e.customRedactors.after&&e.customRedactors.after.map(At).forEach(e=>t.push(e)),t}(e)}}const Ot={before:[{regexpPattern:/\b[A-Z]\d{7}\b/g,replaceWith:"PASSPORT_NUMBER"},{regexpPattern:/(?<=password: )(.*)/gi,replaceWith:"[REDACTED]"}]};function Rt(e){return new Et({builtInRedactors:{names:{replaceWith:"ANONYMOUS_PERSON"}},customRedactors:Ot}).redact(e)}function Mt(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let r;for(;r=t.nextNode();){const e=r.nodeValue,t=Rt(e);e!==t&&(r.nodeValue=t)}!function(e){const t=Array.from(e.querySelectorAll('input[type="password"]'));t.forEach(e=>{e.value="[REDACTED]"})}(e)}async function jt(e={}){const{maxWaitTime:t=2e3,minStableFrames:r=3,requiredSelectors:n=[]}=e;return new Promise(e=>{const s=performance.now();let i,o=0,a=0;const l=()=>{if(performance.now()-s>t)return cancelAnimationFrame(i),void e();const c=document.documentElement.offsetHeight;if(c!==a||n.length&&!n.every(e=>{const t=document.querySelector(e);if(!t)return!1;const r=t.getBoundingClientRect();return r.width>0&&r.height>0}))o=0;else if(o++,o>=r)return cancelAnimationFrame(i),void e();a=c,i=requestAnimationFrame(l)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{i=requestAnimationFrame(l)},{once:!0}):i=requestAnimationFrame(l)})}var Nt,zt=Object.defineProperty,_t=(e,t,r)=>((e,t,r)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Tt=Object.defineProperty,Pt=(e,t,r)=>((e,t,r)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Lt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Lt||{});const Ft={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Dt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Bt={};function Ut(e){if(Bt[e])return Bt[e];const t=globalThis[e],r=t.prototype,n=e in Ft?Ft[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in Dt?Dt[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return Bt[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?Bt[e]=i:r}catch{return r}}const Wt={};function Vt(e,t,r){var n;const s=`${e}.${String(r)}`;if(Wt[s])return Wt[s].call(t);const i=Ut(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(Wt[s]=o,o.call(t)):t[r]}const qt={};function $t(e,t,r){const n=`${e}.${String(r)}`;if(qt[n])return qt[n].bind(t);const s=Ut(e)[r];return"function"!=typeof s?t[r]:(qt[n]=s,s.bind(t))}const Yt={childNodes:function(e){return Vt("Node",e,"childNodes")},parentNode:function(e){return Vt("Node",e,"parentNode")},parentElement:function(e){return Vt("Node",e,"parentElement")},textContent:function(e){return Vt("Node",e,"textContent")},contains:function(e,t){return $t("Node",e,"contains")(t)},getRootNode:function(e){return $t("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Vt("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Vt("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Vt("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Vt("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Ut("MutationObserver").constructor}};function Zt(e){return e.nodeType===e.ELEMENT_NODE}function Gt(e){const t=e&&"host"in e&&"mode"in e&&Yt.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Yt.shadowRoot(t)===e)}function Jt(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Ht(e){try{const r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href);const s=Array.from(r,e=>Xt(e,n)).join("");return(t=s).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(r){return null}var t}function Xt(e,t){if(function(e){return"styleSheet"in e}(e)){let t;try{t=Ht(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?lr(t,e.styleSheet.href):t}{let r=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(r=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(r)),t?lr(r,t):r}}let Kt=class{constructor(){Pt(this,"idNodeMap",new Map),Pt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Qt({element:e,maskInputOptions:t,tagName:r,type:n,value:s,maskInputFn:i}){let o=s||"";const a=n&&er(n);return(t[r.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function er(e){return e.toLowerCase()}const tr="__rrweb_original__";function rr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?er(t):null}function nr(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(Jk){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==n?void 0:n[1])??null}const sr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ir=/^(?:[a-z+]+:)?\/\//i,or=/^www\..*/i,ar=/^(data:)([^,]*),(.*)/i;function lr(e,t){return(e||"").replace(sr,(e,r,n,s,i,o)=>{const a=n||i||o,l=r||s||"";if(!a)return e;if(ir.test(a)||or.test(a))return`url(${l}${a}${l})`;if(ar.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),h=a.split("/");c.pop();for(const t of h)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${l}${c.join("/")}${l})`})}function cr(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function hr(e,t){return function(e,t){const r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&"string"==typeof e){const t=cr(e);for(let s=1;s<r.length;s++)if(r[s].textContent&&"string"==typeof r[s].textContent){const i=cr(r[s].textContent);for(let r=3;r<i.length;r++){const s=i.substring(0,r);if(2===t.split(s).length){const r=t.indexOf(s);for(let t=r;t<e.length;t++)if(cr(e.substring(0,t)).length===r){n.push(e.substring(0,t)),e=e.substring(t);break}break}}}}return n.push(e),n}(e,t).join("/* rr_split */")}let ur=1;const dr=new RegExp("[^a-z0-9-_:]");function pr(){return ur++}let mr,fr;const gr=/^[^ \t\n\r\u000c]+/,yr=/^[, \t\n\r\u000c]+/;const br=new WeakMap;function wr(e,t){return t&&""!==t.trim()?vr(e,t):t}function kr(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function vr(e,t){let r=br.get(e);if(r||(r=e.createElement("a"),br.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Sr(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?wr(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const s=e.exec(t.substring(r));return s?(n=s[0],r+=n.length,n):""}const s=[];for(;n(yr),!(r>=t.length);){let i=n(gr);if(","===i.slice(-1))i=wr(e,i.substring(0,i.length-1)),s.push(i);else{let n="";i=wr(e,i);let o=!1;for(;;){const e=t.charAt(r);if(""===e){s.push((i+n).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){r+=1,s.push((i+n).trim());break}"("===e&&(o=!0)}n+=e,r+=1}}}return s.join(", ")}(e,n):"style"===r?lr(n,vr(e)):"object"===t&&"data"===r?wr(e,n):n:wr(e,n):n}function Cr(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function xr(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&xr(Yt.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&xr(Yt.parentNode(e),t,r)}function Ir(e,t,r,n){let s;if(Zt(e)){if(s=e,!Yt.childNodes(s).length)return!1}else{if(null===Yt.parentElement(e))return!1;s=Yt.parentElement(e)}try{if("string"==typeof t){if(n){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(xr(s,t,n))return!0;if(r)if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}catch(i){}return!1}function Ar(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:h,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,y=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Lt.Document,childNodes:[],compatMode:e.compatMode}:{type:Lt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Lt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:s,inlineStylesheet:i,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:h,keepIframeSrcFn:u,newlyAddedElement:d=!1,rootId:p}=t,m=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(n){}return!1}(e,n,s),f=function(e){if(e instanceof HTMLFormElement)return"form";const t=er(e.tagName);return dr.test(t)?"div":t}(e);let g={};const y=e.attributes.length;for(let k=0;k<y;k++){const t=e.attributes[k];Cr(f,t.name,t.value)||(g[t.name]=Sr(r,f,er(t.name),t.value))}if("link"===f&&i){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=Ht(t)),n&&(delete g.rel,delete g.href,g._cssText=n)}if("style"===f&&e.sheet){let t=Ht(e.sheet);t&&(e.childNodes.length>1&&(t=hr(t,e)),g._cssText=t)}if("input"===f||"textarea"===f||"select"===f){const t=e.value,r=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=Qt({element:e,type:rr(e),tagName:f,value:t,maskInputOptions:o,maskInputFn:a}):r&&(g.checked=r)}"option"===f&&(e.selected&&!o.select?g.selected=!0:delete g.selected);"dialog"===f&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===f&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const s=t.getImageData,i=tr in s?s[tr]:s;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===f&&c){mr||(mr=r.createElement("canvas"),fr=mr.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{mr.width=t.naturalWidth,mr.height=t.naturalHeight,fr.drawImage(t,0,0),g.rr_dataURL=mr.toDataURL(l.type,l.quality)}catch(Jk){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${Jk}`)}"anonymous"===t.crossOrigin&&(s?g.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"===f||"video"===f){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop));if(m){const{width:t,height:r}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==f||u(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(f)&&(b=!0)}catch(w){}return{type:Lt.Element,tagName:f,attributes:g,childNodes:[],isSVG:kr(e)||void 0,needBlock:m,rootId:p,isCustom:b}}(e,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:h,dataURLOptions:u,inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f,rootId:y});case e.TEXT_NODE:return function(e,t){const{needsMask:r,maskTextFn:n,rootId:s,cssCaptured:i}=t,o=Yt.parentNode(e),a=o&&o.tagName;let l="";const c="STYLE"===a||void 0,h="SCRIPT"===a||void 0;h?l="SCRIPT_PLACEHOLDER":i||(l=Yt.textContent(e),c&&l&&(l=lr(l,vr(t.doc))));!c&&!h&&l&&r&&(l=n?n(l,Yt.parentElement(e)):l.replace(/[\S]/g,"*"));return{type:Lt.Text,textContent:l||"",rootId:s}}(e,{doc:r,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:Lt.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Lt.Comment,textContent:Yt.textContent(e)||"",rootId:y};default:return!1}}function Er(e){return null==e?"":e.toLowerCase()}function Or(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:h={},maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:x=!1}=t;let{needsMask:I}=t,{preserveWhiteSpace:A=!0}=t;if(!I){I=Ir(e,o,a,void 0===I)}const E=Ar(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:x});if(!E)return console.warn(e,"not serialized"),null;let O;O=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Lt.Comment)return!0;if(e.type===Lt.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===nr(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Er(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Er(e.attributes.name)||"icon"===Er(e.attributes.rel)||"apple-touch-icon"===Er(e.attributes.rel)||"shortcut icon"===Er(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Er(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Er(e.attributes.property).match(/^(og|twitter|fb):/)||Er(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Er(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Er(e.attributes.name)||"googlebot"===Er(e.attributes.name)||"bingbot"===Er(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Er(e.attributes.name)||"generator"===Er(e.attributes.name)||"framework"===Er(e.attributes.name)||"publisher"===Er(e.attributes.name)||"progid"===Er(e.attributes.name)||Er(e.attributes.property).match(/^article:/)||Er(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Er(e.attributes.name)||"yandex-verification"===Er(e.attributes.name)||"csrf-token"===Er(e.attributes.name)||"p:domain_verify"===Er(e.attributes.name)||"verify-v1"===Er(e.attributes.name)||"verification"===Er(e.attributes.name)||"shopify-checkout-api-token"===Er(e.attributes.name)))return!0}}return!1}(E,p)||!A&&E.type===Lt.Text&&!E.textContent.replace(/^\s+|\s+$/gm,"").length?-2:pr();const R=Object.assign(E,{id:O});if(n.add(e,R),-2===O)return null;y&&y(e);let M=!l;if(R.type===Lt.Element){M=M&&!R.needBlock,delete R.needBlock;const t=Yt.shadowRoot(e);t&&Jt(t)&&(R.isShadowHost=!0)}if((R.type===Lt.Document||R.type===Lt.Element)&&M){p.headWhitespace&&R.type===Lt.Element&&"head"===R.tagName&&(A=!1);const t={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S,cssCaptured:!1};if(R.type===Lt.Element&&"textarea"===R.tagName&&void 0!==R.attributes.value);else{R.type===Lt.Element&&void 0!==R.attributes._cssText&&"string"==typeof R.attributes._cssText&&(t.cssCaptured=!0);for(const r of Array.from(Yt.childNodes(e))){const e=Or(r,t);e&&R.childNodes.push(e)}}let C=null;if(Zt(e)&&(C=Yt.shadowRoot(e)))for(const e of Array.from(Yt.childNodes(C))){const r=Or(e,t);r&&(Jt(C)&&(r.isShadow=!0),R.childNodes.push(r))}}const j=Yt.parentNode(e);return j&&Gt(j)&&Jt(j)&&(R.isShadow=!0),R.type===Lt.Element&&"iframe"===R.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let s,i=!1;try{s=n.document.readyState}catch(a){return}if("complete"!==s){const n=setTimeout(()=>{i||(t(),i=!0)},r);return void e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}const o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&b){const r=Or(t,{doc:t,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});r&&b(e,r)}},w),R.type===Lt.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===nr(R.attributes.href))&&function(e,t,r){let n,s=!1;try{n=e.sheet}catch(o){return}if(n)return;const i=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),s=!0,t()})}(e,()=>{if(k){const t=Or(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});t&&k(e,t)}},v),R}function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var jr={exports:{}},Nr=String,zr=function(){return{isColorSupported:!1,reset:Nr,bold:Nr,dim:Nr,italic:Nr,underline:Nr,inverse:Nr,hidden:Nr,strikethrough:Nr,black:Nr,red:Nr,green:Nr,yellow:Nr,blue:Nr,magenta:Nr,cyan:Nr,white:Nr,gray:Nr,bgBlack:Nr,bgRed:Nr,bgGreen:Nr,bgYellow:Nr,bgBlue:Nr,bgMagenta:Nr,bgCyan:Nr,bgWhite:Nr}};jr.exports=zr(),jr.exports.createColors=zr;var _r=jr.exports;const Tr=Mr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Pr=_r,Lr=Tr,Fr=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Pr.isColorSupported),Lr&&e&&(t=Lr(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Pr.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Dr=Fr;Fr.default=Fr;var Br={};Br.isClean=Symbol("isClean"),Br.my=Symbol("my");const Ur={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Wr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Ur[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Ur[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Vr=Wr;Wr.default=Wr;let qr=Vr;function $r(e,t){new qr(t).stringify(e)}var Yr=$r;$r.default=$r;let{isClean:Zr,my:Gr}=Br,Jr=Dr,Hr=Vr,Xr=Yr;function Kr(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Kr(e,r)):("object"===i&&null!==s&&(s=Kr(s)),r[n]=s)}return r}let Qr=class{constructor(e={}){this.raws={},this[Zr]=!1,this[Gr]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Kr(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Jr(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Zr]){this[Zr]=!1;let e=this;for(;e=e.parent;)e[Zr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Hr).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Xr){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var en=Qr;Qr.default=Qr;let tn=en,rn=class extends tn{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var nn=rn;rn.default=rn;var sn={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:on,SourceMapGenerator:an}=Tr,{existsSync:ln,readFileSync:cn}=Tr,{dirname:hn,join:un}=Tr;let dn=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=hn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new on(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=hn(e),ln(e))return this.mapFile=e,cn(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof on)return an.fromSourceMap(t).toString();if(t instanceof an)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=un(hn(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var pn=dn;dn.default=dn;let{SourceMapConsumer:mn,SourceMapGenerator:fn}=Tr,{fileURLToPath:gn,pathToFileURL:yn}=Tr,{isAbsolute:bn,resolve:wn}=Tr,{nanoid:kn}=sn,vn=Tr,Sn=Dr,Cn=pn,xn=Symbol("fromOffsetCache"),In=Boolean(mn&&fn),An=Boolean(wn&&bn),En=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!An||/^\w+:\/\//.test(t.from)||bn(t.from)?this.file=t.from:this.file=wn(t.from)),An&&In){let e=new Cn(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+kn(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new Sn(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new Sn(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(yn&&(s.input.url=yn(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[xn])r=this[xn];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[xn]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:wn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=bn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!gn)throw new Error("file: protocol is not available in this PostCSS build");l.file=gn(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 On=En;En.default=En,vn&&vn.registerInput&&vn.registerInput(En);let{SourceMapConsumer:Rn,SourceMapGenerator:Mn}=Tr,{dirname:jn,relative:Nn,resolve:zn,sep:_n}=Tr,{pathToFileURL:Tn}=Tr,Pn=On,Ln=Boolean(Rn&&Mn),Fn=Boolean(jn&&zn&&Nn&&_n);var Dn=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||jn(e.file);!1===this.mapOpts.sourcesContent?(t=new Rn(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Fn&&Ln&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Mn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Mn({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 Mn({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?jn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=jn(zn(r,this.mapOpts.annotation)));let n=Nn(r,e);return this.memoizedPaths.set(e,n),n}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 Pn(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(Tn){let t=Tn(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===_n&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Bn=en,Un=class extends Bn{constructor(e){super(e),this.type="comment"}};var Wn=Un;Un.default=Un;let Vn,qn,$n,Yn,{isClean:Zn,my:Gn}=Br,Jn=nn,Hn=Wn,Xn=en;function Kn(e){return e.map(e=>(e.nodes&&(e.nodes=Kn(e.nodes)),delete e.source,e))}function Qn(e){if(e[Zn]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Qn(t)}let es=class e extends Xn{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Kn(Vn(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Jn(t)]}else if(t.selector)t=[new qn(t)];else if(t.name)t=[new $n(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Hn(t)]}return t.map(t=>(t[Gn]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Zn]&&Qn(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};es.registerParse=e=>{Vn=e},es.registerRule=e=>{qn=e},es.registerAtRule=e=>{$n=e},es.registerRoot=e=>{Yn=e};var ts=es;es.default=es,es.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,$n.prototype):"rule"===e.type?Object.setPrototypeOf(e,qn.prototype):"decl"===e.type?Object.setPrototypeOf(e,Jn.prototype):"comment"===e.type?Object.setPrototypeOf(e,Hn.prototype):"root"===e.type&&Object.setPrototypeOf(e,Yn.prototype),e[Gn]=!0,e.nodes&&e.nodes.forEach(e=>{es.rebuild(e)})};let rs,ns,ss=ts,is=class extends ss{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new rs(new ns,this,e).stringify()}};is.registerLazyResult=e=>{rs=e},is.registerProcessor=e=>{ns=e};var os=is;is.default=is;let as={};var ls=function(e){as[e]||(as[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var hs=cs;cs.default=cs;let us=hs,ds=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new us(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var ps=ds;ds.default=ds;const ms="'".charCodeAt(0),fs='"'.charCodeAt(0),gs="\\".charCodeAt(0),ys="/".charCodeAt(0),bs="\n".charCodeAt(0),ws=" ".charCodeAt(0),ks="\f".charCodeAt(0),vs="\t".charCodeAt(0),Ss="\r".charCodeAt(0),Cs="[".charCodeAt(0),xs="]".charCodeAt(0),Is="(".charCodeAt(0),As=")".charCodeAt(0),Es="{".charCodeAt(0),Os="}".charCodeAt(0),Rs=";".charCodeAt(0),Ms="*".charCodeAt(0),js=":".charCodeAt(0),Ns="@".charCodeAt(0),zs=/[\t\n\f\r "#'()/;[\\\]{}]/g,_s=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ts=/.[\r\n"'(/\\]/,Ps=/[\da-f]/i;let Ls=ts,Fs=class extends Ls{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 Ds=Fs;Fs.default=Fs,Ls.registerAtRule(Fs);let Bs,Us,Ws=ts,Vs=class extends Ws{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Bs(new Us,this,e).stringify()}};Vs.registerLazyResult=e=>{Bs=e},Vs.registerProcessor=e=>{Us=e};var qs=Vs;Vs.default=Vs,Ws.registerRoot(Vs);let $s={comma:e=>$s.split(e,[","],!0),space:e=>$s.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Ys=$s;$s.default=$s;let Zs=ts,Gs=Ys,Js=class extends Zs{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Gs.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Hs=Js;Js.default=Js,Zs.registerRule(Js);let Xs=nn,Ks=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case bs:case ws:case vs:case Ss:case ks:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===ws||r===bs||r===vs||r===Ss||r===ks);u=["space",d.slice(f,n)],f=n-1;break;case Cs:case xs:case Es:case Os:case js:case Rs:case As:{let e=String.fromCharCode(r);u=[e,e,f];break}case Is:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==ms&&h!==fs&&h!==ws&&h!==bs&&h!==vs&&h!==ks&&h!==Ss){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===gs;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Ts.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case ms:case fs:s=r===ms?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===gs;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case Ns:zs.lastIndex=f+1,zs.test(d),n=0===zs.lastIndex?d.length-1:zs.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case gs:for(n=f,o=!0;d.charCodeAt(n+1)===gs;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==ys&&r!==ws&&r!==bs&&r!==vs&&r!==Ss&&r!==ks&&(n+=1,Ps.test(d.charAt(n)))){for(;Ps.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===ws&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===ys&&d.charCodeAt(f+1)===Ms?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(_s.lastIndex=f+1,_s.test(d),n=0===_s.lastIndex?d.length-1:_s.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Qs=Wn,ei=Ds,ti=qs,ri=Hs;const ni={empty:!0,space:!0};let si=ts,ii=class{constructor(e){this.input=e,this.root=new ti,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new ei;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Qs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Ks(this.input)}decl(e,t){let r=new Xs;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ri;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",ni[a]||ni[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new ri;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},oi=On;function ai(e,t){let r=new oi(e,t),n=new ii(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var li=ai;ai.default=ai,si.registerParse(ai);let{isClean:ci,my:hi}=Br,ui=Dn,di=Yr,pi=ts,mi=os,fi=ls,gi=ps,yi=li,bi=qs;const wi={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ki={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},vi={Once:!0,postcssPlugin:!0,prepare:!0};function Si(e){return"object"==typeof e&&"function"==typeof e.then}function Ci(e){let t=!1,r=wi[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function xi(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Ci(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ii(e){return e[ci]=!1,e.nodes&&e.nodes.forEach(e=>Ii(e)),e}let Ai={},Ei=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof gi)s=Ii(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=yi;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[hi]&&pi.rebuild(s)}else s=Ii(r);this.result=new gi(t,s,n),this.helpers={...Ai,postcss:Ai,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Jk){console&&console.error&&console.error(Jk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!ki[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vi[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(Si(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ci];){e[ci]=!0;let r=[xi(e)];for(;r.length>0;){let e=this.visitTick(r);if(Si(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return Si(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=di;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ui(t,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 e of this.plugins){if(Si(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ci];)e[ci]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||fi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Si(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[ci])return n[ci]=!0,void e.push(xi(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[ci]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[ci]=!0;let t=Ci(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[ci]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};Ei.registerPostcss=e=>{Ai=e};var Oi=Ei;Ei.default=Ei,bi.registerLazyResult(Ei),mi.registerLazyResult(Ei);let Ri=Dn,Mi=Yr,ji=ls,Ni=li;const zi=ps;let _i=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=Mi;this.result=new zi(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new Ri(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||ji("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=Ni;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ti=_i;_i.default=_i;let Pi=Ti,Li=Oi,Fi=os,Di=qs,Bi=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Li(this,e,t):new Pi(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ui=Bi;Bi.default=Bi,Di.registerProcessor(Bi),Fi.registerProcessor(Bi);let Wi=nn,Vi=pn,qi=Wn,$i=Ds,Yi=On,Zi=qs,Gi=Hs;function Ji(e,t){if(Array.isArray(e))return e.map(e=>Ji(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Yi.prototype};r.map&&(r.map={...r.map,__proto__:Vi.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Ji(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Zi(n);if("decl"===n.type)return new Wi(n);if("rule"===n.type)return new Gi(n);if("comment"===n.type)return new qi(n);if("atrule"===n.type)return new $i(n);throw new Error("Unknown node type: "+e.type)}var Hi=Ji;Ji.default=Ji;let Xi=Dr,Ki=nn,Qi=Oi,eo=ts,to=Ui,ro=Yr,no=Hi,so=os,io=hs,oo=Wn,ao=Ds,lo=ps,co=On,ho=li,uo=Ys,po=Hs,mo=qs,fo=en;function go(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new to(e)}go.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new to).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return go([s(r)]).process(e,t)},s},go.stringify=ro,go.parse=ho,go.fromJSON=no,go.list=uo,go.comment=e=>new oo(e),go.atRule=e=>new ao(e),go.decl=e=>new Ki(e),go.rule=e=>new po(e),go.root=e=>new mo(e),go.document=e=>new so(e),go.CssSyntaxError=Xi,go.Declaration=Ki,go.Container=eo,go.Processor=to,go.Document=so,go.Comment=oo,go.Warning=io,go.AtRule=ao,go.Result=lo,go.Input=co,go.Rule=po,go.Root=mo,go.Node=fo,Qi.registerPostcss(go);var yo=go;go.default=go;const bo=Rr(yo);bo.stringify,bo.fromJSON,bo.plugin,bo.parse,bo.list,bo.document,bo.comment,bo.atRule,bo.rule,bo.decl,bo.root,bo.CssSyntaxError,bo.Declaration,bo.Container,bo.Processor,bo.Document,bo.Comment,bo.Warning,bo.AtRule,bo.Result,bo.Input,bo.Rule,bo.Root,bo.Node;var wo=Object.defineProperty,ko=(e,t,r)=>((e,t,r)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function So(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Co={exports:{}},xo=String,Io=function(){return{isColorSupported:!1,reset:xo,bold:xo,dim:xo,italic:xo,underline:xo,inverse:xo,hidden:xo,strikethrough:xo,black:xo,red:xo,green:xo,yellow:xo,blue:xo,magenta:xo,cyan:xo,white:xo,gray:xo,bgBlack:xo,bgRed:xo,bgGreen:xo,bgYellow:xo,bgBlue:xo,bgMagenta:xo,bgCyan:xo,bgWhite:xo}};Co.exports=Io(),Co.exports.createColors=Io;var Ao=Co.exports;const Eo=So(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Oo=Ao,Ro=Eo,Mo=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Oo.isColorSupported),Ro&&e&&(t=Ro(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Oo.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var jo=Mo;Mo.default=Mo;var No={};No.isClean=Symbol("isClean"),No.my=Symbol("my");const zo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let _o=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return zo[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=zo[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var To=_o;_o.default=_o;let Po=To;function Lo(e,t){new Po(t).stringify(e)}var Fo=Lo;Lo.default=Lo;let{isClean:Do,my:Bo}=No,Uo=jo,Wo=To,Vo=Fo;function qo(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>qo(e,r)):("object"===i&&null!==s&&(s=qo(s)),r[n]=s)}return r}let $o=class{constructor(e={}){this.raws={},this[Do]=!1,this[Bo]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=qo(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Uo(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Do]){this[Do]=!1;let e=this;for(;e=e.parent;)e[Do]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Wo).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Vo){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Yo=$o;$o.default=$o;let Zo=Yo,Go=class extends Zo{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Jo=Go;Go.default=Go;var Ho={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Xo,SourceMapGenerator:Ko}=Eo,{existsSync:Qo,readFileSync:ea}=Eo,{dirname:ta,join:ra}=Eo;let na=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ta(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Xo(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=ta(e),Qo(e))return this.mapFile=e,ea(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Xo)return Ko.fromSourceMap(t).toString();if(t instanceof Ko)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=ra(ta(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var sa=na;na.default=na;let{SourceMapConsumer:ia,SourceMapGenerator:oa}=Eo,{fileURLToPath:aa,pathToFileURL:la}=Eo,{isAbsolute:ca,resolve:ha}=Eo,{nanoid:ua}=Ho,da=Eo,pa=jo,ma=sa,fa=Symbol("fromOffsetCache"),ga=Boolean(ia&&oa),ya=Boolean(ha&&ca),ba=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ya||/^\w+:\/\//.test(t.from)||ca(t.from)?this.file=t.from:this.file=ha(t.from)),ya&&ga){let e=new ma(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+ua(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new pa(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new pa(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(la&&(s.input.url=la(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[fa])r=this[fa];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[fa]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ha(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=ca(a.source)?la(a.source):new URL(a.source,this.map.consumer().sourceRoot||la(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!aa)throw new Error("file: protocol is not available in this PostCSS build");l.file=aa(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 wa=ba;ba.default=ba,da&&da.registerInput&&da.registerInput(ba);let{SourceMapConsumer:ka,SourceMapGenerator:va}=Eo,{dirname:Sa,relative:Ca,resolve:xa,sep:Ia}=Eo,{pathToFileURL:Aa}=Eo,Ea=wa,Oa=Boolean(ka&&va),Ra=Boolean(Sa&&xa&&Ca&&Ia);var Ma=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||Sa(e.file);!1===this.mapOpts.sourcesContent?(t=new ka(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ra&&Oa&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=va.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new va({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 va({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Sa(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Sa(xa(r,this.mapOpts.annotation)));let n=Ca(r,e);return this.memoizedPaths.set(e,n),n}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 Ea(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(Aa){let t=Aa(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===Ia&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let ja=Yo,Na=class extends ja{constructor(e){super(e),this.type="comment"}};var za=Na;Na.default=Na;let _a,Ta,Pa,La,{isClean:Fa,my:Da}=No,Ba=Jo,Ua=za,Wa=Yo;function Va(e){return e.map(e=>(e.nodes&&(e.nodes=Va(e.nodes)),delete e.source,e))}function qa(e){if(e[Fa]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)qa(t)}let $a=class e extends Wa{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Va(_a(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ba(t)]}else if(t.selector)t=[new Ta(t)];else if(t.name)t=[new Pa(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Ua(t)]}return t.map(t=>(t[Da]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Fa]&&qa(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};$a.registerParse=e=>{_a=e},$a.registerRule=e=>{Ta=e},$a.registerAtRule=e=>{Pa=e},$a.registerRoot=e=>{La=e};var Ya=$a;$a.default=$a,$a.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Pa.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ta.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ba.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ua.prototype):"root"===e.type&&Object.setPrototypeOf(e,La.prototype),e[Da]=!0,e.nodes&&e.nodes.forEach(e=>{$a.rebuild(e)})};let Za,Ga,Ja=Ya,Ha=class extends Ja{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Za(new Ga,this,e).stringify()}};Ha.registerLazyResult=e=>{Za=e},Ha.registerProcessor=e=>{Ga=e};var Xa=Ha;Ha.default=Ha;let Ka={};var Qa=function(e){Ka[e]||(Ka[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let el=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var tl=el;el.default=el;let rl=tl,nl=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new rl(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var sl=nl;nl.default=nl;const il="'".charCodeAt(0),ol='"'.charCodeAt(0),al="\\".charCodeAt(0),ll="/".charCodeAt(0),cl="\n".charCodeAt(0),hl=" ".charCodeAt(0),ul="\f".charCodeAt(0),dl="\t".charCodeAt(0),pl="\r".charCodeAt(0),ml="[".charCodeAt(0),fl="]".charCodeAt(0),gl="(".charCodeAt(0),yl=")".charCodeAt(0),bl="{".charCodeAt(0),wl="}".charCodeAt(0),kl=";".charCodeAt(0),vl="*".charCodeAt(0),Sl=":".charCodeAt(0),Cl="@".charCodeAt(0),xl=/[\t\n\f\r "#'()/;[\\\]{}]/g,Il=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Al=/.[\r\n"'(/\\]/,El=/[\da-f]/i;let Ol=Ya,Rl=class extends Ol{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 Ml=Rl;Rl.default=Rl,Ol.registerAtRule(Rl);let jl,Nl,zl=Ya,_l=class extends zl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new jl(new Nl,this,e).stringify()}};_l.registerLazyResult=e=>{jl=e},_l.registerProcessor=e=>{Nl=e};var Tl=_l;_l.default=_l,zl.registerRoot(_l);let Pl={comma:e=>Pl.split(e,[","],!0),space:e=>Pl.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Ll=Pl;Pl.default=Pl;let Fl=Ya,Dl=Ll,Bl=class extends Fl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Dl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Ul=Bl;Bl.default=Bl,Fl.registerRule(Bl);let Wl=Jo,Vl=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case cl:case hl:case dl:case pl:case ul:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===hl||r===cl||r===dl||r===pl||r===ul);u=["space",d.slice(f,n)],f=n-1;break;case ml:case fl:case bl:case wl:case Sl:case kl:case yl:{let e=String.fromCharCode(r);u=[e,e,f];break}case gl:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==il&&h!==ol&&h!==hl&&h!==cl&&h!==dl&&h!==ul&&h!==pl){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===al;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Al.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case il:case ol:s=r===il?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===al;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case Cl:xl.lastIndex=f+1,xl.test(d),n=0===xl.lastIndex?d.length-1:xl.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case al:for(n=f,o=!0;d.charCodeAt(n+1)===al;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==ll&&r!==hl&&r!==cl&&r!==dl&&r!==pl&&r!==ul&&(n+=1,El.test(d.charAt(n)))){for(;El.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===hl&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===ll&&d.charCodeAt(f+1)===vl?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Il.lastIndex=f+1,Il.test(d),n=0===Il.lastIndex?d.length-1:Il.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},ql=za,$l=Ml,Yl=Tl,Zl=Ul;const Gl={empty:!0,space:!0};let Jl=Ya,Hl=class{constructor(e){this.input=e,this.root=new Yl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new $l;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new ql;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Vl(this.input)}decl(e,t){let r=new Wl;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Zl;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Gl[a]||Gl[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Zl;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Xl=wa;function Kl(e,t){let r=new Xl(e,t),n=new Hl(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Ql=Kl;Kl.default=Kl,Jl.registerParse(Kl);let{isClean:ec,my:tc}=No,rc=Ma,nc=Fo,sc=Ya,ic=Xa,oc=Qa,ac=sl,lc=Ql,cc=Tl;const hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},uc={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},dc={Once:!0,postcssPlugin:!0,prepare:!0};function pc(e){return"object"==typeof e&&"function"==typeof e.then}function mc(e){let t=!1,r=hc[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function fc(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:mc(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function gc(e){return e[ec]=!1,e.nodes&&e.nodes.forEach(e=>gc(e)),e}let yc={},bc=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof ac)s=gc(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=lc;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[tc]&&sc.rebuild(s)}else s=gc(r);this.result=new ac(t,s,n),this.helpers={...yc,postcss:yc,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Jk){console&&console.error&&console.error(Jk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!uc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!dc[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(pc(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ec];){e[ec]=!0;let r=[fc(e)];for(;r.length>0;){let e=this.visitTick(r);if(pc(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return pc(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=nc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new rc(t,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 e of this.plugins){if(pc(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ec];)e[ec]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||oc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(pc(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[ec])return n[ec]=!0,void e.push(fc(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[ec]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[ec]=!0;let t=mc(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[ec]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};bc.registerPostcss=e=>{yc=e};var wc=bc;bc.default=bc,cc.registerLazyResult(bc),ic.registerLazyResult(bc);let kc=Ma,vc=Fo,Sc=Qa,Cc=Ql;const xc=sl;let Ic=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=vc;this.result=new xc(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new kc(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||Sc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=Cc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ac=Ic;Ic.default=Ic;let Ec=Ac,Oc=wc,Rc=Xa,Mc=Tl,jc=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Oc(this,e,t):new Ec(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Nc=jc;jc.default=jc,Mc.registerProcessor(jc),Rc.registerProcessor(jc);let zc=Jo,_c=sa,Tc=za,Pc=Ml,Lc=wa,Fc=Tl,Dc=Ul;function Bc(e,t){if(Array.isArray(e))return e.map(e=>Bc(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Lc.prototype};r.map&&(r.map={...r.map,__proto__:_c.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Bc(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Fc(n);if("decl"===n.type)return new zc(n);if("rule"===n.type)return new Dc(n);if("comment"===n.type)return new Tc(n);if("atrule"===n.type)return new Pc(n);throw new Error("Unknown node type: "+e.type)}var Uc=Bc;Bc.default=Bc;let Wc=jo,Vc=Jo,qc=wc,$c=Ya,Yc=Nc,Zc=Fo,Gc=Uc,Jc=Xa,Hc=tl,Xc=za,Kc=Ml,Qc=sl,eh=wa,th=Ql,rh=Ll,nh=Ul,sh=Tl,ih=Yo;function oh(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Yc(e)}oh.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Yc).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return oh([s(r)]).process(e,t)},s},oh.stringify=Zc,oh.parse=th,oh.fromJSON=Gc,oh.list=rh,oh.comment=e=>new Xc(e),oh.atRule=e=>new Kc(e),oh.decl=e=>new Vc(e),oh.rule=e=>new nh(e),oh.root=e=>new sh(e),oh.document=e=>new Jc(e),oh.CssSyntaxError=Wc,oh.Declaration=Vc,oh.Container=$c,oh.Processor=Yc,oh.Document=Jc,oh.Comment=Xc,oh.Warning=Hc,oh.AtRule=Kc,oh.Result=Qc,oh.Input=eh,oh.Rule=nh,oh.Root=sh,oh.Node=ih,qc.registerPostcss(oh);var ah=oh;oh.default=oh;const lh=vo(ah);lh.stringify,lh.fromJSON,lh.plugin,lh.parse,lh.list,lh.document,lh.comment,lh.atRule,lh.rule,lh.decl,lh.root,lh.CssSyntaxError,lh.Declaration,lh.Container,lh.Processor,lh.Document,lh.Comment,lh.Warning,lh.AtRule,lh.Result,lh.Input,lh.Rule,lh.Root,lh.Node;let ch=class e{constructor(...e){ko(this,"parentElement",null),ko(this,"parentNode",null),ko(this,"ownerDocument"),ko(this,"firstChild",null),ko(this,"lastChild",null),ko(this,"previousSibling",null),ko(this,"nextSibling",null),ko(this,"ELEMENT_NODE",1),ko(this,"TEXT_NODE",3),ko(this,"nodeType"),ko(this,"nodeName"),ko(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};const hh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},dh={};function ph(e){if(dh[e])return dh[e];const t=globalThis[e],r=t.prototype,n=e in hh?hh[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in uh?uh[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return dh[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?dh[e]=i:r}catch{return r}}const mh={};function fh(e,t,r){var n;const s=`${e}.${String(r)}`;if(mh[s])return mh[s].call(t);const i=ph(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(mh[s]=o,o.call(t)):t[r]}const gh={};function yh(e,t,r){const n=`${e}.${String(r)}`;if(gh[n])return gh[n].bind(t);const s=ph(e)[r];return"function"!=typeof s?t[r]:(gh[n]=s,s.bind(t))}function bh(){return ph("MutationObserver").constructor}const wh={childNodes:function(e){return fh("Node",e,"childNodes")},parentNode:function(e){return fh("Node",e,"parentNode")},parentElement:function(e){return fh("Node",e,"parentElement")},textContent:function(e){return fh("Node",e,"textContent")},contains:function(e,t){return yh("Node",e,"contains")(t)},getRootNode:function(e){return yh("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?fh("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?fh("Element",e,"shadowRoot"):null},querySelector:function(e,t){return fh("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return fh("Element",e,"querySelectorAll")(t)},mutationObserver:bh};function kh(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const vh="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Sh={map:{},getId:()=>(console.error(vh),-1),getNode:()=>(console.error(vh),null),removeNodeFromMap(){console.error(vh)},has:()=>(console.error(vh),!1),reset(){console.error(vh)}};function Ch(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}}function xh(e,t,r,n,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>xh(e,t,i||{},!0)}function Ih(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Sh=new Proxy(Sh,{get:(e,t,r)=>("map"===t&&console.error(vh),Reflect.get(e,t,r))}));let Ah=Date.now;function Eh(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=wh.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=wh.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}}function Oh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Rh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Mh(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:wh.parentElement(e)}function jh(e,t,r,n){if(!e)return!1;const s=Mh(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(xr(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1}function Nh(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function zh(e,t){if(Gt(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const n=wh.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||zh(n,t))}function _h(e){return Boolean(e.changedTouches)}function Th(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ph(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Lh(e){return!!e&&(e instanceof ch&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(wh.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ah=()=>(new Date).getTime());let Fh=class{constructor(){_t(this,"id",1),_t(this,"styleIDMap",new WeakMap),_t(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Dh(e){var t;let r=null;return"getRootNode"in e&&(null==(t=wh.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&wh.host(wh.getRootNode(e))&&(r=wh.host(wh.getRootNode(e))),r}function Bh(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Dh(r);)r=t;return r}(e);return wh.contains(t,r)}function Uh(e){const t=e.ownerDocument;return!!t&&(wh.contains(t,e)||Bh(e))}var Wh=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Wh||{}),Vh=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Vh||{}),qh=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(qh||{}),$h=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))($h||{}),Yh=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Yh||{}),Zh=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Zh||{}),Gh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Gh||{});function Jh(e){return"__ln"in e}class Hh{constructor(){_t(this,"length",0),_t(this,"head",null),_t(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Jh(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Jh(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Xh=(e,t)=>`${e}@${t}`;class Kh{constructor(){_t(this,"frozen",!1),_t(this,"locked",!1),_t(this,"texts",[]),_t(this,"attributes",[]),_t(this,"attributeMap",new WeakMap),_t(this,"removes",[]),_t(this,"mapRemoves",[]),_t(this,"movedMap",{}),_t(this,"addedSet",new Set),_t(this,"movedSet",new Set),_t(this,"droppedSet",new Set),_t(this,"removesSubTreeCache",new Set),_t(this,"mutationCb"),_t(this,"blockClass"),_t(this,"blockSelector"),_t(this,"maskTextClass"),_t(this,"maskTextSelector"),_t(this,"inlineStylesheet"),_t(this,"maskInputOptions"),_t(this,"maskTextFn"),_t(this,"maskInputFn"),_t(this,"keepIframeSrcFn"),_t(this,"recordCanvas"),_t(this,"inlineImages"),_t(this,"slimDOMOptions"),_t(this,"dataURLOptions"),_t(this,"doc"),_t(this,"mirror"),_t(this,"iframeManager"),_t(this,"stylesheetManager"),_t(this,"shadowDomManager"),_t(this,"canvasManager"),_t(this,"processedNodeManager"),_t(this,"unattachedDoc"),_t(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),_t(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Hh,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},s=s=>{const i=wh.parentNode(s);if(!i||!Uh(s))return;let o=!1;if(s.nodeType===Node.TEXT_NODE){const e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}const a=Gt(i)?this.mirror.getId(Dh(s)):this.mirror.getId(i),l=n(s);if(-1===a||-1===l)return r.addNode(s);const c=Or(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Th(e,this.mirror)&&this.iframeManager.addIframe(e),Ph(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Lh(s)&&this.shadowDomManager.addShadowRoot(wh.shadowRoot(s),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});c&&(e.push({parentId:a,nextId:l,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)eu(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(wh.parentNode(a))||s(a);for(const a of this.addedSet)tu(this.droppedSet,a)||eu(this.removesSubTreeCache,a,this.mirror)?tu(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(wh.parentNode(i.value)),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(wh.parentNode(r.value));if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value,n=wh.parentNode(t);if(n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const t=wh.host(n);if(-1!==this.mirror.getId(t)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),s(e.value)}const o={texts:this.texts.map(e=>{const t=e.node,r=wh.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),_t(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(wh.childNodes(e),e=>wh.textContent(e)||"").join("")}),_t(this,"processMutation",e=>{if(!Nh(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=wh.textContent(e.target);jh(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Ir(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Mh(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const r=e.target;let n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){const e=rr(r);s=Qt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(jh(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!Cr(r.tagName,n))if(i.attributes[n]=Sr(this.doc,er(r.tagName),er(n),s),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(r.style)){const t=r.style.getPropertyValue(e),s=r.style.getPropertyPriority(e);t!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===s?t:[t,s]:i._unchangedStyles[e]=[t,s]}for(const e of Array.from(n.style))""===r.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":if(jh(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),n=Gt(e.target)?this.mirror.getId(wh.host(e.target)):this.mirror.getId(e.target);jh(e.target,this.blockClass,this.blockSelector,!1)||Nh(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Qh(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||zh(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Xh(r,n)]?Qh(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!Gt(e.target)||!Jt(e.target))||void 0}),function(e,t){const r=[e];for(;r.length;){const e=r.pop();t.has(e)||(t.add(e),wh.childNodes(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),_t(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Nh(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Xh(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);jh(e,this.blockClass,this.blockSelector,!1)||(wh.childNodes(e).forEach(e=>this.genAdds(e)),Lh(e)&&wh.childNodes(wh.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Qh(e,t){e.delete(t),wh.childNodes(t).forEach(t=>Qh(e,t))}function eu(e,t,r){return 0!==e.size&&function(e,t){const r=wh.parentNode(t);return!!r&&e.has(r)}(e,t)}function tu(e,t){return 0!==e.size&&ru(e,t)}function ru(e,t){const r=wh.parentNode(t);return!!r&&(!!e.has(r)||ru(e,r))}let nu;const su=e=>{if(!nu)return e;return(...t)=>{try{return e(...t)}catch(r){if(nu&&!0===nu(r))return;throw r}}},iu=[];function ou(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function au(e,t){const r=new Kh;iu.push(r),r.init(e);const n=new(bh())(su(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function lu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[];let l=null;return Object.keys(qh).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(i=>{let o=er(i);const c=(t=>i=>{const o=ou(i);if(jh(o,n,s,!0))return;let a=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":a=$h.Mouse;break;case"touch":a=$h.Touch;break;case"pen":a=$h.Pen}a===$h.Touch?qh[t]===qh.MouseDown?c="TouchStart":qh[t]===qh.MouseUp&&(c="TouchEnd"):$h.Pen}else _h(i)&&(a=$h.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===$h.Touch||c.startsWith("Mouse")&&a===$h.Mouse)&&(a=null)):qh[t]===qh.Click&&(a=l,l=null);const h=_h(i)?i.changedTouches[0]:i;if(!h)return;const u=r.getId(o),{clientX:d,clientY:p}=h;su(e)({type:qh[c],id:u,x:d,y:p,...null!==a&&{pointerType:a}})})(i);if(window.PointerEvent)switch(qh[i]){case qh.MouseDown:case qh.MouseUp:o=o.replace("mouse","pointer");break;case qh.TouchStart:case qh.TouchEnd:return}a.push(kh(o,c,t))}),su(()=>{a.forEach(e=>e())})}function cu({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){return kh("scroll",su(Ch(su(i=>{const o=ou(i);if(!o||jh(o,n,s,!0))return;const a=r.getId(o);if(o===t&&t.defaultView){const r=Eh(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}const hu=["INPUT","TEXTAREA","SELECT"],uu=new WeakMap;function du(e){return function(e,t){if(gu("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||gu("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||gu("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||gu("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function pu(e,t,r){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function mu({mirror:e,stylesheetManager:t},r){var n,s,i;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(wh.host(r));const a="#document"===r.nodeName?null==(n=r.defaultView)?void 0:n.Document:null==(i=null==(s=r.ownerDocument)?void 0:s.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;const n=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(s){}return n}}),su(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function fu(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;!function(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:s,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:h,canvasMutationCb:u,fontCb:d,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}(e,t),e.recordDOM&&(n=au(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const l=Ch(su(t=>{const r=Date.now()-o;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],o=null}),i),c=su(Ch(su(e=>{const t=ou(e),{clientX:r,clientY:s}=_h(e)?e.changedTouches[0]:e;o||(o=Ah()),a.push({x:r,y:s,id:n.getId(t),timeOffset:Ah()-o}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Vh.Drag:e instanceof MouseEvent?Vh.MouseMove:Vh.TouchMove)}),s,{trailing:!1})),h=[kh("mousemove",c,r),kh("touchmove",c,r),kh("drag",c,r)];return su(()=>{h.forEach(e=>e())})}(e),i=lu(e),o=cu(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return kh("resize",su(Ch(su(()=>{const t=Oh(),s=Rh();r===t&&n===s||(e({width:Number(s),height:Number(t)}),r=t,n=s)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:h}){function u(e){let r=ou(e);const c=e.isTrusted,u=r&&r.tagName;if(r&&"OPTION"===u&&(r=wh.parentElement(r)),!r||!u||hu.indexOf(u)<0||jh(r,n,s,!0))return;if(r.classList.contains(i)||o&&r.matches(o))return;let p=r.value,m=!1;const f=rr(r)||"";"radio"===f||"checkbox"===f?m=r.checked:(a[u.toLowerCase()]||a[f])&&(p=Qt({element:r,maskInputOptions:a,tagName:u,type:f,value:p,maskInputFn:l})),d(r,h?{text:p,isChecked:m,userTriggered:c}:{text:p,isChecked:m});const g=r.name;"radio"===f&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){const t=e.value;d(e,h?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function d(t,n){const s=uu.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){uu.set(t,n);const s=r.getId(t);su(e)({...n,id:s})}}const p=("last"===c.input?["change"]:["input","change"]).map(e=>kh(e,su(u),t)),m=t.defaultView;if(!m)return()=>{p.forEach(e=>e())};const f=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&p.push(...g.map(e=>xh(e[0],e[1],{set(){su(u)({target:this,isTrusted:!1})}},!1,m))),su(()=>{p.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:s,doc:i}){const o=su(i=>Ch(su(s=>{const o=ou(s);if(!o||jh(o,t,r,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:h,loop:u}=o;e({type:i,id:n.getId(o),currentTime:a,volume:l,muted:c,playbackRate:h,loop:u})}),s.media||500)),a=[kh("play",o(Zh.Play),i),kh("pause",o(Zh.Pause),i),kh("seeked",o(Zh.Seeked),i),kh("volumechange",o(Zh.VolumeChange),i),kh("ratechange",o(Zh.RateChange),i)];return su(()=>{a.forEach(e=>e())})}(e);let h=()=>{},u=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:su((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=pu(s,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){const s=`${e} { ${t} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[s,r])};const i=n.CSSStyleSheet.prototype.deleteRule;let o,a;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:su((n,s,i)=>{const[o]=i,{id:a,styleId:l}=pu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.removeRule=function(e){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:su((n,s,i)=>{const[o]=i,{id:a,styleId:l}=pu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(s,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:su((n,s,i)=>{const[o]=i,{id:a,styleId:l}=pu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(s,i)})}));const l={};yu("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(yu("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),yu("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),yu("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([n,s])=>{c[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[n].insertRule,{apply:su((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=pu(s.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...du(s),a||0]}]}),n.apply(s,i)})}),s.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:su((n,s,i)=>{const[o]=i,{id:a,styleId:l}=pu(s.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...du(s),o]}]}),n.apply(s,i)})})}),su(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,o&&(n.CSSStyleSheet.prototype.replace=o),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),u=mu(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:su((s,o,a)=>{var l;const[c,h,u]=a;if(r.has(c))return i.apply(o,[c,h,u]);const{id:d,styleId:p}=pu(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:h,priority:u},index:du(o.parentRule)}),s.apply(o,a)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:su((s,i,a)=>{var l;const[c]=a;if(r.has(c))return o.apply(i,[c]);const{id:h,styleId:u}=pu(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(h&&-1!==h||u&&-1!==u)&&e({id:h,styleId:u,remove:{property:c},index:du(i.parentRule)}),s.apply(i,a)})}),su(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const o=Ih(t.fonts,"add",function(t){return function(r){return setTimeout(su(()=>{const t=s.get(r);t&&(e(t),s.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(o),su(()=>{n.forEach(e=>e())})}(e)));const m=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,selectionCb:i}=e;let o=!0;const a=su(()=>{const e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:c,endOffset:h}=i;jh(o,n,s,!0)||jh(c,n,s,!0)||a.push({start:r.getId(o),startOffset:l,end:r.getId(c),endOffset:h})}i({ranges:a})});return a(),kh("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Ih(r.customElements,"define",function(e){return function(r,n,s){try{t({define:{name:r}})}catch(i){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,s])}}):()=>{}}(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,r,y.options));return su(()=>{iu.forEach(e=>e.reset()),null==n||n.disconnect(),s(),i(),o(),a(),l(),c(),h(),u(),d(),p(),m(),f(),g.forEach(e=>e())})}function gu(e){return void 0!==window[e]}function yu(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class bu{constructor(e){_t(this,"iframeIdToRemoteIdMap",new WeakMap),_t(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,n){const s=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=n.get(t);return s||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class wu{constructor(e){_t(this,"iframes",new WeakMap),_t(this,"crossOriginIframeMap",new WeakMap),_t(this,"crossOriginIframeMirror",new bu(pr)),_t(this,"crossOriginIframeStyleMirror"),_t(this,"crossOriginIframeRootIdMap",new WeakMap),_t(this,"mirror"),_t(this,"mutationCb"),_t(this,"wrappedEmit"),_t(this,"loadListener"),_t(this,"stylesheetManager"),_t(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new bu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case Wh.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Wh.IncrementalSnapshot,data:{source:Vh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Wh.Meta:case Wh.Load:case Wh.DomContentLoaded:return!1;case Wh.Plugin:return t;case Wh.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Wh.IncrementalSnapshot:switch(t.data.source){case Vh.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Vh.Drag:case Vh.TouchMove:case Vh.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Vh.ViewportResize:return!1;case Vh.MediaInteraction:case Vh.MouseInteraction:case Vh.Scroll:case Vh.CanvasMutation:case Vh.Input:return this.replaceIds(t.data,e,["id"]),t;case Vh.StyleSheetRule:case Vh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Vh.Font:return t;case Vh.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Vh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(const s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Gh.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ku{constructor(e){_t(this,"shadowDoms",new WeakSet),_t(this,"mutationCb"),_t(this,"scrollCb"),_t(this,"bypassOptions"),_t(this,"mirror"),_t(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Jt(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=au({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(cu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(wh.host(e))),this.restoreHandlers.push(mu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ih(e.prototype,"attachShadow",function(e){return function(n){const s=e.call(this,n),i=wh.shadowRoot(this);return i&&Uh(this)&&r.addShadowRoot(i,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Su="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Cu=0;Cu<64;Cu++)Su[vu.charCodeAt(Cu)]=Cu;const xu=new Map;const Iu=(e,t,r)=>{if(!e||!Ou(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=xu.get(e);return r||(r=new Map,xu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let s=n.indexOf(e);return-1===s&&(s=n.length,n.push(e)),s};function Au(e,t,r){if(e instanceof Array)return e.map(e=>Au(e,t,r));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,s="";for(t=0;t<n;t+=3)s+=vu[r[t]>>2],s+=vu[(3&r[t])<<4|r[t+1]>>4],s+=vu[(15&r[t+1])<<2|r[t+2]>>6],s+=vu[63&r[t+2]];return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Au(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Au(e.data,t,r),e.width,e.height]}}if(Ou(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:Iu(e,t,r)}}return e}const Eu=(e,t,r)=>e.map(e=>Au(e,t,r)),Ou=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function Ru(e,t,r,n){const s=[];try{const i=Ih(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(s,...i){if(!jh(this,t,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(e=>e())}}function Mu(e,t,r,n,s,i){const o=[],a=Object.getOwnPropertyNames(e);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue;const a=Ih(e,l,function(e){return function(...o){const a=e.apply(this,o);if(Iu(a,i,this),"tagName"in this.canvas&&!jh(this.canvas,n,s,!0)){const e=Eu(o,i,this),n={type:t,property:l,args:e};r(this.canvas,n)}return a}});o.push(a)}catch{const n=xh(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(n)}return o}const ju="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Nu="undefined"!=typeof window&&window.Blob&&new Blob([(zu=ju,Uint8Array.from(atob(zu),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var zu;function _u(e){let t;try{if(t=Nu&&(window.URL||window.webkitURL).createObjectURL(Nu),!t)throw"";const r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;base64,"+ju,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class Tu{constructor(e){_t(this,"pendingCanvasMutations",new Map),_t(this,"rafStamps",{latestId:0,invokeId:null}),_t(this,"mirror"),_t(this,"mutationCb"),_t(this,"resetObservers"),_t(this,"frozen",!1),_t(this,"locked",!1),_t(this,"processMutation",(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:n,blockSelector:s,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,s),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,s,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,n,s){const i=Ru(t,r,n,!0),o=new Map,a=new _u;a.onmessage=e=>{const{id:t}=e.data;if(o.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:s,height:i}=e.data;this.mutationCb({id:t,type:Yh["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/e;let c,h=0;const u=e=>{h&&e-h<l||(h=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{jh(t,r,n,!0)||e.push(t)}),e})().forEach(async e=>{var t;const r=this.mirror.getId(e);if(o.get(r))return;if(0===e.width||0===e.height)return;if(o.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=await createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:s.dataURLOptions},[n])})),c=requestAnimationFrame(u)};c=requestAnimationFrame(u),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Ru(e,t,r,!1),s=function(e,t,r,n){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const i=Ih(t.CanvasRenderingContext2D.prototype,o,function(s){return function(...i){return jh(this.canvas,r,n,!0)||setTimeout(()=>{const r=Eu(i,t,this);e(this.canvas,{type:Yh["2D"],property:o,args:r})},0),s.apply(this,i)}});s.push(i)}catch{const r=xh(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Yh["2D"],property:o,args:[t],setter:!0})}});s.push(r)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const s=[];return s.push(...Mu(t.WebGLRenderingContext.prototype,Yh.WebGL,e,r,n,t)),void 0!==t.WebGL2RenderingContext&&s.push(...Mu(t.WebGL2RenderingContext.prototype,Yh.WebGL2,e,r,n,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{n(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:s}=r[0];this.mutationCb({id:t,type:s,commands:n}),this.pendingCanvasMutations.delete(e)}}class Pu{constructor(e){_t(this,"trackedLinkElements",new WeakSet),_t(this,"mutationCb"),_t(this,"adoptedStyleSheetCb"),_t(this,"styleMirror",new Fh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const s of e){let e;this.styleMirror.has(s)?e=this.styleMirror.getId(s):(e=this.styleMirror.add(s),n.push({styleId:e,rules:Array.from(s.rules||CSSRule,(e,t)=>({rule:Xt(e,s.href),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Lu{constructor(){_t(this,"nodeMap",new WeakMap),_t(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Fu,Du,Bu,Uu=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Nt=e.contentWindow)?void 0:Nt.Array.from)||Array.from,document.body.removeChild(e)}}catch(Jk){console.debug("Unable to override Array.from",Jk)}const Wu=new Kt;function Vu(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:i=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:p,maskInputFn:m,maskTextFn:f,hooks:g,packFn:y,sampling:b={},dataURLOptions:w={},mousemoveWait:k,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:A=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:j}=e;nu=j;const N=!C||window.parent===window;let z=!1;if(!N)try{window.parent.document&&(z=!1)}catch(Y){z=!0}if(N&&!t)throw new Error("emit function is required");if(!N&&!z)return()=>{};void 0!==k&&void 0===b.mousemove&&(b.mousemove=k),Wu.reset();const _=!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},T=!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===p,headMetaDescKeywords:"all"===p,headTitleMutations:"all"===p}:p||{};let P;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let L=0;const F=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!z&&(e=y(e)),e};Fu=(e,s)=>{var i;const o=e;if(o.timestamp=Ah(),!(null==(i=iu[0])?void 0:i.isFrozen())||o.type===Wh.FullSnapshot||o.type===Wh.IncrementalSnapshot&&o.data.source===Vh.Mutation||iu.forEach(e=>e.unfreeze()),N)null==t||t(F(o),s);else if(z){const e={type:"rrweb",event:F(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===Wh.FullSnapshot)P=o,L=0;else if(o.type===Wh.IncrementalSnapshot){if(o.data.source===Vh.Mutation&&o.data.isAttachIframe)return;L++;const e=n&&L>=n,t=r&&o.timestamp-P.timestamp>r;(e||t)&&Du(!0)}};const D=e=>{Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.Mutation,...e}})},B=e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.Scroll,...e}}),U=e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.CanvasMutation,...e}}),W=new Pu({mutationCb:D,adoptedStyleSheetCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.AdoptedStyleSheet,...e}})}),V=new wu({mirror:Wu,mutationCb:D,stylesheetManager:W,recordCrossOriginIframes:C,wrappedEmit:Fu});for(const G of O||[])G.getMirror&&G.getMirror({nodeMirror:Wu,crossOriginIframeMirror:V.crossOriginIframeMirror,crossOriginIframeStyleMirror:V.crossOriginIframeStyleMirror});const q=new Lu;Bu=new Tu({recordCanvas:S,mutationCb:U,win:window,blockClass:s,blockSelector:i,mirror:Wu,sampling:b.canvas,dataURLOptions:w});const $=new ku({mutationCb:D,scrollCb:B,bypassOptions:{blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskInputOptions:_,dataURLOptions:w,maskTextFn:f,maskInputFn:m,recordCanvas:S,inlineImages:E,sampling:b,slimDOMOptions:T,iframeManager:V,stylesheetManager:W,canvasManager:Bu,keepIframeSrcFn:R,processedNodeManager:q},mirror:Wu});Du=(e=!1)=>{if(!v)return;Fu({type:Wh.Meta,data:{href:window.location.href,width:Rh(),height:Oh()}},e),W.reset(),$.init(),iu.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new Kt,blockClass:n="rr-block",blockSelector:s=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:h=!1,maskTextFn:u,maskInputFn:d,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v=()=>!1}=t||{};return Or(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===h?{password:!0}:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:c,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v,newlyAddedElement:!1})}(document,{mirror:Wu,blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskAllInputs:_,maskTextFn:f,maskInputFn:m,slimDOM:T,dataURLOptions:w,recordCanvas:S,inlineImages:E,onSerialize:e=>{Th(e,Wu)&&V.addIframe(e),Ph(e,Wu)&&W.trackLinkElement(e),Lh(e)&&$.addShadowRoot(wh.shadowRoot(e),document)},onIframeLoad:(e,t)=>{V.attachIframe(e,t),$.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{W.attachLinkElement(e,t)},keepIframeSrcFn:R});if(!t)return console.warn("Failed to snapshot the document");Fu({type:Wh.FullSnapshot,data:{node:t,initialOffset:Eh(window)}},e),iu.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Wu.getId(document))};try{const e=[],t=e=>{var t;return su(fu)({mutationCb:D,mousemoveCb:(e,t)=>Fu({type:Wh.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.MouseInteraction,...e}}),scrollCb:B,viewportResizeCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.ViewportResize,...e}}),inputCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.Input,...e}}),mediaInteractionCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.MediaInteraction,...e}}),styleSheetRuleCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.StyleSheetRule,...e}}),styleDeclarationCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.StyleDeclaration,...e}}),canvasMutationCb:U,fontCb:e=>Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.Font,...e}}),selectionCb:e=>{Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.Selection,...e}})},customElementCb:e=>{Fu({type:Wh.IncrementalSnapshot,data:{source:Vh.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:_,inlineStylesheet:h,sampling:b,recordDOM:v,recordCanvas:S,inlineImages:E,userTriggeredOnInput:I,collectFonts:A,doc:e,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:R,blockSelector:i,slimDOMOptions:T,dataURLOptions:w,mirror:Wu,iframeManager:V,stylesheetManager:W,shadowDomManager:$,processedNodeManager:q,canvasManager:Bu,ignoreCSSAttributes:M,plugins:(null==(t=null==O?void 0:O.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Fu({type:Wh.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};V.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(n){console.warn(n)}});const r=()=>{Du(),e.push(t(document)),Uu=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(kh("DOMContentLoaded",()=>{Fu({type:Wh.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()})),e.push(kh("load",()=>{Fu({type:Wh.Load,data:{}}),"load"===x&&r()},window))),()=>{e.forEach(e=>e()),q.destroy(),Uu=!1,nu=void 0}}catch(Z){console.warn(Z)}}var qu,$u;Vu.addCustomEvent=(e,t)=>{if(!Uu)throw new Error("please add custom event after start recording");Fu({type:Wh.Custom,data:{tag:e,payload:t}})},Vu.freezePage=()=>{iu.forEach(e=>e.freeze())},Vu.takeFullSnapshot=e=>{if(!Uu)throw new Error("please take full snapshot after start recording");Du(e)},Vu.mirror=Wu,($u=qu||(qu={}))[$u.NotStarted=0]="NotStarted",$u[$u.Running=1]="Running",$u[$u.Stopped=2]="Stopped";const{addCustomEvent:Yu}=Vu,{freezePage:Zu}=Vu,{takeFullSnapshot:Gu}=Vu;class Ju extends Array{constructor(){super()}isEmpty(){return 0===this.length}isFull(){return 10===this.length}flush(){return this.splice(0,this.length)}}class Hu{constructor(e){__publicField(this,"agent"),__publicField(this,"eventBuffer"),this.agent=e,this.eventBuffer=new Ju}start(){document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.send()})}handle(e){e.type===Wh.FullSnapshot&&this.eventBuffer.find(e=>e.type===Wh.FullSnapshot)||(this.eventBuffer.push(e),this.eventBuffer.isFull()&&this.send())}async send(){if(!this.eventBuffer.isEmpty()&&this.agent.sendEvents){const e=this.eventBuffer.flush();await this.agent.sendEvents(e)}}}var Xu,Ku=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ku||{}),Qu=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Qu||{}),ed=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ed||{}),td=Object.defineProperty,rd=(e,t,r)=>((e,t,r)=>t in e?td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),nd=Object.defineProperty,sd=(e,t,r)=>((e,t,r)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),id=Object.defineProperty,od=(e,t,r)=>((e,t,r)=>t in e?id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const ad={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ld={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},cd={};function hd(e){if(cd[e])return cd[e];const t=globalThis[e],r=t.prototype,n=e in ad?ad[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in ld?ld[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return cd[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?cd[e]=i:r}catch{return r}}const ud={};function dd(e,t,r){var n;const s=`${e}.${String(r)}`;if(ud[s])return ud[s].call(t);const i=hd(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(ud[s]=o,o.call(t)):t[r]}const pd={};function md(e,t,r){const n=`${e}.${String(r)}`;if(pd[n])return pd[n].bind(t);const s=hd(e)[r];return"function"!=typeof s?t[r]:(pd[n]=s,s.bind(t))}const fd={childNodes:function(e){return dd("Node",e,"childNodes")},parentNode:function(e){return dd("Node",e,"parentNode")},parentElement:function(e){return dd("Node",e,"parentElement")},textContent:function(e){return dd("Node",e,"textContent")},contains:function(e,t){return md("Node",e,"contains")(t)},getRootNode:function(e){return md("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?dd("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?dd("Element",e,"shadowRoot"):null},querySelector:function(e,t){return dd("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return dd("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return hd("MutationObserver").constructor}};class gd{constructor(){od(this,"idNodeMap",new Map),od(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function yd(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&yd(fd.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&yd(fd.parentNode(e),t,r)}function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wd(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var kd={exports:{}},vd=String,Sd=function(){return{isColorSupported:!1,reset:vd,bold:vd,dim:vd,italic:vd,underline:vd,inverse:vd,hidden:vd,strikethrough:vd,black:vd,red:vd,green:vd,yellow:vd,blue:vd,magenta:vd,cyan:vd,white:vd,gray:vd,bgBlack:vd,bgRed:vd,bgGreen:vd,bgYellow:vd,bgBlue:vd,bgMagenta:vd,bgCyan:vd,bgWhite:vd}};kd.exports=Sd(),kd.exports.createColors=Sd;var Cd=kd.exports;const xd=wd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Id=Cd,Ad=xd,Ed=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Id.isColorSupported),Ad&&e&&(t=Ad(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Id.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Od=Ed;Ed.default=Ed;var Rd={};Rd.isClean=Symbol("isClean"),Rd.my=Symbol("my");const Md={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let jd=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Md[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Md[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Nd=jd;jd.default=jd;let zd=Nd;function _d(e,t){new zd(t).stringify(e)}var Td=_d;_d.default=_d;let{isClean:Pd,my:Ld}=Rd,Fd=Od,Dd=Nd,Bd=Td;function Ud(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Ud(e,r)):("object"===i&&null!==s&&(s=Ud(s)),r[n]=s)}return r}let Wd=class{constructor(e={}){this.raws={},this[Pd]=!1,this[Ld]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ud(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Fd(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Pd]){this[Pd]=!1;let e=this;for(;e=e.parent;)e[Pd]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Dd).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Bd){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Vd=Wd;Wd.default=Wd;let qd=Vd,$d=class extends qd{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Yd=$d;$d.default=$d;var Zd={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Gd,SourceMapGenerator:Jd}=xd,{existsSync:Hd,readFileSync:Xd}=xd,{dirname:Kd,join:Qd}=xd;let ep=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Kd(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Gd(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=Kd(e),Hd(e))return this.mapFile=e,Xd(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Gd)return Jd.fromSourceMap(t).toString();if(t instanceof Jd)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Qd(Kd(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var tp=ep;ep.default=ep;let{SourceMapConsumer:rp,SourceMapGenerator:np}=xd,{fileURLToPath:sp,pathToFileURL:ip}=xd,{isAbsolute:op,resolve:ap}=xd,{nanoid:lp}=Zd,cp=xd,hp=Od,up=tp,dp=Symbol("fromOffsetCache"),pp=Boolean(rp&&np),mp=Boolean(ap&&op),fp=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!mp||/^\w+:\/\//.test(t.from)||op(t.from)?this.file=t.from:this.file=ap(t.from)),mp&&pp){let e=new up(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+lp(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new hp(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new hp(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(ip&&(s.input.url=ip(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[dp])r=this[dp];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[dp]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ap(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=op(a.source)?ip(a.source):new URL(a.source,this.map.consumer().sourceRoot||ip(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!sp)throw new Error("file: protocol is not available in this PostCSS build");l.file=sp(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 gp=fp;fp.default=fp,cp&&cp.registerInput&&cp.registerInput(fp);let{SourceMapConsumer:yp,SourceMapGenerator:bp}=xd,{dirname:wp,relative:kp,resolve:vp,sep:Sp}=xd,{pathToFileURL:Cp}=xd,xp=gp,Ip=Boolean(yp&&bp),Ap=Boolean(wp&&vp&&kp&&Sp);var Ep=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||wp(e.file);!1===this.mapOpts.sourcesContent?(t=new yp(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ap&&Ip&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=bp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new bp({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 bp({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?wp(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=wp(vp(r,this.mapOpts.annotation)));let n=kp(r,e);return this.memoizedPaths.set(e,n),n}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 xp(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(Cp){let t=Cp(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===Sp&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Op=Vd,Rp=class extends Op{constructor(e){super(e),this.type="comment"}};var Mp=Rp;Rp.default=Rp;let jp,Np,zp,_p,{isClean:Tp,my:Pp}=Rd,Lp=Yd,Fp=Mp,Dp=Vd;function Bp(e){return e.map(e=>(e.nodes&&(e.nodes=Bp(e.nodes)),delete e.source,e))}function Up(e){if(e[Tp]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Up(t)}let Wp=class e extends Dp{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Bp(jp(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Lp(t)]}else if(t.selector)t=[new Np(t)];else if(t.name)t=[new zp(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Fp(t)]}return t.map(t=>(t[Pp]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Tp]&&Up(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};Wp.registerParse=e=>{jp=e},Wp.registerRule=e=>{Np=e},Wp.registerAtRule=e=>{zp=e},Wp.registerRoot=e=>{_p=e};var Vp=Wp;Wp.default=Wp,Wp.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,zp.prototype):"rule"===e.type?Object.setPrototypeOf(e,Np.prototype):"decl"===e.type?Object.setPrototypeOf(e,Lp.prototype):"comment"===e.type?Object.setPrototypeOf(e,Fp.prototype):"root"===e.type&&Object.setPrototypeOf(e,_p.prototype),e[Pp]=!0,e.nodes&&e.nodes.forEach(e=>{Wp.rebuild(e)})};let qp,$p,Yp=Vp,Zp=class extends Yp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new qp(new $p,this,e).stringify()}};Zp.registerLazyResult=e=>{qp=e},Zp.registerProcessor=e=>{$p=e};var Gp=Zp;Zp.default=Zp;let Jp={};var Hp=function(e){Jp[e]||(Jp[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Xp=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Kp=Xp;Xp.default=Xp;let Qp=Kp,em=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Qp(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var tm=em;em.default=em;const rm="'".charCodeAt(0),nm='"'.charCodeAt(0),sm="\\".charCodeAt(0),im="/".charCodeAt(0),om="\n".charCodeAt(0),am=" ".charCodeAt(0),lm="\f".charCodeAt(0),cm="\t".charCodeAt(0),hm="\r".charCodeAt(0),um="[".charCodeAt(0),dm="]".charCodeAt(0),pm="(".charCodeAt(0),mm=")".charCodeAt(0),fm="{".charCodeAt(0),gm="}".charCodeAt(0),ym=";".charCodeAt(0),bm="*".charCodeAt(0),wm=":".charCodeAt(0),km="@".charCodeAt(0),vm=/[\t\n\f\r "#'()/;[\\\]{}]/g,Sm=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Cm=/.[\r\n"'(/\\]/,xm=/[\da-f]/i;let Im=Vp,Am=class extends Im{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 Em=Am;Am.default=Am,Im.registerAtRule(Am);let Om,Rm,Mm=Vp,jm=class extends Mm{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Om(new Rm,this,e).stringify()}};jm.registerLazyResult=e=>{Om=e},jm.registerProcessor=e=>{Rm=e};var Nm=jm;jm.default=jm,Mm.registerRoot(jm);let zm={comma:e=>zm.split(e,[","],!0),space:e=>zm.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var _m=zm;zm.default=zm;let Tm=Vp,Pm=_m,Lm=class extends Tm{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Pm.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Fm=Lm;Lm.default=Lm,Tm.registerRule(Lm);let Dm=Yd,Bm=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case om:case am:case cm:case hm:case lm:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===am||r===om||r===cm||r===hm||r===lm);u=["space",d.slice(f,n)],f=n-1;break;case um:case dm:case fm:case gm:case wm:case ym:case mm:{let e=String.fromCharCode(r);u=[e,e,f];break}case pm:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==rm&&h!==nm&&h!==am&&h!==om&&h!==cm&&h!==lm&&h!==hm){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===sm;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Cm.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case rm:case nm:s=r===rm?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===sm;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case km:vm.lastIndex=f+1,vm.test(d),n=0===vm.lastIndex?d.length-1:vm.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case sm:for(n=f,o=!0;d.charCodeAt(n+1)===sm;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==im&&r!==am&&r!==om&&r!==cm&&r!==hm&&r!==lm&&(n+=1,xm.test(d.charAt(n)))){for(;xm.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===am&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===im&&d.charCodeAt(f+1)===bm?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Sm.lastIndex=f+1,Sm.test(d),n=0===Sm.lastIndex?d.length-1:Sm.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Um=Mp,Wm=Em,Vm=Nm,qm=Fm;const $m={empty:!0,space:!0};let Ym=Vp,Zm=class{constructor(e){this.input=e,this.root=new Vm,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new Wm;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Um;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Bm(this.input)}decl(e,t){let r=new Dm;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new qm;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",$m[a]||$m[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new qm;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Gm=gp;function Jm(e,t){let r=new Gm(e,t),n=new Zm(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Hm=Jm;Jm.default=Jm,Ym.registerParse(Jm);let{isClean:Xm,my:Km}=Rd,Qm=Ep,ef=Td,tf=Vp,rf=Gp,nf=Hp,sf=tm,of=Hm,af=Nm;const lf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},cf={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},hf={Once:!0,postcssPlugin:!0,prepare:!0};function uf(e){return"object"==typeof e&&"function"==typeof e.then}function df(e){let t=!1,r=lf[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function pf(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:df(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function mf(e){return e[Xm]=!1,e.nodes&&e.nodes.forEach(e=>mf(e)),e}let ff={},gf=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof sf)s=mf(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=of;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[Km]&&tf.rebuild(s)}else s=mf(r);this.result=new sf(t,s,n),this.helpers={...ff,postcss:ff,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Jk){console&&console.error&&console.error(Jk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!cf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hf[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(uf(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Xm];){e[Xm]=!0;let r=[pf(e)];for(;r.length>0;){let e=this.visitTick(r);if(uf(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return uf(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=ef;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Qm(t,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 e of this.plugins){if(uf(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Xm];)e[Xm]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||nf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(uf(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Xm])return n[Xm]=!0,void e.push(pf(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Xm]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Xm]=!0;let t=df(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Xm]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};gf.registerPostcss=e=>{ff=e};var yf=gf;gf.default=gf,af.registerLazyResult(gf),rf.registerLazyResult(gf);let bf=Ep,wf=Td,kf=Hp,vf=Hm;const Sf=tm;let Cf=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=wf;this.result=new Sf(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new bf(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||kf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=vf;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var xf=Cf;Cf.default=Cf;let If=xf,Af=yf,Ef=Gp,Of=Nm,Rf=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Af(this,e,t):new If(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Mf=Rf;Rf.default=Rf,Of.registerProcessor(Rf),Ef.registerProcessor(Rf);let jf=Yd,Nf=tp,zf=Mp,_f=Em,Tf=gp,Pf=Nm,Lf=Fm;function Ff(e,t){if(Array.isArray(e))return e.map(e=>Ff(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Tf.prototype};r.map&&(r.map={...r.map,__proto__:Nf.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Ff(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Pf(n);if("decl"===n.type)return new jf(n);if("rule"===n.type)return new Lf(n);if("comment"===n.type)return new zf(n);if("atrule"===n.type)return new _f(n);throw new Error("Unknown node type: "+e.type)}var Df=Ff;Ff.default=Ff;let Bf=Od,Uf=Yd,Wf=yf,Vf=Vp,qf=Mf,$f=Td,Yf=Df,Zf=Gp,Gf=Kp,Jf=Mp,Hf=Em,Xf=tm,Kf=gp,Qf=Hm,eg=_m,tg=Fm,rg=Nm,ng=Vd;function sg(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new qf(e)}sg.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new qf).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return sg([s(r)]).process(e,t)},s},sg.stringify=$f,sg.parse=Qf,sg.fromJSON=Yf,sg.list=eg,sg.comment=e=>new Jf(e),sg.atRule=e=>new Hf(e),sg.decl=e=>new Uf(e),sg.rule=e=>new tg(e),sg.root=e=>new rg(e),sg.document=e=>new Zf(e),sg.CssSyntaxError=Bf,sg.Declaration=Uf,sg.Container=Vf,sg.Processor=qf,sg.Document=Zf,sg.Comment=Jf,sg.Warning=Gf,sg.AtRule=Hf,sg.Result=Xf,sg.Input=Kf,sg.Rule=tg,sg.Root=rg,sg.Node=ng,Wf.registerPostcss(sg);var ig=sg;sg.default=sg;const og=bd(ig);og.stringify,og.fromJSON,og.plugin,og.parse,og.list,og.document,og.comment,og.atRule,og.rule,og.decl,og.root,og.CssSyntaxError,og.Declaration,og.Container,og.Processor,og.Document,og.Comment,og.Warning,og.AtRule,og.Result,og.Input,og.Rule,og.Root,og.Node;var ag=Object.defineProperty,lg=(e,t,r)=>((e,t,r)=>t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function cg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hg(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ug={exports:{}},dg=String,pg=function(){return{isColorSupported:!1,reset:dg,bold:dg,dim:dg,italic:dg,underline:dg,inverse:dg,hidden:dg,strikethrough:dg,black:dg,red:dg,green:dg,yellow:dg,blue:dg,magenta:dg,cyan:dg,white:dg,gray:dg,bgBlack:dg,bgRed:dg,bgGreen:dg,bgYellow:dg,bgBlue:dg,bgMagenta:dg,bgCyan:dg,bgWhite:dg}};ug.exports=pg(),ug.exports.createColors=pg;var mg=ug.exports;const fg=hg(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let gg=mg,yg=fg,bg=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=gg.isColorSupported),yg&&e&&(t=yg(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=gg.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var wg=bg;bg.default=bg;var kg={};kg.isClean=Symbol("isClean"),kg.my=Symbol("my");const vg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Sg=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return vg[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=vg[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Cg=Sg;Sg.default=Sg;let xg=Cg;function Ig(e,t){new xg(t).stringify(e)}var Ag=Ig;Ig.default=Ig;let{isClean:Eg,my:Og}=kg,Rg=wg,Mg=Cg,jg=Ag;function Ng(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Ng(e,r)):("object"===i&&null!==s&&(s=Ng(s)),r[n]=s)}return r}let zg=class{constructor(e={}){this.raws={},this[Eg]=!1,this[Og]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ng(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Rg(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Eg]){this[Eg]=!1;let e=this;for(;e=e.parent;)e[Eg]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Mg).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=jg){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var _g=zg;zg.default=zg;let Tg=_g,Pg=class extends Tg{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Lg=Pg;Pg.default=Pg;var Fg={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Dg,SourceMapGenerator:Bg}=fg,{existsSync:Ug,readFileSync:Wg}=fg,{dirname:Vg,join:qg}=fg;let $g=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Vg(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Dg(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=Vg(e),Ug(e))return this.mapFile=e,Wg(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Dg)return Bg.fromSourceMap(t).toString();if(t instanceof Bg)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=qg(Vg(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Yg=$g;$g.default=$g;let{SourceMapConsumer:Zg,SourceMapGenerator:Gg}=fg,{fileURLToPath:Jg,pathToFileURL:Hg}=fg,{isAbsolute:Xg,resolve:Kg}=fg,{nanoid:Qg}=Fg,ey=fg,ty=wg,ry=Yg,ny=Symbol("fromOffsetCache"),sy=Boolean(Zg&&Gg),iy=Boolean(Kg&&Xg),oy=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!iy||/^\w+:\/\//.test(t.from)||Xg(t.from)?this.file=t.from:this.file=Kg(t.from)),iy&&sy){let e=new ry(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+Qg(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new ty(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new ty(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(Hg&&(s.input.url=Hg(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[ny])r=this[ny];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[ny]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Kg(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=Xg(a.source)?Hg(a.source):new URL(a.source,this.map.consumer().sourceRoot||Hg(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Jg)throw new Error("file: protocol is not available in this PostCSS build");l.file=Jg(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 ay=oy;oy.default=oy,ey&&ey.registerInput&&ey.registerInput(oy);let{SourceMapConsumer:ly,SourceMapGenerator:cy}=fg,{dirname:hy,relative:uy,resolve:dy,sep:py}=fg,{pathToFileURL:my}=fg,fy=ay,gy=Boolean(ly&&cy),yy=Boolean(hy&&dy&&uy&&py);var by=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||hy(e.file);!1===this.mapOpts.sourcesContent?(t=new ly(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yy&&gy&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=cy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new cy({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 cy({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?hy(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=hy(dy(r,this.mapOpts.annotation)));let n=uy(r,e);return this.memoizedPaths.set(e,n),n}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 fy(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(my){let t=my(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===py&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let wy=_g,ky=class extends wy{constructor(e){super(e),this.type="comment"}};var vy=ky;ky.default=ky;let Sy,Cy,xy,Iy,{isClean:Ay,my:Ey}=kg,Oy=Lg,Ry=vy,My=_g;function jy(e){return e.map(e=>(e.nodes&&(e.nodes=jy(e.nodes)),delete e.source,e))}function Ny(e){if(e[Ay]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Ny(t)}let zy=class e extends My{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=jy(Sy(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Oy(t)]}else if(t.selector)t=[new Cy(t)];else if(t.name)t=[new xy(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Ry(t)]}return t.map(t=>(t[Ey]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ay]&&Ny(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};zy.registerParse=e=>{Sy=e},zy.registerRule=e=>{Cy=e},zy.registerAtRule=e=>{xy=e},zy.registerRoot=e=>{Iy=e};var _y=zy;zy.default=zy,zy.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,xy.prototype):"rule"===e.type?Object.setPrototypeOf(e,Cy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Oy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ry.prototype):"root"===e.type&&Object.setPrototypeOf(e,Iy.prototype),e[Ey]=!0,e.nodes&&e.nodes.forEach(e=>{zy.rebuild(e)})};let Ty,Py,Ly=_y,Fy=class extends Ly{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ty(new Py,this,e).stringify()}};Fy.registerLazyResult=e=>{Ty=e},Fy.registerProcessor=e=>{Py=e};var Dy=Fy;Fy.default=Fy;let By={};var Uy=function(e){By[e]||(By[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Wy=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Vy=Wy;Wy.default=Wy;let qy=Vy,$y=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new qy(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var Yy=$y;$y.default=$y;const Zy="'".charCodeAt(0),Gy='"'.charCodeAt(0),Jy="\\".charCodeAt(0),Hy="/".charCodeAt(0),Xy="\n".charCodeAt(0),Ky=" ".charCodeAt(0),Qy="\f".charCodeAt(0),eb="\t".charCodeAt(0),tb="\r".charCodeAt(0),rb="[".charCodeAt(0),nb="]".charCodeAt(0),sb="(".charCodeAt(0),ib=")".charCodeAt(0),ob="{".charCodeAt(0),ab="}".charCodeAt(0),lb=";".charCodeAt(0),cb="*".charCodeAt(0),hb=":".charCodeAt(0),ub="@".charCodeAt(0),db=/[\t\n\f\r "#'()/;[\\\]{}]/g,pb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mb=/.[\r\n"'(/\\]/,fb=/[\da-f]/i;let gb=_y,yb=class extends gb{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 bb=yb;yb.default=yb,gb.registerAtRule(yb);let wb,kb,vb=_y,Sb=class extends vb{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new wb(new kb,this,e).stringify()}};Sb.registerLazyResult=e=>{wb=e},Sb.registerProcessor=e=>{kb=e};var Cb=Sb;Sb.default=Sb,vb.registerRoot(Sb);let xb={comma:e=>xb.split(e,[","],!0),space:e=>xb.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Ib=xb;xb.default=xb;let Ab=_y,Eb=Ib,Ob=class extends Ab{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Eb.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Rb=Ob;Ob.default=Ob,Ab.registerRule(Ob);let Mb=Lg,jb=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case Xy:case Ky:case eb:case tb:case Qy:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===Ky||r===Xy||r===eb||r===tb||r===Qy);u=["space",d.slice(f,n)],f=n-1;break;case rb:case nb:case ob:case ab:case hb:case lb:case ib:{let e=String.fromCharCode(r);u=[e,e,f];break}case sb:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==Zy&&h!==Gy&&h!==Ky&&h!==Xy&&h!==eb&&h!==Qy&&h!==tb){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===Jy;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||mb.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case Zy:case Gy:s=r===Zy?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===Jy;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case ub:db.lastIndex=f+1,db.test(d),n=0===db.lastIndex?d.length-1:db.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case Jy:for(n=f,o=!0;d.charCodeAt(n+1)===Jy;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==Hy&&r!==Ky&&r!==Xy&&r!==eb&&r!==tb&&r!==Qy&&(n+=1,fb.test(d.charAt(n)))){for(;fb.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===Ky&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===Hy&&d.charCodeAt(f+1)===cb?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(pb.lastIndex=f+1,pb.test(d),n=0===pb.lastIndex?d.length-1:pb.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Nb=vy,zb=bb,_b=Cb,Tb=Rb;const Pb={empty:!0,space:!0};let Lb=_y,Fb=class{constructor(e){this.input=e,this.root=new _b,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new zb;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Nb;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=jb(this.input)}decl(e,t){let r=new Mb;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Tb;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Pb[a]||Pb[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Tb;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Db=ay;function Bb(e,t){let r=new Db(e,t),n=new Fb(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Ub=Bb;Bb.default=Bb,Lb.registerParse(Bb);let{isClean:Wb,my:Vb}=kg,qb=by,$b=Ag,Yb=_y,Zb=Dy,Gb=Uy,Jb=Yy,Hb=Ub,Xb=Cb;const Kb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qb={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},ew={Once:!0,postcssPlugin:!0,prepare:!0};function tw(e){return"object"==typeof e&&"function"==typeof e.then}function rw(e){let t=!1,r=Kb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function nw(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rw(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function sw(e){return e[Wb]=!1,e.nodes&&e.nodes.forEach(e=>sw(e)),e}let iw={},ow=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof Jb)s=sw(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=Hb;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[Vb]&&Yb.rebuild(s)}else s=sw(r);this.result=new Jb(t,s,n),this.helpers={...iw,postcss:iw,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Jk){console&&console.error&&console.error(Jk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!Qb[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ew[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(tw(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Wb];){e[Wb]=!0;let r=[nw(e)];for(;r.length>0;){let e=this.visitTick(r);if(tw(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return tw(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=$b;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new qb(t,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 e of this.plugins){if(tw(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Wb];)e[Wb]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||Gb("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(tw(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Wb])return n[Wb]=!0,void e.push(nw(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Wb]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Wb]=!0;let t=rw(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Wb]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};ow.registerPostcss=e=>{iw=e};var aw=ow;ow.default=ow,Xb.registerLazyResult(ow),Zb.registerLazyResult(ow);let lw=by,cw=Ag,hw=Uy,uw=Ub;const dw=Yy;let pw=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=cw;this.result=new dw(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new lw(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||hw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=uw;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var mw=pw;pw.default=pw;let fw=mw,gw=aw,yw=Dy,bw=Cb,ww=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new gw(this,e,t):new fw(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var kw=ww;ww.default=ww,bw.registerProcessor(ww),yw.registerProcessor(ww);let vw=Lg,Sw=Yg,Cw=vy,xw=bb,Iw=ay,Aw=Cb,Ew=Rb;function Ow(e,t){if(Array.isArray(e))return e.map(e=>Ow(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Iw.prototype};r.map&&(r.map={...r.map,__proto__:Sw.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Ow(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Aw(n);if("decl"===n.type)return new vw(n);if("rule"===n.type)return new Ew(n);if("comment"===n.type)return new Cw(n);if("atrule"===n.type)return new xw(n);throw new Error("Unknown node type: "+e.type)}var Rw=Ow;Ow.default=Ow;let Mw=wg,jw=Lg,Nw=aw,zw=_y,_w=kw,Tw=Ag,Pw=Rw,Lw=Dy,Fw=Vy,Dw=vy,Bw=bb,Uw=Yy,Ww=ay,Vw=Ub,qw=Ib,$w=Rb,Yw=Cb,Zw=_g;function Gw(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new _w(e)}Gw.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new _w).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return Gw([s(r)]).process(e,t)},s},Gw.stringify=Tw,Gw.parse=Vw,Gw.fromJSON=Pw,Gw.list=qw,Gw.comment=e=>new Dw(e),Gw.atRule=e=>new Bw(e),Gw.decl=e=>new jw(e),Gw.rule=e=>new $w(e),Gw.root=e=>new Yw(e),Gw.document=e=>new Lw(e),Gw.CssSyntaxError=Mw,Gw.Declaration=jw,Gw.Container=zw,Gw.Processor=_w,Gw.Document=Lw,Gw.Comment=Dw,Gw.Warning=Fw,Gw.AtRule=Bw,Gw.Result=Uw,Gw.Input=Ww,Gw.Rule=$w,Gw.Root=Yw,Gw.Node=Zw,Nw.registerPostcss(Gw);var Jw=Gw;Gw.default=Gw;const Hw=cg(Jw);Hw.stringify,Hw.fromJSON,Hw.plugin,Hw.parse,Hw.list,Hw.document,Hw.comment,Hw.atRule,Hw.rule,Hw.decl,Hw.root,Hw.CssSyntaxError,Hw.Declaration,Hw.Container,Hw.Processor,Hw.Document,Hw.Comment,Hw.Warning,Hw.AtRule,Hw.Result,Hw.Input,Hw.Rule,Hw.Root,Hw.Node;class Xw{constructor(...e){lg(this,"parentElement",null),lg(this,"parentNode",null),lg(this,"ownerDocument"),lg(this,"firstChild",null),lg(this,"lastChild",null),lg(this,"previousSibling",null),lg(this,"nextSibling",null),lg(this,"ELEMENT_NODE",1),lg(this,"TEXT_NODE",3),lg(this,"nodeType"),lg(this,"nodeName"),lg(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Xw))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Kw={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qw={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ek={};function tk(e){if(ek[e])return ek[e];const t=globalThis[e],r=t.prototype,n=e in Kw?Kw[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in Qw?Qw[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return ek[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?ek[e]=i:r}catch{return r}}const rk={};function nk(e,t,r){var n;const s=`${e}.${String(r)}`;if(rk[s])return rk[s].call(t);const i=tk(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(rk[s]=o,o.call(t)):t[r]}const sk={};function ik(e,t,r){const n=`${e}.${String(r)}`;if(sk[n])return sk[n].bind(t);const s=tk(e)[r];return"function"!=typeof s?t[r]:(sk[n]=s,s.bind(t))}const ok={childNodes:function(e){return nk("Node",e,"childNodes")},parentNode:function(e){return nk("Node",e,"parentNode")},parentElement:function(e){return nk("Node",e,"parentElement")},textContent:function(e){return nk("Node",e,"textContent")},contains:function(e,t){return ik("Node",e,"contains")(t)},getRootNode:function(e){return ik("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?nk("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?nk("Element",e,"shadowRoot"):null},querySelector:function(e,t){return nk("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return nk("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return tk("MutationObserver").constructor}};const ak="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let lk={map:{},getId:()=>(console.error(ak),-1),getNode:()=>(console.error(ak),null),removeNodeFromMap(){console.error(ak)},has:()=>(console.error(ak),!1),reset(){console.error(ak)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(lk=new Proxy(lk,{get:(e,t,r)=>("map"===t&&console.error(ak),Reflect.get(e,t,r))}));let ck=Date.now;function hk(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:ok.parentElement(e)}/[1-9][0-9]{12}/.test(Date.now().toString())||(ck=()=>(new Date).getTime());function uk(e){var t;let r=null;return"getRootNode"in e&&(null==(t=ok.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ok.host(ok.getRootNode(e))&&(r=ok.host(ok.getRootNode(e))),r}function dk(e){let t,r=e;for(;t=uk(r);)r=t;return r}function pk(e){const t=e.ownerDocument;if(!t)return!1;const r=dk(e);return ok.contains(t,r)}const mk=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){sd(this,"id",1),sd(this,"styleIDMap",new WeakMap),sd(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return lk},closestElementOfNode:hk,getBaseDimension:function e(t,r){var n,s;const i=null==(s=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:s.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),a=e(i,r),l=o.height/i.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}},getNestedRule:function e(t,r){const n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){const t=[...e],r=t.pop();return{positions:t,index:r}},getRootShadowHost:dk,getShadowHost:uk,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=ok.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=ok.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Xw&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ok.shadowRoot(e)))},hookSetter:function e(t,r,n,s,i=window){const o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,s?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)},inDom:function(e){const t=e.ownerDocument;return!!t&&(ok.contains(t,e)||pk(e))},isAncestorRemoved:function e(t,r){if(function(e){const t=e&&"host"in e&&"mode"in e&&fd.host(e)||null;return Boolean(t&&"shadowRoot"in t&&fd.shadowRoot(t)===e)}(t))return!1;const n=r.getId(t);if(!r.has(n))return!0;const s=ok.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;const s=hk(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(yd(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(let n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return ck},on:function(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)},patch:function(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}},polyfill:function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){const t={},r=(e,r)=>{const n={value:e,parent:r,children:[]};return t[e.node.id]=n,n},n=[];for(const s of e){const{nextId:e,parentId:i}=s;if(e&&e in t){const i=t[e];if(i.parent){const e=i.parent.children.indexOf(i);i.parent.children.splice(e,0,r(s,i.parent))}else{const e=n.indexOf(i);n.splice(e,0,r(s,null))}}else if(i in t){const e=t[i];e.children.push(r(s,e))}else n.push(r(s,null))}return n},shadowHostInDom:pk,throttle:function(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}},uniqueTextMutations:function(e){const t=new Set,r=[];for(let n=e.length;n--;){const s=e[n];t.has(s.id)||(r.push(s),t.add(s.id))}return r}},Symbol.toStringTag,{value:"Module"}));for(var fk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gk="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yk=0;yk<64;yk++)gk[fk.charCodeAt(yk)]=yk;"undefined"!=typeof window&&window.Blob&&new Blob([(e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)))("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Xu=e.contentWindow)?void 0:Xu.Array.from)||Array.from,document.body.removeChild(e)}}catch(Jk){console.debug("Unable to override Array.from",Jk)}var bk;new gd,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(bk||(bk={}));class wk{constructor(e){rd(this,"fileName"),rd(this,"functionName"),rd(this,"lineNumber"),rd(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const kk=/(^|@)\S+:\d+/,vk=/^\s*at .*(\S+:\d+|\(native\))/m,Sk=/^(eval@)?(\[native code])?$/,Ck={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(vk)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(vk)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;const n=t.split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new wk({functionName:i,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Sk)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new wk({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,s=this.extractLocation(e.replace(t,""));return new wk({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[];for(let s=2,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new wk({fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[];for(let s=0,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new wk({functionName:e[3]||void 0,fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(kk)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new wk({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function xk(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();const n=e.parentElement,s=[];if(n.children&&n.children.length>0)for(let e=0;e<n.children.length;e++){const t=n.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&s.push(t)}s.length>1&&(r+=`:eq(${s.indexOf(e)})`),t=r+(t?">"+t:""),e=n}return t}function Ik(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ak(e,t){if(0===t)return!0;const r=Object.keys(e);for(const n of r)if(Ik(e[n])&&Ak(e[n],t-1))return!0;return!1}function Ek(e,t){const r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);const n=[],s=[];return JSON.stringify(e,function(e,t){if(n.length>0){const r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?s.splice(r,1/0,e):s.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Ik(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Ik(e)&&Ak(e,r.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=`${t.slice(0,r.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const r in t){const n=t[r];Array.isArray(n)?e[r]=xk(n.length?n[0]:null):e[r]=n}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}const Ok={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Rk(e,t,r){const n=r?Object.assign({},Ok,r):Ok,s=n.logger;if(!s)return()=>{};let i;i="string"==typeof s?t[s]:s;let o=0,a=!1;const l=[];if(n.level.includes("error")){const r=t=>{const r=t.message,s=t.error,i=Ck.parse(s).map(e=>e.toString()),o=[Ek(r,n.stringifyOptions)];e({level:"error",trace:i,payload:o})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});const s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[Ek(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=new Error,s=[Ek("Uncaught (in promise)",n.stringifyOptions),Ek(t.reason,n.stringifyOptions)]);const i=Ck.parse(r).map(e=>e.toString());e({level:"error",trace:i,payload:s})};t.addEventListener("unhandledrejection",s),l.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(const h of n.level)l.push(c(i,h));return()=>{l.forEach(e=>e())};function c(t,r){return t[r]?mk.patch(t,r,t=>(...s)=>{if(t.apply(this,s),!("assert"===r&&s[0]||a)){a=!0;try{const t=Ck.parse(new Error).map(e=>e.toString()).splice(1),i=("assert"===r?s.slice(1):s).map(e=>Ek(e,n.stringifyOptions));o++,o<n.lengthThreshold?e({level:r,trace:t,payload:i}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[Ek("The number of log records reached the threshold.")]})}catch(i){t("rrweb logger error:",i,...s)}finally{a=!1}}}):()=>{}}}const Mk={recordOptions:{blockClass:"bf-nocapture",blockSelector:void 0,ignoreClass:"bf-ignore-input",ignoreCSSAttributes:void 0,maskTextClass:"bf-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,maskTextFn:void 0},recordConsolePlugin:{level:["error"],lengthThreshold:Number.POSITIVE_INFINITY,stringifyOptions:{stringLengthLimit:Number.POSITIVE_INFINITY,numOfKeysLimit:Number.POSITIVE_INFINITY,depthOfLimit:Number.POSITIVE_INFINITY}},samplingOptions:{scroll:150,media:1e3,canvas:8,input:"last"}};class jk{constructor(e){var t;__publicField(this,"options"),__publicField(this,"stop"),this.options={...Mk.recordOptions,emit:e,plugins:[(t=Mk.recordConsolePlugin,{name:"rrweb/console@1",observer:Rk,options:t})],sampling:Mk.samplingOptions},this.stop=null}static mockImplementation(e){throw new Error("Method not implemented.")}start(){this.stop=Vu(this.options)??null}getMirror(){return Vu.mirror}takeFullSnapshot(){return Vu.takeFullSnapshot()}}class Nk{constructor(e){__publicField(this,"recordingManager"),__publicField(this,"isRunning"),__publicField(this,"events"),this.recordingManager=e,this.isRunning=!1,this.events=[]}start(){this.isRunning=!0}handle(e){this.isInitializingEvent(e)?this.events.push(e):this.stop(e)}isInitializingEvent(e){return[2,4].includes(e.type)||this.isSelectionEvent(e)||this.isConsoleEvent(e)}isSelectionEvent(e){return 3===e.type&&14===e.data.source}isConsoleEvent(e){return 6===e.type}stop(e){this.stamp(this.events,e.timestamp-1),this.publish(...this.events,e),this.events=[],this.isRunning=!1}stamp(e,t){e.forEach(e=>e.timestamp=t)}publish(...e){e.forEach(e=>{this.recordingManager.publishEvent(e)})}}function zk(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var s=1,i="";if("?"===e[a=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0===--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(s)throw new TypeError("Unbalanced pattern at ".concat(r));if(!i)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:i}),r=a}else{for(var o="",a=r+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[a++]}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=a}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,s=void 0===n?"./":n,i=t.delimiter,o=void 0===i?"/#?":i,a=[],l=0,c=0,h="",u=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=r[c],s=n.type,i=n.index;throw new TypeError("Unexpected ".concat(s," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=a[a.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||function(e){for(var t=0,r=o;t<r.length;t++){var n=r[t];if(e.indexOf(n)>-1)return!0}return!1}(r)?"[^".concat(Tk(o),"]+?"):"(?:(?!".concat(Tk(r),")[^").concat(Tk(o),"])+?")};c<r.length;){var f=u("CHAR"),g=u("NAME"),y=u("PATTERN");if(g||y){var b=f||"";-1===s.indexOf(b)&&(h+=b,b=""),h&&(a.push(h),h=""),a.push({name:g||l++,prefix:b,suffix:"",pattern:y||m(b),modifier:u("MODIFIER")||""})}else{var w=f||u("ESCAPED_CHAR");if(w)h+=w;else if(h&&(a.push(h),h=""),u("OPEN")){b=p();var k=u("NAME")||"",v=u("PATTERN")||"",S=p();d("CLOSE"),a.push({name:k||(v?l++:""),pattern:k&&!v?m(b):v,prefix:b,suffix:S,modifier:u("MODIFIER")||""})}else d("END")}}return a}function _k(e,t){var r=[];return function(e,t,r){void 0===r&&(r={});var n=r.decode,s=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],o=n.index,a=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var r=t[e-1];"*"===r.modifier||"+"===r.modifier?a[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return s(e,r)}):a[r.name]=s(n[e],r)},c=1;c<n.length;c++)l(c);return{path:i,index:o,params:a}}}(Fk(e,r,t),r,t)}function Tk(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Pk(e){return e&&e.sensitive?"":"i"}function Lk(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,i=r.start,o=void 0===i||i,a=r.end,l=void 0===a||a,c=r.encode,h=void 0===c?function(e){return e}:c,u=r.delimiter,d=void 0===u?"/#?":u,p=r.endsWith,m="[".concat(Tk(void 0===p?"":p),"]|$"),f="[".concat(Tk(d),"]"),g=o?"^":"",y=0,b=e;y<b.length;y++){var w=b[y];if("string"==typeof w)g+=Tk(h(w));else{var k=Tk(h(w.prefix)),v=Tk(h(w.suffix));if(w.pattern)if(t&&t.push(w),k||v)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";g+="(?:".concat(k,"((?:").concat(w.pattern,")(?:").concat(v).concat(k,"(?:").concat(w.pattern,"))*)").concat(v,")").concat(S)}else g+="(?:".concat(k,"(").concat(w.pattern,")").concat(v,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));g+="(".concat(w.pattern,")").concat(w.modifier)}else g+="(?:".concat(k).concat(v,")").concat(w.modifier)}}if(l)s||(g+="".concat(f,"?")),g+=r.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],x="string"==typeof C?f.indexOf(C[C.length-1])>-1:void 0===C;s||(g+="(?:".concat(f,"(?=").concat(m,"))?")),x||(g+="(?=".concat(f,"|").concat(m,")"))}return new RegExp(g,Pk(r))}(zk(e,r),t,r)}function Fk(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,s=r.exec(e.source);s;)t.push({name:s[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),s=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map(function(e){return Fk(e,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Pk(r))}(e,t,r):Lk(e,t,r)}function Dk(e,t){if(function(){if("undefined"==typeof window)return!1;const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e}()&&!t)return!1;const r=window.location.pathname;for(const s of e)try{if(_k(s,{decode:decodeURIComponent})(r))return!1}catch(n){if(s===r)return!1}return!0}const Bk=[Qu.MouseMove,Qu.MouseInteraction,Qu.Scroll,Qu.ViewportResize,Qu.Input,Qu.TouchMove,Qu.MediaInteraction,Qu.Drag];class Uk{constructor(e){__publicField(this,"agent"),__publicField(this,"recorder"),__publicField(this,"stasher"),this.agent=e,this.recorder=new jk(this.handleEvent.bind(this)),this.stasher=new Nk(this)}start(){this.recorder.start()}handleEvent(e){const t=new URL(window.location.href),r=t.origin+t.pathname;if(Dk(this.agent.recordingBlocklist,this.agent._allowLocalhostRecording)){if(this.agent.sessionManager.isIdle){if(!this.isInteractiveEvent(e))return;this.agent.handleActivityDuringIdle()}if(this.isClick(e)){let t=Vu.mirror.getNode(e.data.id);t&&this.nodeIsInteresting(t)&&(e.conversionData={},e.conversionData.eventType="click",e.conversionData.textContent=t.textContent,e.conversionData.htmlElement=t.nodeName?.toLowerCase(),e.conversionData.location=r)}this.isCustom(e)&&(e.conversionData={},e.conversionData.eventType="custom",e.conversionData.customEventType=e.data.tag,e.conversionData.location=r),this.stasher.isRunning?this.stasher.handle(e):this.publishEvent(e)}}publishEvent(e){this.agent.sender.handle(e),this.agent.timer&&this.agent.timer.restart()}startRecorderWithStasher(){this.stasher.start(),this.recorder=new jk(this.handleEvent.bind(this)),this.recorder.start()}isClick(e){return e.type===Ku.IncrementalSnapshot&&e.data.source===Qu.MouseInteraction&&e.data.type===ed.Click}nodeIsInteresting(e){return"BUTTON"===e.nodeName||"ANCHOR"===e.nodeName}isCustom(e){return e.type===Ku.Custom}isInteractiveEvent(e){return e.type===Ku.IncrementalSnapshot&&Bk.includes(e.data?.source)}}class Wk{constructor(e,t){__publicField(this,"agent"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timeoutId"),this.agent=e,this.MAX_IDLE_TIME=t,this.timeoutId=0}restart(){this.stop(),this.start()}stop(){clearTimeout(this.timeoutId)}start(){this.timeoutId=window.setTimeout(this.agent.handleTimeout.bind(this.agent),this.MAX_IDLE_TIME)}}const Vk=class e{constructor(){__publicField(this,"sessionId",null),__publicField(this,"lastScreenViewEventTime",0),__publicField(this,"isIdle",!1)}static getInstance(){return e.instance||(e.instance=new e),e.instance}determineSessionState(e){return!this.sessionId&&e?"new":this.sessionId&&e&&this.sessionId!==e?"changed":this.sessionId===e&&null!==this.sessionId?"active":"expired"}handleSessionTransition(e,t){switch(e){case"new":case"changed":this.updateIdleStatus(!1),t.takeFullSnapshot?.()}}updateSession(e,t={}){const r=this.determineSessionState(e);this.handleSessionTransition(r,t),this.sessionId=e}updateLastScreenViewEventTime(){this.lastScreenViewEventTime=Date.now()}updateIdleStatus(e){this.isIdle=e}getLastScreenViewEventTime(){return this.lastScreenViewEventTime}getCurrentSessionId(){return this.sessionId}};__publicField(Vk,"instance");let qk=Vk;const $k=class e{constructor(){__publicField(this,"recordingManager"),__publicField(this,"sender"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timer"),__publicField(this,"sendEvents"),__publicField(this,"sendScreenViewEvent"),__publicField(this,"recordingBlocklist",[]),__publicField(this,"_allowLocalhostRecording"),__publicField(this,"_allowScreenRecording"),__publicField(this,"sessionCreationPromise",null),this.recordingManager=new Uk(this),this.sender=new Hu(this)}get sessionManager(){return e._sessionManager}async start({sendEvents:e,sendScreenViewEvent:t,recordingBlocklist:r,_allowLocalhostRecording:n,_allowScreenRecording:s}){this.sendEvents=e,this.sendScreenViewEvent=t,this.recordingBlocklist=r,this._allowLocalhostRecording=n,this._allowScreenRecording=s,this.MAX_IDLE_TIME=6e4,this.timer=new Wk(this,this.MAX_IDLE_TIME),this.sender.start(),this.recordingManager.start()}handleTimeout(){this.recordingManager.recorder.stop&&this.recordingManager.recorder.stop(),this.sender.send(),this.recordingManager.startRecorderWithStasher(),e._sessionManager.updateIdleStatus(!0)}handleActivityDuringIdle(){null===e._sessionManager.getCurrentSessionId()&&(e._sessionManager.getLastScreenViewEventTime()>Date.now()-5e3||this.sessionCreationPromise||(this.sessionCreationPromise=this.createSession().finally(()=>{this.sessionCreationPromise=null})))}takeFullSnapshot(){return this.recordingManager.recorder.takeFullSnapshot()}static handleCustomEvent(e){Vu.addCustomEvent(e,null)}async createSession(){if(this.sendScreenViewEvent)try{this.sendScreenViewEvent({__path:window.location.href,__title:document.title,__is_session_refresh:!0})}catch(e){console.error("Failed to send screen_view event:",e)}}};__publicField($k,"_sessionManager",qk.getInstance());let Yk=$k;function Zk(e){return e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_",""))}class Gk extends Me{constructor(e){super({sdk:"web",sdkVersion:"0.0.22",...e}),__publicField(this,"lastPath",""),__publicField(this,"debounceTimer",null),__publicField(this,"agent"),__publicField(this,"sessionManager",qk.getInstance()),__publicField(this,"recordingBlocklist",[]),__publicField(this,"MAX_SCREENSHOT_SIZE",768e3),this.options=e,this.agent=new Yk,this.recordingBlocklist=e.recordingBlocklist||[],this.isServer()||(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackScreenViews&&this.trackScreenViews(),this.options.trackAttributes&&this.trackAttributes(),this.options.enableRecording&&this.options._allowScreenRecording&&(this.startRecording(),console.log("Brainfish has started ambient learning")))}debounce(e,t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(e,t)}isServer(){return"undefined"==typeof document}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("a");if(r&&t){const e=r.getAttribute("href");e?.startsWith("http")&&super.track("link_out",{href:e,text:r.innerText||r.getAttribute("title")||t.getAttribute("alt")||t.getAttribute("title")})}})}trackScreenViews(){if(this.isServer())return;this.screenView();const e=history.pushState;history.pushState=function(...t){const r=e.apply(this,t);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),r};const t=history.replaceState;history.replaceState=function(...e){const r=t.apply(this,e);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),r},window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))});const r=()=>this.debounce(()=>this.screenView(),100);this.options.trackHashChanges?window.addEventListener("hashchange",r):window.addEventListener("locationchange",r)}trackAttributes(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("button"),n=t.closest("a"),s=r?.getAttribute("data-track")?r:n?.getAttribute("data-track")?n:null;if(s){const e={};for(const r of s.attributes)r.name.startsWith("data-")&&"data-track"!==r.name&&(e[Zk(r.name.replace(/^data-/,""))]=r.value);const t=s.getAttribute("data-track");t&&super.track(t,e)}})}startRecording(){this.isServer()||this.agent.start({sendEvents:this.recordEventsToServer.bind(this),sendScreenViewEvent:this.sendScreenViewEvent.bind(this),recordingBlocklist:this.recordingBlocklist,_allowLocalhostRecording:this.options._allowLocalhostRecording})}async screenView(e,t){if(this.isServer())return;let r,n;if("string"==typeof e?(r=e,n=t):(r=window.location.href,n=e),this.lastPath===r)return;this.lastPath=r;const s={...n??{},__path:r,__title:document.title};if(this.options.enableRecording&&Dk(this.recordingBlocklist,this.options._allowLocalhostRecording))try{const e=await async function(e){try{await jt(e);const t=document.body.cloneNode(!0);return Mt(t),await yt(t)}catch(t){console.error("An error occurred:",t)}}();e&&(e.length<=this.MAX_SCREENSHOT_SIZE?s.__screenshot=e:(s.__screenshotOmitted=!0,s.__screenshotSizeInBytes=e.length))}catch(Jk){s.__screenshotOmitted=!0,s.__screenshotError=Jk.message}this.sendScreenViewEvent(s)}async recordEventsToServer(e){const t=await this.record(e);this.sessionManager.updateSession(t,{takeFullSnapshot:()=>{this.agent.takeFullSnapshot()}})}sendScreenViewEvent(e){super.track("screen_view",e),this.sessionManager.updateLastScreenViewEventTime()}}(e=>{if(e.BrainfishAnalytics&&"q"in e.BrainfishAnalytics){const t=e.BrainfishAnalytics.q||[],r=t.findIndex(e=>"init"===e[0]);if(-1===r)return void console.warn("BrainfishAnalytics has not been initialized.");const[n]=t.splice(r,1),s=new Gk(n[1]);t.forEach(e=>{e[0]in s&&s[e[0]](...e.slice(1))}),e.BrainfishAnalytics=(e,...t)=>{const r=s[e]?s[e].bind(s):void 0;"function"==typeof r?r(...t):console.warn(`Method ${e} does not exist on BrainfishAnalytics`)}}})(window)}();
1
+ var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r);!function(){"use strict";const e=Object.create(null);e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Object.keys(e).forEach(r=>{t[e[r]]=r});const r={type:"error",data:"parser error"},n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,o=({type:t,data:r},o,l)=>n&&r instanceof Blob?o?l(r):a(r,l):s&&(r instanceof ArrayBuffer||i(r))?o?l(r):a(new Blob([r]),l):l(e[t]+(r||"")),a=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function l(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let Xk=0;Xk<64;Xk++)u[h.charCodeAt(Xk)]=Xk;const d="function"==typeof ArrayBuffer,p=(e,n)=>{if("string"!=typeof e)return{type:"message",data:f(e,n)};const s=e.charAt(0);if("b"===s)return{type:"message",data:m(e.substring(1),n)};return t[s]?e.length>1?{type:t[s],data:e.substring(1)}:{type:t[s]}:r},m=(e,t)=>{if(d){const r=(e=>{let t,r,n,s,i,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);const c=new ArrayBuffer(o),h=new Uint8Array(c);for(t=0;t<a;t+=4)r=u[e.charCodeAt(t)],n=u[e.charCodeAt(t+1)],s=u[e.charCodeAt(t+2)],i=u[e.charCodeAt(t+3)],h[l++]=r<<2|n>>4,h[l++]=(15&n)<<4|s>>2,h[l++]=(3&s)<<6|63&i;return c})(e);return f(r,t)}return{base64:!0,data:e}},f=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,g=String.fromCharCode(30);function y(){return new TransformStream({transform(e,t){!function(e,t){n&&e.data instanceof Blob?e.data.arrayBuffer().then(l).then(t):s&&(e.data instanceof ArrayBuffer||i(e.data))?t(l(e.data)):o(e,!1,e=>{c||(c=new TextEncoder),t(c.encode(e))})}(e,r=>{const n=r.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const e=new DataView(s.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{s=new Uint8Array(9);const e=new DataView(s.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(s[0]|=128),t.enqueue(s),t.enqueue(r)})}})}let b;function w(e){return e.reduce((e,t)=>e+t.length,0)}function k(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)r[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function v(e){if(e)return function(e){for(var t in v.prototype)e[t]=v.prototype[t];return e}(e)}v.prototype.on=v.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},v.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<n.length;s++)if((r=n[s])===t||r.fn===t){n.splice(s,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},v.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var s=(r=r.slice(0)).length;n<s;++n)r[n].apply(this,t)}return this},v.prototype.emitReserved=v.prototype.emit,v.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},v.prototype.hasListeners=function(e){return!!this.listeners(e).length};const S="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function x(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const I=C.setTimeout,A=C.clearTimeout;function E(e,t){t.useNativeTimers?(e.setTimeoutFn=I.bind(C),e.clearTimeoutFn=A.bind(C)):(e.setTimeoutFn=C.setTimeout.bind(C),e.clearTimeoutFn=C.clearTimeout.bind(C))}function O(e){return"string"==typeof e?function(e){let t=0,r=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil(1.33*(e.byteLength||e.size))}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class M extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class j extends v{constructor(e){super(),this.writable=!1,E(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new M(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=p(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class N extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(g),n=[];for(let s=0;s<r.length;s++){const e=p(r[s],t);if(n.push(e),"error"===e.type)break}return n})(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let s=0;e.forEach((e,i)=>{o(e,!1,e=>{n[i]=e,++s===r&&t(n.join(g))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let _=!1;try{_="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Hk){}const z=_;function T(){}class P extends N{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class L extends v{constructor(e,t,r){super(),this.createRequest=e,E(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;const t=x(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(n){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(n){return void this.setTimeoutFn(()=>{this._onError(n)},0)}"undefined"!=typeof document&&(this._index=L.requestsCount++,L.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=T,e)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete L.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(L.requestsCount=0,L.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",F);else if("function"==typeof addEventListener){addEventListener("onpagehide"in C?"pagehide":"unload",F,!1)}function F(){for(let e in L.requests)L.requests.hasOwnProperty(e)&&L.requests[e].abort()}const D=function(){const e=B({xdomain:!1});return e&&null!==e.responseType}();function B(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||z))return new XMLHttpRequest}catch(r){}if(!t)try{return new(C[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}const U="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class W extends j{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=U?{}:x(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(Hk){return this.emitReserved("error",Hk)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;o(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(t){}n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const V=C.WebSocket||C.MozWebSocket;const q={websocket:class extends W{createSocket(e,t,r){return U?new V(e,t,r):t?new V(e,t):new V(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Hk){return this.emitReserved("error",Hk)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=function(e,t){b||(b=new TextDecoder);const n=[];let s=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(0===s){if(w(n)<1)break;const e=k(n,1);o=!(128&~e[0]),i=127&e[0],s=i<126?3:126===i?1:2}else if(1===s){if(w(n)<2)break;const e=k(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),s=3}else if(2===s){if(w(n)<8)break;const e=k(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){l.enqueue(r);break}i=o*Math.pow(2,32)+t.getUint32(4),s=3}else{if(w(n)<i)break;const e=k(n,i);l.enqueue(p(o?e:b.decode(e),t)),s=0}if(0===i||i>e){l.enqueue(r);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),s=y();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();const i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&S(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends P{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=D&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new L(B,this.uri(),e)}}},$=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Z(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let s=$.exec(e||""),i={},o=14;for(;o--;)i[Y[o]]=s[o]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,i.path),i.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,i.query),i}const G="function"==typeof addEventListener&&"function"==typeof removeEventListener,J=[];G&&addEventListener("offline",()=>{J.forEach(e=>e())},!1);class H extends v{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=Z(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=Z(t.host).host);E(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,s=r.length;n<s;n++){let e=r[n].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),G&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},J.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const e=this.opts.rememberUpgrade&&H.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",H.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=O(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,S(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const s={type:e,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(H.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),G&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=J.indexOf(this._offlineEventListener);-1!==e&&J.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}H.protocol=4;class X extends H{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;H.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;H.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function s(){r||(r=!0,c(),t.close(),t=null)}const i=e=>{const r=new Error("probe error: "+e);r.transport=t.name,s(),this.emitReserved("upgradeError",r)};function o(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&s()}const c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",i),t.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let K=class extends X{constructor(e,t={}){const r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>q[e]).filter(e=>!!e)),super(e,r)}};const Q="function"==typeof ArrayBuffer,ee=Object.prototype.toString,te="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ee.call(Blob),re="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ee.call(File);function ne(e){return Q&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||te&&e instanceof Blob||re&&e instanceof File}function se(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(se(e[t]))return!0;return!1}if(ne(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return se(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&se(e[r]))return!0;return!1}function ie(e){const t=[],r=e.data,n=e;return n.data=oe(r,t),n.attachments=t.length,{packet:n,buffers:t}}function oe(e,t){if(!e)return e;if(ne(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=oe(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=oe(e[n],t));return r}return e}function ae(e,t){return e.data=le(e.data,t),delete e.attachments,e}function le(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=le(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=le(e[r],t));return e}const ce=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var he,ue;(ue=he||(he={}))[ue.CONNECT=0]="CONNECT",ue[ue.DISCONNECT=1]="DISCONNECT",ue[ue.EVENT=2]="EVENT",ue[ue.ACK=3]="ACK",ue[ue.CONNECT_ERROR=4]="CONNECT_ERROR",ue[ue.BINARY_EVENT=5]="BINARY_EVENT",ue[ue.BINARY_ACK=6]="BINARY_ACK";function de(e){return"[object Object]"===Object.prototype.toString.call(e)}class pe extends v{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===he.BINARY_EVENT;r||t.type===he.BINARY_ACK?(t.type=r?he.EVENT:he.ACK,this.reconstructor=new me(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ne(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===he[r.type])throw new Error("unknown packet type "+r.type);if(r.type===he.BINARY_EVENT||r.type===he.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const s=e.substring(n,t);if(s!=Number(s)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(s)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(n,t)}else r.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!pe.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case he.CONNECT:return de(t);case he.DISCONNECT:return void 0===t;case he.CONNECT_ERROR:return"string"==typeof t||de(t);case he.EVENT:case he.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ce.indexOf(t[0]));case he.ACK:case he.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class me{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=ae(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:pe,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==he.EVENT&&e.type!==he.ACK||!se(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===he.EVENT?he.BINARY_EVENT:he.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==he.BINARY_EVENT&&e.type!==he.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ie(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},get PacketType(){return he},protocol:5},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const ye=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class be extends v{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ge(e,"open",this.onopen.bind(this)),ge(e,"packet",this.onpacket.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,s;if(ye.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:he.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),i.id=e}const o=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(s=this.io.engine)||void 0===s?void 0:s._hasPingExpired());return this.flags.volatile&&!o||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},n),i=(...e)=>{this.io.clearTimeoutFn(s),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((r,n)=>{const s=(e,t)=>e?n(e):r(t);s.withError=!0,t.push(s),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:he.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case he.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case he.EVENT:case he.BINARY_EVENT:this.onevent(e);break;case he.ACK:case he.BINARY_ACK:this.onack(e);break;case he.DISCONNECT:this.ondisconnect();break;case he.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:he.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:he.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function we(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}we.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},we.prototype.reset=function(){this.attempts=0},we.prototype.setMin=function(e){this.ms=e},we.prototype.setMax=function(e){this.max=e},we.prototype.setJitter=function(e){this.jitter=e};class ke extends v{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,E(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new we({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||fe;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new K(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=ge(t,"open",function(){r.onopen(),e&&e()}),s=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=ge(t,"error",s);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ge(e,"ping",this.onping.bind(this)),ge(e,"data",this.ondata.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this)),ge(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){S(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new be(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ve={};function Se(e,t){"object"==typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=Z(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,s=r.id,i=r.path,o=ve[s]&&i in ve[s].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||o?a=new ke(n,t):(ve[s]||(ve[s]=new ke(n,t)),a=ve[s]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(Se,{Manager:ke,Socket:be,io:Se,connect:Se});class Ce{constructor(e){__publicField(this,"socket"),__publicField(this,"encode"),__publicField(this,"decode"),this.socket=Se(e.baseUrl,{transports:["websocket"],path:"/analytics/ws",auth:{token:e.authToken},query:e.query}),this.encode=e.encoder??(e=>function(e){const t=(new TextEncoder).encode(e);if("undefined"!=typeof window&&"function"==typeof window.btoa){const e=Array.from(t,e=>String.fromCharCode(e)).join("");return btoa(e)}if("undefined"!=typeof Buffer)return Buffer.from(t).toString("base64");throw new Error("[utils.base64Encode]: Unsupported environment")}(JSON.stringify(e))),this.decode=e.decoder??(e=>JSON.parse((e=>{if("undefined"!=typeof window&&"function"==typeof window.atob){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return(new TextDecoder).decode(n)}if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf-8");throw new Error("[utils.base64Decode]: Unsupported environment")})(e)))}send(e,t,r){"function"==typeof r?this.socket.emit(e,this.encode(t),r):this.socket.emit(e,this.encode(t))}on(e,t){this.socket.on(e,e=>t(this.decode(e)))}}class xe{constructor(e){__publicField(this,"baseUrl"),__publicField(this,"authToken"),__publicField(this,"sdkMetadata"),this.baseUrl=e.baseUrl,this.authToken=e.authToken,this.sdkMetadata=e.sdkMetadata}async send(e,t){const r=new URL(e,this.baseUrl),n={...t,...this.sdkMetadata&&{sdk:this.sdkMetadata}};try{const e=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json",...this.authToken&&{Authorization:`Bearer ${this.authToken}`}},body:JSON.stringify(n)});if(!e.ok)return null;let t;try{t=await e.json()}catch{t={}}return t}catch(s){}}}class Ie{constructor(e){if(__publicField(this,"defaultTTL"),__publicField(this,"items"),this.defaultTTL=e,e<=0)throw new Error("Default TTL must be a positive number.");this.items=new Map,this.defaultTTL=e,setInterval(()=>this.cleanup(),e)}add(e,t){const r=void 0!==t?t:this.defaultTTL;if(r<=0)throw new Error("TTL must be a positive number.");const n=Date.now()+r;this.items.set(e,n)}has(e){const t=this.items.get(e);return void 0!==t&&(!(Date.now()>t)||(this.items.delete(e),!1))}delete(e){this.items.delete(e)}get size(){return this.cleanup(),this.items.size}clear(){this.items.clear()}cleanup(){const e=Date.now();for(const[t,r]of this.items.entries())r<=e&&this.items.delete(t)}toArray(){return this.cleanup(),Array.from(this.items.keys())}}var Ae,Ee,Oe,Re;(Ee=Ae||(Ae={})).OpenUrl="openUrl",Ee.CallPhone="callPhone",Ee.SendEmail="sendEmail",Ee.TriggerEvent="triggerEvent",(Re=Oe||(Oe={})).Button="button",Re.Link="link";const Me=class e{constructor(t){__publicField(this,"options"),__publicField(this,"client"),__publicField(this,"httpClient"),__publicField(this,"userId"),__publicField(this,"global"),__publicField(this,"queue",[]),__publicField(this,"knownEvents",["nudge.show"]),__publicField(this,"eventListeners",{}),__publicField(this,"recentNudgeIds",new Ie(1e3)),__publicField(this,"trackingDisabled",!1),this.options=t;const r={sdk_name:t.sdk||"node",sdk_version:t.sdkVersion||""},n=t.apiUrl||"https://analytic.brainfi.sh",s=t.accessKey;this.client=new Ce({baseUrl:n,authToken:s,query:r}),this.httpClient=new xe({baseUrl:n,authToken:s,sdkMetadata:{name:t.sdk||"node",version:t.sdkVersion||""}}),"undefined"!=typeof window&&"undefined"!=typeof localStorage&&(this.trackingDisabled="true"===localStorage.getItem(e.TRACKING_DISABLED_KEY)),this.setupIncomingPayloadHandler()}init(){}ready(){this.options.waitForUser=!1,this.flush()}setupIncomingPayloadHandler(){this.client.on("e",this.handleIncomingPayload.bind(this))}handleIncomingPayload(e){if("nudge.show"===e.type){const{nudgeId:t}=e.payload;if(this.recentNudgeIds.has(t))return;this.recentNudgeIds.add(t),this.dispatchEventListeners("nudge.show",e.payload)}}dispatchEventListeners(e,t){this.eventListeners[e]?.forEach(e=>e(t))}on(e,t){this.knownEvents.includes(e)&&(this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t))}off(e,t){this.knownEvents.includes(e)&&this.eventListeners[e]&&(this.eventListeners[e]=this.eventListeners[e].filter(e=>e!==t),0===this.eventListeners[e].length&&delete this.eventListeners[e])}async send(e,t){return this.options.disabled||this.trackingDisabled||this.options.filter&&!this.options.filter(e)?Promise.resolve():this.options.waitForUser&&!this.userId?(this.queue.push(e),Promise.resolve()):this.client.send("t",e,t)}setGlobalProperties(e){this.global={...this.global,...e}}async track(e,t,r){return this.send({type:"event.track",payload:{name:e,userId:t?.userId??this.userId,properties:{...this.global??{},...t??{},...r?{_bfOverrides:r}:{}}}})}async identify(e){e.userId?(this.userId=e.userId,this.flush()):console.warn("BrainfishWidgetWarn: `.identify` called without a userId. User identification requires a valid userId to be provided.");const t=new Set(["userId","firstName","lastName","email","phone","avatar","properties"]),r=Object.keys(e).filter(e=>!t.has(e));r.length>0&&console.warn(`BrainfishWidgetWarn: The following fields are not recognized as main identifier fields: ${r.join(", ")}. Please place custom fields under the 'properties' object instead. Note: Using fields incorrectly may cause user identification to not work as expected.`),e.phone&&!/^\+[1-9]\d{1,14}$/.test(e.phone)&&console.warn("BrainfishWidgetWarn: phone should be in E.164 format (e.g., +14155552671). Providing the correct format ensures accurate user identification.");const n=document.querySelector("#bf-iframe-container .trigger-iframe");if(n){const t=()=>{n.contentWindow&&n.contentWindow.postMessage({type:"USER_IDENTIFY",payload:e},"*")};n.contentWindow&&t(),n.addEventListener("load",t)}if(Object.keys(e).length>1)return this.send({type:"user.identify",payload:{...e,properties:{...this.global,...e.properties}}})}async record(e){if(this.options.disabled)return Promise.resolve(null);if(this.trackingDisabled)return Promise.resolve(null);const t={type:"event.record",payload:{events:e,userId:this.userId}};if(this.options.filter&&!this.options.filter(t))return Promise.resolve(null);const r=await this.httpClient.send("/s",{events:e,userId:this.userId});return r?.sessionId||null}async alias(e){return this.send({type:"user.alias",payload:e})}async increment(e){return this.send({type:"user.increment",payload:e})}async decrement(e){return this.send({type:"user.decrement",payload:e})}clear(){this.userId=void 0}flush(){this.queue.forEach(e=>{this.send({...e,payload:{...e.payload,userId:e.payload.userId??this.userId}})}),this.queue=[]}disableTracking(){this.trackingDisabled=!0,"undefined"!=typeof window&&"undefined"!=typeof localStorage&&localStorage.setItem(e.TRACKING_DISABLED_KEY,"true")}enableTracking(){this.trackingDisabled=!1,"undefined"!=typeof window&&"undefined"!=typeof localStorage&&localStorage.removeItem(e.TRACKING_DISABLED_KEY),console.log("Brainfish tracking re-enabled. Refresh page for full effect.")}isTrackingDisabled(){return this.trackingDisabled}};__publicField(Me,"TRACKING_DISABLED_KEY","bf_tracking_disabled");let je=Me;var Ne={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,snapshot:new WeakMap,snapshotKey:new Map,reset:function(){Ne.computedStyle=new WeakMap}};var _e=new Set(["-webkit-locale"]);function ze(e,t,r=!1){const n=[],s=function(e){if(Ne.defaultStyle.has(e))return Ne.defaultStyle.get(e);if(new Set(["script","style","meta","link","noscript","template","defs","symbol","title","metadata","desc"]).has(e)){const t={};return Ne.defaultStyle.set(e,t),t}let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0",t.style.height="0",t.style.overflow="hidden",document.body.appendChild(t));const r=document.createElement(e);r.style.all="initial",t.appendChild(r);const n=getComputedStyle(r),s={};for(let i of n)s[i]=n.getPropertyValue(i);return t.removeChild(r),Ne.defaultStyle.set(e,s),s}(t);for(let[i,o]of Object.entries(e))if(!_e.has(i))if(r){const e=s[i];o&&o!==e&&n.push(`${i}:${o}`)}else o&&n.push(`${i}:${o}`);return n.sort().join(";")}async function Te(e,t={}){const r=De(e);/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e);if(r){const e=$e(r);if(Ne.background.has(e))return t.skipInline?void 0:`url(${Ne.background.get(e)})`;{const r=await Ve(e,{useProxy:t.useProxy});return Ne.background.set(e,r),t.skipInline?void 0:`url("${r}")`}}return e}function Pe(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function Le(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let r=Ne.computedStyle.get(e);if(r||(r=new Map,Ne.computedStyle.set(e,r)),!r.has(t)){const n=window.getComputedStyle(e,t);r.set(t,n)}return r.get(t)}function Fe(e){let t=e.replace(/^['"]|['"]$/g,"");if(t.startsWith("\\"))try{return String.fromCharCode(parseInt(t.replace("\\",""),16))}catch{return t}return t}function De(e){const t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;const r=t[2].trim();return r.startsWith("#")?null:r}async function Be(e,{useProxy:t=""}={}){async function r(e){const t=await fetch(e);if(!t.ok)throw new Error(`[snapdom] Failed to fetch resource: ${e}`);return t}try{return await r(e)}catch(n){if(t&&"string"==typeof t){return r(t.replace(/\/$/,"")+$e(e))}throw n}}var Ue=new Map,We=new Map;function Ve(e,{timeout:t=3e3,useProxy:r="",errorTTL:n=8e3}={}){function s(e){try{return new URL(e,window.location.href).origin===window.location.origin?"use-credentials":"anonymous"}catch{return"anonymous"}}const i=e=>({ok:!0,data:e}),o=e=>({ok:!1,error:e instanceof Error?e:new Error(String(e))});function a(e){try{return fetch(e,{mode:"cors",credentials:"use-credentials"===s(e)?"include":"omit"}).then(e=>e.ok?e.blob().then(e=>new Promise(t=>{const r=new FileReader;r.onloadend=()=>{const e=r.result;"string"==typeof e&&e.startsWith("data:image/")?t(i(e)):t(o(new Error("Invalid image data URL")))},r.onerror=()=>t(o(new Error("FileReader error"))),r.readAsDataURL(e)})):o(new Error("HTTP "+e.status))).catch(e=>o(e))}catch(t){return Promise.resolve(o(t))}}function l(e){return a(e).then(t=>{if(t.ok)return t;if(r&&"string"==typeof r){return a(r.replace(/\/$/,"")+$e(e)).then(e=>e.ok?e:o(new Error("[SnapDOM - fetchImage] Fetch failed and no proxy provided")))}return o(new Error("[SnapDOM - fetchImage] Fetch failed and no proxy provided"))})}const c=Date.now(),h=We.get(e);if(h&&h>c){const e=Promise.reject(new Error("[SnapDOM - fetchImage] Recently failed (cooldown)."));return e.catch(()=>{}),e}if(Ue.has(e))return Ue.get(e);const u=s(e);if(Ne.image.has(e))return Promise.resolve(Ne.image.get(e));if(e.startsWith("data:image/"))return Ne.image.set(e,e),Promise.resolve(e);if(/\.svg(\?.*)?$/i.test(e)){const t=(async()=>{const t=await(async()=>{try{const t=await fetch(e,{mode:"cors",credentials:"use-credentials"===u?"include":"omit"});if(!t.ok)return o(new Error("HTTP "+t.status));const r=await t.text();return i(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`)}catch(t){return o(t)}})();if(t.ok)return Ne.image.set(e,t.data),t.data;const r=await l(e);return r.ok?(Ne.image.set(e,r.data),r.data):(We.set(e,c+n),Promise.reject(r.error))})();return Ue.set(e,t),t.finally(()=>Ue.delete(e)),t.catch(()=>{}),t}const d=new Promise((r,s)=>{let i=!1;const o=new Image,a=e=>t=>{i||(i=!0,clearTimeout(d),o.onload=o.onerror=null,e(t))},c=t=>{Ne.image.set(e,t),r(t)},h=t=>{We.set(e,Date.now()+n),s(t)},d=setTimeout(a(()=>{l(e).then(e=>{e.ok?c(e.data):h(new Error("Image load timed out"))})}),t);o.crossOrigin=u,o.onload=a(()=>{Promise.resolve(o.decode()).then(()=>{try{const e=document.createElement("canvas");e.width=o.naturalWidth||o.width,e.height=o.naturalHeight||o.height;e.getContext("2d").drawImage(o,0,0,e.width,e.height),c(e.toDataURL("image/png"))}catch{l(e).then(e=>{e.ok?c(e.data):h(e.error)})}}).catch(()=>{l(e).then(e=>{e.ok?c(e.data):h(e.error)})})}),o.onerror=a(()=>{l(e).then(e=>{e.ok?c(e.data):h(e.error)})}),o.src=e});return Ue.set(e,d),d.finally(()=>Ue.delete(e)),d.catch(()=>{}),d}function qe(e){const t={};for(let r of e)t[r]=e.getPropertyValue(r);return t}function $e(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}function Ye(e){const t=[];let r=0,n=0;for(let s=0;s<e.length;s++){const i=e[s];"("===i&&r++,")"===i&&r--,","===i&&0===r&&(t.push(e.slice(n,s).trim()),n=s+1)}return t.push(e.slice(n).trim()),t}var Ze=new WeakMap,Ge=new Map;function Je(e,t,r,n,s){if("STYLE"===e.tagName)return;n.has(e)||n.set(e,Le(e));const i=n.get(e);if(!Ze.has(e)){const t=function(e){const t={},r=e.getPropertyValue("visibility");for(let n=0;n<e.length;n++){const r=e[n];let s=e.getPropertyValue(r);"background-image"!==r&&"content"!==r||!s.includes("url(")||s.includes("data:")||(s="none"),t[r]=s}return"hidden"===r&&(t.opacity="0"),t}(i);Ze.set(e,t)}const o=Ze.get(e),a=Object.entries(o).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join(";");if(Ge.has(a))return void r.set(t,Ge.get(a));const l=ze(o,e.tagName?.toLowerCase()||"div",s);Ge.set(a,l),r.set(t,l)}function He(e,t,r,n,s,i={},o){if(!e)throw new Error("Invalid node");const a=new Set;let l,c=null;if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!0);if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}if(i.exclude&&Array.isArray(i.exclude))for(const h of i.exclude)try{if(e.matches?.(h)){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}}catch(Hk){console.warn(`Invalid selector in exclude option: ${h}`,Hk)}if("function"==typeof i.filter)try{if(!i.filter(e,o||e)){const t=document.createElement("div"),r=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,t}}catch(Hk){console.warn("Error in filter function:",Hk)}if("IFRAME"===e.tagName){const t=document.createElement("div");return t.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,t}if("placeholder"===e.getAttribute("data-capture")){const i=e.cloneNode(!1);n.set(i,e),Je(e,i,t,r,s);const o=document.createElement("div");return o.textContent=e.getAttribute("data-placeholder-text")||"",o.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",i.appendChild(o),i}if("CANVAS"===e.tagName){const i=e.toDataURL(),o=document.createElement("img");return o.src=i,o.width=e.width,o.height=e.height,n.set(o,e),Je(e,o,t,r,s),o}try{l=e.cloneNode(!1),n.set(l,e),"IMG"===e.tagName&&function(e,t){try{const r=e.currentSrc||e.src||"";if(!r)return;t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}(e,l)}catch(Hk){throw console.error("[Snapdom] Failed to clone node:",e,Hk),Hk}if(e instanceof HTMLTextAreaElement){l.textContent=e.value,l.value=e.value;const t=e.getBoundingClientRect();return l.style.width=`${t.width}px`,l.style.height=`${t.height}px`,l}if(e instanceof HTMLInputElement&&(l.value=e.value,l.setAttribute("value",e.value),void 0!==e.checked&&(l.checked=e.checked,e.checked&&l.setAttribute("checked",""),e.indeterminate&&(l.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(c=e.value),Je(e,l,t,r,s),e.shadowRoot){if(Array.from(e.shadowRoot.querySelectorAll("slot")).length>0){for(const t of e.shadowRoot.childNodes)if(t.nodeType===Node.ELEMENT_NODE&&"STYLE"===t.tagName){const e=t.textContent||"";e.trim()&&s&&r.set(t,e)}}else{const a=document.createDocumentFragment();for(const l of e.shadowRoot.childNodes){if(l.nodeType===Node.ELEMENT_NODE&&"STYLE"===l.tagName){const e=l.textContent||"";e.trim()&&s&&r.set(l,e);continue}const c=He(l,t,r,n,s,i,o||e);c&&a.appendChild(c)}l.appendChild(a)}}if("SLOT"===e.tagName){const a=e.assignedNodes?.({flatten:!0})||[],l=a.length>0?a:Array.from(e.childNodes),c=document.createDocumentFragment();for(const h of l){const a=He(h,t,r,n,s,i,o||e);a&&c.appendChild(a)}return c}for(const h of e.childNodes){if(a.has(h))continue;const c=He(h,t,r,n,s,i,o||e);c&&l.appendChild(c)}if(null!==c&&l instanceof HTMLSelectElement){l.value=c;for(const e of l.options)e.value===c?e.setAttribute("selected",""):e.removeAttribute("selected")}return l}var Xe=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],Ke=[];function Qe(e){const t="string"==typeof e?e:"",r=[...Xe,...Ke];for(const n of r)if(n instanceof RegExp&&n.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}async function et(e,t,r,n=32,s="#000"){t=t.replace(/^['"]+|['"]+$/g,"");const i=window.devicePixelRatio||1;await document.fonts.ready;const o=document.createElement("span");o.textContent=e,o.style.position="absolute",o.style.visibility="hidden",o.style.fontFamily=`"${t}"`,o.style.fontWeight=r||"normal",o.style.fontSize=`${n}px`,o.style.lineHeight="1",o.style.whiteSpace="nowrap",o.style.padding="0",o.style.margin="0",document.body.appendChild(o);const a=o.getBoundingClientRect(),l=Math.ceil(a.width),c=Math.ceil(a.height);document.body.removeChild(o);const h=document.createElement("canvas");h.width=l*i,h.height=c*i;const u=h.getContext("2d");return u.scale(i,i),u.font=r?`${r} ${n}px "${t}"`:`${n}px "${t}"`,u.textAlign="left",u.textBaseline="top",u.fillStyle=s,u.fillText(e,0,0),{dataUrl:h.toDataURL(),width:l,height:c}}function tt(e){return Array.from(document.styleSheets).some(t=>t.href===e)}function rt(e){return new Promise(t=>{if(tt(e))return t(null);const r=document.createElement("link");r.rel="stylesheet",r.href=e,r.setAttribute("data-snapdom","injected-import"),r.onload=()=>t(r),r.onerror=()=>t(null),document.head.appendChild(r)})}async function nt(e,t,r,n,s){if(!(e instanceof Element&&t instanceof Element))return;for(const l of["::before","::after","::first-letter"])try{const n=Le(e,l);if(!n||"function"!=typeof n[Symbol.iterator])continue;if(!("none"!==n.content||"none"!==n.backgroundImage||"transparent"!==n.backgroundColor||"none"!==n.borderStyle&&0!==parseFloat(n.borderWidth)||n.transform&&"none"!==n.transform||"inline"!==n.display))continue;if("::first-letter"===l){const i=getComputedStyle(e);if(!(n.color!==i.color||n.fontSize!==i.fontSize||n.fontWeight!==i.fontWeight))continue;const o=Array.from(t.childNodes).find(e=>e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length>0);if(!o)continue;const a=o.textContent,l=a.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u),c=l?.[0],h=a.slice(c?.length||0);if(!c||/[\uD800-\uDFFF]/.test(c))continue;const u=document.createElement("span");u.textContent=c,u.dataset.snapdomPseudo="::first-letter";const d=ze(qe(n),"span",s);r.set(u,d);const p=document.createTextNode(h);t.replaceChild(p,o),t.insertBefore(u,p);continue}const i=n.content,o=/counter\s*\(|counters\s*\(/.test(i)?"- ":Fe(i),c=n.backgroundImage,h=n.backgroundColor,u=n.fontFamily,d=parseInt(n.fontSize)||32,p=parseInt(n.fontWeight)||!1,m=n.color||"#000",f=n.display,g=parseFloat(n.width),y=parseFloat(n.height),b=n.borderStyle,w=parseFloat(n.borderWidth),k=n.transform,v=Qe(u),S="none"!==i&&""!==o,C=c&&"none"!==c,x=h&&"transparent"!==h&&"rgba(0, 0, 0, 0)"!==h,I="inline"!==f&&(g>0||y>0),A=b&&"none"!==b&&w>0,E=k&&"none"!==k;if(!(S||C||x||I||A||E))continue;const O=document.createElement("span");O.dataset.snapdomPseudo=l,O.style.verticalAlign="middle";const R=ze(qe(n),"span",s);if(r.set(O,R),v&&1===o.length){const{dataUrl:e,width:r,height:n}=await et(o,u,p,d,m),s=document.createElement("img");s.src=e,s.style=`height:${d}px;width:${r/n*d}px;object-fit:contain;`,O.appendChild(s),t.dataset.snapdomHasIcon="true"}else if(o.startsWith("url(")){const t=De(o);if(t?.trim())try{const e=document.createElement("img"),r=await Ve($e(t),s);e.src=r,e.style=`width:${d}px;height:auto;object-fit:contain;`,O.appendChild(e)}catch(a){console.error(`[snapdom] Error in pseudo ${l} for`,e,a)}}else!v&&S&&(O.textContent=o);if(C)try{const e=Ye(c),t=await Promise.all(e.map(Te));O.style.backgroundImage=t.join(", ")}catch(a){console.warn(`[snapdom] Failed to inline background-image for ${l}`,a)}x&&(O.style.backgroundColor=h);const M=O.childNodes.length>0||""!==O.textContent?.trim();if(!(M||C||x||I||A||E))continue;"::before"===l?t.insertBefore(O,t.firstChild):t.appendChild(O)}catch(a){console.warn(`[snapdom] Failed to capture ${l} for`,e,a)}const i=Array.from(e.children),o=Array.from(t.children).filter(e=>!e.dataset.snapdomPseudo);for(let l=0;l<Math.min(i.length,o.length);l++)await nt(i[l],o[l],r,n,s)}async function st(e,t=!1,r=!1,n={}){const s=new Map,i=new WeakMap,o=new Map;let a,l="";!function(e){const t=getComputedStyle(e),r=t.outlineStyle,n=t.outlineWidth,s=t.borderStyle,i=t.borderWidth,o="none"!==r&&parseFloat(n)>0,a="none"===s||0===parseFloat(i);o&&a&&(e.style.border=`${n} solid transparent`)}(e);try{!function(e){if(!e)return;const t=new Set;if(e.querySelectorAll("use").forEach(e=>{const r=e.getAttribute("xlink:href")||e.getAttribute("href");r&&r.startsWith("#")&&t.add(r.slice(1))}),!t.size)return;const r=Array.from(document.querySelectorAll("svg > symbol, svg > defs")),n=r.filter(e=>"symbol"===e.tagName.toLowerCase()),s=r.filter(e=>"defs"===e.tagName.toLowerCase());let i=e.querySelector("svg.inline-defs-container");i||(i=document.createElementNS("http://www.w3.org/2000/svg","svg"),i.setAttribute("aria-hidden","true"),i.setAttribute("style","position: absolute; width: 0; height: 0; overflow: hidden;"),i.classList.add("inline-defs-container"),e.insertBefore(i,e.firstChild));const o=new Set;e.querySelectorAll("symbol[id], defs > *[id]").forEach(e=>{o.add(e.id)}),t.forEach(e=>{if(o.has(e))return;const t=n.find(t=>t.id===e);if(t)return i.appendChild(t.cloneNode(!0)),void o.add(e);for(const r of s){const t=r.querySelector(`#${CSS.escape(e)}`);if(t){let r=i.querySelector("defs");r||(r=document.createElementNS("http://www.w3.org/2000/svg","defs"),i.appendChild(r)),r.appendChild(t.cloneNode(!0)),o.add(e);break}}})}(e)}catch(c){console.warn("inlineExternal defs or symbol failed:",c)}try{a=He(e,s,i,o,t,n,e)}catch(c){throw console.warn("deepClone failed:",c),c}try{await nt(e,a,s,i,t,n.useProxy)}catch(c){console.warn("inlinePseudoElements failed:",c)}if(await async function(e){if(!e)return;const t=e.querySelectorAll?e.querySelectorAll("img"):[];for(const o of t)try{const e=o.getAttribute("src")||o.currentSrc||"";if(ct(e)){const t=await ot(e);o.setAttribute("src",t)}const t=o.getAttribute("srcset");if(t&&t.includes("blob:")){const e=ht(t);let r=!1;for(const t of e)if(ct(t.url))try{t.url=await ot(t.url),r=!0}catch{}r&&o.setAttribute("srcset",ut(e))}}catch{}const r=e.querySelectorAll?e.querySelectorAll("image"):[];for(const o of r)try{const e="http://www.w3.org/1999/xlink",t=o.getAttribute("href")||o.getAttributeNS?.(e,"href");if(ct(t)){const r=await ot(t);o.setAttribute("href",r),o.removeAttributeNS?.(e,"href")}}catch{}const n=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(const o of n)try{const e=o.getAttribute("style");if(e&&e.includes("blob:")){const t=await lt(e);o.setAttribute("style",t)}}catch{}const s=e.querySelectorAll?e.querySelectorAll("style"):[];for(const o of s)try{const e=o.textContent||"";e.includes("blob:")&&(o.textContent=await lt(e))}catch{}const i=["poster"];for(const o of i){const t=e.querySelectorAll?e.querySelectorAll(`[${o}^='blob:']`):[];for(const e of t)try{const t=e.getAttribute(o);ct(t)&&e.setAttribute(o,await ot(t))}catch{}}}(a),t){const e=function(e){const t=new Set(e.values()),r=new Map;let n=1;for(const s of t)s.trim()&&r.set(s,"c"+n++);return r}(s);l=Array.from(e.entries()).map(([e,t])=>`.${t}{${e}}`).join("");for(const[t,r]of s.entries()){if("STYLE"===t.tagName)continue;if(t.getRootNode&&t.getRootNode()instanceof ShadowRoot){t.setAttribute("style",r.replace(/;/g,"; "));continue}const n=e.get(r);n&&t.classList.add(n);const s=t.style?.backgroundImage,i=t.dataset?.snapdomHasIcon;s&&"none"!==s&&(t.style.backgroundImage=s),i&&(t.style.verticalAlign="middle",t.style.display="inline")}}else for(const[h,u]of s.entries())"STYLE"!==h.tagName&&h.setAttribute("style",u.replace(/;/g,"; "));for(const[h,u]of o.entries()){const e=u.scrollLeft,t=u.scrollTop;if((e||t)&&h instanceof HTMLElement){h.style.overflow="hidden",h.style.scrollbarWidth="none",h.style.msOverflowStyle="none";const r=document.createElement("div");for(r.style.transform=`translate(${-e}px, ${-t}px)`,r.style.willChange="transform",r.style.display="inline-block",r.style.width="100%";h.firstChild;)r.appendChild(h.firstChild);h.appendChild(r)}}if(e===o.get(a)){const t=i.get(e)||window.getComputedStyle(e);i.set(e,t);const r=function(e){if(!e||"none"===e)return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,t)=>{const r=t.split(",").map(e=>e.trim());return 6!==r.length?`matrix(${t})`:(r[4]="0",r[5]="0",`matrix(${r.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,t)=>{const r=t.split(",").map(e=>e.trim());return 16!==r.length?`matrix3d(${t})`:(r[12]="0",r[13]="0",`matrix3d(${r.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}(t.transform);a.style.margin="0",a.style.position="static",a.style.top="auto",a.style.left="auto",a.style.right="auto",a.style.bottom="auto",a.style.zIndex="auto",a.style.float="none",a.style.clear="none",a.style.transform=r||""}for(const[h,u]of o.entries())"PRE"===u.tagName&&(h.style.marginTop="0",h.style.marginBlockStart="0");return{clone:a,classCSS:l,styleCache:i}}var it=new Map;async function ot(e){if(it.has(e))return it.get(e);const t=await fetch(e);if(!t.ok)throw new Error(`[SnapDOM] HTTP ${t.status} on blob fetch (${e})`);const r=await t.blob(),n=await new Promise((e,t)=>{const n=new FileReader;n.onloadend=()=>{const r=n.result;"string"==typeof r&&r.startsWith("data:")?e(r):t(new Error("[SnapDOM] Invalid data URL from blob"))},n.onerror=()=>t(new Error("[SnapDOM] FileReader error")),n.readAsDataURL(r)});return it.set(e,n),n}var at=/\bblob:[^)"'\s]+/g;async function lt(e){if(!e||-1===e.indexOf("blob:"))return e;const t=Array.from(new Set(e.match(at)||[]));if(0===t.length)return e;let r=e;for(const n of t)try{const e=await ot(n);r=r.split(n).join(e)}catch{}return r}function ct(e){return"string"==typeof e&&e.startsWith("blob:")}function ht(e){return(e||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>{const t=e.match(/^(\S+)(\s+.+)?$/);return t?{url:t[1],desc:t[2]||""}:null}).filter(Boolean)}function ut(e){return e.map(e=>e.desc?`${e.url} ${e.desc.trim()}`:e.url).join(", ")}async function dt(e,t={}){if(!e)throw new Error("Element cannot be null or undefined");Ne.reset();const{compress:r=!0,embedFonts:n=!1,fast:s=!0,scale:i=1,useProxy:o="",localFonts:a=[]}=t;let l,c,h,u,d,p="",m="";if(({clone:l,classCSS:c,styleCache:h}=await st(e,r,n,t)),await new Promise(e=>{Pe(async()=>{await async function(e,t={}){const r=Array.from(e.querySelectorAll("img")),n=async e=>{if(!e.getAttribute("src")){const t=e.currentSrc||e.src||"";t&&e.setAttribute("src",t)}e.removeAttribute("srcset"),e.removeAttribute("sizes");const r=e.src;try{const n=await Ve(r,{useProxy:t.useProxy});e.src=n,e.width||(e.width=e.naturalWidth||100),e.height||(e.height=e.naturalHeight||100)}catch{const t=document.createElement("div");t.style=`width: ${e.width||100}px; height: ${e.height||100}px; background: #ccc; display: inline-block; text-align: center; line-height: ${e.height||100}px; color: #666; font-size: 12px;`,t.innerText="img",e.replaceWith(t)}};for(let s=0;s<r.length;s+=4){const e=r.slice(s,s+4).map(n);await Promise.allSettled(e)}}(l,t),e()},{fast:s})}),await new Promise(r=>{Pe(async()=>{await async function(e,t,r,n={}){const s=[[e,t]],i=["background-image","mask","mask-image","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;s.length;){const[e,t]=s.shift(),o=r.get(e)||Le(e);r.has(e)||r.set(e,o);const a=(()=>{const e=o.getPropertyValue("border-image"),t=o.getPropertyValue("border-image-source");return e&&"none"!==e||t&&"none"!==t})();for(const r of i){if(["border-image-slice","border-image-width","border-image-outset","border-image-repeat"].includes(r)&&!a)continue;const e=o.getPropertyValue(r);if(!e||"none"===e)continue;const s=Ye(e),i=await Promise.all(s.map(e=>Te(e,n)));i.some(e=>e&&"none"!==e&&!/^url\(undefined/.test(e))&&t.style.setProperty(r,i.join(", "))}const l=o.getPropertyValue("background-color");l&&"transparent"!==l&&"rgba(0, 0, 0, 0)"!==l&&(t.style.backgroundColor=l);const c=Array.from(e.children),h=Array.from(t.children);for(let r=0;r<Math.min(c.length,h.length);r++)s.push([c[r],h[r]])}}(e,l,h,t),r()},{fast:s})}),n&&await new Promise(e=>{Pe(async()=>{p=await async function({preCached:e=!1,localFonts:t=[],useProxy:r=""}={}){if(Ne.resource.has("fonts-embed-css")){if(e){const e=document.createElement("style");e.setAttribute("data-snapdom","embedFonts"),e.textContent=Ne.resource.get("fonts-embed-css"),document.head.appendChild(e)}return Ne.resource.get("fonts-embed-css")}const n=new Set;try{for(const e of document.fonts)"loaded"===e.status&&n.add(`${e.family}__${e.weight||"normal"}__${e.style||"normal"}`)}catch{}const s=/@import\s+url\(["']?([^"')]+)["']?\)/g,i=[];for(const c of document.querySelectorAll("style")){const e=c.textContent||"",t=Array.from(e.matchAll(s));for(const r of t){const e=r[1];Qe(e)||tt(e)||i.push(e)}}await Promise.all(i.map(rt));const o=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(e=>e.href);let a="";for(const c of o)try{const e=await Be(c.href,{useProxy:r}),t=await e.text();if(Qe(c.href)||Qe(t))continue;const s=/@font-face[^{}]*{[^}]*}/g;let i=t;for(const o of t.match(s)||[]){const e=o.match(/font-family:\s*([^;]+);/i);if(!e)continue;const t=e[1].replace(/['"]/g,"").trim(),s=o.match(/font-weight:\s*([^;]+);/i),a=o.match(/font-style:\s*([^;]+);/i),h=`${t}__${s?s[1].trim():"normal"}__${a?a[1].trim():"normal"}`,u=/url\((["']?)([^"')]+)\1\)/g,d=/url\(/i.test(o),p=/local\(/i.test(o);if(!d&&p)continue;if(!n.has(h)){i=i.replace(o,"");continue}let m=o;const f=Array.from(o.matchAll(u));for(const n of f){let e=De(n[0]);if(!e)continue;let t=e;if(t.startsWith("http")||t.startsWith("data:")||(t=new URL(t,c.href).href),!Qe(t))if(Ne.resource.has(t))Ne.font.add(t),m=m.replace(n[0],`url(${Ne.resource.get(t)})`);else if(!Ne.font.has(t))try{const e=await Be(t,{useProxy:r}),s=await e.blob(),i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(s)});Ne.resource.set(t,i),Ne.font.add(t),m=m.replace(n[0],`url(${i})`)}catch(l){console.warn("[snapdom] Failed to fetch font resource:",t)}}i=i.replace(o,m)}a+=i+"\n"}catch(l){console.warn("[snapdom] Failed to fetch CSS:",c.href)}for(const c of document.styleSheets)try{if(!c.href||o.every(e=>e.href!==c.href))for(const e of c.cssRules)if(e.type===CSSRule.FONT_FACE_RULE){const t=e.style.getPropertyValue("src"),s=e.style.getPropertyValue("font-family");if(!t||Qe(s))continue;const i=e.style.getPropertyValue("font-weight")||"normal",o=e.style.getPropertyValue("font-style")||"normal",h=`${s}__${i}__${o}`,u=/url\((["']?)([^"')]+)\1\)/g,d=/local\((["']?)[^)]+?\1\)/g,p=!!t.match(u),m=!!t.match(d);if(!p&&m){a+=`@font-face{font-family:${s};src:${t};font-style:${o};font-weight:${i};}`;continue}if(!n.has(h))continue;let f=t;const g=Array.from(t.matchAll(u));for(const e of g){let t=e[2].trim();if(!t)continue;let n=t;if(n.startsWith("http")||n.startsWith("data:")||(n=new URL(n,c.href||location.href).href),!Qe(n))if(Ne.resource.has(n))Ne.font.add(n),f=f.replace(e[0],`url(${Ne.resource.get(n)})`);else if(!Ne.font.has(n))try{const t=await Be(n,{useProxy:r}),s=await t.blob(),i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(s)});Ne.resource.set(n,i),Ne.font.add(n),f=f.replace(e[0],`url(${i})`)}catch(l){console.warn("[snapdom] Failed to fetch font URL:",n)}}a+=`@font-face{font-family:${s};src:${f};font-style:${o};font-weight:${i};}`}}catch(l){console.warn("[snapdom] Cannot access stylesheet",c.href,l)}for(const c of document.fonts)if(c.family&&"loaded"===c.status&&c._snapdomSrc){if(Qe(c.family))continue;let e=c._snapdomSrc;if(!e.startsWith("data:"))if(Ne.resource.has(c._snapdomSrc))e=Ne.resource.get(c._snapdomSrc),Ne.font.add(c._snapdomSrc);else if(!Ne.font.has(c._snapdomSrc))try{const t=await Be(c._snapdomSrc,{useProxy:r}),n=await t.blob();e=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(n)}),Ne.resource.set(c._snapdomSrc,e),Ne.font.add(c._snapdomSrc)}catch(l){console.warn("[snapdom] Failed to fetch dynamic font src:",c._snapdomSrc);continue}a+=`@font-face{font-family:'${c.family}';src:url(${e});font-style:${c.style||"normal"};font-weight:${c.weight||"normal"};}`}for(const c of t){if(!c||"object"!=typeof c)continue;const{family:e,src:t,weight:n="normal",style:s="normal"}=c;if(!e||!t)continue;let i=t;if(i.startsWith("data:"))Ne.resource.set(t,i),Ne.font.add(t);else try{const e=await Be(t,{useProxy:r}),n=await e.blob();i=await new Promise(e=>{const t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(n)}),Ne.resource.set(t,i),Ne.font.add(t)}catch(l){console.warn("[snapdom] Failed to load local font:",t);continue}a+=`@font-face{font-family:'${e}';src:url(${i});font-style:${s};font-weight:${n};}`}if(a&&(Ne.resource.set("fonts-embed-css",a),e)){const e=document.createElement("style");e.setAttribute("data-snapdom","embedFonts"),e.textContent=a,document.head.appendChild(e)}return a}({localFonts:a,useProxy:o}),e()},{fast:s})}),r){const e=function(e){const t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),"function"==typeof e.querySelectorAll&&e.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}(l).sort(),t=e.join(",");Ne.baseStyle.has(t)?m=Ne.baseStyle.get(t):await new Promise(r=>{Pe(()=>{m=function(e){const t=new Map;for(let n of e){const e=Ne.defaultStyle.get(n);if(!e)continue;const r=Object.entries(e).map(([e,t])=>`${e}:${t};`).sort().join("");t.has(r)||t.set(r,[]),t.get(r).push(n)}let r="";for(let[n,s]of t.entries())r+=`${s.join(",")} { ${n} }\n`;return r}(e),Ne.baseStyle.set(t,m),r()},{fast:s})})}await new Promise(r=>{Pe(()=>{const n=e.getBoundingClientRect();let s=n.width,o=n.height;const a=Number.isFinite(t.width),h=Number.isFinite(t.height),f="number"==typeof i&&1!==i;if(!f){const e=n.width/n.height;a&&h?(s=t.width,o=t.height):a?(s=t.width,o=s/e):h&&(o=t.height,s=o*e)}if(s=Math.ceil(s),o=Math.ceil(o),l.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),l.style.transformOrigin="top left",!f&&(a||h)){const e=s/n.width,t=o/n.height,r=l.style.transform||"",i=`scale(${e}, ${t})`;l.style.transform=`${i} ${r}`.trim()}const g="http://www.w3.org/2000/svg",y=document.createElementNS(g,"foreignObject");y.setAttribute("width","100%"),y.setAttribute("height","100%");const b=document.createElement("style");b.textContent=m+p+"svg{overflow:visible;}"+c,y.appendChild(b),y.appendChild(l);const w=(new XMLSerializer).serializeToString(y);d=`<svg xmlns="${g}" width="${s}" height="${o}" viewBox="0 0 ${s} ${o}">`+w+"</svg>",u=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,r()},{fast:s})});const f=document.getElementById("snapdom-sandbox");return f&&"absolute"===f.style.position&&f.remove(),u}async function pt(e,{dpr:t=1,scale:r=1}={}){const n=new Image;n.src=e,n.crossOrigin="anonymous",n.loading="eager",n.decoding="sync";const s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);let i=!1;if(s&&(document.body.appendChild(n),i=!0),await n.decode(),s&&await new Promise(e=>setTimeout(e,100)),0===n.width||0===n.height)throw i&&n.remove(),new Error("Image failed to load or has no dimensions");const o=n.naturalWidth*r,a=n.naturalHeight*r,l=document.createElement("canvas");l.width=Math.ceil(o*t),l.height=Math.ceil(a*t),l.style.width=`${o}px`,l.style.height=`${a}px`;const c=l.getContext("2d");return c.scale(t,t),c.drawImage(n,0,0,o,a),i&&n.remove(),l}async function mt(e,{type:t="svg",scale:r=1,backgroundColor:n="#fff",quality:s}={}){const i={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[t]||"image/png";if("svg"===t){const t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}const o=await ft(e,{dpr:1,scale:r},n);return new Promise(e=>{o.toBlob(t=>e(t),`${i}`,s)})}async function ft(e,{dpr:t=1,scale:r=1},n){const s=await pt(e,{dpr:t,scale:r});if(!n)return s;const i=document.createElement("canvas");i.width=s.width,i.height=s.height;const o=i.getContext("2d");return o.fillStyle=n,o.fillRect(0,0,i.width,i.height),o.drawImage(s,0,0),i}async function gt(e,{dpr:t=1,scale:r=1,backgroundColor:n,quality:s},i="png"){const o=["jpg","jpeg","webp"].includes(i)?"#fff":void 0,a=n??o,l=await ft(e,{dpr:t,scale:r},a),c=new Image;return c.src=l.toDataURL(`image/${i}`,s),await c.decode(),c.style.width=l.width/t+"px",c.style.height=l.height/t+"px",c}async function yt(e,t={}){if(t={scale:1,...t},!e)throw new Error("Element cannot be null or undefined");return t.iconFonts&&function(e){const t=Array.isArray(e)?e:[e];for(const r of t)r instanceof RegExp?Ke.push(r):"string"==typeof r?Ke.push(new RegExp(r,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",r)}(t.iconFonts),await yt.capture(e,t)}yt.capture=async(e,t={})=>{const r=await dt(e,t),n=t.dpr??(window.devicePixelRatio||1),s=t.scale||1;return{url:r,options:t,toRaw:()=>r,toImg:(e={})=>async function(e,{scale:t=1}={}){const r=new Image;return r.src=e,await r.decode(),1!==t&&(r.style.width=r.naturalWidth*t+"px",r.style.height=r.naturalHeight*t+"px"),r}(r,{scale:s,...e}),toCanvas:(e={})=>pt(r,{dpr:n,scale:s,...e}),toBlob:(e={})=>mt(r,{scale:s,...e}),toPng:(e={})=>gt(r,{dpr:n,scale:s,...e},"png"),toJpg:(e={})=>gt(r,{dpr:n,scale:s,...e},"jpeg"),toWebp:(e={})=>gt(r,{dpr:n,scale:s,...e},"webp"),download:({format:e="png",filename:t="snapDOM",backgroundColor:i,...o}={})=>async function(e,{dpr:t=1,scale:r=1,backgroundColor:n,format:s="png",filename:i="snapDOM"}={}){if("svg"===s){const t=await mt(e),r=URL.createObjectURL(t),n=document.createElement("a");return n.href=r,n.download=`${i}.svg`,n.click(),void URL.revokeObjectURL(r)}const o=["jpg","jpeg","webp"].includes(s)?"#fff":void 0,a=n??o,l=await ft(e,{dpr:t,scale:r},a),c={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"}[s]||"image/png",h=l.toDataURL(c),u=document.createElement("a");u.href=h,u.download=`${i}.${s}`,u.click()}(r,{dpr:n,scale:s,format:e,filename:t,backgroundColor:i,...o})}},yt.toRaw=async(e,t)=>(await yt.capture(e,t)).toRaw(),yt.toImg=async(e,t)=>(await yt.capture(e,t)).toImg(),yt.toCanvas=async(e,t)=>(await yt.capture(e,t)).toCanvas(),yt.toBlob=async(e,t)=>(await yt.capture(e,t)).toBlob(t),yt.toPng=async(e,t)=>(await yt.capture(e,t)).toPng(t),yt.toJpg=async(e,t)=>(await yt.capture(e,t)).toJpg(t),yt.toWebp=async(e,t)=>(await yt.capture(e,t)).toWebp(t),yt.download=async(e,t={})=>{const{format:r="png",filename:n="capture",backgroundColor:s,...i}=t,o=await yt.capture(e,i);return await o.download({format:r,filename:n,backgroundColor:s})};async function bt(e){const t=document.documentElement.scrollHeight,r=document.documentElement.scrollWidth,{width:n,height:s}=function(e,t){if(e<=1920&&t<=1080)return{width:e,height:t};const r=1920/e,n=1080/t,s=Math.min(r,n);return{width:Math.round(e*s),height:Math.round(t*s)}}(r,t),i=Array.from(document.styleSheets).map(e=>{try{return Array.from(e.cssRules).map(e=>e.cssText).join("")}catch(t){return""}}).join("\n"),o=document.createElement("style");o.textContent=i,e.appendChild(o);try{return(await yt.toCanvas(e,{quality:.7,width:n,height:s,exclude:[".bf-nocapture"]})).toDataURL("image/webp",.7)}finally{e.removeChild(o)}}const wt=new RegExp("((("+/(^|\.\s+)(dear|hi|hello|greetings|hey|hey there)/gi.source+")|("+/(thx|thanks|thank you|regards|best|[a-z]+ly|[a-z]+ regards|all the best|happy [a-z]+ing|take care|have a [a-z]+ (weekend|night|day))/gi.source+"\\s*[,.!]*))[\\s-]*)","gi"),kt=new RegExp("( ?(([A-Z][a-z]+)|([A-Z]\\.)))+([,.]|[,.]?$)","gm"),vt=new RegExp("\\b(\\s*)(\\s*("+["aaron","abad","abarca","abbate","abbey","abbie","abbott","abby","abdullah","abel","abell","abercrombie","abernathy","abernethy","abeyta","abigail","ables","abner","abney","abraham","abrams","abramson","abrego","abreu","absher","abshire","acevedo","aceves","acker","ackerman","ackley","acklin","acord","acosta","acree","acuff","acuna","ada","adah","adair","adaline","adam","adame","adames","adams","adamski","adamson","adcock","addie","addington","addis","addison","adela","adelaida","adelaide","adele","adelia","adelina","adeline","adell","adella","adelle","adena","adina","adkins","adkinson","adkison","adkisson","adler","adorno","adria","adrian","adriana","adriane","adrianna","adrianne","adrien","adriene","adrienne","afton","agatha","agnes","agnew","agnus","agosto","agripina","aguayo","agueda","aguero","aguiar","aguila","aguilar","aguilera","aguirre","agustin","agustina","ahearn","ahern","ahlers","ahmad","ahmed","ahn","ahner","aho","ahrens","ahumada","aida","aiello","aiken","aikens","aiko","aileen","ailene","aimee","ainsworth","aisha","aitken","aja","aker","akers","akiko","akilah","akins","alaina","alaine","alan","alana","alane","alanis","alaniz","alanna","alarcon","alayna","alba","albanese","albano","albaugh","albers","albert","alberta","albertha","albertina","albertine","alberto","albertson","albin","albina","albrecht","albright","albritton","alcala","alcantar","alcantara","alcaraz","alcorn","alda","aldana","alden","alderete","alderson","aldrich","aldridge","alease","alecia","aleen","aleida","aleisha","alejandra","alejandrina","alejandro","aleman","alena","alene","alesha","aleshia","alesia","alessandra","alessi","aleta","aletha","alethea","alethia","alex","alexa","alexander","alexandra","alexandria","alexia","alexis","alfano","alfaro","alfonso","alford","alfred","alfreda","alfredia","alger","ali","alia","alica","alice","alicea","alicia","alida","alina","aline","alisa","alise","alisha","alishia","alisia","alison","alissa","alita","alix","aliza","alla","allain","allan","allard","alleen","allegra","alleman","allen","allena","allene","alleyne","allgood","allie","alline","allison","allman","allmon","allred","allyn","allyson","alma","almanza","almaraz","almazan","almeda","almeida","almeta","almonte","alona","alonso","alonzo","alpert","alston","alsup","alta","altagracia","altamirano","altha","althea","altman","alton","alva","alvarado","alvardo","alvarez","alvera","alverez","alverson","alverta","alves","alvey","alvina","alvis","alyce","alycia","alysa","alyse","alysha","alysia","alyson","alyssa","amada","amador","amal","amalia","aman","amanda","amaral","amaro","amato","amaya","amber","amberly","ambriz","ambrose","amee","amelia","america","amerson","ames","amey","amick","amie","amiee","amin","amina","amira","ammerman","ammie","amos","amparo","amundson","amy","anabel","analisa","anamaria","anastacia","anastasia","anaya","ancheta","andera","anders","andersen","anderson","anderton","andes","andino","andra","andrade","andre","andrea","andree","andres","andresen","andress","andrew","andrews","andria","andrus","anette","ange","angela","angele","angelena","angeles","angelia","angelica","angelika","angelina","angeline","angelique","angelita","angell","angella","angelo","angelyn","angie","angila","angla","anglea","anglin","anguiano","angulo","angus","anh","anika","anisa","anisha","anissa","anita","anitra","anja","anjanette","anjelica","ann","anna","annabel","annabell","annabelle","annalee","annalisa","annamae","annamaria","annamarie","anne","anneliese","annelle","annemarie","annett","annetta","annette","annice","annie","annika","annis","annita","annmarie","anselmo","ansley","anson","anthony","antionette","antoine","antoinette","anton","antonelli","antonetta","antonette","antonia","antonietta","antonina","antonio","anya","aparicio","apodaca","apolonia","aponte","appleby","applegate","appleton","applewhite","appling","apryl","aquilar","aquino","araceli","aracelis","aracely","aragon","araiza","arana","aranda","arango","araujo","arbogast","arbuckle","arce","arcelia","arceneaux","archambault","archibald","archie","archuleta","arciniega","ardath","ardelia","ardell","ardella","ardelle","ardis","ardith","ardoin","arellano","aretha","arevalo","argelia","argentina","argo","arguelles","arguello","argueta","ariana","ariane","arianna","arianne","arica","arie","ariel","arielle","arla","arlean","arleen","arlena","arlene","arletha","arletta","arlette","arlinda","arline","arlyne","armanda","armandina","armbruster","armendariz","armenta","armentrout","armes","armida","armijo","arminda","armistead","armitage","armstead","armstrong","arndt","arneson","arnett","arnetta","arnette","arnita","arnold","arnone","aronson","arredondo","arreola","arriaga","arrington","arriola","arrowood","arruda","arsenault","arteaga","arthur","artie","artis","arvilla","arvizu","arwood","arzola","asberry","asbury","asha","ashanti","ashbaugh","ashburn","ashby","ashcraft","ashe","ashely","asher","ashford","ashlea","ashlee","ashleigh","ashley","ashli","ashlie","ashly","ashlyn","ashmore","ashton","ashworth","asia","askins","asley","assunta","aston","astrid","asuncion","atchison","atchley","atencio","athena","atherton","athey","atkins","atkinson","attaway","atwater","atwell","atwood","aube","aubin","aubrey","aucoin","audet","audette","audie","audra","audrea","audrey","audria","audrie","audry","augusta","augustin","augustina","augustine","augustus","ault","aultman","aundrea","aurea","aurelia","aurora","aurore","austin","auten","autrey","autry","ava","avalos","avelar","avelina","avent","averett","averill","avery","avila","aviles","avina","avis","avril","awilda","ayako","ayala","ayana","ayanna","aycock","ayer","ayers","ayesha","ayotte","azalee","azar","azevedo","azucena","azzie","babara","babb","babcock","baber","babette","babin","babineaux","baca","bachman","backman","backus","bader","badgett","badillo","baer","baez","baeza","bagby","baggett","bagley","bagwell","bahena","bahr","baier","bailes","bailey","baillargeon","baily","bain","baines","bair","baird","baisden","bakke","bakken","bakker","balch","balcom","balderas","baldridge","baldwin","ballance","ballard","ballenger","ballentine","ballesteros","ballew","ballinger","ballou","baltazar","balzer","bambi","banas","bancroft","bankhead","bankston","bannon","banta","banuelos","bao","baptiste","barabara","barahona","barajas","baran","baranowski","barba","barbar","barbara","barbee","barbera","barbieri","barbosa","barbour","barboza","barbra","barclay","barden","bardwell","barela","barfield","barger","barham","barhorst","barkley","barksdale","barlow","barnard","barner","barnes","barnett","barnette","barnhart","barnhill","barnum","barnwell","barone","barr","barragan","barraza","barrera","barreto","barrett","barrick","barrie","barrientos","barringer","barrington","barron","barros","barry","barta","bartel","bartell","bartels","barth","bartholomew","bartlett","bartley","barto","bartz","bascom","basham","basile","basilia","basinger","baskerville","baskin","bassett","bastian","batchelder","batchelor","bateman","batey","batista","batson","battaglia","battista","batton","baty","baucom","bauer","baugh","baugher","baughman","baum","bauman","baumann","baumgardner","baumgartner","bautista","baxley","bayer","bayless","baylor","bayne","bazan","bazemore","beaird","beal","beale","beall","beals","beaman","beamon","beane","bearden","beardsley","beasley","beason","beaton","beatrice","beatris","beatriz","beattie","beatty","beaty","beauchamp","beaudette","beaudoin","beaudry","beaulah","beaulieu","beaumont","beauregard","bebe","becerra","bechtel","bechtold","becker","beckett","beckford","beckham","becki","beckie","beckley","beckman","beckner","beckwith","becky","becnel","bedard","bedford","bedwell","beebe","beecher","beeler","beem","beeman","beene","beesley","beeson","begay","beggs","begley","behling","behr","behrens","bejarano","belanger","belden","belen","belew","belia","belinda","belisle","belk","belkis","belknap","bella","bellamy","belle","beller","bellinger","bello","belton","beltran","beltz","belva","bemis","benally","benavides","benavidez","benbow","benedetto","benedict","benefield","benfield","benford","benge","benham","benita","benites","benitez","benn","benner","bennett","bennie","benning","bennington","benoit","benson","bentley","benton","bentz","benz","berard","berenice","bergen","berger","bergeron","bergin","berglund","bergman","bergmann","bergquist","bergstrom","berkey","berkley","berkowitz","berman","bermudez","berna","bernadette","bernadine","bernal","bernard","bernarda","bernardina","bernardine","bernardo","berndt","berneice","berner","bernetta","bernhardt","bernice","bernie","berniece","bernier","bernita","bernstein","berrios","berryhill","berryman","berta","bertha","bertie","bertram","bertrand","berube","beryl","bess","bessette","bessie","betancourt","beth","bethanie","bethann","bethany","bethea","bethel","bethune","betsey","betsy","bette","bettencourt","bettie","bettina","bettis","betts","betty","bettyann","bettye","betz","beula","beulah","bev","bevan","beveridge","beverlee","beverley","beverly","bevins","bevis","bewley","beyer","bianca","bianchi","bianco","bibb","bibbs","bickel","bickerstaff","bickford","biddle","bidwell","bieber","bierman","bigelow","biggers","biggerstaff","bigham","bigler","bigley","bilbrey","biller","billi","billie","billingsley","billington","billiot","billups","billy","billye","bilodeau","bilyeu","binette","binford","bingaman","bingham","binion","binkley","binns","birchfield","birdsall","birdsong","birdwell","birgit","birmingham","birnbaum","birt","bischoff","bissell","bissonnette","bitner","bittner","bivens","bivins","bixby","bixler","blackburn","blackford","blackman","blackmon","blackmore","blackshear","blackstock","blackstone","blackwell","blaine","blair","blais","blaisdell","blake","blakely","blakemore","blakeney","blakeslee","blakey","blakley","blakney","blalock","blanc","blanca","blanch","blanchard","blanche","blanchette","blanding","blaney","blankenship","blanton","blaylock","bledsoe","blevins","bloch","blodgett","blomquist","blondell","bloodworth","bloomfield","blouin","blount","bluhm","blum","blume","blumenthal","bly","blythe","boardman","boatright","boatwright","bobb","bobbi","bobbie","bobbitt","bobby","bobbye","bobette","bobo","bocanegra","boddie","boden","bodine","bodnar","boehm","boettcher","bogard","bogart","boger","boggess","boggs","bohannan","bohannon","bohn","boisvert","bojorquez","bok","boland","bolanos","bolding","boldt","bolduc","bolen","boley","bolick","bolin","boling","bolinger","bollinger","bolton","bolyard","boman","bomar","bonanno","boney","bonham","bonilla","bonin","bonita","bonnell","bonner","bonnett","bonney","bonnie","bonny","bono","booher","booker","bookout","boone","boothe","bopp","borchardt","borchers","bordeaux","bordelon","borden","boren","borg","borges","borja","borkowski","borowski","borrego","borrero","borst","bosch","bosco","bosley","bost","bostic","bostick","bostwick","boswell","bosworth","botelho","botello","bouchard","boucher","boudreau","boudreaux","bouffard","boughton","bouie","boulanger","bouldin","boulware","bourassa","bourque","bousquet","boutin","boutte","boutwell","bova","bove","bowden","bowe","bowen","bowens","bowes","bowie","bowker","bowles","bowlin","boyce","boyd","boyer","boyes","boyett","boyette","boykin","boykins","boylan","boyle","boyles","boynton","bozarth","bozeman","bracey","brackett","bracy","bradberry","bradbury","braddock","braddy","braden","bradfield","bradford","bradley","bradshaw","brady","bragdon","bragg","brainard","braithwaite","braley","bramblett","bramlett","brammer","branda","brande","brandee","brandenburg","brandes","brandi","brandie","brandon","brandt","branham","brann","brannan","brannen","brannon","branscum","branson","brantley","branton","branum","brashear","braswell","bratcher","bratton","braud","brauer","braun","brawley","brawner","braxton","brayton","brazell","braziel","breana","breann","breanna","breanne","breault","breaux","breazeale","breckenridge","bree","breeden","breedlove","breen","brehm","breland","bremer","brenda","brenna","brennan","brenneman","brenner","bresnahan","brett","bretz","breunig","brewington","brewton","brian","briana","brianna","brianne","brice","briceno","bricker","brickey","bridgeman","bridgers","bridget","bridgett","bridgette","bridgewater","brien","brigette","briggs","brigham","brigid","brigida","brigitte","briley","brinda","brinker","brinkley","brinkman","brinson","brinton","briones","brisco","briscoe","briseno","brisson","brister","bristol","bristow","britany","britney","britni","brito","britt","britta","brittain","brittaney","brittani","brittanie","brittany","britteny","brittingham","brittney","brittni","brittny","britton","broadbent","broaddus","broadnax","broadus","broadwater","brochu","brockington","brockman","brockway","broderick","brodeur","brodie","brodsky","brody","brogdon","brokaw","bromley","bronson","bronwyn","brooke","brooker","brookins","brookshire","broome","broomfield","brophy","brotherton","broughton","broussard","browder","brower","browne","brownell","brownfield","brownlee","broyles","brubaker","bruce","brumbaugh","brumfield","brumley","brummett","bruna","brundage","brune","brunelle","bruner","brunilda","brunner","bruno","bruns","brunson","bruton","bryan","bryanna","bryant","bryce","brynn","bryson","bucci","buchanan","bucher","buchholz","buckingham","buckley","buckman","buckner","budd","budde","buehler","buell","buena","bueno","buenrostro","buettner","buffington","bufford","buffy","buford","bugg","buggs","bui","buie","bula","bulah","bullard","bullen","buller","bullington","bullins","bullis","bulter","bumgardner","bumgarner","bunn","bunnell","bunton","burbank","burch","burcham","burchell","burchett","burchette","burchfield","burdett","burdette","burdick","burdine","burford","burge","burgett","burgin","burgos","burkett","burkey","burkhalter","burkhardt","burkhart","burkholder","burleigh","burleson","burlingame","burma","burmeister","burnell","burnett","burnette","burney","burnham","burrell","burress","burris","burroughs","burrus","burruss","burson","burt","burwell","busch","bushey","bushnell","bussard","busse","bussell","bussey","bustamante","bustos","butterfield","butterworth","butz","buxton","buzzell","byars","bybee","byer","byerly","byers","byington","byler","bynum","byrd","byrne","byrnes","byron","byrum","caballero","caban","cabe","cabral","cabrales","cabrera","caceres","caddell","cadena","cadwell","cady","caffey","cagle","cahill","cahoon","caine","caines","caitlin","caitlyn","calabro","calandra","calder","calderon","caldwell","calfee","calhoun","calista","callaghan","callahan","callaway","callen","callender","callie","callihan","callis","callison","calloway","calton","calvert","calvillo","calvin","calvo","calzada","camacho","camara","camarena","camargo","camarillo","cambell","camelia","camellia","cameron","cami","camie","camila","camilla","camille","camire","cammack","cammie","cammy","campbell","campuzano","canada","canaday","canady","canales","candace","candance","candelaria","candelario","candi","candice","candida","candie","candis","candler","candra","candyce","cannady","cano","cantara","cantrell","cantu","cantwell","cao","capel","capone","capps","caprice","capuano","caputo","cara","caraballo","carbajal","carbaugh","carbone","carden","cardenas","cardin","cardinale","cardona","cardoso","cardoza","cardwell","caren","carey","cargile","cargill","cari","caridad","carie","carillo","carin","carina","carisa","carissa","carita","carl","carla","carlee","carleen","carlena","carlene","carleton","carletta","carley","carli","carlie","carlile","carlin","carline","carlisle","carlita","carlo","carlos","carlota","carlotta","carlsen","carlson","carlton","carly","carlyle","carlyn","carma","carmack","carman","carmel","carmela","carmelia","carmelina","carmelita","carmella","carmen","carmichael","carmina","carmody","carmon","carmona","carnahan","carner","carnes","caro","carola","carolann","carole","carolee","carolin","carolina","caroline","caroll","carolyn","carolyne","carolynn","caron","carothers","caroyln","carpio","carranza","carrasco","carrasquillo","carreno","carreon","carrera","carrero","carri","carrico","carrie","carrigan","carrillo","carrington","carrizales","carrol","carroll","carruth","carruthers","carson","carswell","cartagena","cartier","carty","caruso","caruthers","carvajal","carvalho","cary","caryl","carylon","caryn","casandra","casanova","casares","casarez","casavant","cascio","casey","cashman","casiano","casias","casie","casillas","casimira","caskey","cason","casper","cass","cassady","cassandra","cassaundra","cassel","cassell","cassey","cassi","cassidy","cassie","cassity","cassondra","cassy","castaneda","castano","castanon","casteel","castellano","castellanos","castello","castillo","castleberry","castleman","casto","caston","castorena","castro","caswell","catalan","catalano","catalina","catarina","caterina","catharine","cathcart","catherin","catherina","catherine","cathern","catheryn","cathey","cathi","cathie","cathleen","cathrine","cathryn","cathy","catina","catlett","catlin","cato","caton","catrice","catrina","catron","caudell","caudill","cauley","caulfield","cauthen","cavanaugh","cavazos","cavender","cavin","caviness","cawley","cawthon","cayla","caylor","cazares","ceasar","ceballos","cecelia","cecil","cecila","cecile","cecilia","cecille","cecily","cedeno","cedillo","ceja","celena","celesta","celeste","celestina","celestine","celia","celina","celinda","celine","celsa","centeno","ceola","cepeda","cerda","cervantes","cervantez","chabot","chacon","chadwell","chadwick","chae","chaffee","chaffin","chafin","chaisson","chalfant","chalmers","chamberlain","chamberlin","chamblee","chambless","chambliss","chamness","champlin","chan","chana","chanda","chandra","chanel","chanell","chanelle","chaney","chang","chantal","chantay","chante","chantel","chantell","chantelle","chao","chapa","chaparro","chapin","chaplin","chappell","chapple","chara","charbonneau","charest","charette","charis","charise","charissa","charisse","charita","charla","charland","charleen","charlena","charlene","charles","charlesetta","charlette","charley","charlie","charline","charlott","charlotte","charlsie","charlton","charlyn","charmain","charmaine","charolette","charron","chartier","chasidy","chasity","chassidy","chastain","chasteen","chatham","chatman","chau","chavarria","chavers","chaves","chavez","chavira","chavis","chaya","cheatham","chee","chelsea","chelsey","chelsie","chen","chenault","cheney","cheng","chenoweth","cher","chere","cheree","cherelle","cheri","cherie","cherilyn","cherise","cherly","cherlyn","cherri","cherrie","cherryl","chery","cheryl","cheryle","cheryll","chesser","chesson","chester","cheung","chewning","cheyenne","chiang","chidester","chieko","childers","childress","childs","chilton","ching","chinn","chipman","chiquita","chisholm","chism","chisolm","chitwood","chiu","chloe","cho","choate","choe","choi","chong","chouinard","chris","chrisman","chrissy","christ","christa","christal","christeen","christel","christen","christena","christene","christensen","christenson","christi","christia","christian","christiana","christiane","christiansen","christianson","christie","christin","christina","christine","christinia","christman","christmas","christner","christopher","christopherso","christy","chronister","chrystal","chu","chun","chung","churchill","churchwell","ciara","cicely","ciera","cierra","cimino","cinda","cinderella","cindi","cindie","cindy","cinthia","cintron","cioffi","cira","cisneros","claar","claiborne","clair","claire","clancy","clanton","clapp","clara","clardy","clare","clarence","claretha","claretta","claribel","clarice","clarinda","clarine","claris","clarisa","clarissa","clarita","clark","clarke","clarkson","classie","claude","claudette","claudia","claudie","claudine","claudio","claus","clausen","claussen","clawson","claxton","claycomb","claypool","claypoole","clayton","claytor","cleary","clegg","cleghorn","cleland","clelia","clemencia","clemens","clemente","clementina","clementine","clements","clemmer","clemmie","clemmons","clemons","cleo","cleopatra","cleora","cleotilde","cleta","cleveland","clevenger","clifford","clifton","clinkscales","clinton","cloninger","clora","clorinda","clotilde","clouse","cloutier","clower","clowers","cloyd","cluff","clyburn","clyde","clymer","coakley","coan","coates","cobos","coburn","cochran","cochrane","cockerham","cockrell","codi","cody","coe","coelho","coen","cofer","coffelt","coffey","coffman","cofield","cogan","coggins","cogswell","cohen","cohn","coker","colangelo","colbert","colburn","colby","coldiron","coleen","colella","coleman","colene","coletta","colette","collado","collazo","colleen","collen","collene","collett","collette","colletti","colley","collin","collins","collinsworth","collum","colman","colombo","colquitt","colson","colston","colton","colucci","colunga","colvin","colwell","comeau","comeaux","compton","comstock","conant","conaway","concepcion","concetta","concha","conchita","conde","condon","congdon","conklin","conley","conlin","conlon","connally","connell","connelly","connie","connolly","connor","connors","conover","conrad","conroy","constance","constantine","constantino","consuela","consuelo","contessa","conti","contreras","conway","conwell","conyers","cooke","cooksey","cookson","cooley","coolidge","coomer","cooney","copeland","copenhaver","copley","coppage","coppola","cora","coralee","coralie","corazon","corbett","corbin","corbitt","corcoran","cordeiro","cordelia","cordell","corder","cordero","cordes","cordia","cordie","cordoba","cordova","coreen","corene","coretta","corey","cori","corie","corina","corine","corinna","corinne","corley","corliss","cormier","cornejo","cornelia","cornelison","cornelius","cornell","cornish","cornwell","coronado","coronel","corpuz","corr","corrales","correa","correia","correll","corrie","corrigan","corrin","corrina","corrine","corrinne","corriveau","corson","cortes","cortese","cortez","cortney","corum","corwin","cory","cosby","cosentino","cosgrove","cosme","cosper","costanzo","costello","coston","cota","cothran","cotten","cottingham","cottle","cotto","cottrell","cottrill","coughlin","coulombe","coulson","courson","courtney","covarrubias","covington","cowart","cowden","cowell","cowen","cowgill","cowles","cowley","coyle","coyne","cozart","crabb","crabtree","craddock","crafton","craighead","crain","cramer","crampton","crandall","crandell","cranford","crawford","crawley","crayton","creech","creekmore","creighton","crenshaw","creola","crespo","creswell","cribb","cribbs","crider","crigger","crim","criner","crippen","cris","criselda","criss","crissman","crissy","crist","crista","cristal","cristen","cristi","cristie","cristin","cristina","cristine","cristy","criswell","crites","crittenden","crocker","crockett","cromer","cromwell","cronin","croom","crosby","crossland","crossley","crossman","crosson","croteau","crotty","crowe","crowell","crowl","crowley","crowson","crowther","croy","cruce","crum","crumley","crumpler","crumpton","crutcher","crutchfield","cruz","crysta","crystle","cuc","cuellar","cuevas","culbertson","culbreth","cullen","culley","cullum","culp","culpepper","cumming","cummings","cundiff","cunha","cunningham","cuomo","cupp","curcio","cureton","curiel","curley","curran","currey","currin","curtin","curtis","curtiss","cusack","cushing","cushman","cusick","custer","cuthbertson","cutright","cutshall","cyndi","cyndy","cynthia","cyr","cyrstal","cyrus","cythia","dabbs","dabney","dacia","dacosta","dade","daggett","dagmar","dagny","dagostino","dahlberg","dahlgren","dahlia","daigle","dail","dailey","daina","daine","daisey","dakota","dale","dalene","dalessandro","dalessio","daley","dalia","dalila","dallas","dalrymple","dalton","daly","damaris","damato","dambrosio","dameron","damian","damiano","damico","damon","dampier","damron","dan","dana","danae","dancy","dandrea","dandridge","danelle","danette","danford","danforth","dangelo","dangerfield","dani","dania","danica","daniel","daniela","daniele","daniell","daniella","danielle","daniels","danielson","danika","danille","danita","danley","dann","danna","danner","dannette","dannie","dannielle","dansby","dantzler","danuta","danyel","danyell","danyelle","dao","daphine","daphne","dara","darby","darcel","darcey","darci","darcie","darcy","dardar","darden","daria","darla","darleen","darlena","darlene","darline","darnell","darr","darrow","daryl","dashiell","dasilva","daugherty","daughtry","daves","davey","david","davida","davidson","davie","davies","davila","davina","davis","davison","davisson","davy","dawes","dawkins","dawna","dawne","dawson","daye","dayle","dayna","daysi","dayton","deadra","deana","deanda","deandra","deandrea","deane","deangelis","deangelo","deann","deanna","deanne","dearborn","dearing","dearman","deas","deason","deaton","deaver","deb","debbi","debbie","debbra","debby","debera","deberry","debi","deboer","debora","deborah","debose","debra","debrah","debroah","decarlo","decastro","deckard","decosta","decoteau","dede","dedra","dee","deeann","deeanna","deedee","deedra","deegan","deel","deen","deena","deering","deese","deetta","defazio","defelice","degraw","degroot","deguzman","dehart","dehaven","deherrera","deidra","deidre","deirdre","deitz","deja","dejesus","dejong","delacruz","delafuente","delagarza","delaine","delana","delancey","delaney","delano","delao","delapaz","delarosa","delatorre","delcie","delena","deleon","delfina","delgadillo","delgado","delia","delicia","delila","delilah","delinda","delisa","delisle","delk","dell","della","dellinger","delma","delmy","deloach","delois","deloise","delong","delora","deloras","delorenzo","delores","deloris","delorse","delossantos","delozier","delp","delpha","delphia","delphine","delrio","delrosario","delsie","deltoro","deluca","deluna","delvalle","delvecchio","demarco","demars","demello","demers","demetra","demetria","demetrice","demetrius","deming","demoss","dempsey","dena","denae","dendy","deneen","denese","denham","denice","denis","denise","denisha","denison","denisse","denita","denman","denna","dennard","denney","dennis","dennise","dennison","denny","densmore","denson","denton","denyse","deon","deonna","depalma","depew","depriest","derosa","derose","derosier","derouen","derr","derryberry","desai","desalvo","desantis","desilva","desimone","desirae","desiree","desjardins","desmarais","desmond","desouza","despain","despina","desrochers","desrosiers","dessie","destefano","detra","detwiler","deutsch","devaney","devaughn","devault","dever","deville","devin","devine","devito","devlin","devoe","devon","devona","devora","devorah","devore","devries","dewberry","deweese","dewey","deyo","deyoung","dia","dian","diana","diane","diann","dianna","dianne","dias","diaz","dicarlo","dicken","dickenson","dickerson","dickinson","dickman","dickson","diedra","diedre","diego","diehl","diep","dierdre","dietrich","dietz","diez","diggins","diggs","digiacomo","digiovanni","digna","dillard","diller","dilley","dillingham","dillion","dillman","dillon","dillow","dilorenzo","dilworth","dimaggio","dimarco","dimmick","dina","dinah","dineen","dingess","dingman","dinh","dinkins","dinorah","dinsmore","dion","dione","dionna","dionne","diorio","dipietro","dishman","dismuke","disney","distefano","dittman","dittmer","divina","dix","dixie","dixon","dixson","dizon","doak","doan","doane","dobbs","dobson","doby","dockery","dodd","dodds","dodie","dodson","doering","doerr","doggett","doherty","doiron","dolan","dollie","dolores","doloris","dombrowski","domenica","dominga","domingo","dominguez","dominica","dominick","dominique","dominque","dominquez","domitila","domonique","dona","donahue","donald","donaldson","donato","donegan","donella","donelson","donetta","donette","doney","donita","donley","donna","donnell","donnelly","donner","donnetta","donnette","donnie","donofrio","donohoe","donohue","donovan","donya","doody","dooley","doolittle","dora","doran","dorathy","dorcas","dore","doreatha","doreen","dorene","doretha","dorethea","doretta","dori","doria","dorian","dorie","dorinda","dorine","doris","dorla","dorman","dorn","dorotha","dorothea","dorothy","dorris","dorsett","dorsey","dortch","dortha","dorthea","dorthey","dorthy","dorton","dostie","dotson","dottie","dotty","doucette","doud","dougherty","douglas","douglass","dovie","dowdell","dowden","dowell","dowling","downes","downey","doyle","doyon","drayton","dreama","dreher","drema","drennan","drennen","dressler","drews","dreyer","driggers","driscoll","driskell","drouin","drucilla","drumm","drummond","drury","drusilla","dryden","drye","duarte","dube","dubois","dubose","ducharme","duckett","duckworth","duclos","duda","dudek","dudley","duenas","duffey","duffy","dufour","dufrene","dufresne","dugan","dugas","duggan","dugger","duggins","duhon","dulaney","dulce","dulcie","duley","dulin","dumont","dunagan","dunaway","dunbar","duncan","dunford","dungan","dunham","dunigan","dunkin","dunkle","dunlap","dunleavy","dunlop","dunn","dunne","dunson","dunston","dunton","duong","duplessis","dupont","dupre","dupree","duprey","dupuis","duque","duquette","duran","durand","durante","durbin","durden","duren","durfee","durham","durkee","durkin","duron","durr","durrett","dusti","dustin","dutcher","dutra","dutton","duval","duvall","dvorak","dwana","dwyer","dyan","dykstra","dyson","eaddy","eades","eads","eady","eagan","eakin","eakins","eames","eanes","earle","earlean","earleen","earlene","earley","earlie","earline","earnestine","earp","eartha","easley","eason","easterday","eastman","easton","eastwood","eatmon","eaton","eberhardt","eberle","eberly","ebersole","ebert","ebner","eboni","ebonie","eby","eccles","echevarria","echeverria","echols","eck","eckard","eckenrode","ecker","eckert","eckhardt","ecklund","eckman","eckstein","eda","edda","eddie","eddings","eddington","eddins","edelman","edelmira","edelstein","eden","edens","edgar","edgerton","edgington","edie","edington","edison","edith","edmiston","edmond","edmonds","edmondson","edmonson","edmunds","edmundson","edna","edra","edris","edson","edward","edwards","edwina","edyth","edythe","effie","egan","egbert","eggert","eggleston","ehlers","ehrlich","ehtel","eichelberger","eicher","eichhorn","eichler","eidson","eiland","eileen","eilene","eisele","eisenberg","eklund","ela","eladia","elaina","elaine","elam","elana","elane","elanor","elayne","elba","elbert","elda","eldora","eldred","eldredge","eldridge","eleanor","eleanora","eleanore","elease","elena","elene","eleni","elenor","elenora","elenore","eleonor","eleonora","eleonore","eley","elfreda","elfrieda","elfriede","elgin","elia","eliana","elias","eliason","elicia","elida","elidia","elin","elina","elinor","elinore","elisa","elisabeth","elise","elisha","elissa","eliz","eliza","elizabet","elizabeth","elizbeth","elizebeth","elizondo","elke","elkins","ella","ellamae","ellan","elledge","ellen","ellena","ellender","eller","elli","ellie","ellinger","ellingson","ellington","elliot","elliott","ellis","ellison","ellsworth","elly","ellyn","elma","elmer","elmira","elmore","elna","elnora","elodia","elois","eloisa","eloise","elouise","elrod","elsa","elsie","elson","elston","elswick","elsy","elva","elvera","elvia","elvie","elvina","elvira","elwanda","elwell","elwood","ely","elyse","elza","ema","emanuel","embree","embrey","embry","emelda","emelia","emelina","emeline","emely","emerick","emerita","emerson","emiko","emilee","emilia","emilie","emily","emma","emmaline","emmert","emmett","emmie","emmons","emmy","emogene","emory","emrich","emrick","encarnacion","enciso","enda","endicott","endres","endsley","enedina","eneida","eng","engel","engelhardt","england","engle","engleman","engler","englert","english","engstrom","enid","enloe","ennis","enoch","enola","enos","enright","enriqueta","enriquez","ensor","epifania","epley","epperson","epps","epstein","erb","erdman","erdmann","eric","erica","ericka","erickson","ericson","erika","erin","erinn","erlene","erlinda","erline","erma","ermelinda","erminia","erna","ernest","ernestina","ernestine","ernst","erskine","ervin","erwin","eryn","escalante","escalera","escamilla","escobar","escobedo","eshelman","eskew","eskridge","eslinger","esmeralda","esparza","esperanza","espinal","espino","espinosa","espinoza","esposito","esqueda","esquibel","esquivel","essary","essex","essie","esta","estabrook","estefana","estela","estell","estella","estelle","estep","ester","estes","estevez","esther","estrada","estrella","etha","ethel","ethelene","ethelyn","etheridge","ethridge","ethyl","etienne","etsuko","etta","etter","ettie","eubank","eubanks","eudy","eufemia","eugena","eugene","eugenia","eugenie","eulah","eulalia","eun","euna","eunice","eura","eure","eusebia","eustolia","eva","evalyn","evan","evangelina","evangeline","evangelista","evans","eveland","evelia","evelin","evelina","eveline","evelyn","evelyne","evelynn","evenson","everett","everette","everhart","evers","eversole","everson","evette","evia","evie","evita","evon","evonne","ewa","ewald","ewell","ewing","exie","exum","eyler","ezell","ezzell","faber","fabian","fabiola","fabrizio","fagan","fahey","fairbanks","fairchild","faircloth","fairfield","fairley","faison","fajardo","falco","falcone","falgoust","falgout","falk","falkner","fallon","fancher","fanelli","fann","fannie","fannin","fanny","fant","farah","farber","faria","farias","faris","farkas","farley","farnham","farnsworth","farr","farrah","farrar","farrell","farrington","farris","farwell","fasano","fassett","fatima","fatimah","faucher","faught","faulk","faulkner","faust","faustina","faviola","fawcett","faye","fazio","featherston","featherstone","fecteau","feder","federico","feeley","feeney","fehr","feinberg","feinstein","felder","feldman","felecia","felica","felice","felicia","feliciano","felicidad","felicita","felicitas","felipa","felipe","felisa","felisha","felix","felker","feltner","felton","fenderson","fendley","fenn","fennell","fenner","fenske","fenton","fenwick","ferebee","ferguson","ferland","fermina","fernanda","fernande","fernandes","fernandez","fernando","ferne","ferrante","ferrari","ferraro","ferree","ferreira","ferrell","ferrer","ferretti","ferri","ferrin","ferris","ferro","fessler","fewell","fick","fidela","fidelia","fidler","fiedler","fierro","fifield","figueroa","fike","fikes","fillmore","filomena","fincher","findlay","findley","finke","finkelstein","finkle","finlay","finley","finn","finnegan","finnell","finney","fiona","fiore","fischer","fiscus","fishman","fiske","fite","fitz","fitzgerald","fitzhugh","fitzpatrick","fitzsimmons","fitzwater","flagg","flaherty","flanagan","flanders","flanigan","flannery","flatt","flavia","fleenor","fleetwood","fleischer","fleischman","flemming","fleta","flickinger","flinn","florance","florencia","florene","florentina","flores","floretta","florez","floria","florinda","florine","florio","florrie","flossie","flournoy","floy","floyd","fluellen","fluker","flynn","flynt","fogarty","fogel","fogg","foley","follett","folse","folsom","foltz","fonda","fong","fonseca","fontaine","fontana","fontanez","fontenot","fontes","foote","foran","forbes","forbis","forcier","forde","fordham","foret","forman","forney","forrest","forrester","forsberg","forster","forsyth","forsythe","fortenberry","fortier","fortin","fortner","fortney","fortson","fortuna","fortunato","foti","fournier","foust","fouts","fowlkes","foxworth","frady","fraga","fraley","frampton","fran","france","francene","frances","francesca","franchesca","francie","francina","francine","francis","francisca","francisco","franck","franco","francois","francoise","franke","frankel","frankie","franko","fransisca","frantz","franz","franzen","fraser","frasier","frausto","frawley","frazee","frazer","frazier","frechette","fred","freda","fredda","freddie","frederica","frederick","fredericka","fredericks","frederickson","fredette","fredia","fredrick","fredricka","fredrickson","freeda","freeland","freese","fregoso","freida","freitag","freitas","fretwell","freund","frey","frias","frick","fricke","frida","friday","frieda","friedman","friedrich","friel","frierson","friesen","frink","frisbee","frisbie","frisby","frisch","fritts","fritz","frizzell","froehlich","fromm","fruge","frye","fuchs","fuentes","fugate","fuhrman","fujimoto","fulbright","fulcher","fulford","fulk","fulkerson","fulks","fullerton","fullmer","fulmer","fulton","fults","fultz","fumiko","funches","funderburk","fung","funke","funkhouser","fuqua","furman","furr","furst","furtado","fusco","fussell","futch","futrell","fye","gabel","gabriel","gabriela","gabriele","gabriella","gabrielle","gaddis","gaddy","gadson","gaffney","gagliano","gagliardi","gagne","gagnon","gailey","gaines","gainey","gaitan","gaither","galan","galarza","galbraith","galbreath","galicia","galina","galindo","gallagher","gallaher","gallardo","gallaway","gallego","gallegos","galligan","gallion","gallman","gallo","galloway","gallup","galvan","galvez","galvin","gamache","gambill","gamboa","gambrell","gamez","gandy","gann","gannon","gantt","gantz","gaona","garay","garber","garcia","gard","gardiner","gardner","garfield","garibay","garica","garman","garmon","garnet","garnett","garofalo","garrard","garretson","garrett","garrick","garrido","garris","garrity","garrow","garry","gartner","garton","garver","garvey","garvin","gary","garza","gasaway","gaskill","gaspar","gaspard","gass","gassaway","gastelum","gaston","gatewood","gatlin","gatling","gattis","gatto","gaudet","gaudette","gaudreau","gaughan","gaul","gause","gauthier","gauvin","gavin","gayden","gaye","gayla","gayle","gaylene","gaylor","gaylord","gaynell","gaynelle","gaynor","gaytan","gayton","gearhart","gearldine","geary","gebhardt","gebhart","geddes","geer","gehring","gehrke","geier","geiger","geis","geisler","gelinas","geller","gema","gendron","genevie","genevieve","genevive","genia","genna","gennie","genny","genovese","genoveva","georgann","george","georgeann","georgeanna","georgene","georgetta","georgette","georgia","georgiana","georgiann","georgianna","georgianne","georgie","georgina","georgine","gerald","geraldine","geralyn","gerard","gerber","gerda","gerdes","gerena","gerhardt","gerhart","geri","gerlach","germaine","germany","gerri","gerry","gertha","gertie","gertrud","gertrude","gertrudis","gertude","gervais","geter","getty","getz","geyer","ghislaine","gholston","gia","gianna","gibb","gibbs","gibson","giddens","giddings","gideon","gidget","giese","giffin","gifford","gigi","giglio","giguere","gil","gilberte","gilbertson","gilbreath","gilchrist","gilda","gile","giles","gilkey","gillam","gillard","gillen","gillenwater","gilles","gillespie","gillett","gillette","gilley","gilliam","gillian","gilliard","gilligan","gilliland","gillis","gillispie","gillman","gillum","gilma","gilman","gilmer","gilmore","gilpin","gilreath","gilroy","gilson","gilstrap","gina","ginder","ginette","gingerich","gingras","gingrich","ginny","ginsberg","ginter","giordano","giovanna","gipson","girard","giroux","gisela","gisele","giselle","gish","gita","gittens","giuseppina","givens","gladis","gladney","gladstone","glady","gladys","glaser","glasgow","glasper","glasscock","glasser","glayds","gleason","glenda","glendora","glenn","glenna","glennie","glennis","glick","glidden","glidewell","glinda","glisson","gloria","gluck","glynda","glynis","glynn","gober","goble","godbey","goddard","godfrey","godin","godinez","godoy","godsey","godwin","goebel","goetz","goforth","goines","goins","golda","goldberg","goldfarb","golding","goldman","goldsberry","goldstein","gomes","gomez","gonsalez","gonsalves","gonzales","gonzalez","gooch","goodale","goodall","goode","goodell","gooden","goodin","gooding","goodloe","goodnight","goodrich","goodrum","goodsell","goodson","goodwin","goolsby","gordan","gordon","gordy","goree","gorham","gorman","gormley","gorski","gorton","goshorn","gosnell","goss","gosselin","gossett","gott","gottlieb","gottschalk","gough","gould","goulet","gourley","gouveia","govan","gove","govea","gowen","gower","goyette","graber","grabowski","gracia","gracie","graciela","grady","graf","graff","grafton","gragg","graham","grajeda","grammer","granado","granados","grantham","granville","grasso","grau","gravitt","gravois","graybill","grayce","grayson","graziano","grazyna","greathouse","greco","greeley","greenberg","greene","greenhaw","greenlaw","greenleaf","greenlee","greenwald","greenway","greenwell","greer","greeson","gregg","gregoire","gregor","gregoria","gregorio","gregory","greig","greiner","grenier","gresham","greta","gretchen","gretta","gricelda","grider","grieco","griego","grier","griffen","griffey","griffis","griffith","griffiths","grigg","griggs","grigsby","grijalva","grillo","grimaldi","grimaldo","grimm","grimmett","grimsley","grindle","griner","grisby","grisel","griselda","grisham","grissom","griswold","groce","groff","grogan","groh","grose","grossman","grosso","groth","grover","grubb","grubbs","grube","gruber","grundy","guadalupe","guajardo","guardado","guarino","guay","gudrun","guenther","guerin","guerra","guerrero","guertin","guevara","guffey","guido","guidry","guilford","guillen","guillermina","guillermo","guillory","guillot","guimond","guinn","gulick","gulledge","gullett","gumm","gump","gunderson","gunn","gunther","gupta","gupton","gurley","gurrola","gurule","gusman","gussie","gustafson","gustin","guth","guthrie","gutierrez","gutshall","guyer","guyette","guyton","guzman","gwen","gwenda","gwendolyn","gwenn","gwin","gwinn","gwyn","gwyneth","haag","haas","haase","haber","haberman","hackett","hackman","hackworth","haddad","haddix","hadfield","hadley","hadlock","hae","hafer","haffner","hafner","haga","hagan","hagans","hagar","hage","hageman","hagen","hager","hagerman","hagerty","haggerty","hagler","hagood","hague","hagy","hahn","haigh","haight","haile","hailey","haines","haire","hairston","halcomb","hales","haley","halford","halina","halle","haller","hallett","halley","halliburton","halliday","hallie","hallman","hallock","halloran","hallowell","halpern","halpin","halsey","halstead","halverson","halvorsen","halvorson","hamann","hamblin","hambrick","hamby","hamel","hamer","hamill","hamilton","hamlett","hamlin","hamm","hammack","hamman","hammel","hammett","hammon","hammond","hammonds","hammons","hamner","hampson","hampton","hamrick","han","hana","hancock","handley","hanes","haney","hanh","hanke","hankins","hanley","hanlon","hann","hanna","hannah","hannan","hannelore","hanner","hannigan","hannon","hanrahan","hans","hansen","hanson","harbaugh","harber","harbin","harbison","hardaway","hardcastle","hardee","hardeman","hardesty","hardie","hardiman","hardin","harding","hardison","hardman","hardnett","hardwick","hargett","hargis","hargrave","hargrove","harker","harkey","harkins","harkness","harlan","harless","harley","harlow","harmon","harner","harney","haro","harold","harr","harrell","harrelson","harriet","harriett","harriette","harrigan","harriman","harrington","harris","harrison","harrod","harrold","harter","hartfield","hartford","hartle","hartley","hartman","hartmann","hartnett","hartsell","hartsfield","hartsock","hartung","hartwell","hartwig","harty","hartz","hartzell","hartzog","harvell","harvey","harville","harvin","harwell","harwood","hashimoto","haskell","haskins","hass","hassan","hassell","hassett","hassie","hassler","hasson","hatchett","hatfield","hathaway","hathcock","hathorn","hatley","hatten","hattie","hatton","hauck","haug","haugen","haun","haupt","hauser","havard","haviland","hawes","hawkes","hawkins","hawkinson","hawley","hawn","haworth","hawthorne","hayashi","haydee","hayden","haydon","hayes","haygood","hayley","hayman","hayner","haynes","haynie","haywood","hazelton","hazelwood","hazen","hazlett","hazzard","headley","headrick","healey","healy","heaney","hearn","hearne","heather","heatherly","heaton","hebert","hecht","hecker","heckman","hedden","hedgepeth","hedrick","hedwig","hedy","hee","heffernan","heffner","heflin","hefner","hegarty","heide","heidi","heidy","heike","heil","heilman","heim","hein","heine","heinrich","heins","heintz","heinz","heise","heiser","heisler","helaine","helen","helena","helene","helfrich","helga","helgeson","hellen","hellman","helman","helmer","helmick","helmuth","helton","helwig","hembree","hemingway","hemphill","hendershot","henderson","hendley","hendon","hendren","hendrick","hendricks","hendrickson","hendrix","hendry","henke","henkel","henley","hennessey","hennessy","henninger","henrietta","henriette","henriques","henriquez","henry","hensel","henshaw","hensley","henson","henton","hepburn","hepler","hepner","herbert","herbst","heredia","hereford","herlinda","herma","herman","hermann","hermelinda","hermes","hermila","hermina","hermine","herminia","hermosillo","hernadez","hernandes","hernandez","herndon","herod","herold","herr","herren","herrera","herrick","herrin","herrington","herrmann","herrod","herron","hersey","hersh","hershberger","hershey","herta","hertel","hertha","herzog","hess","hesse","hesson","hester","hetrick","hettie","hetzel","heuer","hewett","hewitt","hewlett","heyer","heyward","heywood","hiatt","hibbard","hibbert","hibbler","hibbs","hickerson","hickman","hickok","hickox","hickson","hiedi","hien","hiers","higa","higbee","higdon","higginbotham","higgins","higgs","highsmith","hightower","higley","hilaria","hilary","hilbert","hilburn","hilda","hilde","hildebrand","hildebrandt","hildegard","hildegarde","hildred","hildreth","hileman","hiles","hillard","hillary","hiller","hilliard","hillis","hillman","hillyer","hilma","hilton","himes","hinckley","hindman","hine","hines","hinkle","hinkley","hinman","hinojosa","hinrichs","hinshaw","hinson","hinton","hintz","hinz","hipp","hiroko","hirsch","hirst","hisako","hitchcock","hite","hitt","hix","hixon","hixson","hoa","hoag","hoagland","hoang","hobart","hobbs","hobson","hoch","hochstetler","hockenberry","hockett","hodge","hodges","hodgkins","hodgson","hodson","hoekstra","hoelscher","hoey","hofer","hoff","hoffer","hoffman","hoffmann","hofmann","hoggard","hogue","holbert","holbrook","holcomb","holcombe","holguin","holifield","holladay","hollander","hollar","hollenbeck","holley","holli","holliday","hollie","hollifield","holliman","hollinger","hollingshead","hollingsworth","hollins","hollis","hollister","holloman","holloway","hollowell","holman","holmberg","holmes","holmgren","holmquist","holsinger","holst","holstein","holston","holter","holton","holtz","holzer","hom","homan","honaker","honea","honeycutt","hoopes","hooten","hopkins","hoppe","hopson","horan","hord","horgan","hornback","hornbeck","horne","hornsby","horowitz","horrocks","horsley","horta","hortencia","hortense","hortensia","horton","horvath","hosey","hoskins","hosmer","hostetler","hostetter","hotchkiss","houchens","houck","houghton","houk","houle","houlihan","householder","houser","housley","housman","houston","hovey","hovis","howard","howarth","howell","howells","hower","howerton","howie","howland","howlett","howse","howze","hoye","hoyle","hoyos","hoyt","hsiu","hsu","hua","huang","hubbard","hubbell","hubble","hubbs","huber","hubert","huckaby","hudak","huddleston","hudgens","hudgins","hudnall","hudson","hudspeth","huebner","huerta","huertas","huey","huffman","hufford","huggins","hughes","hughey","hughs","hui","huie","hulbert","hulda","hulett","hulse","hulsey","humbert","hume","humes","humphrey","humphreys","humphries","hundley","huneycutt","hungerford","hunley","hunnicutt","hunsaker","huntington","huntley","huong","hupp","hurd","hurlburt","hurtado","huskey","hussey","husted","huston","hutchens","hutcherson","hutcheson","hutchings","hutchins","hutchinson","hutchison","huth","hutson","hutt","hutto","hutton","huynh","hwa","hwang","hyacinth","hyatt","hyde","hyden","hyder","hye","hyland","hylton","hyman","hynes","hyo","hyon","hysell","hyun","ibanez","ibarra","ibrahim","ickes","idell","idella","iesha","iglesias","ignacia","ilana","ilda","ileana","ileen","ilene","iliana","ilona","ilse","iluminada","imelda","imes","imhoff","imogene","india","indira","inell","ines","inez","inga","ingalls","ingeborg","ingersoll","ingham","ingraham","ingrid","inman","inocencia","iona","ione","ira","iraida","irby","ireland","irena","irene","irick","irina","irish","irizarry","irma","irmgard","irvin","irvine","irving","irwin","iryna","isa","isaac","isaacs","isaacson","isabel","isabell","isabella","isabelle","isadora","isaura","isbell","isela","isenberg","isham","isidra","isis","islas","isley","isobel","isom","ison","israel","ito","ivana","ivelisse","iverson","ives","ivette","ivey","ivie","ivonne","izaguirre","izetta","izola","izzo","jablonski","jacalyn","jacelyn","jacinda","jacinta","jacinto","jackeline","jackelyn","jacki","jackie","jacklyn","jackqueline","jackson","jaclyn","jaco","jacob","jacobi","jacobo","jacobs","jacobsen","jacobson","jacoby","jacqualine","jacque","jacquelin","jacqueline","jacquelyn","jacquelyne","jacquelynn","jacques","jacquetta","jacquez","jacqui","jacquie","jacquiline","jacquline","jacqulyn","jada","jadwiga","jae","jaffe","jahn","jahnke","jaime","jaimee","jaimes","jaimie","jalbert","jaleesa","jalisa","jama","jame","jamee","jamerson","james","jameson","jamey","jami","jamie","jamieson","jamika","jamila","jamison","jammie","jan","jana","janae","janay","jane","janean","janee","janeen","janel","janell","janella","janelle","janene","janessa","janet","janeth","janett","janetta","janette","janey","jani","janice","janie","janiece","janina","janine","janis","janise","janita","jankowski","jann","janna","jannet","jannette","jannie","jansen","janson","janssen","janyce","jaqueline","jaquelyn","jaques","jaquez","jara","jaramillo","jarboe","jardine","jarman","jarmon","jarrell","jarrett","jarvis","jason","jasso","jaunita","jauregui","javier","jaworski","jaye","jayme","jaymie","jayna","jayne","jaynes","jazmin","jazmine","jeana","jeanbaptiste","jeane","jeanelle","jeanene","jeanett","jeanetta","jeanette","jeanice","jeanie","jeanine","jeanlouis","jeanmarie","jeanna","jeanne","jeannetta","jeannette","jeannie","jeannine","jeffcoat","jefferies","jeffers","jefferson","jeffery","jeffie","jeffrey","jeffreys","jeffries","jemison","jen","jena","jenae","jene","jenee","jenell","jenelle","jenette","jeneva","jeni","jenice","jenifer","jeniffer","jenine","jenise","jenkins","jenks","jenna","jennefer","jennell","jennette","jenni","jennie","jennifer","jenniffer","jennine","jennings","jenny","jensen","jenson","jepson","jeraldine","jeremy","jeri","jerica","jerilyn","jerlene","jernigan","jerome","jerri","jerrica","jerrie","jerry","jesenia","jesica","jeske","jesse","jessee","jessen","jessenia","jessi","jessia","jessica","jessie","jessika","jessup","jestine","jesus","jesusa","jesusita","jeter","jett","jetta","jettie","jewell","jewett","jiles","jill","jillian","jim","jimenez","jimerson","jiminez","jimmie","joan","joana","joane","joanie","joann","joanna","joanne","joannie","joaquina","jobe","jocelyn","jodee","jodi","jodie","jody","joe","joeann","joel","joella","joelle","joellen","joeseph","joesph","joetta","joette","joey","johana","johanna","johanne","johansen","johanson","john","johna","johnetta","johnette","johnie","johnna","johnnie","johnny","johnsen","johnsie","johnson","johnston","johnstone","joi","joie","jolanda","joleen","jolene","jolie","jolin","joline","jolley","jolyn","jolynn","jon","jona","jonas","jone","jonell","jonelle","jones","jong","joni","jonie","jonna","jonnie","joplin","jordan","jordon","jorge","jorgensen","jorgenson","jose","josefa","josefina","josefine","joselyn","joseph","josephina","josephine","josephson","josette","josey","joshua","josie","joslin","joslyn","josphine","jost","joubert","jovan","jovita","jowers","joya","joyce","joycelyn","joye","joyner","juan","juana","juanita","juarez","judd","jude","judi","judie","judith","judkins","judson","judy","jule","julee","julene","juli","julia","julian","juliana","juliane","juliann","julianna","julianne","julie","julieann","julien","julienne","juliet","julieta","julietta","juliette","julio","julissa","julius","jung","junie","junita","junko","jurado","justa","justin","justina","justine","justus","jutta","kacey","kaci","kacie","kacy","kaczmarek","kahl","kahle","kahler","kahn","kaila","kaitlin","kaitlyn","kala","kaleigh","kaley","kali","kallie","kalyn","kam","kamala","kami","kamilah","kaminski","kaminsky","kammerer","kamp","kandace","kandi","kandice","kandis","kandra","kandy","kane","kanesha","kanisha","kantor","kao","kaplan","kapp","kara","karan","kareen","karen","karena","karey","kari","karie","karima","karin","karina","karine","karisa","karissa","karl","karla","karleen","karlene","karly","karlyn","karmen","karnes","karns","karol","karole","karoline","karolyn","karon","karp","karr","karren","karri","karrie","karry","kary","karyl","karyn","kasandra","kasey","kasha","kasi","kasie","kasper","kass","kassandra","kassie","kasten","kastner","kate","katelin","katelyn","katelynn","katerine","kates","kathaleen","katharina","katharine","katharyn","kathe","katheleen","katherin","katherina","katherine","kathern","katheryn","kathey","kathi","kathie","kathleen","kathlene","kathline","kathlyn","kathrin","kathrine","kathryn","kathryne","kathy","kathyrn","kati","katia","katie","katina","katlyn","kato","katrice","katrina","kattie","katy","katz","kauffman","kaufman","kaufmann","kautz","kavanagh","kavanaugh","kay","kayce","kaycee","kaye","kayla","kaylee","kayleen","kayleigh","kaylene","kaylor","kayser","kazuko","kean","keane","kearney","kearns","kearse","keating","keaton","kecia","kee","keefe","keefer","keegan","keele","keeley","keely","keena","keenan","keene","keeney","keesee","keesha","keeter","keeton","keever","keffer","kehoe","keiko","keil","keila","keim","keira","keiser","keisha","keith","keitha","keitt","keli","kellam","kellar","kelle","kellee","kelleher","keller","kellerman","kelley","kelli","kellie","kellner","kellogg","kellum","kelly","kellye","kelm","kelsey","kelsi","kelsie","kelso","kelton","kemberly","kempf","kena","kenda","kendal","kendall","kendra","kendrick","kendricks","kenia","kenisha","kenna","kennard","kennedy","kenneth","kenney","kennon","kenny","kenya","kenyatta","kenyetta","kenyon","keown","kephart","kepler","kera","kerby","keren","keri","kerley","kerr","kerri","kerrie","kerrigan","kerry","kershaw","kershner","kerstin","kesha","keshia","kesler","kessel","kessinger","kessler","kester","kesterson","ketcham","ketchum","ketron","keturah","keva","kevin","keyes","keyser","khadijah","khalilah","khoury","kia","kiana","kiara","kibler","kidd","kidwell","kiefer","kieffer","kiel","kiely","kiera","kiernan","kiersten","kiesha","kiger","kight","kilburn","kilby","kile","kiley","kilgore","killebrew","killen","killian","killingsworth","killion","killough","kilmer","kilpatrick","kim","kimball","kimber","kimberely","kimberlee","kimberley","kimberli","kimberlie","kimberlin","kimberly","kimbery","kimble","kimbra","kimbrell","kimbro","kimbrough","kimes","kimi","kimiko","kimmel","kimsey","kimura","kina","kinard","kincaid","kindra","kingery","kingsbury","kingsley","kingston","kinlaw","kinnard","kinney","kinsella","kinser","kinsey","kinsler","kinsley","kinslow","kinzer","kira","kirby","kirchner","kirkendall","kirkham","kirkland","kirkpatrick","kirksey","kirkwood","kirschner","kirsten","kirstie","kirstin","kirtley","kirwan","kiser","kisha","kisner","kissinger","kistler","kittie","kittrell","kitts","kitty","kiyoko","kizer","kizzie","kizzy","klara","klatt","klaus","klein","kline","kling","klingensmith","klinger","klink","klotz","klug","knapp","knecht","knepper","knighten","knighton","knisley","knopp","knorr","knott","knotts","knowles","knowlton","knox","knudsen","knudson","knuth","knutson","kobayashi","koch","kocher","koehler","koehn","koenig","koerner","koester","koger","kohler","kohn","kolb","koller","kong","konrad","koon","koonce","koons","koontz","koopman","kopp","kori","korn","kornegay","korte","kortney","koski","koster","kourtney","kovac","kovach","kovacs","kowal","kowalczyk","kowalewski","kowalski","kozak","koziol","kozlowski","kraemer","krall","kramer","kratz","kratzer","kraus","krause","krauss","krawczyk","krebs","kremer","kress","krick","krieg","krieger","kris","krishna","krissy","krista","kristal","kristan","kristeen","kristel","kristen","kristi","kristian","kristie","kristin","kristina","kristine","kristle","kristy","kristyn","kroeger","krohn","krol","kroll","kropp","krouse","krueger","krug","kruger","krumm","kruse","krysta","krystal","krysten","krystin","krystina","krystle","krystyna","kubiak","kucera","kuehl","kuehn","kugler","kuhl","kuhlman","kuhlmann","kuhn","kuhns","kujawa","kulp","kum","kumar","kunkel","kunkle","kuntz","kunz","kurth","kurtz","kushner","kuster","kutz","kuykendall","kwan","kwiatkowski","kwon","kyla","kyle","kylee","kylie","kym","kymberly","kyoko","kyong","kyra","kyser","kyung","labarbera","labbe","labelle","labonte","laboy","labrecque","labrie","lacasse","lacey","lach","lachance","lachelle","laci","lacie","laclair","lacombe","lacour","lacresha","lacroix","ladawn","ladd","ladner","ladonna","lael","lafave","lafayette","lafferty","laflamme","lafleur","lafollette","lafond","lafontaine","lafountain","lafrance","lafreniere","lagasse","laguna","lagunas","lahoma","lahr","lai","lail","laila","laine","laing","lajoie","lajuana","lakeesha","lakeisha","lakendra","lakenya","lakesha","lakeshia","lakey","lakia","lakiesha","lakisha","lakita","lala","laliberte","lally","lalonde","lamanna","lamar","lambrecht","lamere","lamkin","lamm","lamonica","lamont","lamontagne","lamoreaux","lamothe","lamoureux","lampe","lampkin","lampley","lana","lancaster","landa","landeros","landes","landin","landis","landon","landreth","landrum","landry","lanell","lanelle","lanette","laney","lang","langan","langdon","lange","langer","langevin","langford","langham","langley","langlois","langston","lanham","lani","lanie","lanier","lanita","lankford","lannie","lanning","lanora","lansing","lantz","lanza","lao","lapierre","laplante","lapoint","lapointe","laporte","lapp","laquanda","laquita","lara","larae","laraine","laree","largent","larhonda","larios","larisa","larissa","larita","lariviere","larkin","larkins","larocca","laroche","larochelle","larock","laronda","larosa","larose","larrabee","larraine","larry","larsen","larson","larue","lasalle","lasandra","lasater","lashanda","lashandra","lashaun","lashaunda","lashawn","lashawna","lashawnda","lashay","lashell","lashley","lashon","lashonda","lashunda","laskowski","lasky","lasley","lasonya","lasseter","lassiter","latanya","latarsha","latasha","latashia","latesha","latham","lathan","lathrop","latia","laticia","latimer","latina","latisha","latonia","latonya","latoria","latosha","latour","latoya","latoyia","latrice","latricia","latrina","latrisha","latta","lattimore","lau","lauderdale","lauer","laughlin","launa","laura","lauralee","lauran","laure","laureano","laureen","lauren","laurena","laurence","laurene","laurent","lauretta","laurette","lauri","laurice","laurie","laurinda","laurine","lauryn","laux","lavada","lavallee","lavalley","lavelle","lavenia","lavera","lavergne","lavern","laverna","laverne","laverty","lavery","laveta","lavette","lavigne","lavin","lavina","lavine","lavinia","lavoie","lavon","lavona","lavonda","lavone","lavonia","lavonna","lavonne","lawana","lawanda","lawanna","lawhorn","lawler","lawlor","lawrence","lawson","lawton","layfield","layla","layne","layton","lazarus","lazo","leah","leahy","leake","leana","leandra","leann","leanna","leanne","leanora","leath","leatha","leatherman","leatherwood","leatrice","leavitt","lebeau","lebel","leblanc","leboeuf","lebron","lebrun","lechner","lecia","leclair","leclaire","leclerc","lecompte","leda","ledbetter","lederman","ledesma","ledet","ledezma","ledford","ledoux","leduc","leeann","leeanna","leeanne","leeds","leena","leeper","leesa","lefebvre","lefevre","leffler","lefler","leflore","leftwich","legault","legere","legg","leggett","legrand","lehman","lehmann","leia","leibowitz","leida","leigh","leigha","leighann","leighton","leija","leiker","leila","leilani","leininger","leisa","leisha","leith","leiva","lejeune","lekisha","lela","lelah","leland","lelia","lemaster","lemay","lemieux","lemire","lemke","lemley","lemmon","lemmons","lemoine","lemos","lemus","lena","lenard","lenhart","lenita","lenna","lennie","lennon","lennox","lenoir","lenora","lenore","lentz","lenz","leo","leola","leoma","leon","leona","leonard","leonarda","leonardo","leone","leong","leonia","leonida","leonie","leonila","leonor","leonora","leonore","leontine","leora","leos","leota","lepage","lepore","lera","lerch","lerma","lerner","leroy","lesa","lesha","lesher","lesia","lesko","leslee","lesley","lesli","leslie","lessard","lessie","lester","leta","letendre","letha","leticia","letisha","letitia","letourneau","lett","lettie","letty","leung","levan","levasseur","leveille","leverett","levesque","levi","levine","levinson","levitt","lewallen","lewandowski","lewellen","lewin","lewis","lexie","leyba","leyva","lezlie","lheureux","liane","lianne","libbie","libby","librada","lida","liddell","liddle","lidia","lieb","lieberman","lieselotte","liggett","liggins","lightfoot","lightner","ligia","ligon","lila","liles","lili","lilia","lilian","liliana","lilla","lillard","lilley","lilli","lillia","lilliam","lillian","lilliana","lillie","lilly","lim","limon","linares","lincoln","linda","lindahl","lindberg","lindell","lindeman","linder","linderman","lindgren","lindholm","lindley","lindner","lindo","lindquist","lindsay","lindsey","lindsley","lindstrom","lindsy","lindy","lineberry","linette","ling","lingenfelter","lingerfelt","lingle","linh","linkous","linn","linnea","linnie","linsey","linton","linville","lippert","lipps","lipscomb","lipsey","lisa","lisabeth","lisandra","lisbeth","lise","lisette","lisha","lissa","lissette","liston","lita","litchfield","littlefield","littlejohn","littleton","litton","littrell","liu","livengood","livesay","livia","livingston","liz","liza","lizabeth","lizarraga","lizbeth","lizeth","lizette","lizotte","lizzette","lizzie","llanes","llewellyn","lloyd","lockard","locke","lockett","lockhart","locklear","lockridge","lockwood","loeb","loeffler","loehr","loera","loesch","loftin","loftis","lofton","loftus","logan","loggins","logsdon","logue","lohman","lohr","loida","lois","loise","lola","lolita","lollar","lollis","loma","lomax","lombardi","lombardo","lomeli","lona","londa","london","lonergan","loney","longley","longmire","longo","longoria","loni","lonna","lonnie","loomis","looney","lopez","lora","loraine","loralee","lorean","loree","loreen","lorelei","loren","lorena","lorene","lorenz","lorenza","lorenzen","lorenzo","loreta","loretta","lorette","lori","loria","loriann","lorie","lorilee","lorina","lorinda","lorine","lorita","lorna","lorraine","lorretta","lorri","lorriane","lorrie","lorrine","lory","lott","lottie","lotz","lou","louann","louanne","loucks","loudermilk","louella","louetta","loughlin","louie","louis","louisa","louise","louque","loura","lourdes","lourie","louvenia","lovato","lovejoy","lovelace","lovelady","loveland","lovell","lovella","lovett","lovetta","lovie","lovins","lowder","lowell","lowman","lowrance","lowrey","lowry","lowther","loya","loyce","loyd","lozada","lozano","lozier","lozoya","luana","luann","luanna","luanne","luba","lubin","lucas","lucero","luci","lucia","luciana","luciano","lucie","lucienne","lucier","lucila","lucile","lucilla","lucille","lucina","lucinda","lucio","luckett","luckey","lucrecia","lucretia","lucy","ludie","ludivina","ludlow","ludwick","ludwig","lueck","luella","luetta","luevano","lugo","lui","luis","luisa","luise","lujan","lukas","lukens","luker","lula","lulu","luna","lund","lundberg","lunde","lundgren","lundquist","lundy","lunn","lunsford","luong","lupe","lupita","lupo","lura","lurlene","lurline","lussier","luther","luttrell","luu","luvenia","luz","lyda","lydia","lydon","lykins","lyla","lyle","lyles","lyman","lyn","lynda","lyndia","lyndsay","lyndsey","lynell","lynelle","lynetta","lynette","lynn","lynna","lynne","lynnette","lynsey","lyon","lyons","lytle","mabe","mabel","mabelle","mable","mabry","macaluso","macarthur","macdonald","macdougall","macedo","macfarlane","macgregor","mach","machado","machelle","machuca","macias","macie","maciel","mackay","mackenzie","mackey","mackie","mackinnon","macklin","maclean","macleod","macmillan","macneil","macomber","macon","macpherson","macy","madalene","madaline","madalyn","maddie","maddox","maddux","madelaine","madeleine","madelene","madeline","madelyn","mader","madera","madewell","madge","madie","madigan","madison","madlyn","madonna","madore","madrid","madsen","madson","mae","maeda","maegan","maes","maestas","mafalda","magali","magallanes","magaly","magan","magana","magaret","magda","magdalen","magdalena","magdalene","magdaleno","magee","magen","maggard","maggie","maggio","magill","magness","magnolia","magnuson","magruder","maguire","mahaffey","mahalia","mahan","maher","mahler","mahon","mahone","mahoney","mai","maia","maida","maier","maile","maines","maira","maire","maisha","maisie","majewski","majorie","makeda","maki","makowski","malave","malcolm","malcom","maldonado","malek","malena","maley","malia","malika","malinda","malinowski","malisa","malissa","malka","mallett","mallette","malley","mallie","mallon","mallory","malloy","malone","maloney","malorie","maloy","malvina","mamie","mammie","manchester","mancilla","mancini","mancuso","manda","mandel","mandeville","mandi","mandie","mandy","maness","mangan","mangrum","mangum","manie","manion","manis","manley","mann","mannino","manns","manriquez","mansell","mansfield","manson","mansour","mantooth","manuel","manuela","manzanares","manzano","manzo","mapes","mapp","marable","maragaret","maragret","maranda","marasco","marcano","marceau","marcela","marcelene","marcelina","marceline","marcell","marcella","marcelle","marcene","marchand","marchant","marchelle","marchetti","marci","marcia","marciano","marcie","marcotte","marcoux","marcum","marcus","marcy","mardell","marden","mardis","marek","maren","margaret","margareta","margarete","margarett","margaretta","margarette","margart","marge","margene","margeret","margert","margery","marget","margherita","margie","margit","margo","margorie","margot","margret","margrett","marguerita","marguerite","margurite","margy","marhta","mari","maria","mariah","mariam","marian","mariana","marianela","mariani","mariann","marianna","marianne","mariano","maribel","maribeth","marica","maricela","maricruz","marie","mariel","mariela","mariella","marielle","marietta","mariette","mariko","marilee","marilou","marilu","marilyn","marilynn","marin","marinda","marinelli","marino","mario","marion","maris","marisa","mariscal","marisela","marisha","marisol","marissa","marita","maritza","marivel","marjorie","marjory","markel","marketta","markey","markham","markita","markle","markley","markowitz","markus","marla","marlana","marleen","marlen","marlena","marlene","marler","marley","marlin","marline","marlo","marlow","marlowe","marlyn","marlys","marna","marni","marnie","maroney","marotta","marquardt","marquerite","marquetta","marquez","marquita","marquitta","marr","marra","marrero","marriott","marron","marroquin","marrs","marrufo","marsha","marshall","marston","marta","marte","martell","marth","martha","marti","martin","martina","martindale","martine","martineau","martinelli","martines","martinez","martino","martinson","marty","martz","marva","marvella","marvin","marvis","marx","mary","marya","maryalice","maryam","maryann","maryanna","maryanne","marybelle","marybeth","maryellen","maryetta","maryjane","maryjo","maryland","marylee","marylin","maryln","marylou","marylouise","marylyn","marylynn","maryrose","masako","mascarenas","mashburn","masse","massengale","massey","massie","masterson","mastin","mata","mateo","matha","matheny","mather","matherly","matherne","mathers","mathes","matheson","mathew","mathews","mathewson","mathias","mathieu","mathilda","mathilde","mathis","mathison","matias","matilda","matilde","matlock","matney","matos","matson","matsumoto","matta","mattern","matteson","matthew","matthews","mattie","mattingly","mattison","mattos","mattox","mattson","matz","maude","maudie","mauk","mauldin","mauney","maupin","maura","maureen","maurer","maurice","mauricio","maurine","maurita","mauro","maus","mavis","maxey","maxfield","maxie","maxima","maximina","maxine","maxon","maxson","maybell","maybelle","mayberry","maye","mayer","mayers","mayes","mayfield","mayhew","mayle","mayme","maynard","mayne","maynor","mayo","mayola","mayorga","mayra","mazie","mazur","mazurek","mazza","mazzola","mcabee","mcadams","mcadoo","mcafee","mcalister","mcallister","mcalpin","mcalpine","mcanally","mcandrew","mcardle","mcarthur","mcatee","mcauley","mcauliffe","mcavoy","mcbee","mcbrayer","mcbride","mcbroom","mcbryde","mcburney","mccabe","mccafferty","mccaffrey","mccain","mccaleb","mccall","mccalla","mccallister","mccallum","mccammon","mccandless","mccann","mccants","mccarley","mccarron","mccarter","mccarthy","mccartney","mccarty","mccarver","mccary","mccaskill","mccaslin","mccauley","mccay","mcchesney","mcclain","mcclanahan","mcclary","mcclean","mccleary","mcclellan","mcclelland","mcclendon","mcclintock","mcclinton","mccloskey","mccloud","mcclung","mcclure","mcclurg","mccluskey","mccollough","mccollum","mccomas","mccomb","mccombs","mcconnell","mccool","mccord","mccorkle","mccormack","mccormick","mccourt","mccowan","mccown","mccoy","mccracken","mccrae","mccrary","mccraw","mccray","mccrea","mccready","mccreary","mccrory","mccubbin","mccue","mcculley","mcculloch","mccullough","mccullum","mccully","mccune","mccurdy","mccurry","mccusker","mccutchen","mccutcheon","mcdade","mcdaniel","mcdaniels","mcdavid","mcdermott","mcdevitt","mcdonald","mcdonnell","mcdonough","mcdougal","mcdougald","mcdougall","mcdowell","mcduffie","mceachern","mcelhaney","mcelrath","mcelroy","mcentire","mcevoy","mcewen","mcfadden","mcfall","mcfarland","mcfarlane","mcfarlin","mcgaha","mcgann","mcgarry","mcgary","mcgee","mcgehee","mcghee","mcgill","mcginley","mcginn","mcginnis","mcginty","mcglone","mcglothlin","mcglynn","mcgough","mcgovern","mcgowan","mcgowen","mcgrath","mcgraw","mcgregor","mcgrew","mcgriff","mcgruder","mcguigan","mcguinness","mcguire","mchale","mchenry","mchugh","mcilwain","mcinerney","mcinnis","mcintire","mcintosh","mcintyre","mciver","mckamey","mckay","mckean","mckee","mckeehan","mckeever","mckellar","mckelvey","mckenna","mckenney","mckenzie","mckeon","mckeown","mckibben","mckie","mckim","mckinley","mckinney","mckinnie","mckinnon","mckinzie","mckissick","mcknight","mckown","mckoy","mclain","mclane","mclaren","mclaughlin","mclaurin","mclean","mclellan","mclemore","mclendon","mcleod","mclin","mcloughlin","mcmahan","mcmahon","mcmann","mcmanus","mcmaster","mcmasters","mcmichael","mcmillan","mcmillen","mcmillian","mcmillin","mcmillon","mcminn","mcmorris","mcmullen","mcmullin","mcmurray","mcmurry","mcnabb","mcnair","mcnally","mcnamara","mcnamee","mcnary","mcneal","mcneely","mcneese","mcneil","mcneill","mcnew","mcniel","mcnulty","mcnutt","mcpeak","mcphail","mcphee","mcpherson","mcquade","mcqueen","mcquiston","mcrae","mcreynolds","mcroberts","mcshane","mcswain","mcsweeney","mcvay","mcvey","mcwhirter","mcwhorter","mcwilliams","meacham","meade","meader","meador","meadors","meagan","meaghan","meagher","mears","mebane","mecham","mechelle","meda","medeiros","medellin","medford","medlin","medlock","medrano","mee","meehan","meekins","meeks","mefford","meg","megan","meggan","meghan","meghann","mehta","mei","meier","meissner","mejia","mejias","melaine","melancon","melani","melania","melanie","melanson","melany","melba","melcher","melchor","melda","mele","melendez","melgar","melia","melida","melina","melinda","melisa","melissa","melissia","melita","mellie","mellisa","mellissa","mello","mellon","mellott","melnick","melo","melodee","melodi","melodie","melonie","melony","melson","melva","melville","melvin","melvina","melynda","mena","menard","menchaca","mendenhall","mendes","mendez","mendiola","mendoza","mendy","menefee","menendez","meneses","menjivar","menke","meraz","mercado","mercedes","mercedez","mercier","mercurio","meredith","meri","merida","merideth","meridith","merilyn","merissa","merkel","merkle","merle","merlene","merlyn","merna","merrell","merri","merrick","merrie","merrifield","merrilee","merrill","merriman","merritt","merriweather","mertens","mertie","mertz","merwin","meryl","messer","messick","messina","messinger","messner","mestas","metcalf","metcalfe","metts","metz","metzger","metzler","meunier","meyer","meyers","meza","mia","mica","micaela","micah","miceli","micha","michael","michaela","michaele","michaelis","michaels","michaelson","michal","michalak","michalski","michaud","micheal","michel","michele","michelina","micheline","michell","michelle","michels","michiko","mickel","mickelson","mickens","mickey","micki","mickie","middaugh","middlebrooks","middleton","midgett","midkiff","miele","mielke","mier","miesha","migdalia","mignon","miguel","miguelina","mika","mikaela","mike","mikell","mikesell","miki","mikki","mila","milagro","milagros","milam","milan","milano","milburn","milda","mildred","miley","milford","milissa","millan","millar","millard","millen","millett","millican","millicent","millie","milligan","milliken","millner","millsap","millsaps","milly","milne","milner","milton","mimi","mims","minard","mincey","minda","mindi","mindy","minerva","ming","mingo","minh","minna","minnich","minnick","minnie","minta","minton","mintz","mira","miramontes","miranda","mireille","mireles","mirella","mireya","miriam","mirian","mirna","mirta","mirtha","misha","miss","missy","misti","mistie","mitchel","mitchell","mitchem","mitchum","mitsue","mitsuko","mittie","mitzi","mitzie","mixon","miyamoto","miyoko","mize","mizell","moberg","mobley","modesta","modica","modlin","moeller","moen","moffatt","moffett","moffitt","mohamed","mohammed","mohan","mohler","moira","mojica","molina","moller","mollie","molloy","molly","molnar","mona","monaco","monaghan","monahan","moncada","moncrief","monday","mondragon","monet","monge","monica","monika","monique","moniz","monnie","monroe","monroy","monserrate","monson","montague","montalvo","montana","montanez","montano","monteiro","montelongo","montemayor","montenegro","montez","montgomery","monti","montiel","montoya","monzon","mooney","mooneyham","moore","moorefield","moorehead","moorer","moores","moorhead","mora","morabito","moralez","moran","moreau","morehead","morehouse","moreira","moreland","morell","morelli","morelock","moreno","morey","morgan","mori","moriah","moriarty","morin","moritz","morley","morman","morrell","morrill","morrison","morrissette","morrissey","mortensen","mortenson","mortimer","morton","mosby","moseley","mosely","moser","mosher","mosier","moskowitz","mosley","mosqueda","mota","moten","moton","motta","moua","moulton","moultrie","mowery","mowry","moxley","moye","moyer","moyers","moynihan","mozell","mozella","mozelle","mudd","mueller","muhammad","mui","mulcahy","mulder","muldoon","muldrow","mulholland","mulkey","mullen","mullens","mullin","mullinax","mullins","mullis","mulvaney","mulvey","mumford","muncy","munday","mundell","mundy","munford","munger","munguia","muniz","munn","munos","munoz","munro","munroe","munsey","munson","muoi","murchison","murdoch","murdock","murguia","muriel","murillo","muro","murphey","murphree","murr","murrell","musgrave","musgrove","musick","musselman","musser","musso","muth","myatt","myer","myers","myesha","myhre","myles","myong","myra","myriam","myrick","myrl","myrle","myrna","myrta","myrtice","myrtie","myrtis","myrtle","myung","nabors","nadeau","nadene","nader","nadia","nadine","nadler","nagel","nagle","nagy","naida","najera","nakamura","nakano","nakesha","nakia","nakisha","nakita","nall","nalley","nancee","nancey","nanci","nancie","nancy","nanette","nannette","nannie","naoma","naomi","napier","napoli","napolitano","naquin","naranjo","narcisa","nardi","nardone","narvaez","nash","nason","natacha","natale","natalia","natalie","natalya","natasha","natashia","nate","nathalie","nathan","natisha","natividad","natosha","naughton","naumann","nava","navarra","navarrete","navarrette","navarro","naylor","nazario","neace","neale","nealy","neary","necaise","necole","neda","nedra","needham","neel","neeley","neely","neff","negrete","negron","neida","neil","neill","neilson","nelda","nelia","nelida","nell","nella","nelle","nellie","nelly","nelms","nelsen","nemeth","nena","nenita","neoma","neomi","nereida","neri","nerissa","nero","nery","nesbit","nesbitt","nesmith","nestor","neta","nettie","neu","neubauer","neuman","neumann","neva","nevada","nevarez","neville","nevins","newberry","newby","newcomb","newhouse","newkirk","newland","newlin","newman","newport","newsom","newsome","newson","ney","nez","ngan","ngo","ngoc","nguyen","nguyet","nichelle","nichol","nicholas","nichole","nicholle","nicholls","nichols","nicholson","nickell","nickelson","nickens","nickerson","nicki","nickie","nickles","nickole","nicky","nicol","nicola","nicolas","nicolasa","nicole","nicolette","nicolle","nida","nidia","nielsen","nielson","nieman","niemann","niemeyer","niemi","niesha","nieto","nieves","nightingale","nigro","niki","nikia","nikita","nikki","nikole","nila","nilda","niles","nilsa","nilsen","nilsson","nimmons","nina","ninfa","nino","nisha","nissen","nita","nixon","noah","nobuko","noe","noel","noelia","noella","noelle","noemi","nohemi","nola","nolan","noland","nolasco","nolen","noles","nolin","nolte","noma","nona","noonan","nora","norah","nord","nordstrom","noreen","norene","norfleet","noriega","noriko","norine","norma","norman","normand","norris","norsworthy","northcutt","northrop","northrup","norton","norvell","norwood","nottingham","novak","novotny","nowak","nowell","nowicki","nowlin","nubia","nugent","nunes","nunez","nunley","nunn","nunnally","nuno","nuss","nussbaum","nutt","nyberg","nydia","nygaard","nyla","nystrom","oakes","oakley","oates","obannon","obdulia","ober","oberg","obregon","obrian","obrien","obryan","obryant","ocampo","ocasio","ochoa","ocie","oconnell","oconner","oconnor","octavia","oda","odaniel","oday","odelia","odell","oden","odessa","odette","odilia","odle","odom","odonnell","odum","ofelia","offutt","ogburn","ogden","oglesby","ogletree","ogrady","ohalloran","ohara","ohare","ojeda","okeefe","okelley","olander","oldham","oleary","olene","oleson","oleta","olevia","olga","olguin","olimpia","olin","olinda","olinger","oliva","olivares","olivarez","olivas","oliveira","olivera","olivia","olivier","olivo","oller","ollie","ollis","olmos","olmstead","olney","oloughlin","olsen","olson","olszewski","olvera","olympia","omalley","omar","omara","omeara","oneal","oneida","oneil","oneill","oney","ong","onie","onita","ontiveros","ophelia","oquendo","oquinn","oralee","oralia","orcutt","ordonez","ordway","oreilly","orellana","oretha","orlando","orman","ormsby","orndorff","ornelas","orosco","orourke","orozco","orpha","orr","orta","ortega","ortego","orth","ortiz","orton","osborn","osborne","osburn","oscar","osgood","oshaughnessy","oshea","oshiro","osman","osorio","ossie","osteen","oster","osterman","ostrander","ostrom","ostrowski","osullivan","osuna","oswald","oswalt","otelia","otero","otey","otha","otilia","otis","otoole","ott","otte","otten","ottinger","oubre","ouellette","ouida","ousley","ovalle","overcash","overstreet","overton","overturf","owen","owens","owensby","owings","owsley","oxendine","oxford","oxley","oyler","ozell","ozella","ozie","ozuna","pabon","pacheco","packard","padgett","padilla","padron","paez","pagano","pagel","paige","paine","paiz","pak","palacio","palacios","palermo","palladino","palma","palmieri","palmira","palmore","palomo","palumbo","pam","pamala","pamela","pamelia","pamella","pamila","pamula","panek","paniagua","pankey","pannell","pantoja","paola","pappas","paquette","paquin","parada","paradis","pardo","pardue","paredes","parenteau","parham","paris","parisi","parke","parkhurst","parkinson","parkman","parmenter","parmer","parnell","parra","parrett","parris","parrish","parrott","partain","partee","parthenia","particia","partida","partin","partlow","paschall","pascoe","pasley","pasquale","passmore","pastore","patel","paterson","patino","patnode","patria","patrica","patrice","patricia","patrick","patrina","patsy","patterson","patti","pattie","pattison","patton","patty","paugh","paul","paula","paulene","pauletta","paulette","pauley","paulin","paulina","pauline","paulino","paulita","paulk","paulsen","paulson","paulus","paxton","payne","paynter","payton","paz","peabody","peachey","peake","pearcy","pearle","pearlene","pearlie","pearline","pearman","pearsall","pearson","peaslee","peay","peckham","pecoraro","peden","pedersen","pederson","pedigo","pedraza","pedroza","peebles","peele","peeples","peggie","peggy","pegram","pegues","pei","peiffer","pelayo","pelfrey","pelkey","pellegrini","pellegrino","pellerin","pelletier","peloquin","peltier","pelton","peluso","pemberton","pena","pender","pendergast","pendergrass","pendleton","pendley","penelope","penick","penland","penley","penn","pennell","penney","penni","pennie","pennington","penrod","penton","pepe","pepin","perales","peralta","peraza","percy","perdomo","perea","peres","pereyra","perez","perla","perlman","permenter","pernell","perrault","perreault","perreira","perri","perrin","perrine","perrone","perrotta","perry","perryman","persaud","persinger","pesce","pete","peter","peterkin","peterman","petersen","peterson","petra","petree","petrie","petrillo","petrina","petro","petronila","petry","pettaway","petterson","pettiford","pettigrew","pettis","pettit","pettus","pettway","peyton","pfaff","pfeffer","pfeifer","pfeiffer","pfister","pham","phan","pharr","phebe","phelan","phelps","phifer","philbrick","philip","philips","phillip","phillips","phillis","philomena","philpot","philpott","phinney","phipps","phoebe","phung","phuong","phylicia","phylis","phyliss","phyllis","piatt","picard","pichardo","pickard","pickel","pickens","pickering","pickett","piedad","pieper","piercy","pierre","pierson","pifer","pigg","pilkington","pimental","pimentel","pina","pinard","pinckney","pineda","pinero","pinkard","pinkerton","pinkham","pinkney","pinkston","pino","pinon","pinson","piotrowski","pires","pirtle","pisano","pitchford","pitre","pitt","pittman","pitts","pitzer","pizarro","placencia","plante","plascencia","platt","plemmons","pless","plotkin","plott","plourde","plumlee","plumley","plummer","plunkett","plyler","poche","poe","poff","pogue","pohl","poindexter","poirier","poisson","pok","polanco","poland","polito","polley","polly","polson","polston","pomerleau","pomeroy","poole","pooler","poore","popham","popovich","popp","porras","porsche","porsha","porterfield","portia","portillo","portis","posner","poston","poteat","poteet","poulin","pouliot","poulos","poulson","powe","powell","poynter","prado","prather","preciado","preece","prendergast","prentiss","prescott","presley","presnell","pressley","preston","prevost","prewitt","prichard","pricilla","prickett","priddy","pridemore","pridgen","priester","prieto","primm","prindle","prine","pringle","priscila","priscilla","pritchard","pritchett","privett","probst","proffitt","propst","prosser","proulx","prouty","provencher","providencia","pruett","pruitt","pryor","puckett","puente","puentes","puga","pugliese","puleo","pulido","pullen","pulliam","pumphrey","pura","purcell","purdy","purifoy","purkey","purnell","pursley","purvis","puryear","putman","putnam","pyatt","pyle","pyles","qiana","quach","quackenbush","quade","qualls","quan","quattlebaum","queenie","quesada","quesenberry","quevedo","quezada","quiana","quigley","quijano","quiles","quillen","quimby","quinlan","quinn","quinonez","quintana","quintanilla","quintero","quinton","quiroz","quyen","raab","rabb","rabe","raber","rabideau","rabinowitz","rabon","raby","rachael","rachal","racheal","rachel","rachele","rachell","rachelle","racine","rackley","racquel","radcliff","radcliffe","rademacher","rader","radford","radke","radtke","rae","raeann","rael","raelene","rafaela","rafferty","ragan","ragin","ragland","ragsdale","raguel","rahman","rahn","railey","raina","rainbolt","rainer","raines","rainey","rainwater","raisa","raleigh","raley","ralph","ralston","ramage","rambo","ramer","rameriz","ramey","ramires","ramirez","ramon","ramona","ramonita","ramos","ramsay","ramsdell","ramsey","ranae","rancourt","randa","randall","randazzo","randee","randel","randell","randi","randle","randolph","randy","ranee","raney","rangel","rankin","rankins","ransdell","ranson","rao","raphael","raposa","rapp","raquel","rasberry","rascon","rasheeda","rashid","rashida","rasmussen","ratchford","ratcliff","ratcliffe","rathbone","rathbun","ratliff","rau","rauch","rausch","rawlings","rawlins","rawls","rawson","raya","rayborn","rayburn","raye","rayfield","rayford","raylene","raymer","raymond","raymonde","raymund","rayna","rayner","raynor","razo","rea","reagan","reanna","reardon","reatha","reavis","reba","rebbeca","rebbecca","rebeca","rebecca","rebecka","rebekah","reber","reda","reddick","redford","redman","redmon","redmond","redwine","reece","reena","reese","refugia","refugio","regalado","regan","regena","regenia","regina","regine","reginia","rehm","reich","reichard","reichel","reichert","reid","reiff","reiko","reilly","reimer","reimers","reina","reiner","reinert","reinhardt","reinhart","reinhold","reinke","reiser","reiss","reita","reitz","rema","rembert","remedios","remillard","remington","remona","remy","rena","renae","renata","renate","renaud","renay","renda","rendon","rene","renea","reneau","renee","renetta","renfro","renfroe","renfrow","renita","renn","renna","renner","rennie","reno","renshaw","renteria","renz","resendez","resnick","ressie","ressler","reta","retha","retta","reuter","reva","revell","revis","rey","reyes","reyna","reynalda","reynolds","reynoso","rhea","rheba","rhee","rhiannon","rhinehart","rhoades","rhoads","rhoda","rhoden","rhodes","rhona","rhonda","rhyne","ribeiro","ricarda","ricci","ricciardi","riccio","richard","richards","richardson","richburg","richelle","richerson","richert","richey","richie","richman","richmond","rickard","rickert","ricketts","ricki","rickie","rickman","rico","riddell","riddick","ridenhour","ridenour","rideout","ridgway","ridley","riedel","rieger","riehl","riendeau","ries","riffe","rigby","rigdon","riggins","riggle","rigney","rigsby","riker","rikki","riley","rimmer","rinaldi","rincon","rinehart","ringler","rinker","riojas","riordan","rios","rioux","ripley","rippy","risa","risinger","risley","risner","ritchey","ritchie","rittenhouse","ritz","rivard","rivera","rivero","rivka","rizo","rizzo","roa","roane","roark","robb","robbie","robbin","robbins","robbyn","robena","roberge","roberson","robert","roberta","roberto","roberts","robertson","robeson","robey","robichaud","robichaux","robinett","robinette","robinson","robison","robledo","robson","roby","robyn","rocco","rocha","roche","rochel","rochell","rochelle","rochester","rocio","rockett","rockwell","rockwood","rodarte","rodas","roddy","roden","roderick","rodgers","rodney","rodrigez","rodrigue","rodrigues","rodriguez","rodriques","rodriquez","roeder","roemer","roesch","roesler","rogan","roger","rogers","rohde","rohr","rohrer","rojas","rojo","roland","rolanda","rolande","roldan","rolf","rolfe","rolle","rollins","rollo","rolon","romana","romano","rome","romelia","romeo","romero","romine","romo","romona","rona","ronald","ronda","roney","roni","ronna","ronni","ronnie","rooker","rooney","rory","rosa","rosado","rosalba","rosalee","rosales","rosalia","rosalie","rosalina","rosalind","rosalinda","rosaline","rosalva","rosalyn","rosamaria","rosamond","rosana","rosann","rosanna","rosanne","rosaria","rosario","rosas","rosaura","roscoe","roseann","roseanna","roseanne","roseberry","roseboro","roselee","roselia","roseline","rosella","roselle","roselyn","roseman","rosemarie","rosemond","rosen","rosena","rosenbaum","rosenberg","rosenberger","rosenberry","rosenblatt","rosenblum","rosenda","rosenfeld","rosenthal","rosetta","rosette","rosia","rosie","rosina","rosio","rosita","roslyn","ross","rossana","rossi","rossie","rossiter","rossman","rost","roth","rothman","rothrock","rothstein","rothwell","rotz","roundtree","roundy","rountree","rourke","roush","rousseau","roussel","rowden","rowe","rowell","rowena","rowland","rowles","rowlett","rowley","roxana","roxane","roxann","roxanna","roxanne","roxie","roy","roybal","royce","royer","royston","rozanne","rozella","rozier","ruano","rubalcava","ruben","rubenstein","rubi","rubie","rubin","rubino","rubio","rubye","ruch","rucker","ruckman","rudnick","rudolph","rudy","rueda","ruelas","ruffner","rufina","rugg","ruggiero","ruggles","ruhl","ruiz","rummel","rumph","rumsey","rundell","runge","runion","runyan","runyon","rupe","rupert","rupp","ruppert","rusch","rushton","russ","russell","russo","rutan","ruth","rutha","ruthann","ruthanne","ruthe","ruthie","rutkowski","rutland","rutledge","ruvalcaba","ryan","ryann","ryder","saad","saari","saavedra","sabina","sabine","sabo","sabol","sabra","sabrina","sacco","sacha","sachiko","sachs","sackett","sadie","sadler","sadowski","sadye","saechao","saenz","saez","safford","saito","saiz","sala","salas","salazar","salcedo","salcido","saldana","saldivar","saleh","salem","salena","salerno","salgado","salisbury","salley","sallie","sally","salo","salome","salomon","saltzman","salvador","salvatore","salyer","salyers","salzman","sam","samaniego","samantha","samara","samatha","samella","samira","sammie","sammons","sammy","samons","samora","sampson","sams","samson","samuel","samuels","samuelson","sana","sanabria","sanborn","sanches","sanchez","sanda","sandberg","sandee","sanderlin","sanderson","sandi","sandidge","sandie","sandifer","sandler","sandlin","sandoval","sandra","sandstrom","sandusky","sanford","sanjuana","sanjuanita","sankey","sanmiguel","sanora","sansom","sansone","santa","santacruz","santamaria","santana","santiago","santillan","santina","santo","santoro","santos","santoyo","sapp","sappington","sara","sarabia","sarah","sarai","saran","sargeant","sargent","sari","sarina","sarita","sarmiento","sartain","sartin","sarver","sasaki","sasha","sasser","sather","sato","satterfield","satterwhite","sattler","saturnina","sau","sauceda","saucedo","sauer","saunders","saundra","sauter","savannah","saville","savino","savoie","sawicki","saxon","saxton","sayles","saylor","sayre","scaife","scalf","scalise","scanlan","scanlon","scarberry","scarborough","scarbrough","scarlett","schaaf","schaal","schade","schaefer","schaeffer","schafer","schaffer","schaffner","schall","schaller","scharf","schatz","schaub","schauer","scheel","scheer","scheffler","schell","scheller","schenck","schenk","scherer","schermerhorn","schexnayder","schick","schiff","schiffman","schindler","schlegel","schleicher","schlosser","schlueter","schmid","schmidt","schmit","schmitt","schmitz","schneider","schock","schoen","schoenfeld","schofield","scholl","scholz","schoonmaker","schoonover","schott","schrader","schram","schramm","schreck","schreiber","schreiner","schrimsher","schrock","schroder","schroeder","schubert","schuck","schuh","schuler","schuller","schulman","schulte","schultz","schulz","schulze","schumacher","schuman","schumann","schuster","schutt","schutz","schuyler","schwab","schwartz","schwarz","schweitzer","scofield","scoggins","scott","scottie","scoville","scribner","scrivner","scroggins","scruggs","scully","seabolt","seabrook","seagraves","seale","sealey","sealy","sean","searcy","searle","searles","seaton","seaver","seavey","seawright","seay","sebastian","sebrina","sechrist","seda","sedillo","seeger","seeley","seema","segal","segarra","seger","segovia","segura","seibel","seiber","seibert","seidel","seifert","seiler","seitz","selby","selena","selene","selina","sellars","selma","selman","sena","senaida","seng","senn","senter","sepulveda","serafina","serena","sergent","serina","serita","serna","serrano","serrato","sessoms","setser","setsuko","setzer","severson","sevier","sevigny","sevilla","seward","sewell","seymore","seymour","shackelford","shackleford","shae","shafer","shaffer","shaina","shakia","shakira","shakita","shala","shalanda","shalon","shalonda","shamblin","shameka","shamika","shana","shanae","shanahan","shanda","shandi","shandra","shane","shaneka","shanel","shanell","shanelle","shaner","shani","shanice","shanika","shaniqua","shanita","shankle","shanklin","shanna","shannan","shannon","shanon","shanta","shantae","shantay","shante","shantel","shantell","shantelle","shanti","shapiro","shaquana","shaquita","shara","sharan","sharda","sharee","sharell","sharen","shari","sharice","sharie","sharika","sharilyn","sharita","sharkey","sharla","sharleen","sharlene","sharma","sharmaine","sharolyn","sharon","sharonda","sharpe","sharri","sharron","sharyl","sharyn","shasta","shattuck","shaughnessy","shaun","shauna","shaunda","shaunna","shaunta","shaunte","shavon","shavonda","shavonne","shawana","shawanda","shawanna","shawn","shawna","shawnda","shawnee","shawnna","shawnta","shay","shayla","shayna","shayne","shea","shealy","shearin","sheba","shedd","sheehan","sheehy","sheena","sheffield","sheila","sheilah","shela","shelba","shelby","sheldon","shelia","shella","shelley","shelli","shellie","shelly","shelton","shemeka","shemika","shena","shenika","shenita","shenk","shenna","shepard","shephard","sheppard","shera","sheree","sherell","sherer","sheri","sherice","sheridan","sherie","sherika","sherill","sherilyn","sherise","sherita","sherlene","sherley","sherly","sherlyn","sherman","sheron","sherrell","sherrer","sherri","sherrie","sherril","sherrill","sherrod","sherron","sherryl","sherwin","sherwood","shery","sheryl","sheryll","shetler","shick","shiela","shifflett","shiflett","shila","shiloh","shinn","shipe","shipley","shipp","shippy","shira","shirely","shirey","shirl","shirlee","shirleen","shirlene","shirley","shirly","shively","shizue","shizuko","shockey","shockley","shoemake","shoffner","shona","shonda","shondra","shonna","shonta","shoop","shortridge","shoshana","shotwell","shoup","shouse","showalter","shrader","shreve","shropshire","shroyer","shrum","shu","shubert","shuler","shull","shults","shultz","shumaker","shuman","shumate","shumpert","shumway","shupe","shuster","shutt","shyla","sibert","sibley","sibyl","sickler","sidney","siebert","siegel","siegfried","sievers","sifuentes","sigler","sigman","sigmon","signe","sigrid","sikora","silas","silva","silvana","silveira","silverman","silverstein","silvey","silvia","simard","simas","simmon","simmons","simms","simon","simona","simonds","simone","simoneau","simoneaux","simonne","simons","simonson","simonton","simpkins","simpson","sinclair","sindy","singh","singletary","singley","siobhan","sirena","sirois","sisco","sisk","sisneros","sisson","sistrunk","sitton","siu","sixta","sizemore","skaggs","skeen","skeens","skelton","skidmore","skiles","skye","slagle","slaton","slavin","slayton","sloat","slocum","slone","slover","slusher","slyvia","smalley","smallwood","smedley","smelser","smitherman","smithson","smtih","smyth","smythe","snapp","snavely","snodgrass","snowden","snyder","soares","sobel","socorro","sofia","sohn","soila","soileau","sokol","solange","solberg","soledad","solis","soliz","soloman","solomon","solorio","solorzano","somer","somers","somerville","sommer","sommers","sommerville","sona","sondra","songer","sonia","sonja","sonnier","sonya","soper","sophia","sophie","sophy","soraya","sorensen","sorenson","soria","soriano","sorrell","sorrells","sosa","sotelo","soto","soucy","soukup","soule","sousa","southard","southerland","southwick","southworth","souza","sowder","sowell","spalding","spann","spano","sparkman","spaulding","specht","spector","speight","spellman","sperry","spiegel","spielman","spiers","spiker","spillman","spinelli","spitler","spitzer","spivey","spooner","spradlin","spradling","spraggins","sprague","spratt","sprayberry","spriggs","sproul","sprouse","spruill","spurgeon","spurlock","staats","stacee","stacey","staci","stacia","stacie","stackhouse","stacy","stadler","stafford","stagg","staggs","stagner","stahl","staley","stallard","stallworth","stalnaker","stambaugh","stamey","stamm","stancil","standifer","standley","standridge","stanfield","stanfill","stanford","stanger","stanley","stansberry","stansbury","stanton","stapleton","starkey","starla","starnes","starr","stasia","staten","staton","staub","stauffer","stclair","stcyr","steadman","stearns","stebbins","steck","stedman","steele","steelman","stefani","stefania","stefanie","stefany","steffanie","steffen","steffens","stegall","steger","steib","steiger","steinbach","steinberg","steiner","steinke","steinman","steinmetz","stella","stelly","stenson","stepanie","stephaine","stephan","stephane","stephani","stephania","stephanie","stephany","stephen","stephenie","stephens","stephenson","stephine","stephnie","stepp","sternberg","stetson","steven","stevenson","steverson","stevie","stewart","stgermain","sthilaire","stickney","stidham","stier","stiffler","stillman","stillwell","stiltner","stilwell","stine","stines","stinnett","stinson","stites","stith","stitt","stjohn","stlaurent","stlouis","stockdale","stockton","stockwell","stoddard","stoffel","stogner","stoll","stollings","stoltz","stoltzfus","stonge","stott","stotts","stouffer","stovall","stowe","stowell","stpeter","stpierre","strachan","strader","strahan","straka","straley","strasser","stratton","straub","strauss","strawn","strawser","streeter","streit","stribling","stricker","strickland","strickler","stricklin","stringfellow","strobel","stroh","strom","stroman","stromberg","strother","strouse","struble","strunk","stuart","stubblefield","stuckey","studer","stultz","stumpf","sturdivant","sturges","sturgill","sturgis","sturm","sturtevant","stutz","stutzman","suanne","suarez","suazo","sublett","sudduth","sudie","sueann","suellen","suggs","suh","suiter","suk","sulema","sullins","sullivan","sumiko","summerlin","summerville","sumner","sumrall","sundberg","sunderland","sunni","surber","surratt","susan","susana","susann","susanna","susannah","susanne","susie","sussman","susy","suter","sutherland","sutphin","sutter","sutton","suzan","suzann","suzanna","suzanne","suzette","suzi","suzie","suzuki","suzy","svetlana","svitlana","svoboda","swafford","swaim","swaney","swanger","swann","swanner","swanson","swarey","swartz","swearingen","sweatt","sweitzer","swenson","swett","swick","swiger","swindell","swinford","swinney","swinson","swint","swinton","switzer","swope","sybil","syble","sydney","sydnor","sylvester","sylvia","sylvie","symons","synder","synthia","syreeta","szabo","szymanski","tabatha","tabb","taber","tabetha","tabitha","tackett","tafoya","taft","taggart","tague","taina","taisha","tajuana","takahashi","takako","takisha","talamantes","talavera","talbert","talbott","talia","taliaferro","talisha","talitha","talkington","tallent","talley","tallman","talton","tamala","tamar","tamara","tamatha","tamayo","tambra","tameika","tameka","tamekia","tamela","tamera","tamesha","tamez","tami","tamica","tamie","tamika","tamiko","tamisha","tammara","tammera","tammi","tammie","tammy","tamra","tana","tanaka","tandra","tandy","taneka","tanesha","tangela","tanguay","tania","tanika","tanisha","tanja","tankersley","tanna","tanya","tapia","tapley","tapp","tara","tarah","tarango","tarbox","tardif","tardiff","taren","tari","tarpley","tarr","tarra","tarrant","tarsha","tarver","taryn","tasha","tashia","tashina","tasia","tatiana","tatro","tatum","tatyana","taunya","tavares","tavarez","taveras","tawana","tawanda","tawanna","tawna","tawnya","taylor","tayna","teague","teasley","tedford","teena","teets","tegan","teisha","teixeira","tejada","tejeda","telford","telles","tellez","tello","telma","temeka","temika","tempie","templeton","templin","tena","tenesha","tenisha","tennant","tenney","tennie","tennille","tennison","tennyson","tenorio","teodora","teofila","tera","teran","tereasa","teresa","terese","teresia","teresita","teressa","teri","terica","terina","terisa","terra","terrazas","terrell","terresa","terri","terrie","terrill","terrilyn","terry","terwilliger","tesch","tesha","tess","tessa","tessie","tessier","testerman","teter","tetreault","thach","thacker","thai","thalia","thames","thanh","thao","tharp","tharpe","thaxton","thayer","thea","theda","theis","theisen","theiss","thelen","thelma","theo","theobald","theodora","theodore","theola","theresa","therese","theresia","theressa","theriault","theriot","therrien","thersa","thi","thibault","thibeault","thibodeau","thibodeaux","thiel","thiele","thielen","thies","thigpen","thom","thoma","thomas","thomasena","thomasina","thomasine","thomason","thomasson","thompkins","thompson","thomsen","thomson","thora","thornberry","thornburg","thorne","thornhill","thornton","thorson","thorton","threadgill","threatt","thresa","throckmorton","thu","thurber","thurman","thurmond","thurston","thuy","tia","tiana","tianna","tibbetts","tibbs","tidwell","tiera","tierney","tierra","tiesha","tifany","tiffaney","tiffani","tiffanie","tiffany","tiffiny","tighe","tijerina","tijuana","tilda","tilghman","tillery","tillett","tilley","tillie","tillis","tillman","tillotson","tilton","timberlake","timika","timm","timmerman","timmons","timms","timothy","tims","tina","tincher","tindall","tindle","tingley","tinisha","tinney","tinsley","tippett","tipton","tirado","tisa","tisdale","tish","tisha","titus","tobar","tobey","tobi","tobias","tobie","tobin","toby","toccara","todd","toi","toland","tolbert","toledo","tolentino","toler","toliver","tolle","tollefson","tolley","tolliver","tolman","tolson","tomas","tomasa","tomblin","tomeka","tomi","tomika","tomiko","tomlin","tomlinson","tommie","tommy","tommye","tomoko","tompkins","tona","tonda","tonette","toni","tonia","tonie","tonisha","tonita","tonja","tony","tonya","toole","tooley","toombs","toomer","toomey","tora","torgerson","tori","torie","toro","torre","torrence","torres","torrey","torrez","torri","torrie","tory","toscano","tosha","toshia","toshiko","toth","totten","toussaint","tova","tovar","towanda","towe","towle","towne","towner","townes","townley","townsend","townsley","toya","tracee","tracey","traci","tracie","tracy","trahan","trainor","tramel","trammell","tran","trang","trantham","trapp","trask","travers","travis","trawick","traylor","traynor","treadway","treadwell","treasa","treece","treena","trejo","tremblay","trena","trent","tresa","tressa","tressie","treva","trevino","trexler","tricia","trigg","trimble","trina","trinh","trinidad","triplett","tripp","trish","trisha","trista","tristan","trombley","trost","trotman","trott","trottier","troup","troutman","trowbridge","troxell","troxler","troy","troyer","truax","trudeau","trudi","trudie","trudy","trueblood","truelove","truesdale","truett","truitt","trujillo","trula","truman","truong","trussell","tsai","tsang","tse","tso","tsosie","tubbs","tucci","tudor","tuggle","tula","tull","tullis","tully","tunnell","tunstall","tupper","turcotte","turgeon","turk","turley","turman","turnage","turnbow","turnbull","turney","turpin","tutt","tuttle","tuyet","twana","twanda","twanna","twigg","twila","twilley","twitty","twombly","twomey","twyla","twyman","tyesha","tyisha","tyler","tyndall","tyner","tynisha","tyra","tyree","tyrrell","tyson","tyus","uhl","ulibarri","ullman","ulloa","ullrich","ulmer","ulrich","ulrike","underhill","ung","unger","unknow","unruh","upchurch","upshaw","upton","urbina","urias","uribe","urquhart","urrutia","ursula","usha","ussery","ute","utley","vaca","vaccaro","vachon","vada","vaden","vadnais","vaillancourt","val","valadez","valarie","valda","valdes","valdez","valdivia","valdovinos","valencia","valene","valente","valenti","valentin","valentina","valentino","valenzuela","valeri","valeria","valerie","valerio","valero","valery","valladares","valle","vallee","vallejo","valles","vallie","valliere","valorie","valrie","valverde","vanatta","vanburen","vanbuskirk","vance","vancleave","vanda","vandenberg","vanderpool","vandiver","vandusen","vandyke","vanegas","vanesa","vanessa","vanetta","vanhook","vanhoose","vanhorn","vanhouten","vania","vanita","vankirk","vanlandingham","vanmeter","vann","vanna","vannatta","vannesa","vanness","vannessa","vannoy","vanover","vanpelt","vanscoy","vansickle","vantassel","vanwinkle","vanzandt","vanzant","varela","varga","vargas","vargo","varnado","varner","varney","vashti","vasiliki","vasques","vasquez","vassallo","vassar","vaughan","vaughn","vaught","vazquez","veach","veasey","veda","veilleux","velarde","velasco","velasquez","velazquez","velda","velez","velia","veliz","vella","velma","veloz","velva","vena","venable","venegas","venessa","venetta","venice","venita","vennie","ventura","veola","vera","verda","verdell","verdie","verdugo","verduzco","vereen","verena","vergara","vergie","verla","verlene","verlie","verline","vermillion","verna","vernell","vernetta","vernia","vernice","vernie","vernita","vernon","verona","veronica","veronika","veronique","verret","versie","vertie","vesta","veta","vetter","vicenta","vick","vickers","vickery","vickey","vicki","vickie","vicky","victoria","victorina","vida","vidal","vidrine","vieira","viera","vierra","vigue","viki","vikki","villagomez","villalba","villalobos","villalpando","villanueva","villareal","villarreal","villasenor","villatoro","villegas","villeneuve","vilma","vincent","vincenza","vinita","vinnie","vinson","violeta","violette","virgen","virgie","virgil","virgina","virginia","visser","vitale","vivan","vivian","viviana","vivien","vivienne","voelker","vogel","vogler","vogt","voight","voigt","volkman","vollmer","volpe","volz","voncile","vonda","vonnie","voorhees","voss","vowell","voyles","vue","vuong","wachter","waddell","wadley","wadsworth","wagner","wagstaff","wahl","wai","waite","waites","wakefield","walcott","walczak","walden","waldman","waldon","waldron","waldrop","waldrup","wallace","wallen","walley","wallin","wallis","walsh","walston","walter","walters","walther","waltman","walton","waltraud","walz","wampler","wanda","waneta","wanetta","wanita","wardell","wardlaw","warfield","wargo","warnke","warnock","warr","warrick","warrington","warwick","washburn","washington","wasson","watanabe","waterhouse","watford","watkins","watson","watters","watterson","wava","wayland","wayman","wayne","weatherby","weatherford","weathersby","weatherspoon","webb","webber","weddle","weeden","weekley","weese","wegner","wei","weidman","weidner","weigand","weigel","weiland","weiler","weimer","weinberg","weinberger","weiner","weinstein","weintraub","weis","weisberg","weise","weiser","weisman","weiss","weissman","weitzel","welborn","weldon","welker","weller","wellington","wellman","welton","welty","wendel","wendell","wendi","wendie","wendling","wendolyn","wendt","wendy","wenger","wenona","wentworth","wentz","wentzel","wenzel","werner","werth","wertz","wescott","wesley","wessel","wessels","wesson","westberry","westbrook","westbrooks","westcott","westerfield","westerman","westfall","westlund","westmoreland","weston","westover","westphal","wethington","wetmore","wetzel","wexler","whalen","whaley","wharton","whatley","wheatley","wheaton","wheelock","whelan","whipple","whisenant","whisenhunt","whisler","whitacre","whitaker","whitcomb","whitehead","whitehouse","whitehurst","whiteley","whiteman","whitesell","whiteside","whitfield","whitford","whitley","whitlock","whitman","whitmer","whitmire","whitmore","whitney","whitson","whitt","whittaker","whitted","whittemore","whitten","whittier","whittington","whitton","whitworth","whorton","whyte","wickham","wicklund","wickman","wideman","widmer","widner","wiegand","wieland","wiener","wiese","wigfall","wiggins","wiggs","wigley","wilbanks","wilber","wilborn","wilbourn","wilbur","wilburn","wilcher","wilcox","wilda","wilde","wildman","wiley","wilfong","wilford","wilhelm","wilhelmina","wilhemina","wilhite","wilhoit","wilk","wilke","wilkens","wilkerson","wilkes","wilkey","wilkie","wilkins","wilkinson","wilks","willa","willaims","willams","willard","wille","willena","willene","willett","willetta","willette","willhite","willia","william","williams","williamson","willie","williemae","williford","willingham","willis","willison","willman","willodean","willoughby","willson","wilma","wilmot","wilmoth","wilson","wilton","wimberly","wimbush","wimer","wimmer","winburn","winchell","winchester","windham","windom","windsor","winegar","winfield","winfrey","wingard","wingate","wingfield","wingo","winifred","winkelman","winkler","winn","winnie","winnifred","winona","winslow","winstead","winston","winton","wirth","wiseman","wisner","wisniewski","witcher","witham","witherspoon","withrow","witkowski","witmer","witt","witte","witten","wittman","wofford","wojcik","wolcott","wolfe","wolfenbarger","wolff","wolfgang","wolford","wolfson","wolter","wolters","womack","wonda","wong","woodall","woodard","woodbury","woodford","woodham","woodley","woodring","woodrow","woodrum","woodson","woodworth","woolard","wooldridge","woolery","wooley","woolf","woolfolk","woolley","woolridge","woosley","wooster","wooten","wooton","worden","worley","worrell","worsham","worsley","wortham","worthen","worthington","wortman","wozniak","wray","wrenn","wulf","wunderlich","wurth","wyant","wyatt","wyche","wyckoff","wylie","wyman","wynell","wynne","wynona","wyrick","wysocki","xenia","xiao","xiomara","xiong","xochitl","xuan","yadira","yaeko","yael","yahaira","yajaira","yamada","yamamoto","yan","yancey","yancy","yandell","yanez","yanira","yarber","yarborough","yarbrough","yasmin","yasmine","yasuko","yates","yazzie","ybarra","yeager","yee","yeh","yelena","yepez","yer","yesenia","yessenia","yetta","yeung","yevette","yi","yim","ying","yingling","yoakum","yockey","yocum","yoder","yoel","yoho","yoko","yolanda","yolande","yolando","yolonda","yong","yoo","yoon","yoshida","yoshie","yoshiko","yost","youlanda","youmans","youngblood","youngman","youngs","yount","younts","yu","yuen","yuette","yuk","yuki","yukiko","yuko","yulanda","yun","yung","yuonne","yuri","yuriko","yvette","yvone","yvonne","zachary","zack","zada","zahn","zaida","zajac","zak","zamarripa","zambrano","zamora","zamudio","zana","zandra","zaragoza","zarate","zavala","zayas","zeigler","zelaya","zelda","zella","zeller","zellers","zelma","zena","zenaida","zendejas","zenia","zenobia","zepeda","zeringue","zetta","zhang","zhao","ziegler","zielinski","zimmerman","zimmermann","zina","zink","zinn","zita","zito","zoe","zofia","zoila","zola","zona","zonia","zook","zora","zoraida","zorn","zuber","zucker","zula","zulema","zulma","zumwalt","zuniga"].join("|")+"))+\\b","gim");class St{constructor(e="PERSON_NAME"){this.replaceWith=e}redact(e){wt.lastIndex=0,kt.lastIndex=0;let t=wt.exec(e);for(;null!==t;){kt.lastIndex=wt.lastIndex;let r=kt.exec(e);if(null!==r&&r.index===wt.lastIndex){let t=null===r[5]?"":r[5];e=e.slice(0,r.index)+this.replaceWith+t+e.slice(r.index+r[0].length)}t=wt.exec(e)}return e=e.replace(vt,"$1"+this.replaceWith)}}const Ct=new RegExp("(\\d+\\s*(\\w+ ){1,2}"+/(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi.source+"(\\s+"+/(apt|bldg|dept|fl|hngr|lot|pier|rm|ste|slip|trlr|unit|#)\.? *[a-z0-9-]+\b/gi.source+")?)|("+/P\.? ?O\.? *Box +\d+/gi.source+")","gi"),xt=Object.freeze(Object.defineProperty({__proto__:null,credentials:/(login( cred(ential)?s| info(rmation)?)?|cred(ential)?s) ?:\s*\S+\s+\/?\s*\S+/gi,creditCardNumber:/\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4}|\d{4}[ -]?\d{6}[ -]?\d{4}\d?/g,digits:/\b\d{4,}\b/g,emailAddress:/([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi,ipAddress:/(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,password:/(pass(word|phrase)?|secret): \S+/gi,phoneNumber:/(\(?\+?[0-9]{1,2}\)?[-. ]?)?(\(?[0-9]{3}\)?|[0-9]{3})[-. ]?([0-9]{3}[-. ]?[0-9]{4}|\b[A-Z0-9]{7}\b)/g,streetAddress:Ct,url:/([^\s:/?#]+):\/\/([^/?#\s]*)([^?#\s]*)(\?([^#\s]*))?(#([^\s]*))?/g,usSocialSecurityNumber:/\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,username:/(user( ?name)?|login): \S+/gi,zipcode:/\b\d{5}\b(-\d{4})?\b/g},Symbol.toStringTag,{value:"Module"}));function It(e){return e.replace(/[A-Z]/g,(e,t)=>0!==t?`_${e.toLowerCase()}`:e.toLowerCase())}class At{constructor({replaceWith:e=It("default").toUpperCase(),regexpPattern:t}){__publicField(this,"regexpMatcher"),__publicField(this,"replaceWith"),this.replaceWith=e,this.regexpMatcher=t}redact(e){return e.replace(this.regexpMatcher,this.replaceWith)}}function Et(e){return void 0!==e.regexpPattern?new At({regexpPattern:e.regexpPattern,replaceWith:e.replaceWith}):e}class Ot{constructor(e){__publicField(this,"childRedactors",[]),__publicField(this,"redact",e=>{for(const t of this.childRedactors)e=t.redact(e);return e}),this.childRedactors=function(e={}){const t=[];e.customRedactors&&e.customRedactors.before&&e.customRedactors.before.map(Et).forEach(e=>t.push(e));for(const r of Object.keys(xt))e.builtInRedactors&&e.builtInRedactors[r]&&!1===e.builtInRedactors[r].enabled||t.push(new At({regexpPattern:xt[r],replaceWith:e.globalReplaceWith||It(r).toUpperCase()}));return e.builtInRedactors&&e.builtInRedactors.names&&!1===e.builtInRedactors.names.enabled||t.push(new St(e.globalReplaceWith)),e.customRedactors&&e.customRedactors.after&&e.customRedactors.after.map(Et).forEach(e=>t.push(e)),t}(e)}}const Rt={before:[{regexpPattern:/\b[A-Z]\d{7}\b/g,replaceWith:"PASSPORT_NUMBER"},{regexpPattern:/(?<=password: )(.*)/gi,replaceWith:"[REDACTED]"}]};function Mt(e){return new Ot({builtInRedactors:{names:{replaceWith:"ANONYMOUS_PERSON"}},customRedactors:Rt}).redact(e)}function jt(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let r;for(;r=t.nextNode();){const e=r.nodeValue,t=Mt(e);e!==t&&(r.nodeValue=t)}!function(e){const t=Array.from(e.querySelectorAll('input[type="password"]'));t.forEach(e=>{e.value="[REDACTED]"})}(e)}async function Nt(e={}){const{maxWaitTime:t=2e3,minStableFrames:r=3,requiredSelectors:n=[]}=e;return new Promise(e=>{const s=performance.now();let i,o=0,a=0;const l=()=>{if(performance.now()-s>t)return cancelAnimationFrame(i),void e();const c=document.documentElement.offsetHeight;if(c!==a||n.length&&!n.every(e=>{const t=document.querySelector(e);if(!t)return!1;const r=t.getBoundingClientRect();return r.width>0&&r.height>0}))o=0;else if(o++,o>=r)return cancelAnimationFrame(i),void e();a=c,i=requestAnimationFrame(l)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{i=requestAnimationFrame(l)},{once:!0}):i=requestAnimationFrame(l)})}var _t,zt=Object.defineProperty,Tt=(e,t,r)=>((e,t,r)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Pt=Object.defineProperty,Lt=(e,t,r)=>((e,t,r)=>t in e?Pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Ft=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ft||{});const Dt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Bt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ut={};function Wt(e){if(Ut[e])return Ut[e];const t=globalThis[e],r=t.prototype,n=e in Dt?Dt[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in Bt?Bt[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return Ut[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?Ut[e]=i:r}catch{return r}}const Vt={};function qt(e,t,r){var n;const s=`${e}.${String(r)}`;if(Vt[s])return Vt[s].call(t);const i=Wt(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(Vt[s]=o,o.call(t)):t[r]}const $t={};function Yt(e,t,r){const n=`${e}.${String(r)}`;if($t[n])return $t[n].bind(t);const s=Wt(e)[r];return"function"!=typeof s?t[r]:($t[n]=s,s.bind(t))}const Zt={childNodes:function(e){return qt("Node",e,"childNodes")},parentNode:function(e){return qt("Node",e,"parentNode")},parentElement:function(e){return qt("Node",e,"parentElement")},textContent:function(e){return qt("Node",e,"textContent")},contains:function(e,t){return Yt("Node",e,"contains")(t)},getRootNode:function(e){return Yt("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?qt("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?qt("Element",e,"shadowRoot"):null},querySelector:function(e,t){return qt("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return qt("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Wt("MutationObserver").constructor}};function Gt(e){return e.nodeType===e.ELEMENT_NODE}function Jt(e){const t=e&&"host"in e&&"mode"in e&&Zt.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Zt.shadowRoot(t)===e)}function Ht(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Xt(e){try{const r=e.rules||e.cssRules;if(!r)return null;let n=e.href;!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href);const s=Array.from(r,e=>Kt(e,n)).join("");return(t=s).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(r){return null}var t}function Kt(e,t){if(function(e){return"styleSheet"in e}(e)){let t;try{t=Xt(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?cr(t,e.styleSheet.href):t}{let r=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(r=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(r)),t?cr(r,t):r}}let Qt=class{constructor(){Lt(this,"idNodeMap",new Map),Lt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function er({element:e,maskInputOptions:t,tagName:r,type:n,value:s,maskInputFn:i}){let o=s||"";const a=n&&tr(n);return(t[r.toLowerCase()]||a&&t[a])&&(o=i?i(o,e):"*".repeat(o.length)),o}function tr(e){return e.toLowerCase()}const rr="__rrweb_original__";function nr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?tr(t):null}function sr(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(Hk){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==n?void 0:n[1])??null}const ir=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,or=/^(?:[a-z+]+:)?\/\//i,ar=/^www\..*/i,lr=/^(data:)([^,]*),(.*)/i;function cr(e,t){return(e||"").replace(ir,(e,r,n,s,i,o)=>{const a=n||i||o,l=r||s||"";if(!a)return e;if(or.test(a)||ar.test(a))return`url(${l}${a}${l})`;if(lr.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${l})`;const c=t.split("/"),h=a.split("/");c.pop();for(const t of h)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${l}${c.join("/")}${l})`})}function hr(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function ur(e,t){return function(e,t){const r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&"string"==typeof e){const t=hr(e);for(let s=1;s<r.length;s++)if(r[s].textContent&&"string"==typeof r[s].textContent){const i=hr(r[s].textContent);for(let r=3;r<i.length;r++){const s=i.substring(0,r);if(2===t.split(s).length){const r=t.indexOf(s);for(let t=r;t<e.length;t++)if(hr(e.substring(0,t)).length===r){n.push(e.substring(0,t)),e=e.substring(t);break}break}}}}return n.push(e),n}(e,t).join("/* rr_split */")}let dr=1;const pr=new RegExp("[^a-z0-9-_:]");function mr(){return dr++}let fr,gr;const yr=/^[^ \t\n\r\u000c]+/,br=/^[, \t\n\r\u000c]+/;const wr=new WeakMap;function kr(e,t){return t&&""!==t.trim()?Sr(e,t):t}function vr(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Sr(e,t){let r=wr.get(e);if(r||(r=e.createElement("a"),wr.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function Cr(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?kr(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const s=e.exec(t.substring(r));return s?(n=s[0],r+=n.length,n):""}const s=[];for(;n(br),!(r>=t.length);){let i=n(yr);if(","===i.slice(-1))i=kr(e,i.substring(0,i.length-1)),s.push(i);else{let n="";i=kr(e,i);let o=!1;for(;;){const e=t.charAt(r);if(""===e){s.push((i+n).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){r+=1,s.push((i+n).trim());break}"("===e&&(o=!0)}n+=e,r+=1}}}return s.join(", ")}(e,n):"style"===r?cr(n,Sr(e)):"object"===t&&"data"===r?kr(e,n):n:kr(e,n):n}function xr(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ir(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ir(Zt.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&Ir(Zt.parentNode(e),t,r)}function Ar(e,t,r,n){let s;if(Gt(e)){if(s=e,!Zt.childNodes(s).length)return!1}else{if(null===Zt.parentElement(e))return!1;s=Zt.parentElement(e)}try{if("string"==typeof t){if(n){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(Ir(s,t,n))return!0;if(r)if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}catch(i){}return!1}function Er(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:o,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:h,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,y=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ft.Document,childNodes:[],compatMode:e.compatMode}:{type:Ft.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ft.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:s,inlineStylesheet:i,maskInputOptions:o={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:h,keepIframeSrcFn:u,newlyAddedElement:d=!1,rootId:p}=t,m=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(n){}return!1}(e,n,s),f=function(e){if(e instanceof HTMLFormElement)return"form";const t=tr(e.tagName);return pr.test(t)?"div":t}(e);let g={};const y=e.attributes.length;for(let k=0;k<y;k++){const t=e.attributes[k];xr(f,t.name,t.value)||(g[t.name]=Cr(r,f,tr(t.name),t.value))}if("link"===f&&i){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=Xt(t)),n&&(delete g.rel,delete g.href,g._cssText=n)}if("style"===f&&e.sheet){let t=Xt(e.sheet);t&&(e.childNodes.length>1&&(t=ur(t,e)),g._cssText=t)}if("input"===f||"textarea"===f||"select"===f){const t=e.value,r=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=er({element:e,type:nr(e),tagName:f,value:t,maskInputOptions:o,maskInputFn:a}):r&&(g.checked=r)}"option"===f&&(e.selected&&!o.select?g.selected=!0:delete g.selected);"dialog"===f&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===f&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const s=t.getImageData,i=rr in s?s[rr]:s;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===f&&c){fr||(fr=r.createElement("canvas"),gr=fr.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{fr.width=t.naturalWidth,fr.height=t.naturalHeight,gr.drawImage(t,0,0),g.rr_dataURL=fr.toDataURL(l.type,l.quality)}catch(Hk){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${Hk}`)}"anonymous"===t.crossOrigin&&(s?g.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"===f||"video"===f){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop));if(m){const{width:t,height:r}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==f||u(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(f)&&(b=!0)}catch(w){}return{type:Ft.Element,tagName:f,attributes:g,childNodes:[],isSVG:vr(e)||void 0,needBlock:m,rootId:p,isCustom:b}}(e,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:h,dataURLOptions:u,inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f,rootId:y});case e.TEXT_NODE:return function(e,t){const{needsMask:r,maskTextFn:n,rootId:s,cssCaptured:i}=t,o=Zt.parentNode(e),a=o&&o.tagName;let l="";const c="STYLE"===a||void 0,h="SCRIPT"===a||void 0;h?l="SCRIPT_PLACEHOLDER":i||(l=Zt.textContent(e),c&&l&&(l=cr(l,Sr(t.doc))));!c&&!h&&l&&r&&(l=n?n(l,Zt.parentElement(e)):l.replace(/[\S]/g,"*"));return{type:Ft.Text,textContent:l||"",rootId:s}}(e,{doc:r,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:Ft.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Ft.Comment,textContent:Zt.textContent(e)||"",rootId:y};default:return!1}}function Or(e){return null==e?"":e.toLowerCase()}function Rr(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,maskTextClass:o,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:h={},maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:x=!1}=t;let{needsMask:I}=t,{preserveWhiteSpace:A=!0}=t;if(!I){I=Ar(e,o,a,void 0===I)}const E=Er(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:x});if(!E)return console.warn(e,"not serialized"),null;let O;O=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Ft.Comment)return!0;if(e.type===Ft.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===sr(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Or(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Or(e.attributes.name)||"icon"===Or(e.attributes.rel)||"apple-touch-icon"===Or(e.attributes.rel)||"shortcut icon"===Or(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Or(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Or(e.attributes.property).match(/^(og|twitter|fb):/)||Or(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Or(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Or(e.attributes.name)||"googlebot"===Or(e.attributes.name)||"bingbot"===Or(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Or(e.attributes.name)||"generator"===Or(e.attributes.name)||"framework"===Or(e.attributes.name)||"publisher"===Or(e.attributes.name)||"progid"===Or(e.attributes.name)||Or(e.attributes.property).match(/^article:/)||Or(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Or(e.attributes.name)||"yandex-verification"===Or(e.attributes.name)||"csrf-token"===Or(e.attributes.name)||"p:domain_verify"===Or(e.attributes.name)||"verify-v1"===Or(e.attributes.name)||"verification"===Or(e.attributes.name)||"shopify-checkout-api-token"===Or(e.attributes.name)))return!0}}return!1}(E,p)||!A&&E.type===Ft.Text&&!E.textContent.replace(/^\s+|\s+$/gm,"").length?-2:mr();const R=Object.assign(E,{id:O});if(n.add(e,R),-2===O)return null;y&&y(e);let M=!l;if(R.type===Ft.Element){M=M&&!R.needBlock,delete R.needBlock;const t=Zt.shadowRoot(e);t&&Ht(t)&&(R.isShadowHost=!0)}if((R.type===Ft.Document||R.type===Ft.Element)&&M){p.headWhitespace&&R.type===Ft.Element&&"head"===R.tagName&&(A=!1);const t={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S,cssCaptured:!1};if(R.type===Ft.Element&&"textarea"===R.tagName&&void 0!==R.attributes.value);else{R.type===Ft.Element&&void 0!==R.attributes._cssText&&"string"==typeof R.attributes._cssText&&(t.cssCaptured=!0);for(const r of Array.from(Zt.childNodes(e))){const e=Rr(r,t);e&&R.childNodes.push(e)}}let C=null;if(Gt(e)&&(C=Zt.shadowRoot(e)))for(const e of Array.from(Zt.childNodes(C))){const r=Rr(e,t);r&&(Ht(C)&&(r.isShadow=!0),R.childNodes.push(r))}}const j=Zt.parentNode(e);return j&&Jt(j)&&Ht(j)&&(R.isShadow=!0),R.type===Ft.Element&&"iframe"===R.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let s,i=!1;try{s=n.document.readyState}catch(a){return}if("complete"!==s){const n=setTimeout(()=>{i||(t(),i=!0)},r);return void e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}const o="about:blank";if(n.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument;if(t&&b){const r=Rr(t,{doc:t,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});r&&b(e,r)}},w),R.type===Ft.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===sr(R.attributes.href))&&function(e,t,r){let n,s=!1;try{n=e.sheet}catch(o){return}if(n)return;const i=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),s=!0,t()})}(e,()=>{if(k){const t=Rr(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:I,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:p,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:k,stylesheetLoadTimeout:v,keepIframeSrcFn:S});t&&k(e,t)}},v),R}function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Nr={exports:{}},_r=String,zr=function(){return{isColorSupported:!1,reset:_r,bold:_r,dim:_r,italic:_r,underline:_r,inverse:_r,hidden:_r,strikethrough:_r,black:_r,red:_r,green:_r,yellow:_r,blue:_r,magenta:_r,cyan:_r,white:_r,gray:_r,bgBlack:_r,bgRed:_r,bgGreen:_r,bgYellow:_r,bgBlue:_r,bgMagenta:_r,bgCyan:_r,bgWhite:_r}};Nr.exports=zr(),Nr.exports.createColors=zr;var Tr=Nr.exports;const Pr=jr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Lr=Tr,Fr=Pr,Dr=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Lr.isColorSupported),Fr&&e&&(t=Fr(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Lr.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Br=Dr;Dr.default=Dr;var Ur={};Ur.isClean=Symbol("isClean"),Ur.my=Symbol("my");const Wr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Vr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Wr[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Wr[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var qr=Vr;Vr.default=Vr;let $r=qr;function Yr(e,t){new $r(t).stringify(e)}var Zr=Yr;Yr.default=Yr;let{isClean:Gr,my:Jr}=Ur,Hr=Br,Xr=qr,Kr=Zr;function Qr(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Qr(e,r)):("object"===i&&null!==s&&(s=Qr(s)),r[n]=s)}return r}let en=class{constructor(e={}){this.raws={},this[Gr]=!1,this[Jr]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Qr(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Hr(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Gr]){this[Gr]=!1;let e=this;for(;e=e.parent;)e[Gr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Xr).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Kr){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var tn=en;en.default=en;let rn=tn,nn=class extends rn{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var sn=nn;nn.default=nn;var on={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=Pr,{existsSync:cn,readFileSync:hn}=Pr,{dirname:un,join:dn}=Pr;let pn=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=un(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=un(e),cn(e))return this.mapFile=e,hn(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof an)return ln.fromSourceMap(t).toString();if(t instanceof ln)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=dn(un(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var mn=pn;pn.default=pn;let{SourceMapConsumer:fn,SourceMapGenerator:gn}=Pr,{fileURLToPath:yn,pathToFileURL:bn}=Pr,{isAbsolute:wn,resolve:kn}=Pr,{nanoid:vn}=on,Sn=Pr,Cn=Br,xn=mn,In=Symbol("fromOffsetCache"),An=Boolean(fn&&gn),En=Boolean(kn&&wn),On=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!En||/^\w+:\/\//.test(t.from)||wn(t.from)?this.file=t.from:this.file=kn(t.from)),En&&An){let e=new xn(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+vn(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new Cn(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new Cn(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(bn&&(s.input.url=bn(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[In])r=this[In];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[In]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:kn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=wn(a.source)?bn(a.source):new URL(a.source,this.map.consumer().sourceRoot||bn(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!yn)throw new Error("file: protocol is not available in this PostCSS build");l.file=yn(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 Rn=On;On.default=On,Sn&&Sn.registerInput&&Sn.registerInput(On);let{SourceMapConsumer:Mn,SourceMapGenerator:jn}=Pr,{dirname:Nn,relative:_n,resolve:zn,sep:Tn}=Pr,{pathToFileURL:Pn}=Pr,Ln=Rn,Fn=Boolean(Mn&&jn),Dn=Boolean(Nn&&zn&&_n&&Tn);var Bn=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||Nn(e.file);!1===this.mapOpts.sourcesContent?(t=new Mn(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Dn&&Fn&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new jn({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 jn({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Nn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Nn(zn(r,this.mapOpts.annotation)));let n=_n(r,e);return this.memoizedPaths.set(e,n),n}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 Ln(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(Pn){let t=Pn(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===Tn&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Un=tn,Wn=class extends Un{constructor(e){super(e),this.type="comment"}};var Vn=Wn;Wn.default=Wn;let qn,$n,Yn,Zn,{isClean:Gn,my:Jn}=Ur,Hn=sn,Xn=Vn,Kn=tn;function Qn(e){return e.map(e=>(e.nodes&&(e.nodes=Qn(e.nodes)),delete e.source,e))}function es(e){if(e[Gn]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)es(t)}let ts=class e extends Kn{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Qn(qn(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Hn(t)]}else if(t.selector)t=[new $n(t)];else if(t.name)t=[new Yn(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Xn(t)]}return t.map(t=>(t[Jn]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Gn]&&es(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};ts.registerParse=e=>{qn=e},ts.registerRule=e=>{$n=e},ts.registerAtRule=e=>{Yn=e},ts.registerRoot=e=>{Zn=e};var rs=ts;ts.default=ts,ts.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Yn.prototype):"rule"===e.type?Object.setPrototypeOf(e,$n.prototype):"decl"===e.type?Object.setPrototypeOf(e,Hn.prototype):"comment"===e.type?Object.setPrototypeOf(e,Xn.prototype):"root"===e.type&&Object.setPrototypeOf(e,Zn.prototype),e[Jn]=!0,e.nodes&&e.nodes.forEach(e=>{ts.rebuild(e)})};let ns,ss,is=rs,os=class extends is{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ns(new ss,this,e).stringify()}};os.registerLazyResult=e=>{ns=e},os.registerProcessor=e=>{ss=e};var as=os;os.default=os;let ls={};var cs=function(e){ls[e]||(ls[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let hs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var us=hs;hs.default=hs;let ds=us,ps=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new ds(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var ms=ps;ps.default=ps;const fs="'".charCodeAt(0),gs='"'.charCodeAt(0),ys="\\".charCodeAt(0),bs="/".charCodeAt(0),ws="\n".charCodeAt(0),ks=" ".charCodeAt(0),vs="\f".charCodeAt(0),Ss="\t".charCodeAt(0),Cs="\r".charCodeAt(0),xs="[".charCodeAt(0),Is="]".charCodeAt(0),As="(".charCodeAt(0),Es=")".charCodeAt(0),Os="{".charCodeAt(0),Rs="}".charCodeAt(0),Ms=";".charCodeAt(0),js="*".charCodeAt(0),Ns=":".charCodeAt(0),_s="@".charCodeAt(0),zs=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ps=/.[\r\n"'(/\\]/,Ls=/[\da-f]/i;let Fs=rs,Ds=class extends Fs{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 Bs=Ds;Ds.default=Ds,Fs.registerAtRule(Ds);let Us,Ws,Vs=rs,qs=class extends Vs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Us(new Ws,this,e).stringify()}};qs.registerLazyResult=e=>{Us=e},qs.registerProcessor=e=>{Ws=e};var $s=qs;qs.default=qs,Vs.registerRoot(qs);let Ys={comma:e=>Ys.split(e,[","],!0),space:e=>Ys.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Zs=Ys;Ys.default=Ys;let Gs=rs,Js=Zs,Hs=class extends Gs{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Js.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Xs=Hs;Hs.default=Hs,Gs.registerRule(Hs);let Ks=sn,Qs=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case ws:case ks:case Ss:case Cs:case vs:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===ks||r===ws||r===Ss||r===Cs||r===vs);u=["space",d.slice(f,n)],f=n-1;break;case xs:case Is:case Os:case Rs:case Ns:case Ms:case Es:{let e=String.fromCharCode(r);u=[e,e,f];break}case As:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==fs&&h!==gs&&h!==ks&&h!==ws&&h!==Ss&&h!==vs&&h!==Cs){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===ys;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||Ps.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case fs:case gs:s=r===fs?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===ys;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case _s:zs.lastIndex=f+1,zs.test(d),n=0===zs.lastIndex?d.length-1:zs.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case ys:for(n=f,o=!0;d.charCodeAt(n+1)===ys;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==bs&&r!==ks&&r!==ws&&r!==Ss&&r!==Cs&&r!==vs&&(n+=1,Ls.test(d.charAt(n)))){for(;Ls.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===ks&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===bs&&d.charCodeAt(f+1)===js?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Ts.lastIndex=f+1,Ts.test(d),n=0===Ts.lastIndex?d.length-1:Ts.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},ei=Vn,ti=Bs,ri=$s,ni=Xs;const si={empty:!0,space:!0};let ii=rs,oi=class{constructor(e){this.input=e,this.root=new ri,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new ti;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new ei;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Qs(this.input)}decl(e,t){let r=new Ks;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new ni;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",si[a]||si[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new ni;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},ai=Rn;function li(e,t){let r=new ai(e,t),n=new oi(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var ci=li;li.default=li,ii.registerParse(li);let{isClean:hi,my:ui}=Ur,di=Bn,pi=Zr,mi=rs,fi=as,gi=cs,yi=ms,bi=ci,wi=$s;const ki={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vi={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},Si={Once:!0,postcssPlugin:!0,prepare:!0};function Ci(e){return"object"==typeof e&&"function"==typeof e.then}function xi(e){let t=!1,r=ki[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ii(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:xi(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ai(e){return e[hi]=!1,e.nodes&&e.nodes.forEach(e=>Ai(e)),e}let Ei={},Oi=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof yi)s=Ai(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=bi;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[ui]&&mi.rebuild(s)}else s=Ai(r);this.result=new yi(t,s,n),this.helpers={...Ei,postcss:Ei,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!vi[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Si[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(Ci(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hi];){e[hi]=!0;let r=[Ii(e)];for(;r.length>0;){let e=this.visitTick(r);if(Ci(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return Ci(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=pi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new di(t,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 e of this.plugins){if(Ci(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hi];)e[hi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||gi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ci(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[hi])return n[hi]=!0,void e.push(Ii(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[hi]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[hi]=!0;let t=xi(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[hi]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};Oi.registerPostcss=e=>{Ei=e};var Ri=Oi;Oi.default=Oi,wi.registerLazyResult(Oi),fi.registerLazyResult(Oi);let Mi=Bn,ji=Zr,Ni=cs,_i=ci;const zi=ms;let Ti=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=ji;this.result=new zi(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new Mi(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||Ni("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=_i;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Pi=Ti;Ti.default=Ti;let Li=Pi,Fi=Ri,Di=as,Bi=$s,Ui=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Fi(this,e,t):new Li(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Wi=Ui;Ui.default=Ui,Bi.registerProcessor(Ui),Di.registerProcessor(Ui);let Vi=sn,qi=mn,$i=Vn,Yi=Bs,Zi=Rn,Gi=$s,Ji=Xs;function Hi(e,t){if(Array.isArray(e))return e.map(e=>Hi(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Zi.prototype};r.map&&(r.map={...r.map,__proto__:qi.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Hi(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Gi(n);if("decl"===n.type)return new Vi(n);if("rule"===n.type)return new Ji(n);if("comment"===n.type)return new $i(n);if("atrule"===n.type)return new Yi(n);throw new Error("Unknown node type: "+e.type)}var Xi=Hi;Hi.default=Hi;let Ki=Br,Qi=sn,eo=Ri,to=rs,ro=Wi,no=Zr,so=Xi,io=as,oo=us,ao=Vn,lo=Bs,co=ms,ho=Rn,uo=ci,po=Zs,mo=Xs,fo=$s,go=tn;function yo(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ro(e)}yo.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new ro).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return yo([s(r)]).process(e,t)},s},yo.stringify=no,yo.parse=uo,yo.fromJSON=so,yo.list=po,yo.comment=e=>new ao(e),yo.atRule=e=>new lo(e),yo.decl=e=>new Qi(e),yo.rule=e=>new mo(e),yo.root=e=>new fo(e),yo.document=e=>new io(e),yo.CssSyntaxError=Ki,yo.Declaration=Qi,yo.Container=to,yo.Processor=ro,yo.Document=io,yo.Comment=ao,yo.Warning=oo,yo.AtRule=lo,yo.Result=co,yo.Input=ho,yo.Rule=mo,yo.Root=fo,yo.Node=go,eo.registerPostcss(yo);var bo=yo;yo.default=yo;const wo=Mr(bo);wo.stringify,wo.fromJSON,wo.plugin,wo.parse,wo.list,wo.document,wo.comment,wo.atRule,wo.rule,wo.decl,wo.root,wo.CssSyntaxError,wo.Declaration,wo.Container,wo.Processor,wo.Document,wo.Comment,wo.Warning,wo.AtRule,wo.Result,wo.Input,wo.Rule,wo.Root,wo.Node;var ko=Object.defineProperty,vo=(e,t,r)=>((e,t,r)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Co(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var xo={exports:{}},Io=String,Ao=function(){return{isColorSupported:!1,reset:Io,bold:Io,dim:Io,italic:Io,underline:Io,inverse:Io,hidden:Io,strikethrough:Io,black:Io,red:Io,green:Io,yellow:Io,blue:Io,magenta:Io,cyan:Io,white:Io,gray:Io,bgBlack:Io,bgRed:Io,bgGreen:Io,bgYellow:Io,bgBlue:Io,bgMagenta:Io,bgCyan:Io,bgWhite:Io}};xo.exports=Ao(),xo.exports.createColors=Ao;var Eo=xo.exports;const Oo=Co(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Ro=Eo,Mo=Oo,jo=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Ro.isColorSupported),Mo&&e&&(t=Mo(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Ro.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var No=jo;jo.default=jo;var _o={};_o.isClean=Symbol("isClean"),_o.my=Symbol("my");const zo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let To=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return zo[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=zo[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Po=To;To.default=To;let Lo=Po;function Fo(e,t){new Lo(t).stringify(e)}var Do=Fo;Fo.default=Fo;let{isClean:Bo,my:Uo}=_o,Wo=No,Vo=Po,qo=Do;function $o(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>$o(e,r)):("object"===i&&null!==s&&(s=$o(s)),r[n]=s)}return r}let Yo=class{constructor(e={}){this.raws={},this[Bo]=!1,this[Uo]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=$o(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Wo(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Bo]){this[Bo]=!1;let e=this;for(;e=e.parent;)e[Bo]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Vo).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qo){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Zo=Yo;Yo.default=Yo;let Go=Zo,Jo=class extends Go{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Ho=Jo;Jo.default=Jo;var Xo={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Ko,SourceMapGenerator:Qo}=Oo,{existsSync:ea,readFileSync:ta}=Oo,{dirname:ra,join:na}=Oo;let sa=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ra(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ko(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=ra(e),ea(e))return this.mapFile=e,ta(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Ko)return Qo.fromSourceMap(t).toString();if(t instanceof Qo)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=na(ra(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ia=sa;sa.default=sa;let{SourceMapConsumer:oa,SourceMapGenerator:aa}=Oo,{fileURLToPath:la,pathToFileURL:ca}=Oo,{isAbsolute:ha,resolve:ua}=Oo,{nanoid:da}=Xo,pa=Oo,ma=No,fa=ia,ga=Symbol("fromOffsetCache"),ya=Boolean(oa&&aa),ba=Boolean(ua&&ha),wa=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ba||/^\w+:\/\//.test(t.from)||ha(t.from)?this.file=t.from:this.file=ua(t.from)),ba&&ya){let e=new fa(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+da(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new ma(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new ma(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(ca&&(s.input.url=ca(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[ga])r=this[ga];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[ga]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ua(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=ha(a.source)?ca(a.source):new URL(a.source,this.map.consumer().sourceRoot||ca(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!la)throw new Error("file: protocol is not available in this PostCSS build");l.file=la(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 ka=wa;wa.default=wa,pa&&pa.registerInput&&pa.registerInput(wa);let{SourceMapConsumer:va,SourceMapGenerator:Sa}=Oo,{dirname:Ca,relative:xa,resolve:Ia,sep:Aa}=Oo,{pathToFileURL:Ea}=Oo,Oa=ka,Ra=Boolean(va&&Sa),Ma=Boolean(Ca&&Ia&&xa&&Aa);var ja=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||Ca(e.file);!1===this.mapOpts.sourcesContent?(t=new va(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ma&&Ra&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Sa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Sa({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 Sa({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ca(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ca(Ia(r,this.mapOpts.annotation)));let n=xa(r,e);return this.memoizedPaths.set(e,n),n}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 Oa(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(Ea){let t=Ea(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===Aa&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Na=Zo,_a=class extends Na{constructor(e){super(e),this.type="comment"}};var za=_a;_a.default=_a;let Ta,Pa,La,Fa,{isClean:Da,my:Ba}=_o,Ua=Ho,Wa=za,Va=Zo;function qa(e){return e.map(e=>(e.nodes&&(e.nodes=qa(e.nodes)),delete e.source,e))}function $a(e){if(e[Da]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)$a(t)}let Ya=class e extends Va{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=qa(Ta(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ua(t)]}else if(t.selector)t=[new Pa(t)];else if(t.name)t=[new La(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Wa(t)]}return t.map(t=>(t[Ba]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Da]&&$a(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};Ya.registerParse=e=>{Ta=e},Ya.registerRule=e=>{Pa=e},Ya.registerAtRule=e=>{La=e},Ya.registerRoot=e=>{Fa=e};var Za=Ya;Ya.default=Ya,Ya.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,La.prototype):"rule"===e.type?Object.setPrototypeOf(e,Pa.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ua.prototype):"comment"===e.type?Object.setPrototypeOf(e,Wa.prototype):"root"===e.type&&Object.setPrototypeOf(e,Fa.prototype),e[Ba]=!0,e.nodes&&e.nodes.forEach(e=>{Ya.rebuild(e)})};let Ga,Ja,Ha=Za,Xa=class extends Ha{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ga(new Ja,this,e).stringify()}};Xa.registerLazyResult=e=>{Ga=e},Xa.registerProcessor=e=>{Ja=e};var Ka=Xa;Xa.default=Xa;let Qa={};var el=function(e){Qa[e]||(Qa[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let tl=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var rl=tl;tl.default=tl;let nl=rl,sl=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new nl(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var il=sl;sl.default=sl;const ol="'".charCodeAt(0),al='"'.charCodeAt(0),ll="\\".charCodeAt(0),cl="/".charCodeAt(0),hl="\n".charCodeAt(0),ul=" ".charCodeAt(0),dl="\f".charCodeAt(0),pl="\t".charCodeAt(0),ml="\r".charCodeAt(0),fl="[".charCodeAt(0),gl="]".charCodeAt(0),yl="(".charCodeAt(0),bl=")".charCodeAt(0),wl="{".charCodeAt(0),kl="}".charCodeAt(0),vl=";".charCodeAt(0),Sl="*".charCodeAt(0),Cl=":".charCodeAt(0),xl="@".charCodeAt(0),Il=/[\t\n\f\r "#'()/;[\\\]{}]/g,Al=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,El=/.[\r\n"'(/\\]/,Ol=/[\da-f]/i;let Rl=Za,Ml=class extends Rl{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 jl=Ml;Ml.default=Ml,Rl.registerAtRule(Ml);let Nl,_l,zl=Za,Tl=class extends zl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Nl(new _l,this,e).stringify()}};Tl.registerLazyResult=e=>{Nl=e},Tl.registerProcessor=e=>{_l=e};var Pl=Tl;Tl.default=Tl,zl.registerRoot(Tl);let Ll={comma:e=>Ll.split(e,[","],!0),space:e=>Ll.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Fl=Ll;Ll.default=Ll;let Dl=Za,Bl=Fl,Ul=class extends Dl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Bl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Wl=Ul;Ul.default=Ul,Dl.registerRule(Ul);let Vl=Ho,ql=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case hl:case ul:case pl:case ml:case dl:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===ul||r===hl||r===pl||r===ml||r===dl);u=["space",d.slice(f,n)],f=n-1;break;case fl:case gl:case wl:case kl:case Cl:case vl:case bl:{let e=String.fromCharCode(r);u=[e,e,f];break}case yl:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==ol&&h!==al&&h!==ul&&h!==hl&&h!==pl&&h!==dl&&h!==ml){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===ll;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||El.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case ol:case al:s=r===ol?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===ll;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case xl:Il.lastIndex=f+1,Il.test(d),n=0===Il.lastIndex?d.length-1:Il.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case ll:for(n=f,o=!0;d.charCodeAt(n+1)===ll;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==cl&&r!==ul&&r!==hl&&r!==pl&&r!==ml&&r!==dl&&(n+=1,Ol.test(d.charAt(n)))){for(;Ol.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===ul&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===cl&&d.charCodeAt(f+1)===Sl?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Al.lastIndex=f+1,Al.test(d),n=0===Al.lastIndex?d.length-1:Al.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},$l=za,Yl=jl,Zl=Pl,Gl=Wl;const Jl={empty:!0,space:!0};let Hl=Za,Xl=class{constructor(e){this.input=e,this.root=new Zl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new Yl;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new $l;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=ql(this.input)}decl(e,t){let r=new Vl;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Gl;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Jl[a]||Jl[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Gl;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Kl=ka;function Ql(e,t){let r=new Kl(e,t),n=new Xl(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var ec=Ql;Ql.default=Ql,Hl.registerParse(Ql);let{isClean:tc,my:rc}=_o,nc=ja,sc=Do,ic=Za,oc=Ka,ac=el,lc=il,cc=ec,hc=Pl;const uc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},dc={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},pc={Once:!0,postcssPlugin:!0,prepare:!0};function mc(e){return"object"==typeof e&&"function"==typeof e.then}function fc(e){let t=!1,r=uc[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function gc(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:fc(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function yc(e){return e[tc]=!1,e.nodes&&e.nodes.forEach(e=>yc(e)),e}let bc={},wc=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof lc)s=yc(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=cc;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[rc]&&ic.rebuild(s)}else s=yc(r);this.result=new lc(t,s,n),this.helpers={...bc,postcss:bc,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!dc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!pc[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(mc(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tc];){e[tc]=!0;let r=[gc(e)];for(;r.length>0;){let e=this.visitTick(r);if(mc(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return mc(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=sc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new nc(t,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 e of this.plugins){if(mc(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tc];)e[tc]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||ac("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(mc(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[tc])return n[tc]=!0,void e.push(gc(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[tc]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[tc]=!0;let t=fc(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[tc]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};wc.registerPostcss=e=>{bc=e};var kc=wc;wc.default=wc,hc.registerLazyResult(wc),oc.registerLazyResult(wc);let vc=ja,Sc=Do,Cc=el,xc=ec;const Ic=il;let Ac=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=Sc;this.result=new Ic(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new vc(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||Cc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=xc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ec=Ac;Ac.default=Ac;let Oc=Ec,Rc=kc,Mc=Ka,jc=Pl,Nc=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Rc(this,e,t):new Oc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var _c=Nc;Nc.default=Nc,jc.registerProcessor(Nc),Mc.registerProcessor(Nc);let zc=Ho,Tc=ia,Pc=za,Lc=jl,Fc=ka,Dc=Pl,Bc=Wl;function Uc(e,t){if(Array.isArray(e))return e.map(e=>Uc(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Fc.prototype};r.map&&(r.map={...r.map,__proto__:Tc.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Uc(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Dc(n);if("decl"===n.type)return new zc(n);if("rule"===n.type)return new Bc(n);if("comment"===n.type)return new Pc(n);if("atrule"===n.type)return new Lc(n);throw new Error("Unknown node type: "+e.type)}var Wc=Uc;Uc.default=Uc;let Vc=No,qc=Ho,$c=kc,Yc=Za,Zc=_c,Gc=Do,Jc=Wc,Hc=Ka,Xc=rl,Kc=za,Qc=jl,eh=il,th=ka,rh=ec,nh=Fl,sh=Wl,ih=Pl,oh=Zo;function ah(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Zc(e)}ah.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Zc).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return ah([s(r)]).process(e,t)},s},ah.stringify=Gc,ah.parse=rh,ah.fromJSON=Jc,ah.list=nh,ah.comment=e=>new Kc(e),ah.atRule=e=>new Qc(e),ah.decl=e=>new qc(e),ah.rule=e=>new sh(e),ah.root=e=>new ih(e),ah.document=e=>new Hc(e),ah.CssSyntaxError=Vc,ah.Declaration=qc,ah.Container=Yc,ah.Processor=Zc,ah.Document=Hc,ah.Comment=Kc,ah.Warning=Xc,ah.AtRule=Qc,ah.Result=eh,ah.Input=th,ah.Rule=sh,ah.Root=ih,ah.Node=oh,$c.registerPostcss(ah);var lh=ah;ah.default=ah;const ch=So(lh);ch.stringify,ch.fromJSON,ch.plugin,ch.parse,ch.list,ch.document,ch.comment,ch.atRule,ch.rule,ch.decl,ch.root,ch.CssSyntaxError,ch.Declaration,ch.Container,ch.Processor,ch.Document,ch.Comment,ch.Warning,ch.AtRule,ch.Result,ch.Input,ch.Rule,ch.Root,ch.Node;let hh=class e{constructor(...e){vo(this,"parentElement",null),vo(this,"parentNode",null),vo(this,"ownerDocument"),vo(this,"firstChild",null),vo(this,"lastChild",null),vo(this,"previousSibling",null),vo(this,"nextSibling",null),vo(this,"ELEMENT_NODE",1),vo(this,"TEXT_NODE",3),vo(this,"nodeType"),vo(this,"nodeName"),vo(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};const uh={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},dh={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ph={};function mh(e){if(ph[e])return ph[e];const t=globalThis[e],r=t.prototype,n=e in uh?uh[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in dh?dh[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return ph[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?ph[e]=i:r}catch{return r}}const fh={};function gh(e,t,r){var n;const s=`${e}.${String(r)}`;if(fh[s])return fh[s].call(t);const i=mh(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(fh[s]=o,o.call(t)):t[r]}const yh={};function bh(e,t,r){const n=`${e}.${String(r)}`;if(yh[n])return yh[n].bind(t);const s=mh(e)[r];return"function"!=typeof s?t[r]:(yh[n]=s,s.bind(t))}function wh(){return mh("MutationObserver").constructor}const kh={childNodes:function(e){return gh("Node",e,"childNodes")},parentNode:function(e){return gh("Node",e,"parentNode")},parentElement:function(e){return gh("Node",e,"parentElement")},textContent:function(e){return gh("Node",e,"textContent")},contains:function(e,t){return bh("Node",e,"contains")(t)},getRootNode:function(e){return bh("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?gh("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?gh("Element",e,"shadowRoot"):null},querySelector:function(e,t){return gh("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return gh("Element",e,"querySelectorAll")(t)},mutationObserver:wh};function vh(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Sh="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Ch={map:{},getId:()=>(console.error(Sh),-1),getNode:()=>(console.error(Sh),null),removeNodeFromMap(){console.error(Sh)},has:()=>(console.error(Sh),!1),reset(){console.error(Sh)}};function xh(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}}function Ih(e,t,r,n,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>Ih(e,t,i||{},!0)}function Ah(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ch=new Proxy(Ch,{get:(e,t,r)=>("map"===t&&console.error(Sh),Reflect.get(e,t,r))}));let Eh=Date.now;function Oh(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=kh.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=kh.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}}function Rh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function jh(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:kh.parentElement(e)}function Nh(e,t,r,n){if(!e)return!1;const s=jh(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(Ir(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1}function _h(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function zh(e,t){if(Jt(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const n=kh.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||zh(n,t))}function Th(e){return Boolean(e.changedTouches)}function Ph(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Lh(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Fh(e){return!!e&&(e instanceof hh&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(kh.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Eh=()=>(new Date).getTime());let Dh=class{constructor(){Tt(this,"id",1),Tt(this,"styleIDMap",new WeakMap),Tt(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Bh(e){var t;let r=null;return"getRootNode"in e&&(null==(t=kh.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&kh.host(kh.getRootNode(e))&&(r=kh.host(kh.getRootNode(e))),r}function Uh(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Bh(r);)r=t;return r}(e);return kh.contains(t,r)}function Wh(e){const t=e.ownerDocument;return!!t&&(kh.contains(t,e)||Uh(e))}var Vh=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Vh||{}),qh=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(qh||{}),$h=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))($h||{}),Yh=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Yh||{}),Zh=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Zh||{}),Gh=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Gh||{}),Jh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Jh||{});function Hh(e){return"__ln"in e}class Xh{constructor(){Tt(this,"length",0),Tt(this,"head",null),Tt(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Hh(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Hh(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Kh=(e,t)=>`${e}@${t}`;class Qh{constructor(){Tt(this,"frozen",!1),Tt(this,"locked",!1),Tt(this,"texts",[]),Tt(this,"attributes",[]),Tt(this,"attributeMap",new WeakMap),Tt(this,"removes",[]),Tt(this,"mapRemoves",[]),Tt(this,"movedMap",{}),Tt(this,"addedSet",new Set),Tt(this,"movedSet",new Set),Tt(this,"droppedSet",new Set),Tt(this,"removesSubTreeCache",new Set),Tt(this,"mutationCb"),Tt(this,"blockClass"),Tt(this,"blockSelector"),Tt(this,"maskTextClass"),Tt(this,"maskTextSelector"),Tt(this,"inlineStylesheet"),Tt(this,"maskInputOptions"),Tt(this,"maskTextFn"),Tt(this,"maskInputFn"),Tt(this,"keepIframeSrcFn"),Tt(this,"recordCanvas"),Tt(this,"inlineImages"),Tt(this,"slimDOMOptions"),Tt(this,"dataURLOptions"),Tt(this,"doc"),Tt(this,"mirror"),Tt(this,"iframeManager"),Tt(this,"stylesheetManager"),Tt(this,"shadowDomManager"),Tt(this,"canvasManager"),Tt(this,"processedNodeManager"),Tt(this,"unattachedDoc"),Tt(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),Tt(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new Xh,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},s=s=>{const i=kh.parentNode(s);if(!i||!Wh(s))return;let o=!1;if(s.nodeType===Node.TEXT_NODE){const e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(o=!0)}const a=Jt(i)?this.mirror.getId(Bh(s)):this.mirror.getId(i),l=n(s);if(-1===a||-1===l)return r.addNode(s);const c=Rr(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ph(e,this.mirror)&&this.iframeManager.addIframe(e),Lh(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Fh(s)&&this.shadowDomManager.addShadowRoot(kh.shadowRoot(s),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:o});c&&(e.push({parentId:a,nextId:l,node:c}),t.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)tu(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(kh.parentNode(a))||s(a);for(const a of this.addedSet)ru(this.droppedSet,a)||tu(this.removesSubTreeCache,a,this.mirror)?ru(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(kh.parentNode(i.value)),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(kh.parentNode(r.value));if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value,n=kh.parentNode(t);if(n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const t=kh.host(n);if(-1!==this.mirror.getId(t)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),s(e.value)}const o={texts:this.texts.map(e=>{const t=e.node,r=kh.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(o))}),Tt(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(kh.childNodes(e),e=>kh.textContent(e)||"").join("")}),Tt(this,"processMutation",e=>{if(!_h(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=kh.textContent(e.target);Nh(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Ar(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,jh(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const r=e.target;let n=e.attributeName,s=e.target.getAttribute(n);if("value"===n){const e=nr(r);s=er({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:e,value:s,maskInputFn:this.maskInputFn})}if(Nh(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(s)){if(r.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!xr(r.tagName,n))if(i.attributes[n]=Cr(this.doc,tr(r.tagName),tr(n),s),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(r.style)){const t=r.style.getPropertyValue(e),s=r.style.getPropertyPriority(e);t!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===s?t:[t,s]:i._unchangedStyles[e]=[t,s]}for(const e of Array.from(n.style))""===r.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?i.attributes.rr_open_mode="modal":i.attributes.rr_open_mode="non-modal");break}case"childList":if(Nh(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),n=Jt(e.target)?this.mirror.getId(kh.host(e.target)):this.mirror.getId(e.target);Nh(e.target,this.blockClass,this.blockSelector,!1)||_h(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(eu(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||zh(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Kh(r,n)]?eu(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!Jt(e.target)||!Ht(e.target))||void 0}),function(e,t){const r=[e];for(;r.length;){const e=r.pop();t.has(e)||(t.add(e),kh.childNodes(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),Tt(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(_h(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Kh(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Nh(e,this.blockClass,this.blockSelector,!1)||(kh.childNodes(e).forEach(e=>this.genAdds(e)),Fh(e)&&kh.childNodes(kh.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function eu(e,t){e.delete(t),kh.childNodes(t).forEach(t=>eu(e,t))}function tu(e,t,r){return 0!==e.size&&function(e,t){const r=kh.parentNode(t);return!!r&&e.has(r)}(e,t)}function ru(e,t){return 0!==e.size&&nu(e,t)}function nu(e,t){const r=kh.parentNode(t);return!!r&&(!!e.has(r)||nu(e,r))}let su;const iu=e=>{if(!su)return e;return(...t)=>{try{return e(...t)}catch(r){if(su&&!0===su(r))return;throw r}}},ou=[];function au(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function lu(e,t){const r=new Qh;ou.push(r),r.init(e);const n=new(wh())(iu(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function cu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[];let l=null;return Object.keys($h).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(i=>{let o=tr(i);const c=(t=>i=>{const o=au(i);if(Nh(o,n,s,!0))return;let a=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":a=Yh.Mouse;break;case"touch":a=Yh.Touch;break;case"pen":a=Yh.Pen}a===Yh.Touch?$h[t]===$h.MouseDown?c="TouchStart":$h[t]===$h.MouseUp&&(c="TouchEnd"):Yh.Pen}else Th(i)&&(a=Yh.Touch);null!==a?(l=a,(c.startsWith("Touch")&&a===Yh.Touch||c.startsWith("Mouse")&&a===Yh.Mouse)&&(a=null)):$h[t]===$h.Click&&(a=l,l=null);const h=Th(i)?i.changedTouches[0]:i;if(!h)return;const u=r.getId(o),{clientX:d,clientY:p}=h;iu(e)({type:$h[c],id:u,x:d,y:p,...null!==a&&{pointerType:a}})})(i);if(window.PointerEvent)switch($h[i]){case $h.MouseDown:case $h.MouseUp:o=o.replace("mouse","pointer");break;case $h.TouchStart:case $h.TouchEnd:return}a.push(vh(o,c,t))}),iu(()=>{a.forEach(e=>e())})}function hu({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,sampling:i}){return vh("scroll",iu(xh(iu(i=>{const o=au(i);if(!o||Nh(o,n,s,!0))return;const a=r.getId(o);if(o===t&&t.defaultView){const r=Oh(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}const uu=["INPUT","TEXTAREA","SELECT"],du=new WeakMap;function pu(e){return function(e,t){if(yu("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||yu("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||yu("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||yu("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function mu(e,t,r){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function fu({mirror:e,stylesheetManager:t},r){var n,s,i;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(kh.host(r));const a="#document"===r.nodeName?null==(n=r.defaultView)?void 0:n.Document:null==(i=null==(s=r.ownerDocument)?void 0:s.defaultView)?void 0:i.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;const n=null==(r=l.set)?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(s){}return n}}),iu(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function gu(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;!function(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:s,scrollCb:i,viewportResizeCb:o,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:h,canvasMutationCb:u,fontCb:d,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}(e,t),e.recordDOM&&(n=lu(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const l=xh(iu(t=>{const r=Date.now()-o;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],o=null}),i),c=iu(xh(iu(e=>{const t=au(e),{clientX:r,clientY:s}=Th(e)?e.changedTouches[0]:e;o||(o=Eh()),a.push({x:r,y:s,id:n.getId(t),timeOffset:Eh()-o}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?qh.Drag:e instanceof MouseEvent?qh.MouseMove:qh.TouchMove)}),s,{trailing:!1})),h=[vh("mousemove",c,r),vh("touchmove",c,r),vh("drag",c,r)];return iu(()=>{h.forEach(e=>e())})}(e),i=cu(e),o=hu(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return vh("resize",iu(xh(iu(()=>{const t=Rh(),s=Mh();r===t&&n===s||(e({width:Number(s),height:Number(t)}),r=t,n=s)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,ignoreClass:i,ignoreSelector:o,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:h}){function u(e){let r=au(e);const c=e.isTrusted,u=r&&r.tagName;if(r&&"OPTION"===u&&(r=kh.parentElement(r)),!r||!u||uu.indexOf(u)<0||Nh(r,n,s,!0))return;if(r.classList.contains(i)||o&&r.matches(o))return;let p=r.value,m=!1;const f=nr(r)||"";"radio"===f||"checkbox"===f?m=r.checked:(a[u.toLowerCase()]||a[f])&&(p=er({element:r,maskInputOptions:a,tagName:u,type:f,value:p,maskInputFn:l})),d(r,h?{text:p,isChecked:m,userTriggered:c}:{text:p,isChecked:m});const g=r.name;"radio"===f&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){const t=e.value;d(e,h?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function d(t,n){const s=du.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){du.set(t,n);const s=r.getId(t);iu(e)({...n,id:s})}}const p=("last"===c.input?["change"]:["input","change"]).map(e=>vh(e,iu(u),t)),m=t.defaultView;if(!m)return()=>{p.forEach(e=>e())};const f=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&p.push(...g.map(e=>Ih(e[0],e[1],{set(){iu(u)({target:this,isTrusted:!1})}},!1,m))),iu(()=>{p.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:s,doc:i}){const o=iu(i=>xh(iu(s=>{const o=au(s);if(!o||Nh(o,t,r,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:h,loop:u}=o;e({type:i,id:n.getId(o),currentTime:a,volume:l,muted:c,playbackRate:h,loop:u})}),s.media||500)),a=[vh("play",o(Gh.Play),i),vh("pause",o(Gh.Pause),i),vh("seeked",o(Gh.Seeked),i),vh("volumechange",o(Gh.VolumeChange),i),vh("ratechange",o(Gh.RateChange),i)];return iu(()=>{a.forEach(e=>e())})}(e);let h=()=>{},u=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:iu((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=mu(s,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){const s=`${e} { ${t} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[s,r])};const i=n.CSSStyleSheet.prototype.deleteRule;let o,a;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(s,i)})}),n.CSSStyleSheet.prototype.removeRule=function(e){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(s,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(s,i)})}));const l={};bu("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(bu("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),bu("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),bu("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([n,s])=>{c[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(c[n].insertRule,{apply:iu((n,s,i)=>{const[o,a]=i,{id:l,styleId:c}=mu(s.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...pu(s),a||0]}]}),n.apply(s,i)})}),s.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:iu((n,s,i)=>{const[o]=i,{id:a,styleId:l}=mu(s.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...pu(s),o]}]}),n.apply(s,i)})})}),iu(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,o&&(n.CSSStyleSheet.prototype.replace=o),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),u=fu(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:iu((s,o,a)=>{var l;const[c,h,u]=a;if(r.has(c))return i.apply(o,[c,h,u]);const{id:d,styleId:p}=mu(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:h,priority:u},index:pu(o.parentRule)}),s.apply(o,a)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:iu((s,i,a)=>{var l;const[c]=a;if(r.has(c))return o.apply(i,[c]);const{id:h,styleId:u}=mu(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(h&&-1!==h||u&&-1!==u)&&e({id:h,styleId:u,remove:{property:c},index:pu(i.parentRule)}),s.apply(i,a)})}),iu(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const o=Ah(t.fonts,"add",function(t){return function(r){return setTimeout(iu(()=>{const t=s.get(r);t&&(e(t),s.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(o),iu(()=>{n.forEach(e=>e())})}(e)));const m=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,selectionCb:i}=e;let o=!0;const a=iu(()=>{const e=t.getSelection();if(!e||o&&(null==e?void 0:e.isCollapsed))return;o=e.isCollapsed||!1;const a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:o,startOffset:l,endContainer:c,endOffset:h}=i;Nh(o,n,s,!0)||Nh(c,n,s,!0)||a.push({start:r.getId(o),startOffset:l,end:r.getId(c),endOffset:h})}i({ranges:a})});return a(),vh("selectionchange",a)}(e),f=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Ah(r.customElements,"define",function(e){return function(r,n,s){try{t({define:{name:r}})}catch(i){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,s])}}):()=>{}}(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,r,y.options));return iu(()=>{ou.forEach(e=>e.reset()),null==n||n.disconnect(),s(),i(),o(),a(),l(),c(),h(),u(),d(),p(),m(),f(),g.forEach(e=>e())})}function yu(e){return void 0!==window[e]}function bu(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class wu{constructor(e){Tt(this,"iframeIdToRemoteIdMap",new WeakMap),Tt(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,n){const s=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=n.get(t);return s||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ku{constructor(e){Tt(this,"iframes",new WeakMap),Tt(this,"crossOriginIframeMap",new WeakMap),Tt(this,"crossOriginIframeMirror",new wu(mr)),Tt(this,"crossOriginIframeStyleMirror"),Tt(this,"crossOriginIframeRootIdMap",new WeakMap),Tt(this,"mirror"),Tt(this,"mutationCb"),Tt(this,"wrappedEmit"),Tt(this,"loadListener"),Tt(this,"stylesheetManager"),Tt(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new wu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case Vh.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Vh.IncrementalSnapshot,data:{source:qh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Vh.Meta:case Vh.Load:case Vh.DomContentLoaded:return!1;case Vh.Plugin:return t;case Vh.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Vh.IncrementalSnapshot:switch(t.data.source){case qh.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case qh.Drag:case qh.TouchMove:case qh.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case qh.ViewportResize:return!1;case qh.MediaInteraction:case qh.MouseInteraction:case qh.Scroll:case qh.CanvasMutation:case qh.Input:return this.replaceIds(t.data,e,["id"]),t;case qh.StyleSheetRule:case qh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case qh.Font:return t;case qh.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case qh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(const s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Jh.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class vu{constructor(e){Tt(this,"shadowDoms",new WeakSet),Tt(this,"mutationCb"),Tt(this,"scrollCb"),Tt(this,"bypassOptions"),Tt(this,"mirror"),Tt(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Ht(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=lu({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(hu({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(kh.host(e))),this.restoreHandlers.push(fu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ah(e.prototype,"attachShadow",function(e){return function(n){const s=e.call(this,n),i=kh.shadowRoot(this);return i&&Wh(this)&&r.addShadowRoot(i,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Su="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xu=0;xu<64;xu++)Cu[Su.charCodeAt(xu)]=xu;const Iu=new Map;const Au=(e,t,r)=>{if(!e||!Ru(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Iu.get(e);return r||(r=new Map,Iu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let s=n.indexOf(e);return-1===s&&(s=n.length,n.push(e)),s};function Eu(e,t,r){if(e instanceof Array)return e.map(e=>Eu(e,t,r));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,s="";for(t=0;t<n;t+=3)s+=Su[r[t]>>2],s+=Su[(3&r[t])<<4|r[t+1]>>4],s+=Su[(15&r[t+1])<<2|r[t+2]>>6],s+=Su[63&r[t+2]];return n%3==2?s=s.substring(0,s.length-1)+"=":n%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[Eu(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[Eu(e.data,t,r),e.width,e.height]}}if(Ru(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:Au(e,t,r)}}return e}const Ou=(e,t,r)=>e.map(e=>Eu(e,t,r)),Ru=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function Mu(e,t,r,n){const s=[];try{const i=Ah(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(s,...i){if(!Nh(this,t,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(s);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...i])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(e=>e())}}function ju(e,t,r,n,s,i){const o=[],a=Object.getOwnPropertyNames(e);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue;const a=Ah(e,l,function(e){return function(...o){const a=e.apply(this,o);if(Au(a,i,this),"tagName"in this.canvas&&!Nh(this.canvas,n,s,!0)){const e=Ou(o,i,this),n={type:t,property:l,args:e};r(this.canvas,n)}return a}});o.push(a)}catch{const n=Ih(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(n)}return o}const Nu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",_u="undefined"!=typeof window&&window.Blob&&new Blob([(zu=Nu,Uint8Array.from(atob(zu),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var zu;function Tu(e){let t;try{if(t=_u&&(window.URL||window.webkitURL).createObjectURL(_u),!t)throw"";const r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;base64,"+Nu,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class Pu{constructor(e){Tt(this,"pendingCanvasMutations",new Map),Tt(this,"rafStamps",{latestId:0,invokeId:null}),Tt(this,"mirror"),Tt(this,"mutationCb"),Tt(this,"resetObservers"),Tt(this,"frozen",!1),Tt(this,"locked",!1),Tt(this,"processMutation",(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:r,blockClass:n,blockSelector:s,recordCanvas:i,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,s),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,s,{dataURLOptions:o})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,n,s){const i=Mu(t,r,n,!0),o=new Map,a=new Tu;a.onmessage=e=>{const{id:t}=e.data;if(o.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:s,height:i}=e.data;this.mutationCb({id:t,type:Zh["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/e;let c,h=0;const u=e=>{h&&e-h<l||(h=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{Nh(t,r,n,!0)||e.push(t)}),e})().forEach(async e=>{var t;const r=this.mirror.getId(e);if(o.get(r))return;if(0===e.width||0===e.height)return;if(o.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=await createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:s.dataURLOptions},[n])})),c=requestAnimationFrame(u)};c=requestAnimationFrame(u),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Mu(e,t,r,!1),s=function(e,t,r,n){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const i=Ah(t.CanvasRenderingContext2D.prototype,o,function(s){return function(...i){return Nh(this.canvas,r,n,!0)||setTimeout(()=>{const r=Ou(i,t,this);e(this.canvas,{type:Zh["2D"],property:o,args:r})},0),s.apply(this,i)}});s.push(i)}catch{const r=Ih(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Zh["2D"],property:o,args:[t],setter:!0})}});s.push(r)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const s=[];return s.push(...ju(t.WebGLRenderingContext.prototype,Zh.WebGL,e,r,n,t)),void 0!==t.WebGL2RenderingContext&&s.push(...ju(t.WebGL2RenderingContext.prototype,Zh.WebGL2,e,r,n,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{n(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:s}=r[0];this.mutationCb({id:t,type:s,commands:n}),this.pendingCanvasMutations.delete(e)}}class Lu{constructor(e){Tt(this,"trackedLinkElements",new WeakSet),Tt(this,"mutationCb"),Tt(this,"adoptedStyleSheetCb"),Tt(this,"styleMirror",new Dh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const s of e){let e;this.styleMirror.has(s)?e=this.styleMirror.getId(s):(e=this.styleMirror.add(s),n.push({styleId:e,rules:Array.from(s.rules||CSSRule,(e,t)=>({rule:Kt(e,s.href),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Fu{constructor(){Tt(this,"nodeMap",new WeakMap),Tt(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Du,Bu,Uu,Wu=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(_t=e.contentWindow)?void 0:_t.Array.from)||Array.from,document.body.removeChild(e)}}catch(Hk){console.debug("Unable to override Array.from",Hk)}const Vu=new Qt;function qu(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:i=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:p,maskInputFn:m,maskTextFn:f,hooks:g,packFn:y,sampling:b={},dataURLOptions:w={},mousemoveWait:k,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:A=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:j}=e;su=j;const N=!C||window.parent===window;let _=!1;if(!N)try{window.parent.document&&(_=!1)}catch(Y){_=!0}if(N&&!t)throw new Error("emit function is required");if(!N&&!_)return()=>{};void 0!==k&&void 0===b.mousemove&&(b.mousemove=k),Vu.reset();const z=!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},T=!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===p,headMetaDescKeywords:"all"===p,headTitleMutations:"all"===p}:p||{};let P;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let L=0;const F=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!_&&(e=y(e)),e};Du=(e,s)=>{var i;const o=e;if(o.timestamp=Eh(),!(null==(i=ou[0])?void 0:i.isFrozen())||o.type===Vh.FullSnapshot||o.type===Vh.IncrementalSnapshot&&o.data.source===qh.Mutation||ou.forEach(e=>e.unfreeze()),N)null==t||t(F(o),s);else if(_){const e={type:"rrweb",event:F(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===Vh.FullSnapshot)P=o,L=0;else if(o.type===Vh.IncrementalSnapshot){if(o.data.source===qh.Mutation&&o.data.isAttachIframe)return;L++;const e=n&&L>=n,t=r&&o.timestamp-P.timestamp>r;(e||t)&&Bu(!0)}};const D=e=>{Du({type:Vh.IncrementalSnapshot,data:{source:qh.Mutation,...e}})},B=e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.Scroll,...e}}),U=e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.CanvasMutation,...e}}),W=new Lu({mutationCb:D,adoptedStyleSheetCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.AdoptedStyleSheet,...e}})}),V=new ku({mirror:Vu,mutationCb:D,stylesheetManager:W,recordCrossOriginIframes:C,wrappedEmit:Du});for(const G of O||[])G.getMirror&&G.getMirror({nodeMirror:Vu,crossOriginIframeMirror:V.crossOriginIframeMirror,crossOriginIframeStyleMirror:V.crossOriginIframeStyleMirror});const q=new Fu;Uu=new Pu({recordCanvas:S,mutationCb:U,win:window,blockClass:s,blockSelector:i,mirror:Vu,sampling:b.canvas,dataURLOptions:w});const $=new vu({mutationCb:D,scrollCb:B,bypassOptions:{blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskInputOptions:z,dataURLOptions:w,maskTextFn:f,maskInputFn:m,recordCanvas:S,inlineImages:E,sampling:b,slimDOMOptions:T,iframeManager:V,stylesheetManager:W,canvasManager:Uu,keepIframeSrcFn:R,processedNodeManager:q},mirror:Vu});Bu=(e=!1)=>{if(!v)return;Du({type:Vh.Meta,data:{href:window.location.href,width:Mh(),height:Rh()}},e),W.reset(),$.init(),ou.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new Qt,blockClass:n="rr-block",blockSelector:s=null,maskTextClass:i="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:h=!1,maskTextFn:u,maskInputFn:d,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v=()=>!1}=t||{};return Rr(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,maskTextClass:i,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===h?{password:!0}:h,maskTextFn:u,maskInputFn:d,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:c,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:k,keepIframeSrcFn:v,newlyAddedElement:!1})}(document,{mirror:Vu,blockClass:s,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:h,maskAllInputs:z,maskTextFn:f,maskInputFn:m,slimDOM:T,dataURLOptions:w,recordCanvas:S,inlineImages:E,onSerialize:e=>{Ph(e,Vu)&&V.addIframe(e),Lh(e,Vu)&&W.trackLinkElement(e),Fh(e)&&$.addShadowRoot(kh.shadowRoot(e),document)},onIframeLoad:(e,t)=>{V.attachIframe(e,t),$.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{W.attachLinkElement(e,t)},keepIframeSrcFn:R});if(!t)return console.warn("Failed to snapshot the document");Du({type:Vh.FullSnapshot,data:{node:t,initialOffset:Oh(window)}},e),ou.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Vu.getId(document))};try{const e=[],t=e=>{var t;return iu(gu)({mutationCb:D,mousemoveCb:(e,t)=>Du({type:Vh.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.MouseInteraction,...e}}),scrollCb:B,viewportResizeCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.ViewportResize,...e}}),inputCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.Input,...e}}),mediaInteractionCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.MediaInteraction,...e}}),styleSheetRuleCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.StyleSheetRule,...e}}),styleDeclarationCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.StyleDeclaration,...e}}),canvasMutationCb:U,fontCb:e=>Du({type:Vh.IncrementalSnapshot,data:{source:qh.Font,...e}}),selectionCb:e=>{Du({type:Vh.IncrementalSnapshot,data:{source:qh.Selection,...e}})},customElementCb:e=>{Du({type:Vh.IncrementalSnapshot,data:{source:qh.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:z,inlineStylesheet:h,sampling:b,recordDOM:v,recordCanvas:S,inlineImages:E,userTriggeredOnInput:I,collectFonts:A,doc:e,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:R,blockSelector:i,slimDOMOptions:T,dataURLOptions:w,mirror:Vu,iframeManager:V,stylesheetManager:W,shadowDomManager:$,processedNodeManager:q,canvasManager:Uu,ignoreCSSAttributes:M,plugins:(null==(t=null==O?void 0:O.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Du({type:Vh.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};V.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(n){console.warn(n)}});const r=()=>{Bu(),e.push(t(document)),Wu=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(vh("DOMContentLoaded",()=>{Du({type:Vh.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()})),e.push(vh("load",()=>{Du({type:Vh.Load,data:{}}),"load"===x&&r()},window))),()=>{e.forEach(e=>e()),q.destroy(),Wu=!1,su=void 0}}catch(Z){console.warn(Z)}}var $u,Yu;qu.addCustomEvent=(e,t)=>{if(!Wu)throw new Error("please add custom event after start recording");Du({type:Vh.Custom,data:{tag:e,payload:t}})},qu.freezePage=()=>{ou.forEach(e=>e.freeze())},qu.takeFullSnapshot=e=>{if(!Wu)throw new Error("please take full snapshot after start recording");Bu(e)},qu.mirror=Vu,(Yu=$u||($u={}))[Yu.NotStarted=0]="NotStarted",Yu[Yu.Running=1]="Running",Yu[Yu.Stopped=2]="Stopped";const{addCustomEvent:Zu}=qu,{freezePage:Gu}=qu,{takeFullSnapshot:Ju}=qu;class Hu extends Array{constructor(){super()}isEmpty(){return 0===this.length}isFull(){return 10===this.length}flush(){return this.splice(0,this.length)}}class Xu{constructor(e){__publicField(this,"agent"),__publicField(this,"eventBuffer"),this.agent=e,this.eventBuffer=new Hu}start(){document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.send()})}handle(e){e.type===Vh.FullSnapshot&&this.eventBuffer.find(e=>e.type===Vh.FullSnapshot)||(this.eventBuffer.push(e),this.eventBuffer.isFull()&&this.send())}async send(){if(!this.eventBuffer.isEmpty()&&this.agent.sendEvents){const e=this.eventBuffer.flush();await this.agent.sendEvents(e)}}}var Ku,Qu=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Qu||{}),ed=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ed||{}),td=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(td||{}),rd=Object.defineProperty,nd=(e,t,r)=>((e,t,r)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),sd=Object.defineProperty,id=(e,t,r)=>((e,t,r)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),od=Object.defineProperty,ad=(e,t,r)=>((e,t,r)=>t in e?od(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const ld={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},cd={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hd={};function ud(e){if(hd[e])return hd[e];const t=globalThis[e],r=t.prototype,n=e in ld?ld[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in cd?cd[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return hd[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?hd[e]=i:r}catch{return r}}const dd={};function pd(e,t,r){var n;const s=`${e}.${String(r)}`;if(dd[s])return dd[s].call(t);const i=ud(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(dd[s]=o,o.call(t)):t[r]}const md={};function fd(e,t,r){const n=`${e}.${String(r)}`;if(md[n])return md[n].bind(t);const s=ud(e)[r];return"function"!=typeof s?t[r]:(md[n]=s,s.bind(t))}const gd={childNodes:function(e){return pd("Node",e,"childNodes")},parentNode:function(e){return pd("Node",e,"parentNode")},parentElement:function(e){return pd("Node",e,"parentElement")},textContent:function(e){return pd("Node",e,"textContent")},contains:function(e,t){return fd("Node",e,"contains")(t)},getRootNode:function(e){return fd("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?pd("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?pd("Element",e,"shadowRoot"):null},querySelector:function(e,t){return pd("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return pd("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return ud("MutationObserver").constructor}};class yd{constructor(){ad(this,"idNodeMap",new Map),ad(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function bd(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&bd(gd.parentNode(e),t,r);for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!!r&&bd(gd.parentNode(e),t,r)}function wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kd(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var vd={exports:{}},Sd=String,Cd=function(){return{isColorSupported:!1,reset:Sd,bold:Sd,dim:Sd,italic:Sd,underline:Sd,inverse:Sd,hidden:Sd,strikethrough:Sd,black:Sd,red:Sd,green:Sd,yellow:Sd,blue:Sd,magenta:Sd,cyan:Sd,white:Sd,gray:Sd,bgBlack:Sd,bgRed:Sd,bgGreen:Sd,bgYellow:Sd,bgBlue:Sd,bgMagenta:Sd,bgCyan:Sd,bgWhite:Sd}};vd.exports=Cd(),vd.exports.createColors=Cd;var xd=vd.exports;const Id=kd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Ad=xd,Ed=Id,Od=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=Ad.isColorSupported),Ed&&e&&(t=Ed(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=Ad.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Rd=Od;Od.default=Od;var Md={};Md.isClean=Symbol("isClean"),Md.my=Symbol("my");const jd={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Nd=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return jd[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=jd[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var _d=Nd;Nd.default=Nd;let zd=_d;function Td(e,t){new zd(t).stringify(e)}var Pd=Td;Td.default=Td;let{isClean:Ld,my:Fd}=Md,Dd=Rd,Bd=_d,Ud=Pd;function Wd(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>Wd(e,r)):("object"===i&&null!==s&&(s=Wd(s)),r[n]=s)}return r}let Vd=class{constructor(e={}){this.raws={},this[Ld]=!1,this[Fd]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Wd(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Dd(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Ld]){this[Ld]=!1;let e=this;for(;e=e.parent;)e[Ld]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new Bd).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ud){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var qd=Vd;Vd.default=Vd;let $d=qd,Yd=class extends $d{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Zd=Yd;Yd.default=Yd;var Gd={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Jd,SourceMapGenerator:Hd}=Id,{existsSync:Xd,readFileSync:Kd}=Id,{dirname:Qd,join:ep}=Id;let tp=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Qd(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Jd(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=Qd(e),Xd(e))return this.mapFile=e,Kd(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Jd)return Hd.fromSourceMap(t).toString();if(t instanceof Hd)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=ep(Qd(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var rp=tp;tp.default=tp;let{SourceMapConsumer:np,SourceMapGenerator:sp}=Id,{fileURLToPath:ip,pathToFileURL:op}=Id,{isAbsolute:ap,resolve:lp}=Id,{nanoid:cp}=Gd,hp=Id,up=Rd,dp=rp,pp=Symbol("fromOffsetCache"),mp=Boolean(np&&sp),fp=Boolean(lp&&ap),gp=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!fp||/^\w+:\/\//.test(t.from)||ap(t.from)?this.file=t.from:this.file=lp(t.from)),fp&&mp){let e=new dp(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+cp(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new up(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new up(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(op&&(s.input.url=op(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[pp])r=this[pp];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[pp]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:lp(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=ap(a.source)?op(a.source):new URL(a.source,this.map.consumer().sourceRoot||op(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!ip)throw new Error("file: protocol is not available in this PostCSS build");l.file=ip(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 yp=gp;gp.default=gp,hp&&hp.registerInput&&hp.registerInput(gp);let{SourceMapConsumer:bp,SourceMapGenerator:wp}=Id,{dirname:kp,relative:vp,resolve:Sp,sep:Cp}=Id,{pathToFileURL:xp}=Id,Ip=yp,Ap=Boolean(bp&&wp),Ep=Boolean(kp&&Sp&&vp&&Cp);var Op=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||kp(e.file);!1===this.mapOpts.sourcesContent?(t=new bp(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ep&&Ap&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wp.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wp({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 wp({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?kp(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=kp(Sp(r,this.mapOpts.annotation)));let n=vp(r,e);return this.memoizedPaths.set(e,n),n}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 Ip(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(xp){let t=xp(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===Cp&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let Rp=qd,Mp=class extends Rp{constructor(e){super(e),this.type="comment"}};var jp=Mp;Mp.default=Mp;let Np,_p,zp,Tp,{isClean:Pp,my:Lp}=Md,Fp=Zd,Dp=jp,Bp=qd;function Up(e){return e.map(e=>(e.nodes&&(e.nodes=Up(e.nodes)),delete e.source,e))}function Wp(e){if(e[Pp]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Wp(t)}let Vp=class e extends Bp{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Up(Np(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Fp(t)]}else if(t.selector)t=[new _p(t)];else if(t.name)t=[new zp(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Dp(t)]}return t.map(t=>(t[Lp]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Pp]&&Wp(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};Vp.registerParse=e=>{Np=e},Vp.registerRule=e=>{_p=e},Vp.registerAtRule=e=>{zp=e},Vp.registerRoot=e=>{Tp=e};var qp=Vp;Vp.default=Vp,Vp.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,zp.prototype):"rule"===e.type?Object.setPrototypeOf(e,_p.prototype):"decl"===e.type?Object.setPrototypeOf(e,Fp.prototype):"comment"===e.type?Object.setPrototypeOf(e,Dp.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tp.prototype),e[Lp]=!0,e.nodes&&e.nodes.forEach(e=>{Vp.rebuild(e)})};let $p,Yp,Zp=qp,Gp=class extends Zp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new $p(new Yp,this,e).stringify()}};Gp.registerLazyResult=e=>{$p=e},Gp.registerProcessor=e=>{Yp=e};var Jp=Gp;Gp.default=Gp;let Hp={};var Xp=function(e){Hp[e]||(Hp[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Kp=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Qp=Kp;Kp.default=Kp;let em=Qp,tm=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new em(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var rm=tm;tm.default=tm;const nm="'".charCodeAt(0),sm='"'.charCodeAt(0),im="\\".charCodeAt(0),om="/".charCodeAt(0),am="\n".charCodeAt(0),lm=" ".charCodeAt(0),cm="\f".charCodeAt(0),hm="\t".charCodeAt(0),um="\r".charCodeAt(0),dm="[".charCodeAt(0),pm="]".charCodeAt(0),mm="(".charCodeAt(0),fm=")".charCodeAt(0),gm="{".charCodeAt(0),ym="}".charCodeAt(0),bm=";".charCodeAt(0),wm="*".charCodeAt(0),km=":".charCodeAt(0),vm="@".charCodeAt(0),Sm=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cm=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xm=/.[\r\n"'(/\\]/,Im=/[\da-f]/i;let Am=qp,Em=class extends Am{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 Om=Em;Em.default=Em,Am.registerAtRule(Em);let Rm,Mm,jm=qp,Nm=class extends jm{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Rm(new Mm,this,e).stringify()}};Nm.registerLazyResult=e=>{Rm=e},Nm.registerProcessor=e=>{Mm=e};var _m=Nm;Nm.default=Nm,jm.registerRoot(Nm);let zm={comma:e=>zm.split(e,[","],!0),space:e=>zm.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Tm=zm;zm.default=zm;let Pm=qp,Lm=Tm,Fm=class extends Pm{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Lm.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Dm=Fm;Fm.default=Fm,Pm.registerRule(Fm);let Bm=Zd,Um=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case am:case lm:case hm:case um:case cm:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===lm||r===am||r===hm||r===um||r===cm);u=["space",d.slice(f,n)],f=n-1;break;case dm:case pm:case gm:case ym:case km:case bm:case fm:{let e=String.fromCharCode(r);u=[e,e,f];break}case mm:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==nm&&h!==sm&&h!==lm&&h!==am&&h!==hm&&h!==cm&&h!==um){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===im;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||xm.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case nm:case sm:s=r===nm?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===im;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case vm:Sm.lastIndex=f+1,Sm.test(d),n=0===Sm.lastIndex?d.length-1:Sm.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case im:for(n=f,o=!0;d.charCodeAt(n+1)===im;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==om&&r!==lm&&r!==am&&r!==hm&&r!==um&&r!==cm&&(n+=1,Im.test(d.charAt(n)))){for(;Im.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===lm&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===om&&d.charCodeAt(f+1)===wm?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(Cm.lastIndex=f+1,Cm.test(d),n=0===Cm.lastIndex?d.length-1:Cm.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},Wm=jp,Vm=Om,qm=_m,$m=Dm;const Ym={empty:!0,space:!0};let Zm=qp,Gm=class{constructor(e){this.input=e,this.root=new qm,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new Vm;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new Wm;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Um(this.input)}decl(e,t){let r=new Bm;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new $m;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Ym[a]||Ym[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new $m;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Jm=yp;function Hm(e,t){let r=new Jm(e,t),n=new Gm(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Xm=Hm;Hm.default=Hm,Zm.registerParse(Hm);let{isClean:Km,my:Qm}=Md,ef=Op,tf=Pd,rf=qp,nf=Jp,sf=Xp,of=rm,af=Xm,lf=_m;const cf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},hf={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},uf={Once:!0,postcssPlugin:!0,prepare:!0};function df(e){return"object"==typeof e&&"function"==typeof e.then}function pf(e){let t=!1,r=cf[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function mf(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:pf(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function ff(e){return e[Km]=!1,e.nodes&&e.nodes.forEach(e=>ff(e)),e}let gf={},yf=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof of)s=ff(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=af;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[Qm]&&rf.rebuild(s)}else s=ff(r);this.result=new of(t,s,n),this.helpers={...gf,postcss:gf,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!hf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uf[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(df(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Km];){e[Km]=!0;let r=[mf(e)];for(;r.length>0;){let e=this.visitTick(r);if(df(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return df(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=tf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ef(t,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 e of this.plugins){if(df(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Km];)e[Km]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||sf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(df(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Km])return n[Km]=!0,void e.push(mf(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Km]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Km]=!0;let t=pf(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Km]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};yf.registerPostcss=e=>{gf=e};var bf=yf;yf.default=yf,lf.registerLazyResult(yf),nf.registerLazyResult(yf);let wf=Op,kf=Pd,vf=Xp,Sf=Xm;const Cf=rm;let xf=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=kf;this.result=new Cf(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new wf(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||vf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=Sf;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var If=xf;xf.default=xf;let Af=If,Ef=bf,Of=Jp,Rf=_m,Mf=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new Ef(this,e,t):new Af(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var jf=Mf;Mf.default=Mf,Rf.registerProcessor(Mf),Of.registerProcessor(Mf);let Nf=Zd,_f=rp,zf=jp,Tf=Om,Pf=yp,Lf=_m,Ff=Dm;function Df(e,t){if(Array.isArray(e))return e.map(e=>Df(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Pf.prototype};r.map&&(r.map={...r.map,__proto__:_f.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Df(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Lf(n);if("decl"===n.type)return new Nf(n);if("rule"===n.type)return new Ff(n);if("comment"===n.type)return new zf(n);if("atrule"===n.type)return new Tf(n);throw new Error("Unknown node type: "+e.type)}var Bf=Df;Df.default=Df;let Uf=Rd,Wf=Zd,Vf=bf,qf=qp,$f=jf,Yf=Pd,Zf=Bf,Gf=Jp,Jf=Qp,Hf=jp,Xf=Om,Kf=rm,Qf=yp,eg=Xm,tg=Tm,rg=Dm,ng=_m,sg=qd;function ig(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new $f(e)}ig.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new $f).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return ig([s(r)]).process(e,t)},s},ig.stringify=Yf,ig.parse=eg,ig.fromJSON=Zf,ig.list=tg,ig.comment=e=>new Hf(e),ig.atRule=e=>new Xf(e),ig.decl=e=>new Wf(e),ig.rule=e=>new rg(e),ig.root=e=>new ng(e),ig.document=e=>new Gf(e),ig.CssSyntaxError=Uf,ig.Declaration=Wf,ig.Container=qf,ig.Processor=$f,ig.Document=Gf,ig.Comment=Hf,ig.Warning=Jf,ig.AtRule=Xf,ig.Result=Kf,ig.Input=Qf,ig.Rule=rg,ig.Root=ng,ig.Node=sg,Vf.registerPostcss(ig);var og=ig;ig.default=ig;const ag=wd(og);ag.stringify,ag.fromJSON,ag.plugin,ag.parse,ag.list,ag.document,ag.comment,ag.atRule,ag.rule,ag.decl,ag.root,ag.CssSyntaxError,ag.Declaration,ag.Container,ag.Processor,ag.Document,ag.Comment,ag.Warning,ag.AtRule,ag.Result,ag.Input,ag.Rule,ag.Root,ag.Node;var lg=Object.defineProperty,cg=(e,t,r)=>((e,t,r)=>t in e?lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function hg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ug(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var dg={exports:{}},pg=String,mg=function(){return{isColorSupported:!1,reset:pg,bold:pg,dim:pg,italic:pg,underline:pg,inverse:pg,hidden:pg,strikethrough:pg,black:pg,red:pg,green:pg,yellow:pg,blue:pg,magenta:pg,cyan:pg,white:pg,gray:pg,bgBlack:pg,bgRed:pg,bgGreen:pg,bgYellow:pg,bgBlue:pg,bgMagenta:pg,bgCyan:pg,bgWhite:pg}};dg.exports=mg(),dg.exports.createColors=mg;var fg=dg.exports;const gg=ug(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let yg=fg,bg=gg,wg=class e extends Error{constructor(t,r,n,s,i,o){super(t),this.name="CssSyntaxError",this.reason=t,i&&(this.file=i),s&&(this.source=s),o&&(this.plugin=o),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=yg.isColorSupported),bg&&e&&(t=bg(t));let r,n,s=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),a=String(o).length;if(e){let{bold:e,gray:t,red:s}=yg.createColors(!0);r=t=>e(s(t)),n=e=>t(e)}else r=n=e=>e;return s.slice(i,o).map((e,t)=>{let s=i+1+t,o=" "+(" "+s).slice(-a)+" | ";if(s===this.line){let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+e+"\n "+t+r("^")}return" "+n(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var kg=wg;wg.default=wg;var vg={};vg.isClean=Symbol("isClean"),vg.my=Symbol("my");const Sg={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Cg=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&"root"!==n.type;)s+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<s;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],i=this.raw(s,"before");i&&this.builder(i),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],void 0!==n))return n;let s=e.parent;if("before"===r){if(!s||"root"===s.type&&s.first===e)return"";if(s&&"document"===s.type)return""}if(!s)return Sg[r];let i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let s="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[s]?n=this[s](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var o;return void 0===n&&(n=Sg[r]),i.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var xg=Cg;Cg.default=Cg;let Ig=xg;function Ag(e,t){new Ig(t).stringify(e)}var Eg=Ag;Ag.default=Ag;let{isClean:Og,my:Rg}=vg,Mg=kg,jg=xg,Ng=Eg;function _g(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let s=e[n],i=typeof s;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map(e=>_g(e,r)):("object"===i&&null!==s&&(s=_g(s)),r[n]=s)}return r}let zg=class{constructor(e={}){this.raws={},this[Og]=!1,this[Rg]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=_g(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Mg(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Og]){this[Og]=!1;let e=this;for(;e=e.parent;)e[Og]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let i=0;i<e;i++)"\n"===r[i]?(n=1,s+=1):n+=1;return{column:n,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},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);-1!==s&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return(new jg).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let s=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i))continue;if("parent"===i||"proxyCache"===i)continue;let e=this[i];if(Array.isArray(e))r[i]=e.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof e&&e.toJSON)r[i]=e.toJSON(null,t);else if("source"===i){let n=t.get(e.input);null==n&&(n=s,t.set(e.input,s),s++),r[i]={end:e.end,inputId:n,start:e.start}}else r[i]=e}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ng){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};var Tg=zg;zg.default=zg;let Pg=Tg,Lg=class extends Pg{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Fg=Lg;Lg.default=Lg;var Dg={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}};let{SourceMapConsumer:Bg,SourceMapGenerator:Ug}=gg,{existsSync:Wg,readFileSync:Vg}=gg,{dirname:qg,join:$g}=gg;let Yg=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=qg(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Bg(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=qg(e),Wg(e))return this.mapFile=e,Vg(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Bg)return Ug.fromSourceMap(t).toString();if(t instanceof Ug)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=$g(qg(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Zg=Yg;Yg.default=Yg;let{SourceMapConsumer:Gg,SourceMapGenerator:Jg}=gg,{fileURLToPath:Hg,pathToFileURL:Xg}=gg,{isAbsolute:Kg,resolve:Qg}=gg,{nanoid:ey}=Dg,ty=gg,ry=kg,ny=Zg,sy=Symbol("fromOffsetCache"),iy=Boolean(Gg&&Jg),oy=Boolean(Qg&&Kg),ay=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!oy||/^\w+:\/\//.test(t.from)||Kg(t.from)?this.file=t.from:this.file=Qg(t.from)),oy&&iy){let e=new ny(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+ey(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,i,o;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);i=e.line,o=e.col}else i=n.line,o=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,i,o);return s=a?new ry(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,n.plugin):new ry(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:o,line:i},this.css,this.file,n.plugin),s.input={column:r,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(Xg&&(s.input.url=Xg(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,r;if(this[sy])r=this[sy];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,s=e.length;n<s;n++)r[n]=t,t+=e[n].length+1;this[sy]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,s=r.length-2;for(;n<s;)if(t=n+(s-n>>1),e<r[t])s=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qg(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,i,o=this.map.consumer(),a=o.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(s=o.originalPositionFor({column:n,line:r})),i=Kg(a.source)?Xg(a.source):new URL(a.source,this.map.consumer().sourceRoot||Xg(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Hg)throw new Error("file: protocol is not available in this PostCSS build");l.file=Hg(i)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(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 ly=ay;ay.default=ay,ty&&ty.registerInput&&ty.registerInput(ay);let{SourceMapConsumer:cy,SourceMapGenerator:hy}=gg,{dirname:uy,relative:dy,resolve:py,sep:my}=gg,{pathToFileURL:fy}=gg,gy=ly,yy=Boolean(cy&&hy),by=Boolean(uy&&py&&dy&&my);var wy=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||uy(e.file);!1===this.mapOpts.sourcesContent?(t=new cy(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),by&&yy&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hy({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 hy({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,r=1,n=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(i.generated.line=r,i.generated.column=n-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i))),e=o.match(/\n/g),e?(r+=e.length,t=o.lastIndexOf("\n"),n=o.length-t):n+=o.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=r,i.generated.column=n-2,this.map.addMapping(i)):(i.source=s,i.original.line=1,i.original.column=0,i.generated.line=r,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?uy(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=uy(py(r,this.mapOpts.annotation)));let n=dy(r,e);return this.memoizedPaths.set(e,n),n}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 gy(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,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(fy){let t=fy(e).toString();return this.memoizedFileURLs.set(e,t),t}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;"\\"===my&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};let ky=Tg,vy=class extends ky{constructor(e){super(e),this.type="comment"}};var Sy=vy;vy.default=vy;let Cy,xy,Iy,Ay,{isClean:Ey,my:Oy}=vg,Ry=Fg,My=Sy,jy=Tg;function Ny(e){return e.map(e=>(e.nodes&&(e.nodes=Ny(e.nodes)),delete e.source,e))}function _y(e){if(e[Ey]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)_y(t)}let zy=class e extends jy{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)):"every"===t||"some"===t?r=>e[t]((e,...t)=>r(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of s)this.proxyOf.nodes.splice(n+1,0,i);for(let i in this.indexes)r=this.indexes[i],n<r&&(this.indexes[i]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),s=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)r=this.indexes[o],n<=r&&(this.indexes[o]=r+i.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=Ny(Cy(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ry(t)]}else if(t.selector)t=[new xy(t)];else if(t.name)t=[new Iy(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new My(t)]}return t.map(t=>(t[Oy]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ey]&&_y(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}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]}};zy.registerParse=e=>{Cy=e},zy.registerRule=e=>{xy=e},zy.registerAtRule=e=>{Iy=e},zy.registerRoot=e=>{Ay=e};var Ty=zy;zy.default=zy,zy.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Iy.prototype):"rule"===e.type?Object.setPrototypeOf(e,xy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ry.prototype):"comment"===e.type?Object.setPrototypeOf(e,My.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ay.prototype),e[Oy]=!0,e.nodes&&e.nodes.forEach(e=>{zy.rebuild(e)})};let Py,Ly,Fy=Ty,Dy=class extends Fy{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Py(new Ly,this,e).stringify()}};Dy.registerLazyResult=e=>{Py=e},Dy.registerProcessor=e=>{Ly=e};var By=Dy;Dy.default=Dy;let Uy={};var Wy=function(e){Uy[e]||(Uy[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};let Vy=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var qy=Vy;Vy.default=Vy;let $y=qy,Yy=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new $y(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};var Zy=Yy;Yy.default=Yy;const Gy="'".charCodeAt(0),Jy='"'.charCodeAt(0),Hy="\\".charCodeAt(0),Xy="/".charCodeAt(0),Ky="\n".charCodeAt(0),Qy=" ".charCodeAt(0),eb="\f".charCodeAt(0),tb="\t".charCodeAt(0),rb="\r".charCodeAt(0),nb="[".charCodeAt(0),sb="]".charCodeAt(0),ib="(".charCodeAt(0),ob=")".charCodeAt(0),ab="{".charCodeAt(0),lb="}".charCodeAt(0),cb=";".charCodeAt(0),hb="*".charCodeAt(0),ub=":".charCodeAt(0),db="@".charCodeAt(0),pb=/[\t\n\f\r "#'()/;[\\\]{}]/g,mb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fb=/.[\r\n"'(/\\]/,gb=/[\da-f]/i;let yb=Ty,bb=class extends yb{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 wb=bb;bb.default=bb,yb.registerAtRule(bb);let kb,vb,Sb=Ty,Cb=class extends Sb{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)s.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new kb(new vb,this,e).stringify()}};Cb.registerLazyResult=e=>{kb=e},Cb.registerProcessor=e=>{vb=e};var xb=Cb;Cb.default=Cb,Sb.registerRoot(Cb);let Ib={comma:e=>Ib.split(e,[","],!0),space:e=>Ib.split(e,[" ","\n","\t"]),split(e,t,r){let n=[],s="",i=!1,o=0,a=!1,l="",c=!1;for(let h of e)c?c=!1:"\\"===h?c=!0:a?h===l&&(a=!1):'"'===h||"'"===h?(a=!0,l=h):"("===h?o+=1:")"===h?o>0&&(o-=1):0===o&&t.includes(h)&&(i=!0),i?(""!==s&&n.push(s.trim()),s="",i=!1):s+=h;return(r||""!==s)&&n.push(s.trim()),n}};var Ab=Ib;Ib.default=Ib;let Eb=Ty,Ob=Ab,Rb=class extends Eb{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ob.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var Mb=Rb;Rb.default=Rb,Eb.registerRule(Rb);let jb=Fg,Nb=function(e,t={}){let r,n,s,i,o,a,l,c,h,u,d=e.css.valueOf(),p=t.ignoreErrors,m=d.length,f=0,g=[],y=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&f>=m},nextToken:function(e){if(y.length)return y.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(f),r){case Ky:case Qy:case tb:case rb:case eb:n=f;do{n+=1,r=d.charCodeAt(n)}while(r===Qy||r===Ky||r===tb||r===rb||r===eb);u=["space",d.slice(f,n)],f=n-1;break;case nb:case sb:case ab:case lb:case ub:case cb:case ob:{let e=String.fromCharCode(r);u=[e,e,f];break}case ib:if(c=g.length?g.pop()[1]:"",h=d.charCodeAt(f+1),"url"===c&&h!==Gy&&h!==Jy&&h!==Qy&&h!==Ky&&h!==tb&&h!==eb&&h!==rb){n=f;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=f;break}b("bracket")}for(l=n;d.charCodeAt(l-1)===Hy;)l-=1,a=!a}while(a);u=["brackets",d.slice(f,n+1),f,n],f=n}else n=d.indexOf(")",f+1),i=d.slice(f,n+1),-1===n||fb.test(i)?u=["(","(",f]:(u=["brackets",i,f,n],f=n);break;case Gy:case Jy:s=r===Gy?"'":'"',n=f;do{if(a=!1,n=d.indexOf(s,n+1),-1===n){if(p||t){n=f+1;break}b("string")}for(l=n;d.charCodeAt(l-1)===Hy;)l-=1,a=!a}while(a);u=["string",d.slice(f,n+1),f,n],f=n;break;case db:pb.lastIndex=f+1,pb.test(d),n=0===pb.lastIndex?d.length-1:pb.lastIndex-2,u=["at-word",d.slice(f,n+1),f,n],f=n;break;case Hy:for(n=f,o=!0;d.charCodeAt(n+1)===Hy;)n+=1,o=!o;if(r=d.charCodeAt(n+1),o&&r!==Xy&&r!==Qy&&r!==Ky&&r!==tb&&r!==rb&&r!==eb&&(n+=1,gb.test(d.charAt(n)))){for(;gb.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===Qy&&(n+=1)}u=["word",d.slice(f,n+1),f,n],f=n;break;default:r===Xy&&d.charCodeAt(f+1)===hb?(n=d.indexOf("*/",f+2)+1,0===n&&(p||t?n=d.length:b("comment")),u=["comment",d.slice(f,n+1),f,n],f=n):(mb.lastIndex=f+1,mb.test(d),n=0===mb.lastIndex?d.length-1:mb.lastIndex-2,u=["word",d.slice(f,n+1),f,n],g.push(u),f=n)}return f++,u},position:function(){return f}}},_b=Sy,zb=wb,Tb=xb,Pb=Mb;const Lb={empty:!0,space:!0};let Fb=Ty,Db=class{constructor(e){this.input=e,this.root=new Tb,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,s=new zb;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let i=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(s.source.end=this.getPosition(r[3]||r[2]),s.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),i&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let s=t-1;s>=0&&(r=e[s],"space"===r[0]||(n+=1,2!==n));s--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(e){let t,r,n,s=0;for(let[i,o]of e.entries()){if(t=o,r=t[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return i}this.doubleColon(t)}n=t}return!1}comment(e){let t=new _b;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Nb(this.input)}decl(e,t){let r=new jb;this.init(r,e[0][2]);let n,s=e[e.length-1];for(";"===s[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,o=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let a=e.length-1;a>=0;a--){if(n=e[a],"!important"===n[1].toLowerCase()){r.important=!0;let t=this.stringFrom(e,a);t=this.spacesFromEnd(e)+t," !important"!==t&&(r.raws.important=t);break}if("important"===n[1].toLowerCase()){let t=e.slice(0),n="";for(let e=a;e>0;e--){let r=t[e][0];if(0===n.trim().indexOf("!")&&"space"!==r)break;n=t.pop()[1]+n}0===n.trim().indexOf("!")&&(r.important=!0,r.raws.important=n,e=t)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Pb;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 e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.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="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)s||(s=l),i.push("("===r?")":"]");else if(o&&n&&"{"===r)s||(s=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(s),t&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o,a,l=r.length,c="",h=!0;for(let u=0;u<l;u+=1)s=r[u],i=s[0],"space"!==i||u!==l-1||n?"comment"===i?(a=r[u-1]?r[u-1][0]:"empty",o=r[u+1]?r[u+1][0]:"empty",Lb[a]||Lb[o]||","===c.slice(-1)?h=!1:c+=s[1]):c+=s[1]:h=!1;if(!h){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new Pb;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Bb=ly;function Ub(e,t){let r=new Bb(e,t),n=new Db(r);try{n.parse()}catch(s){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===s.name&&t&&t.from&&(/\.scss$/i.test(t.from)?s.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?s.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(s.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),s}return n.root}var Wb=Ub;Ub.default=Ub,Fb.registerParse(Ub);let{isClean:Vb,my:qb}=vg,$b=wy,Yb=Eg,Zb=Ty,Gb=By,Jb=Wy,Hb=Zy,Xb=Wb,Kb=xb;const Qb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ew={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},tw={Once:!0,postcssPlugin:!0,prepare:!0};function rw(e){return"object"==typeof e&&"function"==typeof e.then}function nw(e){let t=!1,r=Qb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function sw(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:nw(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function iw(e){return e[Vb]=!1,e.nodes&&e.nodes.forEach(e=>iw(e)),e}let ow={},aw=class e{constructor(t,r,n){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof e||r instanceof Hb)s=iw(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let e=Xb;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{s=e(r,n)}catch(i){this.processed=!0,this.error=i}s&&!s[qb]&&Zb.rebuild(s)}else s=iw(r);this.result=new Hb(t,s,n),this.helpers={...ow,postcss:ow,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let e=r.postcssPlugin,t=r.postcssVersion,n=this.result.processor.version,s=t.split("."),i=n.split(".");(s[0]!==i[0]||parseInt(s[1])>parseInt(i[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(Hk){console&&console.error&&console.error(Hk)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!ew[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!tw[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r<this.plugins.length;r++){let t=this.plugins[r],n=this.runOnRoot(t);if(rw(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Vb];){e[Vb]=!0;let r=[sw(e)];for(;r.length>0;){let e=this.visitTick(r);if(rw(e))try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return rw(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)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=Yb;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new $b(t,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 e of this.plugins){if(rw(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Vb];)e[Vb]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)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"production"!==process.env.NODE_ENV&&("from"in this.opts||Jb("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rw(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,s]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return s(r.toProxy(),this.helpers)}catch(i){throw this.handleError(i,r)}}if(0!==t.iterator){let n,s=t.iterator;for(;n=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!n[Vb])return n[Vb]=!0,void e.push(sw(n));t.iterator=0,delete r.indexes[s]}let s=t.events;for(;t.eventIndex<s.length;){let e=s[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[Vb]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Vb]=!0;let t=nw(e);for(let r of t)if(0===r)e.nodes&&e.each(e=>{e[Vb]||this.walkSync(e)});else{let t=this.listeners[r];if(t&&this.visitSync(t,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"}};aw.registerPostcss=e=>{ow=e};var lw=aw;aw.default=aw,Kb.registerLazyResult(aw),Gb.registerLazyResult(aw);let cw=wy,hw=Eg,uw=Wy,dw=Wb;const pw=Zy;let mw=class{constructor(e,t,r){let n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s=hw;this.result=new pw(this._processor,n,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let o=new cw(s,n,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}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"production"!==process.env.NODE_ENV&&("from"in this._opts||uw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(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=dw;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var fw=mw;mw.default=mw;let gw=fw,yw=lw,bw=By,ww=xb,kw=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new yw(this,e,t):new gw(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var vw=kw;kw.default=kw,ww.registerProcessor(kw),bw.registerProcessor(kw);let Sw=Fg,Cw=Zg,xw=Sy,Iw=wb,Aw=ly,Ew=xb,Ow=Mb;function Rw(e,t){if(Array.isArray(e))return e.map(e=>Rw(e));let{inputs:r,...n}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:Aw.prototype};r.map&&(r.map={...r.map,__proto__:Cw.prototype}),t.push(r)}}if(n.nodes&&(n.nodes=e.nodes.map(e=>Rw(e,t))),n.source){let{inputId:e,...r}=n.source;n.source=r,null!=e&&(n.source.input=t[e])}if("root"===n.type)return new Ew(n);if("decl"===n.type)return new Sw(n);if("rule"===n.type)return new Ow(n);if("comment"===n.type)return new xw(n);if("atrule"===n.type)return new Iw(n);throw new Error("Unknown node type: "+e.type)}var Mw=Rw;Rw.default=Rw;let jw=kg,Nw=Fg,_w=lw,zw=Ty,Tw=vw,Pw=Eg,Lw=Mw,Fw=By,Dw=qy,Bw=Sy,Uw=wb,Ww=Zy,Vw=ly,qw=Wb,$w=Ab,Yw=Mb,Zw=xb,Gw=Tg;function Jw(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Tw(e)}Jw.plugin=function(e,t){let r,n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=t(...r);return s.postcssPlugin=e,s.postcssVersion=(new Tw).version,s}return Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return Jw([s(r)]).process(e,t)},s},Jw.stringify=Pw,Jw.parse=qw,Jw.fromJSON=Lw,Jw.list=$w,Jw.comment=e=>new Bw(e),Jw.atRule=e=>new Uw(e),Jw.decl=e=>new Nw(e),Jw.rule=e=>new Yw(e),Jw.root=e=>new Zw(e),Jw.document=e=>new Fw(e),Jw.CssSyntaxError=jw,Jw.Declaration=Nw,Jw.Container=zw,Jw.Processor=Tw,Jw.Document=Fw,Jw.Comment=Bw,Jw.Warning=Dw,Jw.AtRule=Uw,Jw.Result=Ww,Jw.Input=Vw,Jw.Rule=Yw,Jw.Root=Zw,Jw.Node=Gw,_w.registerPostcss(Jw);var Hw=Jw;Jw.default=Jw;const Xw=hg(Hw);Xw.stringify,Xw.fromJSON,Xw.plugin,Xw.parse,Xw.list,Xw.document,Xw.comment,Xw.atRule,Xw.rule,Xw.decl,Xw.root,Xw.CssSyntaxError,Xw.Declaration,Xw.Container,Xw.Processor,Xw.Document,Xw.Comment,Xw.Warning,Xw.AtRule,Xw.Result,Xw.Input,Xw.Rule,Xw.Root,Xw.Node;class Kw{constructor(...e){cg(this,"parentElement",null),cg(this,"parentNode",null),cg(this,"ownerDocument"),cg(this,"firstChild",null),cg(this,"lastChild",null),cg(this,"previousSibling",null),cg(this,"nextSibling",null),cg(this,"ELEMENT_NODE",1),cg(this,"TEXT_NODE",3),cg(this,"nodeType"),cg(this,"nodeName"),cg(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Kw))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Qw={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ek={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tk={};function rk(e){if(tk[e])return tk[e];const t=globalThis[e],r=t.prototype,n=e in Qw?Qw[e]:void 0,s=Boolean(n&&n.every(e=>{var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in ek?ek[e]:void 0,o=Boolean(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(s&&o&&!globalThis.Zone)return tk[e]=t.prototype,t.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const s=n.contentWindow;if(!s)return t.prototype;const i=s[e].prototype;return document.body.removeChild(n),i?tk[e]=i:r}catch{return r}}const nk={};function sk(e,t,r){var n;const s=`${e}.${String(r)}`;if(nk[s])return nk[s].call(t);const i=rk(e),o=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return o?(nk[s]=o,o.call(t)):t[r]}const ik={};function ok(e,t,r){const n=`${e}.${String(r)}`;if(ik[n])return ik[n].bind(t);const s=rk(e)[r];return"function"!=typeof s?t[r]:(ik[n]=s,s.bind(t))}const ak={childNodes:function(e){return sk("Node",e,"childNodes")},parentNode:function(e){return sk("Node",e,"parentNode")},parentElement:function(e){return sk("Node",e,"parentElement")},textContent:function(e){return sk("Node",e,"textContent")},contains:function(e,t){return ok("Node",e,"contains")(t)},getRootNode:function(e){return ok("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?sk("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?sk("Element",e,"shadowRoot"):null},querySelector:function(e,t){return sk("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return sk("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return rk("MutationObserver").constructor}};const lk="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ck={map:{},getId:()=>(console.error(lk),-1),getNode:()=>(console.error(lk),null),removeNodeFromMap(){console.error(lk)},has:()=>(console.error(lk),!1),reset(){console.error(lk)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ck=new Proxy(ck,{get:(e,t,r)=>("map"===t&&console.error(lk),Reflect.get(e,t,r))}));let hk=Date.now;function uk(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:ak.parentElement(e)}/[1-9][0-9]{12}/.test(Date.now().toString())||(hk=()=>(new Date).getTime());function dk(e){var t;let r=null;return"getRootNode"in e&&(null==(t=ak.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ak.host(ak.getRootNode(e))&&(r=ak.host(ak.getRootNode(e))),r}function pk(e){let t,r=e;for(;t=dk(r);)r=t;return r}function mk(e){const t=e.ownerDocument;if(!t)return!1;const r=pk(e);return ak.contains(t,r)}const fk=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){id(this,"id",1),id(this,"styleIDMap",new WeakMap),id(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return ck},closestElementOfNode:uk,getBaseDimension:function e(t,r){var n,s;const i=null==(s=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:s.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),a=e(i,r),l=o.height/i.clientHeight;return{x:o.x*a.relativeScale+a.x,y:o.y*a.relativeScale+a.y,relativeScale:l,absoluteScale:a.absoluteScale*l}},getNestedRule:function e(t,r){const n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){const t=[...e],r=t.pop();return{positions:t,index:r}},getRootShadowHost:pk,getShadowHost:dk,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,s;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=ak.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=ak.parentElement(i.body))?void 0:n.scrollTop)||(null==(s=null==i?void 0:i.body)?void 0:s.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Kw&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ak.shadowRoot(e)))},hookSetter:function e(t,r,n,s,i=window){const o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,s?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)},inDom:function(e){const t=e.ownerDocument;return!!t&&(ak.contains(t,e)||mk(e))},isAncestorRemoved:function e(t,r){if(function(e){const t=e&&"host"in e&&"mode"in e&&gd.host(e)||null;return Boolean(t&&"shadowRoot"in t&&gd.shadowRoot(t)===e)}(t))return!1;const n=r.getId(t);if(!r.has(n))return!0;const s=ak.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;const s=uk(e);if(!s)return!1;try{if("string"==typeof t){if(s.classList.contains(t))return!0;if(n&&null!==s.closest("."+t))return!0}else if(bd(s,t,n))return!0}catch(i){}if(r){if(s.matches(r))return!0;if(n&&null!==s.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(let n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return hk},on:function(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)},patch:function(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}},polyfill:function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){const t={},r=(e,r)=>{const n={value:e,parent:r,children:[]};return t[e.node.id]=n,n},n=[];for(const s of e){const{nextId:e,parentId:i}=s;if(e&&e in t){const i=t[e];if(i.parent){const e=i.parent.children.indexOf(i);i.parent.children.splice(e,0,r(s,i.parent))}else{const e=n.indexOf(i);n.splice(e,0,r(s,null))}}else if(i in t){const e=t[i];e.children.push(r(s,e))}else n.push(r(s,null))}return n},shadowHostInDom:mk,throttle:function(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();s||!1!==r.leading||(s=o);const a=t-(o-s),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),s=o,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{s=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)},a))}},uniqueTextMutations:function(e){const t=new Set,r=[];for(let n=e.length;n--;){const s=e[n];t.has(s.id)||(r.push(s),t.add(s.id))}return r}},Symbol.toStringTag,{value:"Module"}));for(var gk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yk="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bk=0;bk<64;bk++)yk[gk.charCodeAt(bk)]=bk;"undefined"!=typeof window&&window.Blob&&new Blob([(e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)))("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(Ku=e.contentWindow)?void 0:Ku.Array.from)||Array.from,document.body.removeChild(e)}}catch(Hk){console.debug("Unable to override Array.from",Hk)}var wk;new yd,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(wk||(wk={}));class kk{constructor(e){nd(this,"fileName"),nd(this,"functionName"),nd(this,"lineNumber"),nd(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const vk=/(^|@)\S+:\d+/,Sk=/^\s*at .*(\S+:\d+|\(native\))/m,Ck=/^(eval@)?(\[native code])?$/,xk={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Sk)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Sk)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;const n=t.split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new kk({functionName:i,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Ck)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new kk({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,s=this.extractLocation(e.replace(t,""));return new kk({functionName:n,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[];for(let s=2,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new kk({fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[];for(let s=0,i=r.length;s<i;s+=2){const e=t.exec(r[s]);e&&n.push(new kk({functionName:e[3]||void 0,fileName:e[2],lineNumber:parseFloat(e[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(vk)&&!e.match(/^Error created at/)},this).map(function(e){const t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new kk({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Ik(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();const n=e.parentElement,s=[];if(n.children&&n.children.length>0)for(let e=0;e<n.children.length;e++){const t=n.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&s.push(t)}s.length>1&&(r+=`:eq(${s.indexOf(e)})`),t=r+(t?">"+t:""),e=n}return t}function Ak(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ek(e,t){if(0===t)return!0;const r=Object.keys(e);for(const n of r)if(Ak(e[n])&&Ek(e[n],t-1))return!0;return!1}function Ok(e,t){const r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);const n=[],s=[];return JSON.stringify(e,function(e,t){if(n.length>0){const r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?s.splice(r,1/0,e):s.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+s.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Ak(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Ak(e)&&Ek(e,r.depthOfLimit))return!0;return!1}(t))return function(e){let t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=`${t.slice(0,r.stringLengthLimit)}...`);return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const r in t){const n=t[r];Array.isArray(n)?e[r]=Ik(n.length?n[0]:null):e[r]=n}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}const Rk={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Mk(e,t,r){const n=r?Object.assign({},Rk,r):Rk,s=n.logger;if(!s)return()=>{};let i;i="string"==typeof s?t[s]:s;let o=0,a=!1;const l=[];if(n.level.includes("error")){const r=t=>{const r=t.message,s=t.error,i=xk.parse(s).map(e=>e.toString()),o=[Ok(r,n.stringifyOptions)];e({level:"error",trace:i,payload:o})};t.addEventListener("error",r),l.push(()=>{t.removeEventListener("error",r)});const s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[Ok(`Uncaught (in promise) ${r.name}: ${r.message}`,n.stringifyOptions)]):(r=new Error,s=[Ok("Uncaught (in promise)",n.stringifyOptions),Ok(t.reason,n.stringifyOptions)]);const i=xk.parse(r).map(e=>e.toString());e({level:"error",trace:i,payload:s})};t.addEventListener("unhandledrejection",s),l.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(const h of n.level)l.push(c(i,h));return()=>{l.forEach(e=>e())};function c(t,r){return t[r]?fk.patch(t,r,t=>(...s)=>{if(t.apply(this,s),!("assert"===r&&s[0]||a)){a=!0;try{const t=xk.parse(new Error).map(e=>e.toString()).splice(1),i=("assert"===r?s.slice(1):s).map(e=>Ok(e,n.stringifyOptions));o++,o<n.lengthThreshold?e({level:r,trace:t,payload:i}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[Ok("The number of log records reached the threshold.")]})}catch(i){t("rrweb logger error:",i,...s)}finally{a=!1}}}):()=>{}}}const jk={recordOptions:{blockClass:"bf-nocapture",blockSelector:void 0,ignoreClass:"bf-ignore-input",ignoreCSSAttributes:void 0,maskTextClass:"bf-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,maskTextFn:void 0},recordConsolePlugin:{level:["error"],lengthThreshold:Number.POSITIVE_INFINITY,stringifyOptions:{stringLengthLimit:Number.POSITIVE_INFINITY,numOfKeysLimit:Number.POSITIVE_INFINITY,depthOfLimit:Number.POSITIVE_INFINITY}},samplingOptions:{scroll:150,media:1e3,canvas:8,input:"last"}};class Nk{constructor(e){var t;__publicField(this,"options"),__publicField(this,"stop"),this.options={...jk.recordOptions,emit:e,plugins:[(t=jk.recordConsolePlugin,{name:"rrweb/console@1",observer:Mk,options:t})],sampling:jk.samplingOptions},this.stop=null}static mockImplementation(e){throw new Error("Method not implemented.")}start(){this.stop=qu(this.options)??null}getMirror(){return qu.mirror}takeFullSnapshot(){return qu.takeFullSnapshot()}}class _k{constructor(e){__publicField(this,"recordingManager"),__publicField(this,"isRunning"),__publicField(this,"events"),this.recordingManager=e,this.isRunning=!1,this.events=[]}start(){this.isRunning=!0}handle(e){this.isInitializingEvent(e)?this.events.push(e):this.stop(e)}isInitializingEvent(e){return[2,4].includes(e.type)||this.isSelectionEvent(e)||this.isConsoleEvent(e)}isSelectionEvent(e){return 3===e.type&&14===e.data.source}isConsoleEvent(e){return 6===e.type}stop(e){this.stamp(this.events,e.timestamp-1),this.publish(...this.events,e),this.events=[],this.isRunning=!1}stamp(e,t){e.forEach(e=>e.timestamp=t)}publish(...e){e.forEach(e=>{this.recordingManager.publishEvent(e)})}}function zk(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var s=1,i="";if("?"===e[a=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0===--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];if(s)throw new TypeError("Unbalanced pattern at ".concat(r));if(!i)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:i}),r=a}else{for(var o="",a=r+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[a++]}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=a}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,s=void 0===n?"./":n,i=t.delimiter,o=void 0===i?"/#?":i,a=[],l=0,c=0,h="",u=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=r[c],s=n.type,i=n.index;throw new TypeError("Unexpected ".concat(s," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=a[a.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||function(e){for(var t=0,r=o;t<r.length;t++){var n=r[t];if(e.indexOf(n)>-1)return!0}return!1}(r)?"[^".concat(Pk(o),"]+?"):"(?:(?!".concat(Pk(r),")[^").concat(Pk(o),"])+?")};c<r.length;){var f=u("CHAR"),g=u("NAME"),y=u("PATTERN");if(g||y){var b=f||"";-1===s.indexOf(b)&&(h+=b,b=""),h&&(a.push(h),h=""),a.push({name:g||l++,prefix:b,suffix:"",pattern:y||m(b),modifier:u("MODIFIER")||""})}else{var w=f||u("ESCAPED_CHAR");if(w)h+=w;else if(h&&(a.push(h),h=""),u("OPEN")){b=p();var k=u("NAME")||"",v=u("PATTERN")||"",S=p();d("CLOSE"),a.push({name:k||(v?l++:""),pattern:k&&!v?m(b):v,prefix:b,suffix:S,modifier:u("MODIFIER")||""})}else d("END")}}return a}function Tk(e,t){var r=[];return function(e,t,r){void 0===r&&(r={});var n=r.decode,s=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],o=n.index,a=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var r=t[e-1];"*"===r.modifier||"+"===r.modifier?a[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return s(e,r)}):a[r.name]=s(n[e],r)},c=1;c<n.length;c++)l(c);return{path:i,index:o,params:a}}}(Dk(e,r,t),r,t)}function Pk(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Lk(e){return e&&e.sensitive?"":"i"}function Fk(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var n=r.strict,s=void 0!==n&&n,i=r.start,o=void 0===i||i,a=r.end,l=void 0===a||a,c=r.encode,h=void 0===c?function(e){return e}:c,u=r.delimiter,d=void 0===u?"/#?":u,p=r.endsWith,m="[".concat(Pk(void 0===p?"":p),"]|$"),f="[".concat(Pk(d),"]"),g=o?"^":"",y=0,b=e;y<b.length;y++){var w=b[y];if("string"==typeof w)g+=Pk(h(w));else{var k=Pk(h(w.prefix)),v=Pk(h(w.suffix));if(w.pattern)if(t&&t.push(w),k||v)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";g+="(?:".concat(k,"((?:").concat(w.pattern,")(?:").concat(v).concat(k,"(?:").concat(w.pattern,"))*)").concat(v,")").concat(S)}else g+="(?:".concat(k,"(").concat(w.pattern,")").concat(v,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));g+="(".concat(w.pattern,")").concat(w.modifier)}else g+="(?:".concat(k).concat(v,")").concat(w.modifier)}}if(l)s||(g+="".concat(f,"?")),g+=r.endsWith?"(?=".concat(m,")"):"$";else{var C=e[e.length-1],x="string"==typeof C?f.indexOf(C[C.length-1])>-1:void 0===C;s||(g+="(?:".concat(f,"(?=").concat(m,"))?")),x||(g+="(?=".concat(f,"|").concat(m,")"))}return new RegExp(g,Lk(r))}(zk(e,r),t,r)}function Dk(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,s=r.exec(e.source);s;)t.push({name:s[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),s=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map(function(e){return Dk(e,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Lk(r))}(e,t,r):Fk(e,t,r)}function Bk(e,t){if(function(){if("undefined"==typeof window)return!1;const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e}()&&!t)return!1;const r=window.location.pathname;for(const s of e)try{if(Tk(s,{decode:decodeURIComponent})(r))return!1}catch(n){if(s===r)return!1}return!0}const Uk=[ed.MouseMove,ed.MouseInteraction,ed.Scroll,ed.ViewportResize,ed.Input,ed.TouchMove,ed.MediaInteraction,ed.Drag];class Wk{constructor(e){__publicField(this,"agent"),__publicField(this,"recorder"),__publicField(this,"stasher"),this.agent=e,this.recorder=new Nk(this.handleEvent.bind(this)),this.stasher=new _k(this)}start(){this.recorder.start()}handleEvent(e){const t=new URL(window.location.href),r=t.origin+t.pathname;if(Bk(this.agent.recordingBlocklist,this.agent._allowLocalhostRecording)){if(this.agent.sessionManager.isIdle){if(!this.isInteractiveEvent(e))return;this.agent.handleActivityDuringIdle()}if(this.isClick(e)){let t=qu.mirror.getNode(e.data.id);t&&this.nodeIsInteresting(t)&&(e.conversionData={},e.conversionData.eventType="click",e.conversionData.textContent=t.textContent,e.conversionData.htmlElement=t.nodeName?.toLowerCase(),e.conversionData.location=r)}this.isCustom(e)&&(e.conversionData={},e.conversionData.eventType="custom",e.conversionData.customEventType=e.data.tag,e.conversionData.location=r),this.stasher.isRunning?this.stasher.handle(e):this.publishEvent(e)}}publishEvent(e){this.agent.sender.handle(e),this.agent.timer&&this.agent.timer.restart()}startRecorderWithStasher(){this.stasher.start(),this.recorder=new Nk(this.handleEvent.bind(this)),this.recorder.start()}isClick(e){return e.type===Qu.IncrementalSnapshot&&e.data.source===ed.MouseInteraction&&e.data.type===td.Click}nodeIsInteresting(e){return"BUTTON"===e.nodeName||"ANCHOR"===e.nodeName}isCustom(e){return e.type===Qu.Custom}isInteractiveEvent(e){return e.type===Qu.IncrementalSnapshot&&Uk.includes(e.data?.source)}}class Vk{constructor(e,t){__publicField(this,"agent"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timeoutId"),this.agent=e,this.MAX_IDLE_TIME=t,this.timeoutId=0}restart(){this.stop(),this.start()}stop(){clearTimeout(this.timeoutId)}start(){this.timeoutId=window.setTimeout(this.agent.handleTimeout.bind(this.agent),this.MAX_IDLE_TIME)}}const qk=class e{constructor(){__publicField(this,"sessionId",null),__publicField(this,"lastScreenViewEventTime",0),__publicField(this,"isIdle",!1)}static getInstance(){return e.instance||(e.instance=new e),e.instance}determineSessionState(e){return!this.sessionId&&e?"new":this.sessionId&&e&&this.sessionId!==e?"changed":this.sessionId===e&&null!==this.sessionId?"active":"expired"}handleSessionTransition(e,t){switch(e){case"new":case"changed":this.updateIdleStatus(!1),t.takeFullSnapshot?.()}}updateSession(e,t={}){const r=this.determineSessionState(e);this.handleSessionTransition(r,t),this.sessionId=e}updateLastScreenViewEventTime(){this.lastScreenViewEventTime=Date.now()}updateIdleStatus(e){this.isIdle=e}getLastScreenViewEventTime(){return this.lastScreenViewEventTime}getCurrentSessionId(){return this.sessionId}};__publicField(qk,"instance");let $k=qk;const Yk=class e{constructor(){__publicField(this,"recordingManager"),__publicField(this,"sender"),__publicField(this,"MAX_IDLE_TIME"),__publicField(this,"timer"),__publicField(this,"sendEvents"),__publicField(this,"sendScreenViewEvent"),__publicField(this,"recordingBlocklist",[]),__publicField(this,"_allowLocalhostRecording"),__publicField(this,"_allowScreenRecording"),__publicField(this,"sessionCreationPromise",null),this.recordingManager=new Wk(this),this.sender=new Xu(this)}get sessionManager(){return e._sessionManager}async start({sendEvents:e,sendScreenViewEvent:t,recordingBlocklist:r,_allowLocalhostRecording:n,_allowScreenRecording:s}){this.sendEvents=e,this.sendScreenViewEvent=t,this.recordingBlocklist=r,this._allowLocalhostRecording=n,this._allowScreenRecording=s,this.MAX_IDLE_TIME=6e4,this.timer=new Vk(this,this.MAX_IDLE_TIME),this.sender.start(),this.recordingManager.start()}handleTimeout(){this.recordingManager.recorder.stop&&this.recordingManager.recorder.stop(),this.sender.send(),this.recordingManager.startRecorderWithStasher(),e._sessionManager.updateIdleStatus(!0)}handleActivityDuringIdle(){null===e._sessionManager.getCurrentSessionId()&&(e._sessionManager.getLastScreenViewEventTime()>Date.now()-5e3||this.sessionCreationPromise||(this.sessionCreationPromise=this.createSession().finally(()=>{this.sessionCreationPromise=null})))}takeFullSnapshot(){return this.recordingManager.recorder.takeFullSnapshot()}static handleCustomEvent(e){qu.addCustomEvent(e,null)}async createSession(){if(this.sendScreenViewEvent)try{this.sendScreenViewEvent({__path:window.location.href,__title:document.title,__is_session_refresh:!0})}catch(e){console.error("Failed to send screen_view event:",e)}}};__publicField(Yk,"_sessionManager",$k.getInstance());let Zk=Yk;function Gk(e){return e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_",""))}class Jk extends je{constructor(e){if(super({sdk:"web",sdkVersion:"0.0.24",...e}),__publicField(this,"lastPath",""),__publicField(this,"debounceTimer",null),__publicField(this,"agent"),__publicField(this,"sessionManager",$k.getInstance()),__publicField(this,"recordingBlocklist",[]),__publicField(this,"MAX_SCREENSHOT_SIZE",768e3),__publicField(this,"isRecordingActive",!1),this.options=e,this.agent=new Zk,this.recordingBlocklist=e.recordingBlocklist||[],!this.isServer()){this.setGlobalProperties({__referrer:document.referrer});const e=this.isTrackingDisabled();this.options.trackOutgoingLinks&&!e&&this.trackOutgoingLinks(),this.options.trackScreenViews&&this.trackScreenViews(),this.options.trackAttributes&&!e&&this.trackAttributes(),this.options.enableRecording&&this.options._allowScreenRecording&&!e&&(this.startRecording(),this.isRecordingActive=!0,console.log("Brainfish has started ambient learning"))}}debounce(e,t){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(e,t)}isServer(){return"undefined"==typeof document}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("a");if(r&&t){const e=r.getAttribute("href");e?.startsWith("http")&&super.track("link_out",{href:e,text:r.innerText||r.getAttribute("title")||t.getAttribute("alt")||t.getAttribute("title")})}})}trackScreenViews(){if(this.isServer())return;this.screenView();const e=history.pushState;history.pushState=function(...t){const r=e.apply(this,t);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),r};const t=history.replaceState;history.replaceState=function(...e){const r=t.apply(this,e);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),r},window.addEventListener("popstate",function(){window.dispatchEvent(new Event("locationchange"))});const r=()=>this.debounce(()=>this.screenView(),100);this.options.trackHashChanges?window.addEventListener("hashchange",r):window.addEventListener("locationchange",r)}trackAttributes(){this.isServer()||document.addEventListener("click",e=>{const t=e.target,r=t.closest("button"),n=t.closest("a"),s=r?.getAttribute("data-track")?r:n?.getAttribute("data-track")?n:null;if(s){const e={};for(const r of s.attributes)r.name.startsWith("data-")&&"data-track"!==r.name&&(e[Gk(r.name.replace(/^data-/,""))]=r.value);const t=s.getAttribute("data-track");t&&super.track(t,e)}})}startRecording(){this.isServer()||this.agent.start({sendEvents:this.recordEventsToServer.bind(this),sendScreenViewEvent:this.sendScreenViewEvent.bind(this),recordingBlocklist:this.recordingBlocklist,_allowLocalhostRecording:this.options._allowLocalhostRecording})}async screenView(e,t){if(this.isServer())return;let r,n;if("string"==typeof e?(r=e,n=t):(r=window.location.href,n=e),this.lastPath===r)return;this.lastPath=r;const s={...n??{},__path:r,__title:document.title};if(this.options.enableRecording&&!this.isTrackingDisabled()&&Bk(this.recordingBlocklist,this.options._allowLocalhostRecording))try{const e=await async function(e){try{await Nt(e);const t=document.body.cloneNode(!0);return jt(t),await bt(t)}catch(t){console.error("An error occurred:",t)}}();e&&(e.length<=this.MAX_SCREENSHOT_SIZE?s.__screenshot=e:(s.__screenshotOmitted=!0,s.__screenshotSizeInBytes=e.length))}catch(Hk){s.__screenshotOmitted=!0,s.__screenshotError=Hk.message}this.sendScreenViewEvent(s)}async recordEventsToServer(e){const t=await this.record(e);this.sessionManager.updateSession(t,{takeFullSnapshot:()=>{this.agent.takeFullSnapshot()}})}sendScreenViewEvent(e){super.track("screen_view",e),this.sessionManager.updateLastScreenViewEventTime()}disableTracking(){super.disableTracking(),this.isRecordingActive&&(this.agent.recordingManager.recorder.stop&&this.agent.recordingManager.recorder.stop(),this.isRecordingActive=!1,console.log("Brainfish has stopped ambient learning"))}enableTracking(){super.enableTracking()}}(e=>{if(e.BrainfishAnalytics&&"q"in e.BrainfishAnalytics){const t=e.BrainfishAnalytics.q||[],r=t.findIndex(e=>"init"===e[0]);if(-1===r)return void console.warn("BrainfishAnalytics has not been initialized.");const[n]=t.splice(r,1),s=new Jk(n[1]);t.forEach(e=>{e[0]in s&&s[e[0]](...e.slice(1))}),e.BrainfishAnalytics=(e,...t)=>{const r=s[e]?s[e].bind(s):void 0;if("function"==typeof r)return r(...t);console.warn(`Method ${e} does not exist on BrainfishAnalytics`)}}})(window)}();
2
2
  //# sourceMappingURL=tracker.js.map