sentiero 1.0.0.alpha1
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +7 -0
- data/README.md +679 -0
- data/lib/sentiero/analytics/analyzer.rb +91 -0
- data/lib/sentiero/analytics/bounded.rb +29 -0
- data/lib/sentiero/analytics/browser_event_discovery.rb +70 -0
- data/lib/sentiero/analytics/collectors/click_collector.rb +135 -0
- data/lib/sentiero/analytics/collectors/custom_tag_collector.rb +61 -0
- data/lib/sentiero/analytics/collectors/error_collector.rb +89 -0
- data/lib/sentiero/analytics/collectors/form_collector.rb +156 -0
- data/lib/sentiero/analytics/collectors/frustration_collector.rb +85 -0
- data/lib/sentiero/analytics/collectors/scroll_collector.rb +156 -0
- data/lib/sentiero/analytics/collectors/vitals_collector.rb +104 -0
- data/lib/sentiero/analytics/conversion_analyzer.rb +247 -0
- data/lib/sentiero/analytics/engagement_analyzer.rb +331 -0
- data/lib/sentiero/analytics/entry_attribution.rb +71 -0
- data/lib/sentiero/analytics/error_discovery.rb +118 -0
- data/lib/sentiero/analytics/events.rb +21 -0
- data/lib/sentiero/analytics/exporter.rb +242 -0
- data/lib/sentiero/analytics/form_analyzer.rb +153 -0
- data/lib/sentiero/analytics/frustration/detectors.rb +158 -0
- data/lib/sentiero/analytics/frustration_analyzer.rb +235 -0
- data/lib/sentiero/analytics/funnel_analyzer.rb +160 -0
- data/lib/sentiero/analytics/heatmap_analyzer.rb +93 -0
- data/lib/sentiero/analytics/page_report_analyzer.rb +198 -0
- data/lib/sentiero/analytics/problem_detail.rb +97 -0
- data/lib/sentiero/analytics/scroll_depth_analyzer.rb +30 -0
- data/lib/sentiero/analytics/segmenter.rb +133 -0
- data/lib/sentiero/analytics/server_event_metrics.rb +120 -0
- data/lib/sentiero/analytics/stats.rb +30 -0
- data/lib/sentiero/analytics/stats_aggregator/result_builder.rb +153 -0
- data/lib/sentiero/analytics/stats_aggregator.rb +346 -0
- data/lib/sentiero/analytics/web_vitals_analyzer.rb +57 -0
- data/lib/sentiero/configuration.rb +184 -0
- data/lib/sentiero/erasure.rb +48 -0
- data/lib/sentiero/fingerprint.rb +34 -0
- data/lib/sentiero/ip_anonymizer.rb +29 -0
- data/lib/sentiero/redaction/config.rb +61 -0
- data/lib/sentiero/redaction.rb +207 -0
- data/lib/sentiero/reporter/configuration.rb +50 -0
- data/lib/sentiero/reporter/context.rb +31 -0
- data/lib/sentiero/reporter/dispatcher.rb +91 -0
- data/lib/sentiero/reporter/http_transport.rb +57 -0
- data/lib/sentiero/reporter/log_transport.rb +26 -0
- data/lib/sentiero/reporter/middleware.rb +62 -0
- data/lib/sentiero/reporter/normalizer.rb +14 -0
- data/lib/sentiero/reporter/null_transport.rb +18 -0
- data/lib/sentiero/reporter/report_context.rb +29 -0
- data/lib/sentiero/reporter/scrubber.rb +47 -0
- data/lib/sentiero/reporter/test_helper.rb +32 -0
- data/lib/sentiero/reporter/test_transport.rb +28 -0
- data/lib/sentiero/reporter.rb +214 -0
- data/lib/sentiero/roda.rb +47 -0
- data/lib/sentiero/store/error_store.rb +220 -0
- data/lib/sentiero/store/limits.rb +31 -0
- data/lib/sentiero/store/session_store.rb +118 -0
- data/lib/sentiero/store.rb +72 -0
- data/lib/sentiero/stores/file.rb +566 -0
- data/lib/sentiero/stores/memory.rb +362 -0
- data/lib/sentiero/stores/redis/keys.rb +59 -0
- data/lib/sentiero/stores/redis/lua.rb +119 -0
- data/lib/sentiero/stores/redis.rb +665 -0
- data/lib/sentiero/stores/sqlite/schema.rb +79 -0
- data/lib/sentiero/stores/sqlite.rb +626 -0
- data/lib/sentiero/user_agent.rb +32 -0
- data/lib/sentiero/version.rb +5 -0
- data/lib/sentiero/web/analytics_app.rb +538 -0
- data/lib/sentiero/web/assets/analytics-RH24EOLD.js +1 -0
- data/lib/sentiero/web/assets/dashboard-JFYNHZZV.js +3 -0
- data/lib/sentiero/web/assets/heatmap-EBKFWSKN.js +1 -0
- data/lib/sentiero/web/assets/import-HIMBJJ4S.js +1 -0
- data/lib/sentiero/web/assets/manifest.json +11 -0
- data/lib/sentiero/web/assets/recorder-SLLXSUUX.js +71 -0
- data/lib/sentiero/web/assets/rrweb-player-cd435a95.js +126 -0
- data/lib/sentiero/web/assets/rrweb-player-css-ce5e9629.css +2 -0
- data/lib/sentiero/web/assets/sessions_index-2RAGTEZM.js +1 -0
- data/lib/sentiero/web/assets/style-d71e72fd.css +2 -0
- data/lib/sentiero/web/assets_app.rb +42 -0
- data/lib/sentiero/web/base_app.rb +319 -0
- data/lib/sentiero/web/basic_auth.rb +27 -0
- data/lib/sentiero/web/basic_auth_check.rb +41 -0
- data/lib/sentiero/web/body_reader.rb +44 -0
- data/lib/sentiero/web/csv_writer.rb +45 -0
- data/lib/sentiero/web/dashboard_app.rb +236 -0
- data/lib/sentiero/web/errors_app.rb +97 -0
- data/lib/sentiero/web/escaping.rb +37 -0
- data/lib/sentiero/web/events_app.rb +196 -0
- data/lib/sentiero/web/formatting.rb +43 -0
- data/lib/sentiero/web/ingest_app.rb +92 -0
- data/lib/sentiero/web/manifest.rb +43 -0
- data/lib/sentiero/web/monitoring_app.rb +316 -0
- data/lib/sentiero/web/script_tag.rb +57 -0
- data/lib/sentiero/web/shareable_replay.rb +88 -0
- data/lib/sentiero/web/templates/_analytics_nav.html.erb +22 -0
- data/lib/sentiero/web/templates/_brand.html.erb +18 -0
- data/lib/sentiero/web/templates/_date_range.html.erb +18 -0
- data/lib/sentiero/web/templates/_errors_client_filter.html.erb +25 -0
- data/lib/sentiero/web/templates/_errors_server_filter.html.erb +36 -0
- data/lib/sentiero/web/templates/_events_browser_filter.html.erb +18 -0
- data/lib/sentiero/web/templates/_events_server_filter.html.erb +39 -0
- data/lib/sentiero/web/templates/_pagination.html.erb +14 -0
- data/lib/sentiero/web/templates/_payload_metrics.html.erb +62 -0
- data/lib/sentiero/web/templates/_session_row.html.erb +42 -0
- data/lib/sentiero/web/templates/_sibling_tab_hint.html.erb +6 -0
- data/lib/sentiero/web/templates/_tabs.html.erb +10 -0
- data/lib/sentiero/web/templates/_truncation_warning.html.erb +19 -0
- data/lib/sentiero/web/templates/_window_tab.html.erb +5 -0
- data/lib/sentiero/web/templates/analytics_conversions.html.erb +94 -0
- data/lib/sentiero/web/templates/analytics_engagement.html.erb +101 -0
- data/lib/sentiero/web/templates/analytics_frustration.html.erb +135 -0
- data/lib/sentiero/web/templates/analytics_funnel.html.erb +103 -0
- data/lib/sentiero/web/templates/analytics_index.html.erb +380 -0
- data/lib/sentiero/web/templates/analytics_page.html.erb +287 -0
- data/lib/sentiero/web/templates/analytics_scroll.html.erb +94 -0
- data/lib/sentiero/web/templates/analytics_vitals.html.erb +91 -0
- data/lib/sentiero/web/templates/client_error_show.html.erb +73 -0
- data/lib/sentiero/web/templates/dashboard.html.erb +56 -0
- data/lib/sentiero/web/templates/errors_index.html.erb +149 -0
- data/lib/sentiero/web/templates/event_show.html.erb +52 -0
- data/lib/sentiero/web/templates/events_index.html.erb +177 -0
- data/lib/sentiero/web/templates/export_index.html.erb +69 -0
- data/lib/sentiero/web/templates/forms.html.erb +105 -0
- data/lib/sentiero/web/templates/heatmap.html.erb +76 -0
- data/lib/sentiero/web/templates/import.html.erb +39 -0
- data/lib/sentiero/web/templates/problem_show.html.erb +200 -0
- data/lib/sentiero/web/templates/segments.html.erb +114 -0
- data/lib/sentiero/web/templates/session_show.html.erb +195 -0
- data/lib/sentiero/web/templates/sessions_index.html.erb +97 -0
- data/lib/sentiero/web/track_app.rb +57 -0
- data/lib/sentiero/web/views/analytics_index_view.rb +86 -0
- data/lib/sentiero/web/views/analyzer_view.rb +27 -0
- data/lib/sentiero/web/views/base_view.rb +76 -0
- data/lib/sentiero/web/views/client_error_show_view.rb +29 -0
- data/lib/sentiero/web/views/conversions_view.rb +41 -0
- data/lib/sentiero/web/views/engagement_view.rb +67 -0
- data/lib/sentiero/web/views/errors_index_view.rb +37 -0
- data/lib/sentiero/web/views/event_show_view.rb +20 -0
- data/lib/sentiero/web/views/events_index_view.rb +56 -0
- data/lib/sentiero/web/views/export_view.rb +23 -0
- data/lib/sentiero/web/views/forms_view.rb +28 -0
- data/lib/sentiero/web/views/frustration_view.rb +15 -0
- data/lib/sentiero/web/views/funnel_view.rb +36 -0
- data/lib/sentiero/web/views/heatmap_view.rb +34 -0
- data/lib/sentiero/web/views/import_view.rb +13 -0
- data/lib/sentiero/web/views/page_report_view.rb +43 -0
- data/lib/sentiero/web/views/problem_show_view.rb +46 -0
- data/lib/sentiero/web/views/scroll_view.rb +23 -0
- data/lib/sentiero/web/views/segments_view.rb +28 -0
- data/lib/sentiero/web/views/session_show_view.rb +105 -0
- data/lib/sentiero/web/views/sessions_index_view.rb +28 -0
- data/lib/sentiero/web/views/vitals_view.rb +45 -0
- data/lib/sentiero/web/views.rb +24 -0
- data/lib/sentiero/window_ref.rb +6 -0
- data/lib/sentiero.rb +69 -0
- metadata +232 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
(()=>{var Yl=Object.defineProperty;var Hl=(i,e)=>()=>(i&&(e=i(i=0)),e);var Zl=(i,e)=>{for(var t in e)Yl(i,t,{get:e[t],enumerable:!0})};var Vl={};Zl(Vl,{CLSThresholds:()=>Zs,FCPThresholds:()=>Hs,FIDThresholds:()=>qs,INPThresholds:()=>Xs,LCPThresholds:()=>Js,TTFBThresholds:()=>Ks,onCLS:()=>Kp,onFCP:()=>Pl,onFID:()=>um,onINP:()=>im,onLCP:()=>sm,onTTFB:()=>om});var Ys,Le,$t,kl,ti,Ll,Ge,Qs,ii,de,ot,pe,en,Ft,si,nt,Ol,ri,Dl,Jp,tn,Ut,Hs,Pl,Zs,Kp,$l,Gs,Qr,qp,Fl,Qp,Ee,ei,Ul,em,tm,rm,Bl,Xs,im,Js,js,sm,Ks,nm,om,Pt,am,_l,zl,lm,Wl,qs,um,Gl=Hl(()=>{Ll=-1,Ge=function(i){addEventListener("pageshow",function(e){e.persisted&&(Ll=e.timeStamp,i(e))},!0)},Qs=function(){var i=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(i&&i.responseStart>0&&i.responseStart<performance.now())return i},ii=function(){var i=Qs();return i&&i.activationStart||0},de=function(i,e){var t=Qs(),r="navigate";return Ll>=0?r="back-forward-cache":t&&(document.prerendering||ii()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:i,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ot=function(i,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(i)){var r=new PerformanceObserver(function(s){Promise.resolve().then(function(){e(s.getEntries())})});return r.observe(Object.assign({type:i,buffered:!0},t||{})),r}}catch{}},pe=function(i,e,t,r){var s,n;return function(o){e.value>=0&&(o||r)&&((n=e.value-(s||0))||s===void 0)&&(s=e.value,e.delta=n,e.rating=function(l,a){return l>a[1]?"poor":l>a[0]?"needs-improvement":"good"}(e.value,t),i(e))}},en=function(i){requestAnimationFrame(function(){return requestAnimationFrame(function(){return i()})})},Ft=function(i){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&i()})},si=function(i){var e=!1;return function(){e||(i(),e=!0)}},nt=-1,Ol=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ri=function(i){document.visibilityState==="hidden"&&nt>-1&&(nt=i.type==="visibilitychange"?i.timeStamp:0,Jp())},Dl=function(){addEventListener("visibilitychange",ri,!0),addEventListener("prerenderingchange",ri,!0)},Jp=function(){removeEventListener("visibilitychange",ri,!0),removeEventListener("prerenderingchange",ri,!0)},tn=function(){return nt<0&&(nt=Ol(),Dl(),Ge(function(){setTimeout(function(){nt=Ol(),Dl()},0)})),{get firstHiddenTime(){return nt}}},Ut=function(i){document.prerendering?addEventListener("prerenderingchange",function(){return i()},!0):i()},Hs=[1800,3e3],Pl=function(i,e){e=e||{},Ut(function(){var t,r=tn(),s=de("FCP"),n=ot("paint",function(o){o.forEach(function(l){l.name==="first-contentful-paint"&&(n.disconnect(),l.startTime<r.firstHiddenTime&&(s.value=Math.max(l.startTime-ii(),0),s.entries.push(l),t(!0)))})});n&&(t=pe(i,s,Hs,e.reportAllChanges),Ge(function(o){s=de("FCP"),t=pe(i,s,Hs,e.reportAllChanges),en(function(){s.value=performance.now()-o.timeStamp,t(!0)})}))})},Zs=[.1,.25],Kp=function(i,e){e=e||{},Pl(si(function(){var t,r=de("CLS",0),s=0,n=[],o=function(a){a.forEach(function(u){if(!u.hadRecentInput){var c=n[0],h=n[n.length-1];s&&u.startTime-h.startTime<1e3&&u.startTime-c.startTime<5e3?(s+=u.value,n.push(u)):(s=u.value,n=[u])}}),s>r.value&&(r.value=s,r.entries=n,t())},l=ot("layout-shift",o);l&&(t=pe(i,r,Zs,e.reportAllChanges),Ft(function(){o(l.takeRecords()),t(!0)}),Ge(function(){s=0,r=de("CLS",0),t=pe(i,r,Zs,e.reportAllChanges),en(function(){return t()})}),setTimeout(t,0))}))},$l=0,Gs=1/0,Qr=0,qp=function(i){i.forEach(function(e){e.interactionId&&(Gs=Math.min(Gs,e.interactionId),Qr=Math.max(Qr,e.interactionId),$l=Qr?(Qr-Gs)/7+1:0)})},Fl=function(){return Ys?$l:performance.interactionCount||0},Qp=function(){"interactionCount"in performance||Ys||(Ys=ot("event",qp,{type:"event",buffered:!0,durationThreshold:0}))},Ee=[],ei=new Map,Ul=0,em=function(){var i=Math.min(Ee.length-1,Math.floor((Fl()-Ul)/50));return Ee[i]},tm=[],rm=function(i){if(tm.forEach(function(s){return s(i)}),i.interactionId||i.entryType==="first-input"){var e=Ee[Ee.length-1],t=ei.get(i.interactionId);if(t||Ee.length<10||i.duration>e.latency){if(t)i.duration>t.latency?(t.entries=[i],t.latency=i.duration):i.duration===t.latency&&i.startTime===t.entries[0].startTime&&t.entries.push(i);else{var r={id:i.interactionId,latency:i.duration,entries:[i]};ei.set(r.id,r),Ee.push(r)}Ee.sort(function(s,n){return n.latency-s.latency}),Ee.length>10&&Ee.splice(10).forEach(function(s){return ei.delete(s.id)})}}},Bl=function(i){var e=self.requestIdleCallback||self.setTimeout,t=-1;return i=si(i),document.visibilityState==="hidden"?i():(t=e(i),Ft(i)),t},Xs=[200,500],im=function(i,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},Ut(function(){var t;Qp();var r,s=de("INP"),n=function(l){Bl(function(){l.forEach(rm);var a=em();a&&a.latency!==s.value&&(s.value=a.latency,s.entries=a.entries,r())})},o=ot("event",n,{durationThreshold:(t=e.durationThreshold)!==null&&t!==void 0?t:40});r=pe(i,s,Xs,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Ft(function(){n(o.takeRecords()),r(!0)}),Ge(function(){Ul=Fl(),Ee.length=0,ei.clear(),s=de("INP"),r=pe(i,s,Xs,e.reportAllChanges)}))}))},Js=[2500,4e3],js={},sm=function(i,e){e=e||{},Ut(function(){var t,r=tn(),s=de("LCP"),n=function(a){e.reportAllChanges||(a=a.slice(-1)),a.forEach(function(u){u.startTime<r.firstHiddenTime&&(s.value=Math.max(u.startTime-ii(),0),s.entries=[u],t())})},o=ot("largest-contentful-paint",n);if(o){t=pe(i,s,Js,e.reportAllChanges);var l=si(function(){js[s.id]||(n(o.takeRecords()),o.disconnect(),js[s.id]=!0,t(!0))});["keydown","click"].forEach(function(a){addEventListener(a,function(){return Bl(l)},{once:!0,capture:!0})}),Ft(l),Ge(function(a){s=de("LCP"),t=pe(i,s,Js,e.reportAllChanges),en(function(){s.value=performance.now()-a.timeStamp,js[s.id]=!0,t(!0)})})}})},Ks=[800,1800],nm=function i(e){document.prerendering?Ut(function(){return i(e)}):document.readyState!=="complete"?addEventListener("load",function(){return i(e)},!0):setTimeout(e,0)},om=function(i,e){e=e||{};var t=de("TTFB"),r=pe(i,t,Ks,e.reportAllChanges);nm(function(){var s=Qs();s&&(t.value=Math.max(s.responseStart-ii(),0),t.entries=[s],r(!0),Ge(function(){t=de("TTFB",0),(r=pe(i,t,Ks,e.reportAllChanges))(!0)}))})},Pt={passive:!0,capture:!0},am=new Date,_l=function(i,e){Le||(Le=e,$t=i,kl=new Date,Wl(removeEventListener),zl())},zl=function(){if($t>=0&&$t<kl-am){var i={entryType:"first-input",name:Le.type,target:Le.target,cancelable:Le.cancelable,startTime:Le.timeStamp,processingStart:Le.timeStamp+$t};ti.forEach(function(e){e(i)}),ti=[]}},lm=function(i){if(i.cancelable){var e=(i.timeStamp>1e12?new Date:performance.now())-i.timeStamp;i.type=="pointerdown"?function(t,r){var s=function(){_l(t,r),o()},n=function(){o()},o=function(){removeEventListener("pointerup",s,Pt),removeEventListener("pointercancel",n,Pt)};addEventListener("pointerup",s,Pt),addEventListener("pointercancel",n,Pt)}(e,i):_l(e,i)}},Wl=function(i){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return i(e,lm,Pt)})},qs=[100,300],um=function(i,e){e=e||{},Ut(function(){var t,r=tn(),s=de("FID"),n=function(a){a.startTime<r.firstHiddenTime&&(s.value=a.processingStart-a.startTime,s.entries.push(a),t(!0))},o=function(a){a.forEach(n)},l=ot("first-input",o);t=pe(i,s,qs,e.reportAllChanges),l&&(Ft(si(function(){o(l.takeRecords()),l.disconnect()})),Ge(function(){var a;s=de("FID"),t=pe(i,s,qs,e.reportAllChanges),ti=[],$t=-1,Le=null,Wl(addEventListener),a=n,ti.push(a),zl()}))})}});var Xl=Object.defineProperty,Jl=(i,e,t)=>e in i?Xl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,v=(i,e,t)=>Jl(i,typeof e!="symbol"?e+"":e,t),rn,Kl=Object.defineProperty,ql=(i,e,t)=>e in i?Kl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,sn=(i,e,t)=>ql(i,typeof e!="symbol"?e+"":e,t),Q=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(Q||{}),nn={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},on={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Bt={},Ql=()=>!!globalThis.Zone;function us(i){if(Bt[i])return Bt[i];let e=globalThis[i],t=e.prototype,r=i in nn?nn[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=i in on?on[i]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o&&!Ql())return Bt[i]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[i].prototype;return document.body.removeChild(l),u?Bt[i]=u:t}catch{return t}}var oi={};function Ne(i,e,t){var r;let s=`${i}.${String(t)}`;if(oi[s])return oi[s].call(e);let n=us(i),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(oi[s]=o,o.call(e)):e[t]}var ai={};function to(i,e,t){let r=`${i}.${String(t)}`;if(ai[r])return ai[r].bind(e);let n=us(i)[t];return typeof n!="function"?e[t]:(ai[r]=n,n.bind(e))}function eu(i){return Ne("Node",i,"ownerDocument")}function tu(i){return Ne("Node",i,"childNodes")}function ru(i){return Ne("Node",i,"parentNode")}function iu(i){return Ne("Node",i,"parentElement")}function su(i){return Ne("Node",i,"textContent")}function nu(i,e){return to("Node",i,"contains")(e)}function ou(i){return to("Node",i,"getRootNode")()}function au(i){return!i||!("host"in i)?null:Ne("ShadowRoot",i,"host")}function lu(i){return i.styleSheets}function uu(i){return!i||!("shadowRoot"in i)?null:Ne("Element",i,"shadowRoot")}function cu(i,e){return Ne("Element",i,"querySelector")(e)}function hu(i,e){return Ne("Element",i,"querySelectorAll")(e)}function fu(){return us("MutationObserver").constructor}function du(i,e,t){try{if(!(e in i))return()=>{};let r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch{return()=>{}}}var ie={ownerDocument:eu,childNodes:tu,parentNode:ru,parentElement:iu,textContent:su,contains:nu,getRootNode:ou,host:au,styleSheets:lu,shadowRoot:uu,querySelector:cu,querySelectorAll:hu,mutationObserver:fu,patch:du};function ro(i){return i.nodeType===i.ELEMENT_NODE}function dt(i){let e=i&&"host"in i&&"mode"in i&&ie.host(i)||null;return!!(e&&"shadowRoot"in e&&ie.shadowRoot(e)===i)}function pt(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function pu(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function mu(i){let{cssText:e}=i;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Si(i){try{let e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&(t=i.ownerNode.baseURI);let r=Array.from(e,s=>io(s,t)).join("");return pu(r)}catch{return null}}function io(i,e){if(yu(i)){let t;try{t=Si(i.styleSheet)||mu(i)}catch{t=i.cssText}return i.styleSheet.href?vr(t,i.styleSheet.href):t}else{let t=i.cssText;return vu(i)&&i.selectorText.includes(":")&&(t=gu(t)),e?vr(t,e):t}}function gu(i){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function yu(i){return"styleSheet"in i}function vu(i){return"selectorText"in i}var mr=class{constructor(){sn(this,"idNodeMap",new Map),sn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?((t=this.getMeta(e))==null?void 0:t.id)??-1:-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){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function wu(){return new mr}function gr({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:n}){let o=s||"",l=r&&Fe(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,i):o="*".repeat(o.length)),o}function Fe(i){return i.toLowerCase()}var an="__rrweb_original__";function Su(i){let e=i.getContext("2d");if(!e)return!0;let t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){let n=e.getImageData,o=an in n?n[an]:n;if(new Uint32Array(o.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function yr(i){let e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?Fe(e):null}function so(i,e){let t;try{t=new URL(i,e??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return s?.[1]??null}function bu(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}var Cu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xu=/^(?:[a-z+]+:)?\/\//i,Eu=/^www\..*/i,Iu=/^(data:)([^,]*),(.*)/i;function vr(i,e){return(i||"").replace(Cu,(t,r,s,n,o,l)=>{let a=s||o||l,u=r||n||"";if(!a)return t;if(xu.test(a)||Eu.test(a))return`url(${u}${a}${u})`;if(Iu.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${bu(e)+a}${u})`;let c=e.split("/"),h=a.split("/");c.pop();for(let p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function zt(i,e=!1){return e?i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Mu(i,e,t=!1){let r=Array.from(e.childNodes),s=[],n=0;if(r.length>1&&i&&typeof i=="string"){let o=zt(i,t),l=o.length/i.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){let u=zt(r[a].textContent,t),c=100,h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let p=u.substring(0,h),g=o.split(p),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&r[a-1].textContent!=="")m=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return s.push(i),s;h=c+1}else h===u.length-1&&(m=o.indexOf(p));if(g.length>=2&&h>c){let d=r[a-1].textContent;if(d&&typeof d=="string"){let f=zt(d).length;m=o.indexOf(p,f)}m===-1&&(m=g[0].length)}if(m!==-1){let d=Math.floor(m/l);for(;d>0&&d<i.length;){if(n+=1,n>50*r.length)return s.push(i),s;let f=zt(i.substring(0,d),t);if(f.length===m){s.push(i.substring(0,d)),i=i.substring(d),o=o.substring(m);break}else f.length<m?d+=Math.max(1,Math.floor((m-f.length)/l)):d-=Math.max(1,Math.floor((f.length-m)*l))}break}}}}return s.push(i),s}function Au(i,e){return Mu(i,e).join("/* rr_split */")}var Nu=1,Ru=new RegExp("[^a-z0-9-_:]"),gt=-2;function no(){return Nu++}function Tu(i){if(i instanceof HTMLFormElement)return"form";let e=Fe(i.tagName);return Ru.test(e)?"div":e}var Ye,ln,Ou=/^[^ \t\n\r\u000c]+/,Du=/^[, \t\n\r\u000c]+/;function _u(i,e){if(e.trim()==="")return e;let t=0;function r(n){let o,l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let s=[];for(;r(Du),!(t>=e.length);){let n=r(Ou);if(n.slice(-1)===",")n=Xe(i,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Xe(i,n);let l=!1;for(;;){let a=e.charAt(t);if(a===""){s.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return s.join(", ")}var un=new WeakMap;function Xe(i,e){return!e||e.trim()===""?e:cs(i,e)}function ku(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function cs(i,e){let t=un.get(i);if(t||(t=i.createElement("a"),un.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function oo(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Xe(i,r):t==="srcset"?_u(i,r):t==="style"?vr(r,cs(i)):e==="object"&&t==="data"?Xe(i,r):r)}function ao(i,e,t){return["video","audio"].includes(i)&&e==="autoplay"}function Lu(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){let s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch{}return!1}function wr(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?wr(ie.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){let s=i.classList[r];if(e.test(s))return!0}return t?wr(ie.parentNode(i),e,t):!1}function lo(i,e,t,r){let s;if(ro(i)){if(s=i,!ie.childNodes(s).length)return!1}else{if(ie.parentElement(i)===null)return!1;s=ie.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(wr(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch{}return!1}function Pu(i,e,t){let r=i.contentWindow;if(!r)return;let s=!1,n;try{n=r.document.readyState}catch{return}if(n!=="complete"){let l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}let o="about:blank";if(r.location.href!==o||i.src===o||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function $u(i,e,t){let r=!1,s;try{s=i.sheet}catch{return}if(s)return;let n=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Fu(i,e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:d=!1,cssCaptured:f=!1}=e,S=Uu(t,r);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:Q.Document,childNodes:[],compatMode:i.compatMode}:{type:Q.Document,childNodes:[]};case i.DOCUMENT_TYPE_NODE:return{type:Q.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:S};case i.ELEMENT_NODE:return zu(i,{doc:t,blockClass:s,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:h,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:d,rootId:S});case i.TEXT_NODE:return Bu(i,{doc:t,needsMask:o,maskTextFn:u,rootId:S,cssCaptured:f});case i.CDATA_SECTION_NODE:return{type:Q.CDATA,textContent:"",rootId:S};case i.COMMENT_NODE:return{type:Q.Comment,textContent:ie.textContent(i)||"",rootId:S};default:return!1}}function Uu(i,e){if(!e.hasNode(i))return;let t=e.getId(i);return t===1?void 0:t}function Bu(i,e){let{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:n}=e,o=ie.parentNode(i),l=o&&o.tagName,a="",u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?a="SCRIPT_PLACEHOLDER":n||(a=ie.textContent(i),u&&a&&(a=vr(a,cs(e.doc)))),!u&&!c&&a&&t&&(a=r?r(a,ie.parentElement(i)):a.replace(/[\S]/g,"*")),{type:Q.Text,textContent:a||"",rootId:s}}function zu(i,e){let{doc:t,blockClass:r,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:g}=e,m=Lu(i,r,s),d=Tu(i),f={},S=i.attributes.length;for(let y=0;y<S;y++){let b=i.attributes[y];ao(d,b.name,b.value)||(f[b.name]=oo(t,d,Fe(b.name),b.value))}if(d==="link"&&n){let y=Array.from(t.styleSheets).find(E=>E.href===i.href),b=null;y&&(b=Si(y)),b&&(delete f.rel,delete f.href,f._cssText=b)}if(d==="style"&&i.sheet){let y=Si(i.sheet);y&&(i.childNodes.length>1&&(y=Au(y,i)),f._cssText=y)}if(["input","textarea","select"].includes(d)){let y=i.value,b=i.checked;f.type!=="radio"&&f.type!=="checkbox"&&f.type!=="submit"&&f.type!=="button"&&y?f.value=gr({element:i,type:yr(i),tagName:d,value:y,maskInputOptions:o,maskInputFn:l}):b&&(f.checked=b)}if(d==="option"&&(i.selected&&!o.select?f.selected=!0:delete f.selected),d==="dialog"&&i.open&&(f.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(i.__context==="2d")Su(i)||(f.rr_dataURL=i.toDataURL(a.type,a.quality));else if(!("__context"in i)){let y=i.toDataURL(a.type,a.quality),b=t.createElement("canvas");b.width=i.width,b.height=i.height;let E=b.toDataURL(a.type,a.quality);y!==E&&(f.rr_dataURL=y)}}if(d==="img"&&u){Ye||(Ye=t.createElement("canvas"),ln=Ye.getContext("2d"));let y=i,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",E=y.crossOrigin,M=()=>{y.removeEventListener("load",M);try{Ye.width=y.naturalWidth,Ye.height=y.naturalHeight,ln.drawImage(y,0,0),f.rr_dataURL=Ye.toDataURL(a.type,a.quality)}catch(R){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?M():y.addEventListener("load",M);return}else console.warn(`Cannot inline img src=${b}! Error: ${R}`)}y.crossOrigin==="anonymous"&&(E?f.crossOrigin=E:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?M():y.addEventListener("load",M)}if(["audio","video"].includes(d)){let y=f;y.rr_mediaState=i.paused?"paused":"played",y.rr_mediaCurrentTime=i.currentTime,y.rr_mediaPlaybackRate=i.playbackRate,y.rr_mediaMuted=i.muted,y.rr_mediaLoop=i.loop,y.rr_mediaVolume=i.volume}if(p||(i.scrollLeft&&(f.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(f.rr_scrollTop=i.scrollTop)),m){let{width:y,height:b}=i.getBoundingClientRect();f={class:f.class,rr_width:`${y}px`,rr_height:`${b}px`}}d==="iframe"&&!h(f.src)&&(i.contentDocument||(f.rr_src=f.src),delete f.src);let w;try{customElements.get(d)&&(w=!0)}catch{}return{type:Q.Element,tagName:d,attributes:f,childNodes:[],isSVG:ku(i)||void 0,needBlock:m,rootId:g,isCustom:w}}function W(i){return i==null?"":i.toLowerCase()}function uo(i){return i===!0||i==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:i==="all",headMetaDescKeywords:i==="all",headTitleMutations:i==="all"}:i||{}}function Wu(i,e){if(e.comment&&i.type===Q.Comment)return!0;if(i.type===Q.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&so(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(W(i.attributes.name).match(/^msapplication-tile(image|color)$/)||W(i.attributes.name)==="application-name"||W(i.attributes.rel)==="icon"||W(i.attributes.rel)==="apple-touch-icon"||W(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&W(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(W(i.attributes.property).match(/^(og|twitter|fb):/)||W(i.attributes.name).match(/^(og|twitter):/)||W(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(W(i.attributes.name)==="robots"||W(i.attributes.name)==="googlebot"||W(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(W(i.attributes.name)==="author"||W(i.attributes.name)==="generator"||W(i.attributes.name)==="framework"||W(i.attributes.name)==="publisher"||W(i.attributes.name)==="progid"||W(i.attributes.property).match(/^article:/)||W(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(W(i.attributes.name)==="google-site-verification"||W(i.attributes.name)==="yandex-verification"||W(i.attributes.name)==="csrf-token"||W(i.attributes.name)==="p:domain_verify"||W(i.attributes.name)==="verify-v1"||W(i.attributes.name)==="verification"||W(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Je(i,e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:f=!1,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:R=!1,cssCaptured:x=!1}=e,{needsMask:C}=e,{preserveWhiteSpace:_=!0}=e;C||(C=lo(i,o,l,C===void 0));let X=Fu(i,{doc:t,mirror:r,blockClass:s,blockSelector:n,needsMask:C,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,dataURLOptions:m,inlineImages:d,recordCanvas:f,keepIframeSrcFn:M,newlyAddedElement:R,cssCaptured:x});if(!X)return console.warn(i,"not serialized"),null;let j;r.hasNode(i)?j=r.getId(i):Wu(X,g)||!_&&X.type===Q.Text&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?j=gt:j=no();let I=Object.assign(X,{id:j});if(r.add(i,I),j===gt)return null;S&&S(i);let ee=!a;if(I.type===Q.Element){ee=ee&&!I.needBlock,delete I.needBlock;let L=ie.shadowRoot(i);L&&pt(L)&&(I.isShadowHost=!0)}if((I.type===Q.Document||I.type===Q.Element)&&ee){g.headWhitespace&&I.type===Q.Element&&I.tagName==="head"&&(_=!1);let L={doc:t,mirror:r,blockClass:s,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:M,cssCaptured:!1};if(!(I.type===Q.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===Q.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(L.cssCaptured=!0);for(let J of Array.from(ie.childNodes(i))){let K=Je(J,L);K&&I.childNodes.push(K)}}let P=null;if(ro(i)&&(P=ie.shadowRoot(i)))for(let J of Array.from(ie.childNodes(P))){let K=Je(J,L);K&&(pt(P)&&(K.isShadow=!0),I.childNodes.push(K))}}let te=ie.parentNode(i);return te&&dt(te)&&pt(te)&&(I.isShadow=!0),I.type===Q.Element&&I.tagName==="iframe"&&Pu(i,()=>{let L=i.contentDocument;if(L&&w){let P=Je(L,{doc:L,mirror:r,blockClass:s,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:M});P&&w(i,P)}},y),I.type===Q.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&so(I.attributes.href)==="css")&&$u(i,()=>{if(b){let L=Je(i,{doc:t,mirror:r,blockClass:s,blockSelector:n,needsMask:C,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:M});L&&b(i,L)}},E),I}function Vu(i,e){let{mirror:t=new mr,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:p,slimDOM:g=!1,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:f,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:E=()=>!1}=e||{},M=c===!0?{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}:c===!1?{password:!0}:c,R=uo(g);return Je(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:M,maskTextFn:h,maskInputFn:p,slimDOMOptions:R,dataURLOptions:m,inlineImages:a,recordCanvas:u,preserveWhiteSpace:d,onSerialize:f,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:E,newlyAddedElement:!1})}var Gu=/(max|min)-device-(width|height)/,xm=new RegExp(Gu.source,"g");function ju(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Yu(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var hs={exports:{}},V=String,co=function(){return{isColorSupported:!1,reset:V,bold:V,dim:V,italic:V,underline:V,inverse:V,hidden:V,strikethrough:V,black:V,red:V,green:V,yellow:V,blue:V,magenta:V,cyan:V,white:V,gray:V,bgBlack:V,bgRed:V,bgGreen:V,bgYellow:V,bgBlue:V,bgMagenta:V,bgCyan:V,bgWhite:V}};hs.exports=co();hs.exports.createColors=co;var Hu=hs.exports,Zu={},Xu=Object.freeze(Object.defineProperty({__proto__:null,default:Zu},Symbol.toStringTag,{value:"Module"})),ve=Yu(Xu),cn=Hu,hn=ve,bi=class ho extends Error{constructor(e,t,r,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ho)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=cn.isColorSupported),hn&&e&&(t=hn(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=cn.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(s,n).map((u,c)=>{let h=s+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
|
|
2
|
+
`+g+l("^")}return" "+a(p)+u}).join(`
|
|
3
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
4
|
+
|
|
5
|
+
`+e+`
|
|
6
|
+
`),this.name+": "+this.message+e}},fs=bi;bi.default=bi;var Mt={};Mt.isClean=Symbol("isClean");Mt.my=Symbol("my");var fn={after:`
|
|
7
|
+
`,beforeClose:`
|
|
8
|
+
`,beforeComment:`
|
|
9
|
+
`,beforeDecl:`
|
|
10
|
+
`,beforeOpen:" ",beforeRule:`
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ju(i){return i[0].toUpperCase()+i.slice(1)}var Ci=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
|
|
12
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==s||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"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s<"u"))return s;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return fn[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Ju(r);this[l]?s=this[l](o,e):o.walk(a=>{if(s=a.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=fn[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
|
|
13
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
14
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
15
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
16
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
|
|
17
|
+
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.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)}},fo=Ci;Ci.default=Ci;var Ku=fo;function xi(i,e){new Ku(e).stringify(i)}var Dr=xi;xi.default=xi;var{isClean:Wt,my:qu}=Mt,Qu=fs,ec=fo,tc=Dr;function Ei(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],n=typeof s;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(o=>Ei(o,t)):(n==="object"&&s!==null&&(s=Ei(s)),t[r]=s)}return t}var Ii=class{constructor(e={}){this.raws={},this[Wt]=!1,this[qu]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ei(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:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new Qu(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Wt]){this[Wt]=!1;let e=this;for(;e=e.parent;)e[Wt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===`
|
|
18
|
+
`?(s=1,n+=1):s+=1;return{column:s,line:n}}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 s=this.toString(),n=s.indexOf(e.word);n!==-1&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}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}:typeof e.endIndex=="number"?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 ec().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 s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return s&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=tc){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let n in r)s[n]=r[n];return e.warn(t,s)}get proxyOf(){return this}},_r=Ii;Ii.default=Ii;var rc=_r,Mi=class extends rc{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},kr=Mi;Mi.default=Mi;var ic="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",sc=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},nc=(i=21)=>{let e="",t=i;for(;t--;)e+=ic[Math.random()*64|0];return e},oc={nanoid:nc,customAlphabet:sc},{SourceMapConsumer:dn,SourceMapGenerator:pn}=ve,{existsSync:ac,readFileSync:lc}=ve,{dirname:li,join:uc}=ve;function cc(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var Ai=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=li(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new dn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return cc(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=li(e),ac(e))return this.mapFile=e,lc(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof dn)return pn.fromSourceMap(t).toString();if(t instanceof pn)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=uc(li(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},po=Ai;Ai.default=Ai;var{SourceMapConsumer:hc,SourceMapGenerator:fc}=ve,{fileURLToPath:mn,pathToFileURL:Vt}=ve,{isAbsolute:Ni,resolve:Ri}=ve,{nanoid:dc}=oc,ui=ve,gn=fs,pc=po,ci=Symbol("fromOffsetCache"),mc=!!(hc&&fc),yn=!!(Ri&&Ni),Sr=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!yn||/^\w+:\/\//.test(t.from)||Ni(t.from)?this.file=t.from:this.file=Ri(t.from)),yn&&mc){let r=new pc(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+dc(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new gn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):n=new gn(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,s.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(Vt&&(n.input.url=Vt(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[ci])r=this[ci];else{let n=this.css.split(`
|
|
19
|
+
`);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[ci]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let n=r.length-2,o;for(;s<n;)if(o=s+(n-s>>1),e<r[o])n=o-1;else if(e>=r[o+1])s=o+1;else{s=o;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ri(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:s,line:r}));let a;Ni(o.source)?a=Vt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Vt(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(mn)u.file=mn(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Lr=Sr;Sr.default=Sr;ui&&ui.registerInput&&ui.registerInput(Sr);var{SourceMapConsumer:mo,SourceMapGenerator:ur}=ve,{dirname:cr,relative:go,resolve:yo,sep:vo}=ve,{pathToFileURL:vn}=ve,gc=Lr,yc=!!(mo&&ur),vc=!!(cr&&yo&&go&&vo),wc=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
20
|
+
`;this.css.includes(`\r
|
|
21
|
+
`)&&(t=`\r
|
|
22
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||cr(e.file),s;this.mapOpts.sourcesContent===!1?(s=new mo(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),vc&&yc&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ur.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ur({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 ur({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(`
|
|
23
|
+
`),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?cr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=cr(yo(r,this.mapOpts.annotation)));let s=go(r,e);return this.memoizedPaths.set(e,s),s}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 gc(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 s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(vn){let r=vn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;vo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},wo=wc,Sc=_r,Ti=class extends Sc{constructor(e){super(e),this.type="comment"}},Pr=Ti;Ti.default=Ti;var{isClean:So,my:bo}=Mt,Co=kr,xo=Pr,bc=_r,Eo,ds,ps,Io;function Mo(i){return i.map(e=>(e.nodes&&(e.nodes=Mo(e.nodes)),delete e.source,e))}function Ao(i){if(i[So]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Ao(e)}var Me=class No extends bc{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(n,o)=>s(n.toProxy(),o):s)):t==="every"||t==="some"?r=>e[t]((s,...n)=>r(s.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Mo(Eo(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Co(e)]}else if(e.selector)e=[new ds(e)];else if(e.name)e=[new ps(e)];else if(e.text)e=[new xo(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[bo]||No.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[So]&&Ao(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(n){throw t.addToError(n)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Me.registerParse=i=>{Eo=i};Me.registerRule=i=>{ds=i};Me.registerAtRule=i=>{ps=i};Me.registerRoot=i=>{Io=i};var Ue=Me;Me.default=Me;Me.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,ps.prototype):i.type==="rule"?Object.setPrototypeOf(i,ds.prototype):i.type==="decl"?Object.setPrototypeOf(i,Co.prototype):i.type==="comment"?Object.setPrototypeOf(i,xo.prototype):i.type==="root"&&Object.setPrototypeOf(i,Io.prototype),i[bo]=!0,i.nodes&&i.nodes.forEach(e=>{Me.rebuild(e)})};var Cc=Ue,Ro,To,yt=class extends Cc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ro(new To,this,e).stringify()}};yt.registerLazyResult=i=>{Ro=i};yt.registerProcessor=i=>{To=i};var ms=yt;yt.default=yt;var Oi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},Oo=Oi;Oi.default=Oi;var xc=Oo,Di=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 xc(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},gs=Di;Di.default=Di;var hi=39,wn=34,Gt=92,Sn=47,jt=10,lt=32,Yt=12,Ht=9,Zt=13,Ec=91,Ic=93,Mc=40,Ac=41,Nc=123,Rc=125,Tc=59,Oc=42,Dc=58,_c=64,Xt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kc=/.[\r\n"'(/\\]/,bn=/[\da-f]/i,Lc=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,d=r.length,f=0,S=[],w=[];function y(){return f}function b(x){throw e.error("Unclosed "+x,f)}function E(){return w.length===0&&f>=d}function M(x){if(w.length)return w.pop();if(f>=d)return;let C=x?x.ignoreUnclosed:!1;switch(n=r.charCodeAt(f),n){case jt:case lt:case Ht:case Zt:case Yt:{o=f;do o+=1,n=r.charCodeAt(o);while(n===lt||n===jt||n===Ht||n===Zt||n===Yt);m=["space",r.slice(f,o)],f=o-1;break}case Ec:case Ic:case Nc:case Rc:case Dc:case Tc:case Ac:{let _=String.fromCharCode(n);m=[_,_,f];break}case Mc:{if(p=S.length?S.pop()[1]:"",g=r.charCodeAt(f+1),p==="url"&&g!==hi&&g!==wn&&g!==lt&&g!==jt&&g!==Ht&&g!==Yt&&g!==Zt){o=f;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(s||C){o=f;break}else b("bracket");for(h=o;r.charCodeAt(h-1)===Gt;)h-=1,c=!c}while(c);m=["brackets",r.slice(f,o+1),f,o],f=o}else o=r.indexOf(")",f+1),a=r.slice(f,o+1),o===-1||kc.test(a)?m=["(","(",f]:(m=["brackets",a,f,o],f=o);break}case hi:case wn:{l=n===hi?"'":'"',o=f;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(s||C){o=f+1;break}else b("string");for(h=o;r.charCodeAt(h-1)===Gt;)h-=1,c=!c}while(c);m=["string",r.slice(f,o+1),f,o],f=o;break}case _c:{Xt.lastIndex=f+1,Xt.test(r),Xt.lastIndex===0?o=r.length-1:o=Xt.lastIndex-2,m=["at-word",r.slice(f,o+1),f,o],f=o;break}case Gt:{for(o=f,u=!0;r.charCodeAt(o+1)===Gt;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==Sn&&n!==lt&&n!==jt&&n!==Ht&&n!==Zt&&n!==Yt&&(o+=1,bn.test(r.charAt(o)))){for(;bn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===lt&&(o+=1)}m=["word",r.slice(f,o+1),f,o],f=o;break}default:{n===Sn&&r.charCodeAt(f+1)===Oc?(o=r.indexOf("*/",f+2)+1,o===0&&(s||C?o=r.length:b("comment")),m=["comment",r.slice(f,o+1),f,o],f=o):(Jt.lastIndex=f+1,Jt.test(r),Jt.lastIndex===0?o=r.length-1:o=Jt.lastIndex-2,m=["word",r.slice(f,o+1),f,o],S.push(m),f=o);break}}return f++,m}function R(x){w.push(x)}return{back:R,endOfFile:E,nextToken:M,position:y}},Do=Ue,br=class extends Do{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)}},ys=br;br.default=br;Do.registerAtRule(br);var _o=Ue,ko,Lo,qe=class extends _o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new ko(new Lo,this,e).stringify()}};qe.registerLazyResult=i=>{ko=i};qe.registerProcessor=i=>{Lo=i};var At=qe;qe.default=qe;_o.registerRoot(qe);var vt={comma(i){return vt.split(i,[","],!0)},space(i){let e=[" ",`
|
|
24
|
+
`," "];return vt.split(i,e)},split(i,e,t){let r=[],s="",n=!1,o=0,l=!1,a="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}},Po=vt;vt.default=vt;var $o=Ue,Pc=Po,Cr=class extends $o{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Pc.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)}},vs=Cr;Cr.default=Cr;$o.registerRule(Cr);var $c=kr,Fc=Lc,Uc=Pr,Bc=ys,zc=At,Cn=vs,xn={empty:!0,space:!0};function Wc(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}var Vc=class{constructor(e){this.input=e,this.root=new zc,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=new Bc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,s=a[n];s&&s[0]==="space";)s=a[--n];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let n=t-1;n>=0&&(s=e[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,n;for(let[o,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Uc;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 s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Fc(this.input)}decl(e,t){let r=new $c;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Wc(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\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 o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[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 Cn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&s&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!s?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!xn[h]&&!xn[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Cn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][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})}},Gc=Vc,jc=Ue,Yc=Gc,Hc=Lr;function xr(i,e){let t=new Hc(i,e),r=new Yc(t);try{r.parse()}catch(s){throw s}return r.root}var ws=xr;xr.default=xr;jc.registerParse(xr);var{isClean:Ce,my:Zc}=Mt,Xc=wo,Jc=Dr,Kc=Ue,qc=ms;var En=gs,Qc=ws,eh=At,th={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rh={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},ih={Once:!0,postcssPlugin:!0,prepare:!0},Qe=0;function ut(i){return typeof i=="object"&&typeof i.then=="function"}function Fo(i){let e=!1,t=th[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function In(i){let e;return i.type==="document"?e=["Document",Qe,"DocumentExit"]:i.type==="root"?e=["Root",Qe,"RootExit"]:e=Fo(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function _i(i){return i[Ce]=!1,i.nodes&&i.nodes.forEach(e=>_i(e)),i}var ki={},et=class Uo{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=_i(t);else if(t instanceof Uo||t instanceof En)s=_i(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Qc;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{s=n(t,r)}catch(o){this.processed=!0,this.error=o}s&&!s[Zc]&&Kc.rebuild(s)}this.result=new En(e,s,r),this.helpers={...ki,postcss:ki,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!rh[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ih[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(ut(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];){e[Ce]=!0;let t=[In(e)];for(;t.length>0;){let r=this.visitTick(t);if(ut(r))try{await r}catch(s){let n=t[t.length-1].node;throw this.handleError(s,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(n=>r(n,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return ut(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Jc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Xc(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];)e[Ce]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let n;try{n=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ut(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[Ce]){l[Ce]=!0,e.push(In(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Qe){r.nodes&&r.nodes.length&&(r[Ce]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Ce]=!0;let t=Fo(e);for(let r of t)if(r===Qe)e.nodes&&e.each(s=>{s[Ce]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,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"}};et.registerPostcss=i=>{ki=i};var Bo=et;et.default=et;eh.registerLazyResult(et);qc.registerLazyResult(et);var sh=wo,nh=Dr;var oh=ws,ah=gs,Li=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,n=nh;this.result=new ah(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new sh(n,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.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 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=oh;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"}},lh=Li;Li.default=Li;var uh=lh,ch=Bo,hh=ms,fh=At,wt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new uh(this,e,t):new ch(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},dh=wt;wt.default=wt;fh.registerProcessor(wt);hh.registerProcessor(wt);var ph=kr,mh=po,gh=Pr,yh=ys,vh=Lr,wh=At,Sh=vs;function St(i,e){if(Array.isArray(i))return i.map(s=>St(s));let{inputs:t,...r}=i;if(t){e=[];for(let s of t){let n={...s,__proto__:vh.prototype};n.map&&(n.map={...n.map,__proto__:mh.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=i.nodes.map(s=>St(s,e))),r.source){let{inputId:s,...n}=r.source;r.source=n,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new wh(r);if(r.type==="decl")return new ph(r);if(r.type==="rule")return new Sh(r);if(r.type==="comment")return new gh(r);if(r.type==="atrule")return new yh(r);throw new Error("Unknown node type: "+i.type)}var bh=St;St.default=St;var Ch=fs,zo=kr,xh=Bo,Eh=Ue,Ss=dh,Ih=Dr,Mh=bh,Wo=ms,Ah=Oo,Vo=Pr,Go=ys,Nh=gs,Rh=Lr,Th=ws,Oh=Po,jo=vs,Yo=At,Dh=_r;function $(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ss(i)}$.plugin=function(e,t){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
26
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ss().version,l}let n;return Object.defineProperty(s,"postcss",{get(){return n||(n=s()),n}}),s.process=function(o,l,a){return $([s(a)]).process(o,l)},s};$.stringify=Ih;$.parse=Th;$.fromJSON=Mh;$.list=Oh;$.comment=i=>new Vo(i);$.atRule=i=>new Go(i);$.decl=i=>new zo(i);$.rule=i=>new jo(i);$.root=i=>new Yo(i);$.document=i=>new Wo(i);$.CssSyntaxError=Ch;$.Declaration=zo;$.Container=Eh;$.Processor=Ss;$.Document=Wo;$.Comment=Vo;$.Warning=Ah;$.AtRule=Go;$.Result=Nh;$.Input=Rh;$.Rule=jo;$.Root=Yo;$.Node=Dh;xh.registerPostcss($);var _h=$;$.default=$;var Y=ju(_h);Y.stringify;Y.fromJSON;Y.plugin;Y.parse;Y.list;Y.document;Y.comment;Y.atRule;Y.rule;Y.decl;Y.root;Y.CssSyntaxError;Y.Declaration;Y.Container;Y.Processor;Y.Document;Y.Comment;Y.Warning;Y.AtRule;Y.Result;Y.Input;Y.Rule;Y.Root;Y.Node;var kh=Object.defineProperty,Lh=(i,e,t)=>e in i?kh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,fe=(i,e,t)=>Lh(i,typeof e!="symbol"?e+"":e,t);function Ph(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function $h(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var bs={exports:{}},G=String,Ho=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};bs.exports=Ho();bs.exports.createColors=Ho;var Fh=bs.exports,Uh={},Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Uh},Symbol.toStringTag,{value:"Module"})),we=$h(Bh),Mn=Fh,An=we,Pi=class Zo extends Error{constructor(e,t,r,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Zo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Mn.isColorSupported),An&&e&&(t=An(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=Mn.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(s,n).map((u,c)=>{let h=s+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+`
|
|
27
|
+
`+g+l("^")}return" "+a(p)+u}).join(`
|
|
28
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
29
|
+
|
|
30
|
+
`+e+`
|
|
31
|
+
`),this.name+": "+this.message+e}},Cs=Pi;Pi.default=Pi;var Nt={};Nt.isClean=Symbol("isClean");Nt.my=Symbol("my");var Nn={after:`
|
|
32
|
+
`,beforeClose:`
|
|
33
|
+
`,beforeComment:`
|
|
34
|
+
`,beforeDecl:`
|
|
35
|
+
`,beforeOpen:" ",beforeRule:`
|
|
36
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function zh(i){return i[0].toUpperCase()+i.slice(1)}var $i=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
|
|
37
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==s||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"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s<"u"))return s;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Nn[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+zh(r);this[l]?s=this[l](o,e):o.walk(a=>{if(s=a.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=Nn[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
|
|
38
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
39
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
40
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
41
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
|
|
42
|
+
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.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)}},Xo=$i;$i.default=$i;var Wh=Xo;function Fi(i,e){new Wh(e).stringify(i)}var $r=Fi;Fi.default=Fi;var{isClean:Kt,my:Vh}=Nt,Gh=Cs,jh=Xo,Yh=$r;function Ui(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],n=typeof s;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(o=>Ui(o,t)):(n==="object"&&s!==null&&(s=Ui(s)),t[r]=s)}return t}var Bi=class{constructor(e={}){this.raws={},this[Kt]=!1,this[Vh]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ui(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:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new Gh(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Kt]){this[Kt]=!1;let e=this;for(;e=e.parent;)e[Kt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===`
|
|
43
|
+
`?(s=1,n+=1):s+=1;return{column:s,line:n}}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 s=this.toString(),n=s.indexOf(e.word);n!==-1&&(t=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}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}:typeof e.endIndex=="number"?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 jh().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 s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return s&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Yh){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let n in r)s[n]=r[n];return e.warn(t,s)}get proxyOf(){return this}},Fr=Bi;Bi.default=Bi;var Hh=Fr,zi=class extends Hh{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Ur=zi;zi.default=zi;var Zh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xh=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},Jh=(i=21)=>{let e="",t=i;for(;t--;)e+=Zh[Math.random()*64|0];return e},Kh={nanoid:Jh,customAlphabet:Xh},{SourceMapConsumer:Rn,SourceMapGenerator:Tn}=we,{existsSync:qh,readFileSync:Qh}=we,{dirname:fi,join:ef}=we;function tf(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var Wi=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=fi(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Rn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return tf(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=fi(e),qh(e))return this.mapFile=e,Qh(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof Rn)return Tn.fromSourceMap(t).toString();if(t instanceof Tn)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ef(fi(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Jo=Wi;Wi.default=Wi;var{SourceMapConsumer:rf,SourceMapGenerator:sf}=we,{fileURLToPath:On,pathToFileURL:qt}=we,{isAbsolute:Vi,resolve:Gi}=we,{nanoid:nf}=Kh,di=we,Dn=Cs,of=Jo,pi=Symbol("fromOffsetCache"),af=!!(rf&&sf),_n=!!(Gi&&Vi),Er=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!_n||/^\w+:\/\//.test(t.from)||Vi(t.from)?this.file=t.from:this.file=Gi(t.from)),_n&&af){let r=new of(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+nf(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new Dn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):n=new Dn(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,s.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(qt&&(n.input.url=qt(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[pi])r=this[pi];else{let n=this.css.split(`
|
|
44
|
+
`);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[pi]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let n=r.length-2,o;for(;s<n;)if(o=s+(n-s>>1),e<r[o])n=o-1;else if(e>=r[o+1])s=o+1;else{s=o;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Gi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:s,line:r}));let a;Vi(o.source)?a=qt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||qt(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(On)u.file=On(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Br=Er;Er.default=Er;di&&di.registerInput&&di.registerInput(Er);var{SourceMapConsumer:Ko,SourceMapGenerator:hr}=we,{dirname:fr,relative:qo,resolve:Qo,sep:ea}=we,{pathToFileURL:kn}=we,lf=Br,uf=!!(Ko&&hr),cf=!!(fr&&Qo&&qo&&ea),hf=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
45
|
+
`;this.css.includes(`\r
|
|
46
|
+
`)&&(t=`\r
|
|
47
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||fr(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Ko(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),cf&&uf&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=hr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new hr({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 hr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(`
|
|
48
|
+
`),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?fr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=fr(Qo(r,this.mapOpts.annotation)));let s=qo(r,e);return this.memoizedPaths.set(e,s),s}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 lf(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 s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(kn){let r=kn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;ea==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},ta=hf,ff=Fr,ji=class extends ff{constructor(e){super(e),this.type="comment"}},zr=ji;ji.default=ji;var{isClean:ra,my:ia}=Nt,sa=Ur,na=zr,df=Fr,oa,xs,Es,aa;function la(i){return i.map(e=>(e.nodes&&(e.nodes=la(e.nodes)),delete e.source,e))}function ua(i){if(i[ra]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)ua(e)}var Ae=class ca extends df{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(n,o)=>s(n.toProxy(),o):s)):t==="every"||t==="some"?r=>e[t]((s,...n)=>r(s.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=la(oa(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new sa(e)]}else if(e.selector)e=[new xs(e)];else if(e.name)e=[new Es(e)];else if(e.text)e=[new na(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[ia]||ca.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[ra]&&ua(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(n){throw t.addToError(n)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}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]}};Ae.registerParse=i=>{oa=i};Ae.registerRule=i=>{xs=i};Ae.registerAtRule=i=>{Es=i};Ae.registerRoot=i=>{aa=i};var Be=Ae;Ae.default=Ae;Ae.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Es.prototype):i.type==="rule"?Object.setPrototypeOf(i,xs.prototype):i.type==="decl"?Object.setPrototypeOf(i,sa.prototype):i.type==="comment"?Object.setPrototypeOf(i,na.prototype):i.type==="root"&&Object.setPrototypeOf(i,aa.prototype),i[ia]=!0,i.nodes&&i.nodes.forEach(e=>{Ae.rebuild(e)})};var pf=Be,ha,fa,bt=class extends pf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ha(new fa,this,e).stringify()}};bt.registerLazyResult=i=>{ha=i};bt.registerProcessor=i=>{fa=i};var Is=bt;bt.default=bt;var Yi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}},da=Yi;Yi.default=Yi;var mf=da,Hi=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 mf(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ms=Hi;Hi.default=Hi;var mi=39,Ln=34,Qt=92,Pn=47,er=10,ct=32,tr=12,rr=9,ir=13,gf=91,yf=93,vf=40,wf=41,Sf=123,bf=125,Cf=59,xf=42,Ef=58,If=64,sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Mf=/.[\r\n"'(/\\]/,$n=/[\da-f]/i,Af=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,d=r.length,f=0,S=[],w=[];function y(){return f}function b(x){throw e.error("Unclosed "+x,f)}function E(){return w.length===0&&f>=d}function M(x){if(w.length)return w.pop();if(f>=d)return;let C=x?x.ignoreUnclosed:!1;switch(n=r.charCodeAt(f),n){case er:case ct:case rr:case ir:case tr:{o=f;do o+=1,n=r.charCodeAt(o);while(n===ct||n===er||n===rr||n===ir||n===tr);m=["space",r.slice(f,o)],f=o-1;break}case gf:case yf:case Sf:case bf:case Ef:case Cf:case wf:{let _=String.fromCharCode(n);m=[_,_,f];break}case vf:{if(p=S.length?S.pop()[1]:"",g=r.charCodeAt(f+1),p==="url"&&g!==mi&&g!==Ln&&g!==ct&&g!==er&&g!==rr&&g!==tr&&g!==ir){o=f;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(s||C){o=f;break}else b("bracket");for(h=o;r.charCodeAt(h-1)===Qt;)h-=1,c=!c}while(c);m=["brackets",r.slice(f,o+1),f,o],f=o}else o=r.indexOf(")",f+1),a=r.slice(f,o+1),o===-1||Mf.test(a)?m=["(","(",f]:(m=["brackets",a,f,o],f=o);break}case mi:case Ln:{l=n===mi?"'":'"',o=f;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(s||C){o=f+1;break}else b("string");for(h=o;r.charCodeAt(h-1)===Qt;)h-=1,c=!c}while(c);m=["string",r.slice(f,o+1),f,o],f=o;break}case If:{sr.lastIndex=f+1,sr.test(r),sr.lastIndex===0?o=r.length-1:o=sr.lastIndex-2,m=["at-word",r.slice(f,o+1),f,o],f=o;break}case Qt:{for(o=f,u=!0;r.charCodeAt(o+1)===Qt;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==Pn&&n!==ct&&n!==er&&n!==rr&&n!==ir&&n!==tr&&(o+=1,$n.test(r.charAt(o)))){for(;$n.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===ct&&(o+=1)}m=["word",r.slice(f,o+1),f,o],f=o;break}default:{n===Pn&&r.charCodeAt(f+1)===xf?(o=r.indexOf("*/",f+2)+1,o===0&&(s||C?o=r.length:b("comment")),m=["comment",r.slice(f,o+1),f,o],f=o):(nr.lastIndex=f+1,nr.test(r),nr.lastIndex===0?o=r.length-1:o=nr.lastIndex-2,m=["word",r.slice(f,o+1),f,o],S.push(m),f=o);break}}return f++,m}function R(x){w.push(x)}return{back:R,endOfFile:E,nextToken:M,position:y}},pa=Be,Ir=class extends pa{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)}},As=Ir;Ir.default=Ir;pa.registerAtRule(Ir);var ma=Be,ga,ya,tt=class extends ma{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new ga(new ya,this,e).stringify()}};tt.registerLazyResult=i=>{ga=i};tt.registerProcessor=i=>{ya=i};var Rt=tt;tt.default=tt;ma.registerRoot(tt);var Ct={comma(i){return Ct.split(i,[","],!0)},space(i){let e=[" ",`
|
|
49
|
+
`," "];return Ct.split(i,e)},split(i,e,t){let r=[],s="",n=!1,o=0,l=!1,a="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}},va=Ct;Ct.default=Ct;var wa=Be,Nf=va,Mr=class extends wa{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Nf.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)}},Ns=Mr;Mr.default=Mr;wa.registerRule(Mr);var Rf=Ur,Tf=Af,Of=zr,Df=As,_f=Rt,Fn=Ns,Un={empty:!0,space:!0};function kf(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}var Lf=class{constructor(e){this.input=e,this.root=new _f,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=new Df;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,s=a[n];s&&s[0]==="space";)s=a[--n];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let n=t-1;n>=0&&(s=e[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,n;for(let[o,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Of;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 s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Tf(this.input)}decl(e,t){let r=new Rf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||kf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\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 o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[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 Fn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&s&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!s?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!Un[h]&&!Un[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Fn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][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})}},Pf=Lf,$f=Be,Ff=Pf,Uf=Br;function Ar(i,e){let t=new Uf(i,e),r=new Ff(t);try{r.parse()}catch(s){throw s}return r.root}var Rs=Ar;Ar.default=Ar;$f.registerParse(Ar);var{isClean:xe,my:Bf}=Nt,zf=ta,Wf=$r,Vf=Be,Gf=Is;var Bn=Ms,jf=Rs,Yf=Rt,Hf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Zf={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},Xf={Once:!0,postcssPlugin:!0,prepare:!0},rt=0;function ht(i){return typeof i=="object"&&typeof i.then=="function"}function Sa(i){let e=!1,t=Hf[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,rt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,rt,t+"Exit"]:[t,t+"Exit"]}function zn(i){let e;return i.type==="document"?e=["Document",rt,"DocumentExit"]:i.type==="root"?e=["Root",rt,"RootExit"]:e=Sa(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Zi(i){return i[xe]=!1,i.nodes&&i.nodes.forEach(e=>Zi(e)),i}var Xi={},it=class ba{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Zi(t);else if(t instanceof ba||t instanceof Bn)s=Zi(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=jf;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{s=n(t,r)}catch(o){this.processed=!0,this.error=o}s&&!s[Bf]&&Vf.rebuild(s)}this.result=new Bn(e,s,r),this.helpers={...Xi,postcss:Xi,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Zf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Xf[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(ht(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[zn(e)];for(;t.length>0;){let r=this.visitTick(t);if(ht(r))try{await r}catch(s){let n=t[t.length-1].node;throw this.handleError(s,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(n=>r(n,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return ht(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Wf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new zf(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ht(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let n;try{n=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ht(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[xe]){l[xe]=!0,e.push(zn(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===rt){r.nodes&&r.nodes.length&&(r[xe]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[xe]=!0;let t=Sa(e);for(let r of t)if(r===rt)e.nodes&&e.each(s=>{s[xe]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,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"}};it.registerPostcss=i=>{Xi=i};var Ca=it;it.default=it;Yf.registerLazyResult(it);Gf.registerLazyResult(it);var Jf=ta,Kf=$r;var qf=Rs,Qf=Ms,Ji=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,n=Kf;this.result=new Qf(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Jf(n,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.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 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=qf;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"}},ed=Ji;Ji.default=Ji;var td=ed,rd=Ca,id=Is,sd=Rt,xt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new td(this,e,t):new rd(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},nd=xt;xt.default=xt;sd.registerProcessor(xt);id.registerProcessor(xt);var od=Ur,ad=Jo,ld=zr,ud=As,cd=Br,hd=Rt,fd=Ns;function Et(i,e){if(Array.isArray(i))return i.map(s=>Et(s));let{inputs:t,...r}=i;if(t){e=[];for(let s of t){let n={...s,__proto__:cd.prototype};n.map&&(n.map={...n.map,__proto__:ad.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=i.nodes.map(s=>Et(s,e))),r.source){let{inputId:s,...n}=r.source;r.source=n,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new hd(r);if(r.type==="decl")return new od(r);if(r.type==="rule")return new fd(r);if(r.type==="comment")return new ld(r);if(r.type==="atrule")return new ud(r);throw new Error("Unknown node type: "+i.type)}var dd=Et;Et.default=Et;var pd=Cs,xa=Ur,md=Ca,gd=Be,Ts=nd,yd=$r,vd=dd,Ea=Is,wd=da,Ia=zr,Ma=As,Sd=Ms,bd=Br,Cd=Rs,xd=va,Aa=Ns,Na=Rt,Ed=Fr;function F(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ts(i)}F.plugin=function(e,t){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
51
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ts().version,l}let n;return Object.defineProperty(s,"postcss",{get(){return n||(n=s()),n}}),s.process=function(o,l,a){return F([s(a)]).process(o,l)},s};F.stringify=yd;F.parse=Cd;F.fromJSON=vd;F.list=xd;F.comment=i=>new Ia(i);F.atRule=i=>new Ma(i);F.decl=i=>new xa(i);F.rule=i=>new Aa(i);F.root=i=>new Na(i);F.document=i=>new Ea(i);F.CssSyntaxError=pd;F.Declaration=xa;F.Container=gd;F.Processor=Ts;F.Document=Ea;F.Comment=Ia;F.Warning=wd;F.AtRule=Ma;F.Result=Sd;F.Input=bd;F.Rule=Aa;F.Root=Na;F.Node=Ed;md.registerPostcss(F);var Id=F;F.default=F;var H=Ph(Id);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var Ki=class i{constructor(...e){fe(this,"parentElement",null),fe(this,"parentNode",null),fe(this,"ownerDocument"),fe(this,"firstChild",null),fe(this,"lastChild",null),fe(this,"previousSibling",null),fe(this,"nextSibling",null),fe(this,"ELEMENT_NODE",1),fe(this,"TEXT_NODE",3),fe(this,"nodeType"),fe(this,"nodeName"),fe(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof i){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;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"}};var Wn={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},or={},Md=()=>!!globalThis.Zone;function Os(i){if(or[i])return or[i];let e=globalThis[i],t=e.prototype,r=i in Wn?Wn[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=i in Vn?Vn[i]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o&&!Md())return or[i]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[i].prototype;return document.body.removeChild(l),u?or[i]=u:t}catch{return t}}var gi={};function Re(i,e,t){var r;let s=`${i}.${String(t)}`;if(gi[s])return gi[s].call(e);let n=Os(i),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(gi[s]=o,o.call(e)):e[t]}var yi={};function Ra(i,e,t){let r=`${i}.${String(t)}`;if(yi[r])return yi[r].bind(e);let n=Os(i)[t];return typeof n!="function"?e[t]:(yi[r]=n,n.bind(e))}function Ad(i){return Re("Node",i,"ownerDocument")}function Nd(i){return Re("Node",i,"childNodes")}function Rd(i){return Re("Node",i,"parentNode")}function Td(i){return Re("Node",i,"parentElement")}function Od(i){return Re("Node",i,"textContent")}function Dd(i,e){return Ra("Node",i,"contains")(e)}function _d(i){return Ra("Node",i,"getRootNode")()}function kd(i){return!i||!("host"in i)?null:Re("ShadowRoot",i,"host")}function Ld(i){return i.styleSheets}function Pd(i){return!i||!("shadowRoot"in i)?null:Re("Element",i,"shadowRoot")}function $d(i,e){return Re("Element",i,"querySelector")(e)}function Fd(i,e){return Re("Element",i,"querySelectorAll")(e)}function Ta(){return Os("MutationObserver").constructor}function ze(i,e,t){try{if(!(e in i))return()=>{};let r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch{return()=>{}}}var A={ownerDocument:Ad,childNodes:Nd,parentNode:Rd,parentElement:Td,textContent:Od,contains:Dd,getRootNode:_d,host:kd,styleSheets:Ld,shadowRoot:Pd,querySelector:$d,querySelectorAll:Fd,mutationObserver:Ta,patch:ze};function se(i,e,t=document){let r={capture:!0,passive:!0};return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}var He=`Please stop import mirror directly. Instead of that,\r
|
|
52
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
+
or you can use record.mirror to access the mirror instance during recording.`,Gn={map:{},getId(){return console.error(He),-1},getNode(){return console.error(He),null},removeNodeFromMap(){console.error(He)},has(){return console.error(He),!1},reset(){console.error(He)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Gn=new Proxy(Gn,{get(i,e,t){return e==="map"&&console.error(He),Reflect.get(i,e,t)}}));function It(i,e,t={}){let r=null,s=0;return function(...n){let o=Date.now();!s&&t.leading===!1&&(s=o);let l=e-(o-s),a=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),s=o,i.apply(a,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{s=t.leading===!1?0:Date.now(),r=null,i.apply(a,n)},l))}}function Wr(i,e,t,r,s=window){let n=s.Object.getOwnPropertyDescriptor(i,e);return s.Object.defineProperty(i,e,r?t:{set(o){setTimeout(()=>{t.set.call(this,o)},0),n&&n.set&&n.set.call(this,o)}}),()=>Wr(i,e,n||{},!0)}var Nr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Nr=()=>new Date().getTime());function Oa(i){var e,t,r,s;let n=i.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:i.pageXOffset!==void 0?i.pageXOffset:n.documentElement.scrollLeft||n?.body&&((e=A.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n?.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:i.pageYOffset!==void 0?i.pageYOffset:n?.documentElement.scrollTop||n?.body&&((r=A.parentElement(n.body))==null?void 0:r.scrollTop)||((s=n?.body)==null?void 0:s.scrollTop)||0}}function Da(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _a(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ka(i){return i?i.nodeType===i.ELEMENT_NODE?i:A.parentElement(i):null}function ne(i,e,t,r){if(!i)return!1;let s=ka(i);if(!s)return!1;try{if(typeof e=="string"){if(s.classList.contains(e)||r&&s.closest("."+e)!==null)return!0}else if(wr(s,e,r))return!0}catch{}return!!(t&&(s.matches(t)||r&&s.closest(t)!==null))}function Ud(i,e){return e.getId(i)!==-1}function vi(i,e,t){return i.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(i)===gt}function La(i,e){if(dt(i))return!1;let t=e.getId(i);if(!e.has(t))return!0;let r=A.parentNode(i);return r&&r.nodeType===i.DOCUMENT_NODE?!1:r?La(r,e):!0}function qi(i){return!!i.changedTouches}function Bd(i=window){"NodeList"in i&&!i.NodeList.prototype.forEach&&(i.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in i&&!i.DOMTokenList.prototype.forEach&&(i.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Pa(i,e){return!!(i.nodeName==="IFRAME"&&e.getMeta(i))}function $a(i,e){return!!(i.nodeName==="LINK"&&i.nodeType===i.ELEMENT_NODE&&i.getAttribute&&i.getAttribute("rel")==="stylesheet"&&e.getMeta(i))}function Qi(i){return i?i instanceof Ki&&"shadowRoot"in i?!!i.shadowRoot:!!A.shadowRoot(i):!1}var es=class{constructor(){v(this,"id",1),v(this,"styleIDMap",new WeakMap),v(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 t===void 0?r=this.id++:r=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 Fa(i){var e;let t=null;return"getRootNode"in i&&((e=A.getRootNode(i))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&A.host(A.getRootNode(i))&&(t=A.host(A.getRootNode(i))),t}function zd(i){let e=i,t;for(;t=Fa(e);)e=t;return e}function Wd(i){let e=A.ownerDocument(i);if(!e)return!1;let t=zd(i);return A.contains(e,t)}function Ua(i){let e=A.ownerDocument(i);return e?A.contains(e,i)||Wd(i):!1}var D=(i=>(i[i.DomContentLoaded=0]="DomContentLoaded",i[i.Load=1]="Load",i[i.FullSnapshot=2]="FullSnapshot",i[i.IncrementalSnapshot=3]="IncrementalSnapshot",i[i.Meta=4]="Meta",i[i.Custom=5]="Custom",i[i.Plugin=6]="Plugin",i))(D||{}),N=(i=>(i[i.Mutation=0]="Mutation",i[i.MouseMove=1]="MouseMove",i[i.MouseInteraction=2]="MouseInteraction",i[i.Scroll=3]="Scroll",i[i.ViewportResize=4]="ViewportResize",i[i.Input=5]="Input",i[i.TouchMove=6]="TouchMove",i[i.MediaInteraction=7]="MediaInteraction",i[i.StyleSheetRule=8]="StyleSheetRule",i[i.CanvasMutation=9]="CanvasMutation",i[i.Font=10]="Font",i[i.Log=11]="Log",i[i.Drag=12]="Drag",i[i.StyleDeclaration=13]="StyleDeclaration",i[i.Selection=14]="Selection",i[i.AdoptedStyleSheet=15]="AdoptedStyleSheet",i[i.CustomElement=16]="CustomElement",i))(N||{}),le=(i=>(i[i.MouseUp=0]="MouseUp",i[i.MouseDown=1]="MouseDown",i[i.Click=2]="Click",i[i.ContextMenu=3]="ContextMenu",i[i.DblClick=4]="DblClick",i[i.Focus=5]="Focus",i[i.Blur=6]="Blur",i[i.TouchStart=7]="TouchStart",i[i.TouchMove_Departed=8]="TouchMove_Departed",i[i.TouchEnd=9]="TouchEnd",i[i.TouchCancel=10]="TouchCancel",i))(le||{}),Ie=(i=>(i[i.Mouse=0]="Mouse",i[i.Pen=1]="Pen",i[i.Touch=2]="Touch",i))(Ie||{}),st=(i=>(i[i["2D"]=0]="2D",i[i.WebGL=1]="WebGL",i[i.WebGL2=2]="WebGL2",i))(st||{}),Ze=(i=>(i[i.Play=0]="Play",i[i.Pause=1]="Pause",i[i.Seeked=2]="Seeked",i[i.VolumeChange=3]="VolumeChange",i[i.RateChange=4]="RateChange",i))(Ze||{});var Ba=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(Ba||{});function jn(i){return"__ln"in i}var ts=class{constructor(){v(this,"length",0),v(this,"head",null),v(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=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&jn(e.previousSibling)){let 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&&jn(e.nextSibling)&&e.nextSibling.__ln.previous){let 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;t.next===null&&(this.tail=t),this.length++}removeNode(e){let 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--)}},Yn=(i,e)=>`${i}@${e}`,rs=class{constructor(){v(this,"frozen",!1),v(this,"locked",!1),v(this,"texts",[]),v(this,"attributes",[]),v(this,"attributeMap",new WeakMap),v(this,"removes",[]),v(this,"mapRemoves",[]),v(this,"movedMap",{}),v(this,"addedSet",new Set),v(this,"movedSet",new Set),v(this,"droppedSet",new Set),v(this,"removesSubTreeCache",new Set),v(this,"mutationCb"),v(this,"blockClass"),v(this,"blockSelector"),v(this,"maskTextClass"),v(this,"maskTextSelector"),v(this,"inlineStylesheet"),v(this,"maskInputOptions"),v(this,"maskTextFn"),v(this,"maskInputFn"),v(this,"keepIframeSrcFn"),v(this,"recordCanvas"),v(this,"inlineImages"),v(this,"slimDOMOptions"),v(this,"dataURLOptions"),v(this,"doc"),v(this,"mirror"),v(this,"iframeManager"),v(this,"stylesheetManager"),v(this,"shadowDomManager"),v(this,"canvasManager"),v(this,"processedNodeManager"),v(this,"unattachedDoc"),v(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),v(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new ts,s=a=>{let u=a,c=gt;for(;c===gt;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},n=a=>{let u=A.parentNode(a);if(!u||!Ua(a))return;let c=!1;if(a.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(c=!0)}let h=dt(u)?this.mirror.getId(Fa(a)):this.mirror.getId(u),p=s(a);if(h===-1||p===-1)return r.addNode(a);let g=Je(a,{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:m=>{Pa(m,this.mirror)&&this.iframeManager.addIframe(m),$a(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Qi(a)&&this.shadowDomManager.addShadowRoot(A.shadowRoot(a),this.doc)},onIframeLoad:(m,d)=>{this.iframeManager.attachIframe(m,d),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,d)=>{this.stylesheetManager.attachLinkElement(m,d)},cssCaptured:c});g&&(e.push({parentId:h,nextId:p,node:g}),t.add(g.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Hn(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(A.parentNode(a))||n(a);for(let a of this.addedSet)!Zn(this.droppedSet,a)&&!Hn(this.removesSubTreeCache,a,this.mirror)||Zn(this.movedSet,a)?n(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){let u=this.mirror.getId(A.parentNode(o.value)),c=s(o.value);u!==-1&&c!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){let c=u;if(u=u.previous,c){let h=this.mirror.getId(A.parentNode(c.value));if(s(c.value)===-1)continue;if(h!==-1){a=c;break}else{let g=c.value,m=A.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=A.host(m);if(this.mirror.getId(d)!==-1){a=c;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),n(a.value)}let l={texts:this.texts.map(a=>{let u=a.node,c=A.parentNode(u);return c&&c.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c),{id:this.mirror.getId(u),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:u}=a;if(typeof u.style=="string"){let c=JSON.stringify(a.styleDiff),h=JSON.stringify(a._unchangedStyles);c.length<u.style.length&&(c+h).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.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(l))}),v(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));let r=Array.from(A.childNodes(e),s=>A.textContent(s)||"").join("");t.attributes.value=gr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:yr(e),value:r,maskInputFn:this.maskInputFn})}),v(this,"processMutation",e=>{if(!vi(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=A.textContent(e.target);!ne(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:lo(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,ka(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,s=e.target.getAttribute(r);if(r==="value"){let o=yr(t);s=gr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:s,maskInputFn:this.maskInputFn})}if(ne(e.target,this.blockClass,this.blockSelector,!1)||s===e.oldValue)return;let n=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!t.contentDocument)r="rr_src";else return;if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!ao(t.tagName,r))if(n.attributes[r]=oo(this.doc,Fe(t.tagName),Fe(r),s),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),u=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||u!==o.style.getPropertyPriority(l)?u===""?n.styleDiff[l]=a:n.styleDiff[l]=[a,u]:n._unchangedStyles[l]=[a,u]}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(n.styleDiff[l]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":{if(ne(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),s=dt(e.target)?this.mirror.getId(A.host(e.target)):this.mirror.getId(e.target);ne(e.target,this.blockClass,this.blockSelector,!1)||vi(t,this.mirror,this.slimDOMOptions)||!Ud(t,this.mirror)||(this.addedSet.has(t)?(is(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||La(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Yn(r,s)]?is(this.movedSet,t):(this.removes.push({parentId:s,id:r,isShadow:dt(e.target)&&pt(e.target)?!0:void 0}),Vd(t,this.removesSubTreeCache))),this.mapRemoves.push(t))});break}}}),v(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(vi(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[Yn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ne(e,this.blockClass,this.blockSelector,!1)||(A.childNodes(e).forEach(r=>this.genAdds(r)),Qi(e)&&A.childNodes(A.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,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 is(i,e){i.delete(e),A.childNodes(e).forEach(t=>is(i,t))}function Vd(i,e){let t=[i];for(;t.length;){let r=t.pop();e.has(r)||(e.add(r),A.childNodes(r).forEach(s=>t.push(s)))}}function Hn(i,e,t){return i.size===0?!1:Gd(i,e)}function Gd(i,e,t){let r=A.parentNode(e);return r?i.has(r):!1}function Zn(i,e){return i.size===0?!1:za(i,e)}function za(i,e){let t=A.parentNode(e);return t?i.has(t)?!0:za(i,t):!1}var mt;function jd(i){mt=i}function Yd(){mt=void 0}var T=i=>mt?(...t)=>{try{return i(...t)}catch(r){if(mt&&mt(r)===!0)return;throw r}}:i,$e=[];function Tt(i){try{if("composedPath"in i){let e=i.composedPath();if(e.length)return e[0]}else if("path"in i&&i.path.length)return i.path[0]}catch{}return i&&i.target}function Wa(i,e){let t=new rs;$e.push(t),t.init(i);let r=new(Ta())(T(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Hd({mousemoveCb:i,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};let s=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=It(T(h=>{let p=Date.now()-l;i(o.map(g=>(g.timeOffset-=p,g)),h),o=[],l=null}),n),u=T(It(T(h=>{let p=Tt(h),{clientX:g,clientY:m}=qi(h)?h.changedTouches[0]:h;l||(l=Nr()),o.push({x:g,y:m,id:r.getId(p),timeOffset:Nr()-l}),a(typeof DragEvent<"u"&&h instanceof DragEvent?N.Drag:h instanceof MouseEvent?N.MouseMove:N.TouchMove)}),s,{trailing:!1})),c=[se("mousemove",u,t),se("touchmove",u,t),se("drag",u,t)];return T(()=>{c.forEach(h=>h())})}function Zd({mouseInteractionCb:i,doc:e,mirror:t,blockClass:r,blockSelector:s,sampling:n}){if(n.mouseInteraction===!1)return()=>{};let o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[],a=null,u=c=>h=>{let p=Tt(h);if(ne(p,r,s,!0))return;let g=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":g=Ie.Mouse;break;case"touch":g=Ie.Touch;break;case"pen":g=Ie.Pen;break}g===Ie.Touch?le[c]===le.MouseDown?m="TouchStart":le[c]===le.MouseUp&&(m="TouchEnd"):Ie.Pen}else qi(h)&&(g=Ie.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===Ie.Touch||m.startsWith("Mouse")&&g===Ie.Mouse)&&(g=null)):le[c]===le.Click&&(g=a,a=null);let d=qi(h)?h.changedTouches[0]:h;if(!d)return;let f=t.getId(p),{clientX:S,clientY:w}=d;T(i)({type:le[m],id:f,x:S,y:w,...g!==null&&{pointerType:g}})};return Object.keys(le).filter(c=>Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&o[c]!==!1).forEach(c=>{let h=Fe(c),p=u(c);if(window.PointerEvent)switch(le[c]){case le.MouseDown:case le.MouseUp:h=h.replace("mouse","pointer");break;case le.TouchStart:case le.TouchEnd:return}l.push(se(h,p,e))}),T(()=>{l.forEach(c=>c())})}function Va({scrollCb:i,doc:e,mirror:t,blockClass:r,blockSelector:s,sampling:n}){let o=T(It(T(l=>{let a=Tt(l);if(!a||ne(a,r,s,!0))return;let u=t.getId(a);if(a===e&&e.defaultView){let c=Oa(e.defaultView);i({id:u,x:c.left,y:c.top})}else i({id:u,x:a.scrollLeft,y:a.scrollTop})}),n.scroll||100));return se("scroll",o,e)}function Xd({viewportResizeCb:i},{win:e}){let t=-1,r=-1,s=T(It(T(()=>{let n=Da(),o=_a();(t!==n||r!==o)&&(i({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return se("resize",s,e)}var Jd=["INPUT","TEXTAREA","SELECT"],Xn=new WeakMap;function Kd({inputCb:i,doc:e,mirror:t,blockClass:r,blockSelector:s,ignoreClass:n,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:u,userTriggeredOnInput:c}){function h(w){let y=Tt(w),b=w.isTrusted,E=y&&y.tagName;if(y&&E==="OPTION"&&(y=A.parentElement(y)),!y||!E||Jd.indexOf(E)<0||ne(y,r,s,!0)||y.classList.contains(n)||o&&y.matches(o))return;let M=y.value,R=!1,x=yr(y)||"";x==="radio"||x==="checkbox"?R=y.checked:(l[E.toLowerCase()]||l[x])&&(M=gr({element:y,maskInputOptions:l,tagName:E,type:x,value:M,maskInputFn:a})),p(y,c?{text:M,isChecked:R,userTriggered:b}:{text:M,isChecked:R});let C=y.name;x==="radio"&&C&&R&&e.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach(_=>{if(_!==y){let X=_.value;p(_,c?{text:X,isChecked:!R,userTriggered:!1}:{text:X,isChecked:!R})}})}function p(w,y){let b=Xn.get(w);if(!b||b.text!==y.text||b.isChecked!==y.isChecked){Xn.set(w,y);let E=t.getId(w);T(i)({...y,id:E})}}let m=(u.input==="last"?["change"]:["input","change"]).map(w=>se(w,T(h),e)),d=e.defaultView;if(!d)return()=>{m.forEach(w=>w())};let f=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),S=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&m.push(...S.map(w=>Wr(w[0],w[1],{set(){T(h)({target:this,isTrusted:!1})}},!1,d))),T(()=>{m.forEach(w=>w())})}function Rr(i){let e=[];function t(r,s){if(ar("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||ar("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||ar("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||ar("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){let o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return t(i,e)}function ke(i,e,t){let r,s;return i?(i.ownerNode?r=e.getId(i.ownerNode):s=t.getId(i),{styleId:s,id:r}):{}}function qd({styleSheetRuleCb:i,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:T((c,h,p)=>{let[g,m]=p,{id:d,styleId:f}=ke(h,e,t.styleMirror);return(d&&d!==-1||f&&f!==-1)&&i({id:d,styleId:f,adds:[{rule:g,index:m}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.addRule=function(c,h,p=this.cssRules.length){let g=`${c} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[g,p])};let n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:T((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ke(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&i({id:m,styleId:d,removes:[{index:g}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.removeRule=function(c){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:T((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ke(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&i({id:m,styleId:d,replace:g}),c.apply(h,p)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:T((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ke(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&i({id:m,styleId:d,replaceSync:g}),c.apply(h,p)})}));let a={};lr("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(lr("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),lr("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),lr("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(a).forEach(([c,h])=>{u[c]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(u[c].insertRule,{apply:T((p,g,m)=>{let[d,f]=m,{id:S,styleId:w}=ke(g.parentStyleSheet,e,t.styleMirror);return(S&&S!==-1||w&&w!==-1)&&i({id:S,styleId:w,adds:[{rule:d,index:[...Rr(g),f||0]}]}),p.apply(g,m)})}),h.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:T((p,g,m)=>{let[d]=m,{id:f,styleId:S}=ke(g.parentStyleSheet,e,t.styleMirror);return(f&&f!==-1||S&&S!==-1)&&i({id:f,styleId:S,removes:[{index:[...Rr(g),d]}]}),p.apply(g,m)})})}),T(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=n,o&&(r.CSSStyleSheet.prototype.replace=o),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([c,h])=>{h.prototype.insertRule=u[c].insertRule,h.prototype.deleteRule=u[c].deleteRule})})}function Ga({mirror:i,stylesheetManager:e},t){var r,s,n;let o=null;t.nodeName==="#document"?o=i.getId(t):o=i.getId(A.host(t));let l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(s=t.ownerDocument)==null?void 0:s.defaultView)==null?void 0:n.ShadowRoot,a=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var u;return(u=a.get)==null?void 0:u.call(this)},set(u){var c;let h=(c=a.set)==null?void 0:c.call(this,u);if(o!==null&&o!==-1)try{e.adoptStyleSheets(u,o)}catch{}return h}}),T(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Qd({styleDeclarationCb:i,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:s}){let n=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:T((l,a,u)=>{var c;let[h,p,g]=u;if(t.has(h))return n.apply(a,[h,p,g]);let{id:m,styleId:d}=ke((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&i({id:m,styleId:d,set:{property:h,value:p,priority:g},index:Rr(a.parentRule)}),l.apply(a,u)})});let o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:T((l,a,u)=>{var c;let[h]=u;if(t.has(h))return o.apply(a,[h]);let{id:p,styleId:g}=ke((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&i({id:p,styleId:g,remove:{property:h},index:Rr(a.parentRule)}),l.apply(a,u)})}),T(()=>{s.CSSStyleDeclaration.prototype.setProperty=n,s.CSSStyleDeclaration.prototype.removeProperty=o})}function ep({mediaInteractionCb:i,blockClass:e,blockSelector:t,mirror:r,sampling:s,doc:n}){let o=T(a=>It(T(u=>{let c=Tt(u);if(!c||ne(c,e,t,!0))return;let{currentTime:h,volume:p,muted:g,playbackRate:m,loop:d}=c;i({type:a,id:r.getId(c),currentTime:h,volume:p,muted:g,playbackRate:m,loop:d})}),s.media||500)),l=[se("play",o(Ze.Play),n),se("pause",o(Ze.Pause),n),se("seeked",o(Ze.Seeked),n),se("volumechange",o(Ze.VolumeChange),n),se("ratechange",o(Ze.RateChange),n)];return T(()=>{l.forEach(a=>a())})}function tp({fontCb:i,doc:e}){let t=e.defaultView;if(!t)return()=>{};let r=[],s=new WeakMap,n=t.FontFace;t.FontFace=function(a,u,c){let h=new n(a,u,c);return s.set(h,{family:a,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};let o=ze(e.fonts,"add",function(l){return function(a){return setTimeout(T(()=>{let u=s.get(a);u&&(i(u),s.delete(a))}),0),l.apply(this,[a])}});return r.push(()=>{t.FontFace=n}),r.push(o),T(()=>{r.forEach(l=>l())})}function rp(i){let{doc:e,mirror:t,blockClass:r,blockSelector:s,selectionCb:n}=i,o=!0,l=T(()=>{let a=e.getSelection();if(!a||o&&a?.isCollapsed)return;o=a.isCollapsed||!1;let u=[],c=a.rangeCount||0;for(let h=0;h<c;h++){let p=a.getRangeAt(h),{startContainer:g,startOffset:m,endContainer:d,endOffset:f}=p;ne(g,r,s,!0)||ne(d,r,s,!0)||u.push({start:t.getId(g),startOffset:m,end:t.getId(d),endOffset:f})}n({ranges:u})});return l(),se("selectionchange",l)}function ip({doc:i,customElementCb:e}){let t=i.defaultView;return!t||!t.customElements?()=>{}:ze(t.customElements,"define",function(s){return function(n,o,l){try{e({define:{name:n}})}catch{console.warn(`Custom element callback failed for ${n}`)}return s.apply(this,[n,o,l])}})}function sp(i,e){let{mutationCb:t,mousemoveCb:r,mouseInteractionCb:s,scrollCb:n,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:h,fontCb:p,selectionCb:g,customElementCb:m}=i;i.mutationCb=(...d)=>{e.mutation&&e.mutation(...d),t(...d)},i.mousemoveCb=(...d)=>{e.mousemove&&e.mousemove(...d),r(...d)},i.mouseInteractionCb=(...d)=>{e.mouseInteraction&&e.mouseInteraction(...d),s(...d)},i.scrollCb=(...d)=>{e.scroll&&e.scroll(...d),n(...d)},i.viewportResizeCb=(...d)=>{e.viewportResize&&e.viewportResize(...d),o(...d)},i.inputCb=(...d)=>{e.input&&e.input(...d),l(...d)},i.mediaInteractionCb=(...d)=>{e.mediaInteaction&&e.mediaInteaction(...d),a(...d)},i.styleSheetRuleCb=(...d)=>{e.styleSheetRule&&e.styleSheetRule(...d),u(...d)},i.styleDeclarationCb=(...d)=>{e.styleDeclaration&&e.styleDeclaration(...d),c(...d)},i.canvasMutationCb=(...d)=>{e.canvasMutation&&e.canvasMutation(...d),h(...d)},i.fontCb=(...d)=>{e.font&&e.font(...d),p(...d)},i.selectionCb=(...d)=>{e.selection&&e.selection(...d),g(...d)},i.customElementCb=(...d)=>{e.customElement&&e.customElement(...d),m(...d)}}function np(i,e={}){let t=i.doc.defaultView;if(!t)return()=>{};sp(i,e);let r;i.recordDOM&&(r=Wa(i,i.doc));let s=Hd(i),n=Zd(i),o=Va(i),l=Xd(i,{win:t}),a=Kd(i),u=ep(i),c=()=>{},h=()=>{},p=()=>{},g=()=>{};i.recordDOM&&(c=qd(i,{win:t}),h=Ga(i,i.doc),p=Qd(i,{win:t}),i.collectFonts&&(g=tp(i)));let m=rp(i),d=ip(i),f=[];for(let S of i.plugins)f.push(S.observer(S.callback,t,S.options));return T(()=>{$e.forEach(S=>S.reset()),r?.disconnect(),s(),n(),o(),l(),a(),u(),c(),h(),p(),g(),m(),d(),f.forEach(S=>S())})}function ar(i){return typeof window[i]<"u"}function lr(i){return!!(typeof window[i]<"u"&&window[i].prototype&&"insertRule"in window[i].prototype&&"deleteRule"in window[i].prototype)}var Tr=class{constructor(e){v(this,"iframeIdToRemoteIdMap",new WeakMap),v(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,s){let n=r||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e),l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),o.set(l,t)),l}getIds(e,t){let r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,s))}getRemoteId(e,t,r){let s=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let n=s.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(s=>this.getRemoteId(e,s,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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}},ss=class{constructor(e){v(this,"iframes",new WeakMap),v(this,"crossOriginIframeMap",new WeakMap),v(this,"crossOriginIframeMirror",new Tr(no)),v(this,"crossOriginIframeStyleMirror"),v(this,"crossOriginIframeRootIdMap",new WeakMap),v(this,"mirror"),v(this,"mutationCb"),v(this,"wrappedEmit"),v(this,"loadListener"),v(this,"stylesheetManager"),v(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tr(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,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.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){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let s=this.crossOriginIframeMap.get(e.source);if(!s)return;let n=this.transformCrossOriginEvent(s,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let s=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,s),this.patchRootIdOnNode(t.data.node,s),{timestamp:t.timestamp,type:D.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return t;case D.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case D.IncrementalSnapshot:switch(t.data.source){case N.Mutation:return t.data.adds.forEach(s=>{this.replaceIds(s,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(s.node,n)}),t.data.removes.forEach(s=>{this.replaceIds(s,e,["parentId","id"])}),t.data.attributes.forEach(s=>{this.replaceIds(s,e,["id"])}),t.data.texts.forEach(s=>{this.replaceIds(s,e,["id"])}),t;case N.Drag:case N.TouchMove:case N.MouseMove:return t.data.positions.forEach(s=>{this.replaceIds(s,e,["id"])}),t;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(t.data,e,["id"]),t;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case N.Font:return t;case N.Selection:return t.data.ranges.forEach(s=>{this.replaceIds(s,e,["start","end"])}),t;case N.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,e,["styleId"])}),t}}return!1}replace(e,t,r,s){for(let n of s)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));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(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==Ba.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}},ns=class{constructor(e){v(this,"shadowDoms",new WeakSet),v(this,"mutationCb"),v(this,"scrollCb"),v(this,"bypassOptions"),v(this,"mirror"),v(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(!pt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=Wa({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Va({...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(A.host(e))),this.restoreHandlers.push(Ga({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){let r=this;this.restoreHandlers.push(ze(e.prototype,"attachShadow",function(s){return function(n){let o=s.call(this,n),l=A.shadowRoot(this);return l&&Ua(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",op=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ft=0;ft<Ke.length;ft++)op[Ke.charCodeAt(ft)]=ft;var ft,ap=function(i){var e=new Uint8Array(i),t,r=e.length,s="";for(t=0;t<r;t+=3)s+=Ke[e[t]>>2],s+=Ke[(e[t]&3)<<4|e[t+1]>>4],s+=Ke[(e[t+1]&15)<<2|e[t+2]>>6],s+=Ke[e[t+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};var Jn=new Map;function lp(i,e){let t=Jn.get(i);return t||(t=new Map,Jn.set(i,t)),t.has(e)||t.set(e,[]),t.get(e)}var ja=(i,e,t)=>{if(!i||!(Ha(i,e)||typeof i=="object"))return;let r=i.constructor.name,s=lp(t,r),n=s.indexOf(i);return n===-1&&(n=s.length,s.push(i)),n};function dr(i,e,t){if(i instanceof Array)return i.map(r=>dr(r,e,t));if(i===null)return i;if(i instanceof Float32Array||i instanceof Float64Array||i instanceof Int32Array||i instanceof Uint32Array||i instanceof Uint8Array||i instanceof Uint16Array||i instanceof Int16Array||i instanceof Int8Array||i instanceof Uint8ClampedArray)return{rr_type:i.constructor.name,args:[Object.values(i)]};if(i instanceof ArrayBuffer){let r=i.constructor.name,s=ap(i);return{rr_type:r,base64:s}}else{if(i instanceof DataView)return{rr_type:i.constructor.name,args:[dr(i.buffer,e,t),i.byteOffset,i.byteLength]};if(i instanceof HTMLImageElement){let r=i.constructor.name,{src:s}=i;return{rr_type:r,src:s}}else if(i instanceof HTMLCanvasElement){let r="HTMLImageElement",s=i.toDataURL();return{rr_type:r,src:s}}else{if(i instanceof ImageData)return{rr_type:i.constructor.name,args:[dr(i.data,e,t),i.width,i.height]};if(Ha(i,e)||typeof i=="object"){let r=i.constructor.name,s=ja(i,e,t);return{rr_type:r,index:s}}}}return i}var Ya=(i,e,t)=>i.map(r=>dr(r,e,t)),Ha=(i,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof e[s]=="function").find(s=>i instanceof e[s]);function up(i,e,t,r){let s=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=ze(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...u){return ne(this.canvas,t,r,!0)||setTimeout(()=>{let c=Ya(u,e,this);i(this.canvas,{type:st["2D"],property:o,args:c})},0),a.apply(this,u)}});s.push(l)}catch{let l=Wr(e.CanvasRenderingContext2D.prototype,o,{set(a){i(this.canvas,{type:st["2D"],property:o,args:[a],setter:!0})}});s.push(l)}return()=>{s.forEach(o=>o())}}function cp(i){return i==="experimental-webgl"?"webgl":i}function Kn(i,e,t,r){let s=[];try{let n=ze(i.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ne(this,e,t,!0)){let u=cp(l);if("__context"in this||(this.__context=u),r&&["webgl","webgl2"].includes(u))if(a[0]&&typeof a[0]=="object"){let c=a[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...a])}});s.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(n=>n())}}function qn(i,e,t,r,s,n){let o=[],l=Object.getOwnPropertyNames(i);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof i[a]!="function")continue;let u=ze(i,a,function(c){return function(...h){let p=c.apply(this,h);if(ja(p,n,this),"tagName"in this.canvas&&!ne(this.canvas,r,s,!0)){let g=Ya(h,n,this),m={type:e,property:a,args:g};t(this.canvas,m)}return p}});o.push(u)}catch{let u=Wr(i,a,{set(c){t(this.canvas,{type:e,property:a,args:[c],setter:!0})}});o.push(u)}return o}function hp(i,e,t,r){let s=[];return s.push(...qn(e.WebGLRenderingContext.prototype,st.WebGL,i,t,r,e)),typeof e.WebGL2RenderingContext<"u"&&s.push(...qn(e.WebGL2RenderingContext.prototype,st.WebGL2,i,t,r,e)),()=>{s.forEach(n=>n())}}var Za="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",fp=i=>Uint8Array.from(atob(i),e=>e.charCodeAt(0)),Qn=typeof window<"u"&&window.Blob&&new Blob([fp(Za)],{type:"text/javascript;charset=utf-8"});function dp(i){let e;try{if(e=Qn&&(window.URL||window.webkitURL).createObjectURL(Qn),!e)throw"";let t=new Worker(e,{name:i?.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),t}catch{return new Worker("data:text/javascript;base64,"+Za,{name:i?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}var os=class{constructor(e){v(this,"pendingCanvasMutations",new Map),v(this,"rafStamps",{latestId:0,invokeId:null}),v(this,"mirror"),v(this,"mutationCb"),v(this,"resetObservers"),v(this,"frozen",!1),v(this,"locked",!1),v(this,"processMutation",(a,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(u)});let{sampling:t="all",win:r,blockClass:s,blockSelector:n,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(r,s,n),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,s,n,{dataURLOptions:l})}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,s,n){let o=Kn(t,r,s,!0),l=new Map,a=new dp;a.onmessage=m=>{let{id:d}=m.data;if(l.set(d,!1),!("base64"in m.data))return;let{base64:f,type:S,width:w,height:y}=m.data;this.mutationCb({id:d,type:st["2D"],commands:[{property:"clearRect",args:[0,0,w,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:f}],type:S}]},0,0]}]})};let u=1e3/e,c=0,h,p=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(d=>{ne(d,r,s,!0)||m.push(d)}),m},g=m=>{if(c&&m-c<u){h=requestAnimationFrame(g);return}c=m,p().forEach(async d=>{var f;let S=this.mirror.getId(d);if(l.get(S)||d.width===0||d.height===0)return;if(l.set(S,!0),["webgl","webgl2"].includes(d.__context)){let y=d.getContext(d.__context);((f=y?.getContextAttributes())==null?void 0:f.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let w=await createImageBitmap(d);a.postMessage({id:S,bitmap:w,width:d.width,height:d.height,dataURLOptions:n.dataURLOptions},[w])}),h=requestAnimationFrame(g)};h=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let s=Kn(e,t,r,!1),n=up(this.processMutation.bind(this),e,t,r),o=hp(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{s(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;let s=r.map(o=>{let{type:l,...a}=o;return a}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:s}),this.pendingCanvasMutations.delete(e)}},as=class{constructor(e){v(this,"trackedLinkElements",new WeakSet),v(this,"mutationCb"),v(this,"adoptedStyleSheetCb"),v(this,"styleMirror",new es),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(e.length===0)return;let r={id:t,styleIds:[]},s=[];for(let n of e){let o;this.styleMirror.has(n)?o=this.styleMirror.getId(n):(o=this.styleMirror.add(n),s.push({styleId:o,rules:Array.from(n.rules||CSSRule,(l,a)=>({rule:io(l,n.href),index:a}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},ls=class{constructor(){v(this,"nodeMap",new WeakMap),v(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(s=>s!==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(){}},Z,pr,wi,Or=!1;try{if(Array.from([1],i=>i*2)[0]!==2){let i=document.createElement("iframe");document.body.appendChild(i),Array.from=((rn=i.contentWindow)==null?void 0:rn.Array.from)||Array.from,document.body.removeChild(i)}}catch(i){console.debug("Unable to override Array.from",i)}var ye=wu();function re(i={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:g,maskInputFn:m,maskTextFn:d,hooks:f,packFn:S,sampling:w={},dataURLOptions:y={},mousemoveWait:b,recordDOM:E=!0,recordCanvas:M=!1,recordCrossOriginIframes:R=!1,recordAfter:x=i.recordAfter==="DOMContentLoaded"?i.recordAfter:"load",userTriggeredOnInput:C=!1,collectFonts:_=!1,inlineImages:X=!1,plugins:j,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:ee=new Set([]),errorHandler:te}=i;jd(te);let L=R?window.parent===window:!0,P=!1;if(!L)try{window.parent.document&&(P=!1)}catch{P=!0}if(L&&!e)throw new Error("emit function is required");if(!L&&!P)return()=>{};b!==void 0&&w.mousemove===void 0&&(w.mousemove=b),ye.reset();let J=h===!0?{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}:p!==void 0?p:{password:!0},K=uo(g);Bd();let je,oe=0,De=O=>{for(let ae of j||[])ae.eventProcessor&&(O=ae.eventProcessor(O));return S&&!P&&(O=S(O)),O};Z=(O,ae)=>{var B;let z=O;if(z.timestamp=Nr(),(B=$e[0])!=null&&B.isFrozen()&&z.type!==D.FullSnapshot&&!(z.type===D.IncrementalSnapshot&&z.data.source===N.Mutation)&&$e.forEach(ce=>ce.unfreeze()),L)e?.(De(z),ae);else if(P){let ce={type:"rrweb",event:De(z),origin:window.location.origin,isCheckout:ae};window.parent.postMessage(ce,"*")}if(z.type===D.FullSnapshot)je=z,oe=0;else if(z.type===D.IncrementalSnapshot){if(z.data.source===N.Mutation&&z.data.isAttachIframe)return;oe++;let ce=r&&oe>=r,U=t&&z.timestamp-je.timestamp>t;(ce||U)&&pr(!0)}};let me=O=>{Z({type:D.IncrementalSnapshot,data:{source:N.Mutation,...O}})},ue=O=>Z({type:D.IncrementalSnapshot,data:{source:N.Scroll,...O}}),q=O=>Z({type:D.IncrementalSnapshot,data:{source:N.CanvasMutation,...O}}),_e=O=>Z({type:D.IncrementalSnapshot,data:{source:N.AdoptedStyleSheet,...O}}),be=new as({mutationCb:me,adoptedStyleSheetCb:_e}),ge=new ss({mirror:ye,mutationCb:me,stylesheetManager:be,recordCrossOriginIframes:R,wrappedEmit:Z});for(let O of j||[])O.getMirror&&O.getMirror({nodeMirror:ye,crossOriginIframeMirror:ge.crossOriginIframeMirror,crossOriginIframeStyleMirror:ge.crossOriginIframeStyleMirror});let at=new ls;wi=new os({recordCanvas:M,mutationCb:q,win:window,blockClass:s,blockSelector:n,mirror:ye,sampling:w.canvas,dataURLOptions:y});let Pe=new ns({mutationCb:me,scrollCb:ue,bypassOptions:{blockClass:s,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:J,dataURLOptions:y,maskTextFn:d,maskInputFn:m,recordCanvas:M,inlineImages:X,sampling:w,slimDOMOptions:K,iframeManager:ge,stylesheetManager:be,canvasManager:wi,keepIframeSrcFn:I,processedNodeManager:at},mirror:ye});pr=(O=!1)=>{if(!E)return;Z({type:D.Meta,data:{href:window.location.href,width:_a(),height:Da()}},O),be.reset(),Pe.init(),$e.forEach(B=>B.lock());let ae=Vu(document,{mirror:ye,blockClass:s,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:J,maskTextFn:d,maskInputFn:m,slimDOM:K,dataURLOptions:y,recordCanvas:M,inlineImages:X,onSerialize:B=>{Pa(B,ye)&&ge.addIframe(B),$a(B,ye)&&be.trackLinkElement(B),Qi(B)&&Pe.addShadowRoot(A.shadowRoot(B),document)},onIframeLoad:(B,z)=>{ge.attachIframe(B,z),Pe.observeAttachShadow(B)},onStylesheetLoad:(B,z)=>{be.attachLinkElement(B,z)},keepIframeSrcFn:I});if(!ae)return console.warn("Failed to snapshot the document");Z({type:D.FullSnapshot,data:{node:ae,initialOffset:Oa(window)}},O),$e.forEach(B=>B.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,ye.getId(document))};try{let O=[],ae=z=>{var ce;return T(np)({mutationCb:me,mousemoveCb:(U,ni)=>Z({type:D.IncrementalSnapshot,data:{source:ni,positions:U}}),mouseInteractionCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.MouseInteraction,...U}}),scrollCb:ue,viewportResizeCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.ViewportResize,...U}}),inputCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.Input,...U}}),mediaInteractionCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.MediaInteraction,...U}}),styleSheetRuleCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.StyleSheetRule,...U}}),styleDeclarationCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.StyleDeclaration,...U}}),canvasMutationCb:q,fontCb:U=>Z({type:D.IncrementalSnapshot,data:{source:N.Font,...U}}),selectionCb:U=>{Z({type:D.IncrementalSnapshot,data:{source:N.Selection,...U}})},customElementCb:U=>{Z({type:D.IncrementalSnapshot,data:{source:N.CustomElement,...U}})},blockClass:s,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:u,maskInputOptions:J,inlineStylesheet:c,sampling:w,recordDOM:E,recordCanvas:M,inlineImages:X,userTriggeredOnInput:C,collectFonts:_,doc:z,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:I,blockSelector:n,slimDOMOptions:K,dataURLOptions:y,mirror:ye,iframeManager:ge,stylesheetManager:be,shadowDomManager:Pe,processedNodeManager:at,canvasManager:wi,ignoreCSSAttributes:ee,plugins:((ce=j?.filter(U=>U.observer))==null?void 0:ce.map(U=>({observer:U.observer,options:U.options,callback:ni=>Z({type:D.Plugin,data:{plugin:U.name,payload:ni}})})))||[]},f)};ge.addLoadListener(z=>{try{O.push(ae(z.contentDocument))}catch(ce){console.warn(ce)}});let B=()=>{pr(),O.push(ae(document)),Or=!0};return["interactive","complete"].includes(document.readyState)?B():(O.push(se("DOMContentLoaded",()=>{Z({type:D.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&B()})),O.push(se("load",()=>{Z({type:D.Load,data:{}}),x==="load"&&B()},window))),()=>{O.forEach(z=>{try{z()}catch(ce){String(ce).toLowerCase().includes("cross-origin")||console.warn(ce)}}),at.destroy(),Or=!1,Yd()}}catch(O){console.warn(O)}}re.addCustomEvent=(i,e)=>{if(!Or)throw new Error("please add custom event after start recording");Z({type:D.Custom,data:{tag:i,payload:e}})};re.freezePage=()=>{$e.forEach(i=>i.freeze())};re.takeFullSnapshot=i=>{if(!Or)throw new Error("please take full snapshot after start recording");pr(i)};re.mirror=ye;var eo;(function(i){i[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped"})(eo||(eo={}));var rg=5*1e3;var{addCustomEvent:ig}=re,{freezePage:sg}=re,{takeFullSnapshot:ng}=re;var Xa={maskAllInputs:!0,maskInputOptions:{password:!0},blockSelector:"[data-rr-block]",maskTextSelector:"[data-rr-mask]",ignoreSelector:"[data-rr-ignore]",sampling:{scroll:150,input:"last"}};function Ja(i){return i?i.closest?.("[data-sentiero-unmask]")!==null:!1}function pp(i){return!!i&&i.tagName==="INPUT"&&i.type==="password"}function Ka(i={}){let e={...Xa,...i};if(e.maskInputOptions={...i.maskInputOptions||{},password:!0},i.sampling&&(e.sampling={...Xa.sampling,...i.sampling}),e.maskAllInputs){let t=i.maskInputFn;e.maskInputFn=(r,s)=>e.maskInputOptions.password&&pp(s)?"*".repeat(r.length):t?t(r,s):Ja(s)?r:"*".repeat(r.length)}return e.maskTextFn||(e.maskTextFn=(t,r)=>Ja(r)?t:t.replace(/\S/g,"*")),e}var Se=Uint8Array,he=Uint16Array,$s=Int32Array,Fs=new Se([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Us=new Se([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qa=new Se([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rl=function(i,e){for(var t=new he(31),r=0;r<31;++r)t[r]=e+=1<<i[r-1];for(var s=new $s(t[30]),r=1;r<30;++r)for(var n=t[r];n<t[r+1];++n)s[n]=n-t[r]<<5|r;return{b:t,r:s}},il=rl(Fs,2),mp=il.b,_s=il.r;mp[28]=258,_s[258]=28;var sl=rl(Us,0),lg=sl.b,Qa=sl.r,ks=new he(32768);for(k=0;k<32768;++k)Te=(k&43690)>>1|(k&21845)<<1,Te=(Te&52428)>>2|(Te&13107)<<2,Te=(Te&61680)>>4|(Te&3855)<<4,ks[k]=((Te&65280)>>8|(Te&255)<<8)>>1;var Te,k,_t=function(i,e,t){for(var r=i.length,s=0,n=new he(e);s<r;++s)i[s]&&++n[i[s]-1];var o=new he(e);for(s=1;s<e;++s)o[s]=o[s-1]+n[s-1]<<1;var l;if(t){l=new he(1<<e);var a=15-e;for(s=0;s<r;++s)if(i[s])for(var u=s<<4|i[s],c=e-i[s],h=o[i[s]-1]++<<c,p=h|(1<<c)-1;h<=p;++h)l[ks[h]>>a]=u}else for(l=new he(r),s=0;s<r;++s)i[s]&&(l[s]=ks[o[i[s]-1]++]>>15-i[s]);return l},We=new Se(288);for(k=0;k<144;++k)We[k]=8;var k;for(k=144;k<256;++k)We[k]=9;var k;for(k=256;k<280;++k)We[k]=7;var k;for(k=280;k<288;++k)We[k]=8;var k,Vr=new Se(32);for(k=0;k<32;++k)Vr[k]=5;var k,gp=_t(We,9,0);var yp=_t(Vr,5,0);var nl=function(i){return(i+7)/8|0},vp=function(i,e,t){return(e==null||e<0)&&(e=0),(t==null||t>i.length)&&(t=i.length),new Se(i.subarray(e,t))};var Oe=function(i,e,t){t<<=e&7;var r=e/8|0;i[r]|=t,i[r+1]|=t>>8},Ot=function(i,e,t){t<<=e&7;var r=e/8|0;i[r]|=t,i[r+1]|=t>>8,i[r+2]|=t>>16},Ds=function(i,e){for(var t=[],r=0;r<i.length;++r)i[r]&&t.push({s:r,f:i[r]});var s=t.length,n=t.slice();if(!s)return{t:al,l:0};if(s==1){var o=new Se(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(E,M){return E.f-M.f}),t.push({s:-1,f:25001});var l=t[0],a=t[1],u=0,c=1,h=2;for(t[0]={s:-1,f:l.f+a.f,l,r:a};c!=s-1;)l=t[t[u].f<t[h].f?u++:h++],a=t[u!=c&&t[u].f<t[h].f?u++:h++],t[c++]={s:-1,f:l.f+a.f,l,r:a};for(var p=n[0].s,r=1;r<s;++r)n[r].s>p&&(p=n[r].s);var g=new he(p+1),m=Ls(t[c-1],g,0);if(m>e){var r=0,d=0,f=m-e,S=1<<f;for(n.sort(function(M,R){return g[R.s]-g[M.s]||M.f-R.f});r<s;++r){var w=n[r].s;if(g[w]>e)d+=S-(1<<m-g[w]),g[w]=e;else break}for(d>>=f;d>0;){var y=n[r].s;g[y]<e?d-=1<<e-g[y]++-1:++r}for(;r>=0&&d;--r){var b=n[r].s;g[b]==e&&(--g[b],++d)}m=e}return{t:new Se(g),l:m}},Ls=function(i,e,t){return i.s==-1?Math.max(Ls(i.l,e,t+1),Ls(i.r,e,t+1)):e[i.s]=t},el=function(i){for(var e=i.length;e&&!i[--e];);for(var t=new he(++e),r=0,s=i[0],n=1,o=function(a){t[r++]=a},l=1;l<=e;++l)if(i[l]==s&&l!=e)++n;else{if(!s&&n>2){for(;n>138;n-=138)o(32754);n>2&&(o(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(o(s),--n;n>6;n-=6)o(8304);n>2&&(o(n-3<<5|8208),n=0)}for(;n--;)o(s);n=1,s=i[l]}return{c:t.subarray(0,r),n:e}},Dt=function(i,e){for(var t=0,r=0;r<e.length;++r)t+=i[r]*e[r];return t},ol=function(i,e,t){var r=t.length,s=nl(e+2);i[s]=r&255,i[s+1]=r>>8,i[s+2]=i[s]^255,i[s+3]=i[s+1]^255;for(var n=0;n<r;++n)i[s+n+4]=t[n];return(s+4+r)*8},tl=function(i,e,t,r,s,n,o,l,a,u,c){Oe(e,c++,t),++s[256];for(var h=Ds(s,15),p=h.t,g=h.l,m=Ds(n,15),d=m.t,f=m.l,S=el(p),w=S.c,y=S.n,b=el(d),E=b.c,M=b.n,R=new he(19),x=0;x<w.length;++x)++R[w[x]&31];for(var x=0;x<E.length;++x)++R[E[x]&31];for(var C=Ds(R,7),_=C.t,X=C.l,j=19;j>4&&!_[qa[j-1]];--j);var I=u+5<<3,ee=Dt(s,We)+Dt(n,Vr)+o,te=Dt(s,p)+Dt(n,d)+o+14+3*j+Dt(R,_)+2*R[16]+3*R[17]+7*R[18];if(a>=0&&I<=ee&&I<=te)return ol(e,c,i.subarray(a,a+u));var L,P,J,K;if(Oe(e,c,1+(te<ee)),c+=2,te<ee){L=_t(p,g,0),P=p,J=_t(d,f,0),K=d;var je=_t(_,X,0);Oe(e,c,y-257),Oe(e,c+5,M-1),Oe(e,c+10,j-4),c+=14;for(var x=0;x<j;++x)Oe(e,c+3*x,_[qa[x]]);c+=3*j;for(var oe=[w,E],De=0;De<2;++De)for(var me=oe[De],x=0;x<me.length;++x){var ue=me[x]&31;Oe(e,c,je[ue]),c+=_[ue],ue>15&&(Oe(e,c,me[x]>>5&127),c+=me[x]>>12)}}else L=gp,P=We,J=yp,K=Vr;for(var x=0;x<l;++x){var q=r[x];if(q>255){var ue=q>>18&31;Ot(e,c,L[ue+257]),c+=P[ue+257],ue>7&&(Oe(e,c,q>>23&31),c+=Fs[ue]);var _e=q&31;Ot(e,c,J[_e]),c+=K[_e],_e>3&&(Ot(e,c,q>>5&8191),c+=Us[_e])}else Ot(e,c,L[q]),c+=P[q]}return Ot(e,c,L[256]),c+P[256]},wp=new $s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),al=new Se(0),Sp=function(i,e,t,r,s,n){var o=n.z||i.length,l=new Se(r+o+5*(1+Math.ceil(o/7e3))+s),a=l.subarray(r,l.length-s),u=n.l,c=(n.r||0)&7;if(e){c&&(a[0]=n.r>>3);for(var h=wp[e-1],p=h>>13,g=h&8191,m=(1<<t)-1,d=n.p||new he(32768),f=n.h||new he(m+1),S=Math.ceil(t/3),w=2*S,y=function(z){return(i[z]^i[z+1]<<S^i[z+2]<<w)&m},b=new $s(25e3),E=new he(288),M=new he(32),R=0,x=0,C=n.i||0,_=0,X=n.w||0,j=0;C+2<o;++C){var I=y(C),ee=C&32767,te=f[I];if(d[ee]=te,f[I]=ee,X<=C){var L=o-C;if((R>7e3||_>24576)&&(L>423||!u)){c=tl(i,a,0,b,E,M,x,_,j,C-j,c),_=R=x=0,j=C;for(var P=0;P<286;++P)E[P]=0;for(var P=0;P<30;++P)M[P]=0}var J=2,K=0,je=g,oe=ee-te&32767;if(L>2&&I==y(C-oe))for(var De=Math.min(p,L)-1,me=Math.min(32767,C),ue=Math.min(258,L);oe<=me&&--je&&ee!=te;){if(i[C+J]==i[C+J-oe]){for(var q=0;q<ue&&i[C+q]==i[C+q-oe];++q);if(q>J){if(J=q,K=oe,q>De)break;for(var _e=Math.min(oe,q-2),be=0,P=0;P<_e;++P){var ge=C-oe+P&32767,at=d[ge],Pe=ge-at&32767;Pe>be&&(be=Pe,te=ge)}}}ee=te,te=d[ee],oe+=ee-te&32767}if(K){b[_++]=268435456|_s[J]<<18|Qa[K];var O=_s[J]&31,ae=Qa[K]&31;x+=Fs[O]+Us[ae],++E[257+O],++M[ae],X=C+J,++R}else b[_++]=i[C],++E[i[C]]}}for(C=Math.max(C,X);C<o;++C)b[_++]=i[C],++E[i[C]];c=tl(i,a,u,b,E,M,x,_,j,C-j,c),u||(n.r=c&7|a[c/8|0]<<3,c-=7,n.h=f,n.p=d,n.i=C,n.w=X)}else{for(var C=n.w||0;C<o+u;C+=65535){var B=C+65535;B>=o&&(a[c/8|0]=u,B=o),c=ol(a,c+1,i.subarray(C,B))}n.i=o}return vp(l,0,r+nl(c)+s)},bp=function(){for(var i=new Int32Array(256),e=0;e<256;++e){for(var t=e,r=9;--r;)t=(t&1&&-306674912)^t>>>1;i[e]=t}return i}(),Cp=function(){var i=-1;return{p:function(e){for(var t=i,r=0;r<e.length;++r)t=bp[t&255^e[r]]^t>>>8;i=t},d:function(){return~i}}};var xp=function(i,e,t,r,s){if(!s&&(s={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),o=new Se(n.length+i.length);o.set(n),o.set(i,n.length),i=o,s.w=n.length}return Sp(i,e.level==null?6:e.level,e.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(i.length)))*1.5):20:12+e.mem,t,r,s)};var Ps=function(i,e,t){for(;t;++e)i[e]=t,t>>>=8},Ep=function(i,e){var t=e.filename;if(i[0]=31,i[1]=139,i[2]=8,i[8]=e.level<2?4:e.level==9?2:0,i[9]=3,e.mtime!=0&&Ps(i,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),t){i[3]=8;for(var r=0;r<=t.length;++r)i[r+10]=t.charCodeAt(r)}};var Ip=function(i){return 10+(i.filename?i.filename.length+1:0)};function ll(i,e){e||(e={});var t=Cp(),r=i.length;t.p(i);var s=xp(i,e,Ip(e),8),n=s.length;return Ep(s,e),Ps(s,n-8,t.d()),Ps(s,n-4,r),s}var Mp=typeof TextDecoder<"u"&&new TextDecoder,Ap=0;try{Mp.decode(al,{stream:!0}),Ap=1}catch{}function ul(i,e){return typeof i=="number"&&Number.isFinite(i)&&i>0?i:e}function Gr(){let i={};try{let e=globalThis.document?.getElementById?.("sentiero-config");e&&(i=JSON.parse(e.textContent)||{})}catch{i={}}return{idleTimeoutMs:ul(i.sessionIdleTimeoutMs,216e5),maxAgeMs:ul(i.sessionMaxAgeMs,6048e5)}}var zs="sentiero_session_id",fl="sentiero_window_id",Ws="sentiero_session_created_at",jr="sentiero_session_last_seen",Yr="sentiero_entry_url",Hr="sentiero_entry_referrer",Np=[zs,fl,Ws,jr,Yr,Hr],Bs={value:null},Rp={value:null},Zr=null;function Tp(i,e,t){try{let r=i.getItem(e);return r||(r=crypto.randomUUID(),i.setItem(e,r)),r}catch{return t.value||(t.value=crypto.randomUUID()),t.value}}function cl(i,e){let t=Number(i.getItem(e));return Number.isFinite(t)&&t>0?t:null}function Vs(i,e,t){i.setItem(e,String(t))}function dl(i=!0){let e=i?localStorage:sessionStorage,{idleTimeoutMs:t,maxAgeMs:r}=Gr();try{let s=Date.now(),n=e.getItem(zs),o=cl(e,Ws),l=cl(e,jr),a=!n||o===null||l===null||s-l>t||s-o>r,u=n;return a&&(u=crypto.randomUUID(),e.setItem(zs,u),Vs(e,Ws,s),e.removeItem(Yr),e.removeItem(Hr)),Vs(e,jr,s),Zr=e,u}catch{return Bs.value||(Bs.value=crypto.randomUUID()),Bs.value}}function pl(){return Tp(sessionStorage,fl,Rp)}function Op(){if(Zr)try{Vs(Zr,jr,Date.now())}catch{}}typeof window<"u"&&typeof window.addEventListener=="function"&&window.addEventListener("pagehide",Op);function hl(i){if(!i)return"";try{let e=new URL(i);return e.origin+e.pathname}catch{let e=i.search(/[?#]/);return e===-1?i:i.slice(0,e)}}function ml(i=!0){let e=i?localStorage:sessionStorage;try{let t=e.getItem(Yr);if(t===null){let r=hl(globalThis.location?.href||""),s=hl(globalThis.document?.referrer||"");return e.setItem(Yr,r),e.setItem(Hr,s),{entry_url:r,entry_referrer:s}}return{entry_url:t,entry_referrer:e.getItem(Hr)||""}}catch{return{}}}function gl(){for(let i of[globalThis.localStorage,globalThis.sessionStorage])if(i)for(let e of Np)try{i.removeItem(e)}catch{}Zr=null}var yl="[redacted]",Dp=["url","jwt","email","long_hex","card"],_p={jwt:/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,email:/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g,long_hex:/\b[0-9a-fA-F]{32,}\b/g,card:/\b\d(?:[ -]?\d){12,18}\b/g},kp=/https?:\/\/\S+/g,Lp=["token","access_token","refresh_token","id_token","password","passwd","pwd","secret","api_key","apikey","key","sig","signature","code","auth","session","sessionid","otp"];function Xr(i={}){return{urlMode:i.urlMode||"strip",allowlist:(i.urlParamAllowlist||[]).map(e=>e.toLowerCase()),denylist:[...Lp,...(i.urlParamDenylist||[]).map(e=>e.toLowerCase())],disabled:i.disabledPatterns||[],customRegexes:(i.customPatterns||[]).flatMap(e=>{try{return[new RegExp(e,"g")]}catch{return console.warn(`[Sentiero] skipping invalid custom redaction pattern: ${e}`),[]}})}}function vl(i){let e=i.indexOf("?"),t=i.indexOf("#");return e<0&&(e=i.length),t>=0&&t<e&&(e=t),i.slice(0,e)}function Pp(i,e){return e==="url"?i.replace(kp,t=>vl(t)):i.replace(_p[e],yl)}function Jr(i,e){if(typeof i!="string")return i;let t=i;for(let r of Dp)e.disabled.includes(r)||(t=Pp(t,r));for(let r of e.customRegexes)t=t.replace(r,yl);return t}function $p(i){let e=i,t="",r=e.indexOf("#");r>=0&&(t=e.slice(r+1),e=e.slice(0,r));let s="",n=e.indexOf("?");return n>=0&&(s=e.slice(n+1),e=e.slice(0,n)),{base:e,query:s,frag:t}}function Fp(i){try{return decodeURIComponent(i)}catch{return i}}function Up(i,e){let t=i.indexOf("="),r=(t>=0?i.slice(0,t):i).toLowerCase();if(e.denylist.includes(r))return null;if(e.allowlist.includes(r)||t<0)return i;let s=i.slice(t+1),n=Fp(s),o=Jr(n,e);return o===n?i:i.slice(0,t)+"="+o}function Lt(i,e){if(typeof i!="string"||e.urlMode==="keepAll")return i;if(e.urlMode!=="keepFiltered")return vl(i);let{base:t,query:r,frag:s}=$p(i),n=r?r.split("&").map(l=>Up(l,e)).filter(l=>l!==null):[],o=t;return n.length&&(o+="?"+n.join("&")),s&&(o+="#"+Jr(s,e)),o}var Bp=5,zp=4,Wp=["url","referrer","entry_url","entry_referrer"],Vp={navigation:{url:"url",text:"text"},__form_submit:{url:"url"},error:{message:"text",stack:"text",source:"url"},__click:{selector:"text"}};function kt(i,e){if(typeof i=="string")return Jr(i,e);if(Array.isArray(i))return i.map(t=>kt(t,e));if(i&&typeof i=="object"){let t={};for(let[r,s]of Object.entries(i))t[kt(r,e)]=kt(s,e);return t}return i}function Ve(i,e,t){if(e==null||typeof e!="object")return e;let r=Vp[i],s={};for(let[n,o]of Object.entries(e))r&&r[n]==="url"?s[n]=Lt(o,t):r&&r[n]==="text"?s[n]=Jr(o,t):s[n]=kt(o,t);return s}function wl(i,e){return i&&i.type===Bp&&i.data&&typeof i.data=="object"?{...i,data:{...i.data,payload:Ve(i.data.tag,i.data.payload,e)}}:i&&i.type===zp&&i.data&&typeof i.data=="object"&&"href"in i.data?{...i,data:{...i.data,href:Lt(i.data.href,e)}}:i}function Kr(i,e){if(i==null||typeof i!="object")return i;let t={};for(let[r,s]of Object.entries(i))t[r]=Wp.includes(r)?Lt(s,e):kt(s,e);return t}var Gp=64e3,qr=class{constructor({eventsUrl:e,flushIntervalMs:t=1e4,flushEventThreshold:r=50,maxBufferSize:s=5e3,crossTabSessions:n=!0,captureMetadata:o=!1,redactionCfg:l=null}){this.eventsUrl=e,this.flushIntervalMs=t,this.flushEventThreshold=r,this.maxBufferSize=s,this.buffer=[],this._stopped=!1,this._crossTabSessions=n,this.sessionId=dl(n),this.windowId=pl(),this._intervalId=null,this._flushing=!1,this._retryCount=0,this._maxRetries=10,this._baseBackoffMs=1e3,this._maxBackoffMs=3e4,this._lastFailureTime=null,this._captureMetadata=o,this._metadataSent=!1,this._customMetadata={},this._redactionCfg=l||Xr({})}start(){this._intervalId=setInterval(()=>this.flush(),this.flushIntervalMs)}setMetadata(e){e&&typeof e=="object"&&Object.assign(this._customMetadata,e)}addEvent(e){if(this.buffer.push(wl(e,this._redactionCfg)),this.buffer.length>this.maxBufferSize){let t=this.buffer.length-this.maxBufferSize;this.buffer.splice(0,t),console.warn(`[Sentiero] buffer overflow, dropped ${t} oldest events`)}this.buffer.length>=this.flushEventThreshold&&this.flush()}_collectMetadata(){let e={};try{e.url=window.location.href,e.referrer=document.referrer||"",e.userAgent=navigator.userAgent,e.viewport=`${window.innerWidth}x${window.innerHeight}`,Object.assign(e,ml(this._crossTabSessions))}catch{}return Kr(e,this._redactionCfg)}_buildPayload(e,t){let r={sessionId:this.sessionId,windowId:this.windowId,events:e};return this._captureMetadata&&!this._metadataSent?(r.metadata=Kr({...this._collectMetadata(),...t},this._redactionCfg),this._metadataSent=!0):Object.keys(t).length>0&&(r.metadata=Kr({...t},this._redactionCfg)),JSON.stringify(r)}_handleFlushFailure(e,t,r,s){this._flushing=!1,this._retryCount++,this._lastFailureTime=Date.now(),console.warn(r,s),this.buffer=e.concat(this.buffer),this._customMetadata={...t,...this._customMetadata},this._metadataSent=!1}flush(){if(this._stopped||this.buffer.length===0||this._flushing)return;if(this._retryCount>0){let s=Math.min(this._baseBackoffMs*2**(this._retryCount-1),this._maxBackoffMs);if(!this._lastFailureTime||Date.now()-this._lastFailureTime<s)return}if(this._retryCount>=this._maxRetries){console.warn(`[Sentiero] max retries (${this._maxRetries}) exceeded, dropping ${this.buffer.length} events`),this.buffer.length=0,this._retryCount=0,this._lastFailureTime=null;return}let e=this.buffer;this.buffer=[];let t=this._customMetadata;this._customMetadata={},this._flushing=!0;let r=this._buildPayload(e,t);try{let s=ll(new TextEncoder().encode(r));fetch(this.eventsUrl,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip"},body:s}).then(n=>{this._flushing=!1,n.ok?(this._retryCount=0,this._lastFailureTime=null):this._handleFlushFailure(e,t,"[Sentiero] server rejected events:",n.status)}).catch(n=>{this._handleFlushFailure(e,t,"[Sentiero] flush failed, re-queuing events:",n)})}catch(s){this._handleFlushFailure(e,t,"[Sentiero] compression failed, re-queuing events:",s)}}flushBeacon(){if(this._stopped||this.buffer.length===0)return;let e=this.buffer;this.buffer=[];let t=this._customMetadata;this._customMetadata={},this._sendBeaconChunk(e,t)}_sendBeaconChunk(e,t){if(e.length===0)return;let r=this._buildPayload(e,t),s;try{s=new Blob([r],{type:"application/json"})}catch(n){console.warn("[Sentiero] beacon failed:",n);return}if(s.size>Gp&&e.length>1){let n=Math.floor(e.length/2);this._sendBeaconChunk(e.slice(0,n),t),this._sendBeaconChunk(e.slice(n),{});return}navigator.sendBeacon(this.eventsUrl,s)||console.warn("[Sentiero] sendBeacon rejected, events may be lost")}stop(){this._intervalId!==null&&(clearInterval(this._intervalId),this._intervalId=null),this.flushBeacon()}discard(){this._stopped=!0,this._intervalId!==null&&(clearInterval(this._intervalId),this._intervalId=null),this.buffer.length=0}};var Sl=i=>i!=null&&i!==""&&i!=="0"&&i!=="false";function jp(i,e){let t=(e.cookie||"").split(";");for(let r of t){let s=r.indexOf("=");if((s===-1?r:r.slice(0,s)).trim()===i)return decodeURIComponent(r.slice(s+1).trim())}return null}function Yp(i,e){try{return e.getItem(i)}catch{return null}}function bl(i,e=globalThis.document,t=globalThis.localStorage){return i?Sl(jp(i,e))||Sl(Yp(i,t)):!1}function Cl(i,e=globalThis.document,t=globalThis.localStorage){if(i){e.cookie=`${i}=1; path=/; max-age=31536000; SameSite=Lax`;try{t.setItem(i,"1")}catch{}}}function xl(i,e=globalThis.document,t=globalThis.localStorage){if(i){e.cookie=`${i}=; path=/; max-age=0; SameSite=Lax`;try{t.removeItem(i)}catch{}}}function El(i,e=globalThis.navigator){return!(bl(i?.optOutCookieName)||i?.respectGpc&&e?.globalPrivacyControl)}var Ml="sentiero_sid",Al="sentiero_wid";function Il(i,e,t,r,s){let n=`${e}=${encodeURIComponent(t)}; path=/; max-age=${s}; SameSite=Lax`;r&&(n+="; Secure"),i.cookie=n}function Nl(i,e,{doc:t=globalThis.document,secure:r=globalThis.location?.protocol==="https:"}={}){if(!t||!i)return;let s=Math.round(Gr().maxAgeMs/1e3);try{Il(t,Ml,i,r,s),e&&Il(t,Al,e,r,s)}catch{}}function Rl({doc:i=globalThis.document}={}){if(i)try{i.cookie=`${Ml}=; path=/; max-age=0; SameSite=Lax`,i.cookie=`${Al}=; path=/; max-age=0; SameSite=Lax`}catch{}}var Hp="__form_submit";function Zp(i){if(!i||typeof i.getAttribute!="function")return{};let e={},t=i.getAttribute("name"),r=i.getAttribute("id");return t&&(e.name=t),r&&(e.id=r),e}function Xp(i,e){return{...Zp(i),url:e}}function Tl(i,e,t){i.addEventListener("submit",r=>{let s=r.target;if(!(!s||typeof s.getAttribute!="function"))try{e(Hp,Xp(s,t()))}catch{}},!0)}function cm(){let i=document.getElementById("sentiero-config");if(i)try{return JSON.parse(i.textContent)}catch(e){console.warn("[Sentiero] failed to parse config element:",e)}if(document.currentScript&&document.currentScript.src){let e=new URL(document.currentScript.src),t=e.pathname.split("/");return t[t.length-1]="events",e.pathname=t.join("/"),{eventsUrl:e.toString()}}return console.warn("[Sentiero] no config found, recording disabled"),null}function hm({href:i,text:e,external:t},r){let s={url:i};return e&&(s.text=e),t&&(s.external=!0),Ve("navigation",s,r)}function jl({message:i,stack:e,source:t,...r},s){let n={...r,message:i,stack:e||""};return t!==void 0&&(n.source=t),Ve("error",n,s)}function fm(i){window.addEventListener("error",e=>{try{re.addCustomEvent("error",jl({message:e.message||"Unknown error",source:e.filename||"",lineno:e.lineno||0,colno:e.colno||0,stack:e.error?.stack||""},i))}catch{}}),window.addEventListener("unhandledrejection",e=>{try{let t="Unhandled Promise rejection",r="";e.reason instanceof Error?(t=e.reason.message,r=e.reason.stack||""):typeof e.reason=="string"&&(t=e.reason),re.addCustomEvent("error",jl({message:t,type:"unhandledrejection",stack:r},i))}catch{}})}function dm(){Promise.resolve().then(()=>(Gl(),Vl)).then(({onLCP:i,onCLS:e,onINP:t})=>{let r=s=>{try{re.addCustomEvent("__perf",{metric:s.name,value:s.value,rating:s.rating})}catch{}};i(r),e(r),t(r)}).catch(i=>{console.warn("[Sentiero] web-vitals failed to load:",i)})}function pm(i){document.addEventListener("click",e=>{let t=e.target.closest("a[href]");if(!t)return;let r=t.href;if(!r||r.startsWith("javascript:")||r==="#")return;try{let o=new URL(r,window.location.href);if(o.origin===window.location.origin&&o.pathname===window.location.pathname&&o.hash)return}catch{return}let s=(t.textContent||"").trim().substring(0,100),n=(()=>{try{return new URL(r,window.location.href).origin!==window.location.origin}catch{return!1}})();try{re.addCustomEvent("navigation",hm({href:r,text:s,external:n},i))}catch{}},!0)}function mm(i){let e=i;for(let s=0;e&&s<3&&!(e.nodeType===1&&e.tagName);s++)e=e.parentElement;if(!e||e.nodeType!==1)return null;let t=e.tagName.toLowerCase();if(e.id)return`${t}#${e.id}`;let r=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean).slice(0,2);return r.length?`${t}.${r.join(".")}`:t}function gm(i){document.addEventListener("click",e=>{let t=mm(e.target);if(t)try{re.addCustomEvent("__click",Ve("__click",{selector:t},i))}catch{}},!0)}var ym=["click","change","submit","focus","blur"],vm=/^[a-zA-Z0-9_.\-]{1,100}$/,wm=4096;function Sm(i){for(let e of ym)document.addEventListener(e,t=>{let r=`data-sentiero-track-${e}`,s=t.target.closest(`[${r}]`);if(!s)return;let n=s.getAttribute(r);if(!n||!vm.test(n))return;let o={},l=s.getAttribute("data-sentiero-data");if(l){if(l.length>wm)return;try{o=JSON.parse(l)}catch{return}}try{re.addCustomEvent(n,Ve(n,o,i))}catch{}},!0)}function bm(){let i=cm();if(!i?.eventsUrl)return;let e=Xr(i.redaction),t=i.optOutCookieName,r=null,s=null;if(window.Sentiero=window.Sentiero||{},window.Sentiero.optOut=()=>{if(Cl(t),Rl(),gl(),s){try{s()}catch{}s=null}r&&(r.discard(),r=null)},window.Sentiero.optIn=()=>xl(t),!El(i))return;r=new qr({eventsUrl:i.eventsUrl,flushIntervalMs:i.flushIntervalMs,flushEventThreshold:i.flushEventThreshold,crossTabSessions:i.crossTabSessions!==!1,captureMetadata:i.captureMetadata===!0,redactionCfg:e}),Nl(r.sessionId,r.windowId),window.Sentiero.setMetadata=o=>r.setMetadata(o),window.Sentiero.addCustomEvent=(o,l)=>{try{re.addCustomEvent(o,Ve(o,l,e))}catch(a){console.warn("[Sentiero] addCustomEvent failed:",a)}};let n=Ka(i.recorderOptions||{});try{s=re({...n,emit:o=>r.addEvent(o)})}catch(o){console.error("[Sentiero] rrweb recording failed to start:",o),r.stop();return}i.captureErrors===!0&&fm(e),i.trackNavigation===!0&&pm(e),i.trackCustomEvents===!0&&Sm(e),i.captureWebVitals===!0&&dm(),i.captureClicks===!0&&gm(e),i.trackForms===!0&&Tl(document,(o,l)=>re.addCustomEvent(o,l),()=>Lt(window.location.href,e)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&r?.flushBeacon()}),document.addEventListener("pagehide",()=>{r?.flushBeacon()}),r.start()}typeof window<"u"&&bm();})();
|
|
54
|
+
/*! Bundled license information:
|
|
55
|
+
|
|
56
|
+
rrweb/dist/rrweb.js:
|
|
57
|
+
(*! *****************************************************************************
|
|
58
|
+
Copyright (c) Microsoft Corporation.
|
|
59
|
+
|
|
60
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
61
|
+
purpose with or without fee is hereby granted.
|
|
62
|
+
|
|
63
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
64
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
65
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
66
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
67
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
68
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
69
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
70
|
+
***************************************************************************** *)
|
|
71
|
+
*/
|