403Webshell
Server IP : 185.11.201.71  /  Your IP : 192.168.7.18
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : tech ( 1000)
PHP Version : 7.4.28
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/colorimetria/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/colorimetria/assets/index-qHbVFDW_.js
var GC=Object.defineProperty;var jC=(t,e,n)=>e in t?GC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ke=(t,e,n)=>jC(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();function Ge(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function an(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function ru(t,e){const n=Ge(t);return isNaN(e)?an(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function Ev(t,e){const n=+Ge(t);return an(t,n+e)}function XC(t,e){return Ev(t,e*1e3)}const Tw=6048e5,YC=864e5,Lu=6e4,Ou=36e5,qC=1e3;function KC(t,e){return Ev(t,e*Lu)}function QC(t,e){return Ev(t,e*Ou)}function ZC(t,e){const n=e*7;return ru(t,n)}function ef(t,e){const n=Ge(t);if(isNaN(e))return an(t,NaN);if(!e)return n;const i=n.getDate(),r=an(t,n.getTime());r.setMonth(n.getMonth()+e+1,0);const a=r.getDate();return i>=a?r:(n.setFullYear(r.getFullYear(),r.getMonth(),i),n)}function M0(t,e){return ef(t,e*12)}function Vc(t,e){const n=Ge(t),i=Ge(e),r=n.getTime()-i.getTime();return r<0?-1:r>0?1:r}function $C(t,e){const n=Ge(t),i=Ge(e);return n.getFullYear()-i.getFullYear()}function JC(t,e){const n=Ge(t),i=Ge(e),r=Vc(n,i),a=Math.abs($C(n,i));n.setFullYear(1584),i.setFullYear(1584);const o=Vc(n,i)===-r,s=r*(a-+o);return s===0?0:s}function Nu(t){return e=>{const i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}function eP(t,e){const n=Ge(t),i=Ge(e),r=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return r*12+a}function Dm(t){const e=Ge(t);return e.setHours(23,59,59,999),e}function Im(t){const e=Ge(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function tP(t){const e=Ge(t);return+Dm(e)==+Im(e)}function Aw(t,e){const n=Ge(t),i=Ge(e),r=Vc(n,i),a=Math.abs(eP(n,i));let o;if(a<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*a);let s=Vc(n,i)===-r;tP(Ge(t))&&a===1&&Vc(t,i)===1&&(s=!1),o=r*(a-Number(s))}return o===0?0:o}function nP(t,e,n){const i=Aw(t,e)/3;return Nu(n==null?void 0:n.roundingMethod)(i)}function Ml(t){const e=Ge(t);return e.setHours(0,0,0,0),e}function bf(t){const e=Ge(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Cw(t,e){const n=Ml(t),i=Ml(e),r=+n-bf(n),a=+i-bf(i);return Math.round((r-a)/YC)}function Pw(t,e){const n=Ge(t),i=Ge(e),r=E0(n,i),a=Math.abs(Cw(n,i));n.setDate(n.getDate()-r*a);const o=+(E0(n,i)===-r),s=r*(a-o);return s===0?0:s}function E0(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function iP(t,e,n){const i=Pw(t,e)/7;return Nu(n==null?void 0:n.roundingMethod)(i)}function uh(t,e){return+Ge(t)-+Ge(e)}function rP(t,e,n){const i=uh(t,e)/Ou;return Nu(n==null?void 0:n.roundingMethod)(i)}function aP(t,e,n){const i=uh(t,e)/Lu;return Nu(n==null?void 0:n.roundingMethod)(i)}function oP(t,e,n){const i=uh(t,e)/1e3;return Nu(n==null?void 0:n.roundingMethod)(i)}function sP(t,e){const n=Ge(t.start),i=Ge(t.end);let r=+n>+i;const a=r?+n:+i,o=r?i:n;o.setHours(0,0,0,0);let s=1;const l=[];for(;+o<=a;)l.push(Ge(o)),o.setDate(o.getDate()+s),o.setHours(0,0,0,0);return r?l.reverse():l}let lP={};function ms(){return lP}function ip(t,e){var s,l,c,u;const n=ms(),i=(e==null?void 0:e.weekStartsOn)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,r=Ge(t),a=r.getDay(),o=(a<i?-7:0)+6-(a-i);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function rp(t){const e=Ge(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}const cP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},uP=(t,e,n)=>{let i;const r=cP[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Ea(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const dP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pP={date:Ea({formats:dP,defaultWidth:"full"}),time:Ea({formats:fP,defaultWidth:"full"}),dateTime:Ea({formats:hP,defaultWidth:"full"})},mP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gP=(t,e,n,i)=>mP[t];function Ei(t){return(e,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;r=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return r[a]}}const vP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_P={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},SP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wP=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},MP={ordinalNumber:wP,era:Ei({values:vP,defaultWidth:"wide"}),quarter:Ei({values:yP,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ei({values:bP,defaultWidth:"wide"}),day:Ei({values:_P,defaultWidth:"wide"}),dayPeriod:Ei({values:xP,defaultWidth:"wide",formattingValues:SP,defaultFormattingWidth:"wide"})};function Ti(t){return(e,n={})=>{const i=n.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(r);if(!a)return null;const o=a[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?TP(s,d=>d.test(o)):EP(s,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function EP(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function TP(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Tv(t){return(e,n={})=>{const i=e.match(t.matchPattern);if(!i)return null;const r=i[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=e.slice(r.length);return{value:o,rest:s}}}const AP=/^(\d+)(th|st|nd|rd)?/i,CP=/\d+/i,PP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},RP={any:[/^b/i,/^(a|c)/i]},DP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},IP={any:[/1/i,/2/i,/3/i,/4/i]},LP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},OP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},UP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FP={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},BP={ordinalNumber:Tv({matchPattern:AP,parsePattern:CP,valueCallback:t=>parseInt(t,10)}),era:Ti({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any"}),quarter:Ti({matchPatterns:DP,defaultMatchWidth:"wide",parsePatterns:IP,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ti({matchPatterns:LP,defaultMatchWidth:"wide",parsePatterns:OP,defaultParseWidth:"any"}),day:Ti({matchPatterns:NP,defaultMatchWidth:"wide",parsePatterns:kP,defaultParseWidth:"any"}),dayPeriod:Ti({matchPatterns:UP,defaultMatchWidth:"any",parsePatterns:FP,defaultParseWidth:"any"})},Av={code:"en-US",formatDistance:uP,formatLong:pP,formatRelative:gP,localize:MP,match:BP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kc(t){const e=Ge(t),n=an(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function VP(t){const e=Ge(t);return Cw(e,kc(e))+1}function Ar(t,e){var s,l,c,u;const n=ms(),i=(e==null?void 0:e.weekStartsOn)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,r=Ge(t),a=r.getDay(),o=(a<i?7:0)+a-i;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function El(t){return Ar(t,{weekStartsOn:1})}function Rw(t){const e=Ge(t),n=e.getFullYear(),i=an(t,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const r=El(i),a=an(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=El(a);return e.getTime()>=r.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function HP(t){const e=Rw(t),n=an(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),El(n)}function Dw(t){const e=Ge(t),n=+El(e)-+HP(e);return Math.round(n/Tw)+1}function Cv(t,e){var u,d,f,h;const n=Ge(t),i=n.getFullYear(),r=ms(),a=(e==null?void 0:e.firstWeekContainsDate)??((d=(u=e==null?void 0:e.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=an(t,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const s=Ar(o,e),l=an(t,0);l.setFullYear(i,0,a),l.setHours(0,0,0,0);const c=Ar(l,e);return n.getTime()>=s.getTime()?i+1:n.getTime()>=c.getTime()?i:i-1}function zP(t,e){var s,l,c,u;const n=ms(),i=(e==null?void 0:e.firstWeekContainsDate)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,r=Cv(t,e),a=an(t,0);return a.setFullYear(r,0,i),a.setHours(0,0,0,0),Ar(a,e)}function Iw(t,e){const n=Ge(t),i=+Ar(n,e)-+zP(n,e);return Math.round(i/Tw)+1}function Ut(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const Va={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return Ut(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ut(n+1,2)},d(t,e){return Ut(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ut(t.getHours()%12||12,e.length)},H(t,e){return Ut(t.getHours(),e.length)},m(t,e){return Ut(t.getMinutes(),e.length)},s(t,e){return Ut(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,n-3));return Ut(r,e.length)}},As={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T0={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return Va.y(t,e)},Y:function(t,e,n,i){const r=Cv(t,i),a=r>0?r:1-r;if(e==="YY"){const o=a%100;return Ut(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ut(a,e.length)},R:function(t,e){const n=Rw(t);return Ut(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ut(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ut(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ut(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return Va.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ut(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const r=Iw(t,i);return e==="wo"?n.ordinalNumber(r,{unit:"week"}):Ut(r,e.length)},I:function(t,e,n){const i=Dw(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):Ut(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Va.d(t,e)},D:function(t,e,n){const i=VP(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ut(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const r=t.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return Ut(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const r=t.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return Ut(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Ut(r,e.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let r;switch(i===12?r=As.noon:i===0?r=As.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let r;switch(i>=17?r=As.evening:i>=12?r=As.afternoon:i>=4?r=As.morning:r=As.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Va.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Va.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ut(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ut(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Va.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Va.s(t,e)},S:function(t,e){return Va.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return C0(i);case"XXXX":case"XX":return Go(i);case"XXXXX":case"XXX":default:return Go(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return C0(i);case"xxxx":case"xx":return Go(i);case"xxxxx":case"xxx":default:return Go(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+A0(i,":");case"OOOO":default:return"GMT"+Go(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+A0(i,":");case"zzzz":default:return"GMT"+Go(i,":")}},t:function(t,e,n){const i=Math.trunc(t.getTime()/1e3);return Ut(i,e.length)},T:function(t,e,n){const i=t.getTime();return Ut(i,e.length)}};function A0(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),a=i%60;return a===0?n+String(r):n+String(r)+e+Ut(a,2)}function C0(t,e){return t%60===0?(t>0?"-":"+")+Ut(Math.abs(t)/60,2):Go(t,e)}function Go(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),r=Ut(Math.trunc(i/60),2),a=Ut(i%60,2);return n+r+e+a}const P0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Lw=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},WP=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return P0(t,e);let a;switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",P0(i,e)).replace("{{time}}",Lw(r,e))},_f={p:Lw,P:WP},GP=/^D+$/,jP=/^Y+$/,XP=["D","DD","YY","YYYY"];function Ow(t){return GP.test(t)}function Nw(t){return jP.test(t)}function Lm(t,e,n){const i=YP(t,e,n);if(console.warn(i),XP.includes(t))throw new RangeError(i)}function YP(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function qP(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function kw(t){if(!qP(t)&&typeof t!="number")return!1;const e=Ge(t);return!isNaN(Number(e))}const KP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZP=/^'([^]*?)'?$/,$P=/''/g,JP=/[a-zA-Z]/;function eR(t,e,n){var u,d,f,h,p,m,g,v;const i=ms(),r=(n==null?void 0:n.locale)??i.locale??Av,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??i.weekStartsOn??((v=(g=i.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,s=Ge(t);if(!kw(s))throw new RangeError("Invalid time value");let l=e.match(QP).map(b=>{const y=b[0];if(y==="p"||y==="P"){const w=_f[y];return w(b,r.formatLong)}return b}).join("").match(KP).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const y=b[0];if(y==="'")return{isToken:!1,value:tR(b)};if(T0[y])return{isToken:!0,value:b};if(y.match(JP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:b}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:r};return l.map(b=>{if(!b.isToken)return b.value;const y=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Nw(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ow(y))&&Lm(y,e,String(t));const w=T0[y[0]];return w(s,y,r.localize,c)}).join("")}function tR(t){const e=t.match(ZP);return e?e[1].replace($P,"'"):t}function nR(t){return Ge(t).getDate()}function iR(t){return Ge(t).getDay()}function Uw(t){const e=Ge(t),n=e.getFullYear(),i=e.getMonth(),r=an(t,0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()}function rR(t){return Ge(t).getHours()}function aR(t){return Ge(t).getMinutes()}function oR(t){return Ge(t).getMonth()}function sR(t){return Ge(t).getSeconds()}function lR(t){return Ge(t).getFullYear()}function rd(t,e){const n=Ge(t),i=Ge(e);return n.getTime()>i.getTime()}function Cs(t,e){const n=Ge(t),i=Ge(e);return+n<+i}function cR(t,e){const n=Ge(t),i=Ge(e);return+n==+i}function uR(t,e){const n=Ml(t),i=Ml(e);return+n==+i}function dR(t,e){const n=Ge(t),i=Ge(e);return n.getFullYear()===i.getFullYear()}function fR(t,e){const n=Ge(t),i=Ge(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function R0(t){const e=Ge(t);return e.setMinutes(0,0,0),e}function hR(t,e){const n=R0(t),i=R0(e);return+n==+i}function pR(){return Object.assign({},ms())}function mR(t,e){const n=e instanceof Date?an(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const gR=10;class Fw{constructor(){Ke(this,"subPriority",0)}validate(e,n){return!0}}class vR extends Fw{constructor(e,n,i,r,a){super(),this.value=e,this.validateValue=n,this.setValue=i,this.priority=r,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,i){return this.setValue(e,n,this.value,i)}}class yR extends Fw{constructor(){super(...arguments);Ke(this,"priority",gR);Ke(this,"subPriority",-1)}set(n,i){return i.timestampIsSet?n:an(n,mR(n,Date))}}class Jt{run(e,n,i,r){const a=this.parse(e,n,i,r);return a?{setter:new vR(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,i){return!0}}class bR extends Jt{constructor(){super(...arguments);Ke(this,"priority",140);Ke(this,"incompatibleTokens",["R","u","t","T"])}parse(n,i,r){switch(i){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})||r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"})}}set(n,i,r){return i.era=r,n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}const Un={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Xr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Fn(t,e){return t&&{value:e(t.value),rest:t.rest}}function An(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Yr(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const i=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(r*Ou+a*Lu+o*qC),rest:e.slice(n[0].length)}}function Bw(t){return An(Un.anyDigitsSigned,t)}function On(t,e){switch(t){case 1:return An(Un.singleDigit,e);case 2:return An(Un.twoDigits,e);case 3:return An(Un.threeDigits,e);case 4:return An(Un.fourDigits,e);default:return An(new RegExp("^\\d{1,"+t+"}"),e)}}function xf(t,e){switch(t){case 1:return An(Un.singleDigitSigned,e);case 2:return An(Un.twoDigitsSigned,e);case 3:return An(Un.threeDigitsSigned,e);case 4:return An(Un.fourDigitsSigned,e);default:return An(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Pv(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Vw(t,e){const n=e>0,i=n?e:1-e;let r;if(i<=50)r=t||100;else{const a=i+50,o=Math.trunc(a/100)*100,s=t>=a%100;r=t+o-(s?100:0)}return n?r:1-r}function Hw(t){return t%400===0||t%4===0&&t%100!==0}class _R extends Jt{constructor(){super(...arguments);Ke(this,"priority",130);Ke(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="yy"});switch(i){case"y":return Fn(On(4,n),a);case"yo":return Fn(r.ordinalNumber(n,{unit:"year"}),a);default:return Fn(On(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r){const a=n.getFullYear();if(r.isTwoDigitYear){const s=Vw(r.year,a);return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}const o=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class xR extends Jt{constructor(){super(...arguments);Ke(this,"priority",130);Ke(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,i,r){const a=o=>({year:o,isTwoDigitYear:i==="YY"});switch(i){case"Y":return Fn(On(4,n),a);case"Yo":return Fn(r.ordinalNumber(n,{unit:"year"}),a);default:return Fn(On(i.length,n),a)}}validate(n,i){return i.isTwoDigitYear||i.year>0}set(n,i,r,a){const o=Cv(n,a);if(r.isTwoDigitYear){const l=Vw(r.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Ar(n,a)}const s=!("era"in i)||i.era===1?r.year:1-r.year;return n.setFullYear(s,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Ar(n,a)}}class SR extends Jt{constructor(){super(...arguments);Ke(this,"priority",130);Ke(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,i){return xf(i==="R"?4:i.length,n)}set(n,i,r){const a=an(n,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),El(a)}}class wR extends Jt{constructor(){super(...arguments);Ke(this,"priority",130);Ke(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,i){return xf(i==="u"?4:i.length,n)}set(n,i,r){return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}class MR extends Jt{constructor(){super(...arguments);Ke(this,"priority",120);Ke(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"Q":case"QQ":return On(i.length,n);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})||r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class ER extends Jt{constructor(){super(...arguments);Ke(this,"priority",120);Ke(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"q":case"qq":return On(i.length,n);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})||r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=1&&i<=4}set(n,i,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class TR extends Jt{constructor(){super(...arguments);Ke(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Ke(this,"priority",110)}parse(n,i,r){const a=o=>o-1;switch(i){case"M":return Fn(An(Un.month,n),a);case"MM":return Fn(On(2,n),a);case"Mo":return Fn(r.ordinalNumber(n,{unit:"month"}),a);case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})||r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}class AR extends Jt{constructor(){super(...arguments);Ke(this,"priority",110);Ke(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,i,r){const a=o=>o-1;switch(i){case"L":return Fn(An(Un.month,n),a);case"LL":return Fn(On(2,n),a);case"Lo":return Fn(r.ordinalNumber(n,{unit:"month"}),a);case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})||r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}function CR(t,e,n){const i=Ge(t),r=Iw(i,n)-e;return i.setDate(i.getDate()-r*7),i}class PR extends Jt{constructor(){super(...arguments);Ke(this,"priority",100);Ke(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,i,r){switch(i){case"w":return An(Un.week,n);case"wo":return r.ordinalNumber(n,{unit:"week"});default:return On(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r,a){return Ar(CR(n,r,a),a)}}function RR(t,e){const n=Ge(t),i=Dw(n)-e;return n.setDate(n.getDate()-i*7),n}class DR extends Jt{constructor(){super(...arguments);Ke(this,"priority",100);Ke(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,i,r){switch(i){case"I":return An(Un.week,n);case"Io":return r.ordinalNumber(n,{unit:"week"});default:return On(i.length,n)}}validate(n,i){return i>=1&&i<=53}set(n,i,r){return El(RR(n,r))}}const IR=[31,28,31,30,31,30,31,31,30,31,30,31],LR=[31,29,31,30,31,30,31,31,30,31,30,31];class OR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"subPriority",1);Ke(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"d":return An(Un.date,n);case"do":return r.ordinalNumber(n,{unit:"date"});default:return On(i.length,n)}}validate(n,i){const r=n.getFullYear(),a=Hw(r),o=n.getMonth();return a?i>=1&&i<=LR[o]:i>=1&&i<=IR[o]}set(n,i,r){return n.setDate(r),n.setHours(0,0,0,0),n}}class NR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"subpriority",1);Ke(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,i,r){switch(i){case"D":case"DD":return An(Un.dayOfYear,n);case"Do":return r.ordinalNumber(n,{unit:"date"});default:return On(i.length,n)}}validate(n,i){const r=n.getFullYear();return Hw(r)?i>=1&&i<=366:i>=1&&i<=365}set(n,i,r){return n.setMonth(0,r),n.setHours(0,0,0,0),n}}function Rv(t,e,n){var d,f,h,p;const i=ms(),r=(n==null?void 0:n.weekStartsOn)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??i.weekStartsOn??((p=(h=i.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,a=Ge(t),o=a.getDay(),l=(e%7+7)%7,c=7-r,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return ru(a,u)}class kR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,i,r){switch(i){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=Rv(n,r,a),n.setHours(0,0,0,0),n}}class UR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,i,r,a){const o=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(i){case"e":case"ee":return Fn(On(i.length,n),o);case"eo":return Fn(r.ordinalNumber(n,{unit:"day"}),o);case"eee":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=Rv(n,r,a),n.setHours(0,0,0,0),n}}class FR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,i,r,a){const o=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(i){case"c":case"cc":return Fn(On(i.length,n),o);case"co":return Fn(r.ordinalNumber(n,{unit:"day"}),o);case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})||r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"})}}validate(n,i){return i>=0&&i<=6}set(n,i,r,a){return n=Rv(n,r,a),n.setHours(0,0,0,0),n}}function BR(t){let n=Ge(t).getDay();return n===0&&(n=7),n}function VR(t,e){const n=Ge(t),i=BR(n),r=e-i;return ru(n,r)}class HR extends Jt{constructor(){super(...arguments);Ke(this,"priority",90);Ke(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,i,r){const a=o=>o===0?7:o;switch(i){case"i":case"ii":return On(i.length,n);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return Fn(r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return Fn(r.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Fn(r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Fn(r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,i){return i>=1&&i<=7}set(n,i,r){return n=VR(n,r),n.setHours(0,0,0,0),n}}class zR extends Jt{constructor(){super(...arguments);Ke(this,"priority",80);Ke(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,i,r){switch(i){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(Pv(r),0,0,0),n}}class WR extends Jt{constructor(){super(...arguments);Ke(this,"priority",80);Ke(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,i,r){switch(i){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(Pv(r),0,0,0),n}}class GR extends Jt{constructor(){super(...arguments);Ke(this,"priority",80);Ke(this,"incompatibleTokens",["a","b","t","T"])}parse(n,i,r){switch(i){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,i,r){return n.setHours(Pv(r),0,0,0),n}}class jR extends Jt{constructor(){super(...arguments);Ke(this,"priority",70);Ke(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,i,r){switch(i){case"h":return An(Un.hour12h,n);case"ho":return r.ordinalNumber(n,{unit:"hour"});default:return On(i.length,n)}}validate(n,i){return i>=1&&i<=12}set(n,i,r){const a=n.getHours()>=12;return a&&r<12?n.setHours(r+12,0,0,0):!a&&r===12?n.setHours(0,0,0,0):n.setHours(r,0,0,0),n}}class XR extends Jt{constructor(){super(...arguments);Ke(this,"priority",70);Ke(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,i,r){switch(i){case"H":return An(Un.hour23h,n);case"Ho":return r.ordinalNumber(n,{unit:"hour"});default:return On(i.length,n)}}validate(n,i){return i>=0&&i<=23}set(n,i,r){return n.setHours(r,0,0,0),n}}class YR extends Jt{constructor(){super(...arguments);Ke(this,"priority",70);Ke(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,i,r){switch(i){case"K":return An(Un.hour11h,n);case"Ko":return r.ordinalNumber(n,{unit:"hour"});default:return On(i.length,n)}}validate(n,i){return i>=0&&i<=11}set(n,i,r){return n.getHours()>=12&&r<12?n.setHours(r+12,0,0,0):n.setHours(r,0,0,0),n}}class qR extends Jt{constructor(){super(...arguments);Ke(this,"priority",70);Ke(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,i,r){switch(i){case"k":return An(Un.hour24h,n);case"ko":return r.ordinalNumber(n,{unit:"hour"});default:return On(i.length,n)}}validate(n,i){return i>=1&&i<=24}set(n,i,r){const a=r<=24?r%24:r;return n.setHours(a,0,0,0),n}}class KR extends Jt{constructor(){super(...arguments);Ke(this,"priority",60);Ke(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"m":return An(Un.minute,n);case"mo":return r.ordinalNumber(n,{unit:"minute"});default:return On(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setMinutes(r,0,0),n}}class QR extends Jt{constructor(){super(...arguments);Ke(this,"priority",50);Ke(this,"incompatibleTokens",["t","T"])}parse(n,i,r){switch(i){case"s":return An(Un.second,n);case"so":return r.ordinalNumber(n,{unit:"second"});default:return On(i.length,n)}}validate(n,i){return i>=0&&i<=59}set(n,i,r){return n.setSeconds(r,0),n}}class ZR extends Jt{constructor(){super(...arguments);Ke(this,"priority",30);Ke(this,"incompatibleTokens",["t","T"])}parse(n,i){const r=a=>Math.trunc(a*Math.pow(10,-i.length+3));return Fn(On(i.length,n),r)}set(n,i,r){return n.setMilliseconds(r),n}}class $R extends Jt{constructor(){super(...arguments);Ke(this,"priority",10);Ke(this,"incompatibleTokens",["t","T","x"])}parse(n,i){switch(i){case"X":return Yr(Xr.basicOptionalMinutes,n);case"XX":return Yr(Xr.basic,n);case"XXXX":return Yr(Xr.basicOptionalSeconds,n);case"XXXXX":return Yr(Xr.extendedOptionalSeconds,n);case"XXX":default:return Yr(Xr.extended,n)}}set(n,i,r){return i.timestampIsSet?n:an(n,n.getTime()-bf(n)-r)}}class JR extends Jt{constructor(){super(...arguments);Ke(this,"priority",10);Ke(this,"incompatibleTokens",["t","T","X"])}parse(n,i){switch(i){case"x":return Yr(Xr.basicOptionalMinutes,n);case"xx":return Yr(Xr.basic,n);case"xxxx":return Yr(Xr.basicOptionalSeconds,n);case"xxxxx":return Yr(Xr.extendedOptionalSeconds,n);case"xxx":default:return Yr(Xr.extended,n)}}set(n,i,r){return i.timestampIsSet?n:an(n,n.getTime()-bf(n)-r)}}class e2 extends Jt{constructor(){super(...arguments);Ke(this,"priority",40);Ke(this,"incompatibleTokens","*")}parse(n){return Bw(n)}set(n,i,r){return[an(n,r*1e3),{timestampIsSet:!0}]}}class t2 extends Jt{constructor(){super(...arguments);Ke(this,"priority",20);Ke(this,"incompatibleTokens","*")}parse(n){return Bw(n)}set(n,i,r){return[an(n,r),{timestampIsSet:!0}]}}const n2={G:new bR,y:new _R,Y:new xR,R:new SR,u:new wR,Q:new MR,q:new ER,M:new TR,L:new AR,w:new PR,I:new DR,d:new OR,D:new NR,E:new kR,e:new UR,c:new FR,i:new HR,a:new zR,b:new WR,B:new GR,h:new jR,H:new XR,K:new YR,k:new qR,m:new KR,s:new QR,S:new ZR,X:new $R,x:new JR,t:new e2,T:new t2},i2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,r2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a2=/^'([^]*?)'?$/,o2=/''/g,s2=/\S/,l2=/[a-zA-Z]/;function c2(t,e,n,i){var m,g,v,b,y,w,L,_;const r=pR(),a=(i==null?void 0:i.locale)??r.locale??Av,o=(i==null?void 0:i.firstWeekContainsDate)??((g=(m=i==null?void 0:i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??r.firstWeekContainsDate??((b=(v=r.locale)==null?void 0:v.options)==null?void 0:b.firstWeekContainsDate)??1,s=(i==null?void 0:i.weekStartsOn)??((w=(y=i==null?void 0:i.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??r.weekStartsOn??((_=(L=r.locale)==null?void 0:L.options)==null?void 0:_.weekStartsOn)??0;if(e==="")return t===""?Ge(n):an(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:s,locale:a},c=[new yR],u=e.match(r2).map(E=>{const R=E[0];if(R in _f){const S=_f[R];return S(E,a.formatLong)}return E}).join("").match(i2),d=[];for(let E of u){!(i!=null&&i.useAdditionalWeekYearTokens)&&Nw(E)&&Lm(E,e,t),!(i!=null&&i.useAdditionalDayOfYearTokens)&&Ow(E)&&Lm(E,e,t);const R=E[0],S=n2[R];if(S){const{incompatibleTokens:M}=S;if(Array.isArray(M)){const O=d.find(V=>M.includes(V.token)||V.token===R);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${E}\` at the same time`)}else if(S.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${E}\` and any other token at the same time`);d.push({token:R,fullToken:E});const D=S.run(t,E,a.match,l);if(!D)return an(n,NaN);c.push(D.setter),t=D.rest}else{if(R.match(l2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");if(E==="''"?E="'":R==="'"&&(E=u2(E)),t.indexOf(E)===0)t=t.slice(E.length);else return an(n,NaN)}}if(t.length>0&&s2.test(t))return an(n,NaN);const f=c.map(E=>E.priority).sort((E,R)=>R-E).filter((E,R,S)=>S.indexOf(E)===R).map(E=>c.filter(R=>R.priority===E).sort((R,S)=>S.subPriority-R.subPriority)).map(E=>E[0]);let h=Ge(n);if(isNaN(h.getTime()))return an(n,NaN);const p={};for(const E of f){if(!E.validate(h,l))return an(n,NaN);const R=E.set(h,p,l);Array.isArray(R)?(h=R[0],Object.assign(p,R[1])):h=R}return an(n,h)}function u2(t){return t.match(a2)[1].replace(o2,"'")}function d2(t,e){const n=Ge(t);return n.setDate(e),n}function f2(t,e){const n=Ge(t);return n.setHours(e),n}function h2(t,e){const n=Ge(t);return n.setMinutes(e),n}function p2(t,e){const n=Ge(t),i=n.getFullYear(),r=n.getDate(),a=an(t,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);const o=Uw(a);return n.setMonth(e,Math.min(r,o)),n}function m2(t,e){const n=Ge(t);return n.setSeconds(e),n}function g2(t,e){const n=Ge(t);return isNaN(+n)?an(t,NaN):(n.setFullYear(e),n)}function ad(t){const e=Ge(t);return e.setDate(1),e.setHours(0,0,0,0),e}function v2(t,e){const i=x2(t);let r;if(i.date){const l=S2(i.date,2);r=w2(l.restDateString,l.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const a=r.getTime();let o=0,s;if(i.time&&(o=M2(i.time),isNaN(o)))return new Date(NaN);if(i.timezone){if(s=E2(i.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(a+o),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(a+o+s)}const od={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},y2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,b2=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_2=/^([+-])(\d{2})(?::?(\d{2}))?$/;function x2(t){const e={},n=t.split(od.dateTimeDelimiter);let i;if(n.length>2)return e;if(/:/.test(n[0])?i=n[0]:(e.date=n[0],i=n[1],od.timeZoneDelimiter.test(e.date)&&(e.date=t.split(od.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length))),i){const r=od.timezone.exec(i);r?(e.time=i.replace(r[1],""),e.timezone=r[1]):e.time=i}return e}function S2(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?r:a*100,restDateString:t.slice((i[1]||i[2]).length)}}function w2(t,e){if(e===null)return new Date(NaN);const n=t.match(y2);if(!n)return new Date(NaN);const i=!!n[4],r=gc(n[1]),a=gc(n[2])-1,o=gc(n[3]),s=gc(n[4]),l=gc(n[5])-1;if(i)return R2(e,s,l)?T2(e,s,l):new Date(NaN);{const c=new Date(0);return!C2(e,a,o)||!P2(e,r)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(r,o)),c)}}function gc(t){return t?parseInt(t):1}function M2(t){const e=t.match(b2);if(!e)return NaN;const n=ap(e[1]),i=ap(e[2]),r=ap(e[3]);return D2(n,i,r)?n*Ou+i*Lu+r*1e3:NaN}function ap(t){return t&&parseFloat(t.replace(",","."))||0}function E2(t){if(t==="Z")return 0;const e=t.match(_2);if(!e)return 0;const n=e[1]==="+"?-1:1,i=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return I2(i,r)?n*(i*Ou+r*Lu):NaN}function T2(t,e,n){const i=new Date(0);i.setUTCFullYear(t,0,4);const r=i.getUTCDay()||7,a=(e-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}const A2=[31,null,31,30,31,30,31,31,30,31,30,31];function zw(t){return t%400===0||t%4===0&&t%100!==0}function C2(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(A2[e]||(zw(t)?29:28))}function P2(t,e){return e>=1&&e<=(zw(t)?366:365)}function R2(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function D2(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function I2(t,e){return e>=0&&e<=59}function L2(t,e){const n=Ge(t);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const i=(e==null?void 0:e.representation)??"complete";let r="",a="";const o="-",s=":";if(i!=="time"){const l=Ut(n.getDate(),2),c=Ut(n.getMonth()+1,2);r=`${Ut(n.getFullYear(),4)}${o}${c}${o}${l}`}if(i!=="date"){const l=n.getTimezoneOffset();if(l!==0){const p=Math.abs(l),m=Ut(Math.trunc(p/60),2),g=Ut(p%60,2);a=`${l<0?"+":"-"}${m}:${g}`}else a="Z";const c=Ut(n.getHours(),2),u=Ut(n.getMinutes(),2),d=Ut(n.getSeconds(),2),f=r===""?"":"T",h=[c,u,d].join(s);r=`${r}${f}${h}${a}`}return r}function O2(t,e){const n=+Ge(t),[i,r]=[+Ge(e.start),+Ge(e.end)].sort((a,o)=>a-o);return n>=i&&n<=r}const N2={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class k2{constructor({locale:e,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time({})):!0},this.getFormatHelperText=i=>{var r,a;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,s=this.locale||Av;return(a=(r=i.match(o))===null||r===void 0?void 0:r.map(l=>{const c=l[0];if(c==="p"||c==="P"){const u=_f[c];return u(l,s.formatLong)}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&a!==void 0?a:i},this.parseISO=i=>v2(i),this.toISO=i=>L2(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,r)=>XC(i,r),this.addMinutes=(i,r)=>KC(i,r),this.addHours=(i,r)=>QC(i,r),this.addDays=(i,r)=>ru(i,r),this.addWeeks=(i,r)=>ZC(i,r),this.addMonths=(i,r)=>ef(i,r),this.addYears=(i,r)=>M0(i,r),this.isValid=i=>kw(this.date(i)),this.getDiff=(i,r,a)=>{var o;const s=(o=this.date(r))!==null&&o!==void 0?o:i;if(!this.isValid(s))return 0;switch(a){case"years":return JC(i,s);case"quarters":return nP(i,s);case"months":return Aw(i,s);case"weeks":return iP(i,s);case"days":return Pw(i,s);case"hours":return rP(i,s);case"minutes":return aP(i,s);case"seconds":return oP(i,s);default:return uh(i,s)}},this.isAfter=(i,r)=>rd(i,r),this.isBefore=(i,r)=>Cs(i,r),this.startOfDay=i=>Ml(i),this.endOfDay=i=>Dm(i),this.getHours=i=>rR(i),this.setHours=(i,r)=>f2(i,r),this.setMinutes=(i,r)=>h2(i,r),this.getSeconds=i=>sR(i),this.setSeconds=(i,r)=>m2(i,r),this.isSameDay=(i,r)=>uR(i,r),this.isSameMonth=(i,r)=>fR(i,r),this.isSameYear=(i,r)=>dR(i,r),this.isSameHour=(i,r)=>hR(i,r),this.startOfYear=i=>kc(i),this.endOfYear=i=>rp(i),this.startOfMonth=i=>ad(i),this.endOfMonth=i=>Im(i),this.startOfWeek=i=>Ar(i,{locale:this.locale}),this.endOfWeek=i=>ip(i,{locale:this.locale}),this.getYear=i=>lR(i),this.setYear=(i,r)=>g2(i,r),this.toJsDate=i=>i,this.parse=(i,r)=>i===""?null:c2(i,r,new Date,{locale:this.locale}),this.format=(i,r)=>this.formatByString(i,this.formats[r]),this.formatByString=(i,r)=>eR(i,r,{locale:this.locale}),this.isEqual=(i,r)=>i===null&&r===null?!0:cR(i,r),this.isNull=i=>i===null,this.isAfterDay=(i,r)=>rd(i,Dm(r)),this.isBeforeDay=(i,r)=>Cs(i,Ml(r)),this.isBeforeYear=(i,r)=>Cs(i,kc(r)),this.isAfterYear=(i,r)=>rd(i,rp(r)),this.isWithinRange=(i,[r,a])=>O2(i,{start:r,end:a}),this.formatNumber=i=>i,this.getMinutes=i=>aR(i),this.getDate=i=>nR(i),this.setDate=(i,r)=>d2(i,r),this.getMonth=i=>oR(i),this.getDaysInMonth=i=>Uw(i),this.setMonth=(i,r)=>p2(i,r),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>ef(i,1),this.getPreviousMonth=i=>ef(i,-1),this.getMonthArray=i=>{const a=[kc(i)];for(;a.length<12;){const o=a[a.length-1];a.push(this.getNextMonth(o))}return a},this.mergeDateAndTime=(i,r)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(r)),this.getMinutes(r)),this.getSeconds(r)),this.getWeekdays=()=>{const i=new Date;return sP({start:Ar(i,{locale:this.locale}),end:ip(i,{locale:this.locale})}).map(r=>this.formatByString(r,"EEEEEE"))},this.getWeekArray=i=>{const r=Ar(ad(i),{locale:this.locale}),a=ip(Im(i),{locale:this.locale});let o=0,s=r;const l=[];let c=null;for(;Cs(s,a);){const u=Math.floor(o/7);l[u]=l[u]||[];const d=iR(s);c!==d&&(c=d,l[u].push(s),o+=1),s=ru(s,1)}return l},this.getYearRange=(i,r)=>{const a=kc(i),o=rp(r),s=[];let l=a;for(;Cs(l,o);)s.push(l),l=M0(l,1);return s},this.locale=e,this.formats=Object.assign({},N2,n)}date(e){return typeof e>"u"?new Date:e===null?null:new Date(e)}isBeforeMonth(e,n){return Cs(e,ad(n))}isAfterMonth(e,n){return rd(e,ad(n))}}const U2={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},F2=(t,e,n)=>{let i;const r=U2[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},B2={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},V2={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},H2={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z2={date:Ea({formats:B2,defaultWidth:"full"}),time:Ea({formats:V2,defaultWidth:"full"}),dateTime:Ea({formats:H2,defaultWidth:"full"})},W2={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},G2={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},j2=(t,e,n,i)=>e.getHours()!==1?G2[t]:W2[t],X2={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Y2={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},q2={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},K2={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},Q2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Z2={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},$2=(t,e)=>Number(t)+"º",J2={ordinalNumber:$2,era:Ei({values:X2,defaultWidth:"wide"}),quarter:Ei({values:Y2,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:Ei({values:q2,defaultWidth:"wide"}),day:Ei({values:K2,defaultWidth:"wide"}),dayPeriod:Ei({values:Q2,defaultWidth:"wide",formattingValues:Z2,defaultFormattingWidth:"wide"})},eD=/^(\d+)(º)?/i,tD=/\d+/i,nD={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},iD={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},rD={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},aD={any:[/1/i,/2/i,/3/i,/4/i]},oD={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},sD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},lD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},cD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},uD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},dD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},fD={ordinalNumber:Tv({matchPattern:eD,parsePattern:tD,valueCallback:function(t){return parseInt(t,10)}}),era:Ti({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:iD,defaultParseWidth:"any"}),quarter:Ti({matchPatterns:rD,defaultMatchWidth:"wide",parsePatterns:aD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ti({matchPatterns:oD,defaultMatchWidth:"wide",parsePatterns:sD,defaultParseWidth:"any"}),day:Ti({matchPatterns:lD,defaultMatchWidth:"wide",parsePatterns:cD,defaultParseWidth:"any"}),dayPeriod:Ti({matchPatterns:uD,defaultMatchWidth:"any",parsePatterns:dD,defaultParseWidth:"any"})},hD={code:"es",formatDistance:F2,formatLong:z2,formatRelative:j2,localize:J2,match:fD,options:{weekStartsOn:1,firstWeekContainsDate:1}},pD={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},mD=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],gD=(t,e,n)=>{let i;const r=pD[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e<13?mD[e]:String(e)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"om "+i:i+" sedan":i},vD={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},yD={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bD={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},_D={date:Ea({formats:vD,defaultWidth:"full"}),time:Ea({formats:yD,defaultWidth:"full"}),dateTime:Ea({formats:bD,defaultWidth:"full"})},xD={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},SD=(t,e,n,i)=>xD[t],wD={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},MD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},ED={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},TD={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},AD={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},CD={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},PD=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:case 2:return n+":a"}return n+":e"},RD={ordinalNumber:PD,era:Ei({values:wD,defaultWidth:"wide"}),quarter:Ei({values:MD,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ei({values:ED,defaultWidth:"wide"}),day:Ei({values:TD,defaultWidth:"wide"}),dayPeriod:Ei({values:AD,defaultWidth:"wide",formattingValues:CD,defaultFormattingWidth:"wide"})},DD=/^(\d+)(:a|:e)?/i,ID=/\d+/i,LD={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},OD={any:[/^f/i,/^[ev]/i]},ND={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},kD={any:[/1/i,/2/i,/3/i,/4/i]},UD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},FD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},BD={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},VD={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},HD={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},zD={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},WD={ordinalNumber:Tv({matchPattern:DD,parsePattern:ID,valueCallback:t=>parseInt(t,10)}),era:Ti({matchPatterns:LD,defaultMatchWidth:"wide",parsePatterns:OD,defaultParseWidth:"any"}),quarter:Ti({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:kD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ti({matchPatterns:UD,defaultMatchWidth:"wide",parsePatterns:FD,defaultParseWidth:"any"}),day:Ti({matchPatterns:BD,defaultMatchWidth:"wide",parsePatterns:VD,defaultParseWidth:"any"}),dayPeriod:Ti({matchPatterns:HD,defaultMatchWidth:"any",parsePatterns:zD,defaultParseWidth:"any"})},GD={code:"sv",formatDistance:gD,formatLong:_D,formatRelative:SD,localize:RD,match:WD,options:{weekStartsOn:1,firstWeekContainsDate:4}};/**
* @vue/shared v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Dv(t,e){const n=new Set(t.split(","));return i=>n.has(i)}const _n={},pl=[],lr=()=>{},jD=()=>!1,dh=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Iv=t=>t.startsWith("onUpdate:"),Yn=Object.assign,Lv=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},XD=Object.prototype.hasOwnProperty,Yt=(t,e)=>XD.call(t,e),gt=Array.isArray,ml=t=>fh(t)==="[object Map]",Ww=t=>fh(t)==="[object Set]",wt=t=>typeof t=="function",Nn=t=>typeof t=="string",xo=t=>typeof t=="symbol",dn=t=>t!==null&&typeof t=="object",Gw=t=>(dn(t)||wt(t))&&wt(t.then)&&wt(t.catch),jw=Object.prototype.toString,fh=t=>jw.call(t),YD=t=>fh(t).slice(8,-1),Xw=t=>fh(t)==="[object Object]",Ov=t=>Nn(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Hc=Dv(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hh=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},qD=/-(\w)/g,nr=hh(t=>t.replace(qD,(e,n)=>n?n.toUpperCase():"")),KD=/\B([A-Z])/g,So=hh(t=>t.replace(KD,"-$1").toLowerCase()),La=hh(t=>t.charAt(0).toUpperCase()+t.slice(1)),op=hh(t=>t?`on${La(t)}`:""),bo=(t,e)=>!Object.is(t,e),sp=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Yw=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},QD=t=>{const e=parseFloat(t);return isNaN(e)?t:e},ZD=t=>{const e=Nn(t)?Number(t):NaN;return isNaN(e)?t:e};let D0;const qw=()=>D0||(D0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function au(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=Nn(i)?tI(i):au(i);if(r)for(const a in r)e[a]=r[a]}return e}else if(Nn(t)||dn(t))return t}const $D=/;(?![^(]*\))/g,JD=/:([^]+)/,eI=/\/\*[^]*?\*\//g;function tI(t){const e={};return t.replace(eI,"").split($D).forEach(n=>{if(n){const i=n.split(JD);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function fi(t){let e="";if(Nn(t))e=t;else if(gt(t))for(let n=0;n<t.length;n++){const i=fi(t[n]);i&&(e+=i+" ")}else if(dn(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const nI="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",iI=Dv(nI);function Kw(t){return!!t||t===""}const Qw=t=>!!(t&&t.__v_isRef===!0),Tn=t=>Nn(t)?t:t==null?"":gt(t)||dn(t)&&(t.toString===jw||!wt(t.toString))?Qw(t)?Tn(t.value):JSON.stringify(t,Zw,2):String(t),Zw=(t,e)=>Qw(e)?Zw(t,e.value):ml(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,r],a)=>(n[lp(i,a)+" =>"]=r,n),{})}:Ww(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>lp(n))}:xo(e)?lp(e):dn(e)&&!gt(e)&&!Xw(e)?String(e):e,lp=(t,e="")=>{var n;return xo(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ki;class $w{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ki,!e&&Ki&&(this.index=(Ki.scopes||(Ki.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ki;try{return Ki=this,e()}finally{Ki=n}}}on(){Ki=this}off(){Ki=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Nv(t){return new $w(t)}function rI(t,e=Ki){e&&e.active&&e.effects.push(t)}function aI(){return Ki}function pr(t){Ki&&Ki.cleanups.push(t)}let es;class kv{constructor(e,n,i,r){this.fn=e,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,rI(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,wo();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(oI(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Mo()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=po,n=es;try{return po=!0,es=this,this._runnings++,I0(this),this.fn()}finally{L0(this),this._runnings--,es=n,po=e}}stop(){this.active&&(I0(this),L0(this),this.onStop&&this.onStop(),this.active=!1)}}function oI(t){return t.value}function I0(t){t._trackId++,t._depsLength=0}function L0(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Jw(t.deps[e],t);t.deps.length=t._depsLength}}function Jw(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let po=!0,Om=0;const e1=[];function wo(){e1.push(po),po=!1}function Mo(){const t=e1.pop();po=t===void 0?!0:t}function Uv(){Om++}function Fv(){for(Om--;!Om&&Nm.length;)Nm.shift()()}function t1(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&Jw(i,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Nm=[];function n1(t,e,n){Uv();for(const i of t.keys()){let r;i._dirtyLevel<e&&(r??(r=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(r??(r=t.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Nm.push(i.scheduler)))}Fv()}const i1=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Sf=new WeakMap,ts=Symbol(""),km=Symbol("");function Wi(t,e,n){if(po&&es){let i=Sf.get(t);i||Sf.set(t,i=new Map);let r=i.get(n);r||i.set(n,r=i1(()=>i.delete(n))),t1(es,r)}}function Ta(t,e,n,i,r,a){const o=Sf.get(t);if(!o)return;let s=[];if(e==="clear")s=[...o.values()];else if(n==="length"&&gt(t)){const l=Number(i);o.forEach((c,u)=>{(u==="length"||!xo(u)&&u>=l)&&s.push(c)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":gt(t)?Ov(n)&&s.push(o.get("length")):(s.push(o.get(ts)),ml(t)&&s.push(o.get(km)));break;case"delete":gt(t)||(s.push(o.get(ts)),ml(t)&&s.push(o.get(km)));break;case"set":ml(t)&&s.push(o.get(ts));break}Uv();for(const l of s)l&&n1(l,4);Fv()}function sI(t,e){const n=Sf.get(t);return n&&n.get(e)}const lI=Dv("__proto__,__v_isRef,__isVue"),r1=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xo)),O0=cI();function cI(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=ot(this);for(let a=0,o=this.length;a<o;a++)Wi(i,"get",a+"");const r=i[e](...n);return r===-1||r===!1?i[e](...n.map(ot)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){wo(),Uv();const i=ot(this)[e].apply(this,n);return Fv(),Mo(),i}}),t}function uI(t){xo(t)||(t=String(t));const e=ot(this);return Wi(e,"has",t),e.hasOwnProperty(t)}class a1{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){const r=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(r?a?wI:c1:a?l1:s1).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=gt(e);if(!r){if(o&&Yt(O0,n))return Reflect.get(O0,n,i);if(n==="hasOwnProperty")return uI}const s=Reflect.get(e,n,i);return(xo(n)?r1.has(n):lI(n))||(r||Wi(e,"get",n),a)?s:kn(s)?o&&Ov(n)?s:s.value:dn(s)?r?jl(s):mn(s):s}}class o1 extends a1{constructor(e=!1){super(!1,e)}set(e,n,i,r){let a=e[n];if(!this._isShallow){const l=ls(a);if(!Tl(i)&&!ls(i)&&(a=ot(a),i=ot(i)),!gt(e)&&kn(a)&&!kn(i))return l?!1:(a.value=i,!0)}const o=gt(e)&&Ov(n)?Number(n)<e.length:Yt(e,n),s=Reflect.set(e,n,i,r);return e===ot(r)&&(o?bo(i,a)&&Ta(e,"set",n,i):Ta(e,"add",n,i)),s}deleteProperty(e,n){const i=Yt(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&i&&Ta(e,"delete",n,void 0),r}has(e,n){const i=Reflect.has(e,n);return(!xo(n)||!r1.has(n))&&Wi(e,"has",n),i}ownKeys(e){return Wi(e,"iterate",gt(e)?"length":ts),Reflect.ownKeys(e)}}class dI extends a1{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const fI=new o1,hI=new dI,pI=new o1(!0);const Bv=t=>t,ph=t=>Reflect.getPrototypeOf(t);function sd(t,e,n=!1,i=!1){t=t.__v_raw;const r=ot(t),a=ot(e);n||(bo(e,a)&&Wi(r,"get",e),Wi(r,"get",a));const{has:o}=ph(r),s=i?Bv:n?zv:ou;if(o.call(r,e))return s(t.get(e));if(o.call(r,a))return s(t.get(a));t!==r&&t.get(e)}function ld(t,e=!1){const n=this.__v_raw,i=ot(n),r=ot(t);return e||(bo(t,r)&&Wi(i,"has",t),Wi(i,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function cd(t,e=!1){return t=t.__v_raw,!e&&Wi(ot(t),"iterate",ts),Reflect.get(t,"size",t)}function N0(t,e=!1){!e&&!Tl(t)&&!ls(t)&&(t=ot(t));const n=ot(this);return ph(n).has.call(n,t)||(n.add(t),Ta(n,"add",t,t)),this}function k0(t,e,n=!1){!n&&!Tl(e)&&!ls(e)&&(e=ot(e));const i=ot(this),{has:r,get:a}=ph(i);let o=r.call(i,t);o||(t=ot(t),o=r.call(i,t));const s=a.call(i,t);return i.set(t,e),o?bo(e,s)&&Ta(i,"set",t,e):Ta(i,"add",t,e),this}function U0(t){const e=ot(this),{has:n,get:i}=ph(e);let r=n.call(e,t);r||(t=ot(t),r=n.call(e,t)),i&&i.call(e,t);const a=e.delete(t);return r&&Ta(e,"delete",t,void 0),a}function F0(){const t=ot(this),e=t.size!==0,n=t.clear();return e&&Ta(t,"clear",void 0,void 0),n}function ud(t,e){return function(i,r){const a=this,o=a.__v_raw,s=ot(o),l=e?Bv:t?zv:ou;return!t&&Wi(s,"iterate",ts),o.forEach((c,u)=>i.call(r,l(c),l(u),a))}}function dd(t,e,n){return function(...i){const r=this.__v_raw,a=ot(r),o=ml(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=r[t](...i),u=n?Bv:e?zv:ou;return!e&&Wi(a,"iterate",l?km:ts),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:s?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ha(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function mI(){const t={get(a){return sd(this,a)},get size(){return cd(this)},has:ld,add:N0,set:k0,delete:U0,clear:F0,forEach:ud(!1,!1)},e={get(a){return sd(this,a,!1,!0)},get size(){return cd(this)},has:ld,add(a){return N0.call(this,a,!0)},set(a,o){return k0.call(this,a,o,!0)},delete:U0,clear:F0,forEach:ud(!1,!0)},n={get(a){return sd(this,a,!0)},get size(){return cd(this,!0)},has(a){return ld.call(this,a,!0)},add:Ha("add"),set:Ha("set"),delete:Ha("delete"),clear:Ha("clear"),forEach:ud(!0,!1)},i={get(a){return sd(this,a,!0,!0)},get size(){return cd(this,!0)},has(a){return ld.call(this,a,!0)},add:Ha("add"),set:Ha("set"),delete:Ha("delete"),clear:Ha("clear"),forEach:ud(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{t[a]=dd(a,!1,!1),n[a]=dd(a,!0,!1),e[a]=dd(a,!1,!0),i[a]=dd(a,!0,!0)}),[t,n,e,i]}const[gI,vI,yI,bI]=mI();function Vv(t,e){const n=e?t?bI:yI:t?vI:gI;return(i,r,a)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(Yt(n,r)&&r in i?n:i,r,a)}const _I={get:Vv(!1,!1)},xI={get:Vv(!1,!0)},SI={get:Vv(!0,!1)};const s1=new WeakMap,l1=new WeakMap,c1=new WeakMap,wI=new WeakMap;function MI(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EI(t){return t.__v_skip||!Object.isExtensible(t)?0:MI(YD(t))}function mn(t){return ls(t)?t:Hv(t,!1,fI,_I,s1)}function u1(t){return Hv(t,!1,pI,xI,l1)}function jl(t){return Hv(t,!0,hI,SI,c1)}function Hv(t,e,n,i,r){if(!dn(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=r.get(t);if(a)return a;const o=EI(t);if(o===0)return t;const s=new Proxy(t,o===2?i:n);return r.set(t,s),s}function zc(t){return ls(t)?zc(t.__v_raw):!!(t&&t.__v_isReactive)}function ls(t){return!!(t&&t.__v_isReadonly)}function Tl(t){return!!(t&&t.__v_isShallow)}function d1(t){return t?!!t.__v_raw:!1}function ot(t){const e=t&&t.__v_raw;return e?ot(e):t}function f1(t){return Object.isExtensible(t)&&Yw(t,"__v_skip",!0),t}const ou=t=>dn(t)?mn(t):t,zv=t=>dn(t)?jl(t):t;class h1{constructor(e,n,i,r){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new kv(()=>e(this._value),()=>tf(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const e=ot(this);return(!e._cacheable||e.effect.dirty)&&bo(e._value,e._value=e.effect.run())&&tf(e,4),p1(e),e.effect._dirtyLevel>=2&&tf(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function TI(t,e,n=!1){let i,r;const a=wt(t);return a?(i=t,r=lr):(i=t.get,r=t.set),new h1(i,r,a||!r,n)}function p1(t){var e;po&&es&&(t=ot(t),t1(es,(e=t.dep)!=null?e:t.dep=i1(()=>t.dep=void 0,t instanceof h1?t:void 0)))}function tf(t,e=4,n,i){t=ot(t);const r=t.dep;r&&n1(r,e)}function kn(t){return!!(t&&t.__v_isRef===!0)}function ke(t){return m1(t,!1)}function At(t){return m1(t,!0)}function m1(t,e){return kn(t)?t:new AI(t,e)}class AI{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:ot(e),this._value=n?e:ou(e)}get value(){return p1(this),this._value}set value(e){const n=this.__v_isShallow||Tl(e)||ls(e);e=n?e:ot(e),bo(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=n?e:ou(e),tf(this,4))}}function Ai(t){return kn(t)?t.value:t}const CI={get:(t,e,n)=>Ai(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return kn(r)&&!kn(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function g1(t){return zc(t)?t:new Proxy(t,CI)}function Wv(t){const e=gt(t)?new Array(t.length):{};for(const n in t)e[n]=v1(t,n);return e}class PI{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return sI(ot(this._object),this._key)}}class RI{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Pt(t,e,n){return kn(t)?t:wt(t)?new RI(t):dn(t)&&arguments.length>1?v1(t,e,n):ke(t)}function v1(t,e,n){const i=t[e];return kn(i)?i:new PI(t,e,n)}/**
* @vue/runtime-core v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function mo(t,e,n,i){try{return i?t(...i):t()}catch(r){mh(r,e,n)}}function fr(t,e,n,i){if(wt(t)){const r=mo(t,e,n,i);return r&&Gw(r)&&r.catch(a=>{mh(a,e,n)}),r}if(gt(t)){const r=[];for(let a=0;a<t.length;a++)r.push(fr(t[a],e,n,i));return r}}function mh(t,e,n,i=!0){const r=e?e.vnode:null;if(e){let a=e.parent;const o=e.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,o,s)===!1)return}a=a.parent}const l=e.appContext.config.errorHandler;if(l){wo(),mo(l,null,10,[t,o,s]),Mo();return}}DI(t,n,r,i)}function DI(t,e,n,i=!0){console.error(t)}let su=!1,Um=!1;const mi=[];let qr=0;const gl=[];let eo=null,Xo=0;const y1=Promise.resolve();let Gv=null;function ri(t){const e=Gv||y1;return t?e.then(this?t.bind(this):t):e}function II(t){let e=qr+1,n=mi.length;for(;e<n;){const i=e+n>>>1,r=mi[i],a=lu(r);a<t||a===t&&r.pre?e=i+1:n=i}return e}function jv(t){(!mi.length||!mi.includes(t,su&&t.allowRecurse?qr+1:qr))&&(t.id==null?mi.push(t):mi.splice(II(t.id),0,t),b1())}function b1(){!su&&!Um&&(Um=!0,Gv=y1.then(x1))}function LI(t){const e=mi.indexOf(t);e>qr&&mi.splice(e,1)}function OI(t){gt(t)?gl.push(...t):(!eo||!eo.includes(t,t.allowRecurse?Xo+1:Xo))&&gl.push(t),b1()}function B0(t,e,n=su?qr+1:0){for(;n<mi.length;n++){const i=mi[n];if(i&&i.pre){if(t&&i.id!==t.uid)continue;mi.splice(n,1),n--,i()}}}function _1(t){if(gl.length){const e=[...new Set(gl)].sort((n,i)=>lu(n)-lu(i));if(gl.length=0,eo){eo.push(...e);return}for(eo=e,Xo=0;Xo<eo.length;Xo++){const n=eo[Xo];n.active!==!1&&n()}eo=null,Xo=0}}const lu=t=>t.id==null?1/0:t.id,NI=(t,e)=>{const n=lu(t)-lu(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function x1(t){Um=!1,su=!0,mi.sort(NI);try{for(qr=0;qr<mi.length;qr++){const e=mi[qr];e&&e.active!==!1&&mo(e,e.i,e.i?15:14)}}finally{qr=0,mi.length=0,_1(),su=!1,Gv=null,(mi.length||gl.length)&&x1()}}let ei=null,gh=null;function wf(t){const e=ei;return ei=t,gh=t&&t.type.__scopeId||null,e}function vh(t){gh=t}function yh(){gh=null}function $(t,e=ei,n){if(!e||t._n)return t;const i=(...r)=>{i._d&&Z0(-1);const a=wf(e);let o;try{o=t(...r)}finally{wf(a),i._d&&Z0(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Gi(t,e){if(ei===null)return t;const n=Mh(ei),i=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[a,o,s,l=_n]=e[r];a&&(wt(a)&&(a={mounted:a,updated:a}),a.deep&&oo(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function Io(t,e,n,i){const r=t.dirs,a=e&&e.dirs;for(let o=0;o<r.length;o++){const s=r[o];a&&(s.oldValue=a[o].value);let l=s.dir[i];l&&(wo(),fr(l,n,8,[t.el,s,t,e]),Mo())}}const to=Symbol("_leaveCb"),fd=Symbol("_enterCb");function S1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ir(()=>{t.isMounted=!0}),Ir(()=>{t.isUnmounting=!0}),t}const ar=[Function,Array],w1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ar,onEnter:ar,onAfterEnter:ar,onEnterCancelled:ar,onBeforeLeave:ar,onLeave:ar,onAfterLeave:ar,onLeaveCancelled:ar,onBeforeAppear:ar,onAppear:ar,onAfterAppear:ar,onAppearCancelled:ar},M1=t=>{const e=t.subTree;return e.component?M1(e.component):e},kI={name:"BaseTransition",props:w1,setup(t,{slots:e}){const n=Sh(),i=S1();return()=>{const r=e.default&&Xv(e.default(),!0);if(!r||!r.length)return;let a=r[0];if(r.length>1){for(const f of r)if(f.type!==ki){a=f;break}}const o=ot(t),{mode:s}=o;if(i.isLeaving)return cp(a);const l=V0(a);if(!l)return cp(a);let c=cu(l,o,i,n,f=>c=f);Al(l,c);const u=n.subTree,d=u&&V0(u);if(d&&d.type!==ki&&!Yo(l,d)&&M1(n).type!==ki){const f=cu(d,o,i,n);if(Al(d,f),s==="out-in"&&l.type!==ki)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},cp(a);s==="in-out"&&l.type!==ki&&(f.delayLeave=(h,p,m)=>{const g=E1(i,d);g[String(d.key)]=d,h[to]=()=>{p(),h[to]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return a}}},UI=kI;function E1(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function cu(t,e,n,i,r){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=e,w=String(t.key),L=E1(n,t),_=(S,M)=>{S&&fr(S,i,9,M)},E=(S,M)=>{const D=M[1];_(S,M),gt(S)?S.every(O=>O.length<=1)&&D():S.length<=1&&D()},R={mode:o,persisted:s,beforeEnter(S){let M=l;if(!n.isMounted)if(a)M=g||l;else return;S[to]&&S[to](!0);const D=L[w];D&&Yo(t,D)&&D.el[to]&&D.el[to](),_(M,[S])},enter(S){let M=c,D=u,O=d;if(!n.isMounted)if(a)M=v||c,D=b||u,O=y||d;else return;let V=!1;const X=S[fd]=K=>{V||(V=!0,K?_(O,[S]):_(D,[S]),R.delayedLeave&&R.delayedLeave(),S[fd]=void 0)};M?E(M,[S,X]):X()},leave(S,M){const D=String(t.key);if(S[fd]&&S[fd](!0),n.isUnmounting)return M();_(f,[S]);let O=!1;const V=S[to]=X=>{O||(O=!0,M(),X?_(m,[S]):_(p,[S]),S[to]=void 0,L[D]===t&&delete L[D])};L[D]=t,h?E(h,[S,V]):V()},clone(S){const M=cu(S,e,n,i,r);return r&&r(M),M}};return R}function cp(t){if(bh(t))return t=Cr(t),t.children=null,t}function V0(t){if(!bh(t))return t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&wt(n.default))return n.default()}}function Al(t,e){t.shapeFlag&6&&t.component?Al(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Xv(t,e=!1,n){let i=[],r=0;for(let a=0;a<t.length;a++){let o=t[a];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:a);o.type===Mt?(o.patchFlag&128&&r++,i=i.concat(Xv(o.children,e,s))):(e||o.type!==ki)&&i.push(s!=null?Cr(o,{key:s}):o)}if(r>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function Eo(t,e){return wt(t)?Yn({name:t.name},e,{setup:t}):t}const Wc=t=>!!t.type.__asyncLoader,bh=t=>t.type.__isKeepAlive;function FI(t,e){T1(t,"a",e)}function BI(t,e){T1(t,"da",e)}function T1(t,e,n=ii){const i=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(_h(e,i,n),n){let r=n.parent;for(;r&&r.parent;)bh(r.parent.vnode)&&VI(i,e,n,r),r=r.parent}}function VI(t,e,n,i){const r=_h(e,t,i,!0);Kv(()=>{Lv(i[e],r)},n)}function _h(t,e,n=ii,i=!1){if(n){const r=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...o)=>{wo();const s=Uu(n),l=fr(e,n,t,o);return s(),Mo(),l});return i?r.unshift(a):r.push(a),a}}const Oa=t=>(e,n=ii)=>{(!wh||t==="sp")&&_h(t,(...i)=>e(...i),n)},Yv=Oa("bm"),ir=Oa("m"),HI=Oa("bu"),qv=Oa("u"),Ir=Oa("bum"),Kv=Oa("um"),zI=Oa("sp"),WI=Oa("rtg"),GI=Oa("rtc");function jI(t,e=ii){_h("ec",t,e)}const Qv="components",XI="directives";function ni(t,e){return Zv(Qv,t,!0,e)||t}const A1=Symbol.for("v-ndc");function uu(t){return Nn(t)?Zv(Qv,t,!1)||t:t||A1}function gs(t){return Zv(XI,t)}function Zv(t,e,n=!0,i=!1){const r=ei||ii;if(r){const a=r.type;if(t===Qv){const s=kL(a,!1);if(s&&(s===e||s===nr(e)||s===La(nr(e))))return a}const o=H0(r[t]||a[t],e)||H0(r.appContext[t],e);return!o&&i?a:o}}function H0(t,e){return t&&(t[e]||t[nr(e)]||t[La(nr(e))])}function co(t,e,n,i){let r;const a=n;if(gt(t)||Nn(t)){r=new Array(t.length);for(let o=0,s=t.length;o<s;o++)r[o]=e(t[o],o,void 0,a)}else if(typeof t=="number"){r=new Array(t);for(let o=0;o<t;o++)r[o]=e(o+1,o,void 0,a)}else if(dn(t))if(t[Symbol.iterator])r=Array.from(t,(o,s)=>e(o,s,void 0,a));else{const o=Object.keys(t);r=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const c=o[s];r[s]=e(t[c],c,s,a)}}else r=[];return r}function Oi(t,e,n={},i,r){if(ei.isCE||ei.parent&&Wc(ei.parent)&&ei.parent.isCE)return e!=="default"&&(n.name=e),x("slot",n,i&&i());let a=t[e];a&&a._c&&(a._d=!1),Ve();const o=a&&C1(a(n)),s=Wt(Mt,{key:(n.key||o&&o.key||`_${e}`)+(!o&&i?"_fb":"")},o||(i?i():[]),o&&t._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function C1(t){return t.some(e=>Ef(e)?!(e.type===ki||e.type===Mt&&!C1(e.children)):!0)?t:null}const Fm=t=>t?q1(t)?Mh(t):Fm(t.parent):null,Gc=Yn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Fm(t.parent),$root:t=>Fm(t.root),$emit:t=>t.emit,$options:t=>$v(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,jv(t.update)}),$nextTick:t=>t.n||(t.n=ri.bind(t.proxy)),$watch:t=>vL.bind(t)}),up=(t,e)=>t!==_n&&!t.__isScriptSetup&&Yt(t,e),YI={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:o,type:s,appContext:l}=t;let c;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return a[e]}else{if(up(i,e))return o[e]=1,i[e];if(r!==_n&&Yt(r,e))return o[e]=2,r[e];if((c=t.propsOptions[0])&&Yt(c,e))return o[e]=3,a[e];if(n!==_n&&Yt(n,e))return o[e]=4,n[e];Bm&&(o[e]=0)}}const u=Gc[e];let d,f;if(u)return e==="$attrs"&&Wi(t.attrs,"get",""),u(t);if((d=s.__cssModules)&&(d=d[e]))return d;if(n!==_n&&Yt(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,Yt(f,e))return f[e]},set({_:t},e,n){const{data:i,setupState:r,ctx:a}=t;return up(r,e)?(r[e]=n,!0):i!==_n&&Yt(i,e)?(i[e]=n,!0):Yt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:a}},o){let s;return!!n[o]||t!==_n&&Yt(t,o)||up(e,o)||(s=a[0])&&Yt(s,o)||Yt(i,o)||Yt(Gc,o)||Yt(r.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Yt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function z0(t){return gt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Bm=!0;function qI(t){const e=$v(t),n=t.proxy,i=t.ctx;Bm=!1,e.beforeCreate&&W0(e.beforeCreate,t,"bc");const{data:r,computed:a,methods:o,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:w,render:L,renderTracked:_,renderTriggered:E,errorCaptured:R,serverPrefetch:S,expose:M,inheritAttrs:D,components:O,directives:V,filters:X}=e;if(c&&KI(c,i,null),o)for(const Q in o){const Y=o[Q];wt(Y)&&(i[Q]=Y.bind(n))}if(r){const Q=r.call(n,n);dn(Q)&&(t.data=mn(Q))}if(Bm=!0,a)for(const Q in a){const Y=a[Q],he=wt(Y)?Y.bind(n,n):wt(Y.get)?Y.get.bind(n,n):lr,ne=!wt(Y)&&wt(Y.set)?Y.set.bind(n):lr,Z=q({get:he,set:ne});Object.defineProperty(i,Q,{enumerable:!0,configurable:!0,get:()=>Z.value,set:_e=>Z.value=_e})}if(s)for(const Q in s)P1(s[Q],i,n,Q);if(l){const Q=wt(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(Y=>{ln(Y,Q[Y])})}u&&W0(u,t,"c");function z(Q,Y){gt(Y)?Y.forEach(he=>Q(he.bind(n))):Y&&Q(Y.bind(n))}if(z(Yv,d),z(ir,f),z(HI,h),z(qv,p),z(FI,m),z(BI,g),z(jI,R),z(GI,_),z(WI,E),z(Ir,b),z(Kv,w),z(zI,S),gt(M))if(M.length){const Q=t.exposed||(t.exposed={});M.forEach(Y=>{Object.defineProperty(Q,Y,{get:()=>n[Y],set:he=>n[Y]=he})})}else t.exposed||(t.exposed={});L&&t.render===lr&&(t.render=L),D!=null&&(t.inheritAttrs=D),O&&(t.components=O),V&&(t.directives=V)}function KI(t,e,n=lr){gt(t)&&(t=Vm(t));for(const i in t){const r=t[i];let a;dn(r)?"default"in r?a=Ct(r.from||i,r.default,!0):a=Ct(r.from||i):a=Ct(r),kn(a)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[i]=a}}function W0(t,e,n){fr(gt(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function P1(t,e,n,i){const r=i.includes(".")?G1(n,i):()=>n[i];if(Nn(t)){const a=e[t];wt(a)&&ft(r,a)}else if(wt(t))ft(r,t.bind(n));else if(dn(t))if(gt(t))t.forEach(a=>P1(a,e,n,i));else{const a=wt(t.handler)?t.handler.bind(n):e[t.handler];wt(a)&&ft(r,a,t)}}function $v(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!r.length&&!n&&!i?l=e:(l={},r.length&&r.forEach(c=>Mf(l,c,o,!0)),Mf(l,e,o)),dn(e)&&a.set(e,l),l}function Mf(t,e,n,i=!1){const{mixins:r,extends:a}=e;a&&Mf(t,a,n,!0),r&&r.forEach(o=>Mf(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const s=QI[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const QI={data:G0,props:j0,emits:j0,methods:Uc,computed:Uc,beforeCreate:Si,created:Si,beforeMount:Si,mounted:Si,beforeUpdate:Si,updated:Si,beforeDestroy:Si,beforeUnmount:Si,destroyed:Si,unmounted:Si,activated:Si,deactivated:Si,errorCaptured:Si,serverPrefetch:Si,components:Uc,directives:Uc,watch:$I,provide:G0,inject:ZI};function G0(t,e){return e?t?function(){return Yn(wt(t)?t.call(this,this):t,wt(e)?e.call(this,this):e)}:e:t}function ZI(t,e){return Uc(Vm(t),Vm(e))}function Vm(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Si(t,e){return t?[...new Set([].concat(t,e))]:e}function Uc(t,e){return t?Yn(Object.create(null),t,e):e}function j0(t,e){return t?gt(t)&&gt(e)?[...new Set([...t,...e])]:Yn(Object.create(null),z0(t),z0(e??{})):e}function $I(t,e){if(!t)return e;if(!e)return t;const n=Yn(Object.create(null),t);for(const i in e)n[i]=Si(t[i],e[i]);return n}function R1(){return{app:null,config:{isNativeTag:jD,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let JI=0;function eL(t,e){return function(i,r=null){wt(i)||(i=Yn({},i)),r!=null&&!dn(r)&&(r=null);const a=R1(),o=new WeakSet;let s=!1;const l=a.app={_uid:JI++,_component:i,_props:r,_container:null,_context:a,_instance:null,version:FL,get config(){return a.config},set config(c){},use(c,...u){return o.has(c)||(c&&wt(c.install)?(o.add(c),c.install(l,...u)):wt(c)&&(o.add(c),c(l,...u))),l},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),l},component(c,u){return u?(a.components[c]=u,l):a.components[c]},directive(c,u){return u?(a.directives[c]=u,l):a.directives[c]},mount(c,u,d){if(!s){const f=x(i,r);return f.appContext=a,d===!0?d="svg":d===!1&&(d=void 0),u&&e?e(f,c):t(f,c,d),s=!0,l._container=c,c.__vue_app__=l,Mh(f.component)}},unmount(){s&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return a.provides[c]=u,l},runWithContext(c){const u=vl;vl=l;try{return c()}finally{vl=u}}};return l}}let vl=null;function ln(t,e){if(ii){let n=ii.provides;const i=ii.parent&&ii.parent.provides;i===n&&(n=ii.provides=Object.create(i)),n[t]=e}}function Ct(t,e,n=!1){const i=ii||ei;if(i||vl){const r=vl?vl._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&wt(e)?e.call(i&&i.proxy):e}}const D1={},I1=()=>Object.create(D1),L1=t=>Object.getPrototypeOf(t)===D1;function tL(t,e,n,i=!1){const r={},a=I1();t.propsDefaults=Object.create(null),O1(t,e,r,a);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=i?r:u1(r):t.type.props?t.props=r:t.props=a,t.attrs=a}function nL(t,e,n,i){const{props:r,attrs:a,vnode:{patchFlag:o}}=t,s=ot(r),[l]=t.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(xh(t.emitsOptions,f))continue;const h=e[f];if(l)if(Yt(a,f))h!==a[f]&&(a[f]=h,c=!0);else{const p=nr(f);r[p]=Hm(l,s,p,h,t,!1)}else h!==a[f]&&(a[f]=h,c=!0)}}}else{O1(t,e,r,a)&&(c=!0);let u;for(const d in s)(!e||!Yt(e,d)&&((u=So(d))===d||!Yt(e,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Hm(l,s,d,void 0,t,!0)):delete r[d]);if(a!==s)for(const d in a)(!e||!Yt(e,d))&&(delete a[d],c=!0)}c&&Ta(t.attrs,"set","")}function O1(t,e,n,i){const[r,a]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(Hc(l))continue;const c=e[l];let u;r&&Yt(r,u=nr(l))?!a||!a.includes(u)?n[u]=c:(s||(s={}))[u]=c:xh(t.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,o=!0)}if(a){const l=ot(n),c=s||_n;for(let u=0;u<a.length;u++){const d=a[u];n[d]=Hm(r,l,d,c[d],t,!Yt(c,d))}}return o}function Hm(t,e,n,i,r,a){const o=t[n];if(o!=null){const s=Yt(o,"default");if(s&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&wt(l)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const u=Uu(r);i=c[n]=l.call(null,e),u()}}else i=l}o[0]&&(a&&!s?i=!1:o[1]&&(i===""||i===So(n))&&(i=!0))}return i}const iL=new WeakMap;function N1(t,e,n=!1){const i=n?iL:e.propsCache,r=i.get(t);if(r)return r;const a=t.props,o={},s=[];let l=!1;if(!wt(t)){const u=d=>{l=!0;const[f,h]=N1(d,e,!0);Yn(o,f),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!a&&!l)return dn(t)&&i.set(t,pl),pl;if(gt(a))for(let u=0;u<a.length;u++){const d=nr(a[u]);X0(d)&&(o[d]=_n)}else if(a)for(const u in a){const d=nr(u);if(X0(d)){const f=a[u],h=o[d]=gt(f)||wt(f)?{type:f}:Yn({},f),p=h.type;let m=!1,g=!0;if(gt(p))for(let v=0;v<p.length;++v){const b=p[v],y=wt(b)&&b.name;if(y==="Boolean"){m=!0;break}else y==="String"&&(g=!1)}else m=wt(p)&&p.name==="Boolean";h[0]=m,h[1]=g,(m||Yt(h,"default"))&&s.push(d)}}const c=[o,s];return dn(t)&&i.set(t,c),c}function X0(t){return t[0]!=="$"&&!Hc(t)}const k1=t=>t[0]==="_"||t==="$stable",Jv=t=>gt(t)?t.map(Wr):[Wr(t)],rL=(t,e,n)=>{if(e._n)return e;const i=$((...r)=>Jv(e(...r)),n);return i._c=!1,i},U1=(t,e,n)=>{const i=t._ctx;for(const r in t){if(k1(r))continue;const a=t[r];if(wt(a))e[r]=rL(r,a,i);else if(a!=null){const o=Jv(a);e[r]=()=>o}}},F1=(t,e)=>{const n=Jv(e);t.slots.default=()=>n},B1=(t,e,n)=>{for(const i in e)(n||i!=="_")&&(t[i]=e[i])},aL=(t,e,n)=>{const i=t.slots=I1();if(t.vnode.shapeFlag&32){const r=e._;r?(B1(i,e,n),n&&Yw(i,"_",r,!0)):U1(e,i)}else e&&F1(t,e)},oL=(t,e,n)=>{const{vnode:i,slots:r}=t;let a=!0,o=_n;if(i.shapeFlag&32){const s=e._;s?n&&s===1?a=!1:B1(r,e,n):(a=!e.$stable,U1(e,r)),o=e}else e&&(F1(t,e),o={default:1});if(a)for(const s in r)!k1(s)&&o[s]==null&&delete r[s]};function zm(t,e,n,i,r=!1){if(gt(t)){t.forEach((f,h)=>zm(f,e&&(gt(e)?e[h]:e),n,i,r));return}if(Wc(i)&&!r)return;const a=i.shapeFlag&4?Mh(i.component):i.el,o=r?null:a,{i:s,r:l}=t,c=e&&e.r,u=s.refs===_n?s.refs={}:s.refs,d=s.setupState;if(c!=null&&c!==l&&(Nn(c)?(u[c]=null,Yt(d,c)&&(d[c]=null)):kn(c)&&(c.value=null)),wt(l))mo(l,s,12,[o,u]);else{const f=Nn(l),h=kn(l);if(f||h){const p=()=>{if(t.f){const m=f?Yt(d,l)?d[l]:u[l]:l.value;r?gt(m)&&Lv(m,a):gt(m)?m.includes(a)||m.push(a):f?(u[l]=[a],Yt(d,l)&&(d[l]=u[l])):(l.value=[a],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,Yt(d,l)&&(d[l]=o)):h&&(l.value=o,t.k&&(u[t.k]=o))};o?(p.id=-1,Ii(p,n)):p()}}}const V1=Symbol("_vte"),sL=t=>t.__isTeleport,jc=t=>t&&(t.disabled||t.disabled===""),Y0=t=>typeof SVGElement<"u"&&t instanceof SVGElement,q0=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Wm=(t,e)=>{const n=t&&t.to;return Nn(n)?e?e(n):null:n},lL={name:"Teleport",__isTeleport:!0,process(t,e,n,i,r,a,o,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:g}}=c,v=jc(e.props);let{shapeFlag:b,children:y,dynamicChildren:w}=e;if(t==null){const L=e.el=m(""),_=e.anchor=m("");h(L,n,i),h(_,n,i);const E=e.target=Wm(e.props,p),R=z1(E,e,m,h);E&&(o==="svg"||Y0(E)?o="svg":(o==="mathml"||q0(E))&&(o="mathml"));const S=(M,D)=>{b&16&&u(y,M,D,r,a,o,s,l)};v?S(n,_):E&&S(E,R)}else{e.el=t.el,e.targetStart=t.targetStart;const L=e.anchor=t.anchor,_=e.target=t.target,E=e.targetAnchor=t.targetAnchor,R=jc(t.props),S=R?n:_,M=R?L:E;if(o==="svg"||Y0(_)?o="svg":(o==="mathml"||q0(_))&&(o="mathml"),w?(f(t.dynamicChildren,w,S,r,a,o,s),ey(t,e,!0)):l||d(t,e,S,M,r,a,o,s,!1),v)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):hd(e,n,L,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const D=e.target=Wm(e.props,p);D&&hd(e,D,null,c,0)}else R&&hd(e,_,E,c,1)}H1(e)},remove(t,e,n,{um:i,o:{remove:r}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=t;if(d&&(r(c),r(u)),a&&r(l),o&16){const h=a||!jc(f);for(let p=0;p<s.length;p++){const m=s[p];i(m,e,n,h,!!m.dynamicChildren)}}},move:hd,hydrate:cL};function hd(t,e,n,{o:{insert:i},m:r},a=2){a===0&&i(t.targetAnchor,e,n);const{el:o,anchor:s,shapeFlag:l,children:c,props:u}=t,d=a===2;if(d&&i(o,e,n),(!d||jc(u))&&l&16)for(let f=0;f<c.length;f++)r(c[f],e,n,2);d&&i(s,e,n)}function cL(t,e,n,i,r,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:c,createText:u}},d){const f=e.target=Wm(e.props,l);if(f){const h=f._lpa||f.firstChild;if(e.shapeFlag&16)if(jc(e.props))e.anchor=d(o(t),e,s(t),n,i,r,a),e.targetStart=h,e.targetAnchor=h&&o(h);else{e.anchor=o(t);let p=h;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")e.targetStart=p;else if(p.data==="teleport anchor"){e.targetAnchor=p,f._lpa=e.targetAnchor&&o(e.targetAnchor);break}}p=o(p)}e.targetAnchor||z1(f,e,u,c),d(h&&o(h),e,f,n,i,r,a)}H1(e)}return e.anchor&&o(e.anchor)}const uL=lL;function H1(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}function z1(t,e,n,i){const r=e.targetStart=n(""),a=e.targetAnchor=n("");return r[V1]=a,t&&(i(r,t),i(a,t)),a}const Ii=EL;function dL(t){return fL(t)}function fL(t,e){const n=qw();n.__VUE__=!0;const{insert:i,remove:r,patchProp:a,createElement:o,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=lr,insertStaticContent:p}=t,m=(H,B,J,ie=null,fe=null,ye=null,Me=void 0,k=null,T=!!B.dynamicChildren)=>{if(H===B)return;H&&!Yo(H,B)&&(ie=W(H),_e(H,fe,ye,!0),H=null),B.patchFlag===-2&&(T=!1,B.dynamicChildren=null);const{type:G,ref:oe,shapeFlag:pe}=B;switch(G){case ku:g(H,B,J,ie);break;case ki:v(H,B,J,ie);break;case hp:H==null&&b(B,J,ie,Me);break;case Mt:O(H,B,J,ie,fe,ye,Me,k,T);break;default:pe&1?L(H,B,J,ie,fe,ye,Me,k,T):pe&6?V(H,B,J,ie,fe,ye,Me,k,T):(pe&64||pe&128)&&G.process(H,B,J,ie,fe,ye,Me,k,T,Ce)}oe!=null&&fe&&zm(oe,H&&H.ref,ye,B||H,!B)},g=(H,B,J,ie)=>{if(H==null)i(B.el=s(B.children),J,ie);else{const fe=B.el=H.el;B.children!==H.children&&c(fe,B.children)}},v=(H,B,J,ie)=>{H==null?i(B.el=l(B.children||""),J,ie):B.el=H.el},b=(H,B,J,ie)=>{[H.el,H.anchor]=p(H.children,B,J,ie,H.el,H.anchor)},y=({el:H,anchor:B},J,ie)=>{let fe;for(;H&&H!==B;)fe=f(H),i(H,J,ie),H=fe;i(B,J,ie)},w=({el:H,anchor:B})=>{let J;for(;H&&H!==B;)J=f(H),r(H),H=J;r(B)},L=(H,B,J,ie,fe,ye,Me,k,T)=>{B.type==="svg"?Me="svg":B.type==="math"&&(Me="mathml"),H==null?_(B,J,ie,fe,ye,Me,k,T):S(H,B,fe,ye,Me,k,T)},_=(H,B,J,ie,fe,ye,Me,k)=>{let T,G;const{props:oe,shapeFlag:pe,transition:ue,dirs:Re}=H;if(T=H.el=o(H.type,ye,oe&&oe.is,oe),pe&8?u(T,H.children):pe&16&&R(H.children,T,null,ie,fe,dp(H,ye),Me,k),Re&&Io(H,null,ie,"created"),E(T,H,H.scopeId,Me,ie),oe){for(const Le in oe)Le!=="value"&&!Hc(Le)&&a(T,Le,null,oe[Le],ye,ie);"value"in oe&&a(T,"value",null,oe.value,ye),(G=oe.onVnodeBeforeMount)&&Br(G,ie,H)}Re&&Io(H,null,ie,"beforeMount");const Ae=hL(fe,ue);Ae&&ue.beforeEnter(T),i(T,B,J),((G=oe&&oe.onVnodeMounted)||Ae||Re)&&Ii(()=>{G&&Br(G,ie,H),Ae&&ue.enter(T),Re&&Io(H,null,ie,"mounted")},fe)},E=(H,B,J,ie,fe)=>{if(J&&h(H,J),ie)for(let ye=0;ye<ie.length;ye++)h(H,ie[ye]);if(fe){let ye=fe.subTree;if(B===ye){const Me=fe.vnode;E(H,Me,Me.scopeId,Me.slotScopeIds,fe.parent)}}},R=(H,B,J,ie,fe,ye,Me,k,T=0)=>{for(let G=T;G<H.length;G++){const oe=H[G]=k?no(H[G]):Wr(H[G]);m(null,oe,B,J,ie,fe,ye,Me,k)}},S=(H,B,J,ie,fe,ye,Me)=>{const k=B.el=H.el;let{patchFlag:T,dynamicChildren:G,dirs:oe}=B;T|=H.patchFlag&16;const pe=H.props||_n,ue=B.props||_n;let Re;if(J&&Lo(J,!1),(Re=ue.onVnodeBeforeUpdate)&&Br(Re,J,B,H),oe&&Io(B,H,J,"beforeUpdate"),J&&Lo(J,!0),(pe.innerHTML&&ue.innerHTML==null||pe.textContent&&ue.textContent==null)&&u(k,""),G?M(H.dynamicChildren,G,k,J,ie,dp(B,fe),ye):Me||Y(H,B,k,null,J,ie,dp(B,fe),ye,!1),T>0){if(T&16)D(k,pe,ue,J,fe);else if(T&2&&pe.class!==ue.class&&a(k,"class",null,ue.class,fe),T&4&&a(k,"style",pe.style,ue.style,fe),T&8){const Ae=B.dynamicProps;for(let Le=0;Le<Ae.length;Le++){const ze=Ae[Le],Pe=pe[ze],Ue=ue[ze];(Ue!==Pe||ze==="value")&&a(k,ze,Pe,Ue,fe,J)}}T&1&&H.children!==B.children&&u(k,B.children)}else!Me&&G==null&&D(k,pe,ue,J,fe);((Re=ue.onVnodeUpdated)||oe)&&Ii(()=>{Re&&Br(Re,J,B,H),oe&&Io(B,H,J,"updated")},ie)},M=(H,B,J,ie,fe,ye,Me)=>{for(let k=0;k<B.length;k++){const T=H[k],G=B[k],oe=T.el&&(T.type===Mt||!Yo(T,G)||T.shapeFlag&70)?d(T.el):J;m(T,G,oe,null,ie,fe,ye,Me,!0)}},D=(H,B,J,ie,fe)=>{if(B!==J){if(B!==_n)for(const ye in B)!Hc(ye)&&!(ye in J)&&a(H,ye,B[ye],null,fe,ie);for(const ye in J){if(Hc(ye))continue;const Me=J[ye],k=B[ye];Me!==k&&ye!=="value"&&a(H,ye,k,Me,fe,ie)}"value"in J&&a(H,"value",B.value,J.value,fe)}},O=(H,B,J,ie,fe,ye,Me,k,T)=>{const G=B.el=H?H.el:s(""),oe=B.anchor=H?H.anchor:s("");let{patchFlag:pe,dynamicChildren:ue,slotScopeIds:Re}=B;Re&&(k=k?k.concat(Re):Re),H==null?(i(G,J,ie),i(oe,J,ie),R(B.children||[],J,oe,fe,ye,Me,k,T)):pe>0&&pe&64&&ue&&H.dynamicChildren?(M(H.dynamicChildren,ue,J,fe,ye,Me,k),(B.key!=null||fe&&B===fe.subTree)&&ey(H,B,!0)):Y(H,B,J,oe,fe,ye,Me,k,T)},V=(H,B,J,ie,fe,ye,Me,k,T)=>{B.slotScopeIds=k,H==null?B.shapeFlag&512?fe.ctx.activate(B,J,ie,Me,T):X(B,J,ie,fe,ye,Me,T):K(H,B,T)},X=(H,B,J,ie,fe,ye,Me)=>{const k=H.component=DL(H,ie,fe);if(bh(H)&&(k.ctx.renderer=Ce),IL(k,!1,Me),k.asyncDep){if(fe&&fe.registerDep(k,z,Me),!H.el){const T=k.subTree=x(ki);v(null,T,B,J)}}else z(k,H,B,J,fe,ye,Me)},K=(H,B,J)=>{const ie=B.component=H.component;if(SL(H,B,J))if(ie.asyncDep&&!ie.asyncResolved){Q(ie,B,J);return}else ie.next=B,LI(ie.update),ie.effect.dirty=!0,ie.update();else B.el=H.el,ie.vnode=B},z=(H,B,J,ie,fe,ye,Me)=>{const k=()=>{if(H.isMounted){let{next:oe,bu:pe,u:ue,parent:Re,vnode:Ae}=H;{const xt=W1(H);if(xt){oe&&(oe.el=Ae.el,Q(H,oe,Me)),xt.asyncDep.then(()=>{H.isUnmounted||k()});return}}let Le=oe,ze;Lo(H,!1),oe?(oe.el=Ae.el,Q(H,oe,Me)):oe=Ae,pe&&sp(pe),(ze=oe.props&&oe.props.onVnodeBeforeUpdate)&&Br(ze,Re,oe,Ae),Lo(H,!0);const Pe=fp(H),Ue=H.subTree;H.subTree=Pe,m(Ue,Pe,d(Ue.el),W(Ue),H,fe,ye),oe.el=Pe.el,Le===null&&wL(H,Pe.el),ue&&Ii(ue,fe),(ze=oe.props&&oe.props.onVnodeUpdated)&&Ii(()=>Br(ze,Re,oe,Ae),fe)}else{let oe;const{el:pe,props:ue}=B,{bm:Re,m:Ae,parent:Le}=H,ze=Wc(B);if(Lo(H,!1),Re&&sp(Re),!ze&&(oe=ue&&ue.onVnodeBeforeMount)&&Br(oe,Le,B),Lo(H,!0),pe&&j){const Pe=()=>{H.subTree=fp(H),j(pe,H.subTree,H,fe,null)};ze?B.type.__asyncLoader().then(()=>!H.isUnmounted&&Pe()):Pe()}else{const Pe=H.subTree=fp(H);m(null,Pe,J,ie,H,fe,ye),B.el=Pe.el}if(Ae&&Ii(Ae,fe),!ze&&(oe=ue&&ue.onVnodeMounted)){const Pe=B;Ii(()=>Br(oe,Le,Pe),fe)}(B.shapeFlag&256||Le&&Wc(Le.vnode)&&Le.vnode.shapeFlag&256)&&H.a&&Ii(H.a,fe),H.isMounted=!0,B=J=ie=null}},T=H.effect=new kv(k,lr,()=>jv(G),H.scope),G=H.update=()=>{T.dirty&&T.run()};G.i=H,G.id=H.uid,Lo(H,!0),G()},Q=(H,B,J)=>{B.component=H;const ie=H.vnode.props;H.vnode=B,H.next=null,nL(H,B.props,ie,J),oL(H,B.children,J),wo(),B0(H),Mo()},Y=(H,B,J,ie,fe,ye,Me,k,T=!1)=>{const G=H&&H.children,oe=H?H.shapeFlag:0,pe=B.children,{patchFlag:ue,shapeFlag:Re}=B;if(ue>0){if(ue&128){ne(G,pe,J,ie,fe,ye,Me,k,T);return}else if(ue&256){he(G,pe,J,ie,fe,ye,Me,k,T);return}}Re&8?(oe&16&&re(G,fe,ye),pe!==G&&u(J,pe)):oe&16?Re&16?ne(G,pe,J,ie,fe,ye,Me,k,T):re(G,fe,ye,!0):(oe&8&&u(J,""),Re&16&&R(pe,J,ie,fe,ye,Me,k,T))},he=(H,B,J,ie,fe,ye,Me,k,T)=>{H=H||pl,B=B||pl;const G=H.length,oe=B.length,pe=Math.min(G,oe);let ue;for(ue=0;ue<pe;ue++){const Re=B[ue]=T?no(B[ue]):Wr(B[ue]);m(H[ue],Re,J,null,fe,ye,Me,k,T)}G>oe?re(H,fe,ye,!0,!1,pe):R(B,J,ie,fe,ye,Me,k,T,pe)},ne=(H,B,J,ie,fe,ye,Me,k,T)=>{let G=0;const oe=B.length;let pe=H.length-1,ue=oe-1;for(;G<=pe&&G<=ue;){const Re=H[G],Ae=B[G]=T?no(B[G]):Wr(B[G]);if(Yo(Re,Ae))m(Re,Ae,J,null,fe,ye,Me,k,T);else break;G++}for(;G<=pe&&G<=ue;){const Re=H[pe],Ae=B[ue]=T?no(B[ue]):Wr(B[ue]);if(Yo(Re,Ae))m(Re,Ae,J,null,fe,ye,Me,k,T);else break;pe--,ue--}if(G>pe){if(G<=ue){const Re=ue+1,Ae=Re<oe?B[Re].el:ie;for(;G<=ue;)m(null,B[G]=T?no(B[G]):Wr(B[G]),J,Ae,fe,ye,Me,k,T),G++}}else if(G>ue)for(;G<=pe;)_e(H[G],fe,ye,!0),G++;else{const Re=G,Ae=G,Le=new Map;for(G=Ae;G<=ue;G++){const tt=B[G]=T?no(B[G]):Wr(B[G]);tt.key!=null&&Le.set(tt.key,G)}let ze,Pe=0;const Ue=ue-Ae+1;let xt=!1,lt=0;const je=new Array(Ue);for(G=0;G<Ue;G++)je[G]=0;for(G=Re;G<=pe;G++){const tt=H[G];if(Pe>=Ue){_e(tt,fe,ye,!0);continue}let kt;if(tt.key!=null)kt=Le.get(tt.key);else for(ze=Ae;ze<=ue;ze++)if(je[ze-Ae]===0&&Yo(tt,B[ze])){kt=ze;break}kt===void 0?_e(tt,fe,ye,!0):(je[kt-Ae]=G+1,kt>=lt?lt=kt:xt=!0,m(tt,B[kt],J,null,fe,ye,Me,k,T),Pe++)}const ht=xt?pL(je):pl;for(ze=ht.length-1,G=Ue-1;G>=0;G--){const tt=Ae+G,kt=B[tt],P=tt+1<oe?B[tt+1].el:ie;je[G]===0?m(null,kt,J,P,fe,ye,Me,k,T):xt&&(ze<0||G!==ht[ze]?Z(kt,J,P,2):ze--)}}},Z=(H,B,J,ie,fe=null)=>{const{el:ye,type:Me,transition:k,children:T,shapeFlag:G}=H;if(G&6){Z(H.component.subTree,B,J,ie);return}if(G&128){H.suspense.move(B,J,ie);return}if(G&64){Me.move(H,B,J,Ce);return}if(Me===Mt){i(ye,B,J);for(let pe=0;pe<T.length;pe++)Z(T[pe],B,J,ie);i(H.anchor,B,J);return}if(Me===hp){y(H,B,J);return}if(ie!==2&&G&1&&k)if(ie===0)k.beforeEnter(ye),i(ye,B,J),Ii(()=>k.enter(ye),fe);else{const{leave:pe,delayLeave:ue,afterLeave:Re}=k,Ae=()=>i(ye,B,J),Le=()=>{pe(ye,()=>{Ae(),Re&&Re()})};ue?ue(ye,Ae,Le):Le()}else i(ye,B,J)},_e=(H,B,J,ie=!1,fe=!1)=>{const{type:ye,props:Me,ref:k,children:T,dynamicChildren:G,shapeFlag:oe,patchFlag:pe,dirs:ue,cacheIndex:Re}=H;if(pe===-2&&(fe=!1),k!=null&&zm(k,null,J,H,!0),Re!=null&&(B.renderCache[Re]=void 0),oe&256){B.ctx.deactivate(H);return}const Ae=oe&1&&ue,Le=!Wc(H);let ze;if(Le&&(ze=Me&&Me.onVnodeBeforeUnmount)&&Br(ze,B,H),oe&6)le(H.component,J,ie);else{if(oe&128){H.suspense.unmount(J,ie);return}Ae&&Io(H,null,B,"beforeUnmount"),oe&64?H.type.remove(H,B,J,Ce,ie):G&&!G.hasOnce&&(ye!==Mt||pe>0&&pe&64)?re(G,B,J,!1,!0):(ye===Mt&&pe&384||!fe&&oe&16)&&re(T,B,J),ie&&Te(H)}(Le&&(ze=Me&&Me.onVnodeUnmounted)||Ae)&&Ii(()=>{ze&&Br(ze,B,H),Ae&&Io(H,null,B,"unmounted")},J)},Te=H=>{const{type:B,el:J,anchor:ie,transition:fe}=H;if(B===Mt){ee(J,ie);return}if(B===hp){w(H);return}const ye=()=>{r(J),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(H.shapeFlag&1&&fe&&!fe.persisted){const{leave:Me,delayLeave:k}=fe,T=()=>Me(J,ye);k?k(H.el,ye,T):T()}else ye()},ee=(H,B)=>{let J;for(;H!==B;)J=f(H),r(H),H=J;r(B)},le=(H,B,J)=>{const{bum:ie,scope:fe,update:ye,subTree:Me,um:k,m:T,a:G}=H;K0(T),K0(G),ie&&sp(ie),fe.stop(),ye&&(ye.active=!1,_e(Me,H,B,J)),k&&Ii(k,B),Ii(()=>{H.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},re=(H,B,J,ie=!1,fe=!1,ye=0)=>{for(let Me=ye;Me<H.length;Me++)_e(H[Me],B,J,ie,fe)},W=H=>{if(H.shapeFlag&6)return W(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const B=f(H.anchor||H.el),J=B&&B[V1];return J?f(J):B};let ce=!1;const me=(H,B,J)=>{H==null?B._vnode&&_e(B._vnode,null,null,!0):m(B._vnode||null,H,B,null,null,null,J),B._vnode=H,ce||(ce=!0,B0(),_1(),ce=!1)},Ce={p:m,um:_e,m:Z,r:Te,mt:X,mc:R,pc:Y,pbc:M,n:W,o:t};let $e,j;return{render:me,hydrate:$e,createApp:eL(me,$e)}}function dp({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Lo({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function hL(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ey(t,e,n=!1){const i=t.children,r=e.children;if(gt(i)&&gt(r))for(let a=0;a<i.length;a++){const o=i[a];let s=r[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=r[a]=no(r[a]),s.el=o.el),!n&&s.patchFlag!==-2&&ey(o,s)),s.type===ku&&(s.el=o.el)}}function pL(t){const e=t.slice(),n=[0];let i,r,a,o,s;const l=t.length;for(i=0;i<l;i++){const c=t[i];if(c!==0){if(r=n[n.length-1],t[r]<c){e[i]=r,n.push(i);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,t[n[s]]<c?a=s+1:o=s;c<t[n[a]]&&(a>0&&(e[i]=n[a-1]),n[a]=i)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=e[o];return n}function W1(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:W1(e)}function K0(t){if(t)for(let e=0;e<t.length;e++)t[e].active=!1}const mL=Symbol.for("v-scx"),gL=()=>Ct(mL);function Na(t,e){return ty(t,null,e)}const pd={};function ft(t,e,n){return ty(t,e,n)}function ty(t,e,{immediate:n,deep:i,flush:r,once:a,onTrack:o,onTrigger:s}=_n){if(e&&a){const _=e;e=(...E)=>{_(...E),L()}}const l=ii,c=_=>i===!0?_:oo(_,i===!1?1:void 0);let u,d=!1,f=!1;if(kn(t)?(u=()=>t.value,d=Tl(t)):zc(t)?(u=()=>c(t),d=!0):gt(t)?(f=!0,d=t.some(_=>zc(_)||Tl(_)),u=()=>t.map(_=>{if(kn(_))return _.value;if(zc(_))return c(_);if(wt(_))return mo(_,l,2)})):wt(t)?e?u=()=>mo(t,l,2):u=()=>(h&&h(),fr(t,l,3,[p])):u=lr,e&&i){const _=u;u=()=>oo(_())}let h,p=_=>{h=y.onStop=()=>{mo(_,l,4),h=y.onStop=void 0}},m;if(wh)if(p=lr,e?n&&fr(e,l,3,[u(),f?[]:void 0,p]):u(),r==="sync"){const _=gL();m=_.__watcherHandles||(_.__watcherHandles=[])}else return lr;let g=f?new Array(t.length).fill(pd):pd;const v=()=>{if(!(!y.active||!y.dirty))if(e){const _=y.run();(i||d||(f?_.some((E,R)=>bo(E,g[R])):bo(_,g)))&&(h&&h(),fr(e,l,3,[_,g===pd?void 0:f&&g[0]===pd?[]:g,p]),g=_)}else y.run()};v.allowRecurse=!!e;let b;r==="sync"?b=v:r==="post"?b=()=>Ii(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),b=()=>jv(v));const y=new kv(u,lr,b),w=aI(),L=()=>{y.stop(),w&&Lv(w.effects,y)};return e?n?v():g=y.run():r==="post"?Ii(y.run.bind(y),l&&l.suspense):y.run(),m&&m.push(L),L}function vL(t,e,n){const i=this.proxy,r=Nn(t)?t.includes(".")?G1(i,t):()=>i[t]:t.bind(i,i);let a;wt(e)?a=e:(a=e.handler,n=e);const o=Uu(this),s=ty(r,a.bind(i),n);return o(),s}function G1(t,e){const n=e.split(".");return()=>{let i=t;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function oo(t,e=1/0,n){if(e<=0||!dn(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,kn(t))oo(t.value,e,n);else if(gt(t))for(let i=0;i<t.length;i++)oo(t[i],e,n);else if(Ww(t)||ml(t))t.forEach(i=>{oo(i,e,n)});else if(Xw(t)){for(const i in t)oo(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&oo(t[i],e,n)}return t}const yL=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${nr(e)}Modifiers`]||t[`${So(e)}Modifiers`];function bL(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||_n;let r=n;const a=e.startsWith("update:"),o=a&&yL(i,e.slice(7));o&&(o.trim&&(r=n.map(u=>Nn(u)?u.trim():u)),o.number&&(r=n.map(QD)));let s,l=i[s=op(e)]||i[s=op(nr(e))];!l&&a&&(l=i[s=op(So(e))]),l&&fr(l,t,6,r);const c=i[s+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,fr(c,t,6,r)}}function j1(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(r!==void 0)return r;const a=t.emits;let o={},s=!1;if(!wt(t)){const l=c=>{const u=j1(c,e,!0);u&&(s=!0,Yn(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(dn(t)&&i.set(t,null),null):(gt(a)?a.forEach(l=>o[l]=null):Yn(o,a),dn(t)&&i.set(t,o),o)}function xh(t,e){return!t||!dh(e)?!1:(e=e.slice(2).replace(/Once$/,""),Yt(t,e[0].toLowerCase()+e.slice(1))||Yt(t,So(e))||Yt(t,e))}function fp(t){const{type:e,vnode:n,proxy:i,withProxy:r,propsOptions:[a],slots:o,attrs:s,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:m}=t,g=wf(t);let v,b;try{if(n.shapeFlag&4){const w=r||i,L=w;v=Wr(c.call(L,w,u,d,h,f,p)),b=s}else{const w=e;v=Wr(w.length>1?w(d,{attrs:s,slots:o,emit:l}):w(d,null)),b=e.props?s:_L(s)}}catch(w){Xc.length=0,mh(w,t,1),v=x(ki)}let y=v;if(b&&m!==!1){const w=Object.keys(b),{shapeFlag:L}=y;w.length&&L&7&&(a&&w.some(Iv)&&(b=xL(b,a)),y=Cr(y,b,!1,!0))}return n.dirs&&(y=Cr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),v=y,wf(g),v}const _L=t=>{let e;for(const n in t)(n==="class"||n==="style"||dh(n))&&((e||(e={}))[n]=t[n]);return e},xL=(t,e)=>{const n={};for(const i in t)(!Iv(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function SL(t,e,n){const{props:i,children:r,component:a}=t,{props:o,children:s,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Q0(i,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(o[f]!==i[f]&&!xh(c,f))return!0}}}else return(r||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?Q0(i,o,c):!0:!!o;return!1}function Q0(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(e[a]!==t[a]&&!xh(n,a))return!0}return!1}function wL({vnode:t,parent:e},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=e.vnode).el=n,e=e.parent;else break}}const ML=t=>t.__isSuspense;function EL(t,e){e&&e.pendingBranch?gt(t)?e.effects.push(...t):e.effects.push(t):OI(t)}const Mt=Symbol.for("v-fgt"),ku=Symbol.for("v-txt"),ki=Symbol.for("v-cmt"),hp=Symbol.for("v-stc"),Xc=[];let $i=null;function Ve(t=!1){Xc.push($i=t?null:[])}function TL(){Xc.pop(),$i=Xc[Xc.length-1]||null}let du=1;function Z0(t){du+=t,t<0&&$i&&($i.hasOnce=!0)}function X1(t){return t.dynamicChildren=du>0?$i||pl:null,TL(),du>0&&$i&&$i.push(t),t}function St(t,e,n,i,r,a){return X1(nt(t,e,n,i,r,a,!0))}function Wt(t,e,n,i,r){return X1(x(t,e,n,i,r,!0))}function Ef(t){return t?t.__v_isVNode===!0:!1}function Yo(t,e){return t.type===e.type&&t.key===e.key}const Y1=({key:t})=>t??null,nf=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Nn(t)||kn(t)||wt(t)?{i:ei,r:t,k:e,f:!!n}:t:null);function nt(t,e=null,n=null,i=0,r=null,a=t===Mt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Y1(e),ref:e&&nf(e),scopeId:gh,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ei};return s?(ny(l,n),a&128&&t.normalize(l)):n&&(l.shapeFlag|=Nn(n)?8:16),du>0&&!o&&$i&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&$i.push(l),l}const x=AL;function AL(t,e=null,n=null,i=0,r=null,a=!1){if((!t||t===A1)&&(t=ki),Ef(t)){const s=Cr(t,e,!0);return n&&ny(s,n),du>0&&!a&&$i&&(s.shapeFlag&6?$i[$i.indexOf(t)]=s:$i.push(s)),s.patchFlag=-2,s}if(UL(t)&&(t=t.__vccOpts),e){e=CL(e);let{class:s,style:l}=e;s&&!Nn(s)&&(e.class=fi(s)),dn(l)&&(d1(l)&&!gt(l)&&(l=Yn({},l)),e.style=au(l))}const o=Nn(t)?1:ML(t)?128:sL(t)?64:dn(t)?4:wt(t)?2:0;return nt(t,e,n,i,r,o,a,!0)}function CL(t){return t?d1(t)||L1(t)?Yn({},t):t:null}function Cr(t,e,n=!1,i=!1){const{props:r,ref:a,patchFlag:o,children:s,transition:l}=t,c=e?Ye(r||{},e):r,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Y1(c),ref:e&&e.ref?n&&a?gt(a)?a.concat(nf(e)):[a,nf(e)]:nf(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Mt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Cr(t.ssContent),ssFallback:t.ssFallback&&Cr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&Al(u,l.clone(u)),u}function Be(t=" ",e=0){return x(ku,null,t,e)}function Ft(t="",e=!1){return e?(Ve(),Wt(ki,null,t)):x(ki,null,t)}function Wr(t){return t==null||typeof t=="boolean"?x(ki):gt(t)?x(Mt,null,t.slice()):typeof t=="object"?no(t):x(ku,null,String(t))}function no(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Cr(t)}function ny(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(gt(e))n=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),ny(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!L1(e)?e._ctx=ei:r===3&&ei&&(ei.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else wt(e)?(e={default:e,_ctx:ei},n=32):(e=String(e),i&64?(n=16,e=[Be(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ye(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=fi([e.class,i.class]));else if(r==="style")e.style=au([e.style,i.style]);else if(dh(r)){const a=e[r],o=i[r];o&&a!==o&&!(gt(a)&&a.includes(o))&&(e[r]=a?[].concat(a,o):o)}else r!==""&&(e[r]=i[r])}return e}function Br(t,e,n,i=null){fr(t,e,7,[n,i])}const PL=R1();let RL=0;function DL(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||PL,a={uid:RL++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new $w(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:N1(i,r),emitsOptions:j1(i,r),emit:null,emitted:null,propsDefaults:_n,inheritAttrs:i.inheritAttrs,ctx:_n,data:_n,props:_n,attrs:_n,slots:_n,refs:_n,setupState:_n,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=bL.bind(null,a),t.ce&&t.ce(a),a}let ii=null;const Sh=()=>ii||ei;let Tf,Gm;{const t=qw(),e=(n,i)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(i),a=>{r.length>1?r.forEach(o=>o(a)):r[0](a)}};Tf=e("__VUE_INSTANCE_SETTERS__",n=>ii=n),Gm=e("__VUE_SSR_SETTERS__",n=>wh=n)}const Uu=t=>{const e=ii;return Tf(t),t.scope.on(),()=>{t.scope.off(),Tf(e)}},$0=()=>{ii&&ii.scope.off(),Tf(null)};function q1(t){return t.vnode.shapeFlag&4}let wh=!1;function IL(t,e=!1,n=!1){e&&Gm(e);const{props:i,children:r}=t.vnode,a=q1(t);tL(t,i,a,e),aL(t,r,n);const o=a?LL(t,e):void 0;return e&&Gm(!1),o}function LL(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,YI);const{setup:i}=n;if(i){const r=t.setupContext=i.length>1?NL(t):null,a=Uu(t);wo();const o=mo(i,t,0,[t.props,r]);if(Mo(),a(),Gw(o)){if(o.then($0,$0),e)return o.then(s=>{J0(t,s,e)}).catch(s=>{mh(s,t,0)});t.asyncDep=o}else J0(t,o,e)}else K1(t,e)}function J0(t,e,n){wt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:dn(e)&&(t.setupState=g1(e)),K1(t,n)}let eb;function K1(t,e,n){const i=t.type;if(!t.render){if(!e&&eb&&!i.render){const r=i.template||$v(t).template;if(r){const{isCustomElement:a,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=i,c=Yn(Yn({isCustomElement:a,delimiters:s},o),l);i.render=eb(r,c)}}t.render=i.render||lr}{const r=Uu(t);wo();try{qI(t)}finally{Mo(),r()}}}const OL={get(t,e){return Wi(t,"get",""),t[e]}};function NL(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,OL),slots:t.slots,emit:t.emit,expose:e}}function Mh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(g1(f1(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Gc)return Gc[n](t)},has(e,n){return n in e||n in Gc}})):t.proxy}function kL(t,e=!0){return wt(t)?t.displayName||t.name:t.name||e&&t.__name}function UL(t){return wt(t)&&"__vccOpts"in t}const q=(t,e)=>TI(t,e,wh);function Cn(t,e,n){const i=arguments.length;return i===2?dn(e)&&!gt(e)?Ef(e)?x(t,null,[e]):x(t,e):x(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ef(n)&&(n=[n]),x(t,e,n))}const FL="3.4.38";/**
* @vue/runtime-dom v3.4.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const BL="http://www.w3.org/2000/svg",VL="http://www.w3.org/1998/Math/MathML",ba=typeof document<"u"?document:null,tb=ba&&ba.createElement("template"),HL={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e==="svg"?ba.createElementNS(BL,t):e==="mathml"?ba.createElementNS(VL,t):n?ba.createElement(t,{is:n}):ba.createElement(t);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>ba.createTextNode(t),createComment:t=>ba.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ba.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,a){const o=n?n.previousSibling:e.lastChild;if(r&&(r===a||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===a||!(r=r.nextSibling)););else{tb.innerHTML=i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t;const s=tb.content;if(i==="svg"||i==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},za="transition",vc="animation",Cl=Symbol("_vtc"),Ca=(t,{slots:e})=>Cn(UI,Z1(t),e);Ca.displayName="Transition";const Q1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},zL=Ca.props=Yn({},w1,Q1),Oo=(t,e=[])=>{gt(t)?t.forEach(n=>n(...e)):t&&t(...e)},nb=t=>t?gt(t)?t.some(e=>e.length>1):t.length>1:!1;function Z1(t){const e={};for(const O in t)O in Q1||(e[O]=t[O]);if(t.css===!1)return e;const{name:n="v",type:i,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=WL(r),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:L,onBeforeAppear:_=v,onAppear:E=b,onAppearCancelled:R=y}=e,S=(O,V,X)=>{$a(O,V?u:s),$a(O,V?c:o),X&&X()},M=(O,V)=>{O._isLeaving=!1,$a(O,d),$a(O,h),$a(O,f),V&&V()},D=O=>(V,X)=>{const K=O?E:b,z=()=>S(V,O,X);Oo(K,[V,z]),ib(()=>{$a(V,O?l:a),ga(V,O?u:s),nb(K)||rb(V,i,m,z)})};return Yn(e,{onBeforeEnter(O){Oo(v,[O]),ga(O,a),ga(O,o)},onBeforeAppear(O){Oo(_,[O]),ga(O,l),ga(O,c)},onEnter:D(!1),onAppear:D(!0),onLeave(O,V){O._isLeaving=!0;const X=()=>M(O,V);ga(O,d),ga(O,f),J1(),ib(()=>{O._isLeaving&&($a(O,d),ga(O,h),nb(w)||rb(O,i,g,X))}),Oo(w,[O,X])},onEnterCancelled(O){S(O,!1),Oo(y,[O])},onAppearCancelled(O){S(O,!0),Oo(R,[O])},onLeaveCancelled(O){M(O),Oo(L,[O])}})}function WL(t){if(t==null)return null;if(dn(t))return[pp(t.enter),pp(t.leave)];{const e=pp(t);return[e,e]}}function pp(t){return ZD(t)}function ga(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Cl]||(t[Cl]=new Set)).add(e)}function $a(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[Cl];n&&(n.delete(e),n.size||(t[Cl]=void 0))}function ib(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let GL=0;function rb(t,e,n,i){const r=t._endId=++GL,a=()=>{r===t._endId&&i()};if(n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=$1(t,e);if(!o)return i();const c=o+"end";let u=0;const d=()=>{t.removeEventListener(c,f),a()},f=h=>{h.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),t.addEventListener(c,f)}function $1(t,e){const n=window.getComputedStyle(t),i=p=>(n[p]||"").split(", "),r=i(`${za}Delay`),a=i(`${za}Duration`),o=ab(r,a),s=i(`${vc}Delay`),l=i(`${vc}Duration`),c=ab(s,l);let u=null,d=0,f=0;e===za?o>0&&(u=za,d=o,f=a.length):e===vc?c>0&&(u=vc,d=c,f=l.length):(d=Math.max(o,c),u=d>0?o>c?za:vc:null,f=u?u===za?a.length:l.length:0);const h=u===za&&/\b(transform|all)(,|$)/.test(i(`${za}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function ab(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>ob(n)+ob(t[i])))}function ob(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function J1(){return document.body.offsetHeight}function jL(t,e,n){const i=t[Cl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Af=Symbol("_vod"),eM=Symbol("_vsh"),vs={beforeMount(t,{value:e},{transition:n}){t[Af]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):yc(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),yc(t,!0),i.enter(t)):i.leave(t,()=>{yc(t,!1)}):yc(t,e))},beforeUnmount(t,{value:e}){yc(t,e)}};function yc(t,e){t.style.display=e?t[Af]:"none",t[eM]=!e}const XL=Symbol(""),YL=/(^|;)\s*display\s*:/;function qL(t,e,n){const i=t.style,r=Nn(n);let a=!1;if(n&&!r){if(e)if(Nn(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&rf(i,s,"")}else for(const o in e)n[o]==null&&rf(i,o,"");for(const o in n)o==="display"&&(a=!0),rf(i,o,n[o])}else if(r){if(e!==n){const o=i[XL];o&&(n+=";"+o),i.cssText=n,a=YL.test(n)}}else e&&t.removeAttribute("style");Af in t&&(t[Af]=a?i.display:"",t[eM]&&(i.display="none"))}const sb=/\s*!important$/;function rf(t,e,n){if(gt(n))n.forEach(i=>rf(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=KL(t,e);sb.test(n)?t.setProperty(So(i),n.replace(sb,""),"important"):t[i]=n}}const lb=["Webkit","Moz","ms"],mp={};function KL(t,e){const n=mp[e];if(n)return n;let i=nr(e);if(i!=="filter"&&i in t)return mp[e]=i;i=La(i);for(let r=0;r<lb.length;r++){const a=lb[r]+i;if(a in t)return mp[e]=a}return e}const cb="http://www.w3.org/1999/xlink";function ub(t,e,n,i,r,a=iI(e)){i&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(cb,e.slice(6,e.length)):t.setAttributeNS(cb,e,n):n==null||a&&!Kw(n)?t.removeAttribute(e):t.setAttribute(e,a?"":xo(n)?String(n):n)}function QL(t,e,n,i){if(e==="innerHTML"||e==="textContent"){if(n==null)return;t[e]=n;return}const r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?t.getAttribute("value")||"":t.value,s=n==null?"":String(n);(o!==s||!("_value"in t))&&(t.value=s),n==null&&t.removeAttribute(e),t._value=n;return}let a=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=Kw(n):n==null&&o==="string"?(n="",a=!0):o==="number"&&(n=0,a=!0)}try{t[e]=n}catch{}a&&t.removeAttribute(e)}function ZL(t,e,n,i){t.addEventListener(e,n,i)}function $L(t,e,n,i){t.removeEventListener(e,n,i)}const db=Symbol("_vei");function JL(t,e,n,i,r=null){const a=t[db]||(t[db]={}),o=a[e];if(i&&o)o.value=i;else{const[s,l]=eO(e);if(i){const c=a[e]=iO(i,r);ZL(t,s,c,l)}else o&&($L(t,s,o,l),a[e]=void 0)}}const fb=/(?:Once|Passive|Capture)$/;function eO(t){let e;if(fb.test(t)){e={};let i;for(;i=t.match(fb);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):So(t.slice(2)),e]}let gp=0;const tO=Promise.resolve(),nO=()=>gp||(tO.then(()=>gp=0),gp=Date.now());function iO(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;fr(rO(i,n.value),e,5,[i])};return n.value=t,n.attached=nO(),n}function rO(t,e){if(gt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const hb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,aO=(t,e,n,i,r,a)=>{const o=r==="svg";e==="class"?jL(t,i,o):e==="style"?qL(t,n,i):dh(e)?Iv(e)||JL(t,e,n,i,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):oO(t,e,i,o))?(QL(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ub(t,e,i,o,a,e!=="value")):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),ub(t,e,i,o))};function oO(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&hb(e)&&wt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return hb(e)&&Nn(n)?!1:e in t}const tM=new WeakMap,nM=new WeakMap,Cf=Symbol("_moveCb"),pb=Symbol("_enterCb"),iM={name:"TransitionGroup",props:Yn({},zL,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Sh(),i=S1();let r,a;return qv(()=>{if(!r.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!dO(r[0].el,n.vnode.el,o))return;r.forEach(lO),r.forEach(cO);const s=r.filter(uO);J1(),s.forEach(l=>{const c=l.el,u=c.style;ga(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Cf]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Cf]=null,$a(c,o))};c.addEventListener("transitionend",d)})}),()=>{const o=ot(t),s=Z1(o);let l=o.tag||Mt;if(r=[],a)for(let c=0;c<a.length;c++){const u=a[c];u.el&&u.el instanceof Element&&(r.push(u),Al(u,cu(u,s,i,n)),tM.set(u,u.el.getBoundingClientRect()))}a=e.default?Xv(e.default()):[];for(let c=0;c<a.length;c++){const u=a[c];u.key!=null&&Al(u,cu(u,s,i,n))}return x(l,null,a)}}},sO=t=>delete t.mode;iM.props;const iy=iM;function lO(t){const e=t.el;e[Cf]&&e[Cf](),e[pb]&&e[pb]()}function cO(t){nM.set(t,t.el.getBoundingClientRect())}function uO(t){const e=tM.get(t),n=nM.get(t),i=e.left-n.left,r=e.top-n.top;if(i||r){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${i}px,${r}px)`,a.transitionDuration="0s",t}}function dO(t,e,n){const i=t.cloneNode(),r=t[Cl];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(i);const{hasTransform:o}=$1(i);return a.removeChild(i),o}const fO=["ctrl","shift","alt","meta"],hO={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>fO.some(n=>t[`${n}Key`]&&!e.includes(n))},vp=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=(r,...a)=>{for(let o=0;o<e.length;o++){const s=hO[e[o]];if(s&&s(r,e))return}return t(r,...a)})},pO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mO=(t,e)=>{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=r=>{if(!("key"in r))return;const a=So(r.key);if(e.some(o=>o===a||pO[o]===a))return t(r)})},gO=Yn({patchProp:aO},HL);let mb;function vO(){return mb||(mb=dL(gO))}const yO=(...t)=>{const e=vO().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=_O(i);if(!r)return;const a=e._component;!wt(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,bO(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function bO(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function _O(t){return Nn(t)?document.querySelector(t):t}function cs(t,e){let n;function i(){n=Nv(),n.run(()=>e.length?e(()=>{n==null||n.stop(),i()}):e())}ft(t,r=>{r&&!n?i():r||(n==null||n.stop(),n=void 0)},{immediate:!0}),pr(()=>{n==null||n.stop()})}const un=typeof window<"u",ry=un&&"IntersectionObserver"in window,xO=un&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function rM(t,e,n){const i=e.length-1;if(i<0)return t===void 0?n:t;for(let r=0;r<i;r++){if(t==null)return n;t=t[e[r]]}return t==null||t[e[i]]===void 0?n:t[e[i]]}function Eh(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime()||t!==Object(t)||e!==Object(e))return!1;const n=Object.keys(t);return n.length!==Object.keys(e).length?!1:n.every(i=>Eh(t[i],e[i]))}function jm(t,e,n){return t==null||!e||typeof e!="string"?n:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),rM(t,e.split("."),n))}function bc(t,e,n){if(e===!0)return t===void 0?n:t;if(e==null||typeof e=="boolean")return n;if(t!==Object(t)){if(typeof e!="function")return n;const r=e(t,n);return typeof r>"u"?n:r}if(typeof e=="string")return jm(t,e,n);if(Array.isArray(e))return rM(t,e,n);if(typeof e!="function")return n;const i=e(t,n);return typeof i>"u"?n:i}function aM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(n,i)=>e+i)}function _t(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Pf(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function ay(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const gb=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function oM(t){return Object.keys(t)}function yp(t,e){return e.every(n=>t.hasOwnProperty(n))}function sM(t,e){const n={},i=new Set(Object.keys(t));for(const r of e)i.has(r)&&(n[r]=t[r]);return n}function vb(t,e,n){const i=Object.create(null),r=Object.create(null);for(const a in t)e.some(o=>o instanceof RegExp?o.test(a):o===a)&&!(n!=null&&n.some(o=>o===a))?i[a]=t[a]:r[a]=t[a];return[i,r]}function Xl(t,e){const n={...t};return e.forEach(i=>delete n[i]),n}function SO(t,e){const n={};return e.forEach(i=>n[i]=t[i]),n}const lM=/^on[^a-z]/,oy=t=>lM.test(t),wO=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function MO(t){const[e,n]=vb(t,[lM]),i=Xl(e,wO),[r,a]=vb(n,["class","style","id",/^data-/]);return Object.assign(r,e),Object.assign(a,i),[r,a]}function ns(t){return t==null?[]:Array.isArray(t)?t:[t]}function Pl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(n,t))}function yb(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function bb(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function EO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let i=0;for(;i<t.length;)n.push(t.substr(i,e)),i+=e;return n}function gi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i={};for(const r in t)i[r]=t[r];for(const r in e){const a=t[r],o=e[r];if(Pf(a)&&Pf(o)){i[r]=gi(a,o,n);continue}if(Array.isArray(a)&&Array.isArray(o)&&n){i[r]=n(a,o);continue}i[r]=o}return i}function cM(t){return t.map(e=>e.type===Mt?cM(e.children):e).flat()}function is(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(is.cache.has(t))return is.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return is.cache.set(t,e),e}is.cache=new Map;function sl(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(n=>sl(t,n)).flat(1);if(e.suspense)return sl(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(n=>sl(t,n)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return sl(t,e.component.subTree).flat(1)}return[]}function sy(t){const e=mn({}),n=q(t);return Na(()=>{for(const i in n.value)e[i]=n.value[i]},{flush:"sync"}),Wv(e)}function Rf(t,e){return t.includes(e)}function uM(t){return t[2].toLowerCase()+t.slice(3)}const hr=()=>[Function,Array];function _b(t,e){return e="on"+La(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function TO(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(Array.isArray(t))for(const r of t)r(...n);else typeof t=="function"&&t(...n)}function ly(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(i=>`${i}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(n)]}function AO(t,e,n){let i,r=t.indexOf(document.activeElement);const a=e==="next"?1:-1;do r+=a,i=t[r];while((!i||i.offsetParent==null)&&r<t.length&&r>=0);return i}function dM(t,e){var i,r,a,o;const n=ly(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((i=n[0])==null||i.focus());else if(e==="first")(r=n[0])==null||r.focus();else if(e==="last")(a=n.at(-1))==null||a.focus();else if(typeof e=="number")(o=n[e])==null||o.focus();else{const s=AO(n,e);s?s.focus():dM(t,e==="next"?"first":"last")}}function CO(t,e){if(!(un&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function PO(t,e){if(!un||t===0)return e(),()=>{};const n=window.setTimeout(e,t);return()=>window.clearTimeout(n)}function Xm(){const t=At(),e=n=>{t.value=n};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:n=>t.value=n}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>ay(t.value)}),e}const fM=["top","bottom"],RO=["start","end","left","right"];function Ym(t,e){let[n,i]=t.split(" ");return i||(i=Rf(fM,n)?"start":Rf(RO,n)?"top":"center"),{side:xb(n,e),align:xb(i,e)}}function xb(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function bp(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function _p(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Sb(t){return{side:t.align,align:t.side}}function wb(t){return Rf(fM,t.side)?"y":"x"}class rs{constructor(e){let{x:n,y:i,width:r,height:a}=e;this.x=n,this.y=i,this.width=r,this.height=a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Mb(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function hM(t){return Array.isArray(t)?new rs({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function cy(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t),i=n.transform;if(i){let r,a,o,s,l;if(i.startsWith("matrix3d("))r=i.slice(9,-1).split(/, /),a=+r[0],o=+r[5],s=+r[12],l=+r[13];else if(i.startsWith("matrix("))r=i.slice(7,-1).split(/, /),a=+r[0],o=+r[3],s=+r[4],l=+r[5];else return new rs(e);const c=n.transformOrigin,u=e.x-s-(1-a)*parseFloat(c),d=e.y-l-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=a?e.width/a:t.offsetWidth+1,h=o?e.height/o:t.offsetHeight+1;return new rs({x:u,y:d,width:f,height:h})}else return new rs(e)}function Zo(t,e,n){if(typeof t.animate>"u")return{finished:Promise.resolve()};let i;try{i=t.animate(e,n)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(r=>{i.onfinish=()=>{r(i)}})),i}const af=new WeakMap;function DO(t,e){Object.keys(e).forEach(n=>{if(oy(n)){const i=uM(n),r=af.get(t);if(e[n]==null)r==null||r.forEach(a=>{const[o,s]=a;o===i&&(t.removeEventListener(i,s),r.delete(a))});else if(!r||![...r].some(a=>a[0]===i&&a[1]===e[n])){t.addEventListener(i,e[n]);const a=r||new Set;a.add([i,e[n]]),af.has(t)||af.set(t,a)}}else e[n]==null?t.removeAttribute(n):t.setAttribute(n,e[n])})}function IO(t,e){Object.keys(e).forEach(n=>{if(oy(n)){const i=uM(n),r=af.get(t);r==null||r.forEach(a=>{const[o,s]=a;o===i&&(t.removeEventListener(i,s),r.delete(a))})}else t.removeAttribute(n)})}const Ps=2.4,Eb=.2126729,Tb=.7151522,Ab=.072175,LO=.55,OO=.58,NO=.57,kO=.62,md=.03,Cb=1.45,UO=5e-4,FO=1.25,BO=1.25,Pb=.078,Rb=12.82051282051282,gd=.06,Db=.001;function Ib(t,e){const n=(t.r/255)**Ps,i=(t.g/255)**Ps,r=(t.b/255)**Ps,a=(e.r/255)**Ps,o=(e.g/255)**Ps,s=(e.b/255)**Ps;let l=n*Eb+i*Tb+r*Ab,c=a*Eb+o*Tb+s*Ab;if(l<=md&&(l+=(md-l)**Cb),c<=md&&(c+=(md-c)**Cb),Math.abs(c-l)<UO)return 0;let u;if(c>l){const d=(c**LO-l**OO)*FO;u=d<Db?0:d<Pb?d-d*Rb*gd:d-gd}else{const d=(c**kO-l**NO)*BO;u=d>-Db?0:d>-Pb?d-d*Rb*gd:d+gd}return u*100}function VO(t,e){e=Array.isArray(e)?e.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const Df=.20689655172413793,HO=t=>t>Df**3?Math.cbrt(t):t/(3*Df**2)+4/29,zO=t=>t>Df?t**3:3*Df**2*(t-4/29);function pM(t){const e=HO,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function mM(t){const e=zO,n=(t[0]+16)/116;return[e(n+t[1]/500)*.95047,e(n),e(n-t[2]/200)*1.08883]}const WO=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],GO=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,jO=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],XO=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function gM(t){const e=Array(3),n=GO,i=WO;for(let r=0;r<3;++r)e[r]=Math.round(Pl(n(i[r][0]*t[0]+i[r][1]*t[1]+i[r][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function uy(t){let{r:e,g:n,b:i}=t;const r=[0,0,0],a=XO,o=jO;e=a(e/255),n=a(n/255),i=a(i/255);for(let s=0;s<3;++s)r[s]=o[s][0]*e+o[s][1]*n+o[s][2]*i;return r}function qm(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function YO(t){return qm(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Lb=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,qO={rgb:(t,e,n,i)=>({r:t,g:e,b:n,a:i}),rgba:(t,e,n,i)=>({r:t,g:e,b:n,a:i}),hsl:(t,e,n,i)=>Ob({h:t,s:e,l:n,a:i}),hsla:(t,e,n,i)=>Ob({h:t,s:e,l:n,a:i}),hsv:(t,e,n,i)=>fu({h:t,s:e,v:n,a:i}),hsva:(t,e,n,i)=>fu({h:t,s:e,v:n,a:i})};function Zr(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Lb.test(t)){const{groups:e}=t.match(Lb),{fn:n,values:i}=e,r=i.split(/,\s*/).map(a=>a.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return qO[n](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(n=>n+n).join(""):[6,8].includes(e.length),QO(e)}else if(typeof t=="object"){if(yp(t,["r","g","b"]))return t;if(yp(t,["h","s","l"]))return fu(vM(t));if(yp(t,["h","s","v"]))return fu(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function fu(t){const{h:e,s:n,v:i,a:r}=t,a=s=>{const l=(s+e/60)%6;return i-i*n*Math.max(Math.min(l,4-l,1),0)},o=[a(5),a(3),a(1)].map(s=>Math.round(s*255));return{r:o[0],g:o[1],b:o[2],a:r}}function Ob(t){return fu(vM(t))}function vM(t){const{h:e,s:n,l:i,a:r}=t,a=i+n*Math.min(i,1-i),o=a===0?0:2-2*i/a;return{h:e,s:o,v:a,a:r}}function vd(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function KO(t){let{r:e,g:n,b:i,a:r}=t;return`#${[vd(e),vd(n),vd(i),r!==void 0?vd(Math.round(r*255)):""].join("")}`}function QO(t){t=ZO(t);let[e,n,i,r]=EO(t,2).map(a=>parseInt(a,16));return r=r===void 0?r:r/255,{r:e,g:n,b:i,a:r}}function ZO(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=yb(yb(t,6),8,"F")),t}function $O(t,e){const n=pM(uy(t));return n[0]=n[0]+e*10,gM(mM(n))}function JO(t,e){const n=pM(uy(t));return n[0]=n[0]-e*10,gM(mM(n))}function eN(t){const e=Zr(t);return uy(e)[1]}function yM(t){const e=Math.abs(Ib(Zr(0),Zr(t)));return Math.abs(Ib(Zr(16777215),Zr(t)))>Math.min(e,50)?"#fff":"#000"}function He(t,e){return n=>Object.keys(t).reduce((i,r)=>{const o=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return n&&r in n?i[r]={...o,default:n[r]}:i[r]=o,e&&!i[r].source&&(i[r].source=e),i},{})}const Nt=He({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Qn(t,e){const n=Sh();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function ia(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Qn(t).type;return is((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let bM=0,of=new WeakMap;function To(){const t=Qn("getUid");if(of.has(t))return of.get(t);{const e=bM++;return of.set(t,e),e}}To.reset=()=>{bM=0,of=new WeakMap};function tN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qn("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const Rl=Symbol.for("vuetify:defaults");function nN(t){return ke(t)}function dy(){const t=Ct(Rl);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function Yl(t,e){const n=dy(),i=ke(t),r=q(()=>{if(Ai(e==null?void 0:e.disabled))return n.value;const o=Ai(e==null?void 0:e.scoped),s=Ai(e==null?void 0:e.reset),l=Ai(e==null?void 0:e.root);if(i.value==null&&!(o||s||l))return n.value;let c=gi(i.value,{prev:n.value});if(o)return c;if(s||l){const u=Number(s||1/0);for(let d=0;d<=u&&!(!c||!("prev"in c));d++)c=c.prev;return c&&typeof l=="string"&&l in c&&(c=gi(gi(c,{prev:c}),c[l])),c}return c.prev?gi(c.prev,c):c});return ln(Rl,r),r}function iN(t,e){var n,i;return typeof((n=t.props)==null?void 0:n[e])<"u"||typeof((i=t.props)==null?void 0:i[is(e)])<"u"}function rN(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dy();const i=Qn("useDefaults");if(e=e??i.type.name??i.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=q(()=>{var l;return(l=n.value)==null?void 0:l[t._as??e]}),a=new Proxy(t,{get(l,c){var d,f,h,p,m,g,v;const u=Reflect.get(l,c);return c==="class"||c==="style"?[(d=r.value)==null?void 0:d[c],u].filter(b=>b!=null):typeof c=="string"&&!iN(i.vnode,c)?((f=r.value)==null?void 0:f[c])!==void 0?(h=r.value)==null?void 0:h[c]:((m=(p=n.value)==null?void 0:p.global)==null?void 0:m[c])!==void 0?(v=(g=n.value)==null?void 0:g.global)==null?void 0:v[c]:u:u}}),o=At();Na(()=>{if(r.value){const l=Object.entries(r.value).filter(c=>{let[u]=c;return u.startsWith(u[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function s(){const l=tN(Rl,i);ln(Rl,q(()=>o.value?gi((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:a,provideSubDefaults:s}}function ql(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=He(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(i){return sM(i,e)},t.props._as=String,t.setup=function(i,r){const a=dy();if(!a.value)return t._setup(i,r);const{props:o,provideSubDefaults:s}=rN(i,i._as??t.name,a),l=t._setup(o,r);return s(),l}}return t}function ut(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?ql:Eo)(e)}function fy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ut()({name:n??La(nr(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...Nt()},setup(i,r){let{slots:a}=r;return()=>{var o;return Cn(i.tag,{class:[t,i.class],style:i.style},(o=a.default)==null?void 0:o.call(a))}}})}function _M(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const hu="cubic-bezier(0.4, 0, 0.2, 1)",aN="cubic-bezier(0.0, 0, 0.2, 1)",oN="cubic-bezier(0.4, 0, 1, 1)";function sN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?lN(t):hy(t))return t;t=t.parentElement}return document.scrollingElement}function If(t,e){const n=[];if(e&&t&&!e.contains(t))return n;for(;t&&(hy(t)&&n.push(t),t!==e);)t=t.parentElement;return n}function hy(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function lN(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function cN(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Et(t){const e=Qn("useRender");e.render=t}function vi(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const a=Qn("useProxiedModel"),o=ke(t[e]!==void 0?t[e]:n),s=is(e),c=q(s!==e?()=>{var d,f,h,p;return t[e],!!(((d=a.vnode.props)!=null&&d.hasOwnProperty(e)||(f=a.vnode.props)!=null&&f.hasOwnProperty(s))&&((h=a.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${e}`)||(p=a.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${s}`)))}:()=>{var d,f;return t[e],!!((d=a.vnode.props)!=null&&d.hasOwnProperty(e)&&((f=a.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${e}`)))});cs(()=>!c.value,()=>{ft(()=>t[e],d=>{o.value=d})});const u=q({get(){const d=t[e];return i(c.value?d:o.value)},set(d){const f=r(d),h=ot(c.value?t[e]:o.value);h===f||i(h)===d||(o.value=f,a==null||a.emit(`update:${e}`,f))}});return Object.defineProperty(u,"externalValue",{get:()=>c.value?t[e]:o.value}),u}const uN={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Nb="$vuetify.",kb=(t,e)=>t.replace(/\{(\d+)\}/g,(n,i)=>String(e[+i])),xM=(t,e,n)=>function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];if(!i.startsWith(Nb))return kb(i,a);const s=i.replace(Nb,""),l=t.value&&n.value[t.value],c=e.value&&n.value[e.value];let u=jm(l,s,null);return u||(`${i}${t.value}`,u=jm(c,s,null)),u||(u=i),typeof u!="string"&&(u=i),kb(u,a)};function SM(t,e){return(n,i)=>new Intl.NumberFormat([t.value,e.value],i).format(n)}function xp(t,e,n){const i=vi(t,e,t[e]??n.value);return i.value=t[e]??n.value,ft(n,r=>{t[e]==null&&(i.value=n.value)}),i}function wM(t){return e=>{const n=xp(e,"locale",t.current),i=xp(e,"fallback",t.fallback),r=xp(e,"messages",t.messages);return{name:"vuetify",current:n,fallback:i,messages:r,t:xM(n,i,r),n:SM(n,i),provide:wM({current:n,fallback:i,messages:r})}}}function dN(t){const e=At((t==null?void 0:t.locale)??"en"),n=At((t==null?void 0:t.fallback)??"en"),i=ke({en:uN,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:n,messages:i,t:xM(e,n,i),n:SM(e,n),provide:wM({current:e,fallback:n,messages:i})}}const Lf=Symbol.for("vuetify:locale");function fN(t){return t.name!=null}function hN(t){const e=t!=null&&t.adapter&&fN(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:dN(t),n=mN(e,t);return{...e,...n}}function MM(){const t=Ct(Lf);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function pN(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function mN(t,e){const n=ke((e==null?void 0:e.rtl)??pN()),i=q(()=>n.value[t.current.value]??!1);return{isRtl:i,rtl:n,rtlClasses:q(()=>`v-locale--is-${i.value?"rtl":"ltr"}`)}}function Lr(){const t=Ct(Lf);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const Th={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function gN(t,e,n){const i=[];let r=[];const a=EM(t),o=TM(t),s=n??Th[e.slice(-2).toUpperCase()]??0,l=(a.getDay()-s+7)%7,c=(o.getDay()-s+7)%7;for(let u=0;u<l;u++){const d=new Date(a);d.setDate(d.getDate()-(l-u)),r.push(d)}for(let u=1;u<=o.getDate();u++){const d=new Date(t.getFullYear(),t.getMonth(),u);r.push(d),r.length===7&&(i.push(r),r=[])}for(let u=1;u<7-c;u++){const d=new Date(o);d.setDate(d.getDate()+u),r.push(d)}return r.length>0&&i.push(r),i}function vN(t,e,n){const i=n??Th[e.slice(-2).toUpperCase()]??0,r=new Date(t);for(;r.getDay()!==i;)r.setDate(r.getDate()-1);return r}function yN(t,e){const n=new Date(t),i=((Th[e.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==i;)n.setDate(n.getDate()+1);return n}function EM(t){return new Date(t.getFullYear(),t.getMonth(),1)}function TM(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function bN(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const _N=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function AM(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(_N.test(t))return bN(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const Ub=new Date(2e3,0,2);function xN(t,e){const n=e??Th[t.slice(-2).toUpperCase()]??0;return aM(7).map(i=>{const r=new Date(Ub);return r.setDate(Ub.getDate()+n+i),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(r)})}function SN(t,e,n,i){const r=AM(t)??new Date,a=i==null?void 0:i[e];if(typeof a=="function")return a(r,e,n);let o={};switch(e){case"fullDate":o={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const s=r.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(r);return`${s} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(r.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:o=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(r)}function wN(t,e){const n=t.toJsDate(e),i=n.getFullYear(),r=bb(String(n.getMonth()+1),2,"0"),a=bb(String(n.getDate()),2,"0");return`${i}-${r}-${a}`}function MN(t){const[e,n,i]=t.split("-").map(Number);return new Date(e,n-1,i)}function EN(t,e){const n=new Date(t);return n.setMinutes(n.getMinutes()+e),n}function TN(t,e){const n=new Date(t);return n.setHours(n.getHours()+e),n}function AN(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n}function CN(t,e){const n=new Date(t);return n.setDate(n.getDate()+e*7),n}function PN(t,e){const n=new Date(t);return n.setDate(1),n.setMonth(n.getMonth()+e),n}function RN(t){return t.getFullYear()}function DN(t){return t.getMonth()}function IN(t){return t.getDate()}function LN(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function ON(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function NN(t){return t.getHours()}function kN(t){return t.getMinutes()}function UN(t){return new Date(t.getFullYear(),0,1)}function FN(t){return new Date(t.getFullYear(),11,31)}function BN(t,e){return Of(t,e[0])&&zN(t,e[1])}function VN(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function Of(t,e){return t.getTime()>e.getTime()}function HN(t,e){return Of(Km(t),Km(e))}function zN(t,e){return t.getTime()<e.getTime()}function Fb(t,e){return t.getTime()===e.getTime()}function WN(t,e){return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function GN(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function jN(t,e){return t.getFullYear()===e.getFullYear()}function XN(t,e,n){const i=new Date(t),r=new Date(e);switch(n){case"years":return i.getFullYear()-r.getFullYear();case"quarters":return Math.floor((i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12)/4);case"months":return i.getMonth()-r.getMonth()+(i.getFullYear()-r.getFullYear())*12;case"weeks":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60*24));case"hours":return Math.floor((i.getTime()-r.getTime())/(1e3*60*60));case"minutes":return Math.floor((i.getTime()-r.getTime())/(1e3*60));case"seconds":return Math.floor((i.getTime()-r.getTime())/1e3);default:return i.getTime()-r.getTime()}}function YN(t,e){const n=new Date(t);return n.setHours(e),n}function qN(t,e){const n=new Date(t);return n.setMinutes(e),n}function KN(t,e){const n=new Date(t);return n.setMonth(e),n}function QN(t,e){const n=new Date(t);return n.setDate(e),n}function ZN(t,e){const n=new Date(t);return n.setFullYear(e),n}function Km(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)}function $N(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}class JN{constructor(e){this.locale=e.locale,this.formats=e.formats}date(e){return AM(e)}toJsDate(e){return e}toISO(e){return wN(this,e)}parseISO(e){return MN(e)}addMinutes(e,n){return EN(e,n)}addHours(e,n){return TN(e,n)}addDays(e,n){return AN(e,n)}addWeeks(e,n){return CN(e,n)}addMonths(e,n){return PN(e,n)}getWeekArray(e,n){return gN(e,this.locale,n?Number(n):void 0)}startOfWeek(e,n){return vN(e,this.locale,n?Number(n):void 0)}endOfWeek(e){return yN(e,this.locale)}startOfMonth(e){return EM(e)}endOfMonth(e){return TM(e)}format(e,n){return SN(e,n,this.locale,this.formats)}isEqual(e,n){return Fb(e,n)}isValid(e){return VN(e)}isWithinRange(e,n){return BN(e,n)}isAfter(e,n){return Of(e,n)}isAfterDay(e,n){return HN(e,n)}isBefore(e,n){return!Of(e,n)&&!Fb(e,n)}isSameDay(e,n){return WN(e,n)}isSameMonth(e,n){return GN(e,n)}isSameYear(e,n){return jN(e,n)}setMinutes(e,n){return qN(e,n)}setHours(e,n){return YN(e,n)}setMonth(e,n){return KN(e,n)}setDate(e,n){return QN(e,n)}setYear(e,n){return ZN(e,n)}getDiff(e,n,i){return XN(e,n,i)}getWeekdays(e){return xN(this.locale,e?Number(e):void 0)}getYear(e){return RN(e)}getMonth(e){return DN(e)}getDate(e){return IN(e)}getNextMonth(e){return LN(e)}getPreviousMonth(e){return ON(e)}getHours(e){return NN(e)}getMinutes(e){return kN(e)}startOfDay(e){return Km(e)}endOfDay(e){return $N(e)}startOfYear(e){return UN(e)}endOfYear(e){return FN(e)}}const ek=Symbol.for("vuetify:date-options"),Bb=Symbol.for("vuetify:date-adapter");function tk(t,e){const n=gi({adapter:JN,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},t);return{options:n,instance:nk(n,e)}}function nk(t,e){const n=mn(typeof t.adapter=="function"?new t.adapter({locale:t.locale[e.current.value]??e.current.value,formats:t.formats}):t.adapter);return ft(e.current,i=>{n.locale=t.locale[i]??i??n.locale}),n}const Ah=["sm","md","lg","xl","xxl"],Qm=Symbol.for("vuetify:display"),Vb={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},ik=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vb;return gi(Vb,t)};function Hb(t){return un&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function zb(t){return un&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function Wb(t){const e=un&&!t?window.navigator.userAgent:"ssr";function n(p){return!!e.match(p)}const i=n(/android/i),r=n(/iphone|ipad|ipod/i),a=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),l=n(/edge/i),c=n(/firefox/i),u=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:i,ios:r,cordova:a,electron:o,chrome:s,edge:l,firefox:c,opera:u,win:d,mac:f,linux:h,touch:xO,ssr:e==="ssr"}}function rk(t,e){const{thresholds:n,mobileBreakpoint:i}=ik(t),r=At(zb(e)),a=At(Wb(e)),o=mn({}),s=At(Hb(e));function l(){r.value=zb(),s.value=Hb()}function c(){l(),a.value=Wb()}return Na(()=>{const u=s.value<n.sm,d=s.value<n.md&&!u,f=s.value<n.lg&&!(d||u),h=s.value<n.xl&&!(f||d||u),p=s.value<n.xxl&&!(h||f||d||u),m=s.value>=n.xxl,g=u?"xs":d?"sm":f?"md":h?"lg":p?"xl":"xxl",v=typeof i=="number"?i:n[i],b=s.value<v;o.xs=u,o.sm=d,o.md=f,o.lg=h,o.xl=p,o.xxl=m,o.smAndUp=!u,o.mdAndUp=!(u||d),o.lgAndUp=!(u||d||f),o.xlAndUp=!(u||d||f||h),o.smAndDown=!(f||h||p||m),o.mdAndDown=!(h||p||m),o.lgAndDown=!(p||m),o.xlAndDown=!m,o.name=g,o.height=r.value,o.width=s.value,o.mobile=b,o.mobileBreakpoint=i,o.platform=a.value,o.thresholds=n}),un&&window.addEventListener("resize",l,{passive:!0}),{...Wv(o),update:c,ssr:!!e}}const ak=He({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function CM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();const n=Ct(Qm);if(!n)throw new Error("Could not find Vuetify display injection");const i=q(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return n.mobile.value;const a=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:n.thresholds.value[t.mobileBreakpoint];return n.width.value<a}),r=q(()=>e?{[`${e}--mobile`]:i.value}:{});return{...n,displayClasses:r,mobile:i}}const PM=Symbol.for("vuetify:goto");function RM(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function ok(t){return py(t)??(document.scrollingElement||document.body)}function py(t){return typeof t=="string"?document.querySelector(t):ay(t)}function Sp(t,e,n){if(typeof t=="number")return e&&n?-t:t;let i=py(t),r=0;for(;i;)r+=e?i.offsetLeft:i.offsetTop,i=i.offsetParent;return r}function sk(t,e){return{rtl:e.isRtl,options:gi(RM(),t)}}async function Gb(t,e,n,i){const r=n?"scrollLeft":"scrollTop",a=gi((i==null?void 0:i.options)??RM(),e),o=i==null?void 0:i.rtl.value,s=(typeof t=="number"?t:py(t))??0,l=a.container==="parent"&&s instanceof HTMLElement?s.parentElement:ok(a.container),c=typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!c)throw new TypeError(`Easing function "${a.easing}" not found.`);let u;if(typeof s=="number")u=Sp(s,n,o);else if(u=Sp(s,n,o)-Sp(l,n,o),a.layout){const p=window.getComputedStyle(s).getPropertyValue("--v-layout-top");p&&(u-=parseInt(p,10))}u+=a.offset,u=ck(l,u,!!o,!!n);const d=l[r]??0;if(u===d)return Promise.resolve(u);const f=performance.now();return new Promise(h=>requestAnimationFrame(function p(m){const v=(m-f)/a.duration,b=Math.floor(d+(u-d)*c(Pl(v,0,1)));if(l[r]=b,v>=1&&Math.abs(b-l[r])<10)return h(u);if(v>2)return h(l[r]);requestAnimationFrame(p)}))}function lk(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=Ct(PM),{isRtl:n}=Lr();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const i={...e,rtl:q(()=>e.rtl.value||n.value)};async function r(a,o){return Gb(a,gi(t,o),!1,i)}return r.horizontal=async(a,o)=>Gb(a,gi(t,o),!0,i),r}function ck(t,e,n,i){const{scrollWidth:r,scrollHeight:a}=t,[o,s]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let l,c;return i?n?(l=-(r-o),c=0):(l=0,c=r-o):(l=0,c=a+-s),Math.max(Math.min(e,c),l)}const uk={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},dk={component:t=>Cn(IM,{...t,class:"mdi"})},Ln=[String,Function,Object,Array],Zm=Symbol.for("vuetify:icons"),Ch=He({icon:{type:Ln},tag:{type:String,required:!0}},"icon"),jb=ut()({name:"VComponentIcon",props:Ch(),setup(t,e){let{slots:n}=e;return()=>{const i=t.icon;return x(t.tag,null,{default:()=>{var r;return[t.icon?x(i,null,null):(r=n.default)==null?void 0:r.call(n)]}})}}}),DM=ql({name:"VSvgIcon",inheritAttrs:!1,props:Ch(),setup(t,e){let{attrs:n}=e;return()=>x(t.tag,Ye(n,{style:null}),{default:()=>[x("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(i=>Array.isArray(i)?x("path",{d:i[0],"fill-opacity":i[1]},null):x("path",{d:i},null)):x("path",{d:t.icon},null)])]})}});ql({name:"VLigatureIcon",props:Ch(),setup(t){return()=>x(t.tag,null,{default:()=>[t.icon]})}});const IM=ql({name:"VClassIcon",props:Ch(),setup(t){return()=>x(t.tag,{class:t.icon},null)}});function fk(){return{svg:{component:DM},class:{component:IM}}}function hk(t){const e=fk(),n=(t==null?void 0:t.defaultSet)??"mdi";return n==="mdi"&&!e.mdi&&(e.mdi=dk),gi({defaultSet:n,sets:e,aliases:{...uk,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const pk=t=>{const e=Ct(Zm);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:q(()=>{var l;const i=Ai(t);if(!i)return{component:jb};let r=i;if(typeof r=="string"&&(r=r.trim(),r.startsWith("$")&&(r=(l=e.aliases)==null?void 0:l[r.slice(1)])),Array.isArray(r))return{component:DM,icon:r};if(typeof r!="string")return{component:jb,icon:r};const a=Object.keys(e.sets).find(c=>typeof r=="string"&&r.startsWith(`${c}:`)),o=a?r.slice(a.length+1):r;return{component:e.sets[a??e.defaultSet].component,icon:o}})}},Nf=Symbol.for("vuetify:theme"),ti=He({theme:String},"theme");function Xb(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function mk(){var i,r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xb();const e=Xb();if(!t)return{...e,isDisabled:!0};const n={};for(const[a,o]of Object.entries(t.themes??{})){const s=o.dark||a==="dark"?(i=e.themes)==null?void 0:i.dark:(r=e.themes)==null?void 0:r.light;n[a]=gi(s,o)}return gi(e,{...t,themes:n})}function gk(t){const e=mk(t),n=ke(e.defaultTheme),i=ke(e.themes),r=q(()=>{const u={};for(const[d,f]of Object.entries(i.value)){const h=u[d]={...f,colors:{...f.colors}};if(e.variations)for(const p of e.variations.colors){const m=h.colors[p];if(m)for(const g of["lighten","darken"]){const v=g==="lighten"?$O:JO;for(const b of aM(e.variations[g],1))h.colors[`${p}-${g}-${b}`]=KO(v(Zr(m),b))}}for(const p of Object.keys(h.colors)){if(/^on-[a-z]/.test(p)||h.colors[`on-${p}`])continue;const m=`on-${p}`,g=Zr(h.colors[p]);h.colors[m]=yM(g)}}return u}),a=q(()=>r.value[n.value]),o=q(()=>{var p;const u=[];(p=a.value)!=null&&p.dark&&No(u,":root",["color-scheme: dark"]),No(u,":root",Yb(a.value));for(const[m,g]of Object.entries(r.value))No(u,`.v-theme--${m}`,[`color-scheme: ${g.dark?"dark":"normal"}`,...Yb(g)]);const d=[],f=[],h=new Set(Object.values(r.value).flatMap(m=>Object.keys(m.colors)));for(const m of h)/^on-[a-z]/.test(m)?No(f,`.${m}`,[`color: rgb(var(--v-theme-${m})) !important`]):(No(d,`.bg-${m}`,[`--v-theme-overlay-multiplier: var(--v-theme-${m}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${m})) !important`,`color: rgb(var(--v-theme-on-${m})) !important`]),No(f,`.text-${m}`,[`color: rgb(var(--v-theme-${m})) !important`]),No(f,`.border-${m}`,[`--v-border-color: var(--v-theme-${m})`]));return u.push(...d,...f),u.map((m,g)=>g===0?m:`    ${m}`).join("")});function s(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function l(u){if(e.isDisabled)return;const d=u._context.provides.usehead;if(d)if(d.push){const h=d.push(s);un&&ft(o,()=>{h.patch(s)})}else un?(d.addHeadObjs(q(s)),Na(()=>d.updateDOM())):d.addHeadObjs(s());else{let p=function(){if(typeof document<"u"&&!h){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",e.cspNonce&&m.setAttribute("nonce",e.cspNonce),h=m,document.head.appendChild(h)}h&&(h.innerHTML=o.value)};var f=p;let h=un?document.getElementById("vuetify-theme-stylesheet"):null;un?ft(o,p,{immediate:!0}):p()}}const c=q(()=>e.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:e.isDisabled,name:n,themes:i,current:a,computedThemes:r,themeClasses:c,styles:o,global:{name:n,current:a}}}function ai(t){Qn("provideTheme");const e=Ct(Nf,null);if(!e)throw new Error("Could not find Vuetify theme injection");const n=q(()=>t.theme??e.name.value),i=q(()=>e.themes.value[n.value]),r=q(()=>e.isDisabled?void 0:`v-theme--${n.value}`),a={...e,name:n,current:i,themeClasses:r};return ln(Nf,a),a}function No(t,e,n){t.push(`${e} {
`,...n.map(i=>`  ${i};
`),`}
`)}function Yb(t){const e=t.dark?2:1,n=t.dark?1:2,i=[];for(const[r,a]of Object.entries(t.colors)){const o=Zr(a);i.push(`--v-theme-${r}: ${o.r},${o.g},${o.b}`),r.startsWith("on-")||i.push(`--v-theme-${r}-overlay-multiplier: ${eN(a)>.18?e:n}`)}for(const[r,a]of Object.entries(t.variables)){const o=typeof a=="string"&&a.startsWith("#")?Zr(a):void 0,s=o?`${o.r}, ${o.g}, ${o.b}`:void 0;i.push(`--v-${r}: ${s??a}`)}return i}function kf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Xm(),i=ke();if(un){const r=new ResizeObserver(a=>{a.length&&(e==="content"?i.value=a[0].contentRect:i.value=a[0].target.getBoundingClientRect())});Ir(()=>{r.disconnect()}),ft(()=>n.el,(a,o)=>{o&&(r.unobserve(o),i.value=void 0),a&&r.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:jl(i)}}const Uf=Symbol.for("vuetify:layout"),vk=Symbol.for("vuetify:layout-item"),qb=1e3,yk=He({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout");function LM(){const t=Ct(Uf);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}const bk=(t,e,n,i)=>{let r={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...r}}];for(const o of t){const s=e.get(o),l=n.get(o),c=i.get(o);if(!s||!l||!c)continue;const u={...r,[s.value]:parseInt(r[s.value],10)+(c.value?parseInt(l.value,10):0)};a.push({id:o,layer:u}),r=u}return a};function _k(t){const e=Ct(Uf,null),n=q(()=>e?e.rootZIndex.value-100:qb),i=ke([]),r=mn(new Map),a=mn(new Map),o=mn(new Map),s=mn(new Map),l=mn(new Map),{resizeRef:c,contentRect:u}=kf(),d=q(()=>{const _=new Map,E=t.overlaps??[];for(const R of E.filter(S=>S.includes(":"))){const[S,M]=R.split(":");if(!i.value.includes(S)||!i.value.includes(M))continue;const D=r.get(S),O=r.get(M),V=a.get(S),X=a.get(M);!D||!O||!V||!X||(_.set(M,{position:D.value,amount:parseInt(V.value,10)}),_.set(S,{position:O.value,amount:-parseInt(X.value,10)}))}return _}),f=q(()=>{const _=[...new Set([...o.values()].map(R=>R.value))].sort((R,S)=>R-S),E=[];for(const R of _){const S=i.value.filter(M=>{var D;return((D=o.get(M))==null?void 0:D.value)===R});E.push(...S)}return bk(E,r,a,s)}),h=q(()=>!Array.from(l.values()).some(_=>_.value)),p=q(()=>f.value[f.value.length-1].layer),m=q(()=>({"--v-layout-left":_t(p.value.left),"--v-layout-right":_t(p.value.right),"--v-layout-top":_t(p.value.top),"--v-layout-bottom":_t(p.value.bottom),...h.value?void 0:{transition:"none"}})),g=q(()=>f.value.slice(1).map((_,E)=>{let{id:R}=_;const{layer:S}=f.value[E],M=a.get(R),D=r.get(R);return{id:R,...S,size:Number(M.value),position:D.value}})),v=_=>g.value.find(E=>E.id===_),b=Qn("createLayout"),y=At(!1);ir(()=>{y.value=!0}),ln(Uf,{register:(_,E)=>{let{id:R,order:S,position:M,layoutSize:D,elementSize:O,active:V,disableTransitions:X,absolute:K}=E;o.set(R,S),r.set(R,M),a.set(R,D),s.set(R,V),X&&l.set(R,X);const Q=sl(vk,b==null?void 0:b.vnode).indexOf(_);Q>-1?i.value.splice(Q,0,R):i.value.push(R);const Y=q(()=>g.value.findIndex(_e=>_e.id===R)),he=q(()=>n.value+f.value.length*2-Y.value*2),ne=q(()=>{const _e=M.value==="left"||M.value==="right",Te=M.value==="right",ee=M.value==="bottom",le=O.value??D.value,re=le===0?"%":"px",W={[M.value]:0,zIndex:he.value,transform:`translate${_e?"X":"Y"}(${(V.value?0:-(le===0?100:le))*(Te||ee?-1:1)}${re})`,position:K.value||n.value!==qb?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!y.value)return W;const ce=g.value[Y.value];if(!ce)throw new Error(`[Vuetify] Could not find layout item "${R}"`);const me=d.value.get(R);return me&&(ce[me.position]+=me.amount),{...W,height:_e?`calc(100% - ${ce.top}px - ${ce.bottom}px)`:O.value?`${O.value}px`:void 0,left:Te?void 0:`${ce.left}px`,right:Te?`${ce.right}px`:void 0,top:M.value!=="bottom"?`${ce.top}px`:void 0,bottom:M.value!=="top"?`${ce.bottom}px`:void 0,width:_e?O.value?`${O.value}px`:void 0:`calc(100% - ${ce.left}px - ${ce.right}px)`}}),Z=q(()=>({zIndex:he.value-1}));return{layoutItemStyles:ne,layoutItemScrimStyles:Z,zIndex:he}},unregister:_=>{o.delete(_),r.delete(_),a.delete(_),s.delete(_),l.delete(_),i.value=i.value.filter(E=>E!==_)},mainRect:p,mainStyles:m,getLayoutItem:v,items:g,layoutRect:u,rootZIndex:n});const w=q(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),L=q(()=>({zIndex:e?n.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:w,layoutStyles:L,getLayoutItem:v,items:g,layoutRect:u,layoutRef:c}}function OM(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...n}=t,i=gi(e,n),{aliases:r={},components:a={},directives:o={}}=i,s=nN(i.defaults),l=rk(i.display,i.ssr),c=gk(i.theme),u=hk(i.icons),d=hN(i.locale),f=tk(i.date,d),h=sk(i.goTo,d);return{install:m=>{for(const g in o)m.directive(g,o[g]);for(const g in a)m.component(g,a[g]);for(const g in r)m.component(g,ql({...r[g],name:g,aliasName:r[g].name}));if(c.install(m),m.provide(Rl,s),m.provide(Qm,l),m.provide(Nf,c),m.provide(Zm,u),m.provide(Lf,d),m.provide(ek,f.options),m.provide(Bb,f.instance),m.provide(PM,h),un&&i.ssr)if(m.$nuxt)m.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:g}=m;m.mount=function(){const v=g(...arguments);return ri(()=>l.update()),m.mount=g,v}}To.reset(),m.mixin({computed:{$vuetify(){return mn({defaults:Rs.call(this,Rl),display:Rs.call(this,Qm),theme:Rs.call(this,Nf),icons:Rs.call(this,Zm),locale:Rs.call(this,Lf),date:Rs.call(this,Bb)})}}})},defaults:s,display:l,theme:c,icons:u,locale:d,date:f,goTo:h}}const xk="3.7.0";OM.version=xk;function Rs(t){var i,r;const e=this.$,n=((i=e.parent)==null?void 0:i.provides)??((r=e.vnode.appContext)==null?void 0:r.provides);if(n&&t in n)return n[t]}const Sk=OM({theme:{defaultTheme:"dark"},date:{adapter:k2,locale:{en:hD,sv:GD}}});function wk(){return NM().__VUE_DEVTOOLS_GLOBAL_HOOK__}function NM(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mk=typeof Proxy=="function",Ek="devtools-plugin:setup",Tk="plugin:settings:set";let Ds,$m;function Ak(){var t;return Ds!==void 0||(typeof window<"u"&&window.performance?(Ds=!0,$m=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(Ds=!0,$m=globalThis.perf_hooks.performance):Ds=!1),Ds}function Ck(){return Ak()?$m.now():Date.now()}class Pk{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const i={};if(e.settings)for(const o in e.settings){const s=e.settings[o];i[o]=s.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},i);try{const o=localStorage.getItem(r),s=JSON.parse(o);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(r,JSON.stringify(o))}catch{}a=o},now(){return Ck()}},n&&n.on(Tk,(o,s)=>{o===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(o,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:s,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Rk(t,e){const n=t,i=NM(),r=wk(),a=Mk&&n.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))r.emit(Ek,t,e);else{const o=a?new Pk(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*!
  * vue-router v4.4.3
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const nl=typeof document<"u";function Dk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const nn=Object.assign;function wp(t,e){const n={};for(const i in e){const r=e[i];n[i]=Pr(r)?r.map(t):t(r)}return n}const Yc=()=>{},Pr=Array.isArray,kM=/#/g,Ik=/&/g,Lk=/\//g,Ok=/=/g,Nk=/\?/g,UM=/\+/g,kk=/%5B/g,Uk=/%5D/g,FM=/%5E/g,Fk=/%60/g,BM=/%7B/g,Bk=/%7C/g,VM=/%7D/g,Vk=/%20/g;function my(t){return encodeURI(""+t).replace(Bk,"|").replace(kk,"[").replace(Uk,"]")}function Hk(t){return my(t).replace(BM,"{").replace(VM,"}").replace(FM,"^")}function Jm(t){return my(t).replace(UM,"%2B").replace(Vk,"+").replace(kM,"%23").replace(Ik,"%26").replace(Fk,"`").replace(BM,"{").replace(VM,"}").replace(FM,"^")}function zk(t){return Jm(t).replace(Ok,"%3D")}function Wk(t){return my(t).replace(kM,"%23").replace(Nk,"%3F")}function Gk(t){return t==null?"":Wk(t).replace(Lk,"%2F")}function pu(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const jk=/\/$/,Xk=t=>t.replace(jk,"");function Mp(t,e,n="/"){let i,r={},a="",o="";const s=e.indexOf("#");let l=e.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(i=e.slice(0,l),a=e.slice(l+1,s>-1?s:e.length),r=t(a)),s>-1&&(i=i||e.slice(0,s),o=e.slice(s,e.length)),i=Qk(i??e,n),{fullPath:i+(a&&"?")+a+o,path:i,query:r,hash:pu(o)}}function Yk(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Kb(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function qk(t,e,n){const i=e.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Dl(e.matched[i],n.matched[r])&&HM(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Dl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function HM(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Kk(t[n],e[n]))return!1;return!0}function Kk(t,e){return Pr(t)?Qb(t,e):Pr(e)?Qb(e,t):t===e}function Qb(t,e){return Pr(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function Qk(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let a=n.length-1,o,s;for(o=0;o<i.length;o++)if(s=i[o],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+i.slice(o).join("/")}const Wa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var mu;(function(t){t.pop="pop",t.push="push"})(mu||(mu={}));var qc;(function(t){t.back="back",t.forward="forward",t.unknown=""})(qc||(qc={}));function Zk(t){if(!t)if(nl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Xk(t)}const $k=/^[^#]+#/;function Jk(t,e){return t.replace($k,"#")+e}function e3(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const Ph=()=>({left:window.scrollX,top:window.scrollY});function t3(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=e3(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Zb(t,e){return(history.state?history.state.position-e:-1)+t}const eg=new Map;function n3(t,e){eg.set(t,e)}function i3(t){const e=eg.get(t);return eg.delete(t),e}let r3=()=>location.protocol+"//"+location.host;function zM(t,e){const{pathname:n,search:i,hash:r}=e,a=t.indexOf("#");if(a>-1){let s=r.includes(t.slice(a))?t.slice(a).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),Kb(l,"")}return Kb(n,t)+i+r}function a3(t,e,n,i){let r=[],a=[],o=null;const s=({state:f})=>{const h=zM(t,location),p=n.value,m=e.value;let g=0;if(f){if(n.value=h,e.value=f,o&&o===p){o=null;return}g=m?f.position-m.position:0}else i(h);r.forEach(v=>{v(n.value,p,{delta:g,type:mu.pop,direction:g?g>0?qc.forward:qc.back:qc.unknown})})};function l(){o=n.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return a.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(nn({},f.state,{scroll:Ph()}),"")}function d(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function $b(t,e,n,i=!1,r=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:r?Ph():null}}function o3(t){const{history:e,location:n}=window,i={value:zM(t,n)},r={value:e.state};r.value||a(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:r3()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function o(l,c){const u=nn({},e.state,$b(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});a(l,u,!0),i.value=l}function s(l,c){const u=nn({},r.value,e.state,{forward:l,scroll:Ph()});a(u.current,u,!0);const d=nn({},$b(i.value,l,null),{position:u.position+1},c);a(l,d,!1),i.value=l}return{location:i,state:r,push:s,replace:o}}function s3(t){t=Zk(t);const e=o3(t),n=a3(t,e.state,e.location,e.replace);function i(a,o=!0){o||n.pauseListeners(),history.go(a)}const r=nn({location:"",base:t,go:i,createHref:Jk.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function l3(t){return typeof t=="string"||t&&typeof t=="object"}function WM(t){return typeof t=="string"||typeof t=="symbol"}const GM=Symbol("");var Jb;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Jb||(Jb={}));function Il(t,e){return nn(new Error,{type:t,[GM]:!0},e)}function la(t,e){return t instanceof Error&&GM in t&&(e==null||!!(t.type&e))}const e_="[^/]+?",c3={sensitive:!1,strict:!1,start:!0,end:!0},u3=/[.+*?^${}()[\]/\\]/g;function d3(t,e){const n=nn({},c3,e),i=[];let r=n.start?"^":"";const a=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(r+="/"),r+=f.value.replace(u3,"\\$&"),h+=40;else if(f.type===1){const{value:p,repeatable:m,optional:g,regexp:v}=f;a.push({name:p,repeatable:m,optional:g});const b=v||e_;if(b!==e_){h+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+w.message)}}let y=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(y=g&&c.length<2?`(?:/${y})`:"/"+y),g&&(y+="?"),r+=y,h+=20,g&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}u.push(h)}i.push(u)}if(n.strict&&n.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function s(c){const u=c.match(o),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",p=a[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(c){let u="",d=!1;for(const f of t){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:m,optional:g}=h,v=p in c?c[p]:"";if(Pr(v)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=Pr(v)?v.join("/"):v;if(!b)if(g)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);u+=b}}return u||"/"}return{re:o,score:i,keys:a,parse:s,stringify:l}}function f3(t,e){let n=0;for(;n<t.length&&n<e.length;){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function jM(t,e){let n=0;const i=t.score,r=e.score;for(;n<i.length&&n<r.length;){const a=f3(i[n],r[n]);if(a)return a;n++}if(Math.abs(r.length-i.length)===1){if(t_(i))return 1;if(t_(r))return-1}return r.length-i.length}function t_(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const h3={type:0,value:""},p3=/[a-zA-Z0-9_]/;function m3(t){if(!t)return[[]];if(t==="/")return[[h3]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,i=n;const r=[];let a;function o(){a&&r.push(a),a=[]}let s=0,l,c="",u="";function d(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s<t.length;){if(l=t[s++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),o()):l===":"?(d(),n=1):f();break;case 4:f(),n=i;break;case 1:l==="("?n=2:p3.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),d(),o(),r}function g3(t,e,n){const i=d3(m3(t.path),n),r=nn(i,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function v3(t,e){const n=[],i=new Map;e=r_({strict:!1,end:!0,sensitive:!1},e);function r(d){return i.get(d)}function a(d,f,h){const p=!h,m=y3(d);m.aliasOf=h&&h.record;const g=r_(e,d),v=[m];if("alias"in d){const w=typeof d.alias=="string"?[d.alias]:d.alias;for(const L of w)v.push(nn({},m,{components:h?h.record.components:m.components,path:L,aliasOf:h?h.record:m}))}let b,y;for(const w of v){const{path:L}=w;if(f&&L[0]!=="/"){const _=f.record.path,E=_[_.length-1]==="/"?"":"/";w.path=f.record.path+(L&&E+L)}if(b=g3(w,f,g),h?h.alias.push(b):(y=y||b,y!==b&&y.alias.push(b),p&&d.name&&!i_(b)&&o(d.name)),XM(b)&&l(b),m.children){const _=m.children;for(let E=0;E<_.length;E++)a(_[E],b,h&&h.children[E])}h=h||b}return y?()=>{o(y)}:Yc}function o(d){if(WM(d)){const f=i.get(d);f&&(i.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function s(){return n}function l(d){const f=x3(d,n);n.splice(f,0,d),d.record.name&&!i_(d)&&i.set(d.record.name,d)}function c(d,f){let h,p={},m,g;if("name"in d&&d.name){if(h=i.get(d.name),!h)throw Il(1,{location:d});g=h.record.name,p=nn(n_(f.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),d.params&&n_(d.params,h.keys.map(y=>y.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=n.find(y=>y.re.test(m)),h&&(p=h.parse(m),g=h.record.name);else{if(h=f.name?i.get(f.name):n.find(y=>y.re.test(f.path)),!h)throw Il(1,{location:d,currentLocation:f});g=h.record.name,p=nn({},f.params,d.params),m=h.stringify(p)}const v=[];let b=h;for(;b;)v.unshift(b.record),b=b.parent;return{name:g,path:m,params:p,matched:v,meta:_3(v)}}t.forEach(d=>a(d));function u(){n.length=0,i.clear()}return{addRoute:a,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:r}}function n_(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function y3(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:b3(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function b3(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function i_(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function _3(t){return t.reduce((e,n)=>nn(e,n.meta),{})}function r_(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function x3(t,e){let n=0,i=e.length;for(;n!==i;){const a=n+i>>1;jM(t,e[a])<0?i=a:n=a+1}const r=S3(t);return r&&(i=e.lastIndexOf(r,i-1)),i}function S3(t){let e=t;for(;e=e.parent;)if(XM(e)&&jM(t,e)===0)return e}function XM({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function w3(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<i.length;++r){const a=i[r].replace(UM," "),o=a.indexOf("="),s=pu(o<0?a:a.slice(0,o)),l=o<0?null:pu(a.slice(o+1));if(s in e){let c=e[s];Pr(c)||(c=e[s]=[c]),c.push(l)}else e[s]=l}return e}function a_(t){let e="";for(let n in t){const i=t[n];if(n=zk(n),i==null){i!==void 0&&(e+=(e.length?"&":"")+n);continue}(Pr(i)?i.map(a=>a&&Jm(a)):[i&&Jm(i)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+n,a!=null&&(e+="="+a))})}return e}function M3(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=Pr(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const E3=Symbol(""),o_=Symbol(""),gy=Symbol(""),YM=Symbol(""),tg=Symbol("");function _c(){let t=[];function e(i){return t.push(i),()=>{const r=t.indexOf(i);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function io(t,e,n,i,r,a=o=>o()){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(Il(4,{from:n,to:e})):f instanceof Error?l(f):l3(f)?l(Il(2,{from:e,to:f})):(o&&i.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),s())},u=a(()=>t.call(i&&i.instances[r],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Ep(t,e,n,i,r=a=>a()){const a=[];for(const o of t)for(const s in o.components){let l=o.components[s];if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(T3(l)){const u=(l.__vccOpts||l)[e];u&&a.push(io(u,n,i,o,s,r))}else{let c=l();a.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const d=Dk(u)?u.default:u;o.components[s]=d;const h=(d.__vccOpts||d)[e];return h&&io(h,n,i,o,s,r)()}))}}return a}function T3(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function s_(t){const e=Ct(gy),n=Ct(YM),i=q(()=>{const l=Ai(t.to);return e.resolve(l)}),r=q(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Dl.bind(null,u));if(f>-1)return f;const h=l_(l[c-2]);return c>1&&l_(u)===h&&d[d.length-1].path!==h?d.findIndex(Dl.bind(null,l[c-2])):f}),a=q(()=>r.value>-1&&R3(n.params,i.value.params)),o=q(()=>r.value>-1&&r.value===n.matched.length-1&&HM(n.params,i.value.params));function s(l={}){return P3(l)?e[Ai(t.replace)?"replace":"push"](Ai(t.to)).catch(Yc):Promise.resolve()}return{route:i,href:q(()=>i.value.href),isActive:a,isExactActive:o,navigate:s}}const A3=Eo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:s_,setup(t,{slots:e}){const n=mn(s_(t)),{options:i}=Ct(gy),r=q(()=>({[c_(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[c_(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&e.default(n);return t.custom?a:Cn("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),C3=A3;function P3(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function R3(t,e){for(const n in e){const i=e[n],r=t[n];if(typeof i=="string"){if(i!==r)return!1}else if(!Pr(r)||r.length!==i.length||i.some((a,o)=>a!==r[o]))return!1}return!0}function l_(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const c_=(t,e,n)=>t??e??n,D3=Eo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=Ct(tg),r=q(()=>t.route||i.value),a=Ct(o_,0),o=q(()=>{let c=Ai(a);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),s=q(()=>r.value.matched[o.value]);ln(o_,q(()=>o.value+1)),ln(E3,s),ln(tg,r);const l=ke();return ft(()=>[l.value,s.value,t.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Dl(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=r.value,u=t.name,d=s.value,f=d&&d.components[u];if(!f)return u_(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=Cn(f,nn({},p,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return u_(n.default,{Component:g,route:c})||g}}});function u_(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const I3=D3;function L3(t){const e=v3(t.routes,t),n=t.parseQuery||w3,i=t.stringifyQuery||a_,r=t.history,a=_c(),o=_c(),s=_c(),l=At(Wa);let c=Wa;nl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=wp.bind(null,W=>""+W),d=wp.bind(null,Gk),f=wp.bind(null,pu);function h(W,ce){let me,Ce;return WM(W)?(me=e.getRecordMatcher(W),Ce=ce):Ce=W,e.addRoute(Ce,me)}function p(W){const ce=e.getRecordMatcher(W);ce&&e.removeRoute(ce)}function m(){return e.getRoutes().map(W=>W.record)}function g(W){return!!e.getRecordMatcher(W)}function v(W,ce){if(ce=nn({},ce||l.value),typeof W=="string"){const B=Mp(n,W,ce.path),J=e.resolve({path:B.path},ce),ie=r.createHref(B.fullPath);return nn(B,J,{params:f(J.params),hash:pu(B.hash),redirectedFrom:void 0,href:ie})}let me;if(W.path!=null)me=nn({},W,{path:Mp(n,W.path,ce.path).path});else{const B=nn({},W.params);for(const J in B)B[J]==null&&delete B[J];me=nn({},W,{params:d(B)}),ce.params=d(ce.params)}const Ce=e.resolve(me,ce),$e=W.hash||"";Ce.params=u(f(Ce.params));const j=Yk(i,nn({},W,{hash:Hk($e),path:Ce.path})),H=r.createHref(j);return nn({fullPath:j,hash:$e,query:i===a_?M3(W.query):W.query||{}},Ce,{redirectedFrom:void 0,href:H})}function b(W){return typeof W=="string"?Mp(n,W,l.value.path):nn({},W)}function y(W,ce){if(c!==W)return Il(8,{from:ce,to:W})}function w(W){return E(W)}function L(W){return w(nn(b(W),{replace:!0}))}function _(W){const ce=W.matched[W.matched.length-1];if(ce&&ce.redirect){const{redirect:me}=ce;let Ce=typeof me=="function"?me(W):me;return typeof Ce=="string"&&(Ce=Ce.includes("?")||Ce.includes("#")?Ce=b(Ce):{path:Ce},Ce.params={}),nn({query:W.query,hash:W.hash,params:Ce.path!=null?{}:W.params},Ce)}}function E(W,ce){const me=c=v(W),Ce=l.value,$e=W.state,j=W.force,H=W.replace===!0,B=_(me);if(B)return E(nn(b(B),{state:typeof B=="object"?nn({},$e,B.state):$e,force:j,replace:H}),ce||me);const J=me;J.redirectedFrom=ce;let ie;return!j&&qk(i,Ce,me)&&(ie=Il(16,{to:J,from:Ce}),Z(Ce,Ce,!0,!1)),(ie?Promise.resolve(ie):M(J,Ce)).catch(fe=>la(fe)?la(fe,2)?fe:ne(fe):Y(fe,J,Ce)).then(fe=>{if(fe){if(la(fe,2))return E(nn({replace:H},b(fe.to),{state:typeof fe.to=="object"?nn({},$e,fe.to.state):$e,force:j}),ce||J)}else fe=O(J,Ce,!0,H,$e);return D(J,Ce,fe),fe})}function R(W,ce){const me=y(W,ce);return me?Promise.reject(me):Promise.resolve()}function S(W){const ce=ee.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(W):W()}function M(W,ce){let me;const[Ce,$e,j]=O3(W,ce);me=Ep(Ce.reverse(),"beforeRouteLeave",W,ce);for(const B of Ce)B.leaveGuards.forEach(J=>{me.push(io(J,W,ce))});const H=R.bind(null,W,ce);return me.push(H),re(me).then(()=>{me=[];for(const B of a.list())me.push(io(B,W,ce));return me.push(H),re(me)}).then(()=>{me=Ep($e,"beforeRouteUpdate",W,ce);for(const B of $e)B.updateGuards.forEach(J=>{me.push(io(J,W,ce))});return me.push(H),re(me)}).then(()=>{me=[];for(const B of j)if(B.beforeEnter)if(Pr(B.beforeEnter))for(const J of B.beforeEnter)me.push(io(J,W,ce));else me.push(io(B.beforeEnter,W,ce));return me.push(H),re(me)}).then(()=>(W.matched.forEach(B=>B.enterCallbacks={}),me=Ep(j,"beforeRouteEnter",W,ce,S),me.push(H),re(me))).then(()=>{me=[];for(const B of o.list())me.push(io(B,W,ce));return me.push(H),re(me)}).catch(B=>la(B,8)?B:Promise.reject(B))}function D(W,ce,me){s.list().forEach(Ce=>S(()=>Ce(W,ce,me)))}function O(W,ce,me,Ce,$e){const j=y(W,ce);if(j)return j;const H=ce===Wa,B=nl?history.state:{};me&&(Ce||H?r.replace(W.fullPath,nn({scroll:H&&B&&B.scroll},$e)):r.push(W.fullPath,$e)),l.value=W,Z(W,ce,me,H),ne()}let V;function X(){V||(V=r.listen((W,ce,me)=>{if(!le.listening)return;const Ce=v(W),$e=_(Ce);if($e){E(nn($e,{replace:!0}),Ce).catch(Yc);return}c=Ce;const j=l.value;nl&&n3(Zb(j.fullPath,me.delta),Ph()),M(Ce,j).catch(H=>la(H,12)?H:la(H,2)?(E(H.to,Ce).then(B=>{la(B,20)&&!me.delta&&me.type===mu.pop&&r.go(-1,!1)}).catch(Yc),Promise.reject()):(me.delta&&r.go(-me.delta,!1),Y(H,Ce,j))).then(H=>{H=H||O(Ce,j,!1),H&&(me.delta&&!la(H,8)?r.go(-me.delta,!1):me.type===mu.pop&&la(H,20)&&r.go(-1,!1)),D(Ce,j,H)}).catch(Yc)}))}let K=_c(),z=_c(),Q;function Y(W,ce,me){ne(W);const Ce=z.list();return Ce.length?Ce.forEach($e=>$e(W,ce,me)):console.error(W),Promise.reject(W)}function he(){return Q&&l.value!==Wa?Promise.resolve():new Promise((W,ce)=>{K.add([W,ce])})}function ne(W){return Q||(Q=!W,X(),K.list().forEach(([ce,me])=>W?me(W):ce()),K.reset()),W}function Z(W,ce,me,Ce){const{scrollBehavior:$e}=t;if(!nl||!$e)return Promise.resolve();const j=!me&&i3(Zb(W.fullPath,0))||(Ce||!me)&&history.state&&history.state.scroll||null;return ri().then(()=>$e(W,ce,j)).then(H=>H&&t3(H)).catch(H=>Y(H,W,ce))}const _e=W=>r.go(W);let Te;const ee=new Set,le={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:m,resolve:v,options:t,push:w,replace:L,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:z.add,isReady:he,install(W){const ce=this;W.component("RouterLink",C3),W.component("RouterView",I3),W.config.globalProperties.$router=ce,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>Ai(l)}),nl&&!Te&&l.value===Wa&&(Te=!0,w(r.location).catch($e=>{}));const me={};for(const $e in Wa)Object.defineProperty(me,$e,{get:()=>l.value[$e],enumerable:!0});W.provide(gy,ce),W.provide(YM,u1(me)),W.provide(tg,l);const Ce=W.unmount;ee.add(W),W.unmount=function(){ee.delete(W),ee.size<1&&(c=Wa,V&&V(),V=null,l.value=Wa,Te=!1,Q=!1),Ce()}}};function re(W){return W.reduce((ce,me)=>ce.then(()=>S(me)),Promise.resolve())}return le}function O3(t,e){const n=[],i=[],r=[],a=Math.max(e.matched.length,t.matched.length);for(let o=0;o<a;o++){const s=e.matched[o];s&&(t.matched.find(c=>Dl(c,s))?i.push(s):n.push(s));const l=t.matched[o];l&&(e.matched.find(c=>Dl(c,l))||r.push(l))}return[n,i,r]}function N3(t){const{extendRoutes:e,routes:n}=t;return e&&console.warn('"extendRoutes()" is deprecated, please modify the routes directly. See https://uvr.esm.is/guide/extending-routes.html#extending-routes-at-runtime for an alternative.'),L3(Object.assign(t,{routes:typeof e=="function"&&e(n)||n}))}function qM(t,e){return function(){return t.apply(e,arguments)}}const{toString:k3}=Object.prototype,{getPrototypeOf:vy}=Object,Rh=(t=>e=>{const n=k3.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Or=t=>(t=t.toLowerCase(),e=>Rh(e)===t),Dh=t=>e=>typeof e===t,{isArray:Kl}=Array,gu=Dh("undefined");function U3(t){return t!==null&&!gu(t)&&t.constructor!==null&&!gu(t.constructor)&&er(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const KM=Or("ArrayBuffer");function F3(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&KM(t.buffer),e}const B3=Dh("string"),er=Dh("function"),QM=Dh("number"),Ih=t=>t!==null&&typeof t=="object",V3=t=>t===!0||t===!1,sf=t=>{if(Rh(t)!=="object")return!1;const e=vy(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},H3=Or("Date"),z3=Or("File"),W3=Or("Blob"),G3=Or("FileList"),j3=t=>Ih(t)&&er(t.pipe),X3=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||er(t.append)&&((e=Rh(t))==="formdata"||e==="object"&&er(t.toString)&&t.toString()==="[object FormData]"))},Y3=Or("URLSearchParams"),[q3,K3,Q3,Z3]=["ReadableStream","Request","Response","Headers"].map(Or),$3=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fu(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Kl(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(i=0;i<o;i++)s=a[i],e.call(null,t[s],s,t)}}function ZM(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const $o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$M=t=>!gu(t)&&t!==$o;function ng(){const{caseless:t}=$M(this)&&this||{},e={},n=(i,r)=>{const a=t&&ZM(e,r)||r;sf(e[a])&&sf(i)?e[a]=ng(e[a],i):sf(i)?e[a]=ng({},i):Kl(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Fu(arguments[i],n);return e}const J3=(t,e,n,{allOwnKeys:i}={})=>(Fu(e,(r,a)=>{n&&er(r)?t[a]=qM(r,n):t[a]=r},{allOwnKeys:i}),t),eU=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),tU=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},nU=(t,e,n,i)=>{let r,a,o;const s={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)o=r[a],(!i||i(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&vy(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},iU=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},rU=t=>{if(!t)return null;if(Kl(t))return t;let e=t.length;if(!QM(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},aU=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vy(Uint8Array)),oU=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const a=r.value;e.call(t,a[0],a[1])}},sU=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},lU=Or("HTMLFormElement"),cU=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),d_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),uU=Or("RegExp"),JM=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Fu(n,(r,a)=>{let o;(o=e(r,a,t))!==!1&&(i[a]=o||r)}),Object.defineProperties(t,i)},dU=t=>{JM(t,(e,n)=>{if(er(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(er(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fU=(t,e)=>{const n={},i=r=>{r.forEach(a=>{n[a]=!0})};return Kl(t)?i(t):i(String(t).split(e)),n},hU=()=>{},pU=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Tp="abcdefghijklmnopqrstuvwxyz",f_="0123456789",eE={DIGIT:f_,ALPHA:Tp,ALPHA_DIGIT:Tp+Tp.toUpperCase()+f_},mU=(t=16,e=eE.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function gU(t){return!!(t&&er(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const vU=t=>{const e=new Array(10),n=(i,r)=>{if(Ih(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=Kl(i)?[]:{};return Fu(i,(o,s)=>{const l=n(o,r+1);!gu(l)&&(a[s]=l)}),e[r]=void 0,a}}return i};return n(t,0)},yU=Or("AsyncFunction"),bU=t=>t&&(Ih(t)||er(t))&&er(t.then)&&er(t.catch),tE=((t,e)=>t?setImmediate:e?((n,i)=>($o.addEventListener("message",({source:r,data:a})=>{r===$o&&a===n&&i.length&&i.shift()()},!1),r=>{i.push(r),$o.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er($o.postMessage)),_U=typeof queueMicrotask<"u"?queueMicrotask.bind($o):typeof process<"u"&&process.nextTick||tE,we={isArray:Kl,isArrayBuffer:KM,isBuffer:U3,isFormData:X3,isArrayBufferView:F3,isString:B3,isNumber:QM,isBoolean:V3,isObject:Ih,isPlainObject:sf,isReadableStream:q3,isRequest:K3,isResponse:Q3,isHeaders:Z3,isUndefined:gu,isDate:H3,isFile:z3,isBlob:W3,isRegExp:uU,isFunction:er,isStream:j3,isURLSearchParams:Y3,isTypedArray:aU,isFileList:G3,forEach:Fu,merge:ng,extend:J3,trim:$3,stripBOM:eU,inherits:tU,toFlatObject:nU,kindOf:Rh,kindOfTest:Or,endsWith:iU,toArray:rU,forEachEntry:oU,matchAll:sU,isHTMLForm:lU,hasOwnProperty:d_,hasOwnProp:d_,reduceDescriptors:JM,freezeMethods:dU,toObjectSet:fU,toCamelCase:cU,noop:hU,toFiniteNumber:pU,findKey:ZM,global:$o,isContextDefined:$M,ALPHABET:eE,generateString:mU,isSpecCompliantForm:gU,toJSONObject:vU,isAsyncFn:yU,isThenable:bU,setImmediate:tE,asap:_U};function Tt(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}we.inherits(Tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:we.toJSONObject(this.config),code:this.code,status:this.status}}});const nE=Tt.prototype,iE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{iE[t]={value:t}});Object.defineProperties(Tt,iE);Object.defineProperty(nE,"isAxiosError",{value:!0});Tt.from=(t,e,n,i,r,a)=>{const o=Object.create(nE);return we.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Tt.call(o,t.message,e,n,i,r),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const xU=null;function ig(t){return we.isPlainObject(t)||we.isArray(t)}function rE(t){return we.endsWith(t,"[]")?t.slice(0,-2):t}function h_(t,e,n){return t?t.concat(e).map(function(r,a){return r=rE(r),!n&&a?"["+r+"]":r}).join(n?".":""):e}function SU(t){return we.isArray(t)&&!t.some(ig)}const wU=we.toFlatObject(we,{},null,function(e){return/^is[A-Z]/.test(e)});function Lh(t,e,n){if(!we.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=we.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!we.isUndefined(g[m])});const i=n.metaTokens,r=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&we.isSpecCompliantForm(e);if(!we.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(we.isDate(p))return p.toISOString();if(!l&&we.isBlob(p))throw new Tt("Blob is not supported. Use a Buffer instead.");return we.isArrayBuffer(p)||we.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let v=p;if(p&&!g&&typeof p=="object"){if(we.endsWith(m,"{}"))m=i?m:m.slice(0,-2),p=JSON.stringify(p);else if(we.isArray(p)&&SU(p)||(we.isFileList(p)||we.endsWith(m,"[]"))&&(v=we.toArray(p)))return m=rE(m),v.forEach(function(y,w){!(we.isUndefined(y)||y===null)&&e.append(o===!0?h_([m],w,a):o===null?m:m+"[]",c(y))}),!1}return ig(p)?!0:(e.append(h_(g,m,a),c(p)),!1)}const d=[],f=Object.assign(wU,{defaultVisitor:u,convertValue:c,isVisitable:ig});function h(p,m){if(!we.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),we.forEach(p,function(v,b){(!(we.isUndefined(v)||v===null)&&r.call(e,v,we.isString(b)?b.trim():b,m,f))===!0&&h(v,m?m.concat(b):[b])}),d.pop()}}if(!we.isObject(t))throw new TypeError("data must be an object");return h(t),e}function p_(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function yy(t,e){this._pairs=[],t&&Lh(t,this,e)}const aE=yy.prototype;aE.append=function(e,n){this._pairs.push([e,n])};aE.toString=function(e){const n=e?function(i){return e.call(this,i,p_)}:p_;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function MU(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oE(t,e,n){if(!e)return t;const i=n&&n.encode||MU,r=n&&n.serialize;let a;if(r?a=r(e,n):a=we.isURLSearchParams(e)?e.toString():new yy(e,n).toString(i),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class m_{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){we.forEach(this.handlers,function(i){i!==null&&e(i)})}}const sE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},EU=typeof URLSearchParams<"u"?URLSearchParams:yy,TU=typeof FormData<"u"?FormData:null,AU=typeof Blob<"u"?Blob:null,CU={isBrowser:!0,classes:{URLSearchParams:EU,FormData:TU,Blob:AU},protocols:["http","https","file","blob","url","data"]},by=typeof window<"u"&&typeof document<"u",rg=typeof navigator=="object"&&navigator||void 0,PU=by&&(!rg||["ReactNative","NativeScript","NS"].indexOf(rg.product)<0),RU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",DU=by&&window.location.href||"http://localhost",IU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:by,hasStandardBrowserEnv:PU,hasStandardBrowserWebWorkerEnv:RU,navigator:rg,origin:DU},Symbol.toStringTag,{value:"Module"})),tr={...IU,...CU};function LU(t,e){return Lh(t,new tr.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,a){return tr.isNode&&we.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function OU(t){return we.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function NU(t){const e={},n=Object.keys(t);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],e[a]=t[a];return e}function lE(t){function e(n,i,r,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&we.isArray(r)?r.length:o,l?(we.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!s):((!r[o]||!we.isObject(r[o]))&&(r[o]=[]),e(n,i,r[o],a)&&we.isArray(r[o])&&(r[o]=NU(r[o])),!s)}if(we.isFormData(t)&&we.isFunction(t.entries)){const n={};return we.forEachEntry(t,(i,r)=>{e(OU(i),r,n,0)}),n}return null}function kU(t,e,n){if(we.isString(t))try{return(e||JSON.parse)(t),we.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(t)}const Bu={transitional:sE,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,a=we.isObject(e);if(a&&we.isHTMLForm(e)&&(e=new FormData(e)),we.isFormData(e))return r?JSON.stringify(lE(e)):e;if(we.isArrayBuffer(e)||we.isBuffer(e)||we.isStream(e)||we.isFile(e)||we.isBlob(e)||we.isReadableStream(e))return e;if(we.isArrayBufferView(e))return e.buffer;if(we.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return LU(e,this.formSerializer).toString();if((s=we.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Lh(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||r?(n.setContentType("application/json",!1),kU(e)):e}],transformResponse:[function(e){const n=this.transitional||Bu.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(we.isResponse(e)||we.isReadableStream(e))return e;if(e&&we.isString(e)&&(i&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?Tt.from(s,Tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tr.classes.FormData,Blob:tr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};we.forEach(["delete","get","head","post","put","patch"],t=>{Bu.headers[t]={}});const UU=we.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FU=t=>{const e={};let n,i,r;return t&&t.split(`
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!n||e[n]&&UU[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},g_=Symbol("internals");function xc(t){return t&&String(t).trim().toLowerCase()}function lf(t){return t===!1||t==null?t:we.isArray(t)?t.map(lf):String(t)}function BU(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const VU=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ap(t,e,n,i,r){if(we.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!we.isString(e)){if(we.isString(i))return e.indexOf(i)!==-1;if(we.isRegExp(i))return i.test(e)}}function HU(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function zU(t,e){const n=we.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,a,o){return this[i].call(this,e,r,a,o)},configurable:!0})})}class Bi{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function a(s,l,c){const u=xc(l);if(!u)throw new Error("header name must be a non-empty string");const d=we.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=lf(s))}const o=(s,l)=>we.forEach(s,(c,u)=>a(c,u,l));if(we.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(we.isString(e)&&(e=e.trim())&&!VU(e))o(FU(e),n);else if(we.isHeaders(e))for(const[s,l]of e.entries())a(l,s,i);else e!=null&&a(n,e,i);return this}get(e,n){if(e=xc(e),e){const i=we.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return BU(r);if(we.isFunction(n))return n.call(this,r,i);if(we.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=xc(e),e){const i=we.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Ap(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function a(o){if(o=xc(o),o){const s=we.findKey(i,o);s&&(!n||Ap(i,i[s],s,n))&&(delete i[s],r=!0)}}return we.isArray(e)?e.forEach(a):a(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const a=n[i];(!e||Ap(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const n=this,i={};return we.forEach(this,(r,a)=>{const o=we.findKey(i,a);if(o){n[o]=lf(r),delete n[a];return}const s=e?HU(a):String(a).trim();s!==a&&delete n[a],n[s]=lf(r),i[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return we.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&we.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[g_]=this[g_]={accessors:{}}).accessors,r=this.prototype;function a(o){const s=xc(o);i[s]||(zU(r,o),i[s]=!0)}return we.isArray(e)?e.forEach(a):a(e),this}}Bi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);we.reduceDescriptors(Bi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});we.freezeMethods(Bi);function Cp(t,e){const n=this||Bu,i=e||n,r=Bi.from(i.headers);let a=i.data;return we.forEach(t,function(s){a=s.call(n,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function cE(t){return!!(t&&t.__CANCEL__)}function Ql(t,e,n){Tt.call(this,t??"canceled",Tt.ERR_CANCELED,e,n),this.name="CanceledError"}we.inherits(Ql,Tt,{__CANCEL__:!0});function uE(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Tt("Request failed with status code "+n.status,[Tt.ERR_BAD_REQUEST,Tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function WU(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function GU(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=i[a];o||(o=c),n[r]=l,i[r]=c;let d=a,f=0;for(;d!==r;)f+=n[d++],d=d%t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),c-o<e)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function jU(t,e){let n=0,i=1e3/e,r,a;const o=(c,u=Date.now())=>{n=u,r=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=i?o(c,u):(r=c,a||(a=setTimeout(()=>{a=null,o(r)},i-d)))},()=>r&&o(r)]}const Ff=(t,e,n=3)=>{let i=0;const r=GU(50,250);return jU(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-i,c=r(l),u=o<=s;i=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(d)},n)},v_=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},y_=t=>(...e)=>we.asap(()=>t(...e)),XU=tr.hasStandardBrowserEnv?function(){const e=tr.navigator&&/(msie|trident)/i.test(tr.navigator.userAgent),n=document.createElement("a");let i;function r(a){let o=a;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(o){const s=we.isString(o)?r(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}(),YU=tr.hasStandardBrowserEnv?{write(t,e,n,i,r,a){const o=[t+"="+encodeURIComponent(e)];we.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),we.isString(i)&&o.push("path="+i),we.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function qU(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function KU(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dE(t,e){return t&&!qU(e)?KU(t,e):e}const b_=t=>t instanceof Bi?{...t}:t;function us(t,e){e=e||{};const n={};function i(c,u,d){return we.isPlainObject(c)&&we.isPlainObject(u)?we.merge.call({caseless:d},c,u):we.isPlainObject(u)?we.merge({},u):we.isArray(u)?u.slice():u}function r(c,u,d){if(we.isUndefined(u)){if(!we.isUndefined(c))return i(void 0,c,d)}else return i(c,u,d)}function a(c,u){if(!we.isUndefined(u))return i(void 0,u)}function o(c,u){if(we.isUndefined(u)){if(!we.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function s(c,u,d){if(d in e)return i(c,u);if(d in t)return i(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>r(b_(c),b_(u),!0)};return we.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=l[u]||r,f=d(t[u],e[u],u);we.isUndefined(f)&&d!==s||(n[u]=f)}),n}const fE=t=>{const e=us({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:s}=e;e.headers=o=Bi.from(o),e.url=oE(dE(e.baseURL,e.url),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(we.isFormData(n)){if(tr.hasStandardBrowserEnv||tr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(tr.hasStandardBrowserEnv&&(i&&we.isFunction(i)&&(i=i(e)),i||i!==!1&&XU(e.url))){const c=r&&a&&YU.read(a);c&&o.set(r,c)}return e},QU=typeof XMLHttpRequest<"u",ZU=QU&&function(t){return new Promise(function(n,i){const r=fE(t);let a=r.data;const o=Bi.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,h,p;function m(){h&&h(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const y=Bi.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),L={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:t,request:g};uE(function(E){n(E),m()},function(E){i(E),m()},L),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(i(new Tt("Request aborted",Tt.ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new Tt("Network Error",Tt.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let w=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const L=r.transitional||sE;r.timeoutErrorMessage&&(w=r.timeoutErrorMessage),i(new Tt(w,L.clarifyTimeoutError?Tt.ETIMEDOUT:Tt.ECONNABORTED,t,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&we.forEach(o.toJSON(),function(w,L){g.setRequestHeader(L,w)}),we.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([f,p]=Ff(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=Ff(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=y=>{g&&(i(!y||y.type?new Ql(null,t,g):y),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=WU(r.url);if(b&&tr.protocols.indexOf(b)===-1){i(new Tt("Unsupported protocol "+b+":",Tt.ERR_BAD_REQUEST,t));return}g.send(a||null)})},$U=(t,e)=>{let n=new AbortController,i;const r=function(l){if(!i){i=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Tt?c:new Ql(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{r(new Tt(`timeout ${e} of ms exceeded`,Tt.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{a&&clearTimeout(a),a=null}]},JU=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,r;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},eF=async function*(t,e,n){for await(const i of t)yield*JU(ArrayBuffer.isView(i)?i:await n(String(i)),e)},__=(t,e,n,i,r)=>{const a=eF(t,e,r);let o=0,s,l=c=>{s||(s=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await a.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=o+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},Oh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hE=Oh&&typeof ReadableStream=="function",ag=Oh&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),pE=(t,...e)=>{try{return!!t(...e)}catch{return!1}},tF=hE&&pE(()=>{let t=!1;const e=new Request(tr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),x_=64*1024,og=hE&&pE(()=>we.isReadableStream(new Response("").body)),Bf={stream:og&&(t=>t.body)};Oh&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Bf[e]&&(Bf[e]=we.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new Tt(`Response type '${e}' is not supported`,Tt.ERR_NOT_SUPPORT,i)})})})(new Response);const nF=async t=>{if(t==null)return 0;if(we.isBlob(t))return t.size;if(we.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(we.isArrayBufferView(t)||we.isArrayBuffer(t))return t.byteLength;if(we.isURLSearchParams(t)&&(t=t+""),we.isString(t))return(await ag(t)).byteLength},iF=async(t,e)=>{const n=we.toFiniteNumber(t.getContentLength());return n??nF(e)},rF=Oh&&(async t=>{let{url:e,method:n,data:i,signal:r,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=fE(t);c=c?(c+"").toLowerCase():"text";let[h,p]=r||a||o?$U([r,a],o):[],m,g;const v=()=>{!m&&setTimeout(()=>{h&&h.unsubscribe()}),m=!0};let b;try{if(l&&tF&&n!=="get"&&n!=="head"&&(b=await iF(u,i))!==0){let E=new Request(e,{method:"POST",body:i,duplex:"half"}),R;if(we.isFormData(i)&&(R=E.headers.get("content-type"))&&u.setContentType(R),E.body){const[S,M]=v_(b,Ff(y_(l)));i=__(E.body,x_,S,M,ag)}}we.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;g=new Request(e,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:y?d:void 0});let w=await fetch(g);const L=og&&(c==="stream"||c==="response");if(og&&(s||L)){const E={};["status","statusText","headers"].forEach(D=>{E[D]=w[D]});const R=we.toFiniteNumber(w.headers.get("content-length")),[S,M]=s&&v_(R,Ff(y_(s),!0))||[];w=new Response(__(w.body,x_,S,()=>{M&&M(),L&&v()},ag),E)}c=c||"text";let _=await Bf[we.findKey(Bf,c)||"text"](w,t);return!L&&v(),p&&p(),await new Promise((E,R)=>{uE(E,R,{data:_,headers:Bi.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:g})})}catch(y){throw v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Tt("Network Error",Tt.ERR_NETWORK,t,g),{cause:y.cause||y}):Tt.from(y,y&&y.code,t,g)}}),sg={http:xU,xhr:ZU,fetch:rF};we.forEach(sg,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const S_=t=>`- ${t}`,aF=t=>we.isFunction(t)||t===null||t===!1,mE={getAdapter:t=>{t=we.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let a=0;a<e;a++){n=t[a];let o;if(i=n,!aF(n)&&(i=sg[(o=String(n)).toLowerCase()],i===void 0))throw new Tt(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
`+a.map(S_).join(`
`):" "+S_(a[0]):"as no adapter specified";throw new Tt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:sg};function Pp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ql(null,t)}function w_(t){return Pp(t),t.headers=Bi.from(t.headers),t.data=Cp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),mE.getAdapter(t.adapter||Bu.adapter)(t).then(function(i){return Pp(t),i.data=Cp.call(t,t.transformResponse,i),i.headers=Bi.from(i.headers),i},function(i){return cE(i)||(Pp(t),i&&i.response&&(i.response.data=Cp.call(t,t.transformResponse,i.response),i.response.headers=Bi.from(i.response.headers))),Promise.reject(i)})}const gE="1.7.5",_y={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_y[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const M_={};_y.transitional=function(e,n,i){function r(a,o){return"[Axios v"+gE+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,s)=>{if(e===!1)throw new Tt(r(o," has been removed"+(n?" in "+n:"")),Tt.ERR_DEPRECATED);return n&&!M_[o]&&(M_[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,o,s):!0}};function oF(t,e,n){if(typeof t!="object")throw new Tt("options must be an object",Tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const a=i[r],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new Tt("option "+a+" must be "+l,Tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Tt("Unknown option "+a,Tt.ERR_BAD_OPTION)}}const lg={assertOptions:oF,validators:_y},Ga=lg.validators;class as{constructor(e){this.defaults=e,this.interceptors={request:new m_,response:new m_}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=us(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:a}=n;i!==void 0&&lg.assertOptions(i,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),r!=null&&(we.isFunction(r)?n.paramsSerializer={serialize:r}:lg.assertOptions(r,{encode:Ga.function,serialize:Ga.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&we.merge(a.common,a[n.method]);a&&we.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=Bi.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[w_.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=n;for(d=0;d<f;){const p=s[d++],m=s[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=w_.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=us(this.defaults,e);const n=dE(e.baseURL,e.url);return oE(n,e.params,e.paramsSerializer)}}we.forEach(["delete","get","head","options"],function(e){as.prototype[e]=function(n,i){return this.request(us(i||{},{method:e,url:n,data:(i||{}).data}))}});we.forEach(["post","put","patch"],function(e){function n(i){return function(a,o,s){return this.request(us(s||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}as.prototype[e]=n(),as.prototype[e+"Form"]=n(!0)});class xy{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(s=>{i.subscribe(s),a=s}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,s){i.reason||(i.reason=new Ql(a,o,s),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new xy(function(r){e=r}),cancel:e}}}function sF(t){return function(n){return t.apply(null,n)}}function lF(t){return we.isObject(t)&&t.isAxiosError===!0}const cg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cg).forEach(([t,e])=>{cg[e]=t});function vE(t){const e=new as(t),n=qM(as.prototype.request,e);return we.extend(n,as.prototype,e,{allOwnKeys:!0}),we.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return vE(us(t,r))},n}const zn=vE(Bu);zn.Axios=as;zn.CanceledError=Ql;zn.CancelToken=xy;zn.isCancel=cE;zn.VERSION=gE;zn.toFormData=Lh;zn.AxiosError=Tt;zn.Cancel=zn.CanceledError;zn.all=function(e){return Promise.all(e)};zn.spread=sF;zn.isAxiosError=lF;zn.mergeConfig=us;zn.AxiosHeaders=Bi;zn.formToJSON=t=>lE(we.isHTMLForm(t)?new FormData(t):t);zn.getAdapter=mE.getAdapter;zn.HttpStatusCode=cg;zn.default=zn;const Pi=zn.create({baseURL:"https://colorimetria-api.tech-impulse.com"}),Ri=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},ys=He({border:[Boolean,Number,String]},"border");function bs(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return{borderClasses:q(()=>{const i=kn(t)?t.value:t.border,r=[];if(i===!0||i==="")r.push(`${e}--border`);else if(typeof i=="string"||i===0)for(const a of String(i).split(" "))r.push(`border-${a}`);return r})}}const cF=[null,"default","comfortable","compact"],ka=He({density:{type:String,default:"default",validator:t=>cF.includes(t)}},"density");function Ao(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return{densityClasses:q(()=>`${e}--density-${t.density}`)}}const Zl=He({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function $l(t){return{elevationClasses:q(()=>{const n=kn(t)?t.value:t.elevation,i=[];return n==null||i.push(`elevation-${n}`),i})}}const Nr=He({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function kr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return{roundedClasses:q(()=>{const i=kn(t)?t.value:t.rounded,r=kn(t)?t.value:t.tile,a=[];if(i===!0||i==="")a.push(`${e}--rounded`);else if(typeof i=="string"||i===0)for(const o of String(i).split(" "))a.push(`rounded-${o}`);else(r||i===!1)&&a.push("rounded-0");return a})}}const Pn=He({tag:{type:String,default:"div"}},"tag");function Sy(t){return sy(()=>{const e=[],n={};if(t.value.background)if(qm(t.value.background)){if(n.backgroundColor=t.value.background,!t.value.text&&YO(t.value.background)){const i=Zr(t.value.background);if(i.a==null||i.a===1){const r=yM(i);n.color=r,n.caretColor=r}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(qm(t.value.text)?(n.color=t.value.text,n.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:n}})}function Pa(t,e){const n=q(()=>({text:kn(t)?t.value:e?t[e]:null})),{colorClasses:i,colorStyles:r}=Sy(n);return{textColorClasses:i,textColorStyles:r}}function Aa(t,e){const n=q(()=>({background:kn(t)?t.value:e?t[e]:null})),{colorClasses:i,colorStyles:r}=Sy(n);return{backgroundColorClasses:i,backgroundColorStyles:r}}const uF=["elevated","flat","tonal","outlined","text","plain"];function Vu(t,e){return x(Mt,null,[t&&x("span",{key:"overlay",class:`${e}__overlay`},null),x("span",{key:"underlay",class:`${e}__underlay`},null)])}const _s=He({color:String,variant:{type:String,default:"elevated",validator:t=>uF.includes(t)}},"variant");function Hu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();const n=q(()=>{const{variant:a}=Ai(t);return`${e}--variant-${a}`}),{colorClasses:i,colorStyles:r}=Sy(q(()=>{const{variant:a,color:o}=Ai(t);return{[["elevated","flat"].includes(a)?"background":"text"]:o}}));return{colorClasses:i,colorStyles:r,variantClasses:n}}const yE=He({baseColor:String,divided:Boolean,...ys(),...Nt(),...ka(),...Zl(),...Nr(),...Pn(),...ti(),..._s()},"VBtnGroup"),E_=ut()({name:"VBtnGroup",props:yE(),setup(t,e){let{slots:n}=e;const{themeClasses:i}=ai(t),{densityClasses:r}=Ao(t),{borderClasses:a}=bs(t),{elevationClasses:o}=$l(t),{roundedClasses:s}=kr(t);Yl({VBtn:{height:"auto",baseColor:Pt(t,"baseColor"),color:Pt(t,"color"),density:Pt(t,"density"),flat:!0,variant:Pt(t,"variant")}}),Et(()=>x(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},i.value,a.value,r.value,o.value,s.value,t.class],style:t.style},n))}}),bE=He({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),_E=He({value:null,disabled:Boolean,selectedClass:String},"group-item");function xE(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=Qn("useGroupItem");if(!i)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const r=To();ln(Symbol.for(`${e.description}:id`),r);const a=Ct(e,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const o=Pt(t,"value"),s=q(()=>!!(a.disabled.value||t.disabled));a.register({id:r,value:o,disabled:s},i),Ir(()=>{a.unregister(r)});const l=q(()=>a.isSelected(r)),c=q(()=>a.items.value[0].id===r),u=q(()=>a.items.value[a.items.value.length-1].id===r),d=q(()=>l.value&&[a.selectedClass.value,t.selectedClass]);return ft(l,f=>{i.emit("group:selected",{value:f})},{flush:"sync"}),{id:r,isSelected:l,isFirst:c,isLast:u,toggle:()=>a.select(r,!l.value),select:f=>a.select(r,f),selectedClass:d,value:o,disabled:s,group:a}}function wy(t,e){let n=!1;const i=mn([]),r=vi(t,"modelValue",[],f=>f==null?[]:SE(i,ns(f)),f=>{const h=fF(i,f);return t.multiple?h:h[0]}),a=Qn("useGroup");function o(f,h){const p=f,m=Symbol.for(`${e.description}:id`),v=sl(m,a==null?void 0:a.vnode).indexOf(h);Ai(p.value)==null&&(p.value=v,p.useIndexAsValue=!0),v>-1?i.splice(v,0,p):i.push(p)}function s(f){if(n)return;l();const h=i.findIndex(p=>p.id===f);i.splice(h,1)}function l(){const f=i.find(h=>!h.disabled);f&&t.mandatory==="force"&&!r.value.length&&(r.value=[f.id])}ir(()=>{l()}),Ir(()=>{n=!0}),qv(()=>{for(let f=0;f<i.length;f++)i[f].useIndexAsValue&&(i[f].value=f)});function c(f,h){const p=i.find(m=>m.id===f);if(!(h&&(p!=null&&p.disabled)))if(t.multiple){const m=r.value.slice(),g=m.findIndex(b=>b===f),v=~g;if(h=h??!v,v&&t.mandatory&&m.length<=1||!v&&t.max!=null&&m.length+1>t.max)return;g<0&&h?m.push(f):g>=0&&!h&&m.splice(g,1),r.value=m}else{const m=r.value.includes(f);if(t.mandatory&&m)return;r.value=h??!m?[f]:[]}}function u(f){if(t.multiple,r.value.length){const h=r.value[0],p=i.findIndex(v=>v.id===h);let m=(p+f)%i.length,g=i[m];for(;g.disabled&&m!==p;)m=(m+f)%i.length,g=i[m];if(g.disabled)return;r.value=[i[m].id]}else{const h=i.find(p=>!p.disabled);h&&(r.value=[h.id])}}const d={register:o,unregister:s,selected:r,select:c,disabled:Pt(t,"disabled"),prev:()=>u(i.length-1),next:()=>u(1),isSelected:f=>r.value.includes(f),selectedClass:q(()=>t.selectedClass),items:q(()=>i),getItemIndex:f=>dF(i,f)};return ln(e,d),d}function dF(t,e){const n=SE(t,[e]);return n.length?t.findIndex(i=>i.id===n[0]):-1}function SE(t,e){const n=[];return e.forEach(i=>{const r=t.find(o=>Eh(i,o.value)),a=t[i];(r==null?void 0:r.value)!=null?n.push(r.id):a!=null&&n.push(a.id)}),n}function fF(t,e){const n=[];return e.forEach(i=>{const r=t.findIndex(a=>a.id===i);if(~r){const a=t[r];n.push(a.value!=null?a.value:r)}}),n}const wE=Symbol.for("vuetify:v-btn-toggle"),hF=He({...yE(),...bE()},"VBtnToggle"),pF=ut()({name:"VBtnToggle",props:hF(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isSelected:i,next:r,prev:a,select:o,selected:s}=wy(t,wE);return Et(()=>{const l=E_.filterProps(t);return x(E_,Ye({class:["v-btn-toggle",t.class]},l,{style:t.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:i,next:r,prev:a,select:o,selected:s})]}})}),{next:r,prev:a,select:o}}}),mF=He({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),yi=ut(!1)({name:"VDefaultsProvider",props:mF(),setup(t,e){let{slots:n}=e;const{defaults:i,disabled:r,reset:a,root:o,scoped:s}=Wv(t);return Yl(i,{reset:a,root:o,scoped:s,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),gF=["x-small","small","default","large","x-large"],Nh=He({size:{type:[String,Number],default:"default"}},"size");function kh(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return sy(()=>{let n,i;return Rf(gF,t.size)?n=`${e}--size-${t.size}`:t.size&&(i={width:_t(t.size),height:_t(t.size)}),{sizeClasses:n,sizeStyles:i}})}const vF=He({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ln,...Nt(),...Nh(),...Pn({tag:"i"}),...ti()},"VIcon"),gn=ut()({name:"VIcon",props:vF(),setup(t,e){let{attrs:n,slots:i}=e;const r=ke(),{themeClasses:a}=ai(t),{iconData:o}=pk(q(()=>r.value||t.icon)),{sizeClasses:s}=kh(t),{textColorClasses:l,textColorStyles:c}=Pa(Pt(t,"color"));return Et(()=>{var f,h;const u=(f=i.default)==null?void 0:f.call(i);u&&(r.value=(h=cM(u).filter(p=>p.type===ku&&p.children&&typeof p.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return x(o.value.component,{tag:t.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,s.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[s.value?void 0:{fontSize:_t(t.size),height:_t(t.size),width:_t(t.size)},c.value,t.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?t.disabled?-1:0:void 0},{default:()=>[u]})}),{}}});function ME(t,e){const n=ke(),i=At(!1);if(ry){const r=new IntersectionObserver(a=>{i.value=!!a.find(o=>o.isIntersecting)},e);Ir(()=>{r.disconnect()}),ft(n,(a,o)=>{o&&(r.unobserve(o),i.value=!1),a&&r.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:i}}const yF=He({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Nt(),...Nh(),...Pn({tag:"div"}),...ti()},"VProgressCircular"),bF=ut()({name:"VProgressCircular",props:yF(),setup(t,e){let{slots:n}=e;const i=20,r=2*Math.PI*i,a=ke(),{themeClasses:o}=ai(t),{sizeClasses:s,sizeStyles:l}=kh(t),{textColorClasses:c,textColorStyles:u}=Pa(Pt(t,"color")),{textColorClasses:d,textColorStyles:f}=Pa(Pt(t,"bgColor")),{intersectionRef:h,isIntersecting:p}=ME(),{resizeRef:m,contentRect:g}=kf(),v=q(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),b=q(()=>Number(t.width)),y=q(()=>l.value?Number(t.size):g.value?g.value.width:Math.max(b.value,32)),w=q(()=>i/(1-b.value/y.value)*2),L=q(()=>b.value/y.value*w.value),_=q(()=>_t((100-v.value)/100*r));return Na(()=>{h.value=a.value,m.value=a.value}),Et(()=>x(t.tag,{ref:a,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},o.value,s.value,c.value,t.class],style:[l.value,u.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:v.value},{default:()=>[x("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${w.value} ${w.value}`},[x("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":L.value,"stroke-dasharray":r,"stroke-dashoffset":0},null),x("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:i,"stroke-width":L.value,"stroke-dasharray":r,"stroke-dashoffset":_.value},null)]),n.default&&x("div",{class:"v-progress-circular__content"},[n.default({value:v.value})])]})),{}}}),Ua=He({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Fa(t){return{dimensionStyles:q(()=>{const n={},i=_t(t.height),r=_t(t.maxHeight),a=_t(t.maxWidth),o=_t(t.minHeight),s=_t(t.minWidth),l=_t(t.width);return i!=null&&(n.height=i),r!=null&&(n.maxHeight=r),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),s!=null&&(n.minWidth=s),l!=null&&(n.width=l),n})}}const T_={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Uh=He({location:String},"location");function My(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:i}=Lr();return{locationStyles:q(()=>{if(!t.location)return{};const{side:a,align:o}=Ym(t.location.split(" ").length>1?t.location:`${t.location} center`,i.value);function s(c){return n?n(c):0}const l={};return a!=="center"&&(e?l[T_[a]]=`calc(100% - ${s(a)}px)`:l[a]=0),o!=="center"?e?l[T_[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const _F=He({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Nt(),...Uh({location:"top"}),...Nr(),...Pn(),...ti()},"VProgressLinear"),EE=ut()({name:"VProgressLinear",props:_F(),emits:{"update:modelValue":t=>!0},setup(t,e){var D;let{slots:n}=e;const i=vi(t,"modelValue"),{isRtl:r,rtlClasses:a}=Lr(),{themeClasses:o}=ai(t),{locationStyles:s}=My(t),{textColorClasses:l,textColorStyles:c}=Pa(t,"color"),{backgroundColorClasses:u,backgroundColorStyles:d}=Aa(q(()=>t.bgColor||t.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Aa(q(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:p,backgroundColorStyles:m}=Aa(t,"color"),{roundedClasses:g}=kr(t),{intersectionRef:v,isIntersecting:b}=ME(),y=q(()=>parseFloat(t.max)),w=q(()=>parseFloat(t.height)),L=q(()=>Pl(parseFloat(t.bufferValue)/y.value*100,0,100)),_=q(()=>Pl(parseFloat(i.value)/y.value*100,0,100)),E=q(()=>r.value!==t.reverse),R=q(()=>t.indeterminate?"fade-transition":"slide-x-transition"),S=un&&((D=window.matchMedia)==null?void 0:D.call(window,"(forced-colors: active)").matches);function M(O){if(!v.value)return;const{left:V,right:X,width:K}=v.value.getBoundingClientRect(),z=E.value?K-O.clientX+(X-K):O.clientX-V;i.value=Math.round(z/K*y.value)}return Et(()=>x(t.tag,{ref:v,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&b.value,"v-progress-linear--reverse":E.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},g.value,o.value,a.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?_t(w.value):0,"--v-progress-linear-height":_t(w.value),...t.absolute?s.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:_.value,onClick:t.clickable&&M},{default:()=>[t.stream&&x("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...c.value,[E.value?"left":"right"]:_t(-w.value),borderTop:`${_t(w.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${_t(w.value/4)})`,width:_t(100-L.value,"%"),"--v-progress-linear-stream-to":_t(w.value*(E.value?1:-1))}},null),x("div",{class:["v-progress-linear__background",S?void 0:u.value],style:[d.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),x("div",{class:["v-progress-linear__buffer",S?void 0:f.value],style:[h.value,{opacity:parseFloat(t.bufferOpacity),width:_t(L.value,"%")}]},null),x(Ca,{name:R.value},{default:()=>[t.indeterminate?x("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(O=>x("div",{key:O,class:["v-progress-linear__indeterminate",O,S?void 0:p.value],style:m.value},null))]):x("div",{class:["v-progress-linear__determinate",S?void 0:p.value],style:[m.value,{width:_t(_.value,"%")}]},null)]}),n.default&&x("div",{class:"v-progress-linear__content"},[n.default({value:_.value,buffer:L.value})])]})),{}}}),Ey=He({loading:[Boolean,String]},"loader");function Ty(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return{loaderClasses:q(()=>({[`${e}--loading`]:t.loading}))}}function TE(t,e){var i;let{slots:n}=e;return x("div",{class:`${t.name}__loader`},[((i=n.default)==null?void 0:i.call(n,{color:t.color,isActive:t.active}))||x(EE,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const xF=["static","relative","fixed","absolute","sticky"],Ay=He({position:{type:String,validator:t=>xF.includes(t)}},"position");function Cy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();return{positionClasses:q(()=>t.position?`${e}--${t.position}`:void 0)}}function SF(){const t=Qn("useRoute");return q(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function wF(){var t,e;return(e=(t=Qn("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function Py(t,e){var c,u;const n=uu("RouterLink"),i=q(()=>!!(t.href||t.to)),r=q(()=>(i==null?void 0:i.value)||_b(e,"click")||_b(t,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:i,isClickable:r,href:Pt(t,"href")};const a=q(()=>({...t,to:Pt(()=>t.to||"")})),o=n.useLink(a.value),s=q(()=>t.to?o:void 0),l=SF();return{isLink:i,isClickable:r,route:(c=s.value)==null?void 0:c.route,navigate:(u=s.value)==null?void 0:u.navigate,isActive:q(()=>{var d,f,h;return s.value?t.exact?l.value?((h=s.value.isExactActive)==null?void 0:h.value)&&Eh(s.value.route.value.query,l.value.query):((f=s.value.isExactActive)==null?void 0:f.value)??!1:((d=s.value.isActive)==null?void 0:d.value)??!1:!1}),href:q(()=>{var d;return t.to?(d=s.value)==null?void 0:d.route.value.href:t.href})}}const Ry=He({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Rp=!1;function MF(t,e){let n=!1,i,r;un&&(ri(()=>{window.addEventListener("popstate",a),i=t==null?void 0:t.beforeEach((o,s,l)=>{Rp?n?e(l):l():setTimeout(()=>n?e(l):l()),Rp=!0}),r=t==null?void 0:t.afterEach(()=>{Rp=!1})}),pr(()=>{window.removeEventListener("popstate",a),i==null||i(),r==null||r()}));function a(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function EF(t,e){ft(()=>{var n;return(n=t.isActive)==null?void 0:n.value},n=>{t.isLink.value&&n&&e&&ri(()=>{e(!0)})},{immediate:!0})}const ug=Symbol("rippleStop"),TF=80;function A_(t,e){t.style.transform=e,t.style.webkitTransform=e}function dg(t){return t.constructor.name==="TouchEvent"}function AE(t){return t.constructor.name==="KeyboardEvent"}const AF=function(t,e){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,r=0;if(!AE(t)){const f=e.getBoundingClientRect(),h=dg(t)?t.touches[t.touches.length-1]:t;i=h.clientX-f.left,r=h.clientY-f.top}let a=0,o=.3;(d=e._ripple)!=null&&d.circle?(o=.15,a=e.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(r-a)**2)/4):a=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const s=`${(e.clientWidth-a*2)/2}px`,l=`${(e.clientHeight-a*2)/2}px`,c=n.center?s:`${i-a}px`,u=n.center?l:`${r-a}px`;return{radius:a,scale:o,x:c,y:u,centerX:s,centerY:l}},Vf={show(t,e){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=e==null?void 0:e._ripple)!=null&&h.enabled))return;const i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:s,y:l,centerX:c,centerY:u}=AF(t,e,n),d=`${a*2}px`;r.className="v-ripple__animation",r.style.width=d,r.style.height=d,e.appendChild(i);const f=window.getComputedStyle(e);f&&f.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),A_(r,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),A_(r,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(t){var a;if(!((a=t==null?void 0:t._ripple)!=null&&a.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),r=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===t&&t.removeChild(n.parentNode)},300)},r)}};function CE(t){return typeof t>"u"||!!t}function vu(t){const e={},n=t.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||t[ug])){if(t[ug]=!0,dg(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||AE(t),n._ripple.class&&(e.class=n._ripple.class),dg(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Vf.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},TF)}else Vf.show(t,n,e)}}function C_(t){t[ug]=!0}function Zi(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Zi(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Vf.hide(e)}}function PE(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let yu=!1;function RE(t){!yu&&(t.keyCode===gb.enter||t.keyCode===gb.space)&&(yu=!0,vu(t))}function DE(t){yu=!1,Zi(t)}function IE(t){yu&&(yu=!1,Zi(t))}function LE(t,e,n){const{value:i,modifiers:r}=e,a=CE(i);if(a||Vf.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=a,t._ripple.centered=r.center,t._ripple.circle=r.circle,Pf(i)&&i.class&&(t._ripple.class=i.class),a&&!n){if(r.stop){t.addEventListener("touchstart",C_,{passive:!0}),t.addEventListener("mousedown",C_);return}t.addEventListener("touchstart",vu,{passive:!0}),t.addEventListener("touchend",Zi,{passive:!0}),t.addEventListener("touchmove",PE,{passive:!0}),t.addEventListener("touchcancel",Zi),t.addEventListener("mousedown",vu),t.addEventListener("mouseup",Zi),t.addEventListener("mouseleave",Zi),t.addEventListener("keydown",RE),t.addEventListener("keyup",DE),t.addEventListener("blur",IE),t.addEventListener("dragstart",Zi,{passive:!0})}else!a&&n&&OE(t)}function OE(t){t.removeEventListener("mousedown",vu),t.removeEventListener("touchstart",vu),t.removeEventListener("touchend",Zi),t.removeEventListener("touchmove",PE),t.removeEventListener("touchcancel",Zi),t.removeEventListener("mouseup",Zi),t.removeEventListener("mouseleave",Zi),t.removeEventListener("keydown",RE),t.removeEventListener("keyup",DE),t.removeEventListener("dragstart",Zi),t.removeEventListener("blur",IE)}function CF(t,e){LE(t,e,!1)}function PF(t){delete t._ripple,OE(t)}function RF(t,e){if(e.value===e.oldValue)return;const n=CE(e.oldValue);LE(t,e,n)}const Dy={mounted:CF,unmounted:PF,updated:RF},NE=He({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:wE},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ln,appendIcon:Ln,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...ys(),...Nt(),...ka(),...Ua(),...Zl(),..._E(),...Ey(),...Uh(),...Ay(),...Nr(),...Ry(),...Nh(),...Pn({tag:"button"}),...ti(),..._s({variant:"elevated"})},"VBtn"),qt=ut()({name:"VBtn",props:NE(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:n,slots:i}=e;const{themeClasses:r}=ai(t),{borderClasses:a}=bs(t),{densityClasses:o}=Ao(t),{dimensionStyles:s}=Fa(t),{elevationClasses:l}=$l(t),{loaderClasses:c}=Ty(t),{locationStyles:u}=My(t),{positionClasses:d}=Cy(t),{roundedClasses:f}=kr(t),{sizeClasses:h,sizeStyles:p}=kh(t),m=xE(t,t.symbol,!1),g=Py(t,n),v=q(()=>{var D;return t.active!==void 0?t.active:g.isLink.value?(D=g.isActive)==null?void 0:D.value:m==null?void 0:m.isSelected.value}),b=q(()=>v.value?t.activeColor??t.color:t.color),y=q(()=>{var O,V;return{color:(m==null?void 0:m.isSelected.value)&&(!g.isLink.value||((O=g.isActive)==null?void 0:O.value))||!m||((V=g.isActive)==null?void 0:V.value)?b.value??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:w,colorStyles:L,variantClasses:_}=Hu(y),E=q(()=>(m==null?void 0:m.disabled.value)||t.disabled),R=q(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),S=q(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(D){var O;E.value||g.isLink.value&&(D.metaKey||D.ctrlKey||D.shiftKey||D.button!==0||n.target==="_blank")||((O=g.navigate)==null||O.call(g,D),m==null||m.toggle())}return EF(g,m==null?void 0:m.select),Et(()=>{const D=g.isLink.value?"a":t.tag,O=!!(t.prependIcon||i.prepend),V=!!(t.appendIcon||i.append),X=!!(t.icon&&t.icon!==!0);return Gi(x(D,{type:D==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":v.value,"v-btn--block":t.block,"v-btn--disabled":E.value,"v-btn--elevated":R.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},r.value,a.value,w.value,o.value,l.value,c.value,d.value,f.value,h.value,_.value,t.class],style:[L.value,s.value,u.value,p.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:E.value||void 0,href:g.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:S.value},{default:()=>{var K;return[Vu(!0,"v-btn"),!t.icon&&O&&x("span",{key:"prepend",class:"v-btn__prepend"},[i.prepend?x(yi,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},i.prepend):x(gn,{key:"prepend-icon",icon:t.prependIcon},null)]),x("span",{class:"v-btn__content","data-no-activator":""},[!i.default&&X?x(gn,{key:"content-icon",icon:t.icon},null):x(yi,{key:"content-defaults",disabled:!X,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var z;return[((z=i.default)==null?void 0:z.call(i))??t.text]}})]),!t.icon&&V&&x("span",{key:"append",class:"v-btn__append"},[i.append?x(yi,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},i.append):x(gn,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&x("span",{key:"loader",class:"v-btn__loader"},[((K=i.loader)==null?void 0:K.call(i))??x(bF,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[Dy,!E.value&&t.ripple,"",{center:!!t.icon}]])}),{group:m}}}),kE=Symbol.for("vuetify:form"),DF=He({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function IF(t){const e=vi(t,"modelValue"),n=q(()=>t.disabled),i=q(()=>t.readonly),r=At(!1),a=ke([]),o=ke([]);async function s(){const u=[];let d=!0;o.value=[],r.value=!0;for(const f of a.value){const h=await f.validate();if(h.length>0&&(d=!1,u.push({id:f.id,errorMessages:h})),!d&&t.fastFail)break}return o.value=u,r.value=!1,{valid:d,errors:o.value}}function l(){a.value.forEach(u=>u.reset())}function c(){a.value.forEach(u=>u.resetValidation())}return ft(a,()=>{let u=0,d=0;const f=[];for(const h of a.value)h.isValid===!1?(d++,f.push({id:h.id,errorMessages:h.errorMessages})):h.isValid===!0&&u++;o.value=f,e.value=d>0?!1:u===a.value.length?!0:null},{deep:!0,flush:"post"}),ln(kE,{register:u=>{let{id:d,vm:f,validate:h,reset:p,resetValidation:m}=u;a.value.some(g=>g.id===d),a.value.push({id:d,validate:h,reset:p,resetValidation:m,vm:f1(f),isValid:null,errorMessages:[]})},unregister:u=>{a.value=a.value.filter(d=>d.id!==u)},update:(u,d,f)=>{const h=a.value.find(p=>p.id===u);h&&(h.isValid=d,h.errorMessages=f)},isDisabled:n,isReadonly:i,isValidating:r,isValid:e,items:a,validateOn:Pt(t,"validateOn")}),{errors:o,isDisabled:n,isReadonly:i,isValidating:r,isValid:e,items:a,validate:s,reset:l,resetValidation:c}}function LF(){return Ct(kE,null)}const Dp=Symbol("Forwarded refs");function Ip(t,e){let n=t;for(;n;){const i=Reflect.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function Jl(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t[Dp]=n,new Proxy(t,{get(r,a){if(Reflect.has(r,a))return Reflect.get(r,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,a)){const s=Reflect.get(o.value,a);return typeof s=="function"?s.bind(o.value):s}}},has(r,a){if(Reflect.has(r,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return!0;return!1},set(r,a,o){if(Reflect.has(r,a))return Reflect.set(r,a,o);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return Reflect.set(s.value,a,o);return!1},getOwnPropertyDescriptor(r,a){var s;const o=Reflect.getOwnPropertyDescriptor(r,a);if(o)return o;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const l of n){if(!l.value)continue;const c=Ip(l.value,a)??("_"in l.value?Ip((s=l.value._)==null?void 0:s.setupState,a):void 0);if(c)return c}for(const l of n){const c=l.value&&l.value[Dp];if(!c)continue;const u=c.slice();for(;u.length;){const d=u.shift(),f=Ip(d.value,a);if(f)return f;const h=d.value&&d.value[Dp];h&&u.push(...h)}}}}})}const OF=He({...Nt(),...DF()},"VForm"),Iy=ut()({name:"VForm",props:OF(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:n,emit:i}=e;const r=IF(t),a=ke();function o(l){l.preventDefault(),r.reset()}function s(l){const c=l,u=r.validate();c.then=u.then.bind(u),c.catch=u.catch.bind(u),c.finally=u.finally.bind(u),i("submit",c),c.defaultPrevented||u.then(d=>{var h;let{valid:f}=d;f&&((h=a.value)==null||h.submit())}),c.preventDefault()}return Et(()=>{var l;return x("form",{ref:a,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,r)])}),Jl(r,a)}});function Lp(t,e){return{x:t.x+e.x,y:t.y+e.y}}function NF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function P_(t,e){if(t.side==="top"||t.side==="bottom"){const{side:n,align:i}=t,r=i==="left"?0:i==="center"?e.width/2:i==="right"?e.width:i,a=n==="top"?0:n==="bottom"?e.height:n;return Lp({x:r,y:a},e)}else if(t.side==="left"||t.side==="right"){const{side:n,align:i}=t,r=n==="left"?0:n==="right"?e.width:n,a=i==="top"?0:i==="center"?e.height/2:i==="bottom"?e.height:i;return Lp({x:r,y:a},e)}return Lp({x:e.width/2,y:e.height/2},e)}const UE={static:FF,connected:VF},kF=He({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in UE},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function UF(t,e){const n=ke({}),i=ke();un&&cs(()=>!!(e.isActive.value&&t.locationStrategy),a=>{var o,s;ft(()=>t.locationStrategy,a),pr(()=>{window.removeEventListener("resize",r),i.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof t.locationStrategy=="function"?i.value=(o=t.locationStrategy(e,t,n))==null?void 0:o.updateLocation:i.value=(s=UE[t.locationStrategy](e,t,n))==null?void 0:s.updateLocation});function r(a){var o;(o=i.value)==null||o.call(i,a)}return{contentStyles:n,updateLocation:i}}function FF(){}function BF(t,e){const n=cy(t);return e?n.x+=parseFloat(t.style.right||0):n.x-=parseFloat(t.style.left||0),n.y-=parseFloat(t.style.top||0),n}function VF(t,e,n){(Array.isArray(t.target.value)||cN(t.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:a}=sy(()=>{const p=Ym(e.location,t.isRtl.value),m=e.origin==="overlap"?p:e.origin==="auto"?bp(p):Ym(e.origin,t.isRtl.value);return p.side===m.side&&p.align===_p(m).align?{preferredAnchor:Sb(p),preferredOrigin:Sb(m)}:{preferredAnchor:p,preferredOrigin:m}}),[o,s,l,c]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>q(()=>{const m=parseFloat(e[p]);return isNaN(m)?1/0:m})),u=q(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const p=e.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});ft([t.target,t.contentEl],(p,m)=>{let[g,v]=p,[b,y]=m;b&&!Array.isArray(b)&&f.unobserve(b),g&&!Array.isArray(g)&&f.observe(g),y&&f.unobserve(y),v&&f.observe(v)},{immediate:!0}),pr(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!t.target.value||!t.contentEl.value)return;const p=hM(t.target.value),m=BF(t.contentEl.value,t.isRtl.value),g=If(t.contentEl.value),v=12;g.length||(g.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(m.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),m.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const b=g.reduce((D,O)=>{const V=O.getBoundingClientRect(),X=new rs({x:O===document.documentElement?0:V.x,y:O===document.documentElement?0:V.y,width:O.clientWidth,height:O.clientHeight});return D?new rs({x:Math.max(D.left,X.left),y:Math.max(D.top,X.top),width:Math.min(D.right,X.right)-Math.max(D.left,X.left),height:Math.min(D.bottom,X.bottom)-Math.max(D.top,X.top)}):X},void 0);b.x+=v,b.y+=v,b.width-=v*2,b.height-=v*2;let y={anchor:r.value,origin:a.value};function w(D){const O=new rs(m),V=P_(D.anchor,p),X=P_(D.origin,O);let{x:K,y:z}=NF(V,X);switch(D.anchor.side){case"top":z-=u.value[0];break;case"bottom":z+=u.value[0];break;case"left":K-=u.value[0];break;case"right":K+=u.value[0];break}switch(D.anchor.align){case"top":z-=u.value[1];break;case"bottom":z+=u.value[1];break;case"left":K-=u.value[1];break;case"right":K+=u.value[1];break}return O.x+=K,O.y+=z,O.width=Math.min(O.width,l.value),O.height=Math.min(O.height,c.value),{overflows:Mb(O,b),x:K,y:z}}let L=0,_=0;const E={x:0,y:0},R={x:!1,y:!1};let S=-1;for(;!(S++>10);){const{x:D,y:O,overflows:V}=w(y);L+=D,_+=O,m.x+=D,m.y+=O;{const X=wb(y.anchor),K=V.x.before||V.x.after,z=V.y.before||V.y.after;let Q=!1;if(["x","y"].forEach(Y=>{if(Y==="x"&&K&&!R.x||Y==="y"&&z&&!R.y){const he={anchor:{...y.anchor},origin:{...y.origin}},ne=Y==="x"?X==="y"?_p:bp:X==="y"?bp:_p;he.anchor=ne(he.anchor),he.origin=ne(he.origin);const{overflows:Z}=w(he);(Z[Y].before<=V[Y].before&&Z[Y].after<=V[Y].after||Z[Y].before+Z[Y].after<(V[Y].before+V[Y].after)/2)&&(y=he,Q=R[Y]=!0)}}),Q)continue}V.x.before&&(L+=V.x.before,m.x+=V.x.before),V.x.after&&(L-=V.x.after,m.x-=V.x.after),V.y.before&&(_+=V.y.before,m.y+=V.y.before),V.y.after&&(_-=V.y.after,m.y-=V.y.after);{const X=Mb(m,b);E.x=b.width-X.x.before-X.x.after,E.y=b.height-X.y.before-X.y.after,L+=X.x.before,m.x+=X.x.before,_+=X.y.before,m.y+=X.y.before}break}const M=wb(y.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${y.anchor.side} ${y.anchor.align}`,transformOrigin:`${y.origin.side} ${y.origin.align}`,top:_t(Op(_)),left:t.isRtl.value?void 0:_t(Op(L)),right:t.isRtl.value?_t(Op(-L)):void 0,minWidth:_t(M==="y"?Math.min(o.value,p.width):o.value),maxWidth:_t(R_(Pl(E.x,o.value===1/0?0:o.value,l.value))),maxHeight:_t(R_(Pl(E.y,s.value===1/0?0:s.value,c.value)))}),{available:E,contentBox:m}}return ft(()=>[r.value,a.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>h()),ri(()=>{const p=h();if(!p)return;const{available:m,contentBox:g}=p;g.height>m.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function Op(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function R_(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let fg=!0;const Hf=[];function HF(t){!fg||Hf.length?(Hf.push(t),hg()):(fg=!1,t(),hg())}let D_=-1;function hg(){cancelAnimationFrame(D_),D_=requestAnimationFrame(()=>{const t=Hf.shift();t&&t(),Hf.length?hg():fg=!0})}const cf={none:null,close:GF,block:jF,reposition:XF},zF=He({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in cf}},"VOverlay-scroll-strategies");function WF(t,e){if(!un)return;let n;Na(async()=>{n==null||n.stop(),e.isActive.value&&t.scrollStrategy&&(n=Nv(),await new Promise(i=>setTimeout(i)),n.active&&n.run(()=>{var i;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,n):(i=cf[t.scrollStrategy])==null||i.call(cf,e,t,n)}))}),pr(()=>{n==null||n.stop()})}function GF(t){function e(n){t.isActive.value=!1}FE(t.targetEl.value??t.contentEl.value,e)}function jF(t,e){var o;const n=(o=t.root.value)==null?void 0:o.offsetParent,i=[...new Set([...If(t.targetEl.value,e.contained?n:void 0),...If(t.contentEl.value,e.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,a=(s=>hy(s)&&s)(n||document.documentElement);a&&t.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",_t(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",_t(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",_t(r)),s.classList.add("v-overlay-scroll-blocked")}),pr(()=>{i.forEach((s,l)=>{const c=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(s.style.getPropertyValue("--v-body-scroll-y")),d=s.style.scrollBehavior;s.style.scrollBehavior="auto",s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-c,s.scrollTop=-u,s.style.scrollBehavior=d}),a&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function XF(t,e,n){let i=!1,r=-1,a=-1;function o(s){HF(()=>{var u,d;const l=performance.now();(d=(u=t.updateLocation).value)==null||d.call(u,s),i=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{FE(t.targetEl.value??t.contentEl.value,s=>{i?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),pr(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(r)})}function FE(t,e){const n=[document,...If(t)];n.forEach(i=>{i.addEventListener("scroll",e,{passive:!0})}),pr(()=>{n.forEach(i=>{i.removeEventListener("scroll",e)})})}const YF=Symbol.for("vuetify:v-menu"),qF=He({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function KF(t,e){let n=()=>{};function i(o){n==null||n();const s=Number(o?t.openDelay:t.closeDelay);return new Promise(l=>{n=PO(s,()=>{e==null||e(o),l(o)})})}function r(){return i(!0)}function a(){return i(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:a}}const QF=He({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...qF()},"VOverlay-activator");function ZF(t,e){let{isActive:n,isTop:i,contentEl:r}=e;const a=Qn("useActivator"),o=ke();let s=!1,l=!1,c=!0;const u=q(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),d=q(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!u.value),{runOpenDelay:f,runCloseDelay:h}=KF(t,R=>{R===(t.openOnHover&&s||u.value&&l)&&!(t.openOnHover&&n.value&&!i.value)&&(n.value!==R&&(c=!0),n.value=R)}),p=ke(),m={onClick:R=>{R.stopPropagation(),o.value=R.currentTarget||R.target,n.value||(p.value=[R.clientX,R.clientY]),n.value=!n.value},onMouseenter:R=>{var S;(S=R.sourceCapabilities)!=null&&S.firesTouchEvents||(s=!0,o.value=R.currentTarget||R.target,f())},onMouseleave:R=>{s=!1,h()},onFocus:R=>{CO(R.target,":focus-visible")!==!1&&(l=!0,R.stopPropagation(),o.value=R.currentTarget||R.target,f())},onBlur:R=>{l=!1,R.stopPropagation(),h()}},g=q(()=>{const R={};return d.value&&(R.onClick=m.onClick),t.openOnHover&&(R.onMouseenter=m.onMouseenter,R.onMouseleave=m.onMouseleave),u.value&&(R.onFocus=m.onFocus,R.onBlur=m.onBlur),R}),v=q(()=>{const R={};if(t.openOnHover&&(R.onMouseenter=()=>{s=!0,f()},R.onMouseleave=()=>{s=!1,h()}),u.value&&(R.onFocusin=()=>{l=!0,f()},R.onFocusout=()=>{l=!1,h()}),t.closeOnContentClick){const S=Ct(YF,null);R.onClick=()=>{n.value=!1,S==null||S.closeParents()}}return R}),b=q(()=>{const R={};return t.openOnHover&&(R.onMouseenter=()=>{c&&(s=!0,c=!1,f())},R.onMouseleave=()=>{s=!1,h()}),R});ft(i,R=>{var S;R&&(t.openOnHover&&!s&&(!u.value||!l)||u.value&&!l&&(!t.openOnHover||!s))&&!((S=r.value)!=null&&S.contains(document.activeElement))&&(n.value=!1)}),ft(n,R=>{R||setTimeout(()=>{p.value=void 0})},{flush:"post"});const y=Xm();Na(()=>{y.value&&ri(()=>{o.value=y.el})});const w=Xm(),L=q(()=>t.target==="cursor"&&p.value?p.value:w.value?w.el:BE(t.target,a)||o.value),_=q(()=>Array.isArray(L.value)?void 0:L.value);let E;return ft(()=>!!t.activator,R=>{R&&un?(E=Nv(),E.run(()=>{$F(t,a,{activatorEl:o,activatorEvents:g})})):E&&E.stop()},{flush:"post",immediate:!0}),pr(()=>{E==null||E.stop()}),{activatorEl:o,activatorRef:y,target:L,targetEl:_,targetRef:w,activatorEvents:g,contentEvents:v,scrimEvents:b}}function $F(t,e,n){let{activatorEl:i,activatorEvents:r}=n;ft(()=>t.activator,(l,c)=>{if(c&&l!==c){const u=s(c);u&&o(u)}l&&ri(()=>a())},{immediate:!0}),ft(()=>t.activatorProps,()=>{a()}),pr(()=>{o()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;l&&DO(l,Ye(r.value,c))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;l&&IO(l,Ye(r.value,c))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const c=BE(l,e);return i.value=(c==null?void 0:c.nodeType)===Node.ELEMENT_NODE?c:void 0,i.value}}function BE(t,e){var i,r;if(!t)return;let n;if(t==="parent"){let a=(r=(i=e==null?void 0:e.proxy)==null?void 0:i.$el)==null?void 0:r.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;n=a}else typeof t=="string"?n=document.querySelector(t):"$el"in t?n=t.$el:n=t;return n}function JF(){if(!un)return At(!1);const{ssr:t}=CM();if(t){const e=At(!1);return ir(()=>{e.value=!0}),e}else return At(!0)}const VE=He({eager:Boolean},"lazy");function HE(t,e){const n=At(!1),i=q(()=>n.value||t.eager||e.value);ft(e,()=>n.value=!0);function r(){t.eager||(n.value=!1)}return{isBooted:n,hasContent:i,onAfterLeave:r}}function zu(){const e=Qn("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const I_=Symbol.for("vuetify:stack"),Sc=mn([]);function eB(t,e,n){const i=Qn("useStack"),r=!n,a=Ct(I_,void 0),o=mn({activeChildren:new Set});ln(I_,o);const s=At(+e.value);cs(t,()=>{var d;const u=(d=Sc.at(-1))==null?void 0:d[1];s.value=u?u+10:+e.value,r&&Sc.push([i.uid,s.value]),a==null||a.activeChildren.add(i.uid),pr(()=>{if(r){const f=ot(Sc).findIndex(h=>h[0]===i.uid);Sc.splice(f,1)}a==null||a.activeChildren.delete(i.uid)})});const l=At(!0);r&&Na(()=>{var d;const u=((d=Sc.at(-1))==null?void 0:d[0])===i.uid;setTimeout(()=>l.value=u)});const c=q(()=>!o.activeChildren.size);return{globalTop:jl(l),localTop:c,stackStyles:q(()=>({zIndex:s.value}))}}function tB(t){return{teleportTarget:q(()=>{const n=t();if(n===!0||!un)return;const i=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(i==null)return;let r=[...i.children].find(a=>a.matches(".v-overlay-container"));return r||(r=document.createElement("div"),r.className="v-overlay-container",i.appendChild(r)),r})}}const Fh=He({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),_a=(t,e)=>{let{slots:n}=e;const{transition:i,disabled:r,group:a,...o}=t,{component:s=a?iy:Ca,...l}=typeof i=="object"?i:{};return Cn(s,Ye(typeof i=="string"?{name:r?"":i}:l,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:r,group:a}).filter(c=>{let[u,d]=c;return d!==void 0})),o),n)};function nB(){return!0}function zE(t,e,n){if(!t||WE(t,n)===!1)return!1;const i=_M(e);if(typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&i.host===t.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(e),!r.some(a=>a==null?void 0:a.contains(t.target))}function WE(t,e){return(typeof e.value=="object"&&e.value.closeConditional||nB)(t)}function iB(t,e,n){const i=typeof n.value=="function"?n.value:n.value.handler;t.shadowTarget=t.target,e._clickOutside.lastMousedownWasOutside&&zE(t,e,n)&&setTimeout(()=>{WE(t,n)&&i&&i(t)},0)}function L_(t,e){const n=_M(t);e(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&e(n)}const rB={mounted(t,e){const n=r=>iB(r,t,e),i=r=>{t._clickOutside.lastMousedownWasOutside=zE(r,t,e)};L_(t,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",i,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:n,onMousedown:i}},beforeUnmount(t,e){t._clickOutside&&(L_(t,n=>{var a;if(!n||!((a=t._clickOutside)!=null&&a[e.instance.$.uid]))return;const{onClick:i,onMousedown:r}=t._clickOutside[e.instance.$.uid];n.removeEventListener("click",i,!0),n.removeEventListener("mousedown",r,!0)}),delete t._clickOutside[e.instance.$.uid])}};function aB(t){const{modelValue:e,color:n,...i}=t;return x(Ca,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&x("div",Ye({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},i),null)]})}const Bh=He({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...QF(),...Nt(),...Ua(),...VE(),...kF(),...zF(),...ti(),...Fh()},"VOverlay"),Ll=ut()({name:"VOverlay",directives:{ClickOutside:rB},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Bh()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:n,attrs:i,emit:r}=e;const a=Qn("VOverlay"),o=ke(),s=ke(),l=ke(),c=vi(t,"modelValue"),u=q({get:()=>c.value,set:re=>{re&&t.disabled||(c.value=re)}}),{themeClasses:d}=ai(t),{rtlClasses:f,isRtl:h}=Lr(),{hasContent:p,onAfterLeave:m}=HE(t,u),g=Aa(q(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:v,localTop:b,stackStyles:y}=eB(u,Pt(t,"zIndex"),t._disableGlobalStack),{activatorEl:w,activatorRef:L,target:_,targetEl:E,targetRef:R,activatorEvents:S,contentEvents:M,scrimEvents:D}=ZF(t,{isActive:u,isTop:b,contentEl:l}),{teleportTarget:O}=tB(()=>{var ce,me,Ce;const re=t.attach||t.contained;if(re)return re;const W=((ce=w==null?void 0:w.value)==null?void 0:ce.getRootNode())||((Ce=(me=a.proxy)==null?void 0:me.$el)==null?void 0:Ce.getRootNode());return W instanceof ShadowRoot?W:!1}),{dimensionStyles:V}=Fa(t),X=JF(),{scopeId:K}=zu();ft(()=>t.disabled,re=>{re&&(u.value=!1)});const{contentStyles:z,updateLocation:Q}=UF(t,{isRtl:h,contentEl:l,target:_,isActive:u});WF(t,{root:o,contentEl:l,targetEl:E,isActive:u,updateLocation:Q});function Y(re){r("click:outside",re),t.persistent?Te():u.value=!1}function he(re){return u.value&&v.value&&(!t.scrim||re.target===s.value||re instanceof MouseEvent&&re.shadowTarget===s.value)}un&&ft(u,re=>{re?window.addEventListener("keydown",ne):window.removeEventListener("keydown",ne)},{immediate:!0}),Ir(()=>{un&&window.removeEventListener("keydown",ne)});function ne(re){var W,ce;re.key==="Escape"&&v.value&&(t.persistent?Te():(u.value=!1,(W=l.value)!=null&&W.contains(document.activeElement)&&((ce=w.value)==null||ce.focus())))}const Z=wF();cs(()=>t.closeOnBack,()=>{MF(Z,re=>{v.value&&u.value?(re(!1),t.persistent?Te():u.value=!1):re()})});const _e=ke();ft(()=>u.value&&(t.absolute||t.contained)&&O.value==null,re=>{if(re){const W=sN(o.value);W&&W!==document.scrollingElement&&(_e.value=W.scrollTop)}});function Te(){t.noClickAnimation||l.value&&Zo(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:hu})}function ee(){r("afterEnter")}function le(){m(),r("afterLeave")}return Et(()=>{var re;return x(Mt,null,[(re=n.activator)==null?void 0:re.call(n,{isActive:u.value,targetRef:R,props:Ye({ref:L},S.value,t.activatorProps)}),X.value&&p.value&&x(uL,{disabled:!O.value,to:O.value},{default:()=>[x("div",Ye({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":u.value,"v-overlay--contained":t.contained},d.value,f.value,t.class],style:[y.value,{"--v-overlay-opacity":t.opacity,top:_t(_e.value)},t.style],ref:o},K,i),[x(aB,Ye({color:g,modelValue:u.value&&!!t.scrim,ref:s},D.value),null),x(_a,{appear:!0,persisted:!0,transition:t.transition,target:_.value,onAfterEnter:ee,onAfterLeave:le},{default:()=>{var W;return[Gi(x("div",Ye({ref:l,class:["v-overlay__content",t.contentClass],style:[V.value,z.value]},M.value,t.contentProps),[(W=n.default)==null?void 0:W.call(n,{isActive:u})]),[[vs,u.value],[gs("click-outside"),{handler:Y,closeConditional:he,include:()=>[w.value]}]])]}})])]})])}),{activatorEl:w,scrimEl:s,target:_,animateClick:Te,contentEl:l,globalTop:v,localTop:b,updateLocation:Q}}});function oB(t){const e=At(t());let n=-1;function i(){clearInterval(n)}function r(){i(),ri(()=>e.value=t())}function a(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(i(),e.value<=0)return;const c=performance.now();n=window.setInterval(()=>{const u=performance.now()-c+l;e.value=Math.max(t()-u,0),e.value<=0&&i()},l)}return pr(i),{clear:i,time:e,start:a,reset:r}}const sB=He({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Uh({location:"bottom"}),...Ay(),...Nr(),..._s(),...ti(),...Xl(Bh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),zf=ut()({name:"VSnackbar",props:sB(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const i=vi(t,"modelValue"),{positionClasses:r}=Cy(t),{scopeId:a}=zu(),{themeClasses:o}=ai(t),{colorClasses:s,colorStyles:l,variantClasses:c}=Hu(t),{roundedClasses:u}=kr(t),d=oB(()=>Number(t.timeout)),f=ke(),h=ke(),p=At(!1),m=At(0),g=ke(),v=Ct(Uf,void 0);cs(()=>!!v,()=>{const D=LM();Na(()=>{g.value=D.mainStyles.value})}),ft(i,y),ft(()=>t.timeout,y),ir(()=>{i.value&&y()});let b=-1;function y(){d.reset(),window.clearTimeout(b);const D=Number(t.timeout);if(!i.value||D===-1)return;const O=ay(h.value);d.start(O),b=window.setTimeout(()=>{i.value=!1},D)}function w(){d.reset(),window.clearTimeout(b)}function L(){p.value=!0,w()}function _(){p.value=!1,y()}function E(D){m.value=D.touches[0].clientY}function R(D){Math.abs(m.value-D.changedTouches[0].clientY)>50&&(i.value=!1)}function S(){p.value&&_()}const M=q(()=>t.location.split(" ").reduce((D,O)=>(D[`v-snackbar--${O}`]=!0,D),{}));return Et(()=>{const D=Ll.filterProps(t),O=!!(n.default||n.text||t.text);return x(Ll,Ye({ref:f,class:["v-snackbar",{"v-snackbar--active":i.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,r.value,t.class],style:[g.value,t.style]},D,{modelValue:i.value,"onUpdate:modelValue":V=>i.value=V,contentProps:Ye({class:["v-snackbar__wrapper",o.value,s.value,u.value,c.value],style:[l.value],onPointerenter:L,onPointerleave:_},D.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:E,onTouchend:R,onAfterLeave:S},a),{default:()=>{var V,X;return[Vu(!1,"v-snackbar"),t.timer&&!p.value&&x("div",{key:"timer",class:"v-snackbar__timer"},[x(EE,{ref:h,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":d.time.value},null)]),O&&x("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((V=n.text)==null?void 0:V.call(n))??t.text,(X=n.default)==null?void 0:X.call(n)]),n.actions&&x(yi,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[x("div",{class:"v-snackbar__actions"},[n.actions({isActive:i})])]})]},activator:n.activator})}),Jl({},f)}}),lB=He({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function rr(t,e,n){return ut()({name:t,props:lB({mode:n,origin:e}),setup(i,r){let{slots:a}=r;const o={onBeforeEnter(s){i.origin&&(s.style.transformOrigin=i.origin)},onLeave(s){if(i.leaveAbsolute){const{offsetTop:l,offsetLeft:c,offsetWidth:u,offsetHeight:d}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${c}px`,s.style.width=`${u}px`,s.style.height=`${d}px`}i.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(i.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:c,left:u,width:d,height:f}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=c||"",s.style.left=u||"",s.style.width=d||"",s.style.height=f||""}}};return()=>{const s=i.group?iy:Ca;return Cn(s,{name:i.disabled?"":t,css:!i.disabled,...i.group?void 0:{mode:i.mode},...i.disabled?{}:o},a.default)}}})}function GE(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ut()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(i,r){let{slots:a}=r;const o=i.group?iy:Ca;return()=>Cn(o,{name:i.disabled?"":t,css:!i.disabled,...i.disabled?{}:e},a.default)}})}function jE(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",i=nr(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[i]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,t&&o._parent&&o._parent.classList.add(t),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:a,onEnterCancelled:a,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[i]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(o){t&&o._parent&&o._parent.classList.remove(t),a(o)}function a(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const cB=He({target:[Object,Array]},"v-dialog-transition"),uB=ut()({name:"VDialogTransition",props:cB(),setup(t,e){let{slots:n}=e;const i={onBeforeEnter(r){r.style.pointerEvents="none",r.style.visibility="hidden"},async onEnter(r,a){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),r.style.visibility="";const{x:o,y:s,sx:l,sy:c,speed:u}=N_(t.target,r),d=Zo(r,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${c})`,opacity:0},{}],{duration:225*u,easing:aN});(f=O_(r))==null||f.forEach(h=>{Zo(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:hu})}),d.finished.then(()=>a())},onAfterEnter(r){r.style.removeProperty("pointer-events")},onBeforeLeave(r){r.style.pointerEvents="none"},async onLeave(r,a){var f;await new Promise(h=>requestAnimationFrame(h));const{x:o,y:s,sx:l,sy:c,speed:u}=N_(t.target,r);Zo(r,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${c})`,opacity:0}],{duration:125*u,easing:oN}).finished.then(()=>a()),(f=O_(r))==null||f.forEach(h=>{Zo(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:hu})})},onAfterLeave(r){r.style.removeProperty("pointer-events")}};return()=>t.target?x(Ca,Ye({name:"dialog-transition"},i,{css:!1}),n):x(Ca,{name:"dialog-transition"},n)}});function O_(t){var n;const e=(n=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return e&&[...e]}function N_(t,e){const n=hM(t),i=cy(e),[r,a]=getComputedStyle(e).transformOrigin.split(" ").map(v=>parseFloat(v)),[o,s]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let c=n.top+n.height/2;o==="top"||s==="top"?c-=n.height/2:(o==="bottom"||s==="bottom")&&(c+=n.height/2);const u=n.width/i.width,d=n.height/i.height,f=Math.max(1,u,d),h=u/f||0,p=d/f||0,m=i.width*i.height/(window.innerWidth*window.innerHeight),g=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:l-(r+i.left),y:c-(a+i.top),sx:h,sy:p,speed:g}}rr("fab-transition","center center","out-in");rr("dialog-bottom-transition");rr("dialog-top-transition");const k_=rr("fade-transition");rr("scale-transition");rr("scroll-x-transition");rr("scroll-x-reverse-transition");rr("scroll-y-transition");rr("scroll-y-reverse-transition");rr("slide-x-transition");rr("slide-x-reverse-transition");const XE=rr("slide-y-transition");rr("slide-y-reverse-transition");const YE=GE("expand-transition",jE()),dB=GE("expand-x-transition",jE("",!0)),fB=He({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Nt(),...Fh({transition:{component:XE}})},"VCounter"),hB=ut()({name:"VCounter",functional:!0,props:fB(),setup(t,e){let{slots:n}=e;const i=q(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Et(()=>x(_a,{transition:t.transition},{default:()=>[Gi(x("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[n.default?n.default({counter:i.value,max:t.max,value:t.value}):i.value]),[[vs,t.active]])]})),{}}}),pB=He({text:String,onClick:hr(),...Nt(),...ti()},"VLabel"),mB=ut()({name:"VLabel",props:pB(),setup(t,e){let{slots:n}=e;return Et(()=>{var i;return x("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(i=n.default)==null?void 0:i.call(n)])}),{}}}),gB=He({floating:Boolean,...Nt()},"VFieldLabel"),yd=ut()({name:"VFieldLabel",props:gB(),setup(t,e){let{slots:n}=e;return Et(()=>x(mB,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},n)),{}}});function qE(t){const{t:e}=MM();function n(i){let{name:r}=i;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[r],o=t[`onClick:${r}`],s=o&&a?e(`$vuetify.input.${a}`,t.label??""):void 0;return x(gn,{icon:t[`${r}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const KE=He({focused:Boolean,"onUpdate:focused":hr()},"focus");function QE(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia();const n=vi(t,"focused"),i=q(()=>({[`${e}--focused`]:n.value}));function r(){n.value=!0}function a(){n.value=!1}return{focusClasses:i,isFocused:n,focus:r,blur:a}}const vB=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ZE=He({appendInnerIcon:Ln,bgColor:String,clearable:Boolean,clearIcon:{type:Ln,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Ln,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>vB.includes(t)},"onClick:clear":hr(),"onClick:appendInner":hr(),"onClick:prependInner":hr(),...Nt(),...Ey(),...Nr(),...ti()},"VField"),$E=ut()({name:"VField",inheritAttrs:!1,props:{id:String,...KE(),...ZE()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:n,emit:i,slots:r}=e;const{themeClasses:a}=ai(t),{loaderClasses:o}=Ty(t),{focusClasses:s,isFocused:l,focus:c,blur:u}=QE(t),{InputIcon:d}=qE(t),{roundedClasses:f}=kr(t),{rtlClasses:h}=Lr(),p=q(()=>t.dirty||t.active),m=q(()=>!t.singleLine&&!!(t.label||r.label)),g=To(),v=q(()=>t.id||`input-${g}`),b=q(()=>`${v.value}-messages`),y=ke(),w=ke(),L=ke(),_=q(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:E,backgroundColorStyles:R}=Aa(Pt(t,"bgColor")),{textColorClasses:S,textColorStyles:M}=Pa(q(()=>t.error||t.disabled?void 0:p.value&&l.value?t.color:t.baseColor));ft(p,X=>{if(m.value){const K=y.value.$el,z=w.value.$el;requestAnimationFrame(()=>{const Q=cy(K),Y=z.getBoundingClientRect(),he=Y.x-Q.x,ne=Y.y-Q.y-(Q.height/2-Y.height/2),Z=Y.width/.75,_e=Math.abs(Z-Q.width)>1?{maxWidth:_t(Z)}:void 0,Te=getComputedStyle(K),ee=getComputedStyle(z),le=parseFloat(Te.transitionDuration)*1e3||150,re=parseFloat(ee.getPropertyValue("--v-field-label-scale")),W=ee.getPropertyValue("color");K.style.visibility="visible",z.style.visibility="hidden",Zo(K,{transform:`translate(${he}px, ${ne}px) scale(${re})`,color:W,..._e},{duration:le,easing:hu,direction:X?"normal":"reverse"}).finished.then(()=>{K.style.removeProperty("visibility"),z.style.removeProperty("visibility")})})}},{flush:"post"});const D=q(()=>({isActive:p,isFocused:l,controlRef:L,blur:u,focus:c}));function O(X){X.target!==document.activeElement&&X.preventDefault()}function V(X){var K;X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),X.stopPropagation(),(K=t["onClick:clear"])==null||K.call(t,new MouseEvent("click")))}return Et(()=>{var he,ne,Z;const X=t.variant==="outlined",K=!!(r["prepend-inner"]||t.prependInnerIcon),z=!!(t.clearable||r.clear),Q=!!(r["append-inner"]||t.appendInnerIcon||z),Y=()=>r.label?r.label({...D.value,label:t.label,props:{for:v.value}}):t.label;return x("div",Ye({class:["v-field",{"v-field--active":p.value,"v-field--appended":Q,"v-field--center-affix":t.centerAffix??!_.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":K,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!Y(),[`v-field--variant-${t.variant}`]:!0},a.value,E.value,s.value,o.value,f.value,h.value,t.class],style:[R.value,t.style],onClick:O},n),[x("div",{class:"v-field__overlay"},null),x(TE,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:r.loader}),K&&x("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&x(d,{key:"prepend-icon",name:"prependInner"},null),(he=r["prepend-inner"])==null?void 0:he.call(r,D.value)]),x("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&m.value&&x(yd,{key:"floating-label",ref:w,class:[S.value],floating:!0,for:v.value,style:M.value},{default:()=>[Y()]}),x(yd,{ref:y,for:v.value},{default:()=>[Y()]}),(ne=r.default)==null?void 0:ne.call(r,{...D.value,props:{id:v.value,class:"v-field__input","aria-describedby":b.value},focus:c,blur:u})]),z&&x(dB,{key:"clear"},{default:()=>[Gi(x("div",{class:"v-field__clearable",onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()}},[x(yi,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[r.clear?r.clear({...D.value,props:{onKeydown:V,onFocus:c,onBlur:u,onClick:t["onClick:clear"]}}):x(d,{name:"clear",onKeydown:V,onFocus:c,onBlur:u},null)]})]),[[vs,t.dirty]])]}),Q&&x("div",{key:"append",class:"v-field__append-inner"},[(Z=r["append-inner"])==null?void 0:Z.call(r,D.value),t.appendInnerIcon&&x(d,{key:"append-icon",name:"appendInner"},null)]),x("div",{class:["v-field__outline",S.value],style:M.value},[X&&x(Mt,null,[x("div",{class:"v-field__outline__start"},null),m.value&&x("div",{class:"v-field__outline__notch"},[x(yd,{ref:w,floating:!0,for:v.value},{default:()=>[Y()]})]),x("div",{class:"v-field__outline__end"},null)]),_.value&&m.value&&x(yd,{ref:w,floating:!0,for:v.value},{default:()=>[Y()]})])])}),{controlRef:L}}});function yB(t){const e=Object.keys($E.props).filter(n=>!oy(n)&&n!=="class"&&n!=="style");return sM(t,e)}const bB=He({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Nt(),...Fh({transition:{component:XE,leaveAbsolute:!0,group:!0}})},"VMessages"),_B=ut()({name:"VMessages",props:bB(),setup(t,e){let{slots:n}=e;const i=q(()=>ns(t.messages)),{textColorClasses:r,textColorStyles:a}=Pa(q(()=>t.color));return Et(()=>x(_a,{transition:t.transition,tag:"div",class:["v-messages",r.value,t.class],style:[a.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&i.value.map((o,s)=>x("div",{class:"v-messages__message",key:`${s}-${i.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),xB=He({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...KE()},"validation");function SB(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:To();const i=vi(t,"modelValue"),r=q(()=>t.validationValue===void 0?i.value:t.validationValue),a=LF(),o=ke([]),s=At(!0),l=q(()=>!!(ns(i.value===""?null:i.value).length||ns(r.value===""?null:r.value).length)),c=q(()=>!!(t.disabled??(a==null?void 0:a.isDisabled.value))),u=q(()=>!!(t.readonly??(a==null?void 0:a.isReadonly.value))),d=q(()=>{var L;return(L=t.errorMessages)!=null&&L.length?ns(t.errorMessages).concat(o.value).slice(0,Math.max(0,+t.maxErrors)):o.value}),f=q(()=>{let L=(t.validateOn??(a==null?void 0:a.validateOn.value))||"input";L==="lazy"&&(L="input lazy"),L==="eager"&&(L="input eager");const _=new Set((L==null?void 0:L.split(" "))??[]);return{input:_.has("input"),blur:_.has("blur")||_.has("input")||_.has("invalid-input"),invalidInput:_.has("invalid-input"),lazy:_.has("lazy"),eager:_.has("eager")}}),h=q(()=>{var L;return t.error||(L=t.errorMessages)!=null&&L.length?!1:t.rules.length?s.value?o.value.length||f.value.lazy?null:!0:!o.value.length:!0}),p=At(!1),m=q(()=>({[`${e}--error`]:h.value===!1,[`${e}--dirty`]:l.value,[`${e}--disabled`]:c.value,[`${e}--readonly`]:u.value})),g=Qn("validation"),v=q(()=>t.name??Ai(n));Yv(()=>{a==null||a.register({id:v.value,vm:g,validate:w,reset:b,resetValidation:y})}),Ir(()=>{a==null||a.unregister(v.value)}),ir(async()=>{f.value.lazy||await w(!f.value.eager),a==null||a.update(v.value,h.value,d.value)}),cs(()=>f.value.input||f.value.invalidInput&&h.value===!1,()=>{ft(r,()=>{if(r.value!=null)w();else if(t.focused){const L=ft(()=>t.focused,_=>{_||w(),L()})}})}),cs(()=>f.value.blur,()=>{ft(()=>t.focused,L=>{L||w()})}),ft([h,d],()=>{a==null||a.update(v.value,h.value,d.value)});async function b(){i.value=null,await ri(),await y()}async function y(){s.value=!0,f.value.lazy?o.value=[]:await w(!f.value.eager)}async function w(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _=[];p.value=!0;for(const E of t.rules){if(_.length>=+(t.maxErrors??1))break;const S=await(typeof E=="function"?E:()=>E)(r.value);if(S!==!0){if(S!==!1&&typeof S!="string"){console.warn(`${S} is not a valid value. Rule functions must return boolean true or a string.`);continue}_.push(S||"")}}return o.value=_,p.value=!1,s.value=L,o.value}return{errorMessages:d,isDirty:l,isDisabled:c,isReadonly:u,isPristine:s,isValid:h,isValidating:p,reset:b,resetValidation:y,validate:w,validationClasses:m}}const JE=He({id:String,appendIcon:Ln,centerAffix:{type:Boolean,default:!0},prependIcon:Ln,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":hr(),"onClick:append":hr(),...Nt(),...ka(),...SO(Ua(),["maxWidth","minWidth","width"]),...ti(),...xB()},"VInput"),U_=ut()({name:"VInput",props:{...JE()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:n,slots:i,emit:r}=e;const{densityClasses:a}=Ao(t),{dimensionStyles:o}=Fa(t),{themeClasses:s}=ai(t),{rtlClasses:l}=Lr(),{InputIcon:c}=qE(t),u=To(),d=q(()=>t.id||`input-${u}`),f=q(()=>`${d.value}-messages`),{errorMessages:h,isDirty:p,isDisabled:m,isReadonly:g,isPristine:v,isValid:b,isValidating:y,reset:w,resetValidation:L,validate:_,validationClasses:E}=SB(t,"v-input",d),R=q(()=>({id:d,messagesId:f,isDirty:p,isDisabled:m,isReadonly:g,isPristine:v,isValid:b,isValidating:y,reset:w,resetValidation:L,validate:_})),S=q(()=>{var M;return(M=t.errorMessages)!=null&&M.length||!v.value&&h.value.length?h.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Et(()=>{var X,K,z,Q;const M=!!(i.prepend||t.prependIcon),D=!!(i.append||t.appendIcon),O=S.value.length>0,V=!t.hideDetails||t.hideDetails==="auto"&&(O||!!i.details);return x("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},a.value,s.value,l.value,E.value,t.class],style:[o.value,t.style]},[M&&x("div",{key:"prepend",class:"v-input__prepend"},[(X=i.prepend)==null?void 0:X.call(i,R.value),t.prependIcon&&x(c,{key:"prepend-icon",name:"prepend"},null)]),i.default&&x("div",{class:"v-input__control"},[(K=i.default)==null?void 0:K.call(i,R.value)]),D&&x("div",{key:"append",class:"v-input__append"},[t.appendIcon&&x(c,{key:"append-icon",name:"append"},null),(z=i.append)==null?void 0:z.call(i,R.value)]),V&&x("div",{class:"v-input__details"},[x(_B,{id:f.value,active:O,messages:S.value},{message:i.message}),(Q=i.details)==null?void 0:Q.call(i,R.value)])])}),{reset:w,resetValidation:L,validate:_,isValid:b,errorMessages:h}}});function wB(t,e){if(!ry)return;const n=e.modifiers||{},i=e.value,{handler:r,options:a}=typeof i=="object"?i:{handler:i,options:{}},o=new IntersectionObserver(function(){var d;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const c=(d=t._observe)==null?void 0:d[e.instance.$.uid];if(!c)return;const u=s.some(f=>f.isIntersecting);r&&(!n.quiet||c.init)&&(!n.once||u||c.init)&&r(u,s,l),u&&n.once?eT(t,e):c.init=!0},a);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:o},o.observe(t)}function eT(t,e){var i;const n=(i=t._observe)==null?void 0:i[e.instance.$.uid];n&&(n.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const tT={mounted:wB,unmounted:eT},MB=["color","file","time","date","datetime-local","week","month"],EB=He({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...JE(),...ZE()},"VTextField"),go=ut()({name:"VTextField",directives:{Intersect:tT},inheritAttrs:!1,props:EB(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:n,emit:i,slots:r}=e;const a=vi(t,"modelValue"),{isFocused:o,focus:s,blur:l}=QE(t),c=q(()=>typeof t.counterValue=="function"?t.counterValue(a.value):typeof t.counterValue=="number"?t.counterValue:(a.value??"").toString().length),u=q(()=>{if(n.maxlength)return n.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),d=q(()=>["plain","underlined"].includes(t.variant));function f(_,E){var R,S;!t.autofocus||!_||(S=(R=E[0].target)==null?void 0:R.focus)==null||S.call(R)}const h=ke(),p=ke(),m=ke(),g=q(()=>MB.includes(t.type)||t.persistentPlaceholder||o.value||t.active);function v(){var _;m.value!==document.activeElement&&((_=m.value)==null||_.focus()),o.value||s()}function b(_){i("mousedown:control",_),_.target!==m.value&&(v(),_.preventDefault())}function y(_){v(),i("click:control",_)}function w(_){_.stopPropagation(),v(),ri(()=>{a.value=null,TO(t["onClick:clear"],_)})}function L(_){var R;const E=_.target;if(a.value=E.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const S=[E.selectionStart,E.selectionEnd];ri(()=>{E.selectionStart=S[0],E.selectionEnd=S[1]})}}return Et(()=>{const _=!!(r.counter||t.counter!==!1&&t.counter!=null),E=!!(_||r.details),[R,S]=MO(n),{modelValue:M,...D}=U_.filterProps(t),O=yB(t);return x(U_,Ye({ref:h,modelValue:a.value,"onUpdate:modelValue":V=>a.value=V,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":d.value},t.class],style:t.style},R,D,{centerAffix:!d.value,focused:o.value}),{...r,default:V=>{let{id:X,isDisabled:K,isDirty:z,isReadonly:Q,isValid:Y}=V;return x($E,Ye({ref:p,onMousedown:b,onClick:y,"onClick:clear":w,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},O,{id:X.value,active:g.value||z.value,dirty:z.value||t.dirty,disabled:K.value,focused:o.value,error:Y.value===!1}),{...r,default:he=>{let{props:{class:ne,...Z}}=he;const _e=Gi(x("input",Ye({ref:m,value:a.value,onInput:L,autofocus:t.autofocus,readonly:Q.value,disabled:K.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:v,onBlur:l},Z,S),null),[[gs("intersect"),{handler:f},null,{once:!0}]]);return x(Mt,null,[t.prefix&&x("span",{class:"v-text-field__prefix"},[x("span",{class:"v-text-field__prefix__text"},[t.prefix])]),r.default?x("div",{class:ne,"data-no-activator":""},[r.default(),_e]):Cr(_e,{class:ne}),t.suffix&&x("span",{class:"v-text-field__suffix"},[x("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:E?V=>{var X;return x(Mt,null,[(X=r.details)==null?void 0:X.call(r,V),_&&x(Mt,null,[x("span",null,null),x(hB,{active:t.persistentCounter||o.value,value:c.value,max:u.value,disabled:t.disabled},r.counter)])])}:void 0})}),Jl({},h,p,m)}}),TB={data(){return{valid:!1,showOldPassword:!1,showNewPassword:!1,form:{username:"",old_password:"",new_password:""},snackbar:{show:!1,message:"",color:""},rules:{required:t=>!!t||"Campo requerido.",min:t=>t.length>=6||"Mínimo 6 caracteres"}}},methods:{async submitForm(){var t,e;if(this.$refs.form.validate())try{await Pi.put("/users/change-password",{username:this.form.username,old_password:this.form.old_password,new_password:this.form.new_password}),this.showSnackbar("Contraseña actualizada con éxito","success")}catch(n){const i=((e=(t=n.response)==null?void 0:t.data)==null?void 0:e.detail)||"Ocurrió un error";this.showSnackbar(i,"error")}},showSnackbar(t,e){this.snackbar.message=t,this.snackbar.color=e,this.snackbar.show=!0}}};function AB(t,e,n,i,r,a){return Ve(),Wt(Iy,{modelValue:r.valid,"onUpdate:modelValue":e[7]||(e[7]=o=>r.valid=o),ref:"form"},{default:$(()=>[x(go,{label:"Nombre de usuario",modelValue:r.form.username,"onUpdate:modelValue":e[0]||(e[0]=o=>r.form.username=o),rules:[r.rules.required],required:""},null,8,["modelValue","rules"]),x(go,{label:"Contraseña anterior",modelValue:r.form.old_password,"onUpdate:modelValue":e[1]||(e[1]=o=>r.form.old_password=o),rules:[r.rules.required],"append-icon":r.showOldPassword?"mdi-eye":"mdi-eye-off",type:r.showOldPassword?"text":"password","onClick:append":e[2]||(e[2]=o=>r.showOldPassword=!r.showOldPassword),required:""},null,8,["modelValue","rules","append-icon","type"]),x(go,{label:"Nueva contraseña",modelValue:r.form.new_password,"onUpdate:modelValue":e[3]||(e[3]=o=>r.form.new_password=o),rules:[r.rules.required,r.rules.min],"append-icon":r.showNewPassword?"mdi-eye":"mdi-eye-off",type:r.showNewPassword?"text":"password","onClick:append":e[4]||(e[4]=o=>r.showNewPassword=!r.showNewPassword),required:""},null,8,["modelValue","rules","append-icon","type"]),x(qt,{disabled:!r.valid,onClick:a.submitForm},{default:$(()=>[Be(" Cambiar contraseña ")]),_:1},8,["disabled","onClick"]),r.snackbar.color==="error"?(Ve(),Wt(zf,{key:0,modelValue:r.snackbar.show,"onUpdate:modelValue":e[5]||(e[5]=o=>r.snackbar.show=o),timeout:3e3,color:"error"},{default:$(()=>[Be(Tn(r.snackbar.message),1)]),_:1},8,["modelValue"])):Ft("",!0),r.snackbar.color==="success"?(Ve(),Wt(zf,{key:1,modelValue:r.snackbar.show,"onUpdate:modelValue":e[6]||(e[6]=o=>r.snackbar.show=o),timeout:3e3,color:"success"},{default:$(()=>[Be(Tn(r.snackbar.message),1)]),_:1},8,["modelValue"])):Ft("",!0)]),_:1},8,["modelValue"])}const CB=Ri(TB,[["render",AB]]),PB="/assets/eyecos_logo-Dwf0Fbuv.png",RB="/assets/ic_home_analysis_normal_ES-CAo-BcAN.png",DB="/assets/ic_home_evolution_normal_ES-BkcnwaQY.png",Wu=ut()({name:"VCardActions",props:Nt(),setup(t,e){let{slots:n}=e;return Yl({VBtn:{slim:!0,variant:"text"}}),Et(()=>{var i;return x("div",{class:["v-card-actions",t.class],style:t.style},[(i=n.default)==null?void 0:i.call(n)])}),{}}}),IB=He({opacity:[Number,String],...Nt(),...Pn()},"VCardSubtitle"),LB=ut()({name:"VCardSubtitle",props:IB(),setup(t,e){let{slots:n}=e;return Et(()=>x(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},n)),{}}}),xa=fy("v-card-title");function OB(t){return{aspectStyles:q(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const nT=He({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Nt(),...Ua()},"VResponsive"),F_=ut()({name:"VResponsive",props:nT(),setup(t,e){let{slots:n}=e;const{aspectStyles:i}=OB(t),{dimensionStyles:r}=Fa(t);return Et(()=>{var a;return x("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[r.value,t.style]},[x("div",{class:"v-responsive__sizer",style:i.value},null),(a=n.additional)==null?void 0:a.call(n),n.default&&x("div",{class:["v-responsive__content",t.contentClass]},[n.default()])])}),{}}}),NB=He({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...nT(),...Nt(),...Nr(),...Fh()},"VImg"),sn=ut()({name:"VImg",directives:{intersect:tT},props:NB(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:n,slots:i}=e;const{backgroundColorClasses:r,backgroundColorStyles:a}=Aa(Pt(t,"color")),{roundedClasses:o}=kr(t),s=Qn("VImg"),l=At(""),c=ke(),u=At(t.eager?"loading":"idle"),d=At(),f=At(),h=q(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),p=q(()=>h.value.aspect||d.value/f.value||0);ft(()=>t.src,()=>{m(u.value!=="idle")}),ft(p,(O,V)=>{!O&&V&&c.value&&w(c.value)}),Yv(()=>m());function m(O){if(!(t.eager&&O)&&!(ry&&!O&&!t.eager)){if(u.value="loading",h.value.lazySrc){const V=new Image;V.src=h.value.lazySrc,w(V,null)}h.value.src&&ri(()=>{var V;n("loadstart",((V=c.value)==null?void 0:V.currentSrc)||h.value.src),setTimeout(()=>{var X;if(!s.isUnmounted)if((X=c.value)!=null&&X.complete){if(c.value.naturalWidth||v(),u.value==="error")return;p.value||w(c.value,null),u.value==="loading"&&g()}else p.value||w(c.value),b()})})}}function g(){var O;s.isUnmounted||(b(),w(c.value),u.value="loaded",n("load",((O=c.value)==null?void 0:O.currentSrc)||h.value.src))}function v(){var O;s.isUnmounted||(u.value="error",n("error",((O=c.value)==null?void 0:O.currentSrc)||h.value.src))}function b(){const O=c.value;O&&(l.value=O.currentSrc||O.src)}let y=-1;Ir(()=>{clearTimeout(y)});function w(O){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const X=()=>{if(clearTimeout(y),s.isUnmounted)return;const{naturalHeight:K,naturalWidth:z}=O;K||z?(d.value=z,f.value=K):!O.complete&&u.value==="loading"&&V!=null?y=window.setTimeout(X,V):(O.currentSrc.endsWith(".svg")||O.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};X()}const L=q(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),_=()=>{var X;if(!h.value.src||u.value==="idle")return null;const O=x("img",{class:["v-img__img",L.value],style:{objectPosition:t.position},src:h.value.src,srcset:h.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:c,onLoad:g,onError:v},null),V=(X=i.sources)==null?void 0:X.call(i);return x(_a,{transition:t.transition,appear:!0},{default:()=>[Gi(V?x("picture",{class:"v-img__picture"},[V,O]):O,[[vs,u.value==="loaded"]])]})},E=()=>x(_a,{transition:t.transition},{default:()=>[h.value.lazySrc&&u.value!=="loaded"&&x("img",{class:["v-img__img","v-img__img--preload",L.value],style:{objectPosition:t.position},src:h.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>i.placeholder?x(_a,{transition:t.transition,appear:!0},{default:()=>[(u.value==="loading"||u.value==="error"&&!i.error)&&x("div",{class:"v-img__placeholder"},[i.placeholder()])]}):null,S=()=>i.error?x(_a,{transition:t.transition,appear:!0},{default:()=>[u.value==="error"&&x("div",{class:"v-img__error"},[i.error()])]}):null,M=()=>t.gradient?x("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,D=At(!1);{const O=ft(p,V=>{V&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.value=!0})}),O())})}return Et(()=>{const O=F_.filterProps(t);return Gi(x(F_,Ye({class:["v-img",{"v-img--absolute":t.absolute,"v-img--booting":!D.value},r.value,o.value,t.class],style:[{width:_t(t.width==="auto"?d.value:t.width)},a.value,t.style]},O,{aspectRatio:p.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>x(Mt,null,[x(_,null,null),x(E,null,null),x(M,null,null),x(R,null,null),x(S,null,null)]),default:i.default}),[[gs("intersect"),{handler:m,options:t.options},null,{once:!0}]])}),{currentSrc:l,image:c,state:u,naturalWidth:d,naturalHeight:f}}}),kB=He({start:Boolean,end:Boolean,icon:Ln,image:String,text:String,...ys(),...Nt(),...ka(),...Nr(),...Nh(),...Pn(),...ti(),..._s({variant:"flat"})},"VAvatar"),Ol=ut()({name:"VAvatar",props:kB(),setup(t,e){let{slots:n}=e;const{themeClasses:i}=ai(t),{borderClasses:r}=bs(t),{colorClasses:a,colorStyles:o,variantClasses:s}=Hu(t),{densityClasses:l}=Ao(t),{roundedClasses:c}=kr(t),{sizeClasses:u,sizeStyles:d}=kh(t);return Et(()=>x(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},i.value,r.value,a.value,l.value,c.value,u.value,s.value,t.class],style:[o.value,d.value,t.style]},{default:()=>[n.default?x(yi,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[n.default()]}):t.image?x(sn,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?x(gn,{key:"icon",icon:t.icon},null):t.text,Vu(!1,"v-avatar")]})),{}}}),UB=He({appendAvatar:String,appendIcon:Ln,prependAvatar:String,prependIcon:Ln,subtitle:[String,Number],title:[String,Number],...Nt(),...ka()},"VCardItem"),FB=ut()({name:"VCardItem",props:UB(),setup(t,e){let{slots:n}=e;return Et(()=>{var c;const i=!!(t.prependAvatar||t.prependIcon),r=!!(i||n.prepend),a=!!(t.appendAvatar||t.appendIcon),o=!!(a||n.append),s=!!(t.title!=null||n.title),l=!!(t.subtitle!=null||n.subtitle);return x("div",{class:["v-card-item",t.class],style:t.style},[r&&x("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?x(yi,{key:"prepend-defaults",disabled:!i,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},n.prepend):x(Mt,null,[t.prependAvatar&&x(Ol,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&x(gn,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),x("div",{class:"v-card-item__content"},[s&&x(xa,{key:"title"},{default:()=>{var u;return[((u=n.title)==null?void 0:u.call(n))??t.title]}}),l&&x(LB,{key:"subtitle"},{default:()=>{var u;return[((u=n.subtitle)==null?void 0:u.call(n))??t.subtitle]}}),(c=n.default)==null?void 0:c.call(n)]),o&&x("div",{key:"append",class:"v-card-item__append"},[n.append?x(yi,{key:"append-defaults",disabled:!a,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},n.append):x(Mt,null,[t.appendIcon&&x(gn,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&x(Ol,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),BB=He({opacity:[Number,String],...Nt(),...Pn()},"VCardText"),cr=ut()({name:"VCardText",props:BB(),setup(t,e){let{slots:n}=e;return Et(()=>x(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},n)),{}}}),VB=He({appendAvatar:String,appendIcon:Ln,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ln,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...ys(),...Nt(),...ka(),...Ua(),...Zl(),...Ey(),...Uh(),...Ay(),...Nr(),...Ry(),...Pn(),...ti(),..._s({variant:"elevated"})},"VCard"),Ci=ut()({name:"VCard",directives:{Ripple:Dy},props:VB(),setup(t,e){let{attrs:n,slots:i}=e;const{themeClasses:r}=ai(t),{borderClasses:a}=bs(t),{colorClasses:o,colorStyles:s,variantClasses:l}=Hu(t),{densityClasses:c}=Ao(t),{dimensionStyles:u}=Fa(t),{elevationClasses:d}=$l(t),{loaderClasses:f}=Ty(t),{locationStyles:h}=My(t),{positionClasses:p}=Cy(t),{roundedClasses:m}=kr(t),g=Py(t,n),v=q(()=>t.link!==!1&&g.isLink.value),b=q(()=>!t.disabled&&t.link!==!1&&(t.link||g.isClickable.value));return Et(()=>{const y=v.value?"a":t.tag,w=!!(i.title||t.title!=null),L=!!(i.subtitle||t.subtitle!=null),_=w||L,E=!!(i.append||t.appendAvatar||t.appendIcon),R=!!(i.prepend||t.prependAvatar||t.prependIcon),S=!!(i.image||t.image),M=_||R||E,D=!!(i.text||t.text!=null);return Gi(x(y,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":b.value},r.value,a.value,o.value,c.value,d.value,f.value,p.value,m.value,l.value,t.class],style:[s.value,u.value,h.value,t.style],href:g.href.value,onClick:b.value&&g.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var O;return[S&&x("div",{key:"image",class:"v-card__image"},[i.image?x(yi,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},i.image):x(sn,{key:"image-img",cover:!0,src:t.image},null)]),x(TE,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:i.loader}),M&&x(FB,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:i.item,prepend:i.prepend,title:i.title,subtitle:i.subtitle,append:i.append}),D&&x(cr,{key:"text"},{default:()=>{var V;return[((V=i.text)==null?void 0:V.call(i))??t.text]}}),(O=i.default)==null?void 0:O.call(i),i.actions&&x(Wu,null,{default:i.actions}),Vu(b.value,"v-card")]}}),[[gs("ripple"),b.value&&t.ripple]])}),{}}}),HB=He({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Bh({origin:"center center",scrollStrategy:"block",transition:{component:uB},zIndex:2400})},"VDialog"),Wf=ut()({name:"VDialog",props:HB(),emits:{"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,e){let{emit:n,slots:i}=e;const r=vi(t,"modelValue"),{scopeId:a}=zu(),o=ke();function s(u){var h,p;const d=u.relatedTarget,f=u.target;if(d!==f&&((h=o.value)!=null&&h.contentEl)&&((p=o.value)!=null&&p.globalTop)&&![document,o.value.contentEl].includes(f)&&!o.value.contentEl.contains(f)){const m=ly(o.value.contentEl);if(!m.length)return;const g=m[0],v=m[m.length-1];d===g?v.focus():g.focus()}}un&&ft(()=>r.value&&t.retainFocus,u=>{u?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0});function l(){var u;(u=o.value)!=null&&u.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return ft(r,async u=>{var d;u||(await ri(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),Et(()=>{const u=Ll.filterProps(t),d=Ye({"aria-haspopup":"dialog","aria-expanded":String(r.value)},t.activatorProps),f=Ye({tabindex:-1},t.contentProps);return x(Ll,Ye({ref:o,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},u,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,"aria-modal":"true",activatorProps:d,contentProps:f,role:"dialog",onAfterEnter:l,onAfterLeave:c},a),{activator:i.activator,default:function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return x(yi,{root:"VDialog"},{default:()=>{var g;return[(g=i.default)==null?void 0:g.call(i,...p)]}})}})}),Jl({},o)}}),zB=He({fluid:{type:Boolean,default:!1},...Nt(),...Ua(),...Pn()},"VContainer"),Vi=ut()({name:"VContainer",props:zB(),setup(t,e){let{slots:n}=e;const{rtlClasses:i}=Lr(),{dimensionStyles:r}=Fa(t);return Et(()=>x(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},i.value,t.class],style:[r.value,t.style]},n)),{}}}),iT=Ah.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}),rT=Ah.reduce((t,e)=>{const n="offset"+La(e);return t[n]={type:[String,Number],default:null},t},{}),aT=Ah.reduce((t,e)=>{const n="order"+La(e);return t[n]={type:[String,Number],default:null},t},{}),B_={col:Object.keys(iT),offset:Object.keys(rT),order:Object.keys(aT)};function WB(t,e,n){let i=t;if(!(n==null||n===!1)){if(e){const r=e.replace(t,"");i+=`-${r}`}return t==="col"&&(i="v-"+i),t==="col"&&(n===""||n===!0)||(i+=`-${n}`),i.toLowerCase()}}const GB=["auto","start","end","center","baseline","stretch"],jB=He({cols:{type:[Boolean,String,Number],default:!1},...iT,offset:{type:[String,Number],default:null},...rT,order:{type:[String,Number],default:null},...aT,alignSelf:{type:String,default:null,validator:t=>GB.includes(t)},...Nt(),...Pn()},"VCol"),pn=ut()({name:"VCol",props:jB(),setup(t,e){let{slots:n}=e;const i=q(()=>{const r=[];let a;for(a in B_)B_[a].forEach(s=>{const l=t[s],c=WB(a,s,l);c&&r.push(c)});const o=r.some(s=>s.startsWith("v-col-"));return r.push({"v-col":!o||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),r});return()=>{var r;return Cn(t.tag,{class:[i.value,t.class],style:t.style},(r=n.default)==null?void 0:r.call(n))}}}),Ly=["start","end","center"],oT=["space-between","space-around","space-evenly"];function Oy(t,e){return Ah.reduce((n,i)=>{const r=t+La(i);return n[r]=e(),n},{})}const XB=[...Ly,"baseline","stretch"],sT=t=>XB.includes(t),lT=Oy("align",()=>({type:String,default:null,validator:sT})),YB=[...Ly,...oT],cT=t=>YB.includes(t),uT=Oy("justify",()=>({type:String,default:null,validator:cT})),qB=[...Ly,...oT,"stretch"],dT=t=>qB.includes(t),fT=Oy("alignContent",()=>({type:String,default:null,validator:dT})),V_={align:Object.keys(lT),justify:Object.keys(uT),alignContent:Object.keys(fT)},KB={align:"align",justify:"justify",alignContent:"align-content"};function QB(t,e,n){let i=KB[t];if(n!=null){if(e){const r=e.replace(t,"");i+=`-${r}`}return i+=`-${n}`,i.toLowerCase()}}const ZB=He({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:sT},...lT,justify:{type:String,default:null,validator:cT},...uT,alignContent:{type:String,default:null,validator:dT},...fT,...Nt(),...Pn()},"VRow"),Ji=ut()({name:"VRow",props:ZB(),setup(t,e){let{slots:n}=e;const i=q(()=>{const r=[];let a;for(a in V_)V_[a].forEach(o=>{const s=t[o],l=QB(a,o,s);l&&r.push(l)});return r.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),r});return()=>{var r;return Cn(t.tag,{class:["v-row",i.value,t.class],style:t.style},(r=n.default)==null?void 0:r.call(n))}}}),Ny=fy("v-spacer","div","VSpacer"),$B=He({text:String,...Nt(),...Pn()},"VToolbarTitle"),ec=ut()({name:"VToolbarTitle",props:$B(),setup(t,e){let{slots:n}=e;return Et(()=>{const i=!!(n.default||n.text||t.text);return x(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var r;return[i&&x("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():t.text,(r=n.default)==null?void 0:r.call(n)])]}})}),{}}}),JB=[null,"prominent","default","comfortable","compact"],eV=He({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>JB.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...ys(),...Nt(),...Zl(),...Nr(),...Pn({tag:"header"}),...ti()},"VToolbar"),Gu=ut()({name:"VToolbar",props:eV(),setup(t,e){var h;let{slots:n}=e;const{backgroundColorClasses:i,backgroundColorStyles:r}=Aa(Pt(t,"color")),{borderClasses:a}=bs(t),{elevationClasses:o}=$l(t),{roundedClasses:s}=kr(t),{themeClasses:l}=ai(t),{rtlClasses:c}=Lr(),u=At(!!(t.extended||(h=n.extension)!=null&&h.call(n))),d=q(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),f=q(()=>u.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return Yl({VBtn:{variant:"text"}}),Et(()=>{var v;const p=!!(t.title||n.title),m=!!(n.image||t.image),g=(v=n.extension)==null?void 0:v.call(n);return u.value=!!(t.extended||g),x(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},i.value,a.value,o.value,s.value,l.value,c.value,t.class],style:[r.value,t.style]},{default:()=>[m&&x("div",{key:"image",class:"v-toolbar__image"},[n.image?x(yi,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},n.image):x(sn,{key:"image-img",cover:!0,src:t.image},null)]),x(yi,{defaults:{VTabs:{height:_t(d.value)}}},{default:()=>{var b,y,w;return[x("div",{class:"v-toolbar__content",style:{height:_t(d.value)}},[n.prepend&&x("div",{class:"v-toolbar__prepend"},[(b=n.prepend)==null?void 0:b.call(n)]),p&&x(ec,{key:"title",text:t.title},{text:n.title}),(y=n.default)==null?void 0:y.call(n),n.append&&x("div",{class:"v-toolbar__append"},[(w=n.append)==null?void 0:w.call(n)])])]}}),x(yi,{defaults:{VTabs:{height:_t(f.value)}}},{default:()=>[x(YE,null,{default:()=>[u.value&&x("div",{class:"v-toolbar__extension",style:{height:_t(f.value)}},[g])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),tV={computed:{analisis(){return url("@/assets/home/ic_home_analysis_normal_ES.png")},evolucion(){return require("@/assets/home/ic_home_evolution_normal_ES.png")},pupilometria(){return require("@/assets/home/ic_home_light_normal_ES.png")}},components:{ChangePassword:CB},mounted(){Pi.get("/check")},methods:{test(){}},data(){return{dialog:!1}}},nV={class:"d-flex flex-row ga-3 text-center"};function iV(t,e,n,i,r,a){const o=ni("ChangePassword"),s=ni("router-link");return Ve(),St(Mt,null,[x(Wf,{modelValue:r.dialog,"onUpdate:modelValue":e[1]||(e[1]=l=>r.dialog=l),"max-width":"",class:"w-10",style:{width:"70%"}},{default:$(()=>[x(Ci,null,{default:$(()=>[x(cr,null,{default:$(()=>[x(o)]),_:1}),x(Wu,null,{default:$(()=>[x(qt,{color:"primary",text:"",onClick:e[0]||(e[0]=l=>r.dialog=!1)},{default:$(()=>[Be("Cerrar")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),x(Gu,{density:"compact",color:""},{default:$(()=>[x(ec,null,{default:$(()=>[Be("Análisis de Iris")]),_:1}),x(gn,{class:"mr-3 hover",color:"error",onClick:e[2]||(e[2]=l=>r.dialog=!0)},{default:$(()=>[Be("mdi-lock-reset")]),_:1})]),_:1}),x(Vi,{fluid:"",class:"d-flex flex-column justify-center align-center page-background h-100"},{default:$(()=>[nt("div",nV,[x(Vi,{class:"d-flex flex-column align-center justify-center"},{default:$(()=>[x(Ji,{class:"w-25 d-flex align-center justify-center"},{default:$(()=>[x(sn,{class:"pa-5 mb-4",src:PB})]),_:1}),x(Ji,null,{default:$(()=>[x(s,{class:"",style:{width:"350px"},to:{path:"/register"}},{default:$(()=>[x(sn,{class:"w-100 pa-5 mb-4 card-hover",src:RB,onClick:a.test},null,8,["onClick"])]),_:1}),x(s,{class:"",style:{width:"350px"},to:{path:"/pacientes"}},{default:$(()=>[x(sn,{class:"w-100 pa-5 mb-4 card-hover",src:DB,onClick:a.test},null,8,["onClick"])]),_:1})]),_:1})]),_:1})])]),_:1})],64)}const rV=Ri(tV,[["render",iV],["__scopeId","data-v-71d783bd"]]),pg=Symbol.for("vuetify:list");function hT(){const t=Ct(pg,{hasPrepend:At(!1),updateHasPrepend:()=>null}),e={hasPrepend:At(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return ln(pg,e),t}function pT(){return Ct(pg,null)}const ky=t=>{const e={activate:n=>{let{id:i,value:r,activated:a}=n;return i=ot(i),t&&!r&&a.size===1&&a.has(i)||(r?a.add(i):a.delete(i)),a},in:(n,i,r)=>{let a=new Set;if(n!=null)for(const o of ns(n))a=e.activate({id:o,value:!0,activated:new Set(a),children:i,parents:r});return a},out:n=>Array.from(n)};return e},mT=t=>{const e=ky(t);return{activate:i=>{let{activated:r,id:a,...o}=i;a=ot(a);const s=r.has(a)?new Set([a]):new Set;return e.activate({...o,id:a,activated:s})},in:(i,r,a)=>{let o=new Set;if(i!=null){const s=ns(i);s.length&&(o=e.in(s.slice(0,1),r,a))}return o},out:(i,r,a)=>e.out(i,r,a)}},aV=t=>{const e=ky(t);return{activate:i=>{let{id:r,activated:a,children:o,...s}=i;return r=ot(r),o.has(r)?a:e.activate({id:r,activated:a,children:o,...s})},in:e.in,out:e.out}},oV=t=>{const e=mT(t);return{activate:i=>{let{id:r,activated:a,children:o,...s}=i;return r=ot(r),o.has(r)?a:e.activate({id:r,activated:a,children:o,...s})},in:e.in,out:e.out}},sV={open:t=>{let{id:e,value:n,opened:i,parents:r}=t;if(n){const a=new Set;a.add(e);let o=r.get(e);for(;o!=null;)a.add(o),o=r.get(o);return a}else return i.delete(e),i},select:()=>null},gT={open:t=>{let{id:e,value:n,opened:i,parents:r}=t;if(n){let a=ot(r.get(e));for(i.add(e);a!=null&&a!==e;)i.add(a),a=ot(r.get(a));return i}else i.delete(e);return i},select:()=>null},lV={open:gT.open,select:t=>{let{id:e,value:n,opened:i,parents:r}=t;if(!n)return i;const a=[];let o=r.get(e);for(;o!=null;)a.push(o),o=r.get(o);return new Set(a)}},Uy=t=>{const e={select:n=>{let{id:i,value:r,selected:a}=n;if(i=ot(i),t&&!r){const o=Array.from(a.entries()).reduce((s,l)=>{let[c,u]=l;return u==="on"&&s.push(c),s},[]);if(o.length===1&&o[0]===i)return a}return a.set(i,r?"on":"off"),a},in:(n,i,r)=>{let a=new Map;for(const o of n||[])a=e.select({id:o,value:!0,selected:new Map(a),children:i,parents:r});return a},out:n=>{const i=[];for(const[r,a]of n.entries())a==="on"&&i.push(r);return i}};return e},vT=t=>{const e=Uy(t);return{select:i=>{let{selected:r,id:a,...o}=i;a=ot(a);const s=r.has(a)?new Map([[a,r.get(a)]]):new Map;return e.select({...o,id:a,selected:s})},in:(i,r,a)=>{let o=new Map;return i!=null&&i.length&&(o=e.in(i.slice(0,1),r,a)),o},out:(i,r,a)=>e.out(i,r,a)}},cV=t=>{const e=Uy(t);return{select:i=>{let{id:r,selected:a,children:o,...s}=i;return r=ot(r),o.has(r)?a:e.select({id:r,selected:a,children:o,...s})},in:e.in,out:e.out}},uV=t=>{const e=vT(t);return{select:i=>{let{id:r,selected:a,children:o,...s}=i;return r=ot(r),o.has(r)?a:e.select({id:r,selected:a,children:o,...s})},in:e.in,out:e.out}},dV=t=>{const e={select:n=>{let{id:i,value:r,selected:a,children:o,parents:s}=n;i=ot(i);const l=new Map(a),c=[i];for(;c.length;){const d=c.shift();a.set(ot(d),r?"on":"off"),o.has(d)&&c.push(...o.get(d))}let u=ot(s.get(i));for(;u;){const d=o.get(u),f=d.every(p=>a.get(ot(p))==="on"),h=d.every(p=>!a.has(ot(p))||a.get(ot(p))==="off");a.set(u,f?"on":h?"off":"indeterminate"),u=ot(s.get(u))}return t&&!r&&Array.from(a.entries()).reduce((f,h)=>{let[p,m]=h;return m==="on"&&f.push(p),f},[]).length===0?l:a},in:(n,i,r)=>{let a=new Map;for(const o of n||[])a=e.select({id:o,value:!0,selected:new Map(a),children:i,parents:r});return a},out:(n,i)=>{const r=[];for(const[a,o]of n.entries())o==="on"&&!i.has(a)&&r.push(a);return r}};return e},bu=Symbol.for("vuetify:nested"),yT={id:At(),root:{register:()=>null,unregister:()=>null,parents:ke(new Map),children:ke(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ke(!1),selectable:ke(!1),opened:ke(new Set),activated:ke(new Set),selected:ke(new Map),selectedValues:ke([])}},fV=He({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),hV=t=>{let e=!1;const n=ke(new Map),i=ke(new Map),r=vi(t,"opened",t.opened,h=>new Set(ot(h)),h=>[...h.values()]),a=q(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return aV(t.mandatory);case"single-leaf":return oV(t.mandatory);case"independent":return ky(t.mandatory);case"single-independent":default:return mT(t.mandatory)}}),o=q(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return uV(t.mandatory);case"leaf":return cV(t.mandatory);case"independent":return Uy(t.mandatory);case"single-independent":return vT(t.mandatory);case"classic":default:return dV(t.mandatory)}}),s=q(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return lV;case"single":return sV;case"multiple":default:return gT}}),l=vi(t,"activated",t.activated,h=>a.value.in(h,n.value,i.value),h=>a.value.out(h,n.value,i.value)),c=vi(t,"selected",t.selected,h=>o.value.in(h,n.value,i.value),h=>o.value.out(h,n.value,i.value));Ir(()=>{e=!0});function u(h){const p=[];let m=h;for(;m!=null;)p.unshift(m),m=i.value.get(m);return p}const d=Qn("nested"),f={id:At(),root:{opened:r,activatable:Pt(t,"activatable"),selectable:Pt(t,"selectable"),activated:l,selected:c,selectedValues:q(()=>{const h=[];for(const[p,m]of c.value.entries())m==="on"&&h.push(p);return h}),register:(h,p,m)=>{p&&h!==p&&i.value.set(h,p),m&&n.value.set(h,[]),p!=null&&n.value.set(p,[...n.value.get(p)||[],h])},unregister:h=>{if(e)return;n.value.delete(h);const p=i.value.get(h);if(p){const m=n.value.get(p)??[];n.value.set(p,m.filter(g=>g!==h))}i.value.delete(h)},open:(h,p,m)=>{d.emit("click:open",{id:h,value:p,path:u(h),event:m});const g=s.value.open({id:h,value:p,opened:new Set(r.value),children:n.value,parents:i.value,event:m});g&&(r.value=g)},openOnSelect:(h,p,m)=>{const g=s.value.select({id:h,value:p,selected:new Map(c.value),opened:new Set(r.value),children:n.value,parents:i.value,event:m});g&&(r.value=g)},select:(h,p,m)=>{d.emit("click:select",{id:h,value:p,path:u(h),event:m});const g=o.value.select({id:h,value:p,selected:new Map(c.value),children:n.value,parents:i.value,event:m});g&&(c.value=g),f.root.openOnSelect(h,p,m)},activate:(h,p,m)=>{if(!t.activatable)return f.root.select(h,!0,m);d.emit("click:activate",{id:h,value:p,path:u(h),event:m});const g=a.value.activate({id:h,value:p,activated:new Set(l.value),children:n.value,parents:i.value,event:m});g&&(l.value=g)},children:n,parents:i}};return ln(bu,f),f.root},bT=(t,e)=>{const n=Ct(bu,yT),i=Symbol(To()),r=q(()=>t.value!==void 0?t.value:i),a={...n,id:r,open:(o,s)=>n.root.open(ot(r.value),o,s),openOnSelect:(o,s)=>n.root.openOnSelect(r.value,o,s),isOpen:q(()=>n.root.opened.value.has(ot(r.value))),parent:q(()=>n.root.parents.value.get(r.value)),activate:(o,s)=>n.root.activate(r.value,o,s),isActivated:q(()=>n.root.activated.value.has(ot(r.value))),select:(o,s)=>n.root.select(r.value,o,s),isSelected:q(()=>n.root.selected.value.get(ot(r.value))==="on"),isIndeterminate:q(()=>n.root.selected.value.get(r.value)==="indeterminate"),isLeaf:q(()=>!n.root.children.value.get(r.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(r.value,n.id.value,e),Ir(()=>{!n.isGroupActivator&&n.root.unregister(r.value)}),e&&ln(bu,a),a},pV=()=>{const t=Ct(bu,yT);ln(bu,{...t,isGroupActivator:!0})};function Fy(){const t=At(!1);return ir(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:q(()=>t.value?void 0:{transition:"none !important"}),isBooted:jl(t)}}const mV=ql({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return pV(),()=>{var i;return(i=n.default)==null?void 0:i.call(n)}}}),gV=He({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ln,default:"$collapse"},expandIcon:{type:Ln,default:"$expand"},prependIcon:Ln,appendIcon:Ln,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Nt(),...Pn()},"VListGroup"),H_=ut()({name:"VListGroup",props:gV(),setup(t,e){let{slots:n}=e;const{isOpen:i,open:r,id:a}=bT(Pt(t,"value"),!0),o=q(()=>`v-list-group--id-${String(a.value)}`),s=pT(),{isBooted:l}=Fy();function c(h){h.stopPropagation(),r(!i.value,h)}const u=q(()=>({onClick:c,class:"v-list-group__header",id:o.value})),d=q(()=>i.value?t.collapseIcon:t.expandIcon),f=q(()=>({VListItem:{active:i.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&d.value,appendIcon:t.appendIcon||!t.subgroup&&d.value,title:t.title,value:t.value}}));return Et(()=>x(t.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":i.value},t.class],style:t.style},{default:()=>[n.activator&&x(yi,{defaults:f.value},{default:()=>[x(mV,null,{default:()=>[n.activator({props:u.value,isOpen:i.value})]})]}),x(_a,{transition:{component:YE},disabled:!l.value},{default:()=>{var h;return[Gi(x("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(h=n.default)==null?void 0:h.call(n)]),[[vs,i.value]])]}})]})),{isOpen:i}}}),vV=He({opacity:[Number,String],...Nt(),...Pn()},"VListItemSubtitle"),_T=ut()({name:"VListItemSubtitle",props:vV(),setup(t,e){let{slots:n}=e;return Et(()=>x(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),xT=fy("v-list-item-title"),yV=He({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ln,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ln,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:hr(),onClickOnce:hr(),...ys(),...Nt(),...ka(),...Ua(),...Zl(),...Nr(),...Ry(),...Pn(),...ti(),..._s({variant:"text"})},"VListItem"),mg=ut()({name:"VListItem",directives:{Ripple:Dy},props:yV(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:i,emit:r}=e;const a=Py(t,n),o=q(()=>t.value===void 0?a.href.value:t.value),{activate:s,isActivated:l,select:c,isOpen:u,isSelected:d,isIndeterminate:f,isGroupActivator:h,root:p,parent:m,openOnSelect:g}=bT(o,!1),v=pT(),b=q(()=>{var Z;return t.active!==!1&&(t.active||((Z=a.isActive)==null?void 0:Z.value)||(p.activatable.value?l.value:d.value))}),y=q(()=>t.link!==!1&&a.isLink.value),w=q(()=>!t.disabled&&t.link!==!1&&(t.link||a.isClickable.value||!!v&&(p.selectable.value||p.activatable.value||t.value!=null))),L=q(()=>t.rounded||t.nav),_=q(()=>t.color??t.activeColor),E=q(()=>({color:b.value?_.value??t.baseColor:t.baseColor,variant:t.variant}));ft(()=>{var Z;return(Z=a.isActive)==null?void 0:Z.value},Z=>{Z&&m.value!=null&&p.open(m.value,!0),Z&&g(Z)},{immediate:!0});const{themeClasses:R}=ai(t),{borderClasses:S}=bs(t),{colorClasses:M,colorStyles:D,variantClasses:O}=Hu(E),{densityClasses:V}=Ao(t),{dimensionStyles:X}=Fa(t),{elevationClasses:K}=$l(t),{roundedClasses:z}=kr(L),Q=q(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),Y=q(()=>({isActive:b.value,select:c,isOpen:u.value,isSelected:d.value,isIndeterminate:f.value}));function he(Z){var _e;r("click",Z),w.value&&((_e=a.navigate)==null||_e.call(a,Z),!h&&(p.activatable.value?s(!l.value,Z):(p.selectable.value||t.value!=null)&&c(!d.value,Z)))}function ne(Z){(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),Z.target.dispatchEvent(new MouseEvent("click",Z)))}return Et(()=>{const Z=y.value?"a":t.tag,_e=i.title||t.title!=null,Te=i.subtitle||t.subtitle!=null,ee=!!(t.appendAvatar||t.appendIcon),le=!!(ee||i.append),re=!!(t.prependAvatar||t.prependIcon),W=!!(re||i.prepend);return v==null||v.updateHasPrepend(W),t.activeColor&&VO("active-color",["color","base-color"]),Gi(x(Z,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":t.disabled,"v-list-item--link":w.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!W&&(v==null?void 0:v.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&b.value},R.value,S.value,M.value,V.value,K.value,Q.value,z.value,O.value,t.class],style:[D.value,X.value,t.style],href:a.href.value,tabindex:w.value?v?-2:0:void 0,onClick:he,onKeydown:w.value&&!y.value&&ne},{default:()=>{var ce;return[Vu(w.value||b.value,"v-list-item"),W&&x("div",{key:"prepend",class:"v-list-item__prepend"},[i.prepend?x(yi,{key:"prepend-defaults",disabled:!re,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var me;return[(me=i.prepend)==null?void 0:me.call(i,Y.value)]}}):x(Mt,null,[t.prependAvatar&&x(Ol,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&x(gn,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),x("div",{class:"v-list-item__spacer"},null)]),x("div",{class:"v-list-item__content","data-no-activator":""},[_e&&x(xT,{key:"title"},{default:()=>{var me;return[((me=i.title)==null?void 0:me.call(i,{title:t.title}))??t.title]}}),Te&&x(_T,{key:"subtitle"},{default:()=>{var me;return[((me=i.subtitle)==null?void 0:me.call(i,{subtitle:t.subtitle}))??t.subtitle]}}),(ce=i.default)==null?void 0:ce.call(i,Y.value)]),le&&x("div",{key:"append",class:"v-list-item__append"},[i.append?x(yi,{key:"append-defaults",disabled:!ee,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var me;return[(me=i.append)==null?void 0:me.call(i,Y.value)]}}):x(Mt,null,[t.appendIcon&&x(gn,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&x(Ol,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),x("div",{class:"v-list-item__spacer"},null)])]}}),[[gs("ripple"),w.value&&t.ripple]])}),{activate:s,isActivated:l,isGroupActivator:h,isSelected:d,list:v,select:c}}}),bV=He({color:String,inset:Boolean,sticky:Boolean,title:String,...Nt(),...Pn()},"VListSubheader"),_V=ut()({name:"VListSubheader",props:bV(),setup(t,e){let{slots:n}=e;const{textColorClasses:i,textColorStyles:r}=Pa(Pt(t,"color"));return Et(()=>{const a=!!(n.default||t.title);return x(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},i.value,t.class],style:[{textColorStyles:r},t.style]},{default:()=>{var o;return[a&&x("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??t.title])]}})}),{}}}),xV=He({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Nt(),...ti()},"VDivider"),SV=ut()({name:"VDivider",props:xV(),setup(t,e){let{attrs:n,slots:i}=e;const{themeClasses:r}=ai(t),{textColorClasses:a,textColorStyles:o}=Pa(Pt(t,"color")),s=q(()=>{const l={};return t.length&&(l[t.vertical?"height":"width"]=_t(t.length)),t.thickness&&(l[t.vertical?"borderRightWidth":"borderTopWidth"]=_t(t.thickness)),l});return Et(()=>{const l=x("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},r.value,a.value,t.class],style:[s.value,o.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!n.role||n.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return i.default?x("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[l,x("div",{class:"v-divider__content"},[i.default()]),l]):l}),{}}}),wV=He({items:Array,returnObject:Boolean},"VListChildren"),ST=ut()({name:"VListChildren",props:wV(),setup(t,e){let{slots:n}=e;return hT(),()=>{var i,r;return((i=n.default)==null?void 0:i.call(n))??((r=t.items)==null?void 0:r.map(a=>{var f,h;let{children:o,props:s,type:l,raw:c}=a;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:s}))??x(SV,s,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:s}))??x(_V,s,null);const u={subtitle:n.subtitle?p=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...p,item:c})}:void 0,prepend:n.prepend?p=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...p,item:c})}:void 0,append:n.append?p=>{var m;return(m=n.append)==null?void 0:m.call(n,{...p,item:c})}:void 0,title:n.title?p=>{var m;return(m=n.title)==null?void 0:m.call(n,{...p,item:c})}:void 0},d=H_.filterProps(s);return o?x(H_,Ye({value:s==null?void 0:s.value},d),{activator:p=>{let{props:m}=p;const g={...s,...m,value:t.returnObject?c:s.value};return n.header?n.header({props:g}):x(mg,g,u)},default:()=>x(ST,{items:o,returnObject:t.returnObject},n)}):n.item?n.item({props:s}):x(mg,Ye(s,{value:t.returnObject?c:s.value}),u)}))}}}),MV=He({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Eh}},"list-items");function EV(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function TV(t,e){const n=bc(e,t.itemType,"item"),i=EV(e)?e:bc(e,t.itemTitle),r=bc(e,t.itemValue,void 0),a=bc(e,t.itemChildren),o=t.itemProps===!0?Xl(e,["children"]):bc(e,t.itemProps),s={title:i,value:r,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&a?wT(t,a):void 0,raw:e}}function wT(t,e){const n=[];for(const i of e)n.push(TV(t,i));return n}function AV(t){return{items:q(()=>wT(t,t.items))}}const CV=He({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":hr(),"onClick:select":hr(),"onUpdate:opened":hr(),...fV({selectStrategy:"single-leaf",openStrategy:"list"}),...ys(),...Nt(),...ka(),...Ua(),...Zl(),itemType:{type:String,default:"type"},...MV(),...Nr(),...Pn(),...ti(),..._s({variant:"text"})},"VList"),PV=ut()({name:"VList",props:CV(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:n}=e;const{items:i}=AV(t),{themeClasses:r}=ai(t),{backgroundColorClasses:a,backgroundColorStyles:o}=Aa(Pt(t,"bgColor")),{borderClasses:s}=bs(t),{densityClasses:l}=Ao(t),{dimensionStyles:c}=Fa(t),{elevationClasses:u}=$l(t),{roundedClasses:d}=kr(t),{children:f,open:h,parents:p,select:m}=hV(t),g=q(()=>t.lines?`v-list--${t.lines}-line`:void 0),v=Pt(t,"activeColor"),b=Pt(t,"baseColor"),y=Pt(t,"color");hT(),Yl({VListGroup:{activeColor:v,baseColor:b,color:y,expandIcon:Pt(t,"expandIcon"),collapseIcon:Pt(t,"collapseIcon")},VListItem:{activeClass:Pt(t,"activeClass"),activeColor:v,baseColor:b,color:y,density:Pt(t,"density"),disabled:Pt(t,"disabled"),lines:Pt(t,"lines"),nav:Pt(t,"nav"),slim:Pt(t,"slim"),variant:Pt(t,"variant")}});const w=At(!1),L=ke();function _(O){w.value=!0}function E(O){w.value=!1}function R(O){var V;!w.value&&!(O.relatedTarget&&((V=L.value)!=null&&V.contains(O.relatedTarget)))&&D()}function S(O){const V=O.target;if(!(!L.value||["INPUT","TEXTAREA"].includes(V.tagName))){if(O.key==="ArrowDown")D("next");else if(O.key==="ArrowUp")D("prev");else if(O.key==="Home")D("first");else if(O.key==="End")D("last");else return;O.preventDefault()}}function M(O){w.value=!0}function D(O){if(L.value)return dM(L.value,O)}return Et(()=>x(t.tag,{ref:L,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},r.value,a.value,s.value,l.value,u.value,g.value,d.value,t.class],style:[o.value,c.value,t.style],tabindex:t.disabled||w.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:_,onFocusout:E,onFocus:R,onKeydown:S,onMousedown:M},{default:()=>[x(ST,{items:i.value,returnObject:t.returnObject},n)]})),{open:h,select:m,focus:D,children:f,parents:p}}}),RV=He({id:String,text:String,...Xl(Bh({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),By=ut()({name:"VTooltip",props:RV(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const i=vi(t,"modelValue"),{scopeId:r}=zu(),a=To(),o=q(()=>t.id||`v-tooltip-${a}`),s=ke(),l=q(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=q(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=q(()=>t.transition?t.transition:i.value?"scale-transition":"fade-transition"),d=q(()=>Ye({"aria-describedby":o.value},t.activatorProps));return Et(()=>{const f=Ll.filterProps(t);return x(Ll,Ye({ref:s,class:["v-tooltip",t.class],style:t.style,id:o.value},f,{modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,transition:u.value,absolute:!0,location:l.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},r),{activator:n.activator,default:function(){var g;for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return((g=n.default)==null?void 0:g.call(n,...p))??t.text}})}),Jl({},s)}}),DV={setup(){const t=ke({});return ir(async()=>{let n=await Pi.get("/profiles");console.log(n);let i=[];for(const r of n.data){let a=r.id,o=await Pi.get(`/all?item_id=${a}`);i.push({name:r.name,description:r.description,id:r.id,left_eye:"https://colorimetria-api.tech-impulse.com/data/"+o.data[0].base_path+"/0.png",right_eye:"https://colorimetria-api.tech-impulse.com/data/"+o.data[0].base_path+"/1.png"})}t.value={profiles:i}}),{state:t}},data(){return{profiles:[]}},methods:{viewProfile(t){console.log("View profile",t)},editProfile(t){console.log("Edit profile",t)}}},IV={class:"d-flex ga-5"},LV=["src"],OV=["src"];function NV(t,e,n,i,r,a){const o=ni("v-list-item-avatar"),s=ni("v-list-item-content");return Ve(),St(Mt,null,[x(Gu,{density:"compact",color:"#5a9891"},{default:$(()=>[x(qt,{to:{path:"/"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(gn,{class:""},{default:$(()=>[Be("mdi-home")]),_:1})]),_:1}),x(qt,{to:{path:"/register"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(By,{activator:"parent",location:"start"},{default:$(()=>[Be("Registrar paciente")]),_:1}),x(gn,{class:""},{default:$(()=>[Be("mdi-account-plus")]),_:1})]),_:1}),x(ec,null,{default:$(()=>[Be("Pacientes")]),_:1}),x(qt,{to:{path:"/"},fab:"",class:"text-h5"},{default:$(()=>[x(gn,null,{default:$(()=>[Be(" mdi-arrow-left ")]),_:1})]),_:1})]),_:1}),x(Vi,null,{default:$(()=>[x(PV,{class:"",style:{"background-color":"rgba(255, 255, 255, 0)",display:"flex","flex-direction":"column",gap:"10px",padding:"10px"}},{default:$(()=>[(Ve(!0),St(Mt,null,co(i.state.profiles,(l,c)=>(Ve(),Wt(mg,{to:{name:"Paciente",params:{id:l.id}},key:c,class:"profile cursor-pointer rounded-1",style:{color:"black",background:"white",padding:"10px","border-radius":"5px",border:"1px solid #ccc"}},{default:$(()=>[nt("div",IV,[x(o,null,{default:$(()=>[x(Ol,null,{default:$(()=>[nt("img",{src:l.left_eye,alt:"Profile Avatar"},null,8,LV)]),_:2},1024),x(Ol,null,{default:$(()=>[nt("img",{src:l.right_eye,alt:"Profile Avatar"},null,8,OV)]),_:2},1024)]),_:2},1024),x(s,null,{default:$(()=>[x(xT,null,{default:$(()=>[Be(Tn(l.name),1)]),_:2},1024),x(_T,null,{default:$(()=>[Be(Tn(l.description),1)]),_:2},1024)]),_:2},1024)])]),_:2},1032,["to"]))),128))]),_:1})]),_:1})],64)}const kV=Ri(DV,[["render",NV],["__scopeId","data-v-135c3999"]]),UV={props:{escala:{type:Number,default:-1,validator(t){return t>=1&&t<=60}}},data(){return{colors:["rgb(49	,27	,17)","rgb(53	,29	,18)","rgb(58	,31	,19)","rgb(65	,35	,22)","rgb(69	,37	,23)","rgb(73	,39	,24)","rgb(77	,41	,25)","rgb(84	,45	,28)","rgb(86	,46	,29)","rgb(89	,48	,30)","rgb(92	,50	,31)","rgb(95	,52	,33)","rgb(97	,54	,35)","rgb(100	,58	,38)","rgb(105	,62	,43)","rgb(110	,67	,48)","rgb(117	,75	,55)","rgb(125	,82	,62)","rgb(132	,90	,70)","rgb(137	,95	,75)","rgb(140	,97	,78)","rgb(143	,100	,81)","rgb(145	,103	,84)","rgb(147	,105	,87)","rgb(150	,108	,90)","rgb(151	,110	,92)","rgb(153	,112	,92)","rgb(153	,115	,95)","rgb(155	,116	,97)","rgb(156	,118	,97)","rgb(158	,120	,97)","rgb(162	,122	,97)","rgb(165	,124	,98)","rgb(168	,126	,98)","rgb(172	,128	,99)","rgb(176	,130	,99)","rgb(180	,132	,100)","rgb(182	,134	,100)","rgb(184	,136	,100)","rgb(187	,138	,101)","rgb(192	,140	,101)","rgb(195	,143	,101)","rgb(210	,150	,102)","rgb(215	,158	,102)","rgb(215	,166	,102)","rgb(215	,177	,102)","rgb(215	,185	,102)","rgb(215	,195	,102)","rgb(225	,203	,105)","rgb(232	,210	,111)","rgb(233	,215	,122)","rgb(234	,219	,144)","rgb(235	,223	,164)","rgb(237	,227	,174)","rgb(238	,229	,184)","rgb(242	,233	,194)","rgb(245	,237	,202)","rgb(249	,242	,213)","rgb(253	,248	,224)","rgb(255	,253	,235)"]}},methods:{getRowStyle(t){const e=this.escala-1;return t===e?{border:"0.1em solid black"}:{}}}},FV={class:"table-container"},BV={class:"color-table"};function VV(t,e,n,i,r,a){return Ve(),St("div",FV,[nt("table",BV,[(Ve(!0),St(Mt,null,co(r.colors,(o,s)=>(Ve(),St("tr",{key:s,style:au(a.getRowStyle(s))},[nt("td",{style:au({backgroundColor:o})},null,4)],4))),128))])])}const Vh=Ri(UV,[["render",VV],["__scopeId","data-v-a3cd9d19"]]);/*!
 * Cropper.js v1.6.2
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2024-04-21T07:43:05.335Z
 */function z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function MT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z_(Object(n),!0).forEach(function(i){GV(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function HV(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ET(t){var e=HV(t,"string");return typeof e=="symbol"?e:e+""}function gg(t){"@babel/helpers - typeof";return gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gg(t)}function zV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W_(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ET(i.key),i)}}function WV(t,e,n){return e&&W_(t.prototype,e),n&&W_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function GV(t,e,n){return e=ET(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TT(t){return jV(t)||XV(t)||YV(t)||qV()}function jV(t){if(Array.isArray(t))return vg(t)}function XV(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YV(t,e){if(t){if(typeof t=="string")return vg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vg(t,e)}}function vg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function qV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Hh=typeof window<"u"&&typeof window.document<"u",ta=Hh?window:{},Vy=Hh&&ta.document.documentElement?"ontouchstart"in ta.document.documentElement:!1,Hy=Hh?"PointerEvent"in ta:!1,bn="cropper",zy="all",AT="crop",CT="move",PT="zoom",ko="e",Uo="w",Is="s",ja="n",wc="ne",Mc="nw",Ec="se",Tc="sw",yg="".concat(bn,"-crop"),G_="".concat(bn,"-disabled"),Ni="".concat(bn,"-hidden"),j_="".concat(bn,"-hide"),KV="".concat(bn,"-invisible"),Gf="".concat(bn,"-modal"),bg="".concat(bn,"-move"),_u="".concat(bn,"Action"),bd="".concat(bn,"Preview"),Wy="crop",RT="move",DT="none",_g="crop",xg="cropend",Sg="cropmove",wg="cropstart",X_="dblclick",QV=Vy?"touchstart":"mousedown",ZV=Vy?"touchmove":"mousemove",$V=Vy?"touchend touchcancel":"mouseup",Y_=Hy?"pointerdown":QV,q_=Hy?"pointermove":ZV,K_=Hy?"pointerup pointercancel":$V,Q_="ready",Z_="resize",$_="wheel",Mg="zoom",J_="image/jpeg",JV=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,e4=/^data:/,t4=/^data:image\/jpeg;base64,/,n4=/^img|canvas$/i,IT=200,LT=100,ex={viewMode:0,dragMode:Wy,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:IT,minContainerHeight:LT,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},i4='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',r4=Number.isNaN||ta.isNaN;function Ht(t){return typeof t=="number"&&!r4(t)}var tx=function(e){return e>0&&e<1/0};function Np(t){return typeof t>"u"}function ds(t){return gg(t)==="object"&&t!==null}var a4=Object.prototype.hasOwnProperty;function ll(t){if(!ds(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&a4.call(n,"isPrototypeOf")}catch{return!1}}function Li(t){return typeof t=="function"}var o4=Array.prototype.slice;function OT(t){return Array.from?Array.from(t):o4.call(t)}function Vn(t,e){return t&&Li(e)&&(Array.isArray(t)||Ht(t.length)?OT(t).forEach(function(n,i){e.call(t,n,i,t)}):ds(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)})),t}var xn=Object.assign||function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ds(e)&&i.length>0&&i.forEach(function(a){ds(a)&&Object.keys(a).forEach(function(o){e[o]=a[o]})}),e},s4=/\.\d*(?:0|9){12}\d*$/;function yl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return s4.test(t)?Math.round(t*e)/e:t}var l4=/^width|height|left|top|marginLeft|marginTop$/;function uo(t,e){var n=t.style;Vn(e,function(i,r){l4.test(r)&&Ht(i)&&(i="".concat(i,"px")),n[r]=i})}function c4(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Jn(t,e){if(e){if(Ht(t.length)){Vn(t,function(i){Jn(i,e)});return}if(t.classList){t.classList.add(e);return}var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Jr(t,e){if(e){if(Ht(t.length)){Vn(t,function(n){Jr(n,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function cl(t,e,n){if(e){if(Ht(t.length)){Vn(t,function(i){cl(i,e,n)});return}n?Jn(t,e):Jr(t,e)}}var u4=/([a-z\d])([A-Z])/g;function Gy(t){return t.replace(u4,"$1-$2").toLowerCase()}function Eg(t,e){return ds(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Gy(e)))}function xu(t,e,n){ds(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Gy(e)),n)}function d4(t,e){if(ds(t[e]))try{delete t[e]}catch{t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch{t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Gy(e)))}var NT=/\s\s*/,kT=function(){var t=!1;if(Hh){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(a){e=a}});ta.addEventListener("test",n,i),ta.removeEventListener("test",n,i)}return t}();function vr(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(NT).forEach(function(a){if(!kT){var o=t.listeners;o&&o[a]&&o[a][n]&&(r=o[a][n],delete o[a][n],Object.keys(o[a]).length===0&&delete o[a],Object.keys(o).length===0&&delete t.listeners)}t.removeEventListener(a,r,i)})}function sr(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(NT).forEach(function(a){if(i.once&&!kT){var o=t.listeners,s=o===void 0?{}:o;r=function(){delete s[a][n],t.removeEventListener(a,r,i);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];n.apply(t,u)},s[a]||(s[a]={}),s[a][n]&&t.removeEventListener(a,s[a][n],i),s[a][n]=r,t.listeners=s}t.addEventListener(a,r,i)})}function bl(t,e,n){var i;return Li(Event)&&Li(CustomEvent)?i=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)),t.dispatchEvent(i)}function UT(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var kp=ta.location,f4=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function nx(t){var e=t.match(f4);return e!==null&&(e[1]!==kp.protocol||e[2]!==kp.hostname||e[3]!==kp.port)}function ix(t){var e="timestamp=".concat(new Date().getTime());return t+(t.indexOf("?")===-1?"?":"&")+e}function Kc(t){var e=t.rotate,n=t.scaleX,i=t.scaleY,r=t.translateX,a=t.translateY,o=[];Ht(r)&&r!==0&&o.push("translateX(".concat(r,"px)")),Ht(a)&&a!==0&&o.push("translateY(".concat(a,"px)")),Ht(e)&&e!==0&&o.push("rotate(".concat(e,"deg)")),Ht(n)&&n!==1&&o.push("scaleX(".concat(n,")")),Ht(i)&&i!==1&&o.push("scaleY(".concat(i,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function h4(t){var e=MT({},t),n=0;return Vn(t,function(i,r){delete e[r],Vn(e,function(a){var o=Math.abs(i.startX-a.startX),s=Math.abs(i.startY-a.startY),l=Math.abs(i.endX-a.endX),c=Math.abs(i.endY-a.endY),u=Math.sqrt(o*o+s*s),d=Math.sqrt(l*l+c*c),f=(d-u)/u;Math.abs(f)>Math.abs(n)&&(n=f)})}),n}function _d(t,e){var n=t.pageX,i=t.pageY,r={endX:n,endY:i};return e?r:MT({startX:n,startY:i},r)}function p4(t){var e=0,n=0,i=0;return Vn(t,function(r){var a=r.startX,o=r.startY;e+=a,n+=o,i+=1}),e/=i,n/=i,{pageX:e,pageY:n}}function fo(t){var e=t.aspectRatio,n=t.height,i=t.width,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",a=tx(i),o=tx(n);if(a&&o){var s=n*e;r==="contain"&&s>i||r==="cover"&&s<i?n=i/e:i=n*e}else a?n=i/e:o&&(i=n*e);return{width:i,height:n}}function m4(t){var e=t.width,n=t.height,i=t.degree;if(i=Math.abs(i)%180,i===90)return{width:n,height:e};var r=i%90*Math.PI/180,a=Math.sin(r),o=Math.cos(r),s=e*o+n*a,l=e*a+n*o;return i>90?{width:l,height:s}:{width:s,height:l}}function g4(t,e,n,i){var r=e.aspectRatio,a=e.naturalWidth,o=e.naturalHeight,s=e.rotate,l=s===void 0?0:s,c=e.scaleX,u=c===void 0?1:c,d=e.scaleY,f=d===void 0?1:d,h=n.aspectRatio,p=n.naturalWidth,m=n.naturalHeight,g=i.fillColor,v=g===void 0?"transparent":g,b=i.imageSmoothingEnabled,y=b===void 0?!0:b,w=i.imageSmoothingQuality,L=w===void 0?"low":w,_=i.maxWidth,E=_===void 0?1/0:_,R=i.maxHeight,S=R===void 0?1/0:R,M=i.minWidth,D=M===void 0?0:M,O=i.minHeight,V=O===void 0?0:O,X=document.createElement("canvas"),K=X.getContext("2d"),z=fo({aspectRatio:h,width:E,height:S}),Q=fo({aspectRatio:h,width:D,height:V},"cover"),Y=Math.min(z.width,Math.max(Q.width,p)),he=Math.min(z.height,Math.max(Q.height,m)),ne=fo({aspectRatio:r,width:E,height:S}),Z=fo({aspectRatio:r,width:D,height:V},"cover"),_e=Math.min(ne.width,Math.max(Z.width,a)),Te=Math.min(ne.height,Math.max(Z.height,o)),ee=[-_e/2,-Te/2,_e,Te];return X.width=yl(Y),X.height=yl(he),K.fillStyle=v,K.fillRect(0,0,Y,he),K.save(),K.translate(Y/2,he/2),K.rotate(l*Math.PI/180),K.scale(u,f),K.imageSmoothingEnabled=y,K.imageSmoothingQuality=L,K.drawImage.apply(K,[t].concat(TT(ee.map(function(le){return Math.floor(yl(le))})))),K.restore(),X}var FT=String.fromCharCode;function v4(t,e,n){var i="";n+=e;for(var r=e;r<n;r+=1)i+=FT(t.getUint8(r));return i}var y4=/^data:.*,/;function b4(t){var e=t.replace(y4,""),n=atob(e),i=new ArrayBuffer(n.length),r=new Uint8Array(i);return Vn(r,function(a,o){r[o]=n.charCodeAt(o)}),i}function _4(t,e){for(var n=[],i=8192,r=new Uint8Array(t);r.length>0;)n.push(FT.apply(null,OT(r.subarray(0,i)))),r=r.subarray(i);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function x4(t){var e=new DataView(t),n;try{var i,r,a;if(e.getUint8(0)===255&&e.getUint8(1)===216)for(var o=e.byteLength,s=2;s+1<o;){if(e.getUint8(s)===255&&e.getUint8(s+1)===225){r=s;break}s+=1}if(r){var l=r+4,c=r+10;if(v4(e,l,4)==="Exif"){var u=e.getUint16(c);if(i=u===18761,(i||u===19789)&&e.getUint16(c+2,i)===42){var d=e.getUint32(c+4,i);d>=8&&(a=c+d)}}}if(a){var f=e.getUint16(a,i),h,p;for(p=0;p<f;p+=1)if(h=a+p*12+2,e.getUint16(h,i)===274){h+=8,n=e.getUint16(h,i),e.setUint16(h,1,i);break}}}catch{n=1}return n}function S4(t){var e=0,n=1,i=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:i=-1;break;case 5:e=90,i=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:n,scaleY:i}}var w4={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,n=this.options,i=this.container,r=this.cropper,a=Number(n.minContainerWidth),o=Number(n.minContainerHeight);Jn(r,Ni),Jr(e,Ni);var s={width:Math.max(i.offsetWidth,a>=0?a:IT),height:Math.max(i.offsetHeight,o>=0?o:LT)};this.containerData=s,uo(r,{width:s.width,height:s.height}),Jn(e,Ni),Jr(r,Ni)},initCanvas:function(){var e=this.containerData,n=this.imageData,i=this.options.viewMode,r=Math.abs(n.rotate)%180===90,a=r?n.naturalHeight:n.naturalWidth,o=r?n.naturalWidth:n.naturalHeight,s=a/o,l=e.width,c=e.height;e.height*s>e.width?i===3?l=e.height*s:c=e.width/s:i===3?c=e.width/s:l=e.height*s;var u={aspectRatio:s,naturalWidth:a,naturalHeight:o,width:l,height:c};this.canvasData=u,this.limited=i===1||i===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(e.width-u.width)/2,u.top=(e.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=xn({},u)},limitCanvas:function(e,n){var i=this.options,r=this.containerData,a=this.canvasData,o=this.cropBoxData,s=i.viewMode,l=a.aspectRatio,c=this.cropped&&o;if(e){var u=Number(i.minCanvasWidth)||0,d=Number(i.minCanvasHeight)||0;s>1?(u=Math.max(u,r.width),d=Math.max(d,r.height),s===3&&(d*l>u?u=d*l:d=u/l)):s>0&&(u?u=Math.max(u,c?o.width:0):d?d=Math.max(d,c?o.height:0):c&&(u=o.width,d=o.height,d*l>u?u=d*l:d=u/l));var f=fo({aspectRatio:l,width:u,height:d});u=f.width,d=f.height,a.minWidth=u,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(n)if(s>(c?0:1)){var h=r.width-a.width,p=r.height-a.height;a.minLeft=Math.min(0,h),a.minTop=Math.min(0,p),a.maxLeft=Math.max(0,h),a.maxTop=Math.max(0,p),c&&this.limited&&(a.minLeft=Math.min(o.left,o.left+(o.width-a.width)),a.minTop=Math.min(o.top,o.top+(o.height-a.height)),a.maxLeft=o.left,a.maxTop=o.top,s===2&&(a.width>=r.width&&(a.minLeft=Math.min(0,h),a.maxLeft=Math.max(0,h)),a.height>=r.height&&(a.minTop=Math.min(0,p),a.maxTop=Math.max(0,p))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(e,n){var i=this.canvasData,r=this.imageData;if(n){var a=m4({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=a.width,s=a.height,l=i.width*(o/i.naturalWidth),c=i.height*(s/i.naturalHeight);i.left-=(l-i.width)/2,i.top-=(c-i.height)/2,i.width=l,i.height=c,i.aspectRatio=o/s,i.naturalWidth=o,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,uo(this.canvas,xn({width:i.width,height:i.height},Kc({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var n=this.canvasData,i=this.imageData,r=i.naturalWidth*(n.width/n.naturalWidth),a=i.naturalHeight*(n.height/n.naturalHeight);xn(i,{width:r,height:a,left:(n.width-r)/2,top:(n.height-a)/2}),uo(this.image,xn({width:i.width,height:i.height},Kc(xn({translateX:i.left,translateY:i.top},i)))),e&&this.output()},initCropBox:function(){var e=this.options,n=this.canvasData,i=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,a={width:n.width,height:n.height};i&&(n.height*i>n.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*r),a.height=Math.max(a.minHeight,a.height*r),a.left=n.left+(n.width-a.width)/2,a.top=n.top+(n.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=xn({},a)},limitCropBox:function(e,n){var i=this.options,r=this.containerData,a=this.canvasData,o=this.cropBoxData,s=this.limited,l=i.aspectRatio;if(e){var c=Number(i.minCropBoxWidth)||0,u=Number(i.minCropBoxHeight)||0,d=s?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,f=s?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),l&&(c&&u?u*l>c?u=c/l:c=u*l:c?u=c/l:u&&(c=u*l),f*l>d?f=d/l:d=f*l),o.minWidth=Math.min(c,d),o.minHeight=Math.min(u,f),o.maxWidth=d,o.maxHeight=f}n&&(s?(o.minLeft=Math.max(0,a.left),o.minTop=Math.max(0,a.top),o.maxLeft=Math.min(r.width,a.left+a.width)-o.width,o.maxTop=Math.min(r.height,a.top+a.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,n=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,e.movable&&e.cropBoxMovable&&xu(this.face,_u,i.width>=n.width&&i.height>=n.height?CT:zy),uo(this.cropBox,xn({width:i.width,height:i.height},Kc({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),bl(this.element,_g,this.getData())}},M4={initPreview:function(){var e=this.element,n=this.crossOrigin,i=this.options.preview,r=n?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",o=document.createElement("img");if(n&&(o.crossOrigin=n),o.src=r,o.alt=a,this.viewBox.appendChild(o),this.viewBoxImage=o,!!i){var s=i;typeof i=="string"?s=e.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,Vn(s,function(l){var c=document.createElement("img");xu(l,bd,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(c.crossOrigin=n),c.src=r,c.alt=a,c.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(c)})}},resetPreview:function(){Vn(this.previews,function(e){var n=Eg(e,bd);uo(e,{width:n.width,height:n.height}),e.innerHTML=n.html,d4(e,bd)})},preview:function(){var e=this.imageData,n=this.canvasData,i=this.cropBoxData,r=i.width,a=i.height,o=e.width,s=e.height,l=i.left-n.left-e.left,c=i.top-n.top-e.top;!this.cropped||this.disabled||(uo(this.viewBoxImage,xn({width:o,height:s},Kc(xn({translateX:-l,translateY:-c},e)))),Vn(this.previews,function(u){var d=Eg(u,bd),f=d.width,h=d.height,p=f,m=h,g=1;r&&(g=f/r,m=a*g),a&&m>h&&(g=h/a,p=r*g,m=h),uo(u,{width:p,height:m}),uo(u.getElementsByTagName("img")[0],xn({width:o*g,height:s*g},Kc(xn({translateX:-l*g,translateY:-c*g},e))))}))}},E4={bind:function(){var e=this.element,n=this.options,i=this.cropper;Li(n.cropstart)&&sr(e,wg,n.cropstart),Li(n.cropmove)&&sr(e,Sg,n.cropmove),Li(n.cropend)&&sr(e,xg,n.cropend),Li(n.crop)&&sr(e,_g,n.crop),Li(n.zoom)&&sr(e,Mg,n.zoom),sr(i,Y_,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&sr(i,$_,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&sr(i,X_,this.onDblclick=this.dblclick.bind(this)),sr(e.ownerDocument,q_,this.onCropMove=this.cropMove.bind(this)),sr(e.ownerDocument,K_,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&sr(window,Z_,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,n=this.options,i=this.cropper;Li(n.cropstart)&&vr(e,wg,n.cropstart),Li(n.cropmove)&&vr(e,Sg,n.cropmove),Li(n.cropend)&&vr(e,xg,n.cropend),Li(n.crop)&&vr(e,_g,n.crop),Li(n.zoom)&&vr(e,Mg,n.zoom),vr(i,Y_,this.onCropStart),n.zoomable&&n.zoomOnWheel&&vr(i,$_,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&vr(i,X_,this.onDblclick),vr(e.ownerDocument,q_,this.onCropMove),vr(e.ownerDocument,K_,this.onCropEnd),n.responsive&&vr(window,Z_,this.onResize)}},T4={resize:function(){if(!this.disabled){var e=this.options,n=this.container,i=this.containerData,r=n.offsetWidth/i.width,a=n.offsetHeight/i.height,o=Math.abs(r-1)>Math.abs(a-1)?r:a;if(o!==1){var s,l;e.restore&&(s=this.getCanvasData(),l=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(Vn(s,function(c,u){s[u]=c*o})),this.setCropBoxData(Vn(l,function(c,u){l[u]=c*o})))}}},dblclick:function(){this.disabled||this.options.dragMode===DT||this.setDragMode(c4(this.dragBox,yg)?RT:Wy)},wheel:function(e){var n=this,i=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,e)))},cropStart:function(e){var n=e.buttons,i=e.button;if(!(this.disabled||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(Ht(n)&&n!==1||Ht(i)&&i!==0||e.ctrlKey))){var r=this.options,a=this.pointers,o;e.changedTouches?Vn(e.changedTouches,function(s){a[s.identifier]=_d(s)}):a[e.pointerId||0]=_d(e),Object.keys(a).length>1&&r.zoomable&&r.zoomOnTouch?o=PT:o=Eg(e.target,_u),JV.test(o)&&bl(this.element,wg,{originalEvent:e,action:o})!==!1&&(e.preventDefault(),this.action=o,this.cropping=!1,o===AT&&(this.cropping=!0,Jn(this.dragBox,Gf)))}},cropMove:function(e){var n=this.action;if(!(this.disabled||!n)){var i=this.pointers;e.preventDefault(),bl(this.element,Sg,{originalEvent:e,action:n})!==!1&&(e.changedTouches?Vn(e.changedTouches,function(r){xn(i[r.identifier]||{},_d(r,!0))}):xn(i[e.pointerId||0]||{},_d(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var n=this.action,i=this.pointers;e.changedTouches?Vn(e.changedTouches,function(r){delete i[r.identifier]}):delete i[e.pointerId||0],n&&(e.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,cl(this.dragBox,Gf,this.cropped&&this.options.modal)),bl(this.element,xg,{originalEvent:e,action:n}))}}},A4={change:function(e){var n=this.options,i=this.canvasData,r=this.containerData,a=this.cropBoxData,o=this.pointers,s=this.action,l=n.aspectRatio,c=a.left,u=a.top,d=a.width,f=a.height,h=c+d,p=u+f,m=0,g=0,v=r.width,b=r.height,y=!0,w;!l&&e.shiftKey&&(l=d&&f?d/f:1),this.limited&&(m=a.minLeft,g=a.minTop,v=m+Math.min(r.width,i.width,i.left+i.width),b=g+Math.min(r.height,i.height,i.top+i.height));var L=o[Object.keys(o)[0]],_={x:L.endX-L.startX,y:L.endY-L.startY},E=function(S){switch(S){case ko:h+_.x>v&&(_.x=v-h);break;case Uo:c+_.x<m&&(_.x=m-c);break;case ja:u+_.y<g&&(_.y=g-u);break;case Is:p+_.y>b&&(_.y=b-p);break}};switch(s){case zy:c+=_.x,u+=_.y;break;case ko:if(_.x>=0&&(h>=v||l&&(u<=g||p>=b))){y=!1;break}E(ko),d+=_.x,d<0&&(s=Uo,d=-d,c-=d),l&&(f=d/l,u+=(a.height-f)/2);break;case ja:if(_.y<=0&&(u<=g||l&&(c<=m||h>=v))){y=!1;break}E(ja),f-=_.y,u+=_.y,f<0&&(s=Is,f=-f,u-=f),l&&(d=f*l,c+=(a.width-d)/2);break;case Uo:if(_.x<=0&&(c<=m||l&&(u<=g||p>=b))){y=!1;break}E(Uo),d-=_.x,c+=_.x,d<0&&(s=ko,d=-d,c-=d),l&&(f=d/l,u+=(a.height-f)/2);break;case Is:if(_.y>=0&&(p>=b||l&&(c<=m||h>=v))){y=!1;break}E(Is),f+=_.y,f<0&&(s=ja,f=-f,u-=f),l&&(d=f*l,c+=(a.width-d)/2);break;case wc:if(l){if(_.y<=0&&(u<=g||h>=v)){y=!1;break}E(ja),f-=_.y,u+=_.y,d=f*l}else E(ja),E(ko),_.x>=0?h<v?d+=_.x:_.y<=0&&u<=g&&(y=!1):d+=_.x,_.y<=0?u>g&&(f-=_.y,u+=_.y):(f-=_.y,u+=_.y);d<0&&f<0?(s=Tc,f=-f,d=-d,u-=f,c-=d):d<0?(s=Mc,d=-d,c-=d):f<0&&(s=Ec,f=-f,u-=f);break;case Mc:if(l){if(_.y<=0&&(u<=g||c<=m)){y=!1;break}E(ja),f-=_.y,u+=_.y,d=f*l,c+=a.width-d}else E(ja),E(Uo),_.x<=0?c>m?(d-=_.x,c+=_.x):_.y<=0&&u<=g&&(y=!1):(d-=_.x,c+=_.x),_.y<=0?u>g&&(f-=_.y,u+=_.y):(f-=_.y,u+=_.y);d<0&&f<0?(s=Ec,f=-f,d=-d,u-=f,c-=d):d<0?(s=wc,d=-d,c-=d):f<0&&(s=Tc,f=-f,u-=f);break;case Tc:if(l){if(_.x<=0&&(c<=m||p>=b)){y=!1;break}E(Uo),d-=_.x,c+=_.x,f=d/l}else E(Is),E(Uo),_.x<=0?c>m?(d-=_.x,c+=_.x):_.y>=0&&p>=b&&(y=!1):(d-=_.x,c+=_.x),_.y>=0?p<b&&(f+=_.y):f+=_.y;d<0&&f<0?(s=wc,f=-f,d=-d,u-=f,c-=d):d<0?(s=Ec,d=-d,c-=d):f<0&&(s=Mc,f=-f,u-=f);break;case Ec:if(l){if(_.x>=0&&(h>=v||p>=b)){y=!1;break}E(ko),d+=_.x,f=d/l}else E(Is),E(ko),_.x>=0?h<v?d+=_.x:_.y>=0&&p>=b&&(y=!1):d+=_.x,_.y>=0?p<b&&(f+=_.y):f+=_.y;d<0&&f<0?(s=Mc,f=-f,d=-d,u-=f,c-=d):d<0?(s=Tc,d=-d,c-=d):f<0&&(s=wc,f=-f,u-=f);break;case CT:this.move(_.x,_.y),y=!1;break;case PT:this.zoom(h4(o),e),y=!1;break;case AT:if(!_.x||!_.y){y=!1;break}w=UT(this.cropper),c=L.startX-w.left,u=L.startY-w.top,d=a.minWidth,f=a.minHeight,_.x>0?s=_.y>0?Ec:wc:_.x<0&&(c-=d,s=_.y>0?Tc:Mc),_.y<0&&(u-=f),this.cropped||(Jr(this.cropBox,Ni),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}y&&(a.width=d,a.height=f,a.left=c,a.top=u,this.action=s,this.renderCropBox()),Vn(o,function(R){R.startX=R.endX,R.startY=R.endY})}},C4={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Jn(this.dragBox,Gf),Jr(this.cropBox,Ni),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=xn({},this.initialImageData),this.canvasData=xn({},this.initialCanvasData),this.cropBoxData=xn({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(xn(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Jr(this.dragBox,Gf),Jn(this.cropBox,Ni)),this},replace:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&e&&(this.isImg&&(this.element.src=e),n?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Vn(this.previews,function(i){i.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Jr(this.cropper,G_)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Jn(this.cropper,G_)),this},destroy:function(){var e=this.element;return e[bn]?(e[bn]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.canvasData,r=i.left,a=i.top;return this.moveTo(Np(e)?e:r+Number(e),Np(n)?n:a+Number(n))},moveTo:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.canvasData,r=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(Ht(e)&&(i.left=e,r=!0),Ht(n)&&(i.top=n,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,n){var i=this.canvasData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(i.width*e/i.naturalWidth,null,n)},zoomTo:function(e,n,i){var r=this.options,a=this.canvasData,o=a.width,s=a.height,l=a.naturalWidth,c=a.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&r.zoomable){var u=l*e,d=c*e;if(bl(this.element,Mg,{ratio:e,oldRatio:o/l,originalEvent:i})===!1)return this;if(i){var f=this.pointers,h=UT(this.cropper),p=f&&Object.keys(f).length?p4(f):{pageX:i.pageX,pageY:i.pageY};a.left-=(u-o)*((p.pageX-h.left-a.left)/o),a.top-=(d-s)*((p.pageY-h.top-a.top)/s)}else ll(n)&&Ht(n.x)&&Ht(n.y)?(a.left-=(u-o)*((n.x-a.left)/o),a.top-=(d-s)*((n.y-a.top)/s)):(a.left-=(u-o)/2,a.top-=(d-s)/2);a.width=u,a.height=d,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),Ht(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var n=this.imageData.scaleY;return this.scale(e,Ht(n)?n:1)},scaleY:function(e){var n=this.imageData.scaleX;return this.scale(Ht(n)?n:1,e)},scale:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.imageData,r=!1;return e=Number(e),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(Ht(e)&&(i.scaleX=e,r=!0),Ht(n)&&(i.scaleY=n,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,i=this.imageData,r=this.canvasData,a=this.cropBoxData,o;if(this.ready&&this.cropped){o={x:a.left-r.left,y:a.top-r.top,width:a.width,height:a.height};var s=i.width/i.naturalWidth;if(Vn(o,function(u,d){o[d]=u/s}),e){var l=Math.round(o.y+o.height),c=Math.round(o.x+o.width);o.x=Math.round(o.x),o.y=Math.round(o.y),o.width=c-o.x,o.height=l-o.y}}else o={x:0,y:0,width:0,height:0};return n.rotatable&&(o.rotate=i.rotate||0),n.scalable&&(o.scaleX=i.scaleX||1,o.scaleY=i.scaleY||1),o},setData:function(e){var n=this.options,i=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&ll(e)){var o=!1;n.rotatable&&Ht(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,o=!0),n.scalable&&(Ht(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,o=!0),Ht(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;Ht(e.x)&&(a.left=e.x*s+r.left),Ht(e.y)&&(a.top=e.y*s+r.top),Ht(e.width)&&(a.width=e.width*s),Ht(e.height)&&(a.height=e.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?xn({},this.containerData):{}},getImageData:function(){return this.sized?xn({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,n={};return this.ready&&Vn(["left","top","width","height","naturalWidth","naturalHeight"],function(i){n[i]=e[i]}),n},setCanvasData:function(e){var n=this.canvasData,i=n.aspectRatio;return this.ready&&!this.disabled&&ll(e)&&(Ht(e.left)&&(n.left=e.left),Ht(e.top)&&(n.top=e.top),Ht(e.width)?(n.width=e.width,n.height=e.width/i):Ht(e.height)&&(n.height=e.height,n.width=e.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var e=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:e.left,top:e.top,width:e.width,height:e.height}),n||{}},setCropBoxData:function(e){var n=this.cropBoxData,i=this.options.aspectRatio,r,a;return this.ready&&this.cropped&&!this.disabled&&ll(e)&&(Ht(e.left)&&(n.left=e.left),Ht(e.top)&&(n.top=e.top),Ht(e.width)&&e.width!==n.width&&(r=!0,n.width=e.width),Ht(e.height)&&e.height!==n.height&&(a=!0,n.height=e.height),i&&(r?n.height=n.width/i:a&&(n.width=n.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,i=g4(this.image,this.imageData,n,e);if(!this.cropped)return i;var r=this.getData(e.rounded),a=r.x,o=r.y,s=r.width,l=r.height,c=i.width/Math.floor(n.naturalWidth);c!==1&&(a*=c,o*=c,s*=c,l*=c);var u=s/l,d=fo({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=fo({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=fo({aspectRatio:u,width:e.width||(c!==1?i.width:s),height:e.height||(c!==1?i.height:l)}),p=h.width,m=h.height;p=Math.min(d.width,Math.max(f.width,p)),m=Math.min(d.height,Math.max(f.height,m));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=yl(p),g.height=yl(m),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,p,m);var b=e.imageSmoothingEnabled,y=b===void 0?!0:b,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=y,w&&(v.imageSmoothingQuality=w);var L=i.width,_=i.height,E=a,R=o,S,M,D,O,V,X;E<=-s||E>L?(E=0,S=0,D=0,V=0):E<=0?(D=-E,E=0,S=Math.min(L,s+E),V=S):E<=L&&(D=0,S=Math.min(s,L-E),V=S),S<=0||R<=-l||R>_?(R=0,M=0,O=0,X=0):R<=0?(O=-R,R=0,M=Math.min(_,l+R),X=M):R<=_&&(O=0,M=Math.min(l,_-R),X=M);var K=[E,R,S,M];if(V>0&&X>0){var z=p/s;K.push(D*z,O*z,V*z,X*z)}return v.drawImage.apply(v,[i].concat(TT(K.map(function(Q){return Math.floor(yl(Q))})))),g},setAspectRatio:function(e){var n=this.options;return!this.disabled&&!Np(e)&&(n.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var n=this.options,i=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var a=e===Wy,o=n.movable&&e===RT;e=a||o?e:DT,n.dragMode=e,xu(i,_u,e),cl(i,yg,a),cl(i,bg,o),n.cropBoxMovable||(xu(r,_u,e),cl(r,yg,a),cl(r,bg,o))}return this}},P4=ta.Cropper,Tg=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(zV(this,t),!e||!n4.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=xn({},ex,ll(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return WV(t,[{key:"init",value:function(){var n=this.element,i=n.tagName.toLowerCase(),r;if(!n[bn]){if(n[bn]=this,i==="img"){if(this.isImg=!0,r=n.getAttribute("src")||"",this.originalUrl=r,!r)return;r=n.src}else i==="canvas"&&window.HTMLCanvasElement&&(r=n.toDataURL());this.load(r)}}},{key:"load",value:function(n){var i=this;if(n){this.url=n,this.imageData={};var r=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(e4.test(n)){t4.test(n)?this.read(b4(n)):this.clone();return}var o=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=o,o.onabort=s,o.onerror=s,o.ontimeout=s,o.onprogress=function(){o.getResponseHeader("content-type")!==J_&&o.abort()},o.onload=function(){i.read(o.response)},o.onloadend=function(){i.reloading=!1,i.xhr=null},a.checkCrossOrigin&&nx(n)&&r.crossOrigin&&(n=ix(n)),o.open("GET",n,!0),o.responseType="arraybuffer",o.withCredentials=r.crossOrigin==="use-credentials",o.send()}}},{key:"read",value:function(n){var i=this.options,r=this.imageData,a=x4(n),o=0,s=1,l=1;if(a>1){this.url=_4(n,J_);var c=S4(a);o=c.rotate,s=c.scaleX,l=c.scaleY}i.rotatable&&(r.rotate=o),i.scalable&&(r.scaleX=s,r.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,i=this.url,r=n.crossOrigin,a=i;this.options.checkCrossOrigin&&nx(i)&&(r||(r="anonymous"),a=ix(i)),this.crossOrigin=r,this.crossOriginUrl=a;var o=document.createElement("img");r&&(o.crossOrigin=r),o.src=a||i,o.alt=n.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),Jn(o,j_),n.parentNode.insertBefore(o,n.nextSibling)}},{key:"start",value:function(){var n=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var r=ta.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(ta.navigator.userAgent),a=function(c,u){xn(n.imageData,{naturalWidth:c,naturalHeight:u,aspectRatio:c/u}),n.initialImageData=xn({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(i.naturalWidth&&!r){a(i.naturalWidth,i.naturalHeight);return}var o=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){a(o.width,o.height),r||s.removeChild(o)},o.src=i.src,r||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(o))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,i=this.options,r=this.image,a=n.parentNode,o=document.createElement("div");o.innerHTML=i4;var s=o.querySelector(".".concat(bn,"-container")),l=s.querySelector(".".concat(bn,"-canvas")),c=s.querySelector(".".concat(bn,"-drag-box")),u=s.querySelector(".".concat(bn,"-crop-box")),d=u.querySelector(".".concat(bn,"-face"));this.container=a,this.cropper=s,this.canvas=l,this.dragBox=c,this.cropBox=u,this.viewBox=s.querySelector(".".concat(bn,"-view-box")),this.face=d,l.appendChild(r),Jn(n,Ni),a.insertBefore(s,n.nextSibling),Jr(r,j_),this.initPreview(),this.bind(),i.initialAspectRatio=Math.max(0,i.initialAspectRatio)||NaN,i.aspectRatio=Math.max(0,i.aspectRatio)||NaN,i.viewMode=Math.max(0,Math.min(3,Math.round(i.viewMode)))||0,Jn(u,Ni),i.guides||Jn(u.getElementsByClassName("".concat(bn,"-dashed")),Ni),i.center||Jn(u.getElementsByClassName("".concat(bn,"-center")),Ni),i.background&&Jn(s,"".concat(bn,"-bg")),i.highlight||Jn(d,KV),i.cropBoxMovable&&(Jn(d,bg),xu(d,_u,zy)),i.cropBoxResizable||(Jn(u.getElementsByClassName("".concat(bn,"-line")),Ni),Jn(u.getElementsByClassName("".concat(bn,"-point")),Ni)),this.render(),this.ready=!0,this.setDragMode(i.dragMode),i.autoCrop&&this.crop(),this.setData(i.data),Li(i.ready)&&sr(n,Q_,i.ready,{once:!0}),bl(n,Q_)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),Jr(this.element,Ni)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=P4,t}},{key:"setDefaults",value:function(n){xn(ex,ll(n)&&n)}}])}();xn(Tg.prototype,w4,M4,E4,T4,A4,C4);/*!
 * vuex v4.0.2
 * (c) 2021 Evan You
 * @license MIT
 */var R4="store";function tc(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function BT(t){return t!==null&&typeof t=="object"}function D4(t){return t&&typeof t.then=="function"}function I4(t,e){return function(){return t(e)}}function VT(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function HT(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;zh(t,n,[],t._modules.root,!0),jy(t,n,e)}function jy(t,e,n){var i=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,a={};tc(r,function(o,s){a[s]=I4(o,t),Object.defineProperty(t.getters,s,{get:function(){return a[s]()},enumerable:!0})}),t._state=mn({data:e}),t.strict&&U4(t),i&&n&&t._withCommit(function(){i.data=null})}function zh(t,e,n,i,r){var a=!n.length,o=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=i),!a&&!r){var s=Xy(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){s[l]=i.state})}var c=i.context=L4(t,o,n);i.forEachMutation(function(u,d){var f=o+d;O4(t,f,u,c)}),i.forEachAction(function(u,d){var f=u.root?d:o+d,h=u.handler||u;N4(t,f,h,c)}),i.forEachGetter(function(u,d){var f=o+d;k4(t,f,u,c)}),i.forEachChild(function(u,d){zh(t,e,n.concat(d),u,r)})}function L4(t,e,n){var i=e==="",r={dispatch:i?t.dispatch:function(a,o,s){var l=jf(a,o,s),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=e+d),t.dispatch(d,c)},commit:i?t.commit:function(a,o,s){var l=jf(a,o,s),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=e+d),t.commit(d,c,u)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return zT(t,e)}},state:{get:function(){return Xy(t.state,n)}}}),r}function zT(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach(function(r){if(r.slice(0,i)===e){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return t.getters[r]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function O4(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push(function(o){n.call(t,i.state,o)})}function N4(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push(function(o){var s=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},o);return D4(s)||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):s})}function k4(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(a){return n(i.state,i.getters,a.state,a.getters)})}function U4(t){ft(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function Xy(t,e){return e.reduce(function(n,i){return n[i]},t)}function jf(t,e,n){return BT(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var F4="vuex bindings",rx="vuex:mutations",Up="vuex:actions",Ls="vuex",B4=0;function V4(t,e){Rk({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[F4]},function(n){n.addTimelineLayer({id:rx,label:"Vuex Mutations",color:ax}),n.addTimelineLayer({id:Up,label:"Vuex Actions",color:ax}),n.addInspector({id:Ls,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(i){if(i.app===t&&i.inspectorId===Ls)if(i.filter){var r=[];XT(r,e._modules.root,i.filter,""),i.rootNodes=r}else i.rootNodes=[jT(e._modules.root,"")]}),n.on.getInspectorState(function(i){if(i.app===t&&i.inspectorId===Ls){var r=i.nodeId;zT(e,r),i.state=W4(j4(e._modules,r),r==="root"?e.getters:e._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(i){if(i.app===t&&i.inspectorId===Ls){var r=i.nodeId,a=i.path;r!=="root"&&(a=r.split("/").filter(Boolean).concat(a)),e._withCommit(function(){i.set(e._state.data,a,i.state.value)})}}),e.subscribe(function(i,r){var a={};i.payload&&(a.payload=i.payload),a.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(Ls),n.sendInspectorState(Ls),n.addTimelineEvent({layerId:rx,event:{time:Date.now(),title:i.type,data:a}})}),e.subscribeAction({before:function(i,r){var a={};i.payload&&(a.payload=i.payload),i._id=B4++,i._time=Date.now(),a.state=r,n.addTimelineEvent({layerId:Up,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:a}})},after:function(i,r){var a={},o=Date.now()-i._time;a.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},i.payload&&(a.payload=i.payload),a.state=r,n.addTimelineEvent({layerId:Up,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:a}})}})})}var ax=8702998,H4=6710886,z4=16777215,WT={label:"namespaced",textColor:z4,backgroundColor:H4};function GT(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function jT(t,e){return{id:e||"root",label:GT(e),tags:t.namespaced?[WT]:[],children:Object.keys(t._children).map(function(n){return jT(t._children[n],e+n+"/")})}}function XT(t,e,n,i){i.includes(n)&&t.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:e.namespaced?[WT]:[]}),Object.keys(e._children).forEach(function(r){XT(t,e._children[r],n,i+r+"/")})}function W4(t,e,n){e=n==="root"?e:e[n];var i=Object.keys(e),r={state:Object.keys(t.state).map(function(o){return{key:o,editable:!0,value:t.state[o]}})};if(i.length){var a=G4(e);r.getters=Object.keys(a).map(function(o){return{key:o.endsWith("/")?GT(o):o,editable:!1,value:Ag(function(){return a[o]})}})}return r}function G4(t){var e={};return Object.keys(t).forEach(function(n){var i=n.split("/");if(i.length>1){var r=e,a=i.pop();i.forEach(function(o){r[o]||(r[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),r=r[o]._custom.value}),r[a]=Ag(function(){return t[n]})}else e[n]=Ag(function(){return t[n]})}),e}function j4(t,e){var n=e.split("/").filter(function(i){return i});return n.reduce(function(i,r,a){var o=i[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+e+'".');return a===n.length-1?o:o._children},e==="root"?t:t.root._children)}function Ag(t){try{return t()}catch(e){return e}}var Ur=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},YT={namespaced:{configurable:!0}};YT.namespaced.get=function(){return!!this._rawModule.namespaced};Ur.prototype.addChild=function(e,n){this._children[e]=n};Ur.prototype.removeChild=function(e){delete this._children[e]};Ur.prototype.getChild=function(e){return this._children[e]};Ur.prototype.hasChild=function(e){return e in this._children};Ur.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Ur.prototype.forEachChild=function(e){tc(this._children,e)};Ur.prototype.forEachGetter=function(e){this._rawModule.getters&&tc(this._rawModule.getters,e)};Ur.prototype.forEachAction=function(e){this._rawModule.actions&&tc(this._rawModule.actions,e)};Ur.prototype.forEachMutation=function(e){this._rawModule.mutations&&tc(this._rawModule.mutations,e)};Object.defineProperties(Ur.prototype,YT);var xs=function(e){this.register([],e,!1)};xs.prototype.get=function(e){return e.reduce(function(n,i){return n.getChild(i)},this.root)};xs.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(i,r){return n=n.getChild(r),i+(n.namespaced?r+"/":"")},"")};xs.prototype.update=function(e){qT([],this.root,e)};xs.prototype.register=function(e,n,i){var r=this;i===void 0&&(i=!0);var a=new Ur(n,i);if(e.length===0)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}n.modules&&tc(n.modules,function(s,l){r.register(e.concat(l),s,i)})};xs.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1],r=n.getChild(i);r&&r.runtime&&n.removeChild(i)};xs.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1];return n?n.hasChild(i):!1};function qT(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return;qT(t.concat(i),e.getChild(i),n.modules[i])}}function X4(t){return new ji(t)}var ji=function(e){var n=this;e===void 0&&(e={});var i=e.plugins;i===void 0&&(i=[]);var r=e.strict;r===void 0&&(r=!1);var a=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new xs(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=a;var o=this,s=this,l=s.dispatch,c=s.commit;this.dispatch=function(f,h){return l.call(o,f,h)},this.commit=function(f,h,p){return c.call(o,f,h,p)},this.strict=r;var u=this._modules.root.state;zh(this,u,[],this._modules.root),jy(this,u),i.forEach(function(d){return d(n)})},Yy={state:{configurable:!0}};ji.prototype.install=function(e,n){e.provide(n||R4,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&V4(e,this)};Yy.state.get=function(){return this._state.data};Yy.state.set=function(t){};ji.prototype.commit=function(e,n,i){var r=this,a=jf(e,n,i),o=a.type,s=a.payload,l={type:o,payload:s},c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(d){d(s)})}),this._subscribers.slice().forEach(function(u){return u(l,r.state)}))};ji.prototype.dispatch=function(e,n){var i=this,r=jf(e,n),a=r.type,o=r.payload,s={type:a,payload:o},l=this._actions[a];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(s,i.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(u){return u(o)})):l[0](o);return new Promise(function(u,d){c.then(function(f){try{i._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,i.state)})}catch{}u(f)},function(f){try{i._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,i.state,f)})}catch{}d(f)})})}};ji.prototype.subscribe=function(e,n){return VT(e,this._subscribers,n)};ji.prototype.subscribeAction=function(e,n){var i=typeof e=="function"?{before:e}:e;return VT(i,this._actionSubscribers,n)};ji.prototype.watch=function(e,n,i){var r=this;return ft(function(){return e(r.state,r.getters)},n,Object.assign({},i))};ji.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})};ji.prototype.registerModule=function(e,n,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),zh(this,this.state,e,this._modules.get(e),i.preserveState),jy(this,this.state)};ji.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var i=Xy(n.state,e.slice(0,-1));delete i[e[e.length-1]]}),HT(this)};ji.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};ji.prototype.hotUpdate=function(e){this._modules.update(e),HT(this,!0)};ji.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n};Object.defineProperties(ji.prototype,Yy);var qy=QT(function(t,e){var n={};return KT(e).forEach(function(i){var r=i.key,a=i.val;a=t+a,n[r]=function(){if(!(t&&!ZT(this.$store,"mapGetters",t)))return this.$store.getters[a]},n[r].vuex=!0}),n}),Ky=QT(function(t,e){var n={};return KT(e).forEach(function(i){var r=i.key,a=i.val;n[r]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var c=this.$store.dispatch;if(t){var u=ZT(this.$store,"mapActions",t);if(!u)return;c=u.context.dispatch}return typeof a=="function"?a.apply(this,[c].concat(s)):c.apply(this.$store,[a].concat(s))}}),n});function KT(t){return Y4(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function Y4(t){return Array.isArray(t)||BT(t)}function QT(t){return function(e,n){return typeof e!="string"?(n=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,n)}}function ZT(t,e,n){var i=t._modulesNamespaceMap[n];return i}const q4={props:["ojo"],computed:{...qy("example",["getOgImg","getFirstCrop","getSecondCrop","getOgImgRight","getFirstCropRight","getSecondCropRight"]),ogImg(){return this.getOgImg},firstCrop(){return this.getFirstCrop},secondCrop(){return this.getSecondCrop},ogImgRight(){return this.getOgImgRight},firstCropRight(){return this.getFirstCropRight},secondCropRight(){return this.getSecondCropRight}},mounted(){console.log(1111111188),console.log("------------------------->"+this.ogImg),console.log("------------------------->"+this.firstCrop),console.log("------------------------->"+this.secondCrop),console.log("------------------------->"+this.ogImgRight),console.log("------------------------->"+this.firstCropRight),console.log("------------------------->"+this.secondCropRight),console.log("ojo: ",this.ojo);let t=this.secondCrop!=""?this.secondCrop:this.firstCrop!=""?this.firstCrop:this.ogImg,e=this.secondCropRight!=""?this.secondCropRight:this.firstCropRight!=""?this.firstCropRight:this.ogImgRight;console.log(this.ogImg),console.log(this.ogImgRight),this.imageSelected=!0,this.ojo==0?this.imageSrc=t:this.imageSrc=e,this.$nextTick(()=>{this.initializeCropper()})},data(){return{cropper:null,imageSrc:"",croppedImage:"",imageSelected:!1,image:null,showRecorteIris:!1,cropper_2:null,imageSrc_2:"",image_2:"",croppedImage_2:"",imageSelected_2:!1}},methods:{...Ky("example",["updateOgImg","updateFirstCrop","updateSecondCrop","updateOgImgRight","updateFirstCropRight","updateSecondCropRight"]),setOgImg(t){this.updateOgImg(t)},setFirstCrop(t){this.updateFirstCrop(t)},setSecondCrop(t){this.updateSecondCrop(t)},setOgImgRight(t){this.updateOgImgRight(t)},setFirstCropRight(t){this.updateFirstCropRight(t)},setSecondCropRight(t){this.updateSecondCropRight(t)},onFileChange(t){const e=t.target.files;if(e.length){const n=new FileReader;n.onload=i=>{this.imageSelected=!0,this.imageSrc=i.target.result,this.$nextTick(()=>{this.initializeCropper()})},n.readAsDataURL(e[0])}},initializeCropper(){const t=this.$refs.imageElement;console.log(t),t?(this.cropper&&this.cropper.destroy(),this.cropper=new Tg(t,{aspectRatio:1,viewMode:1,dragMode:"move",cropBoxMovable:!0,cropBoxResizable:!0,guides:!1,center:!0,background:!1,highlight:!1,zoomable:!1,ready(){const e=this.cropper.cropBox;e.style.borderRadius="50%",e.style.border="2px dashed rgba(255,255,255,0.5)"}})):console.error("Image element is not available for Cropper.js")},cropImage(){if(this.cropper){const t=document.querySelectorAll("img.cropper-hidden")[0],e=document.querySelectorAll(".cropper-canvas img")[0];let n=this.cropper.getCropBoxData(),i=t.width/e.width,r=n.width*i,a=n.width*i;const o=this.cropper.getCroppedCanvas({width:r,height:a,imageSmoothingQuality:"high"}),s=document.createElement("canvas");s.width=r,s.height=r;const l=s.getContext("2d");l.beginPath(),l.arc(r/2,r/2,r/2,0,Math.PI*2,!0),l.closePath(),l.clip(),l.drawImage(o,0,0,r,r),this.croppedImage=s.toDataURL("image/png"),this.image_2=s.toDataURL("image/png"),this.imageSrc_2=s.toDataURL("image/png");return}},goToRecorteIris(){this.showRecorteIris=!0,this.imageSelected_2=!0,this.$nextTick(()=>{this.initializeCropper2()})},initializeCropper2(){console.log(this.imageSrc_2);const t=document.getElementById("imageElement22");console.log(this.$refs.imageElement),console.log(this.$refs.imageElement2),t?(this.cropper_2&&this.cropper_2.destroy(),this.cropper_2=new Tg(t,{aspectRatio:1,viewMode:1,cropBoxMovable:!0,cropBoxResizable:!0,guides:!1,center:!0,background:!1,highlight:!1,zoomable:!1,ready(){const e=this.cropper.cropBox;e.style.borderRadius="50%",e.style.border="2px dashed rgba(255,255,255,0.5)"}})):console.error("Image element is not available for Cropper.js")},cropImage2(){if(this.cropper_2){this.cropper_2.getCroppedCanvas({imageSmoothingQuality:"high"}),console.log(this.cropper_2);let t=this.cropper_2.getCropBoxData();const e=document.querySelectorAll("img.cropper-hidden")[0];let n=document.querySelectorAll(".cropper-canvas img")[0],i=document.querySelectorAll(".cropper-wrap-box")[0];const r=document.createElement("canvas");r.width=e.width,r.height=e.height;const a=r.getContext("2d");let o=e.width/n.width;a.drawImage(e,0,0);let s=Math.min(t.width*o*2,t.height*o*2)/4;a.beginPath(),a.fillStyle="black",a.arc(t.left*o-(i.scrollWidth-n.width)/2*o+t.width*o/2,t.top*o-(i.scrollHeight-n.height)/2*o+t.height*o/2,s,0,Math.PI*2,!0),a.fill(),this.croppedImage_2=r.toDataURL("image/png"),this.ojo==0?this.setSecondCrop(r.toDataURL("image/png")):this.setSecondCropRight(r.toDataURL("image/png"))}}}},K4={key:0,class:"mt-3",style:{height:"75vh",width:"auto"}},Q4=["src"],Z4=nt("br",null,null,-1),$4={key:0,class:"mt-3",style:{height:"75vh",width:"auto"}},J4=["src"],e5=nt("br",null,null,-1);function t5(t,e,n,i,r,a){return Ve(),St(Mt,null,[x(qt,{onClick:e[0]||(e[0]=o=>{console.log("recorte.vue: "),this.$emit("uwu")}),fab:"",color:"primary",class:"position-absolute ma-5 top-0 right-0",style:{"z-index":"99"}},{default:$(()=>[x(gn,null,{default:$(()=>[Be(" mdi-arrow-left ")]),_:1})]),_:1}),r.showRecorteIris?(Ve(),Wt(Vi,{key:0},{default:$(()=>[x(Ji,{justify:"center"},{default:$(()=>[x(pn,{cols:"18",sm:"6"},{default:$(()=>[x(Ci,null,{default:$(()=>[x(xa,null,{default:$(()=>[Be("Selecciona la zona de la pupila para eliminar:")]),_:1}),x(cr,null,{default:$(()=>[r.imageSelected_2?(Ve(),St("div",K4,[nt("img",{id:"imageElement22",ref:"imageElement2",src:r.imageSrc_2,alt:"Source 2",style:{"max-width":"100%"}},null,8,Q4)])):Ft("",!0),Z4,r.imageSelected_2?(Ve(),Wt(qt,{key:1,onClick:a.cropImage2,fab:"",color:"primary"},{default:$(()=>[Be("Elimina la pupila")]),_:1},8,["onClick"])):Ft("",!0)]),_:1})]),_:1})]),_:1}),x(pn,{cols:"6",sm:"4"},{default:$(()=>[x(Ci,null,{default:$(()=>[x(xa,null,{default:$(()=>[Be("Resultado:")]),_:1}),x(cr,{style:{display:"flex","flex-direction":"column"}},{default:$(()=>[r.croppedImage_2?(Ve(),Wt(sn,{key:0,src:r.croppedImage_2,class:"mb-3"},null,8,["src"])):Ft("",!0),r.croppedImage_2?(Ve(),Wt(qt,{key:1,onClick:e[1]||(e[1]=o=>{console.log("recorte.vue: "),this.$emit("uwu")}),fab:"",color:"primary"},{default:$(()=>[Be("Guardar")]),_:1})):Ft("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):Ft("",!0),r.showRecorteIris?Ft("",!0):(Ve(),Wt(Vi,{key:1},{default:$(()=>[x(Ji,{justify:"center",class:"d-flex"},{default:$(()=>[x(pn,{cols:"18",sm:"8"},{default:$(()=>[x(Ci,null,{default:$(()=>[x(xa,null,{default:$(()=>[Be("Recorta el iris")]),_:1}),x(cr,null,{default:$(()=>[r.imageSelected?(Ve(),St("div",$4,[nt("img",{ref:"imageElement",src:r.imageSrc,alt:"Source 1",style:{"max-width":"100%"}},null,8,J4)])):Ft("",!0),x(Ny),e5,r.imageSelected?(Ve(),Wt(qt,{key:1,onClick:a.cropImage,fab:"",color:"primary"},{default:$(()=>[Be(" Recorta ")]),_:1},8,["onClick"])):Ft("",!0)]),_:1})]),_:1})]),_:1}),x(pn,{cols:"6",sm:"4"},{default:$(()=>[x(Ci,null,{default:$(()=>[x(xa,null,{default:$(()=>[Be("Resultado recorte:")]),_:1}),x(cr,{style:{display:"flex","flex-direction":"column"}},{default:$(()=>[r.croppedImage?(Ve(),Wt(sn,{key:0,src:r.croppedImage,class:"mb-3"},null,8,["src"])):Ft("",!0),r.croppedImage?(Ve(),Wt(qt,{key:1,onClick:a.goToRecorteIris,fab:"",color:"primary"},{default:$(()=>[Be(" Ir al recorte pupila ")]),_:1},8,["onClick"])):Ft("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))],64)}const n5=Ri(q4,[["render",t5]]),i5={props:{base64Image:{type:String,default:null},ojo:{type:String,default:null}},data(){return{image:this.base64Image,isDragging:!1}},watch:{base64Image(t){console.log("nuevo valor img dropper"),this.image=t}},methods:{onDragOver(){this.isDragging=!0},onDragLeave(){this.isDragging=!1},onDrop(t){this.isDragging=!1;const e=t.dataTransfer.files[0];this.handleFile(e)},onFileChange(t){const e=t.target.files[0];this.handleFile(e)},handleFile(t){if(t&&t.type.startsWith("image/")){const e=new FileReader;e.onload=n=>{this.image=n.target.result,this.$emit("image-selected",n.target.result)},e.readAsDataURL(t)}},removeImage(){this.image=null,this.$emit("image-removed")},async autoRecorte(){try{const t=await Pi.post("/noc",null);if(t.status===200){const e=t.data;console.log("Form Submitted Successfully:",e),this.showToast("Usuario registrado","success")}else console.error("Form Submission Failed:",t.statusText),this.showToast("Form Submission Failed:","error")}catch{let e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAC1CAYAAACj8DbJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAH9GSURBVHhe5d0HvG41lTf+cHung1QFBVFAEFCxK+rYZnQsWEARHTti13FwVMCGgAq2sYAFK9iVYgPHggqIYkHFhiK9t9vL+eeb5/wu8XnPObfi6+f9r3Nzk52drKy1srKykp29nw2WL18+ssEGG5SRkZGyYsWKAqTBpEmTinvyxYG+vDLSyevLrS7AM3ny5BYvWrSo4ZgyZUpZunRpmTFjRqk0lmXLlrW2XM+fP7/85Cc/KRdccEH54x//WH7+85+X3//+92Xx4sVl5syZrRxQFk50bbXVVuUpT3lKOeigg1paO+7NmjWr4b/55ptbG9dee235wQ9+UP785z+XzTbbrJW74ooryrRp0xqNU6dOLXPmzCmzZ89udbWhPW2rf/3117e66LnsssvKdddd1+7vvvvuDd+d73znsseee5RNN920HPHGI8rPf/HzMnPGrHLYfx1WHvawhzU84RdNZ511Vvn6179errnmmjJ9+vSyfMXy2gEj7T760XLrrbc2fC996UvLxhtvXPbee+9yj3vco8kAvsgzMF4f9f23Nn2pDlAPD8IGldCVChbo02kkMaZSfm2ImAh0IJwIC35CveWWW1pnXnrppeVPf/pT+cUvflG+9rWvtQ688sormyISoE4HS5YsWUmjjoCPgujg+9///uXpT396echDHtLKKAsPhdChOoySClGkjTbaqNWN4o4HoR0fFO2SSy4pF110UfnWt75VzjnnnKZ4AD54b7llflm8aGFZvmxF2XTzTctud9+tPPOZzyx3vetd26C5+OKLy3nnnVd+85vfND7Qu2DhgjJ12pQydcrUMn/B/MY3JXr2s59dnvvc55Yddtih0a2f1DEgpMGq+io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/3gEUzWOSz5u6RbegSDwd4boNS/j8Z7tXN6TFD/QAAAABJRU5ErkJggg==";this.image=e,this.$emit("auto-recorte",[this.ojo,this.image])}console.log(2)}}},r5=t=>(vh("data-v-bc7fe641"),t=t(),yh(),t),a5={key:0,class:"drop-area"},o5=r5(()=>nt("p",null,"Arrastra una imagen o selecciona una:",-1)),s5={key:1,class:"image-preview d-flex justify-center align-center"},l5=["src"];function c5(t,e,n,i,r,a){return Ve(),St("div",{class:fi(["image-dropper",{"is-dragging":r.isDragging}]),onDragover:e[4]||(e[4]=vp((...o)=>a.onDragOver&&a.onDragOver(...o),["prevent"])),onDragleave:e[5]||(e[5]=vp((...o)=>a.onDragLeave&&a.onDragLeave(...o),["prevent"])),onDrop:e[6]||(e[6]=vp((...o)=>a.onDrop&&a.onDrop(...o),["prevent"]))},[r.image?Ft("",!0):(Ve(),St("div",a5,[o5,nt("input",{type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...o)=>a.onFileChange&&a.onFileChange(...o)),accept:"image/*"},null,544)])),r.image?(Ve(),St("div",s5,[nt("img",{src:r.image,alt:"Ojo",style:{width:"100%"}},null,8,l5),x(Ji,{class:"d-flex justify-center align-center pa-5 gap-4",style:{gap:"16px"}},{default:$(()=>[x(qt,{onClick:e[1]||(e[1]=o=>this.$emit("show-recorte")),fab:"",color:"primary"},{default:$(()=>[Be("Recortar")]),_:1}),x(qt,{onClick:a.removeImage,fab:"",color:"error"},{default:$(()=>[x(gn,null,{default:$(()=>[Be(" mdi-trash-can ")]),_:1})]),_:1},8,["onClick"]),x(qt,{onClick:e[2]||(e[2]=o=>this.$emit("reset")),fab:"",color:"green",class:"right-0",style:{"z-index":"99"}},{default:$(()=>[x(gn,null,{default:$(()=>[Be(" mdi-refresh ")]),_:1})]),_:1}),Ft("",!0)]),_:1})])):Ft("",!0)],34)}const Cg=Ri(i5,[["render",c5],["__scopeId","data-v-bc7fe641"]]),$T=t=>(vh("data-v-a548edc6"),t=t(),yh(),t),u5={key:2,class:"headline"},d5={class:"d-flex ga-10 justify-center align-center"},f5=$T(()=>nt("h3",{class:"headline"},"Iris izquierdo",-1)),h5=$T(()=>nt("h3",{class:"headline"},"Iris derecho",-1)),p5={props:["addImage","id","showRecorte"],watch:{showRecorte(t){if(t==!1){console.log("cmabio recorte");let e=this.secondCrop!=""?this.secondCrop:this.firstCrop!=""?this.firstCrop:this.ogImg;e!=""&&(this.base64Image=e),this.form.image1=e.split(",")[1];let n=this.secondCropRight!=""?this.secondCropRight:this.firstCropRight!=""?this.firstCropRight:this.ogImgRight;n!=""&&(this.base64ImageRight=n),this.form.image2=n.split(",")[1]}}},computed:{...qy("example",["getOgImg","getFirstCrop","getSecondCrop","getOgImgRight","getFirstCropRight","getSecondCropRight"]),ogImg(){return this.getOgImg},firstCrop(){return this.getFirstCrop},secondCrop(){return this.getSecondCrop},ogImgRight(){return this.getOgImgRight},firstCropRight(){return this.getFirstCropRight},secondCropRight(){return this.getSecondCropRight}},components:{ImageDropper:Cg},data(){return{base64Image:null,base64ImageRight:null,valid:!1,form:{nombre:"",description:"",date:"",image1:null,image2:null},rules:{required:t=>!!t||"Obligatorio."},toast:{snackbar:!1,message:"",color:"info",timeout:2e3},apiUrl:"https://colorimetria-api.tech-impulse.com"}},methods:{...Ky("example",["updateOgImg","updateFirstCrop","updateSecondCrop","updateOgImgRight","updateFirstCropRight","updateSecondCropRight"]),setOgImg(t){this.updateOgImg(t)},setFirstCrop(t){this.updateFirstCrop(t)},setSecondCrop(t){this.updateSecondCrop(t)},setOgImgRight(t){this.updateOgImgRight(t)},setFirstCropRight(t){this.updateFirstCropRight(t)},setSecondCropRight(t){this.updateSecondCropRight(t)},resetForm(){this.form.nombre="",this.form.description="",this.form.date="",this.base64Image="",this.base64ImageRight=""},saveAutoRecorte(t){let e=t[1];t[0]==0?(this.setSecondCrop(e),this.base64Image=e):(this.setSecondCropRight(e),this.base64ImageRight=e)},reset(t){console.log("reset",t),t==0?(this.setSecondCrop(""),this.setFirstCrop(""),console.log(this.ogImg),this.base64Image=this.ogImg):(this.setSecondCropRight(""),this.setFirstCropRight(""),this.base64ImageRight=this.ogImgRight)},cambiarARecorte(t){console.log("register: ",t),this.$emit("uwu",t)},async registrarPerfil(){if(this.form.date&&this.form.image1&&this.form.image2&&this.$refs.form.validate())try{const t=await Pi.post("/subir_perfil",{name:this.form.nombre,description:this.form.description,images:[this.form.image1,this.form.image2]});if(t.status===200||t.status===201){const e=t.data;console.log("Form Submitted Successfully:",e),this.resetForm(),this.showToast("Usuario registrado","success")}else console.error("Form Submission Failed:",t.statusText),this.showToast("Form Submission Failed:","error")}catch(t){console.error("Error during submission:",t),this.showToast("Error during submission:","error")}else this.showToast("Todos los campos son obligatorios","error")},async anadirNuevaImagen(){if(this.form.image1&&this.form.image2)try{const t=await Pi.post("/anadir_ojo/",{profile_id:this.id,images:[this.form.image1,this.form.image2]});if(t.status===200||t.status===201){const e=t.data;console.log("Form Submitted Successfully:",e),this.resetForm(),this.showToast("Usuario registrado","success")}else console.error("Form Submission Failed:",t.statusText),this.showToast("Form Submission Failed:","error")}catch(t){console.error("Error during submission:",t),this.showToast("Error during submission:","error")}else this.showToast("Todos los campos son obligatorios","error")},showToast(t,e="error"){this.toast.message=t,this.toast.color=e,this.toast.snackbar=!0},onImageSelected1(t,e){this.form.image1=t.split(",")[1],console.log(e),console.log(t),this.setOgImg(t)},onImageRemoved1(){console.log("remove img 1"),this.form.image1=null},onImageSelected2(t,e){console.log("holaaaa"),this.form.image2=t.split(",")[1],this.setOgImgRight(t),console.log(e)},onImageRemoved2(){this.form.image2=null},async autoRecorte(t){try{const e=await Pi.post("/noc",null);if(e.status===200){const n=e.data;console.log("Form Submitted Successfully:",n),this.showToast("aaaaa","success")}else console.error("Form Submission Failed:",e.statusText),this.showToast("Form Submission Failed:","error")}catch{this.saveAutoRecorte([t,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAC1CAYAAACj8DbJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAH9GSURBVHhe5d0HvG41lTf+cHung1QFBVFAEFCxK+rYZnQsWEARHTti13FwVMCGgAq2sYAFK9iVYgPHggqIYkHFhiK9t9vL+eeb5/wu8XnPObfi6+f9r3Nzk52drKy1srKykp29nw2WL18+ssEGG5SRkZGyYsWKAqTBpEmTinvyxYG+vDLSyevLrS7AM3ny5BYvWrSo4ZgyZUpZunRpmTFjRqk0lmXLlrW2XM+fP7/85Cc/KRdccEH54x//WH7+85+X3//+92Xx4sVl5syZrRxQFk50bbXVVuUpT3lKOeigg1paO+7NmjWr4b/55ptbG9dee235wQ9+UP785z+XzTbbrJW74ooryrRp0xqNU6dOLXPmzCmzZ89udbWhPW2rf/3117e66LnsssvKdddd1+7vvvvuDd+d73znsseee5RNN920HPHGI8rPf/HzMnPGrHLYfx1WHvawhzU84RdNZ511Vvn6179errnmmjJ9+vSyfMXy2gEj7T760XLrrbc2fC996UvLxhtvXPbee+9yj3vco8kAvsgzMF4f9f23Nn2pDlAPD8IGldCVChbo02kkMaZSfm2ImAh0IJwIC35CveWWW1pnXnrppeVPf/pT+cUvflG+9rWvtQ688sormyISoE4HS5YsWUmjjoCPgujg+9///uXpT396echDHtLKKAsPhdChOoySClGkjTbaqNWN4o4HoR0fFO2SSy4pF110UfnWt75VzjnnnKZ4AD54b7llflm8aGFZvmxF2XTzTctud9+tPPOZzyx3vetd26C5+OKLy3nnnVd+85vfND7Qu2DhgjJ12pQydcrUMn/B/MY3JXr2s59dnvvc55Yddtih0a2f1DEgpMGq+ioyG06vLihPRvoj8HcWLAj7RnJPDJJOmXWF4CMEaUKJVQA6ipKxVp/85CfLj370o6YQCxYsaKOVgFk0daXVhysWMSN31113LVtvvXX53ve+V3bcccfy5je/ud2nBJRvu+22a0q04YYblk022aTREICblaDk4Z0iqS8A9IYPNLiOwuOBFfzhD3/YBsbPfvazcuONN5a5c+ZV5KXxd8MN11f8s8tOO+3UlN7AgU9wT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gSLhZAQpkivBIRgfaD2KZWA37cZRIR6uTR1YRBhzq6GR+JSumjLKE59qKEw5TEIGzThSPhTQdqw+Up/S2F+A2GCmtDojM4HVPh1jJSVsIRL7agY/ySlMwiiSdzqTgyqjrcZcpHuBJWeXgci1OOhC593lRYHnoNGNRMNs/rCneyYWi0QFllA9+tIh7fYBLPBFMrowf3vswBBSEwwSGcKDjc61OQH4IWx1IOe2lXjpMHkFL2wOy2UrJrNSMcJ2vvI5mmShGgKKEFsH0SkkJkAVTX3lp9MNFCdPJ9p6yVyWPwCkByF6WFSFFRx/FC2jXloQVL6dePe1TDrJ2H28soTx0aFMaHtf8Q0ebDH7Kbgp3Tz3tgV7G0gmBPh0LJAZkIq1dys9SfvOb32xTMtnw1SicNgW4lCcrePq2+naGYXJlqu2DaTAQZELyxRATDkEoI62MdMpJRzEnajiQsn1bYcQ15pTRwRxej4BMN85Yuc5KUscRCmVQPkofgRAkevlDFBI+yqMNHaa+soRKmSkOZ1ieusrpeIuP0GCPKbSFfgPCq/5WjZSLovO/KEi2JpQ1IFgvaW2KQyfldGLCuwUsC7qj3PgDqyPbHpTXRvpKWwH48YA+g4df6YSItr3Vrr8DygH0oLXHA3q63JtcR8ThErEWiEjnyBMQFAJjPjWOWWWDFB4h131j40HKaEca7oxQ7aVz08GeQ/If0Gpa1GGUwTSq01gKdCnb00WIph5Ww4kHdHOcgc53jbc8p2QlXaMhHYNGdSj1vvvu22iKcqmPJgroPD2fkLVFmzrKaJc1gsvqlTV1zg1oy0Bxpsx3J+BJm5GrMlGO8La6oHzkIAA0p2/dw4s2KA/3gEUzWOSz5u6RbegSDwd4boNS/j8Z7tXN6TFD/QAAAABJRU5ErkJggg=="])}console.log(2)},goBack(){this.$router.go(-1)}}},m5=Object.assign(p5,{__name:"Register",setup(t){return(e,n)=>(Ve(),St(Mt,null,[t.addImage!=1?(Ve(),Wt(Gu,{key:0,modelValue:e.dialog_add,"onUpdate:modelValue":n[1]||(n[1]=i=>e.dialog_add=i),density:"compact",color:"blue"},{default:$(()=>[x(qt,{to:{path:"/"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(gn,{class:""},{default:$(()=>[Be("mdi-home")]),_:1})]),_:1}),x(qt,{to:{path:"/pacientes"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(By,{activator:"parent",location:"start"},{default:$(()=>[Be("Pacientes")]),_:1}),x(gn,{class:""},{default:$(()=>[Be("mdi-view-list")]),_:1})]),_:1}),x(ec,null,{default:$(()=>[Be("Registrar paciente")]),_:1}),x(qt,{onClick:n[0]||(n[0]=i=>e.$router.go(-1)),fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(gn,{class:""},{default:$(()=>[Be("mdi-arrow-left")]),_:1})]),_:1})]),_:1},8,["modelValue"])):Ft("",!0),x(Vi,{class:"w-90 ga-sm-4 d-flex justify-center align-center"},{default:$(()=>[x(Ci,{class:"pa-5 w-90",style:{"border-radius":"1em","background-color":"white",color:"black",border:"1px solid #ccc"}},{default:$(()=>[t.addImage!=1?(Ve(),Wt(xa,{key:0,class:"text-h5"},{default:$(()=>[Be("Registrar nuevo paciente")]),_:1})):Ft("",!0),t.addImage==1?(Ve(),Wt(xa,{key:1,class:"text-h5"},{default:$(()=>[Be("Registrar nuevo iris")]),_:1})):Ft("",!0),x(Iy,{ref:"form",modelValue:e.valid,"onUpdate:modelValue":n[11]||(n[11]=i=>e.valid=i),class:"pa-5 ga-sm-4 d-flex flex-column",color:"red"},{default:$(()=>[t.addImage!=1?(Ve(),Wt(go,{key:0,modelValue:e.form.nombre,"onUpdate:modelValue":n[2]||(n[2]=i=>e.form.nombre=i),label:"Nombre",rules:[e.rules.required]},null,8,["modelValue","rules"])):Ft("",!0),t.addImage!=1?(Ve(),Wt(go,{key:1,modelValue:e.form.description,"onUpdate:modelValue":n[3]||(n[3]=i=>e.form.description=i),label:"Descripción"},null,8,["modelValue"])):Ft("",!0),t.addImage!=1?(Ve(),St("h3",u5,"Fecha")):Ft("",!0),t.addImage!=1?(Ve(),Wt(go,{key:3,modelValue:e.form.date,"onUpdate:modelValue":n[4]||(n[4]=i=>e.form.date=i),label:"Fecha",type:"date",rules:[e.rules.required]},null,8,["modelValue","rules"])):Ft("",!0),x(Ci,{style:{"border-radius":"1em","background-color":"white",color:"black",border:"none","box-shadow":"none"}},{default:$(()=>[nt("div",d5,[x(Ci,{class:"pa-5",style:{border:"1px solid grey","border-radius":"1em","background-color":"white",color:"black"}},{default:$(()=>[f5,x(Cg,{onReset:n[5]||(n[5]=i=>e.reset(0)),onShowRecorte:n[6]||(n[6]=i=>e.cambiarARecorte(0)),onImageSelected:e.onImageSelected1,onImageRemoved:e.onImageRemoved1,onAutoRecorte:n[7]||(n[7]=i=>e.autoRecorte(0)),base64Image:e.base64Image,ojo:0,rules:[e.rules.required]},null,8,["onImageSelected","onImageRemoved","base64Image","rules"])]),_:1}),x(Ci,{class:"pa-5",style:{border:"1px solid grey","border-radius":"1em","background-color":"white",color:"black"}},{default:$(()=>[h5,x(Cg,{onReset:n[8]||(n[8]=i=>e.reset(1)),onShowRecorte:n[9]||(n[9]=i=>e.cambiarARecorte(1)),onImageSelected:e.onImageSelected2,onImageRemoved:e.onImageRemoved2,onAutoRecorte:n[10]||(n[10]=i=>e.autoRecorte(1)),base64Image:e.base64ImageRight,ojo:1,rules:[e.rules.required]},null,8,["onImageSelected","onImageRemoved","base64Image","rules"])]),_:1})])]),_:1}),x(Ny),t.addImage!=1?(Ve(),Wt(qt,{key:4,disabled:!e.valid,color:"primary",onClick:e.registrarPerfil},{default:$(()=>[Be(" Enviar ")]),_:1},8,["disabled","onClick"])):Ft("",!0),t.addImage==1?(Ve(),Wt(qt,{key:5,color:"primary",onClick:e.anadirNuevaImagen},{default:$(()=>[Be(" Añadir ")]),_:1},8,["onClick"])):Ft("",!0)]),_:1},8,["modelValue"])]),_:1})]),_:1}),x(zf,{modelValue:e.toast.snackbar,"onUpdate:modelValue":n[13]||(n[13]=i=>e.toast.snackbar=i),timeout:e.toast.timeout,color:e.toast.color,top:"",right:""},{action:$(({attrs:i})=>[x(qt,Ye({color:"white",text:""},i,{onClick:n[12]||(n[12]=r=>e.toast.snackbar=!1)}),{default:$(()=>[Be(" Cerrar ")]),_:2},1040)]),default:$(()=>[Be(Tn(e.toast.message)+" ",1)]),_:1},8,["modelValue","timeout","color"])],64))}}),g5=Ri(m5,[["__scopeId","data-v-a548edc6"]]),v5={props:["addImage","id"],computed:{...qy("example",["getOgImg","getFirstCrop","getSecondCrop","getOgImgRight","getFirstCropRight","getSecondCropRight"]),ogImg(){return this.getOgImg},firstCrop(){return this.getFirstCrop},secondCrop(){return this.getSecondCrop},ogImgRight(){return this.getOgImgRight},firstCropRight(){return this.getFirstCropRight},secondCropRight(){return this.getSecondCropRight}},mounted(){},unmounted(){this.setSecondCrop(""),this.setFirstCrop(""),this.setOgImg(""),this.setSecondCropRight(""),this.setFirstCropRight(""),this.setOgImgRight("")},data(){return{showRecorte:!1,ojo:0}},methods:{showRecorteEvent(t){this.ojo=t,console.log("new user: ",t),this.showRecorte=!this.showRecorte},...Ky("example",["updateOgImg","updateFirstCrop","updateSecondCrop","updateOgImgRight","updateFirstCropRight","updateSecondCropRight"]),setOgImg(t){this.updateOgImg(t)},setFirstCrop(t){this.updateFirstCrop(t)},setSecondCrop(t){this.updateSecondCrop(t)},setOgImgRight(t){this.updateOgImgRight(t)},setFirstCropRight(t){this.updateFirstCropRight(t)},setSecondCropRight(t){this.updateSecondCropRight(t)}}},y5={key:0};function b5(t,e,n,i,r,a){const o=g5,s=n5;return Ve(),St(Mt,null,[Gi(nt("div",null,[x(o,{onUwu:a.showRecorteEvent,addImage:n.addImage,id:n.id,showRecorte:r.showRecorte},null,8,["onUwu","addImage","id","showRecorte"])],512),[[vs,!r.showRecorte]]),r.showRecorte?(Ve(),St("div",y5,[x(s,{ojo:r.ojo,onUwu:a.showRecorteEvent},null,8,["ojo","onUwu"])])):Ft("",!0)],64)}const JT=Ri(v5,[["render",b5]]);/**
 * Vue 3 Carousel 0.3.4
 * (c) 2024
 * @license MIT
 */const Xn={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},ox={itemsToShow:{default:Xn.itemsToShow,type:Number},itemsToScroll:{default:Xn.itemsToScroll,type:Number},wrapAround:{default:Xn.wrapAround,type:Boolean},throttle:{default:Xn.throttle,type:Number},snapAlign:{default:Xn.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:Xn.transition,type:Number},breakpoints:{default:Xn.breakpoints,type:Object},autoplay:{default:Xn.autoplay,type:Number},pauseAutoplayOnHover:{default:Xn.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Xn.mouseDrag,type:Boolean},touchDrag:{default:Xn.touchDrag,type:Boolean},dir:{default:Xn.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:Xn.i18n,type:Object},settings:{default(){return{}},type:Object}};function _5({config:t,slidesCount:e}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=t;if(i)return Math.max(e-1,0);let a;switch(n){case"start":a=e-r;break;case"end":a=e-1;break;case"center":case"center-odd":a=e-Math.ceil((r-.5)/2);break;case"center-even":a=e-Math.ceil(r/2);break;default:a=0;break}return Math.max(a,0)}function x5({config:t,slidesCount:e}){const{wrapAround:n,snapAlign:i,itemsToShow:r=1}=t;let a=0;if(n||r>e)return a;switch(i){case"start":a=0;break;case"end":a=r-1;break;case"center":case"center-odd":a=Math.floor((r-1)/2);break;case"center-even":a=Math.floor((r-2)/2);break;default:a=0;break}return a}function Pg({val:t,max:e,min:n}){return e<n?t:Math.min(Math.max(t,n),e)}function S5({config:t,currentSlide:e,slidesCount:n}){const{snapAlign:i,wrapAround:r,itemsToShow:a=1}=t;let o=e;switch(i){case"center":case"center-odd":o-=(a-1)/2;break;case"center-even":o-=(a-2)/2;break;case"end":o-=a-1;break}return r?o:Pg({val:o,max:n-a,min:0})}function eA(t){return t?t.reduce((e,n)=>{var i;return n.type===Mt?[...e,...eA(n.children)]:((i=n.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...e,n]:e},[]):[]}function Rg({val:t,max:e,min:n=0}){return t>e?Rg({val:t-(e+1),max:e,min:n}):t<n?Rg({val:t+(e+1),max:e,min:n}):t}function w5(t,e){let n;return e?function(...i){const r=this;n||(t.apply(r,i),n=!0,setTimeout(()=>n=!1,e))}:t}function M5(t,e){let n;return function(...i){n&&clearTimeout(n),n=setTimeout(()=>{t(...i),n=null},e)}}function E5(t="",e={}){return Object.entries(e).reduce((n,[i,r])=>n.replace(`{${i}}`,String(r)),t)}var T5=Eo({name:"ARIA",setup(){const t=Ct("config",mn(Object.assign({},Xn))),e=Ct("currentSlide",ke(0)),n=Ct("slidesCount",ke(0));return()=>Cn("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},E5(t.i18n.itemXofY,{currentSlide:e.value+1,slidesCount:n.value}))}}),tA=Eo({name:"Carousel",props:ox,setup(t,{slots:e,emit:n,expose:i}){var r;const a=ke(null),o=ke([]),s=ke(0),l=ke(0),c=mn(Object.assign({},Xn));let u=Object.assign({},Xn),d;const f=ke((r=t.modelValue)!==null&&r!==void 0?r:0),h=ke(0),p=ke(0),m=ke(0),g=ke(0);let v,b;ln("config",c),ln("slidesCount",l),ln("currentSlide",f),ln("maxSlide",m),ln("minSlide",g),ln("slideWidth",s);function y(){d=Object.assign({},t.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),t),{i18n:Object.assign(Object.assign({},u.i18n),t.i18n),breakpoints:void 0}),L(u)}function w(){if(!d||!Object.keys(d).length)return;const B=Object.keys(d).map(ie=>Number(ie)).sort((ie,fe)=>+fe-+ie);let J=Object.assign({},u);B.some(ie=>{const fe=window.matchMedia(`(min-width: ${ie}px)`).matches;return fe&&(J=Object.assign(Object.assign({},J),d[ie])),fe}),L(J)}function L(B){Object.entries(B).forEach(([J,ie])=>c[J]=ie)}const _=M5(()=>{w(),R(),E()},16);function E(){if(!a.value)return;const B=a.value.getBoundingClientRect();s.value=B.width/c.itemsToShow}function R(){l.value<=0||(p.value=Math.ceil((l.value-1)/2),m.value=_5({config:c,slidesCount:l.value}),g.value=x5({config:c,slidesCount:l.value}),c.wrapAround||(f.value=Pg({val:f.value,max:m.value,min:g.value})))}ir(()=>{ri(()=>E()),setTimeout(()=>E(),1e3),w(),ne(),window.addEventListener("resize",_,{passive:!0}),n("init")}),Kv(()=>{b&&clearTimeout(b),v&&clearInterval(v),window.removeEventListener("resize",_,{passive:!0})});let S=!1;const M={x:0,y:0},D={x:0,y:0},O=mn({x:0,y:0}),V=ke(!1),X=ke(!1),K=()=>{V.value=!0},z=()=>{V.value=!1};function Q(B){["INPUT","TEXTAREA","SELECT"].includes(B.target.tagName)||(S=B.type==="touchstart",S||B.preventDefault(),!(!S&&B.button!==0||_e.value)&&(M.x=S?B.touches[0].clientX:B.clientX,M.y=S?B.touches[0].clientY:B.clientY,document.addEventListener(S?"touchmove":"mousemove",Y,!0),document.addEventListener(S?"touchend":"mouseup",he,!0)))}const Y=w5(B=>{X.value=!0,D.x=S?B.touches[0].clientX:B.clientX,D.y=S?B.touches[0].clientY:B.clientY;const J=D.x-M.x,ie=D.y-M.y;O.y=ie,O.x=J},c.throttle);function he(){const B=c.dir==="rtl"?-1:1,J=Math.sign(O.x)*.4,ie=Math.round(O.x/s.value+J)*B;if(ie&&!S){const fe=ye=>{window.removeEventListener("click",fe,!0)};window.addEventListener("click",fe,!0)}Te(f.value-ie),O.x=0,O.y=0,X.value=!1,document.removeEventListener(S?"touchmove":"mousemove",Y,!0),document.removeEventListener(S?"touchend":"mouseup",he,!0)}function ne(){!c.autoplay||c.autoplay<=0||(v=setInterval(()=>{c.pauseAutoplayOnHover&&V.value||ee()},c.autoplay))}function Z(){v&&(clearInterval(v),v=null),ne()}const _e=ke(!1);function Te(B){const J=c.wrapAround?B:Pg({val:B,max:m.value,min:g.value});f.value===J||_e.value||(n("slide-start",{slidingToIndex:B,currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:l.value}),_e.value=!0,h.value=f.value,f.value=J,b=setTimeout(()=>{if(c.wrapAround){const ie=Rg({val:J,max:m.value,min:0});ie!==f.value&&(f.value=ie,n("loop",{currentSlideIndex:f.value,slidingToIndex:B}))}n("update:modelValue",f.value),n("slide-end",{currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:l.value}),_e.value=!1,Z()},c.transition))}function ee(){Te(f.value+c.itemsToScroll)}function le(){Te(f.value-c.itemsToScroll)}const re={slideTo:Te,next:ee,prev:le};ln("nav",re),ln("isSliding",_e);const W=q(()=>S5({config:c,currentSlide:f.value,slidesCount:l.value}));ln("slidesToScroll",W);const ce=q(()=>{const B=c.dir==="rtl"?-1:1,J=W.value*s.value*B;return{transform:`translateX(${O.x-J}px)`,transition:`${_e.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${l.value*s.value}px`:"",width:"100%"}});function me(){y(),w(),R(),E(),Z()}Object.keys(ox).forEach(B=>{["modelValue"].includes(B)||ft(()=>t[B],me)}),ft(()=>t.modelValue,B=>{B!==f.value&&Te(Number(B))}),ft(l,R),n("before-init"),y();const Ce={config:c,slidesCount:l,slideWidth:s,next:ee,prev:le,slideTo:Te,currentSlide:f,maxSlide:m,minSlide:g,middleSlide:p};i({updateBreakpointsConfigs:w,updateSlidesData:R,updateSlideWidth:E,initDefaultConfigs:y,restartCarousel:me,slideTo:Te,next:ee,prev:le,nav:re,data:Ce});const $e=e.default||e.slides,j=e.addons,H=mn(Ce);return()=>{const B=eA($e==null?void 0:$e(H)),J=(j==null?void 0:j(H))||[];B.forEach((Me,k)=>Me.props.index=k);let ie=B;if(c.wrapAround){const Me=B.map((T,G)=>Cr(T,{index:-B.length+G,isClone:!0,key:`clone-before-${G}`})),k=B.map((T,G)=>Cr(T,{index:B.length+G,isClone:!0,key:`clone-after-${G}`}));ie=[...Me,...B,...k]}o.value=B,l.value=Math.max(B.length,1);const fe=Cn("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:c.mouseDrag?Q:null,onTouchstartPassiveCapture:c.touchDrag?Q:null},ie),ye=Cn("div",{class:"carousel__viewport"},fe);return Cn("section",{ref:a,class:{carousel:!0,"is-sliding":_e.value,"is-dragging":X.value,"is-hover":V.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:K,onMouseleave:z},[ye,J,Cn(T5)])}}}),Dg;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Dg||(Dg={}));const A5={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function C5(t){return t in Dg}const Ig=t=>{const e=Ct("config",mn(Object.assign({},Xn))),n=String(t.name),i=`icon${n.charAt(0).toUpperCase()+n.slice(1)}`;if(!n||typeof n!="string"||!C5(n))return;const r=A5[n],a=Cn("path",{d:r}),o=e.i18n[i]||t.title||n,s=Cn("title",o);return Cn("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[s,a])};Ig.props={name:String,title:String};const nA=(t,{slots:e,attrs:n})=>{const{next:i,prev:r}=e||{},a=Ct("config",mn(Object.assign({},Xn))),o=Ct("maxSlide",ke(1)),s=Ct("minSlide",ke(1)),l=Ct("currentSlide",ke(1)),c=Ct("nav",{}),{dir:u,wrapAround:d,i18n:f}=a,h=u==="rtl",p=Cn("button",{type:"button",class:["carousel__prev",!d&&l.value<=s.value&&"carousel__prev--disabled",n==null?void 0:n.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(r==null?void 0:r())||Cn(Ig,{name:h?"arrowRight":"arrowLeft"})),m=Cn("button",{type:"button",class:["carousel__next",!d&&l.value>=o.value&&"carousel__next--disabled",n==null?void 0:n.class],"aria-label":f.ariaNextSlide,onClick:c.next},(i==null?void 0:i())||Cn(Ig,{name:h?"arrowLeft":"arrowRight"}));return[p,m]};var iA=Eo({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:e}){const n=Ct("config",mn(Object.assign({},Xn))),i=Ct("currentSlide",ke(0)),r=Ct("slidesToScroll",ke(0)),a=Ct("isSliding",ke(!1)),o=q(()=>t.index===i.value),s=q(()=>t.index===i.value-1),l=q(()=>t.index===i.value+1),c=q(()=>{const u=Math.floor(r.value),d=Math.ceil(r.value+n.itemsToShow-1);return t.index>=u&&t.index<=d});return()=>{var u;return Cn("li",{style:{width:`${100/n.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":c.value,"carousel__slide--active":o.value,"carousel__slide--prev":s.value,"carousel__slide--next":l.value,"carousel__slide--sliding":a.value},"aria-hidden":!c.value},(u=e.default)===null||u===void 0?void 0:u.call(e,{isActive:o.value,isClone:t.isClone,isPrev:s.value,isNext:l.value,isSliding:a.value,isVisible:c.value}))}}});const P5={name:"ImageCardComponent",components:{Escala:Vh},props:["eye_id","profile_id","eye_path","grado","escala","melanina","eye"],data(){return{info:this.profile_id}},mounted(){},methods:{openModal(){console.log("openModal",this.profile_id,this.eye_id),this.$emit("openModal",this.profile_id,this.eye_id)}}},nc=t=>(vh("data-v-b2a204fc"),t=t(),yh(),t),R5=nc(()=>nt("b",null,"Grado:",-1)),D5=nc(()=>nt("br",null,null,-1)),I5=nc(()=>nt("b",null,"Escala:",-1)),L5=nc(()=>nt("br",null,null,-1)),O5=nc(()=>nt("b",null,"Melanina:",-1)),N5=nc(()=>nt("br",null,null,-1));function k5(t,e,n,i,r,a){const o=Vh;return Ve(),Wt(Vi,{class:"eye-summary-card w-100"},{default:$(()=>[x(Ji,null,{default:$(()=>[x(pn,null,{default:$(()=>[x(sn,{onClick:a.openModal,src:this.eye_path,height:"100%",contain:""},null,8,["onClick","src"])]),_:1}),x(pn,{class:"d-flex align-center justify-center pa-0"},{default:$(()=>[x(Ci,{"max-width":"400",outlined:"",class:"pa-0 w-100"},{default:$(()=>[Be(Tn(this.eye==0?"Iris Izquierdo":"Iris Derecho")+" ",1),x(cr,null,{default:$(()=>[R5,Be(" "+Tn(this.grado)+" ",1),D5,I5,Be(" "+Tn(this.escala)+" ",1),L5,O5,Be(" "+Tn(this.melanina)+" ",1),N5]),_:1})]),_:1})]),_:1}),x(pn,{class:"pa-0 ma-1"},{default:$(()=>[x(o,{escala:this.escala},null,8,["escala"])]),_:1})]),_:1})]),_:1})}const rA=Ri(P5,[["render",k5],["__scopeId","data-v-b2a204fc"]]);/**
 * @license
 * Copyright 2010-2024 Three.js Authors
 * SPDX-License-Identifier: MIT
 */const Qy="167",Os={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Ns={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},U5=0,sx=1,F5=2,aA=1,B5=2,va=3,Ra=0,Hi=1,Kr=2,vo=0,_l=1,lx=2,cx=3,ux=4,V5=5,qo=100,H5=101,z5=102,W5=103,G5=104,j5=200,X5=201,Y5=202,q5=203,Lg=204,Og=205,K5=206,Q5=207,Z5=208,$5=209,J5=210,eH=211,tH=212,nH=213,iH=214,rH=0,aH=1,oH=2,Xf=3,sH=4,lH=5,cH=6,uH=7,Wh=0,dH=1,fH=2,yo=0,hH=1,pH=2,mH=3,gH=4,vH=5,yH=6,bH=7,dx="attached",_H="detached",oA=300,Nl=301,kl=302,Ng=303,kg=304,Gh=306,Jo=1e3,Er=1001,Ug=1002,Fi=1003,xH=1004,xd=1005,Ui=1006,Fp=1007,Sa=1008,Da=1009,sA=1010,lA=1011,Su=1012,Zy=1013,fs=1014,$r=1015,ju=1016,$y=1017,Jy=1018,Ul=1020,cA=35902,uA=1021,dA=1022,ur=1023,fA=1024,hA=1025,xl=1026,Fl=1027,pA=1028,e0=1029,mA=1030,t0=1031,n0=1033,uf=33776,df=33777,ff=33778,hf=33779,Fg=35840,Bg=35841,Vg=35842,Hg=35843,zg=36196,Wg=37492,Gg=37496,jg=37808,Xg=37809,Yg=37810,qg=37811,Kg=37812,Qg=37813,Zg=37814,$g=37815,Jg=37816,ev=37817,tv=37818,nv=37819,iv=37820,rv=37821,pf=36492,av=36494,ov=36495,gA=36283,sv=36284,lv=36285,cv=36286,Yf=2300,uv=2301,Bp=2302,fx=2400,hx=2401,px=2402,SH=2500,wH=3200,MH=3201,i0=0,EH=1,so="",Qi="srgb",Co="srgb-linear",r0="display-p3",jh="display-p3-linear",qf="linear",fn="srgb",Kf="rec709",Qf="p3",ks=7680,mx=519,TH=512,AH=513,CH=514,vA=515,PH=516,RH=517,DH=518,IH=519,gx=35044,vx="300 es",wa=2e3,Zf=2001;class Ss{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(n)===-1&&i[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const a=r.indexOf(n);a!==-1&&r.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const r=i.slice(0);for(let a=0,o=r.length;a<o;a++)r[a].call(this,e);e.target=null}}}const li=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let yx=1234567;const Qc=Math.PI/180,Bl=180/Math.PI;function Po(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(li[t&255]+li[t>>8&255]+li[t>>16&255]+li[t>>24&255]+"-"+li[e&255]+li[e>>8&255]+"-"+li[e>>16&15|64]+li[e>>24&255]+"-"+li[n&63|128]+li[n>>8&255]+"-"+li[n>>16&255]+li[n>>24&255]+li[i&255]+li[i>>8&255]+li[i>>16&255]+li[i>>24&255]).toLowerCase()}function hi(t,e,n){return Math.max(e,Math.min(n,t))}function a0(t,e){return(t%e+e)%e}function LH(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)}function OH(t,e,n){return t!==e?(n-t)/(e-t):0}function Zc(t,e,n){return(1-n)*t+n*e}function NH(t,e,n,i){return Zc(t,e,1-Math.exp(-n*i))}function kH(t,e=1){return e-Math.abs(a0(t,e*2)-e)}function UH(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function FH(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function BH(t,e){return t+Math.floor(Math.random()*(e-t+1))}function VH(t,e){return t+Math.random()*(e-t)}function HH(t){return t*(.5-Math.random())}function zH(t){t!==void 0&&(yx=t);let e=yx+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function WH(t){return t*Qc}function GH(t){return t*Bl}function jH(t){return(t&t-1)===0&&t!==0}function XH(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function YH(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function qH(t,e,n,i,r){const a=Math.cos,o=Math.sin,s=a(n/2),l=o(n/2),c=a((e+i)/2),u=o((e+i)/2),d=a((e-i)/2),f=o((e-i)/2),h=a((i-e)/2),p=o((i-e)/2);switch(r){case"XYX":t.set(s*u,l*d,l*f,s*c);break;case"YZY":t.set(l*f,s*u,l*d,s*c);break;case"ZXZ":t.set(l*d,l*f,s*u,s*c);break;case"XZX":t.set(s*u,l*p,l*h,s*c);break;case"YXY":t.set(l*h,s*u,l*p,s*c);break;case"ZYZ":t.set(l*p,l*h,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function il(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function wi(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const rl={DEG2RAD:Qc,RAD2DEG:Bl,generateUUID:Po,clamp:hi,euclideanModulo:a0,mapLinear:LH,inverseLerp:OH,lerp:Zc,damp:NH,pingpong:kH,smoothstep:UH,smootherstep:FH,randInt:BH,randFloat:VH,randFloatSpread:HH,seededRandom:zH,degToRad:WH,radToDeg:GH,isPowerOfTwo:jH,ceilPowerOfTwo:XH,floorPowerOfTwo:YH,setQuaternionFromProperEuler:qH,normalize:wi,denormalize:il};class bt{constructor(e=0,n=0){bt.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,i=this.y,r=e.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(hi(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const i=Math.cos(n),r=Math.sin(n),a=this.x-e.x,o=this.y-e.y;return this.x=a*i-o*r+e.x,this.y=a*r+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class It{constructor(e,n,i,r,a,o,s,l,c){It.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,i,r,a,o,s,l,c)}set(e,n,i,r,a,o,s,l,c){const u=this.elements;return u[0]=e,u[1]=r,u[2]=s,u[3]=n,u[4]=a,u[5]=l,u[6]=i,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(e,n,i){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,a=this.elements,o=i[0],s=i[3],l=i[6],c=i[1],u=i[4],d=i[7],f=i[2],h=i[5],p=i[8],m=r[0],g=r[3],v=r[6],b=r[1],y=r[4],w=r[7],L=r[2],_=r[5],E=r[8];return a[0]=o*m+s*b+l*L,a[3]=o*g+s*y+l*_,a[6]=o*v+s*w+l*E,a[1]=c*m+u*b+d*L,a[4]=c*g+u*y+d*_,a[7]=c*v+u*w+d*E,a[2]=f*m+h*b+p*L,a[5]=f*g+h*y+p*_,a[8]=f*v+h*w+p*E,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return n*o*u-n*s*c-i*a*u+i*s*l+r*a*c-r*o*l}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=u*o-s*c,f=s*l-u*a,h=c*a-o*l,p=n*d+i*f+r*h;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return e[0]=d*m,e[1]=(r*c-u*i)*m,e[2]=(s*i-r*o)*m,e[3]=f*m,e[4]=(u*n-r*l)*m,e[5]=(r*a-s*n)*m,e[6]=h*m,e[7]=(i*l-c*n)*m,e[8]=(o*n-i*a)*m,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,i,r,a,o,s){const l=Math.cos(a),c=Math.sin(a);return this.set(i*l,i*c,-i*(l*o+c*s)+o+e,-r*c,r*l,-r*(-c*o+l*s)+s+n,0,0,1),this}scale(e,n){return this.premultiply(Vp.makeScale(e,n)),this}rotate(e){return this.premultiply(Vp.makeRotation(-e)),this}translate(e,n){return this.premultiply(Vp.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<9;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Vp=new It;function yA(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function wu(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function KH(){const t=wu("canvas");return t.style.display="block",t}const bx={};function $c(t){t in bx||(bx[t]=!0,console.warn(t))}function QH(t,e,n){return new Promise(function(i,r){function a(){switch(t.clientWaitSync(e,t.SYNC_FLUSH_COMMANDS_BIT,0)){case t.WAIT_FAILED:r();break;case t.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:i()}}setTimeout(a,n)})}const _x=new It().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),xx=new It().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Ac={[Co]:{transfer:qf,primaries:Kf,luminanceCoefficients:[.2126,.7152,.0722],toReference:t=>t,fromReference:t=>t},[Qi]:{transfer:fn,primaries:Kf,luminanceCoefficients:[.2126,.7152,.0722],toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[jh]:{transfer:qf,primaries:Qf,luminanceCoefficients:[.2289,.6917,.0793],toReference:t=>t.applyMatrix3(xx),fromReference:t=>t.applyMatrix3(_x)},[r0]:{transfer:fn,primaries:Qf,luminanceCoefficients:[.2289,.6917,.0793],toReference:t=>t.convertSRGBToLinear().applyMatrix3(xx),fromReference:t=>t.applyMatrix3(_x).convertLinearToSRGB()}},ZH=new Set([Co,jh]),en={enabled:!0,_workingColorSpace:Co,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!ZH.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const i=Ac[e].toReference,r=Ac[n].fromReference;return r(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Ac[t].primaries},getTransfer:function(t){return t===so?qf:Ac[t].transfer},getLuminanceCoefficients:function(t,e=this._workingColorSpace){return t.fromArray(Ac[e].luminanceCoefficients)}};function Sl(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function Hp(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let Us;class $H{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Us===void 0&&(Us=wu("canvas")),Us.width=e.width,Us.height=e.height;const i=Us.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),n=Us}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=wu("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),a=r.data;for(let o=0;o<a.length;o++)a[o]=Sl(a[o]/255)*255;return i.putImageData(r,0,0),n}else if(e.data){const n=e.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(Sl(n[i]/255)*255):n[i]=Sl(n[i]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let JH=0;class bA{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:JH++}),this.uuid=Po(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},r=this.data;if(r!==null){let a;if(Array.isArray(r)){a=[];for(let o=0,s=r.length;o<s;o++)r[o].isDataTexture?a.push(zp(r[o].image)):a.push(zp(r[o]))}else a=zp(r);i.url=a}return n||(e.images[this.uuid]=i),i}}function zp(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?$H.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let ez=0;class bi extends Ss{constructor(e=bi.DEFAULT_IMAGE,n=bi.DEFAULT_MAPPING,i=Er,r=Er,a=Ui,o=Sa,s=ur,l=Da,c=bi.DEFAULT_ANISOTROPY,u=so){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:ez++}),this.uuid=Po(),this.name="",this.source=new bA(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=r,this.magFilter=a,this.minFilter=o,this.anisotropy=c,this.format=s,this.internalFormat=null,this.type=l,this.offset=new bt(0,0),this.repeat=new bt(1,1),this.center=new bt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new It,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==oA)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Jo:e.x=e.x-Math.floor(e.x);break;case Er:e.x=e.x<0?0:1;break;case Ug:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Jo:e.y=e.y-Math.floor(e.y);break;case Er:e.y=e.y<0?0:1;break;case Ug:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}bi.DEFAULT_IMAGE=null;bi.DEFAULT_MAPPING=oA;bi.DEFAULT_ANISOTROPY=1;class on{constructor(e=0,n=0,i=0,r=1){on.prototype.isVector4=!0,this.x=e,this.y=n,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,i,r){return this.x=e,this.y=n,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,a=this.w,o=e.elements;return this.x=o[0]*n+o[4]*i+o[8]*r+o[12]*a,this.y=o[1]*n+o[5]*i+o[9]*r+o[13]*a,this.z=o[2]*n+o[6]*i+o[10]*r+o[14]*a,this.w=o[3]*n+o[7]*i+o[11]*r+o[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,i,r,a;const l=e.elements,c=l[0],u=l[4],d=l[8],f=l[1],h=l[5],p=l[9],m=l[2],g=l[6],v=l[10];if(Math.abs(u-f)<.01&&Math.abs(d-m)<.01&&Math.abs(p-g)<.01){if(Math.abs(u+f)<.1&&Math.abs(d+m)<.1&&Math.abs(p+g)<.1&&Math.abs(c+h+v-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const y=(c+1)/2,w=(h+1)/2,L=(v+1)/2,_=(u+f)/4,E=(d+m)/4,R=(p+g)/4;return y>w&&y>L?y<.01?(i=0,r=.707106781,a=.707106781):(i=Math.sqrt(y),r=_/i,a=E/i):w>L?w<.01?(i=.707106781,r=0,a=.707106781):(r=Math.sqrt(w),i=_/r,a=R/r):L<.01?(i=.707106781,r=.707106781,a=0):(a=Math.sqrt(L),i=E/a,r=R/a),this.set(i,r,a,n),this}let b=Math.sqrt((g-p)*(g-p)+(d-m)*(d-m)+(f-u)*(f-u));return Math.abs(b)<.001&&(b=1),this.x=(g-p)/b,this.y=(d-m)/b,this.z=(f-u)/b,this.w=Math.acos((c+h+v-1)/2),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this.w=n[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this.w=e.w+(n.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class tz extends Ss{constructor(e=1,n=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new on(0,0,e,n),this.scissorTest=!1,this.viewport=new on(0,0,e,n);const r={width:e,height:n,depth:1};i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ui,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},i);const a=new bi(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace);a.flipY=!1,a.generateMipmaps=i.generateMipmaps,a.internalFormat=i.internalFormat,this.textures=[];const o=i.count;for(let s=0;s<o;s++)this.textures[s]=a.clone(),this.textures[s].isRenderTargetTexture=!0;this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.resolveDepthBuffer=i.resolveDepthBuffer,this.resolveStencilBuffer=i.resolveStencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,n,i=1){if(this.width!==e||this.height!==n||this.depth!==i){this.width=e,this.height=n,this.depth=i;for(let r=0,a=this.textures.length;r<a;r++)this.textures[r].image.width=e,this.textures[r].image.height=n,this.textures[r].image.depth=i;this.dispose()}this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let i=0,r=e.textures.length;i<r;i++)this.textures[i]=e.textures[i].clone(),this.textures[i].isRenderTargetTexture=!0;const n=Object.assign({},e.texture.image);return this.texture.source=new bA(n),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class hs extends tz{constructor(e=1,n=1,i={}){super(e,n,i),this.isWebGLRenderTarget=!0}}class _A extends bi{constructor(e=null,n=1,i=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=Fi,this.minFilter=Fi,this.wrapR=Er,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class nz extends bi{constructor(e=null,n=1,i=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=Fi,this.minFilter=Fi,this.wrapR=Er,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ia{constructor(e=0,n=0,i=0,r=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=i,this._w=r}static slerpFlat(e,n,i,r,a,o,s){let l=i[r+0],c=i[r+1],u=i[r+2],d=i[r+3];const f=a[o+0],h=a[o+1],p=a[o+2],m=a[o+3];if(s===0){e[n+0]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d;return}if(s===1){e[n+0]=f,e[n+1]=h,e[n+2]=p,e[n+3]=m;return}if(d!==m||l!==f||c!==h||u!==p){let g=1-s;const v=l*f+c*h+u*p+d*m,b=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){const L=Math.sqrt(y),_=Math.atan2(L,v*b);g=Math.sin(g*_)/L,s=Math.sin(s*_)/L}const w=s*b;if(l=l*g+f*w,c=c*g+h*w,u=u*g+p*w,d=d*g+m*w,g===1-s){const L=1/Math.sqrt(l*l+c*c+u*u+d*d);l*=L,c*=L,u*=L,d*=L}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=d}static multiplyQuaternionsFlat(e,n,i,r,a,o){const s=i[r],l=i[r+1],c=i[r+2],u=i[r+3],d=a[o],f=a[o+1],h=a[o+2],p=a[o+3];return e[n]=s*p+u*d+l*h-c*f,e[n+1]=l*p+u*f+c*d-s*h,e[n+2]=c*p+u*h+s*f-l*d,e[n+3]=u*p-s*d-l*f-c*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,i,r){return this._x=e,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n=!0){const i=e._x,r=e._y,a=e._z,o=e._order,s=Math.cos,l=Math.sin,c=s(i/2),u=s(r/2),d=s(a/2),f=l(i/2),h=l(r/2),p=l(a/2);switch(o){case"XYZ":this._x=f*u*d+c*h*p,this._y=c*h*d-f*u*p,this._z=c*u*p+f*h*d,this._w=c*u*d-f*h*p;break;case"YXZ":this._x=f*u*d+c*h*p,this._y=c*h*d-f*u*p,this._z=c*u*p-f*h*d,this._w=c*u*d+f*h*p;break;case"ZXY":this._x=f*u*d-c*h*p,this._y=c*h*d+f*u*p,this._z=c*u*p+f*h*d,this._w=c*u*d-f*h*p;break;case"ZYX":this._x=f*u*d-c*h*p,this._y=c*h*d+f*u*p,this._z=c*u*p-f*h*d,this._w=c*u*d+f*h*p;break;case"YZX":this._x=f*u*d+c*h*p,this._y=c*h*d+f*u*p,this._z=c*u*p-f*h*d,this._w=c*u*d-f*h*p;break;case"XZY":this._x=f*u*d-c*h*p,this._y=c*h*d-f*u*p,this._z=c*u*p+f*h*d,this._w=c*u*d+f*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const i=n/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],c=n[2],u=n[6],d=n[10],f=i+s+d;if(f>0){const h=.5/Math.sqrt(f+1);this._w=.25/h,this._x=(u-l)*h,this._y=(a-c)*h,this._z=(o-r)*h}else if(i>s&&i>d){const h=2*Math.sqrt(1+i-s-d);this._w=(u-l)/h,this._x=.25*h,this._y=(r+o)/h,this._z=(a+c)/h}else if(s>d){const h=2*Math.sqrt(1+s-i-d);this._w=(a-c)/h,this._x=(r+o)/h,this._y=.25*h,this._z=(l+u)/h}else{const h=2*Math.sqrt(1+d-i-s);this._w=(o-r)/h,this._x=(a+c)/h,this._y=(l+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let i=e.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(hi(this.dot(e),-1,1)))}rotateTowards(e,n){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,n/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const i=e._x,r=e._y,a=e._z,o=e._w,s=n._x,l=n._y,c=n._z,u=n._w;return this._x=i*u+o*s+r*c-a*l,this._y=r*u+o*l+a*s-i*c,this._z=a*u+o*c+i*l-r*s,this._w=o*u-i*s-r*l-a*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const i=this._x,r=this._y,a=this._z,o=this._w;let s=o*e._w+i*e._x+r*e._y+a*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=o,this._x=i,this._y=r,this._z=a,this;const l=1-s*s;if(l<=Number.EPSILON){const h=1-n;return this._w=h*o+n*this._w,this._x=h*i+n*this._x,this._y=h*r+n*this._y,this._z=h*a+n*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,s),d=Math.sin((1-n)*u)/c,f=Math.sin(n*u)/c;return this._w=o*d+this._w*f,this._x=i*d+this._x*f,this._y=r*d+this._y*f,this._z=a*d+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,i){return this.copy(e).slerp(n,i)}random(){const e=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),i=Math.random(),r=Math.sqrt(1-i),a=Math.sqrt(i);return this.set(r*Math.sin(e),r*Math.cos(e),a*Math.sin(n),a*Math.cos(n))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class te{constructor(e=0,n=0,i=0){te.prototype.isVector3=!0,this.x=e,this.y=n,this.z=i}set(e,n,i){return i===void 0&&(i=this.z),this.x=e,this.y=n,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(Sx.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(Sx.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*n+a[3]*i+a[6]*r,this.y=a[1]*n+a[4]*i+a[7]*r,this.z=a[2]*n+a[5]*i+a[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,a=e.elements,o=1/(a[3]*n+a[7]*i+a[11]*r+a[15]);return this.x=(a[0]*n+a[4]*i+a[8]*r+a[12])*o,this.y=(a[1]*n+a[5]*i+a[9]*r+a[13])*o,this.z=(a[2]*n+a[6]*i+a[10]*r+a[14])*o,this}applyQuaternion(e){const n=this.x,i=this.y,r=this.z,a=e.x,o=e.y,s=e.z,l=e.w,c=2*(o*r-s*i),u=2*(s*n-a*r),d=2*(a*i-o*n);return this.x=n+l*c+o*d-s*u,this.y=i+l*u+s*c-a*d,this.z=r+l*d+a*u-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*n+a[4]*i+a[8]*r,this.y=a[1]*n+a[5]*i+a[9]*r,this.z=a[2]*n+a[6]*i+a[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const i=e.x,r=e.y,a=e.z,o=n.x,s=n.y,l=n.z;return this.x=r*l-a*s,this.y=a*o-i*l,this.z=i*s-r*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const i=e.dot(this)/n;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Wp.copy(this).projectOnVector(e),this.sub(Wp)}reflect(e){return this.sub(Wp.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(hi(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return n*n+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,i){const r=Math.sin(n)*e;return this.x=r*Math.sin(i),this.y=Math.cos(n)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,i){return this.x=e*Math.sin(n),this.y=i,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,n=Math.random()*2-1,i=Math.sqrt(1-n*n);return this.x=i*Math.cos(e),this.y=n,this.z=i*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Wp=new te,Sx=new Ia;class ic{constructor(e=new te(1/0,1/0,1/0),n=new te(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n+=3)this.expandByPoint(yr.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,i=e.count;n<i;n++)this.expandByPoint(yr.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const i=yr.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const a=i.getAttribute("position");if(n===!0&&a!==void 0&&e.isInstancedMesh!==!0)for(let o=0,s=a.count;o<s;o++)e.isMesh===!0?e.getVertexPosition(o,yr):yr.fromBufferAttribute(a,o),yr.applyMatrix4(e.matrixWorld),this.expandByPoint(yr);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),Sd.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),Sd.copy(i.boundingBox)),Sd.applyMatrix4(e.matrixWorld),this.union(Sd)}const r=e.children;for(let a=0,o=r.length;a<o;a++)this.expandByObject(r[a],n);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,yr),yr.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,i;return e.normal.x>0?(n=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),n<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Cc),wd.subVectors(this.max,Cc),Fs.subVectors(e.a,Cc),Bs.subVectors(e.b,Cc),Vs.subVectors(e.c,Cc),Xa.subVectors(Bs,Fs),Ya.subVectors(Vs,Bs),Fo.subVectors(Fs,Vs);let n=[0,-Xa.z,Xa.y,0,-Ya.z,Ya.y,0,-Fo.z,Fo.y,Xa.z,0,-Xa.x,Ya.z,0,-Ya.x,Fo.z,0,-Fo.x,-Xa.y,Xa.x,0,-Ya.y,Ya.x,0,-Fo.y,Fo.x,0];return!Gp(n,Fs,Bs,Vs,wd)||(n=[1,0,0,0,1,0,0,0,1],!Gp(n,Fs,Bs,Vs,wd))?!1:(Md.crossVectors(Xa,Ya),n=[Md.x,Md.y,Md.z],Gp(n,Fs,Bs,Vs,wd))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,yr).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(yr).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(ca[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ca[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ca[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ca[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ca[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ca[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ca[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ca[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ca),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ca=[new te,new te,new te,new te,new te,new te,new te,new te],yr=new te,Sd=new ic,Fs=new te,Bs=new te,Vs=new te,Xa=new te,Ya=new te,Fo=new te,Cc=new te,wd=new te,Md=new te,Bo=new te;function Gp(t,e,n,i,r){for(let a=0,o=t.length-3;a<=o;a+=3){Bo.fromArray(t,a);const s=r.x*Math.abs(Bo.x)+r.y*Math.abs(Bo.y)+r.z*Math.abs(Bo.z),l=e.dot(Bo),c=n.dot(Bo),u=i.dot(Bo);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>s)return!1}return!0}const iz=new ic,Pc=new te,jp=new te;class rc{constructor(e=new te,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const i=this.center;n!==void 0?i.copy(n):iz.setFromPoints(e).getCenter(i);let r=0;for(let a=0,o=e.length;a<o;a++)r=Math.max(r,i.distanceToSquared(e[a]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const i=this.center.distanceToSquared(e);return n.copy(e),i>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Pc.subVectors(e,this.center);const n=Pc.lengthSq();if(n>this.radius*this.radius){const i=Math.sqrt(n),r=(i-this.radius)*.5;this.center.addScaledVector(Pc,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(jp.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Pc.copy(e.center).add(jp)),this.expandByPoint(Pc.copy(e.center).sub(jp))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ua=new te,Xp=new te,Ed=new te,qa=new te,Yp=new te,Td=new te,qp=new te;class Xh{constructor(e=new te,n=new te(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ua)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=ua.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(ua.copy(this.origin).addScaledVector(this.direction,n),ua.distanceToSquared(e))}distanceSqToSegment(e,n,i,r){Xp.copy(e).add(n).multiplyScalar(.5),Ed.copy(n).sub(e).normalize(),qa.copy(this.origin).sub(Xp);const a=e.distanceTo(n)*.5,o=-this.direction.dot(Ed),s=qa.dot(this.direction),l=-qa.dot(Ed),c=qa.lengthSq(),u=Math.abs(1-o*o);let d,f,h,p;if(u>0)if(d=o*l-s,f=o*s-l,p=a*u,d>=0)if(f>=-p)if(f<=p){const m=1/u;d*=m,f*=m,h=d*(d+o*f+2*s)+f*(o*d+f+2*l)+c}else f=a,d=Math.max(0,-(o*f+s)),h=-d*d+f*(f+2*l)+c;else f=-a,d=Math.max(0,-(o*f+s)),h=-d*d+f*(f+2*l)+c;else f<=-p?(d=Math.max(0,-(-o*a+s)),f=d>0?-a:Math.min(Math.max(-a,-l),a),h=-d*d+f*(f+2*l)+c):f<=p?(d=0,f=Math.min(Math.max(-a,-l),a),h=f*(f+2*l)+c):(d=Math.max(0,-(o*a+s)),f=d>0?a:Math.min(Math.max(-a,-l),a),h=-d*d+f*(f+2*l)+c);else f=o>0?-a:a,d=Math.max(0,-(o*f+s)),h=-d*d+f*(f+2*l)+c;return i&&i.copy(this.origin).addScaledVector(this.direction,d),r&&r.copy(Xp).addScaledVector(Ed,f),h}intersectSphere(e,n){ua.subVectors(e.center,this.origin);const i=ua.dot(this.direction),r=ua.dot(ua)-i*i,a=e.radius*e.radius;if(r>a)return null;const o=Math.sqrt(a-r),s=i-o,l=i+o;return l<0?null:s<0?this.at(l,n):this.at(s,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/n;return i>=0?i:null}intersectPlane(e,n){const i=this.distanceToPlane(e);return i===null?null:this.at(i,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let i,r,a,o,s,l;const c=1/this.direction.x,u=1/this.direction.y,d=1/this.direction.z,f=this.origin;return c>=0?(i=(e.min.x-f.x)*c,r=(e.max.x-f.x)*c):(i=(e.max.x-f.x)*c,r=(e.min.x-f.x)*c),u>=0?(a=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(a=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),i>o||a>r||((a>i||isNaN(i))&&(i=a),(o<r||isNaN(r))&&(r=o),d>=0?(s=(e.min.z-f.z)*d,l=(e.max.z-f.z)*d):(s=(e.max.z-f.z)*d,l=(e.min.z-f.z)*d),i>l||s>r)||((s>i||i!==i)&&(i=s),(l<r||r!==r)&&(r=l),r<0)?null:this.at(i>=0?i:r,n)}intersectsBox(e){return this.intersectBox(e,ua)!==null}intersectTriangle(e,n,i,r,a){Yp.subVectors(n,e),Td.subVectors(i,e),qp.crossVectors(Yp,Td);let o=this.direction.dot(qp),s;if(o>0){if(r)return null;s=1}else if(o<0)s=-1,o=-o;else return null;qa.subVectors(this.origin,e);const l=s*this.direction.dot(Td.crossVectors(qa,Td));if(l<0)return null;const c=s*this.direction.dot(Yp.cross(qa));if(c<0||l+c>o)return null;const u=-s*qa.dot(qp);return u<0?null:this.at(u/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Rt{constructor(e,n,i,r,a,o,s,l,c,u,d,f,h,p,m,g){Rt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,i,r,a,o,s,l,c,u,d,f,h,p,m,g)}set(e,n,i,r,a,o,s,l,c,u,d,f,h,p,m,g){const v=this.elements;return v[0]=e,v[4]=n,v[8]=i,v[12]=r,v[1]=a,v[5]=o,v[9]=s,v[13]=l,v[2]=c,v[6]=u,v[10]=d,v[14]=f,v[3]=h,v[7]=p,v[11]=m,v[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rt().fromArray(this.elements)}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(e){const n=this.elements,i=e.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,i){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,n,i){return this.set(e.x,n.x,i.x,0,e.y,n.y,i.y,0,e.z,n.z,i.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,i=e.elements,r=1/Hs.setFromMatrixColumn(e,0).length(),a=1/Hs.setFromMatrixColumn(e,1).length(),o=1/Hs.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[7]=0,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,i=e.x,r=e.y,a=e.z,o=Math.cos(i),s=Math.sin(i),l=Math.cos(r),c=Math.sin(r),u=Math.cos(a),d=Math.sin(a);if(e.order==="XYZ"){const f=o*u,h=o*d,p=s*u,m=s*d;n[0]=l*u,n[4]=-l*d,n[8]=c,n[1]=h+p*c,n[5]=f-m*c,n[9]=-s*l,n[2]=m-f*c,n[6]=p+h*c,n[10]=o*l}else if(e.order==="YXZ"){const f=l*u,h=l*d,p=c*u,m=c*d;n[0]=f+m*s,n[4]=p*s-h,n[8]=o*c,n[1]=o*d,n[5]=o*u,n[9]=-s,n[2]=h*s-p,n[6]=m+f*s,n[10]=o*l}else if(e.order==="ZXY"){const f=l*u,h=l*d,p=c*u,m=c*d;n[0]=f-m*s,n[4]=-o*d,n[8]=p+h*s,n[1]=h+p*s,n[5]=o*u,n[9]=m-f*s,n[2]=-o*c,n[6]=s,n[10]=o*l}else if(e.order==="ZYX"){const f=o*u,h=o*d,p=s*u,m=s*d;n[0]=l*u,n[4]=p*c-h,n[8]=f*c+m,n[1]=l*d,n[5]=m*c+f,n[9]=h*c-p,n[2]=-c,n[6]=s*l,n[10]=o*l}else if(e.order==="YZX"){const f=o*l,h=o*c,p=s*l,m=s*c;n[0]=l*u,n[4]=m-f*d,n[8]=p*d+h,n[1]=d,n[5]=o*u,n[9]=-s*u,n[2]=-c*u,n[6]=h*d+p,n[10]=f-m*d}else if(e.order==="XZY"){const f=o*l,h=o*c,p=s*l,m=s*c;n[0]=l*u,n[4]=-d,n[8]=c*u,n[1]=f*d+m,n[5]=o*u,n[9]=h*d-p,n[2]=p*d-h,n[6]=s*u,n[10]=m*d+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(rz,e,az)}lookAt(e,n,i){const r=this.elements;return Yi.subVectors(e,n),Yi.lengthSq()===0&&(Yi.z=1),Yi.normalize(),Ka.crossVectors(i,Yi),Ka.lengthSq()===0&&(Math.abs(i.z)===1?Yi.x+=1e-4:Yi.z+=1e-4,Yi.normalize(),Ka.crossVectors(i,Yi)),Ka.normalize(),Ad.crossVectors(Yi,Ka),r[0]=Ka.x,r[4]=Ad.x,r[8]=Yi.x,r[1]=Ka.y,r[5]=Ad.y,r[9]=Yi.y,r[2]=Ka.z,r[6]=Ad.z,r[10]=Yi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,a=this.elements,o=i[0],s=i[4],l=i[8],c=i[12],u=i[1],d=i[5],f=i[9],h=i[13],p=i[2],m=i[6],g=i[10],v=i[14],b=i[3],y=i[7],w=i[11],L=i[15],_=r[0],E=r[4],R=r[8],S=r[12],M=r[1],D=r[5],O=r[9],V=r[13],X=r[2],K=r[6],z=r[10],Q=r[14],Y=r[3],he=r[7],ne=r[11],Z=r[15];return a[0]=o*_+s*M+l*X+c*Y,a[4]=o*E+s*D+l*K+c*he,a[8]=o*R+s*O+l*z+c*ne,a[12]=o*S+s*V+l*Q+c*Z,a[1]=u*_+d*M+f*X+h*Y,a[5]=u*E+d*D+f*K+h*he,a[9]=u*R+d*O+f*z+h*ne,a[13]=u*S+d*V+f*Q+h*Z,a[2]=p*_+m*M+g*X+v*Y,a[6]=p*E+m*D+g*K+v*he,a[10]=p*R+m*O+g*z+v*ne,a[14]=p*S+m*V+g*Q+v*Z,a[3]=b*_+y*M+w*X+L*Y,a[7]=b*E+y*D+w*K+L*he,a[11]=b*R+y*O+w*z+L*ne,a[15]=b*S+y*V+w*Q+L*Z,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[4],r=e[8],a=e[12],o=e[1],s=e[5],l=e[9],c=e[13],u=e[2],d=e[6],f=e[10],h=e[14],p=e[3],m=e[7],g=e[11],v=e[15];return p*(+a*l*d-r*c*d-a*s*f+i*c*f+r*s*h-i*l*h)+m*(+n*l*h-n*c*f+a*o*f-r*o*h+r*c*u-a*l*u)+g*(+n*c*d-n*s*h-a*o*d+i*o*h+a*s*u-i*c*u)+v*(-r*s*u-n*l*d+n*s*f+r*o*d-i*o*f+i*l*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=n,r[14]=i),this}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],h=e[11],p=e[12],m=e[13],g=e[14],v=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e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(e,n,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const i=Math.cos(n),r=Math.sin(n),a=1-i,o=e.x,s=e.y,l=e.z,c=a*o,u=a*s;return this.set(c*o+i,c*s-r*l,c*l+r*s,0,c*s+r*l,u*s+i,u*l-r*o,0,c*l-r*s,u*l+r*o,a*l*l+i,0,0,0,0,1),this}makeScale(e,n,i){return this.set(e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,n,i,r,a,o){return this.set(1,i,a,0,e,1,o,0,n,r,1,0,0,0,0,1),this}compose(e,n,i){const r=this.elements,a=n._x,o=n._y,s=n._z,l=n._w,c=a+a,u=o+o,d=s+s,f=a*c,h=a*u,p=a*d,m=o*u,g=o*d,v=s*d,b=l*c,y=l*u,w=l*d,L=i.x,_=i.y,E=i.z;return r[0]=(1-(m+v))*L,r[1]=(h+w)*L,r[2]=(p-y)*L,r[3]=0,r[4]=(h-w)*_,r[5]=(1-(f+v))*_,r[6]=(g+b)*_,r[7]=0,r[8]=(p+y)*E,r[9]=(g-b)*E,r[10]=(1-(f+m))*E,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,n,i){const r=this.elements;let a=Hs.set(r[0],r[1],r[2]).length();const o=Hs.set(r[4],r[5],r[6]).length(),s=Hs.set(r[8],r[9],r[10]).length();this.determinant()<0&&(a=-a),e.x=r[12],e.y=r[13],e.z=r[14],br.copy(this);const c=1/a,u=1/o,d=1/s;return br.elements[0]*=c,br.elements[1]*=c,br.elements[2]*=c,br.elements[4]*=u,br.elements[5]*=u,br.elements[6]*=u,br.elements[8]*=d,br.elements[9]*=d,br.elements[10]*=d,n.setFromRotationMatrix(br),i.x=a,i.y=o,i.z=s,this}makePerspective(e,n,i,r,a,o,s=wa){const l=this.elements,c=2*a/(n-e),u=2*a/(i-r),d=(n+e)/(n-e),f=(i+r)/(i-r);let h,p;if(s===wa)h=-(o+a)/(o-a),p=-2*o*a/(o-a);else if(s===Zf)h=-o/(o-a),p=-o*a/(o-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);return l[0]=c,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=u,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=h,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,i,r,a,o,s=wa){const l=this.elements,c=1/(n-e),u=1/(i-r),d=1/(o-a),f=(n+e)*c,h=(i+r)*u;let p,m;if(s===wa)p=(o+a)*d,m=-2*d;else if(s===Zf)p=a*d,m=-1*d;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-h,l[2]=0,l[6]=0,l[10]=m,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<16;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e[n+9]=i[9],e[n+10]=i[10],e[n+11]=i[11],e[n+12]=i[12],e[n+13]=i[13],e[n+14]=i[14],e[n+15]=i[15],e}}const Hs=new te,br=new Rt,rz=new te(0,0,0),az=new te(1,1,1),Ka=new te,Ad=new te,Yi=new te,wx=new Rt,Mx=new Ia;class Rr{constructor(e=0,n=0,i=0,r=Rr.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,i,r=this._order){return this._x=e,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,i=!0){const r=e.elements,a=r[0],o=r[4],s=r[8],l=r[1],c=r[5],u=r[9],d=r[2],f=r[6],h=r[10];switch(n){case"XYZ":this._y=Math.asin(hi(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(f,c),this._z=0);break;case"YXZ":this._x=Math.asin(-hi(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(s,h),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-d,a),this._z=0);break;case"ZXY":this._x=Math.asin(hi(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-d,h),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-hi(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(f,h),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(hi(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-d,a)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-hi(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,c),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,i){return wx.makeRotationFromQuaternion(e),this.setFromRotationMatrix(wx,n,i)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return Mx.setFromEuler(this),this.setFromQuaternion(Mx,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Rr.DEFAULT_ORDER="XYZ";class xA{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let oz=0;const Ex=new te,zs=new Ia,da=new Rt,Cd=new te,Rc=new te,sz=new te,lz=new Ia,Tx=new te(1,0,0),Ax=new te(0,1,0),Cx=new te(0,0,1),Px={type:"added"},cz={type:"removed"},Ws={type:"childadded",child:null},Kp={type:"childremoved",child:null};class Hn extends Ss{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:oz++}),this.uuid=Po(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Hn.DEFAULT_UP.clone();const e=new te,n=new Rr,i=new Ia,r=new te(1,1,1);function a(){i.setFromEuler(n,!1)}function o(){n.setFromQuaternion(i,void 0,!1)}n._onChange(a),i._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Rt},normalMatrix:{value:new It}}),this.matrix=new Rt,this.matrixWorld=new Rt,this.matrixAutoUpdate=Hn.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Hn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new xA,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return zs.setFromAxisAngle(e,n),this.quaternion.multiply(zs),this}rotateOnWorldAxis(e,n){return zs.setFromAxisAngle(e,n),this.quaternion.premultiply(zs),this}rotateX(e){return this.rotateOnAxis(Tx,e)}rotateY(e){return this.rotateOnAxis(Ax,e)}rotateZ(e){return this.rotateOnAxis(Cx,e)}translateOnAxis(e,n){return Ex.copy(e).applyQuaternion(this.quaternion),this.position.add(Ex.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(Tx,e)}translateY(e){return this.translateOnAxis(Ax,e)}translateZ(e){return this.translateOnAxis(Cx,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(da.copy(this.matrixWorld).invert())}lookAt(e,n,i){e.isVector3?Cd.copy(e):Cd.set(e,n,i);const r=this.parent;this.updateWorldMatrix(!0,!1),Rc.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?da.lookAt(Rc,Cd,this.up):da.lookAt(Cd,Rc,this.up),this.quaternion.setFromRotationMatrix(da),r&&(da.extractRotation(r.matrixWorld),zs.setFromRotationMatrix(da),this.quaternion.premultiply(zs.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(Px),Ws.child=e,this.dispatchEvent(Ws),Ws.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(cz),Kp.child=e,this.dispatchEvent(Kp),Kp.child=null),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),da.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),da.multiply(e.parent.matrixWorld)),e.applyMatrix4(da),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(Px),Ws.child=e,this.dispatchEvent(Ws),Ws.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let i=0,r=this.children.length;i<r;i++){const o=this.children[i].getObjectByProperty(e,n);if(o!==void 0)return o}}getObjectsByProperty(e,n,i=[]){this[e]===n&&i.push(this);const r=this.children;for(let a=0,o=r.length;a<o;a++)r[a].getObjectsByProperty(e,n,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Rc,e,sz),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Rc,lz,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].updateMatrixWorld(e)}updateWorldMatrix(e,n){const i=this.parent;if(e===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),n===!0){const r=this.children;for(let a=0,o=r.length;a<o;a++)r[a].updateWorldMatrix(!1,!0)}}toJSON(e){const n=e===void 0||typeof e=="string",i={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(s=>({boxInitialized:s.boxInitialized,boxMin:s.box.min.toArray(),boxMax:s.box.max.toArray(),sphereInitialized:s.sphereInitialized,sphereRadius:s.sphere.radius,sphereCenter:s.sphere.center.toArray()})),r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function a(s,l){return s[l.uuid]===void 0&&(s[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=a(e.geometries,this.geometry);const s=this.geometry.parameters;if(s!==void 0&&s.shapes!==void 0){const l=s.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c<u;c++){const d=l[c];a(e.shapes,d)}else a(e.shapes,l)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(a(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const s=[];for(let l=0,c=this.material.length;l<c;l++)s.push(a(e.materials,this.material[l]));r.material=s}else r.material=a(e.materials,this.material);if(this.children.length>0){r.children=[];for(let s=0;s<this.children.length;s++)r.children.push(this.children[s].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let s=0;s<this.animations.length;s++){const l=this.animations[s];r.animations.push(a(e.animations,l))}}if(n){const s=o(e.geometries),l=o(e.materials),c=o(e.textures),u=o(e.images),d=o(e.shapes),f=o(e.skeletons),h=o(e.animations),p=o(e.nodes);s.length>0&&(i.geometries=s),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),u.length>0&&(i.images=u),d.length>0&&(i.shapes=d),f.length>0&&(i.skeletons=f),h.length>0&&(i.animations=h),p.length>0&&(i.nodes=p)}return i.object=r,i;function o(s){const l=[];for(const c in s){const u=s[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let i=0;i<e.children.length;i++){const r=e.children[i];this.add(r.clone())}return this}}Hn.DEFAULT_UP=new te(0,1,0);Hn.DEFAULT_MATRIX_AUTO_UPDATE=!0;Hn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const _r=new te,fa=new te,Qp=new te,ha=new te,Gs=new te,js=new te,Rx=new te,Zp=new te,$p=new te,Jp=new te;class Qr{constructor(e=new te,n=new te,i=new te){this.a=e,this.b=n,this.c=i}static getNormal(e,n,i,r){r.subVectors(i,n),_r.subVectors(e,n),r.cross(_r);const a=r.lengthSq();return a>0?r.multiplyScalar(1/Math.sqrt(a)):r.set(0,0,0)}static getBarycoord(e,n,i,r,a){_r.subVectors(r,n),fa.subVectors(i,n),Qp.subVectors(e,n);const o=_r.dot(_r),s=_r.dot(fa),l=_r.dot(Qp),c=fa.dot(fa),u=fa.dot(Qp),d=o*c-s*s;if(d===0)return a.set(0,0,0),null;const f=1/d,h=(c*l-s*u)*f,p=(o*u-s*l)*f;return a.set(1-h-p,p,h)}static containsPoint(e,n,i,r){return this.getBarycoord(e,n,i,r,ha)===null?!1:ha.x>=0&&ha.y>=0&&ha.x+ha.y<=1}static getInterpolation(e,n,i,r,a,o,s,l){return this.getBarycoord(e,n,i,r,ha)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,ha.x),l.addScaledVector(o,ha.y),l.addScaledVector(s,ha.z),l)}static isFrontFacing(e,n,i,r){return _r.subVectors(i,n),fa.subVectors(e,n),_r.cross(fa).dot(r)<0}set(e,n,i){return this.a.copy(e),this.b.copy(n),this.c.copy(i),this}setFromPointsAndIndices(e,n,i,r){return this.a.copy(e[n]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,n,i,r){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return _r.subVectors(this.c,this.b),fa.subVectors(this.a,this.b),_r.cross(fa).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Qr.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return Qr.getBarycoord(e,this.a,this.b,this.c,n)}getInterpolation(e,n,i,r,a){return Qr.getInterpolation(e,this.a,this.b,this.c,n,i,r,a)}containsPoint(e){return Qr.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Qr.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const i=this.a,r=this.b,a=this.c;let o,s;Gs.subVectors(r,i),js.subVectors(a,i),Zp.subVectors(e,i);const l=Gs.dot(Zp),c=js.dot(Zp);if(l<=0&&c<=0)return n.copy(i);$p.subVectors(e,r);const u=Gs.dot($p),d=js.dot($p);if(u>=0&&d<=u)return n.copy(r);const f=l*d-u*c;if(f<=0&&l>=0&&u<=0)return o=l/(l-u),n.copy(i).addScaledVector(Gs,o);Jp.subVectors(e,a);const h=Gs.dot(Jp),p=js.dot(Jp);if(p>=0&&h<=p)return n.copy(a);const m=h*c-l*p;if(m<=0&&c>=0&&p<=0)return s=c/(c-p),n.copy(i).addScaledVector(js,s);const g=u*p-h*d;if(g<=0&&d-u>=0&&h-p>=0)return Rx.subVectors(a,r),s=(d-u)/(d-u+(h-p)),n.copy(r).addScaledVector(Rx,s);const v=1/(g+m+f);return o=m*v,s=f*v,n.copy(i).addScaledVector(Gs,o).addScaledVector(js,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const SA={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Qa={h:0,s:0,l:0},Pd={h:0,s:0,l:0};function em(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class Ot{constructor(e,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,i)}set(e,n,i){if(n===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,n,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Qi){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,en.toWorkingColorSpace(this,n),this}setRGB(e,n,i,r=en.workingColorSpace){return this.r=e,this.g=n,this.b=i,en.toWorkingColorSpace(this,r),this}setHSL(e,n,i,r=en.workingColorSpace){if(e=a0(e,1),n=hi(n,0,1),i=hi(i,0,1),n===0)this.r=this.g=this.b=i;else{const a=i<=.5?i*(1+n):i+n-i*n,o=2*i-a;this.r=em(o,a,e+1/3),this.g=em(o,a,e),this.b=em(o,a,e-1/3)}return en.toWorkingColorSpace(this,r),this}setStyle(e,n=Qi){function i(a){a!==void 0&&parseFloat(a)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const o=r[1],s=r[2];switch(o){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,n);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,n);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return i(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=r[1],o=a.length;if(o===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(a,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Qi){const i=SA[e.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Sl(e.r),this.g=Sl(e.g),this.b=Sl(e.b),this}copyLinearToSRGB(e){return this.r=Hp(e.r),this.g=Hp(e.g),this.b=Hp(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Qi){return en.fromWorkingColorSpace(ci.copy(this),e),Math.round(hi(ci.r*255,0,255))*65536+Math.round(hi(ci.g*255,0,255))*256+Math.round(hi(ci.b*255,0,255))}getHexString(e=Qi){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=en.workingColorSpace){en.fromWorkingColorSpace(ci.copy(this),n);const i=ci.r,r=ci.g,a=ci.b,o=Math.max(i,r,a),s=Math.min(i,r,a);let l,c;const u=(s+o)/2;if(s===o)l=0,c=0;else{const d=o-s;switch(c=u<=.5?d/(o+s):d/(2-o-s),o){case i:l=(r-a)/d+(r<a?6:0);break;case r:l=(a-i)/d+2;break;case a:l=(i-r)/d+4;break}l/=6}return e.h=l,e.s=c,e.l=u,e}getRGB(e,n=en.workingColorSpace){return en.fromWorkingColorSpace(ci.copy(this),n),e.r=ci.r,e.g=ci.g,e.b=ci.b,e}getStyle(e=Qi){en.fromWorkingColorSpace(ci.copy(this),e);const n=ci.r,i=ci.g,r=ci.b;return e!==Qi?`color(${e} ${n.toFixed(3)} ${i.toFixed(3)} ${r.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(i*255)},${Math.round(r*255)})`}offsetHSL(e,n,i){return this.getHSL(Qa),this.setHSL(Qa.h+e,Qa.s+n,Qa.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,i){return this.r=e.r+(n.r-e.r)*i,this.g=e.g+(n.g-e.g)*i,this.b=e.b+(n.b-e.b)*i,this}lerpHSL(e,n){this.getHSL(Qa),e.getHSL(Pd);const i=Zc(Qa.h,Pd.h,n),r=Zc(Qa.s,Pd.s,n),a=Zc(Qa.l,Pd.l,n);return this.setHSL(i,r,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,i=this.g,r=this.b,a=e.elements;return this.r=a[0]*n+a[3]*i+a[6]*r,this.g=a[1]*n+a[4]*i+a[7]*r,this.b=a[2]*n+a[5]*i+a[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const ci=new Ot;Ot.NAMES=SA;let uz=0;class ws extends Ss{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:uz++}),this.uuid=Po(),this.name="",this.type="Material",this.blending=_l,this.side=Ra,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=Lg,this.blendDst=Og,this.blendEquation=qo,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Ot(0,0,0),this.blendAlpha=0,this.depthFunc=Xf,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=mx,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ks,this.stencilZFail=ks,this.stencilZPass=ks,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const i=e[n];if(i===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[n]=i}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(i.dispersion=this.dispersion),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==_l&&(i.blending=this.blending),this.side!==Ra&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==Lg&&(i.blendSrc=this.blendSrc),this.blendDst!==Og&&(i.blendDst=this.blendDst),this.blendEquation!==qo&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==Xf&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==mx&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ks&&(i.stencilFail=this.stencilFail),this.stencilZFail!==ks&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==ks&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(a){const o=[];for(const s in a){const l=a[s];delete l.metadata,o.push(l)}return o}if(n){const a=r(e.textures),o=r(e.images);a.length>0&&(i.textures=a),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let i=null;if(n!==null){const r=n.length;i=new Array(r);for(let a=0;a!==r;++a)i[a]=n[a].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}onBuild(){console.warn("Material: onBuild() has been removed.")}onBeforeRender(){console.warn("Material: onBeforeRender() has been removed.")}}class $f extends ws{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ot(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Rr,this.combine=Wh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Bn=new te,Rd=new bt;class ea{constructor(e,n,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=i,this.usage=gx,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=$r,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return $c("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,i){e*=this.itemSize,i*=n.itemSize;for(let r=0,a=this.itemSize;r<a;r++)this.array[e+r]=n.array[i+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,i=this.count;n<i;n++)Rd.fromBufferAttribute(this,n),Rd.applyMatrix3(e),this.setXY(n,Rd.x,Rd.y);else if(this.itemSize===3)for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.applyMatrix3(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}applyMatrix4(e){for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.applyMatrix4(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.applyNormalMatrix(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)Bn.fromBufferAttribute(this,n),Bn.transformDirection(e),this.setXYZ(n,Bn.x,Bn.y,Bn.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let i=this.array[e*this.itemSize+n];return this.normalized&&(i=il(i,this.array)),i}setComponent(e,n,i){return this.normalized&&(i=wi(i,this.array)),this.array[e*this.itemSize+n]=i,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=il(n,this.array)),n}setX(e,n){return this.normalized&&(n=wi(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=il(n,this.array)),n}setY(e,n){return this.normalized&&(n=wi(n,this.array)),this.array[e*this.itemSize+1]=n,this}getZ(e){let n=this.array[e*this.itemSize+2];return this.normalized&&(n=il(n,this.array)),n}setZ(e,n){return this.normalized&&(n=wi(n,this.array)),this.array[e*this.itemSize+2]=n,this}getW(e){let n=this.array[e*this.itemSize+3];return this.normalized&&(n=il(n,this.array)),n}setW(e,n){return this.normalized&&(n=wi(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,i){return e*=this.itemSize,this.normalized&&(n=wi(n,this.array),i=wi(i,this.array)),this.array[e+0]=n,this.array[e+1]=i,this}setXYZ(e,n,i,r){return e*=this.itemSize,this.normalized&&(n=wi(n,this.array),i=wi(i,this.array),r=wi(r,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this}setXYZW(e,n,i,r,a){return e*=this.itemSize,this.normalized&&(n=wi(n,this.array),i=wi(i,this.array),r=wi(r,this.array),a=wi(a,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this.array[e+3]=a,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==gx&&(e.usage=this.usage),e}}class wA extends ea{constructor(e,n,i){super(new Uint16Array(e),n,i)}}class MA extends ea{constructor(e,n,i){super(new Uint32Array(e),n,i)}}class di extends ea{constructor(e,n,i){super(new Float32Array(e),n,i)}}let dz=0;const or=new Rt,tm=new Hn,Xs=new te,qi=new ic,Dc=new ic,Zn=new te;class Ba extends Ss{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:dz++}),this.uuid=Po(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(yA(e)?MA:wA)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,i=0){this.groups.push({start:e,count:n,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const a=new It().getNormalMatrix(e);i.applyNormalMatrix(a),i.needsUpdate=!0}const r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return or.makeRotationFromQuaternion(e),this.applyMatrix4(or),this}rotateX(e){return or.makeRotationX(e),this.applyMatrix4(or),this}rotateY(e){return or.makeRotationY(e),this.applyMatrix4(or),this}rotateZ(e){return or.makeRotationZ(e),this.applyMatrix4(or),this}translate(e,n,i){return or.makeTranslation(e,n,i),this.applyMatrix4(or),this}scale(e,n,i){return or.makeScale(e,n,i),this.applyMatrix4(or),this}lookAt(e){return tm.lookAt(e),tm.updateMatrix(),this.applyMatrix4(tm.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Xs).negate(),this.translate(Xs.x,Xs.y,Xs.z),this}setFromPoints(e){const n=[];for(let i=0,r=e.length;i<r;i++){const a=e[i];n.push(a.x,a.y,a.z||0)}return this.setAttribute("position",new di(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ic);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new te(-1/0,-1/0,-1/0),new te(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let i=0,r=n.length;i<r;i++){const a=n[i];qi.setFromBufferAttribute(a),this.morphTargetsRelative?(Zn.addVectors(this.boundingBox.min,qi.min),this.boundingBox.expandByPoint(Zn),Zn.addVectors(this.boundingBox.max,qi.max),this.boundingBox.expandByPoint(Zn)):(this.boundingBox.expandByPoint(qi.min),this.boundingBox.expandByPoint(qi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new rc);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new te,1/0);return}if(e){const i=this.boundingSphere.center;if(qi.setFromBufferAttribute(e),n)for(let a=0,o=n.length;a<o;a++){const s=n[a];Dc.setFromBufferAttribute(s),this.morphTargetsRelative?(Zn.addVectors(qi.min,Dc.min),qi.expandByPoint(Zn),Zn.addVectors(qi.max,Dc.max),qi.expandByPoint(Zn)):(qi.expandByPoint(Dc.min),qi.expandByPoint(Dc.max))}qi.getCenter(i);let r=0;for(let a=0,o=e.count;a<o;a++)Zn.fromBufferAttribute(e,a),r=Math.max(r,i.distanceToSquared(Zn));if(n)for(let a=0,o=n.length;a<o;a++){const s=n[a],l=this.morphTargetsRelative;for(let c=0,u=s.count;c<u;c++)Zn.fromBufferAttribute(s,c),l&&(Xs.fromBufferAttribute(e,c),Zn.add(Xs)),r=Math.max(r,i.distanceToSquared(Zn))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=n.position,r=n.normal,a=n.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new ea(new Float32Array(4*i.count),4));const o=this.getAttribute("tangent"),s=[],l=[];for(let R=0;R<i.count;R++)s[R]=new te,l[R]=new te;const c=new te,u=new te,d=new te,f=new bt,h=new bt,p=new bt,m=new te,g=new te;function v(R,S,M){c.fromBufferAttribute(i,R),u.fromBufferAttribute(i,S),d.fromBufferAttribute(i,M),f.fromBufferAttribute(a,R),h.fromBufferAttribute(a,S),p.fromBufferAttribute(a,M),u.sub(c),d.sub(c),h.sub(f),p.sub(f);const D=1/(h.x*p.y-p.x*h.y);isFinite(D)&&(m.copy(u).multiplyScalar(p.y).addScaledVector(d,-h.y).multiplyScalar(D),g.copy(d).multiplyScalar(h.x).addScaledVector(u,-p.x).multiplyScalar(D),s[R].add(m),s[S].add(m),s[M].add(m),l[R].add(g),l[S].add(g),l[M].add(g))}let b=this.groups;b.length===0&&(b=[{start:0,count:e.count}]);for(let R=0,S=b.length;R<S;++R){const M=b[R],D=M.start,O=M.count;for(let V=D,X=D+O;V<X;V+=3)v(e.getX(V+0),e.getX(V+1),e.getX(V+2))}const y=new te,w=new te,L=new te,_=new te;function E(R){L.fromBufferAttribute(r,R),_.copy(L);const S=s[R];y.copy(S),y.sub(L.multiplyScalar(L.dot(S))).normalize(),w.crossVectors(_,S);const D=w.dot(l[R])<0?-1:1;o.setXYZW(R,y.x,y.y,y.z,D)}for(let R=0,S=b.length;R<S;++R){const M=b[R],D=M.start,O=M.count;for(let V=D,X=D+O;V<X;V+=3)E(e.getX(V+0)),E(e.getX(V+1)),E(e.getX(V+2))}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new ea(new Float32Array(n.count*3),3),this.setAttribute("normal",i);else for(let f=0,h=i.count;f<h;f++)i.setXYZ(f,0,0,0);const r=new te,a=new te,o=new te,s=new te,l=new te,c=new te,u=new te,d=new te;if(e)for(let f=0,h=e.count;f<h;f+=3){const p=e.getX(f+0),m=e.getX(f+1),g=e.getX(f+2);r.fromBufferAttribute(n,p),a.fromBufferAttribute(n,m),o.fromBufferAttribute(n,g),u.subVectors(o,a),d.subVectors(r,a),u.cross(d),s.fromBufferAttribute(i,p),l.fromBufferAttribute(i,m),c.fromBufferAttribute(i,g),s.add(u),l.add(u),c.add(u),i.setXYZ(p,s.x,s.y,s.z),i.setXYZ(m,l.x,l.y,l.z),i.setXYZ(g,c.x,c.y,c.z)}else for(let f=0,h=n.count;f<h;f+=3)r.fromBufferAttribute(n,f+0),a.fromBufferAttribute(n,f+1),o.fromBufferAttribute(n,f+2),u.subVectors(o,a),d.subVectors(r,a),u.cross(d),i.setXYZ(f+0,u.x,u.y,u.z),i.setXYZ(f+1,u.x,u.y,u.z),i.setXYZ(f+2,u.x,u.y,u.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,i=e.count;n<i;n++)Zn.fromBufferAttribute(e,n),Zn.normalize(),e.setXYZ(n,Zn.x,Zn.y,Zn.z)}toNonIndexed(){function e(s,l){const c=s.array,u=s.itemSize,d=s.normalized,f=new c.constructor(l.length*u);let h=0,p=0;for(let m=0,g=l.length;m<g;m++){s.isInterleavedBufferAttribute?h=l[m]*s.data.stride+s.offset:h=l[m]*u;for(let v=0;v<u;v++)f[p++]=c[h++]}return new ea(f,u,d)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new Ba,i=this.index.array,r=this.attributes;for(const s in r){const l=r[s],c=e(l,i);n.setAttribute(s,c)}const a=this.morphAttributes;for(const s in a){const l=[],c=a[s];for(let u=0,d=c.length;u<d;u++){const f=c[u],h=e(f,i);l.push(h)}n.morphAttributes[s]=l}n.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let s=0,l=o.length;s<l;s++){const c=o[s];n.addGroup(c.start,c.count,c.materialIndex)}return n}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const i=this.attributes;for(const l in i){const c=i[l];e.data.attributes[l]=c.toJSON(e.data)}const r={};let a=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let d=0,f=c.length;d<f;d++){const h=c[d];u.push(h.toJSON(e.data))}u.length>0&&(r[l]=u,a=!0)}a&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return s!==null&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(n));const r=e.attributes;for(const c in r){const u=r[c];this.setAttribute(c,u.clone(n))}const a=e.morphAttributes;for(const c in a){const u=[],d=a[c];for(let f=0,h=d.length;f<h;f++)u.push(d[f].clone(n));this.morphAttributes[c]=u}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let c=0,u=o.length;c<u;c++){const d=o[c];this.addGroup(d.start,d.count,d.materialIndex)}const s=e.boundingBox;s!==null&&(this.boundingBox=s.clone());const l=e.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Dx=new Rt,Vo=new Xh,Dd=new rc,Ix=new te,Ys=new te,qs=new te,Ks=new te,nm=new te,Id=new te,Ld=new bt,Od=new bt,Nd=new bt,Lx=new te,Ox=new te,Nx=new te,kd=new te,Ud=new te;class Tr extends Hn{constructor(e=new Ba,n=new $f){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=r.length;a<o;a++){const s=r[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[s]=a}}}}getVertexPosition(e,n){const i=this.geometry,r=i.attributes.position,a=i.morphAttributes.position,o=i.morphTargetsRelative;n.fromBufferAttribute(r,e);const s=this.morphTargetInfluences;if(a&&s){Id.set(0,0,0);for(let l=0,c=a.length;l<c;l++){const u=s[l],d=a[l];u!==0&&(nm.fromBufferAttribute(d,e),o?Id.addScaledVector(nm,u):Id.addScaledVector(nm.sub(n),u))}n.add(Id)}return n}raycast(e,n){const i=this.geometry,r=this.material,a=this.matrixWorld;r!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),Dd.copy(i.boundingSphere),Dd.applyMatrix4(a),Vo.copy(e.ray).recast(e.near),!(Dd.containsPoint(Vo.origin)===!1&&(Vo.intersectSphere(Dd,Ix)===null||Vo.origin.distanceToSquared(Ix)>(e.far-e.near)**2))&&(Dx.copy(a).invert(),Vo.copy(e.ray).applyMatrix4(Dx),!(i.boundingBox!==null&&Vo.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,n,Vo)))}_computeIntersections(e,n,i){let r;const a=this.geometry,o=this.material,s=a.index,l=a.attributes.position,c=a.attributes.uv,u=a.attributes.uv1,d=a.attributes.normal,f=a.groups,h=a.drawRange;if(s!==null)if(Array.isArray(o))for(let p=0,m=f.length;p<m;p++){const g=f[p],v=o[g.materialIndex],b=Math.max(g.start,h.start),y=Math.min(s.count,Math.min(g.start+g.count,h.start+h.count));for(let w=b,L=y;w<L;w+=3){const _=s.getX(w),E=s.getX(w+1),R=s.getX(w+2);r=Fd(this,v,e,i,c,u,d,_,E,R),r&&(r.faceIndex=Math.floor(w/3),r.face.materialIndex=g.materialIndex,n.push(r))}}else{const p=Math.max(0,h.start),m=Math.min(s.count,h.start+h.count);for(let g=p,v=m;g<v;g+=3){const b=s.getX(g),y=s.getX(g+1),w=s.getX(g+2);r=Fd(this,o,e,i,c,u,d,b,y,w),r&&(r.faceIndex=Math.floor(g/3),n.push(r))}}else if(l!==void 0)if(Array.isArray(o))for(let p=0,m=f.length;p<m;p++){const g=f[p],v=o[g.materialIndex],b=Math.max(g.start,h.start),y=Math.min(l.count,Math.min(g.start+g.count,h.start+h.count));for(let w=b,L=y;w<L;w+=3){const _=w,E=w+1,R=w+2;r=Fd(this,v,e,i,c,u,d,_,E,R),r&&(r.faceIndex=Math.floor(w/3),r.face.materialIndex=g.materialIndex,n.push(r))}}else{const p=Math.max(0,h.start),m=Math.min(l.count,h.start+h.count);for(let g=p,v=m;g<v;g+=3){const b=g,y=g+1,w=g+2;r=Fd(this,o,e,i,c,u,d,b,y,w),r&&(r.faceIndex=Math.floor(g/3),n.push(r))}}}}function fz(t,e,n,i,r,a,o,s){let l;if(e.side===Hi?l=i.intersectTriangle(o,a,r,!0,s):l=i.intersectTriangle(r,a,o,e.side===Ra,s),l===null)return null;Ud.copy(s),Ud.applyMatrix4(t.matrixWorld);const c=n.ray.origin.distanceTo(Ud);return c<n.near||c>n.far?null:{distance:c,point:Ud.clone(),object:t}}function Fd(t,e,n,i,r,a,o,s,l,c){t.getVertexPosition(s,Ys),t.getVertexPosition(l,qs),t.getVertexPosition(c,Ks);const u=fz(t,e,n,i,Ys,qs,Ks,kd);if(u){r&&(Ld.fromBufferAttribute(r,s),Od.fromBufferAttribute(r,l),Nd.fromBufferAttribute(r,c),u.uv=Qr.getInterpolation(kd,Ys,qs,Ks,Ld,Od,Nd,new bt)),a&&(Ld.fromBufferAttribute(a,s),Od.fromBufferAttribute(a,l),Nd.fromBufferAttribute(a,c),u.uv1=Qr.getInterpolation(kd,Ys,qs,Ks,Ld,Od,Nd,new bt)),o&&(Lx.fromBufferAttribute(o,s),Ox.fromBufferAttribute(o,l),Nx.fromBufferAttribute(o,c),u.normal=Qr.getInterpolation(kd,Ys,qs,Ks,Lx,Ox,Nx,new te),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const d={a:s,b:l,c,normal:new te,materialIndex:0};Qr.getNormal(Ys,qs,Ks,d.normal),u.face=d}return u}class Xu extends Ba{constructor(e=1,n=1,i=1,r=1,a=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:i,widthSegments:r,heightSegments:a,depthSegments:o};const s=this;r=Math.floor(r),a=Math.floor(a),o=Math.floor(o);const l=[],c=[],u=[],d=[];let f=0,h=0;p("z","y","x",-1,-1,i,n,e,o,a,0),p("z","y","x",1,-1,i,n,-e,o,a,1),p("x","z","y",1,1,e,i,n,r,o,2),p("x","z","y",1,-1,e,i,-n,r,o,3),p("x","y","z",1,-1,e,n,i,r,a,4),p("x","y","z",-1,-1,e,n,-i,r,a,5),this.setIndex(l),this.setAttribute("position",new di(c,3)),this.setAttribute("normal",new di(u,3)),this.setAttribute("uv",new di(d,2));function p(m,g,v,b,y,w,L,_,E,R,S){const M=w/E,D=L/R,O=w/2,V=L/2,X=_/2,K=E+1,z=R+1;let Q=0,Y=0;const he=new te;for(let ne=0;ne<z;ne++){const Z=ne*D-V;for(let _e=0;_e<K;_e++){const Te=_e*M-O;he[m]=Te*b,he[g]=Z*y,he[v]=X,c.push(he.x,he.y,he.z),he[m]=0,he[g]=0,he[v]=_>0?1:-1,u.push(he.x,he.y,he.z),d.push(_e/E),d.push(1-ne/R),Q+=1}}for(let ne=0;ne<R;ne++)for(let Z=0;Z<E;Z++){const _e=f+Z+K*ne,Te=f+Z+K*(ne+1),ee=f+(Z+1)+K*(ne+1),le=f+(Z+1)+K*ne;l.push(_e,Te,le),l.push(Te,ee,le),Y+=6}s.addGroup(h,Y,S),h+=Y,f+=Q}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Xu(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Vl(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][i]=null):e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function Mi(t){const e={};for(let n=0;n<t.length;n++){const i=Vl(t[n]);for(const r in i)e[r]=i[r]}return e}function hz(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function EA(t){const e=t.getRenderTarget();return e===null?t.outputColorSpace:e.isXRRenderTarget===!0?e.texture.colorSpace:en.workingColorSpace}const pz={clone:Vl,merge:Mi};var mz=`void main() {
	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,gz=`void main() {
	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
}`;class _o extends ws{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=mz,this.fragmentShader=gz,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Vl(e.uniforms),this.uniformsGroups=hz(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const r in this.uniforms){const o=this.uniforms[r].value;o&&o.isTexture?n.uniforms[r]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?n.uniforms[r]={type:"c",value:o.getHex()}:o&&o.isVector2?n.uniforms[r]={type:"v2",value:o.toArray()}:o&&o.isVector3?n.uniforms[r]={type:"v3",value:o.toArray()}:o&&o.isVector4?n.uniforms[r]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?n.uniforms[r]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?n.uniforms[r]={type:"m4",value:o.toArray()}:n.uniforms[r]={value:o}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(n.extensions=i),n}}class TA extends Hn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Rt,this.projectionMatrix=new Rt,this.projectionMatrixInverse=new Rt,this.coordinateSystem=wa}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Za=new te,kx=new bt,Ux=new bt;class pi extends TA{constructor(e=50,n=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=Bl*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Qc*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Bl*2*Math.atan(Math.tan(Qc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,n,i){Za.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Za.x,Za.y).multiplyScalar(-e/Za.z),Za.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(Za.x,Za.y).multiplyScalar(-e/Za.z)}getViewSize(e,n){return this.getViewBounds(e,kx,Ux),n.subVectors(Ux,kx)}setViewOffset(e,n,i,r,a,o){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Qc*.5*this.fov)/this.zoom,i=2*n,r=this.aspect*i,a=-.5*r;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;a+=o.offsetX*r/l,n-=o.offsetY*i/c,r*=o.width/l,i*=o.height/c}const s=this.filmOffset;s!==0&&(a+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+r,n,n-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Qs=-90,Zs=1;class vz extends Hn{constructor(e,n,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new pi(Qs,Zs,e,n);r.layers=this.layers,this.add(r);const a=new pi(Qs,Zs,e,n);a.layers=this.layers,this.add(a);const o=new pi(Qs,Zs,e,n);o.layers=this.layers,this.add(o);const s=new pi(Qs,Zs,e,n);s.layers=this.layers,this.add(s);const l=new pi(Qs,Zs,e,n);l.layers=this.layers,this.add(l);const c=new pi(Qs,Zs,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[i,r,a,o,s,l]=n;for(const c of n)this.remove(c);if(e===wa)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Zf)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of n)this.add(c),c.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,o,s,l,c,u]=this.children,d=e.getRenderTarget(),f=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const m=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,r),e.render(n,a),e.setRenderTarget(i,1,r),e.render(n,o),e.setRenderTarget(i,2,r),e.render(n,s),e.setRenderTarget(i,3,r),e.render(n,l),e.setRenderTarget(i,4,r),e.render(n,c),i.texture.generateMipmaps=m,e.setRenderTarget(i,5,r),e.render(n,u),e.setRenderTarget(d,f,h),e.xr.enabled=p,i.texture.needsPMREMUpdate=!0}}class AA extends bi{constructor(e,n,i,r,a,o,s,l,c,u){e=e!==void 0?e:[],n=n!==void 0?n:Nl,super(e,n,i,r,a,o,s,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class yz extends hs{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];this.texture=new AA(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Ui}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`

				varying vec3 vWorldDirection;

				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {

					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );

				}

				void main() {

					vWorldDirection = transformDirection( position, modelMatrix );

					#include <begin_vertex>
					#include <project_vertex>

				}
			`,fragmentShader:`

				uniform sampler2D tEquirect;

				varying vec3 vWorldDirection;

				#include <common>

				void main() {

					vec3 direction = normalize( vWorldDirection );

					vec2 sampleUV = equirectUv( direction );

					gl_FragColor = texture2D( tEquirect, sampleUV );

				}
			`},r=new Xu(5,5,5),a=new _o({name:"CubemapFromEquirect",uniforms:Vl(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Hi,blending:vo});a.uniforms.tEquirect.value=n;const o=new Tr(r,a),s=n.minFilter;return n.minFilter===Sa&&(n.minFilter=Ui),new vz(1,10,this).update(e,o),n.minFilter=s,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,i,r){const a=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,i,r);e.setRenderTarget(a)}}const im=new te,bz=new te,_z=new It;class ro{constructor(e=new te(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,i,r){return this.normal.set(e,n,i),this.constant=r,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,i){const r=im.subVectors(i,n).cross(bz.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const i=e.delta(im),r=this.normal.dot(i);if(r===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/r;return a<0||a>1?null:n.copy(e.start).addScaledVector(i,a)}intersectsLine(e){const n=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return n<0&&i>0||i<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const i=n||_z.getNormalMatrix(e),r=this.coplanarPoint(im).applyMatrix4(e),a=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ho=new rc,Bd=new te;class o0{constructor(e=new ro,n=new ro,i=new ro,r=new ro,a=new ro,o=new ro){this.planes=[e,n,i,r,a,o]}set(e,n,i,r,a,o){const s=this.planes;return s[0].copy(e),s[1].copy(n),s[2].copy(i),s[3].copy(r),s[4].copy(a),s[5].copy(o),this}copy(e){const n=this.planes;for(let i=0;i<6;i++)n[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,n=wa){const i=this.planes,r=e.elements,a=r[0],o=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=r[6],f=r[7],h=r[8],p=r[9],m=r[10],g=r[11],v=r[12],b=r[13],y=r[14],w=r[15];if(i[0].setComponents(l-a,f-c,g-h,w-v).normalize(),i[1].setComponents(l+a,f+c,g+h,w+v).normalize(),i[2].setComponents(l+o,f+u,g+p,w+b).normalize(),i[3].setComponents(l-o,f-u,g-p,w-b).normalize(),i[4].setComponents(l-s,f-d,g-m,w-y).normalize(),n===wa)i[5].setComponents(l+s,f+d,g+m,w+y).normalize();else if(n===Zf)i[5].setComponents(s,d,m,y).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ho.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Ho.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ho)}intersectsSprite(e){return Ho.center.set(0,0,0),Ho.radius=.7071067811865476,Ho.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ho)}intersectsSphere(e){const n=this.planes,i=e.center,r=-e.radius;for(let a=0;a<6;a++)if(n[a].distanceToPoint(i)<r)return!1;return!0}intersectsBox(e){const n=this.planes;for(let i=0;i<6;i++){const r=n[i];if(Bd.x=r.normal.x>0?e.max.x:e.min.x,Bd.y=r.normal.y>0?e.max.y:e.min.y,Bd.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Bd)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let i=0;i<6;i++)if(n[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function CA(){let t=null,e=!1,n=null,i=null;function r(a,o){n(a,o),i=t.requestAnimationFrame(r)}return{start:function(){e!==!0&&n!==null&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(a){n=a},setContext:function(a){t=a}}}function xz(t){const e=new WeakMap;function n(s,l){const c=s.array,u=s.usage,d=c.byteLength,f=t.createBuffer();t.bindBuffer(l,f),t.bufferData(l,c,u),s.onUploadCallback();let h;if(c instanceof Float32Array)h=t.FLOAT;else if(c instanceof Uint16Array)s.isFloat16BufferAttribute?h=t.HALF_FLOAT:h=t.UNSIGNED_SHORT;else if(c instanceof Int16Array)h=t.SHORT;else if(c instanceof Uint32Array)h=t.UNSIGNED_INT;else if(c instanceof Int32Array)h=t.INT;else if(c instanceof Int8Array)h=t.BYTE;else if(c instanceof Uint8Array)h=t.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)h=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:f,type:h,bytesPerElement:c.BYTES_PER_ELEMENT,version:s.version,size:d}}function i(s,l,c){const u=l.array,d=l._updateRange,f=l.updateRanges;if(t.bindBuffer(c,s),d.count===-1&&f.length===0&&t.bufferSubData(c,0,u),f.length!==0){for(let h=0,p=f.length;h<p;h++){const m=f[h];t.bufferSubData(c,m.start*u.BYTES_PER_ELEMENT,u,m.start,m.count)}l.clearUpdateRanges()}d.count!==-1&&(t.bufferSubData(c,d.offset*u.BYTES_PER_ELEMENT,u,d.offset,d.count),d.count=-1),l.onUploadCallback()}function r(s){return s.isInterleavedBufferAttribute&&(s=s.data),e.get(s)}function a(s){s.isInterleavedBufferAttribute&&(s=s.data);const l=e.get(s);l&&(t.deleteBuffer(l.buffer),e.delete(s))}function o(s,l){if(s.isInterleavedBufferAttribute&&(s=s.data),s.isGLBufferAttribute){const u=e.get(s);(!u||u.version<s.version)&&e.set(s,{buffer:s.buffer,type:s.type,bytesPerElement:s.elementSize,version:s.version});return}const c=e.get(s);if(c===void 0)e.set(s,n(s,l));else if(c.version<s.version){if(c.size!==s.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");i(c.buffer,s,l),c.version=s.version}}return{get:r,remove:a,update:o}}class Yh extends Ba{constructor(e=1,n=1,i=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:i,heightSegments:r};const a=e/2,o=n/2,s=Math.floor(i),l=Math.floor(r),c=s+1,u=l+1,d=e/s,f=n/l,h=[],p=[],m=[],g=[];for(let v=0;v<u;v++){const b=v*f-o;for(let y=0;y<c;y++){const w=y*d-a;p.push(w,-b,0),m.push(0,0,1),g.push(y/s),g.push(1-v/l)}}for(let v=0;v<l;v++)for(let b=0;b<s;b++){const y=b+c*v,w=b+c*(v+1),L=b+1+c*(v+1),_=b+1+c*v;h.push(y,w,_),h.push(w,L,_)}this.setIndex(h),this.setAttribute("position",new di(p,3)),this.setAttribute("normal",new di(m,3)),this.setAttribute("uv",new di(g,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Yh(e.width,e.height,e.widthSegments,e.heightSegments)}}var Sz=`#ifdef USE_ALPHAHASH
	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
#endif`,wz=`#ifdef USE_ALPHAHASH
	const float ALPHA_HASH_SCALE = 0.05;
	float hash2D( vec2 value ) {
		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
	}
	float hash3D( vec3 value ) {
		return hash2D( vec2( hash2D( value.xy ), value.z ) );
	}
	float getAlphaHashThreshold( vec3 position ) {
		float maxDeriv = max(
			length( dFdx( position.xyz ) ),
			length( dFdy( position.xyz ) )
		);
		float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
		vec2 pixScales = vec2(
			exp2( floor( log2( pixScale ) ) ),
			exp2( ceil( log2( pixScale ) ) )
		);
		vec2 alpha = vec2(
			hash3D( floor( pixScales.x * position.xyz ) ),
			hash3D( floor( pixScales.y * position.xyz ) )
		);
		float lerpFactor = fract( log2( pixScale ) );
		float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
		float a = min( lerpFactor, 1.0 - lerpFactor );
		vec3 cases = vec3(
			x * x / ( 2.0 * a * ( 1.0 - a ) ),
			( x - 0.5 * a ) / ( 1.0 - a ),
			1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
		);
		float threshold = ( x < ( 1.0 - a ) )
			? ( ( x < a ) ? cases.x : cases.y )
			: cases.z;
		return clamp( threshold , 1.0e-6, 1.0 );
	}
#endif`,Mz=`#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
#endif`,Ez=`#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,Tz=`#ifdef USE_ALPHATEST
	#ifdef ALPHA_TO_COVERAGE
	diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
	if ( diffuseColor.a == 0.0 ) discard;
	#else
	if ( diffuseColor.a < alphaTest ) discard;
	#endif
#endif`,Az=`#ifdef USE_ALPHATEST
	uniform float alphaTest;
#endif`,Cz=`#ifdef USE_AOMAP
	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
	reflectedLight.indirectDiffuse *= ambientOcclusion;
	#if defined( USE_CLEARCOAT ) 
		clearcoatSpecularIndirect *= ambientOcclusion;
	#endif
	#if defined( USE_SHEEN ) 
		sheenSpecularIndirect *= ambientOcclusion;
	#endif
	#if defined( USE_ENVMAP ) && defined( STANDARD )
		float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
	#endif
#endif`,Pz=`#ifdef USE_AOMAP
	uniform sampler2D aoMap;
	uniform float aoMapIntensity;
#endif`,Rz=`#ifdef USE_BATCHING
	#if ! defined( GL_ANGLE_multi_draw )
	#define gl_DrawID _gl_DrawID
	uniform int _gl_DrawID;
	#endif
	uniform highp sampler2D batchingTexture;
	uniform highp usampler2D batchingIdTexture;
	mat4 getBatchingMatrix( const in float i ) {
		int size = textureSize( batchingTexture, 0 ).x;
		int j = int( i ) * 4;
		int x = j % size;
		int y = j / size;
		vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
		vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
		vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
		vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
		return mat4( v1, v2, v3, v4 );
	}
	float getIndirectIndex( const in int i ) {
		int size = textureSize( batchingIdTexture, 0 ).x;
		int x = i % size;
		int y = i / size;
		return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );
	}
#endif
#ifdef USE_BATCHING_COLOR
	uniform sampler2D batchingColorTexture;
	vec3 getBatchingColor( const in float i ) {
		int size = textureSize( batchingColorTexture, 0 ).x;
		int j = int( i );
		int x = j % size;
		int y = j / size;
		return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;
	}
#endif`,Dz=`#ifdef USE_BATCHING
	mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );
#endif`,Iz=`vec3 transformed = vec3( position );
#ifdef USE_ALPHAHASH
	vPosition = vec3( position );
#endif`,Lz=`vec3 objectNormal = vec3( normal );
#ifdef USE_TANGENT
	vec3 objectTangent = vec3( tangent.xyz );
#endif`,Oz=`float G_BlinnPhong_Implicit( ) {
	return 0.25;
}
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
}
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
	float G = G_BlinnPhong_Implicit( );
	float D = D_BlinnPhong( shininess, dotNH );
	return F * ( G * D );
} // validated`,Nz=`#ifdef USE_IRIDESCENCE
	const mat3 XYZ_TO_REC709 = mat3(
		 3.2404542, -0.9692660,  0.0556434,
		-1.5371385,  1.8760108, -0.2040259,
		-0.4985314,  0.0415560,  1.0572252
	);
	vec3 Fresnel0ToIor( vec3 fresnel0 ) {
		vec3 sqrtF0 = sqrt( fresnel0 );
		return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
	}
	vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
		return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
	}
	float IorToFresnel0( float transmittedIor, float incidentIor ) {
		return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
	}
	vec3 evalSensitivity( float OPD, vec3 shift ) {
		float phase = 2.0 * PI * OPD * 1.0e-9;
		vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
		vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
		vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
		vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
		xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
		xyz /= 1.0685e-7;
		vec3 rgb = XYZ_TO_REC709 * xyz;
		return rgb;
	}
	vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
		vec3 I;
		float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
		float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
		float cosTheta2Sq = 1.0 - sinTheta2Sq;
		if ( cosTheta2Sq < 0.0 ) {
			return vec3( 1.0 );
		}
		float cosTheta2 = sqrt( cosTheta2Sq );
		float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
		float R12 = F_Schlick( R0, 1.0, cosTheta1 );
		float T121 = 1.0 - R12;
		float phi12 = 0.0;
		if ( iridescenceIOR < outsideIOR ) phi12 = PI;
		float phi21 = PI - phi12;
		vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );		vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
		vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
		vec3 phi23 = vec3( 0.0 );
		if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
		if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
		if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
		float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
		vec3 phi = vec3( phi21 ) + phi23;
		vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
		vec3 r123 = sqrt( R123 );
		vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
		vec3 C0 = R12 + Rs;
		I = C0;
		vec3 Cm = Rs - T121;
		for ( int m = 1; m <= 2; ++ m ) {
			Cm *= r123;
			vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
			I += Cm * Sm;
		}
		return max( I, vec3( 0.0 ) );
	}
#endif`,kz=`#ifdef USE_BUMPMAP
	uniform sampler2D bumpMap;
	uniform float bumpScale;
	vec2 dHdxy_fwd() {
		vec2 dSTdx = dFdx( vBumpMapUv );
		vec2 dSTdy = dFdy( vBumpMapUv );
		float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
		float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
		float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
		return vec2( dBx, dBy );
	}
	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
		vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
		vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
		vec3 vN = surf_norm;
		vec3 R1 = cross( vSigmaY, vN );
		vec3 R2 = cross( vN, vSigmaX );
		float fDet = dot( vSigmaX, R1 ) * faceDirection;
		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
		return normalize( abs( fDet ) * surf_norm - vGrad );
	}
#endif`,Uz=`#if NUM_CLIPPING_PLANES > 0
	vec4 plane;
	#ifdef ALPHA_TO_COVERAGE
		float distanceToPlane, distanceGradient;
		float clipOpacity = 1.0;
		#pragma unroll_loop_start
		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
			plane = clippingPlanes[ i ];
			distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
			distanceGradient = fwidth( distanceToPlane ) / 2.0;
			clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
			if ( clipOpacity == 0.0 ) discard;
		}
		#pragma unroll_loop_end
		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
			float unionClipOpacity = 1.0;
			#pragma unroll_loop_start
			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
				plane = clippingPlanes[ i ];
				distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
				distanceGradient = fwidth( distanceToPlane ) / 2.0;
				unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
			}
			#pragma unroll_loop_end
			clipOpacity *= 1.0 - unionClipOpacity;
		#endif
		diffuseColor.a *= clipOpacity;
		if ( diffuseColor.a == 0.0 ) discard;
	#else
		#pragma unroll_loop_start
		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
			plane = clippingPlanes[ i ];
			if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
		}
		#pragma unroll_loop_end
		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
			bool clipped = true;
			#pragma unroll_loop_start
			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
				plane = clippingPlanes[ i ];
				clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
			}
			#pragma unroll_loop_end
			if ( clipped ) discard;
		#endif
	#endif
#endif`,Fz=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
#endif`,Bz=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
#endif`,Vz=`#if NUM_CLIPPING_PLANES > 0
	vClipPosition = - mvPosition.xyz;
#endif`,Hz=`#if defined( USE_COLOR_ALPHA )
	diffuseColor *= vColor;
#elif defined( USE_COLOR )
	diffuseColor.rgb *= vColor;
#endif`,zz=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR )
	varying vec3 vColor;
#endif`,Wz=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
	varying vec3 vColor;
#endif`,Gz=`#if defined( USE_COLOR_ALPHA )
	vColor = vec4( 1.0 );
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
	vColor = vec3( 1.0 );
#endif
#ifdef USE_COLOR
	vColor *= color;
#endif
#ifdef USE_INSTANCING_COLOR
	vColor.xyz *= instanceColor.xyz;
#endif
#ifdef USE_BATCHING_COLOR
	vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );
	vColor.xyz *= batchingColor.xyz;
#endif`,jz=`#define PI 3.141592653589793
#define PI2 6.283185307179586
#define PI_HALF 1.5707963267948966
#define RECIPROCAL_PI 0.3183098861837907
#define RECIPROCAL_PI2 0.15915494309189535
#define EPSILON 1e-6
#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
#define whiteComplement( a ) ( 1.0 - saturate( a ) )
float pow2( const in float x ) { return x*x; }
vec3 pow2( const in vec3 x ) { return x*x; }
float pow3( const in float x ) { return x*x*x; }
float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
highp float rand( const in vec2 uv ) {
	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
	return fract( sin( sn ) * c );
}
#ifdef HIGH_PRECISION
	float precisionSafeLength( vec3 v ) { return length( v ); }
#else
	float precisionSafeLength( vec3 v ) {
		float maxComponent = max3( abs( v ) );
		return length( v / maxComponent ) * maxComponent;
	}
#endif
struct IncidentLight {
	vec3 color;
	vec3 direction;
	bool visible;
};
struct ReflectedLight {
	vec3 directDiffuse;
	vec3 directSpecular;
	vec3 indirectDiffuse;
	vec3 indirectSpecular;
};
#ifdef USE_ALPHAHASH
	varying vec3 vPosition;
#endif
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
}
vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
}
mat3 transposeMat3( const in mat3 m ) {
	mat3 tmp;
	tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
	tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
	tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
	return tmp;
}
bool isPerspectiveMatrix( mat4 m ) {
	return m[ 2 ][ 3 ] == - 1.0;
}
vec2 equirectUv( in vec3 dir ) {
	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
	return vec2( u, v );
}
vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
	return RECIPROCAL_PI * diffuseColor;
}
vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
}
float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
} // validated`,Xz=`#ifdef ENVMAP_TYPE_CUBE_UV
	#define cubeUV_minMipLevel 4.0
	#define cubeUV_minTileSize 16.0
	float getFace( vec3 direction ) {
		vec3 absDirection = abs( direction );
		float face = - 1.0;
		if ( absDirection.x > absDirection.z ) {
			if ( absDirection.x > absDirection.y )
				face = direction.x > 0.0 ? 0.0 : 3.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		} else {
			if ( absDirection.z > absDirection.y )
				face = direction.z > 0.0 ? 2.0 : 5.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		}
		return face;
	}
	vec2 getUV( vec3 direction, float face ) {
		vec2 uv;
		if ( face == 0.0 ) {
			uv = vec2( direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 1.0 ) {
			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
		} else if ( face == 2.0 ) {
			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
		} else if ( face == 3.0 ) {
			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 4.0 ) {
			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
		} else {
			uv = vec2( direction.x, direction.y ) / abs( direction.z );
		}
		return 0.5 * ( uv + 1.0 );
	}
	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
		float face = getFace( direction );
		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
		mipInt = max( mipInt, cubeUV_minMipLevel );
		float faceSize = exp2( mipInt );
		highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
		if ( face > 2.0 ) {
			uv.y += faceSize;
			face -= 3.0;
		}
		uv.x += face * faceSize;
		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
		uv.x *= CUBEUV_TEXEL_WIDTH;
		uv.y *= CUBEUV_TEXEL_HEIGHT;
		#ifdef texture2DGradEXT
			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
		#else
			return texture2D( envMap, uv ).rgb;
		#endif
	}
	#define cubeUV_r0 1.0
	#define cubeUV_m0 - 2.0
	#define cubeUV_r1 0.8
	#define cubeUV_m1 - 1.0
	#define cubeUV_r4 0.4
	#define cubeUV_m4 2.0
	#define cubeUV_r5 0.305
	#define cubeUV_m5 3.0
	#define cubeUV_r6 0.21
	#define cubeUV_m6 4.0
	float roughnessToMip( float roughness ) {
		float mip = 0.0;
		if ( roughness >= cubeUV_r1 ) {
			mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
		} else if ( roughness >= cubeUV_r4 ) {
			mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
		} else if ( roughness >= cubeUV_r5 ) {
			mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
		} else if ( roughness >= cubeUV_r6 ) {
			mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
		} else {
			mip = - 2.0 * log2( 1.16 * roughness );		}
		return mip;
	}
	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
		float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
		float mipF = fract( mip );
		float mipInt = floor( mip );
		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
		if ( mipF == 0.0 ) {
			return vec4( color0, 1.0 );
		} else {
			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
			return vec4( mix( color0, color1, mipF ), 1.0 );
		}
	}
#endif`,Yz=`vec3 transformedNormal = objectNormal;
#ifdef USE_TANGENT
	vec3 transformedTangent = objectTangent;
#endif
#ifdef USE_BATCHING
	mat3 bm = mat3( batchingMatrix );
	transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
	transformedNormal = bm * transformedNormal;
	#ifdef USE_TANGENT
		transformedTangent = bm * transformedTangent;
	#endif
#endif
#ifdef USE_INSTANCING
	mat3 im = mat3( instanceMatrix );
	transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
	transformedNormal = im * transformedNormal;
	#ifdef USE_TANGENT
		transformedTangent = im * transformedTangent;
	#endif
#endif
transformedNormal = normalMatrix * transformedNormal;
#ifdef FLIP_SIDED
	transformedNormal = - transformedNormal;
#endif
#ifdef USE_TANGENT
	transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
	#ifdef FLIP_SIDED
		transformedTangent = - transformedTangent;
	#endif
#endif`,qz=`#ifdef USE_DISPLACEMENTMAP
	uniform sampler2D displacementMap;
	uniform float displacementScale;
	uniform float displacementBias;
#endif`,Kz=`#ifdef USE_DISPLACEMENTMAP
	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
#endif`,Qz=`#ifdef USE_EMISSIVEMAP
	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
	totalEmissiveRadiance *= emissiveColor.rgb;
#endif`,Zz=`#ifdef USE_EMISSIVEMAP
	uniform sampler2D emissiveMap;
#endif`,$z="gl_FragColor = linearToOutputTexel( gl_FragColor );",Jz=`
const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
	vec3( 0.8224621, 0.177538, 0.0 ),
	vec3( 0.0331941, 0.9668058, 0.0 ),
	vec3( 0.0170827, 0.0723974, 0.9105199 )
);
const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(
	vec3( 1.2249401, - 0.2249404, 0.0 ),
	vec3( - 0.0420569, 1.0420571, 0.0 ),
	vec3( - 0.0196376, - 0.0786361, 1.0982735 )
);
vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {
	return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );
}
vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {
	return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );
}
vec4 LinearTransferOETF( in vec4 value ) {
	return value;
}
vec4 sRGBTransferOETF( in vec4 value ) {
	return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
}`,e8=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vec3 cameraToFrag;
		if ( isOrthographic ) {
			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToFrag = normalize( vWorldPosition - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
		#else
			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
		#endif
	#else
		vec3 reflectVec = vReflect;
	#endif
	#ifdef ENVMAP_TYPE_CUBE
		vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
	#else
		vec4 envColor = vec4( 0.0 );
	#endif
	#ifdef ENVMAP_BLENDING_MULTIPLY
		outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_MIX )
		outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_ADD )
		outgoingLight += envColor.xyz * specularStrength * reflectivity;
	#endif
#endif`,t8=`#ifdef USE_ENVMAP
	uniform float envMapIntensity;
	uniform float flipEnvMap;
	uniform mat3 envMapRotation;
	#ifdef ENVMAP_TYPE_CUBE
		uniform samplerCube envMap;
	#else
		uniform sampler2D envMap;
	#endif
	
#endif`,n8=`#ifdef USE_ENVMAP
	uniform float reflectivity;
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		varying vec3 vWorldPosition;
		uniform float refractionRatio;
	#else
		varying vec3 vReflect;
	#endif
#endif`,i8=`#ifdef USE_ENVMAP
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		
		varying vec3 vWorldPosition;
	#else
		varying vec3 vReflect;
		uniform float refractionRatio;
	#endif
#endif`,r8=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vWorldPosition = worldPosition.xyz;
	#else
		vec3 cameraToVertex;
		if ( isOrthographic ) {
			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vReflect = reflect( cameraToVertex, worldNormal );
		#else
			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
		#endif
	#endif
#endif`,a8=`#ifdef USE_FOG
	vFogDepth = - mvPosition.z;
#endif`,o8=`#ifdef USE_FOG
	varying float vFogDepth;
#endif`,s8=`#ifdef USE_FOG
	#ifdef FOG_EXP2
		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
	#else
		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
	#endif
	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
#endif`,l8=`#ifdef USE_FOG
	uniform vec3 fogColor;
	varying float vFogDepth;
	#ifdef FOG_EXP2
		uniform float fogDensity;
	#else
		uniform float fogNear;
		uniform float fogFar;
	#endif
#endif`,c8=`#ifdef USE_GRADIENTMAP
	uniform sampler2D gradientMap;
#endif
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
	float dotNL = dot( normal, lightDirection );
	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
	#ifdef USE_GRADIENTMAP
		return vec3( texture2D( gradientMap, coord ).r );
	#else
		vec2 fw = fwidth( coord ) * 0.5;
		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
	#endif
}`,u8=`#ifdef USE_LIGHTMAP
	uniform sampler2D lightMap;
	uniform float lightMapIntensity;
#endif`,d8=`LambertMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularStrength = specularStrength;`,f8=`varying vec3 vViewPosition;
struct LambertMaterial {
	vec3 diffuseColor;
	float specularStrength;
};
void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_Lambert
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,h8=`uniform bool receiveShadow;
uniform vec3 ambientLightColor;
#if defined( USE_LIGHT_PROBES )
	uniform vec3 lightProbe[ 9 ];
#endif
vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
	float x = normal.x, y = normal.y, z = normal.z;
	vec3 result = shCoefficients[ 0 ] * 0.886227;
	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
	return result;
}
vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
	return irradiance;
}
vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
	vec3 irradiance = ambientLightColor;
	return irradiance;
}
float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
	float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
	if ( cutoffDistance > 0.0 ) {
		distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
	}
	return distanceFalloff;
}
float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
	return smoothstep( coneCosine, penumbraCosine, angleCosine );
}
#if NUM_DIR_LIGHTS > 0
	struct DirectionalLight {
		vec3 direction;
		vec3 color;
	};
	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
	void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
		light.color = directionalLight.color;
		light.direction = directionalLight.direction;
		light.visible = true;
	}
#endif
#if NUM_POINT_LIGHTS > 0
	struct PointLight {
		vec3 position;
		vec3 color;
		float distance;
		float decay;
	};
	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
	void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
		vec3 lVector = pointLight.position - geometryPosition;
		light.direction = normalize( lVector );
		float lightDistance = length( lVector );
		light.color = pointLight.color;
		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
		light.visible = ( light.color != vec3( 0.0 ) );
	}
#endif
#if NUM_SPOT_LIGHTS > 0
	struct SpotLight {
		vec3 position;
		vec3 direction;
		vec3 color;
		float distance;
		float decay;
		float coneCos;
		float penumbraCos;
	};
	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
	void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
		vec3 lVector = spotLight.position - geometryPosition;
		light.direction = normalize( lVector );
		float angleCos = dot( light.direction, spotLight.direction );
		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
		if ( spotAttenuation > 0.0 ) {
			float lightDistance = length( lVector );
			light.color = spotLight.color * spotAttenuation;
			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
			light.visible = ( light.color != vec3( 0.0 ) );
		} else {
			light.color = vec3( 0.0 );
			light.visible = false;
		}
	}
#endif
#if NUM_RECT_AREA_LIGHTS > 0
	struct RectAreaLight {
		vec3 color;
		vec3 position;
		vec3 halfWidth;
		vec3 halfHeight;
	};
	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
#endif
#if NUM_HEMI_LIGHTS > 0
	struct HemisphereLight {
		vec3 direction;
		vec3 skyColor;
		vec3 groundColor;
	};
	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
		float dotNL = dot( normal, hemiLight.direction );
		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
		return irradiance;
	}
#endif`,p8=`#ifdef USE_ENVMAP
	vec3 getIBLIrradiance( const in vec3 normal ) {
		#ifdef ENVMAP_TYPE_CUBE_UV
			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );
			return PI * envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
		#ifdef ENVMAP_TYPE_CUBE_UV
			vec3 reflectVec = reflect( - viewDir, normal );
			reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );
			return envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
	#ifdef USE_ANISOTROPY
		vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
			#ifdef ENVMAP_TYPE_CUBE_UV
				vec3 bentNormal = cross( bitangent, viewDir );
				bentNormal = normalize( cross( bentNormal, bitangent ) );
				bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
				return getIBLRadiance( viewDir, bentNormal, roughness );
			#else
				return vec3( 0.0 );
			#endif
		}
	#endif
#endif`,m8=`ToonMaterial material;
material.diffuseColor = diffuseColor.rgb;`,g8=`varying vec3 vViewPosition;
struct ToonMaterial {
	vec3 diffuseColor;
};
void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_Toon
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,v8=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
material.specularStrength = specularStrength;`,y8=`varying vec3 vViewPosition;
struct BlinnPhongMaterial {
	vec3 diffuseColor;
	vec3 specularColor;
	float specularShininess;
	float specularStrength;
};
void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
}
void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_BlinnPhong
#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,b8=`PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
material.roughness = min( material.roughness, 1.0 );
#ifdef IOR
	material.ior = ior;
	#ifdef USE_SPECULAR
		float specularIntensityFactor = specularIntensity;
		vec3 specularColorFactor = specularColor;
		#ifdef USE_SPECULAR_COLORMAP
			specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
		#endif
		#ifdef USE_SPECULAR_INTENSITYMAP
			specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
		#endif
		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
	#else
		float specularIntensityFactor = 1.0;
		vec3 specularColorFactor = vec3( 1.0 );
		material.specularF90 = 1.0;
	#endif
	material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
#else
	material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
	material.specularF90 = 1.0;
#endif
#ifdef USE_CLEARCOAT
	material.clearcoat = clearcoat;
	material.clearcoatRoughness = clearcoatRoughness;
	material.clearcoatF0 = vec3( 0.04 );
	material.clearcoatF90 = 1.0;
	#ifdef USE_CLEARCOATMAP
		material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
	#endif
	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
	#endif
	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
	material.clearcoatRoughness += geometryRoughness;
	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
#endif
#ifdef USE_DISPERSION
	material.dispersion = dispersion;
#endif
#ifdef USE_IRIDESCENCE
	material.iridescence = iridescence;
	material.iridescenceIOR = iridescenceIOR;
	#ifdef USE_IRIDESCENCEMAP
		material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
	#endif
	#ifdef USE_IRIDESCENCE_THICKNESSMAP
		material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
	#else
		material.iridescenceThickness = iridescenceThicknessMaximum;
	#endif
#endif
#ifdef USE_SHEEN
	material.sheenColor = sheenColor;
	#ifdef USE_SHEEN_COLORMAP
		material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
	#endif
	material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
	#ifdef USE_SHEEN_ROUGHNESSMAP
		material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
	#endif
#endif
#ifdef USE_ANISOTROPY
	#ifdef USE_ANISOTROPYMAP
		mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
		vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
		vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
	#else
		vec2 anisotropyV = anisotropyVector;
	#endif
	material.anisotropy = length( anisotropyV );
	if( material.anisotropy == 0.0 ) {
		anisotropyV = vec2( 1.0, 0.0 );
	} else {
		anisotropyV /= material.anisotropy;
		material.anisotropy = saturate( material.anisotropy );
	}
	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
#endif`,_8=`struct PhysicalMaterial {
	vec3 diffuseColor;
	float roughness;
	vec3 specularColor;
	float specularF90;
	float dispersion;
	#ifdef USE_CLEARCOAT
		float clearcoat;
		float clearcoatRoughness;
		vec3 clearcoatF0;
		float clearcoatF90;
	#endif
	#ifdef USE_IRIDESCENCE
		float iridescence;
		float iridescenceIOR;
		float iridescenceThickness;
		vec3 iridescenceFresnel;
		vec3 iridescenceF0;
	#endif
	#ifdef USE_SHEEN
		vec3 sheenColor;
		float sheenRoughness;
	#endif
	#ifdef IOR
		float ior;
	#endif
	#ifdef USE_TRANSMISSION
		float transmission;
		float transmissionAlpha;
		float thickness;
		float attenuationDistance;
		vec3 attenuationColor;
	#endif
	#ifdef USE_ANISOTROPY
		float anisotropy;
		float alphaT;
		vec3 anisotropyT;
		vec3 anisotropyB;
	#endif
};
vec3 clearcoatSpecularDirect = vec3( 0.0 );
vec3 clearcoatSpecularIndirect = vec3( 0.0 );
vec3 sheenSpecularDirect = vec3( 0.0 );
vec3 sheenSpecularIndirect = vec3(0.0 );
vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
    float x2 = x * x;
    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
}
float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
	float a2 = pow2( alpha );
	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
	return 0.5 / max( gv + gl, EPSILON );
}
float D_GGX( const in float alpha, const in float dotNH ) {
	float a2 = pow2( alpha );
	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
	return RECIPROCAL_PI * a2 / pow2( denom );
}
#ifdef USE_ANISOTROPY
	float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
		float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
		float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
		float v = 0.5 / ( gv + gl );
		return saturate(v);
	}
	float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
		float a2 = alphaT * alphaB;
		highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
		highp float v2 = dot( v, v );
		float w2 = a2 / v2;
		return RECIPROCAL_PI * a2 * pow2 ( w2 );
	}
#endif
#ifdef USE_CLEARCOAT
	vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
		vec3 f0 = material.clearcoatF0;
		float f90 = material.clearcoatF90;
		float roughness = material.clearcoatRoughness;
		float alpha = pow2( roughness );
		vec3 halfDir = normalize( lightDir + viewDir );
		float dotNL = saturate( dot( normal, lightDir ) );
		float dotNV = saturate( dot( normal, viewDir ) );
		float dotNH = saturate( dot( normal, halfDir ) );
		float dotVH = saturate( dot( viewDir, halfDir ) );
		vec3 F = F_Schlick( f0, f90, dotVH );
		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
		float D = D_GGX( alpha, dotNH );
		return F * ( V * D );
	}
#endif
vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
	vec3 f0 = material.specularColor;
	float f90 = material.specularF90;
	float roughness = material.roughness;
	float alpha = pow2( roughness );
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( f0, f90, dotVH );
	#ifdef USE_IRIDESCENCE
		F = mix( F, material.iridescenceFresnel, material.iridescence );
	#endif
	#ifdef USE_ANISOTROPY
		float dotTL = dot( material.anisotropyT, lightDir );
		float dotTV = dot( material.anisotropyT, viewDir );
		float dotTH = dot( material.anisotropyT, halfDir );
		float dotBL = dot( material.anisotropyB, lightDir );
		float dotBV = dot( material.anisotropyB, viewDir );
		float dotBH = dot( material.anisotropyB, halfDir );
		float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
		float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
	#else
		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
		float D = D_GGX( alpha, dotNH );
	#endif
	return F * ( V * D );
}
vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
	const float LUT_SIZE = 64.0;
	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
	const float LUT_BIAS = 0.5 / LUT_SIZE;
	float dotNV = saturate( dot( N, V ) );
	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
	uv = uv * LUT_SCALE + LUT_BIAS;
	return uv;
}
float LTC_ClippedSphereFormFactor( const in vec3 f ) {
	float l = length( f );
	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
}
vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
	float x = dot( v1, v2 );
	float y = abs( x );
	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
	float b = 3.4175940 + ( 4.1616724 + y ) * y;
	float v = a / b;
	float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
	return cross( v1, v2 ) * theta_sintheta;
}
vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
	vec3 lightNormal = cross( v1, v2 );
	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
	vec3 T1, T2;
	T1 = normalize( V - N * dot( V, N ) );
	T2 = - cross( N, T1 );
	mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
	vec3 coords[ 4 ];
	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
	coords[ 0 ] = normalize( coords[ 0 ] );
	coords[ 1 ] = normalize( coords[ 1 ] );
	coords[ 2 ] = normalize( coords[ 2 ] );
	coords[ 3 ] = normalize( coords[ 3 ] );
	vec3 vectorFormFactor = vec3( 0.0 );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
	return vec3( result );
}
#if defined( USE_SHEEN )
float D_Charlie( float roughness, float dotNH ) {
	float alpha = pow2( roughness );
	float invAlpha = 1.0 / alpha;
	float cos2h = dotNH * dotNH;
	float sin2h = max( 1.0 - cos2h, 0.0078125 );
	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
}
float V_Neubelt( float dotNV, float dotNL ) {
	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
}
vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float D = D_Charlie( sheenRoughness, dotNH );
	float V = V_Neubelt( dotNV, dotNL );
	return sheenColor * ( D * V );
}
#endif
float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
	float dotNV = saturate( dot( normal, viewDir ) );
	float r2 = roughness * roughness;
	float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
	float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
	float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
	return saturate( DG * RECIPROCAL_PI );
}
vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
	float dotNV = saturate( dot( normal, viewDir ) );
	const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
	const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
	vec4 r = roughness * c0 + c1;
	float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
	vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
	return fab;
}
vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	return specularColor * fab.x + specularF90 * fab.y;
}
#ifdef USE_IRIDESCENCE
void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
#else
void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
#endif
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	#ifdef USE_IRIDESCENCE
		vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
	#else
		vec3 Fr = specularColor;
	#endif
	vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
	float Ess = fab.x + fab.y;
	float Ems = 1.0 - Ess;
	vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
	singleScatter += FssEss;
	multiScatter += Fms * Ems;
}
#if NUM_RECT_AREA_LIGHTS > 0
	void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
		vec3 normal = geometryNormal;
		vec3 viewDir = geometryViewDir;
		vec3 position = geometryPosition;
		vec3 lightPos = rectAreaLight.position;
		vec3 halfWidth = rectAreaLight.halfWidth;
		vec3 halfHeight = rectAreaLight.halfHeight;
		vec3 lightColor = rectAreaLight.color;
		float roughness = material.roughness;
		vec3 rectCoords[ 4 ];
		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
		vec2 uv = LTC_Uv( normal, viewDir, roughness );
		vec4 t1 = texture2D( ltc_1, uv );
		vec4 t2 = texture2D( ltc_2, uv );
		mat3 mInv = mat3(
			vec3( t1.x, 0, t1.y ),
			vec3(    0, 1,    0 ),
			vec3( t1.z, 0, t1.w )
		);
		vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
		reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
	}
#endif
void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	#ifdef USE_CLEARCOAT
		float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
		vec3 ccIrradiance = dotNLcc * directLight.color;
		clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
	#endif
	#ifdef USE_SHEEN
		sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
	#endif
	reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
	#ifdef USE_CLEARCOAT
		clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
	#endif
	#ifdef USE_SHEEN
		sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
	#endif
	vec3 singleScattering = vec3( 0.0 );
	vec3 multiScattering = vec3( 0.0 );
	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
	#ifdef USE_IRIDESCENCE
		computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
	#else
		computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
	#endif
	vec3 totalScattering = singleScattering + multiScattering;
	vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
	reflectedLight.indirectSpecular += radiance * singleScattering;
	reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
	reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
}
#define RE_Direct				RE_Direct_Physical
#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
}`,x8=`
vec3 geometryPosition = - vViewPosition;
vec3 geometryNormal = normal;
vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
vec3 geometryClearcoatNormal = vec3( 0.0 );
#ifdef USE_CLEARCOAT
	geometryClearcoatNormal = clearcoatNormal;
#endif
#ifdef USE_IRIDESCENCE
	float dotNVi = saturate( dot( normal, geometryViewDir ) );
	if ( material.iridescenceThickness == 0.0 ) {
		material.iridescence = 0.0;
	} else {
		material.iridescence = saturate( material.iridescence );
	}
	if ( material.iridescence > 0.0 ) {
		material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
		material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
	}
#endif
IncidentLight directLight;
#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
	PointLight pointLight;
	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
		pointLight = pointLights[ i ];
		getPointLightInfo( pointLight, geometryPosition, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
		pointLightShadow = pointLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
	SpotLight spotLight;
	vec4 spotColor;
	vec3 spotLightCoord;
	bool inSpotLightMap;
	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
		spotLight = spotLights[ i ];
		getSpotLightInfo( spotLight, geometryPosition, directLight );
		#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
		#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
		#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
		#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
		#else
		#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
		#endif
		#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
			spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
			inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
			spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
			directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
		#endif
		#undef SPOT_LIGHT_MAP_INDEX
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
		spotLightShadow = spotLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
	DirectionalLight directionalLight;
	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
		directionalLight = directionalLights[ i ];
		getDirectionalLightInfo( directionalLight, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
		directionalLightShadow = directionalLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
	RectAreaLight rectAreaLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
		rectAreaLight = rectAreaLights[ i ];
		RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if defined( RE_IndirectDiffuse )
	vec3 iblIrradiance = vec3( 0.0 );
	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
	#if defined( USE_LIGHT_PROBES )
		irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
	#endif
	#if ( NUM_HEMI_LIGHTS > 0 )
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
		}
		#pragma unroll_loop_end
	#endif
#endif
#if defined( RE_IndirectSpecular )
	vec3 radiance = vec3( 0.0 );
	vec3 clearcoatRadiance = vec3( 0.0 );
#endif`,S8=`#if defined( RE_IndirectDiffuse )
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
		irradiance += lightMapIrradiance;
	#endif
	#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
		iblIrradiance += getIBLIrradiance( geometryNormal );
	#endif
#endif
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
	#ifdef USE_ANISOTROPY
		radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
	#else
		radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
	#endif
	#ifdef USE_CLEARCOAT
		clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
	#endif
#endif`,w8=`#if defined( RE_IndirectDiffuse )
	RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif
#if defined( RE_IndirectSpecular )
	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif`,M8=`#if defined( USE_LOGDEPTHBUF )
	gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif`,E8=`#if defined( USE_LOGDEPTHBUF )
	uniform float logDepthBufFC;
	varying float vFragDepth;
	varying float vIsPerspective;
#endif`,T8=`#ifdef USE_LOGDEPTHBUF
	varying float vFragDepth;
	varying float vIsPerspective;
#endif`,A8=`#ifdef USE_LOGDEPTHBUF
	vFragDepth = 1.0 + gl_Position.w;
	vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
#endif`,C8=`#ifdef USE_MAP
	vec4 sampledDiffuseColor = texture2D( map, vMapUv );
	#ifdef DECODE_VIDEO_TEXTURE
		sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
	
	#endif
	diffuseColor *= sampledDiffuseColor;
#endif`,P8=`#ifdef USE_MAP
	uniform sampler2D map;
#endif`,R8=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
	#if defined( USE_POINTS_UV )
		vec2 uv = vUv;
	#else
		vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
	#endif
#endif
#ifdef USE_MAP
	diffuseColor *= texture2D( map, uv );
#endif
#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, uv ).g;
#endif`,D8=`#if defined( USE_POINTS_UV )
	varying vec2 vUv;
#else
	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
		uniform mat3 uvTransform;
	#endif
#endif
#ifdef USE_MAP
	uniform sampler2D map;
#endif
#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,I8=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
	metalnessFactor *= texelMetalness.b;
#endif`,L8=`#ifdef USE_METALNESSMAP
	uniform sampler2D metalnessMap;
#endif`,O8=`#ifdef USE_INSTANCING_MORPH
	float morphTargetInfluences[ MORPHTARGETS_COUNT ];
	float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		morphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
	}
#endif`,N8=`#if defined( USE_MORPHCOLORS )
	vColor *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		#if defined( USE_COLOR_ALPHA )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
		#elif defined( USE_COLOR )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
		#endif
	}
#endif`,k8=`#ifdef USE_MORPHNORMALS
	objectNormal *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
	}
#endif`,U8=`#ifdef USE_MORPHTARGETS
	#ifndef USE_INSTANCING_MORPH
		uniform float morphTargetBaseInfluence;
		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
	#endif
	uniform sampler2DArray morphTargetsTexture;
	uniform ivec2 morphTargetsTextureSize;
	vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
		int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
		int y = texelIndex / morphTargetsTextureSize.x;
		int x = texelIndex - y * morphTargetsTextureSize.x;
		ivec3 morphUV = ivec3( x, y, morphTargetIndex );
		return texelFetch( morphTargetsTexture, morphUV, 0 );
	}
#endif`,F8=`#ifdef USE_MORPHTARGETS
	transformed *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
	}
#endif`,B8=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
#ifdef FLAT_SHADED
	vec3 fdx = dFdx( vViewPosition );
	vec3 fdy = dFdy( vViewPosition );
	vec3 normal = normalize( cross( fdx, fdy ) );
#else
	vec3 normal = normalize( vNormal );
	#ifdef DOUBLE_SIDED
		normal *= faceDirection;
	#endif
#endif
#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
	#ifdef USE_TANGENT
		mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
	#else
		mat3 tbn = getTangentFrame( - vViewPosition, normal,
		#if defined( USE_NORMALMAP )
			vNormalMapUv
		#elif defined( USE_CLEARCOAT_NORMALMAP )
			vClearcoatNormalMapUv
		#else
			vUv
		#endif
		);
	#endif
	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
		tbn[0] *= faceDirection;
		tbn[1] *= faceDirection;
	#endif
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	#ifdef USE_TANGENT
		mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
	#else
		mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
	#endif
	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
		tbn2[0] *= faceDirection;
		tbn2[1] *= faceDirection;
	#endif
#endif
vec3 nonPerturbedNormal = normal;`,V8=`#ifdef USE_NORMALMAP_OBJECTSPACE
	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
	#ifdef FLIP_SIDED
		normal = - normal;
	#endif
	#ifdef DOUBLE_SIDED
		normal = normal * faceDirection;
	#endif
	normal = normalize( normalMatrix * normal );
#elif defined( USE_NORMALMAP_TANGENTSPACE )
	vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
	mapN.xy *= normalScale;
	normal = normalize( tbn * mapN );
#elif defined( USE_BUMPMAP )
	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
#endif`,H8=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,z8=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,W8=`#ifndef FLAT_SHADED
	vNormal = normalize( transformedNormal );
	#ifdef USE_TANGENT
		vTangent = normalize( transformedTangent );
		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
	#endif
#endif`,G8=`#ifdef USE_NORMALMAP
	uniform sampler2D normalMap;
	uniform vec2 normalScale;
#endif
#ifdef USE_NORMALMAP_OBJECTSPACE
	uniform mat3 normalMatrix;
#endif
#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
	mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
		vec3 q0 = dFdx( eye_pos.xyz );
		vec3 q1 = dFdy( eye_pos.xyz );
		vec2 st0 = dFdx( uv.st );
		vec2 st1 = dFdy( uv.st );
		vec3 N = surf_norm;
		vec3 q1perp = cross( q1, N );
		vec3 q0perp = cross( N, q0 );
		vec3 T = q1perp * st0.x + q0perp * st1.x;
		vec3 B = q1perp * st0.y + q0perp * st1.y;
		float det = max( dot( T, T ), dot( B, B ) );
		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
		return mat3( T * scale, B * scale, N );
	}
#endif`,j8=`#ifdef USE_CLEARCOAT
	vec3 clearcoatNormal = nonPerturbedNormal;
#endif`,X8=`#ifdef USE_CLEARCOAT_NORMALMAP
	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
	clearcoatMapN.xy *= clearcoatNormalScale;
	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
#endif`,Y8=`#ifdef USE_CLEARCOATMAP
	uniform sampler2D clearcoatMap;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	uniform sampler2D clearcoatNormalMap;
	uniform vec2 clearcoatNormalScale;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	uniform sampler2D clearcoatRoughnessMap;
#endif`,q8=`#ifdef USE_IRIDESCENCEMAP
	uniform sampler2D iridescenceMap;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	uniform sampler2D iridescenceThicknessMap;
#endif`,K8=`#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif
#ifdef USE_TRANSMISSION
diffuseColor.a *= material.transmissionAlpha;
#endif
gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Q8=`vec3 packNormalToRGB( const in vec3 normal ) {
	return normalize( normal ) * 0.5 + 0.5;
}
vec3 unpackRGBToNormal( const in vec3 rgb ) {
	return 2.0 * rgb.xyz - 1.0;
}
const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;
const float Inv255 = 1. / 255.;
const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );
const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );
const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );
const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );
vec4 packDepthToRGBA( const in float v ) {
	if( v <= 0.0 )
		return vec4( 0., 0., 0., 0. );
	if( v >= 1.0 )
		return vec4( 1., 1., 1., 1. );
	float vuf;
	float af = modf( v * PackFactors.a, vuf );
	float bf = modf( vuf * ShiftRight8, vuf );
	float gf = modf( vuf * ShiftRight8, vuf );
	return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );
}
vec3 packDepthToRGB( const in float v ) {
	if( v <= 0.0 )
		return vec3( 0., 0., 0. );
	if( v >= 1.0 )
		return vec3( 1., 1., 1. );
	float vuf;
	float bf = modf( v * PackFactors.b, vuf );
	float gf = modf( vuf * ShiftRight8, vuf );
	return vec3( vuf * Inv255, gf * PackUpscale, bf );
}
vec2 packDepthToRG( const in float v ) {
	if( v <= 0.0 )
		return vec2( 0., 0. );
	if( v >= 1.0 )
		return vec2( 1., 1. );
	float vuf;
	float gf = modf( v * 256., vuf );
	return vec2( vuf * Inv255, gf );
}
float unpackRGBAToDepth( const in vec4 v ) {
	return dot( v, UnpackFactors4 );
}
float unpackRGBToDepth( const in vec3 v ) {
	return dot( v, UnpackFactors3 );
}
float unpackRGToDepth( const in vec2 v ) {
	return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;
}
vec4 pack2HalfToRGBA( const in vec2 v ) {
	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
}
vec2 unpackRGBATo2Half( const in vec4 v ) {
	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
}
float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
	return ( viewZ + near ) / ( near - far );
}
float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
	return depth * ( near - far ) - near;
}
float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
}
float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
	return ( near * far ) / ( ( far - near ) * depth - far );
}`,Z8=`#ifdef PREMULTIPLIED_ALPHA
	gl_FragColor.rgb *= gl_FragColor.a;
#endif`,$8=`vec4 mvPosition = vec4( transformed, 1.0 );
#ifdef USE_BATCHING
	mvPosition = batchingMatrix * mvPosition;
#endif
#ifdef USE_INSTANCING
	mvPosition = instanceMatrix * mvPosition;
#endif
mvPosition = modelViewMatrix * mvPosition;
gl_Position = projectionMatrix * mvPosition;`,J8=`#ifdef DITHERING
	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
#endif`,eW=`#ifdef DITHERING
	vec3 dithering( vec3 color ) {
		float grid_position = rand( gl_FragCoord.xy );
		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
		return color + dither_shift_RGB;
	}
#endif`,tW=`float roughnessFactor = roughness;
#ifdef USE_ROUGHNESSMAP
	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
	roughnessFactor *= texelRoughness.g;
#endif`,nW=`#ifdef USE_ROUGHNESSMAP
	uniform sampler2D roughnessMap;
#endif`,iW=`#if NUM_SPOT_LIGHT_COORDS > 0
	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#if NUM_SPOT_LIGHT_MAPS > 0
	uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
#endif
#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
		struct SpotLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
	float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
		return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
	}
	vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
		return unpackRGBATo2Half( texture2D( shadow, uv ) );
	}
	float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
		float occlusion = 1.0;
		vec2 distribution = texture2DDistribution( shadow, uv );
		float hard_shadow = step( compare , distribution.x );
		if (hard_shadow != 1.0 ) {
			float distance = compare - distribution.x ;
			float variance = max( 0.00000, distribution.y * distribution.y );
			float softness_probability = variance / (variance + distance * distance );			softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );			occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
		}
		return occlusion;
	}
	float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
		float shadow = 1.0;
		shadowCoord.xyz /= shadowCoord.w;
		shadowCoord.z += shadowBias;
		bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
		bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
		if ( frustumTest ) {
		#if defined( SHADOWMAP_TYPE_PCF )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx0 = - texelSize.x * shadowRadius;
			float dy0 = - texelSize.y * shadowRadius;
			float dx1 = + texelSize.x * shadowRadius;
			float dy1 = + texelSize.y * shadowRadius;
			float dx2 = dx0 / 2.0;
			float dy2 = dy0 / 2.0;
			float dx3 = dx1 / 2.0;
			float dy3 = dy1 / 2.0;
			shadow = (
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
			) * ( 1.0 / 17.0 );
		#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx = texelSize.x;
			float dy = texelSize.y;
			vec2 uv = shadowCoord.xy;
			vec2 f = fract( uv * shadowMapSize + 0.5 );
			uv -= f * texelSize;
			shadow = (
				texture2DCompare( shadowMap, uv, shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
						  f.x ),
					 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
						  f.x ),
					 f.y )
			) * ( 1.0 / 9.0 );
		#elif defined( SHADOWMAP_TYPE_VSM )
			shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
		#else
			shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
		#endif
		}
		return mix( 1.0, shadow, shadowIntensity );
	}
	vec2 cubeToUV( vec3 v, float texelSizeY ) {
		vec3 absV = abs( v );
		float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
		absV *= scaleToCube;
		v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
		vec2 planar = v.xy;
		float almostATexel = 1.5 * texelSizeY;
		float almostOne = 1.0 - almostATexel;
		if ( absV.z >= almostOne ) {
			if ( v.z > 0.0 )
				planar.x = 4.0 - v.x;
		} else if ( absV.x >= almostOne ) {
			float signX = sign( v.x );
			planar.x = v.z * signX + 2.0 * signX;
		} else if ( absV.y >= almostOne ) {
			float signY = sign( v.y );
			planar.x = v.x + 2.0 * signY + 2.0;
			planar.y = v.z * signY - 2.0;
		}
		return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
	}
	float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
		float shadow = 1.0;
		vec3 lightToPosition = shadowCoord.xyz;
		
		float lightToPositionLength = length( lightToPosition );
		if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {
			float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );			dp += shadowBias;
			vec3 bd3D = normalize( lightToPosition );
			vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
			#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
				vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
				shadow = (
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
				) * ( 1.0 / 9.0 );
			#else
				shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
			#endif
		}
		return mix( 1.0, shadow, shadowIntensity );
	}
#endif`,rW=`#if NUM_SPOT_LIGHT_COORDS > 0
	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		struct SpotLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
#endif`,aW=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
	vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
	vec4 shadowWorldPosition;
#endif
#if defined( USE_SHADOWMAP )
	#if NUM_DIR_LIGHT_SHADOWS > 0
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
			vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
		}
		#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
			vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
		}
		#pragma unroll_loop_end
	#endif
#endif
#if NUM_SPOT_LIGHT_COORDS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
		shadowWorldPosition = worldPosition;
		#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
			shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
		#endif
		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
	}
	#pragma unroll_loop_end
#endif`,oW=`float getShadowMask() {
	float shadow = 1.0;
	#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
		directionalLight = directionalLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
		spotLight = spotLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
		pointLight = pointLightShadows[ i ];
		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#endif
	return shadow;
}`,sW=`#ifdef USE_SKINNING
	mat4 boneMatX = getBoneMatrix( skinIndex.x );
	mat4 boneMatY = getBoneMatrix( skinIndex.y );
	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
	mat4 boneMatW = getBoneMatrix( skinIndex.w );
#endif`,lW=`#ifdef USE_SKINNING
	uniform mat4 bindMatrix;
	uniform mat4 bindMatrixInverse;
	uniform highp sampler2D boneTexture;
	mat4 getBoneMatrix( const in float i ) {
		int size = textureSize( boneTexture, 0 ).x;
		int j = int( i ) * 4;
		int x = j % size;
		int y = j / size;
		vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
		vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
		vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
		vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
		return mat4( v1, v2, v3, v4 );
	}
#endif`,cW=`#ifdef USE_SKINNING
	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
	vec4 skinned = vec4( 0.0 );
	skinned += boneMatX * skinVertex * skinWeight.x;
	skinned += boneMatY * skinVertex * skinWeight.y;
	skinned += boneMatZ * skinVertex * skinWeight.z;
	skinned += boneMatW * skinVertex * skinWeight.w;
	transformed = ( bindMatrixInverse * skinned ).xyz;
#endif`,uW=`#ifdef USE_SKINNING
	mat4 skinMatrix = mat4( 0.0 );
	skinMatrix += skinWeight.x * boneMatX;
	skinMatrix += skinWeight.y * boneMatY;
	skinMatrix += skinWeight.z * boneMatZ;
	skinMatrix += skinWeight.w * boneMatW;
	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
	#ifdef USE_TANGENT
		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
	#endif
#endif`,dW=`float specularStrength;
#ifdef USE_SPECULARMAP
	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
	specularStrength = texelSpecular.r;
#else
	specularStrength = 1.0;
#endif`,fW=`#ifdef USE_SPECULARMAP
	uniform sampler2D specularMap;
#endif`,hW=`#if defined( TONE_MAPPING )
	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
#endif`,pW=`#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
vec3 LinearToneMapping( vec3 color ) {
	return saturate( toneMappingExposure * color );
}
vec3 ReinhardToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	return saturate( color / ( vec3( 1.0 ) + color ) );
}
vec3 OptimizedCineonToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	color = max( vec3( 0.0 ), color - 0.004 );
	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
}
vec3 RRTAndODTFit( vec3 v ) {
	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
	return a / b;
}
vec3 ACESFilmicToneMapping( vec3 color ) {
	const mat3 ACESInputMat = mat3(
		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
		vec3( 0.04823, 0.01566, 0.83777 )
	);
	const mat3 ACESOutputMat = mat3(
		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
		vec3( -0.07367, -0.00605,  1.07602 )
	);
	color *= toneMappingExposure / 0.6;
	color = ACESInputMat * color;
	color = RRTAndODTFit( color );
	color = ACESOutputMat * color;
	return saturate( color );
}
const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
	vec3( 1.6605, - 0.1246, - 0.0182 ),
	vec3( - 0.5876, 1.1329, - 0.1006 ),
	vec3( - 0.0728, - 0.0083, 1.1187 )
);
const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
	vec3( 0.6274, 0.0691, 0.0164 ),
	vec3( 0.3293, 0.9195, 0.0880 ),
	vec3( 0.0433, 0.0113, 0.8956 )
);
vec3 agxDefaultContrastApprox( vec3 x ) {
	vec3 x2 = x * x;
	vec3 x4 = x2 * x2;
	return + 15.5 * x4 * x2
		- 40.14 * x4 * x
		+ 31.96 * x4
		- 6.868 * x2 * x
		+ 0.4298 * x2
		+ 0.1191 * x
		- 0.00232;
}
vec3 AgXToneMapping( vec3 color ) {
	const mat3 AgXInsetMatrix = mat3(
		vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
		vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
		vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
	);
	const mat3 AgXOutsetMatrix = mat3(
		vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
		vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
		vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
	);
	const float AgxMinEv = - 12.47393;	const float AgxMaxEv = 4.026069;
	color *= toneMappingExposure;
	color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
	color = AgXInsetMatrix * color;
	color = max( color, 1e-10 );	color = log2( color );
	color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
	color = clamp( color, 0.0, 1.0 );
	color = agxDefaultContrastApprox( color );
	color = AgXOutsetMatrix * color;
	color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
	color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
	color = clamp( color, 0.0, 1.0 );
	return color;
}
vec3 NeutralToneMapping( vec3 color ) {
	const float StartCompression = 0.8 - 0.04;
	const float Desaturation = 0.15;
	color *= toneMappingExposure;
	float x = min( color.r, min( color.g, color.b ) );
	float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
	color -= offset;
	float peak = max( color.r, max( color.g, color.b ) );
	if ( peak < StartCompression ) return color;
	float d = 1. - StartCompression;
	float newPeak = 1. - d * d / ( peak + d - StartCompression );
	color *= newPeak / peak;
	float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
	return mix( color, vec3( newPeak ), g );
}
vec3 CustomToneMapping( vec3 color ) { return color; }`,mW=`#ifdef USE_TRANSMISSION
	material.transmission = transmission;
	material.transmissionAlpha = 1.0;
	material.thickness = thickness;
	material.attenuationDistance = attenuationDistance;
	material.attenuationColor = attenuationColor;
	#ifdef USE_TRANSMISSIONMAP
		material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
	#endif
	#ifdef USE_THICKNESSMAP
		material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
	#endif
	vec3 pos = vWorldPosition;
	vec3 v = normalize( cameraPosition - pos );
	vec3 n = inverseTransformDirection( normal, viewMatrix );
	vec4 transmitted = getIBLVolumeRefraction(
		n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
		pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,
		material.attenuationColor, material.attenuationDistance );
	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
#endif`,gW=`#ifdef USE_TRANSMISSION
	uniform float transmission;
	uniform float thickness;
	uniform float attenuationDistance;
	uniform vec3 attenuationColor;
	#ifdef USE_TRANSMISSIONMAP
		uniform sampler2D transmissionMap;
	#endif
	#ifdef USE_THICKNESSMAP
		uniform sampler2D thicknessMap;
	#endif
	uniform vec2 transmissionSamplerSize;
	uniform sampler2D transmissionSamplerMap;
	uniform mat4 modelMatrix;
	uniform mat4 projectionMatrix;
	varying vec3 vWorldPosition;
	float w0( float a ) {
		return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
	}
	float w1( float a ) {
		return ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );
	}
	float w2( float a ){
		return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
	}
	float w3( float a ) {
		return ( 1.0 / 6.0 ) * ( a * a * a );
	}
	float g0( float a ) {
		return w0( a ) + w1( a );
	}
	float g1( float a ) {
		return w2( a ) + w3( a );
	}
	float h0( float a ) {
		return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
	}
	float h1( float a ) {
		return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
	}
	vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
		uv = uv * texelSize.zw + 0.5;
		vec2 iuv = floor( uv );
		vec2 fuv = fract( uv );
		float g0x = g0( fuv.x );
		float g1x = g1( fuv.x );
		float h0x = h0( fuv.x );
		float h1x = h1( fuv.x );
		float h0y = h0( fuv.y );
		float h1y = h1( fuv.y );
		vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
		vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
		vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
		vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
		return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
			g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
	}
	vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
		vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
		vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
		vec2 fLodSizeInv = 1.0 / fLodSize;
		vec2 cLodSizeInv = 1.0 / cLodSize;
		vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
		vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
		return mix( fSample, cSample, fract( lod ) );
	}
	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
		vec3 modelScale;
		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
		return normalize( refractionVector ) * thickness * modelScale;
	}
	float applyIorToRoughness( const in float roughness, const in float ior ) {
		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
	}
	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
		float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
		return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
	}
	vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
		if ( isinf( attenuationDistance ) ) {
			return vec3( 1.0 );
		} else {
			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance;
		}
	}
	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
		const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,
		const in vec3 attenuationColor, const in float attenuationDistance ) {
		vec4 transmittedLight;
		vec3 transmittance;
		#ifdef USE_DISPERSION
			float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;
			vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );
			for ( int i = 0; i < 3; i ++ ) {
				vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );
				vec3 refractedRayExit = position + transmissionRay;
		
				vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
				vec2 refractionCoords = ndcPos.xy / ndcPos.w;
				refractionCoords += 1.0;
				refractionCoords /= 2.0;
		
				vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );
				transmittedLight[ i ] = transmissionSample[ i ];
				transmittedLight.a += transmissionSample.a;
				transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];
			}
			transmittedLight.a /= 3.0;
		
		#else
		
			vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
			vec3 refractedRayExit = position + transmissionRay;
			vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
			vec2 refractionCoords = ndcPos.xy / ndcPos.w;
			refractionCoords += 1.0;
			refractionCoords /= 2.0;
			transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
			transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
		
		#endif
		vec3 attenuatedColor = transmittance * transmittedLight.rgb;
		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
	}
#endif`,vW=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	varying vec2 vUv;
#endif
#ifdef USE_MAP
	varying vec2 vMapUv;
#endif
#ifdef USE_ALPHAMAP
	varying vec2 vAlphaMapUv;
#endif
#ifdef USE_LIGHTMAP
	varying vec2 vLightMapUv;
#endif
#ifdef USE_AOMAP
	varying vec2 vAoMapUv;
#endif
#ifdef USE_BUMPMAP
	varying vec2 vBumpMapUv;
#endif
#ifdef USE_NORMALMAP
	varying vec2 vNormalMapUv;
#endif
#ifdef USE_EMISSIVEMAP
	varying vec2 vEmissiveMapUv;
#endif
#ifdef USE_METALNESSMAP
	varying vec2 vMetalnessMapUv;
#endif
#ifdef USE_ROUGHNESSMAP
	varying vec2 vRoughnessMapUv;
#endif
#ifdef USE_ANISOTROPYMAP
	varying vec2 vAnisotropyMapUv;
#endif
#ifdef USE_CLEARCOATMAP
	varying vec2 vClearcoatMapUv;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	varying vec2 vClearcoatNormalMapUv;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	varying vec2 vClearcoatRoughnessMapUv;
#endif
#ifdef USE_IRIDESCENCEMAP
	varying vec2 vIridescenceMapUv;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	varying vec2 vIridescenceThicknessMapUv;
#endif
#ifdef USE_SHEEN_COLORMAP
	varying vec2 vSheenColorMapUv;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	varying vec2 vSheenRoughnessMapUv;
#endif
#ifdef USE_SPECULARMAP
	varying vec2 vSpecularMapUv;
#endif
#ifdef USE_SPECULAR_COLORMAP
	varying vec2 vSpecularColorMapUv;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	varying vec2 vSpecularIntensityMapUv;
#endif
#ifdef USE_TRANSMISSIONMAP
	uniform mat3 transmissionMapTransform;
	varying vec2 vTransmissionMapUv;
#endif
#ifdef USE_THICKNESSMAP
	uniform mat3 thicknessMapTransform;
	varying vec2 vThicknessMapUv;
#endif`,yW=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	varying vec2 vUv;
#endif
#ifdef USE_MAP
	uniform mat3 mapTransform;
	varying vec2 vMapUv;
#endif
#ifdef USE_ALPHAMAP
	uniform mat3 alphaMapTransform;
	varying vec2 vAlphaMapUv;
#endif
#ifdef USE_LIGHTMAP
	uniform mat3 lightMapTransform;
	varying vec2 vLightMapUv;
#endif
#ifdef USE_AOMAP
	uniform mat3 aoMapTransform;
	varying vec2 vAoMapUv;
#endif
#ifdef USE_BUMPMAP
	uniform mat3 bumpMapTransform;
	varying vec2 vBumpMapUv;
#endif
#ifdef USE_NORMALMAP
	uniform mat3 normalMapTransform;
	varying vec2 vNormalMapUv;
#endif
#ifdef USE_DISPLACEMENTMAP
	uniform mat3 displacementMapTransform;
	varying vec2 vDisplacementMapUv;
#endif
#ifdef USE_EMISSIVEMAP
	uniform mat3 emissiveMapTransform;
	varying vec2 vEmissiveMapUv;
#endif
#ifdef USE_METALNESSMAP
	uniform mat3 metalnessMapTransform;
	varying vec2 vMetalnessMapUv;
#endif
#ifdef USE_ROUGHNESSMAP
	uniform mat3 roughnessMapTransform;
	varying vec2 vRoughnessMapUv;
#endif
#ifdef USE_ANISOTROPYMAP
	uniform mat3 anisotropyMapTransform;
	varying vec2 vAnisotropyMapUv;
#endif
#ifdef USE_CLEARCOATMAP
	uniform mat3 clearcoatMapTransform;
	varying vec2 vClearcoatMapUv;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	uniform mat3 clearcoatNormalMapTransform;
	varying vec2 vClearcoatNormalMapUv;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	uniform mat3 clearcoatRoughnessMapTransform;
	varying vec2 vClearcoatRoughnessMapUv;
#endif
#ifdef USE_SHEEN_COLORMAP
	uniform mat3 sheenColorMapTransform;
	varying vec2 vSheenColorMapUv;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	uniform mat3 sheenRoughnessMapTransform;
	varying vec2 vSheenRoughnessMapUv;
#endif
#ifdef USE_IRIDESCENCEMAP
	uniform mat3 iridescenceMapTransform;
	varying vec2 vIridescenceMapUv;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	uniform mat3 iridescenceThicknessMapTransform;
	varying vec2 vIridescenceThicknessMapUv;
#endif
#ifdef USE_SPECULARMAP
	uniform mat3 specularMapTransform;
	varying vec2 vSpecularMapUv;
#endif
#ifdef USE_SPECULAR_COLORMAP
	uniform mat3 specularColorMapTransform;
	varying vec2 vSpecularColorMapUv;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	uniform mat3 specularIntensityMapTransform;
	varying vec2 vSpecularIntensityMapUv;
#endif
#ifdef USE_TRANSMISSIONMAP
	uniform mat3 transmissionMapTransform;
	varying vec2 vTransmissionMapUv;
#endif
#ifdef USE_THICKNESSMAP
	uniform mat3 thicknessMapTransform;
	varying vec2 vThicknessMapUv;
#endif`,bW=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	vUv = vec3( uv, 1 ).xy;
#endif
#ifdef USE_MAP
	vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ALPHAMAP
	vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_LIGHTMAP
	vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_AOMAP
	vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_BUMPMAP
	vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_NORMALMAP
	vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_DISPLACEMENTMAP
	vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_EMISSIVEMAP
	vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_METALNESSMAP
	vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ROUGHNESSMAP
	vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ANISOTROPYMAP
	vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOATMAP
	vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_IRIDESCENCEMAP
	vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SHEEN_COLORMAP
	vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULARMAP
	vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULAR_COLORMAP
	vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_TRANSMISSIONMAP
	vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_THICKNESSMAP
	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
#endif`,_W=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
	vec4 worldPosition = vec4( transformed, 1.0 );
	#ifdef USE_BATCHING
		worldPosition = batchingMatrix * worldPosition;
	#endif
	#ifdef USE_INSTANCING
		worldPosition = instanceMatrix * worldPosition;
	#endif
	worldPosition = modelMatrix * worldPosition;
#endif`;const xW=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
	gl_Position = vec4( position.xy, 1.0, 1.0 );
}`,SW=`uniform sampler2D t2D;
uniform float backgroundIntensity;
varying vec2 vUv;
void main() {
	vec4 texColor = texture2D( t2D, vUv );
	#ifdef DECODE_VIDEO_TEXTURE
		texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
	#endif
	texColor.rgb *= backgroundIntensity;
	gl_FragColor = texColor;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,wW=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
	gl_Position.z = gl_Position.w;
}`,MW=`#ifdef ENVMAP_TYPE_CUBE
	uniform samplerCube envMap;
#elif defined( ENVMAP_TYPE_CUBE_UV )
	uniform sampler2D envMap;
#endif
uniform float flipEnvMap;
uniform float backgroundBlurriness;
uniform float backgroundIntensity;
uniform mat3 backgroundRotation;
varying vec3 vWorldDirection;
#include <cube_uv_reflection_fragment>
void main() {
	#ifdef ENVMAP_TYPE_CUBE
		vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
	#elif defined( ENVMAP_TYPE_CUBE_UV )
		vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );
	#else
		vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
	#endif
	texColor.rgb *= backgroundIntensity;
	gl_FragColor = texColor;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,EW=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
	gl_Position.z = gl_Position.w;
}`,TW=`uniform samplerCube tCube;
uniform float tFlip;
uniform float opacity;
varying vec3 vWorldDirection;
void main() {
	vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
	gl_FragColor = texColor;
	gl_FragColor.a *= opacity;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,AW=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
varying vec2 vHighPrecisionZW;
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <skinbase_vertex>
	#include <morphinstance_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vHighPrecisionZW = gl_Position.zw;
}`,CW=`#if DEPTH_PACKING == 3200
	uniform float opacity;
#endif
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
varying vec2 vHighPrecisionZW;
void main() {
	vec4 diffuseColor = vec4( 1.0 );
	#include <clipping_planes_fragment>
	#if DEPTH_PACKING == 3200
		diffuseColor.a = opacity;
	#endif
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <logdepthbuf_fragment>
	float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
	#if DEPTH_PACKING == 3200
		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
	#elif DEPTH_PACKING == 3201
		gl_FragColor = packDepthToRGBA( fragCoordZ );
	#elif DEPTH_PACKING == 3202
		gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );
	#elif DEPTH_PACKING == 3203
		gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );
	#endif
}`,PW=`#define DISTANCE
varying vec3 vWorldPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <skinbase_vertex>
	#include <morphinstance_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <worldpos_vertex>
	#include <clipping_planes_vertex>
	vWorldPosition = worldPosition.xyz;
}`,RW=`#define DISTANCE
uniform vec3 referencePosition;
uniform float nearDistance;
uniform float farDistance;
varying vec3 vWorldPosition;
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <clipping_planes_pars_fragment>
void main () {
	vec4 diffuseColor = vec4( 1.0 );
	#include <clipping_planes_fragment>
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	float dist = length( vWorldPosition - referencePosition );
	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
	dist = saturate( dist );
	gl_FragColor = packDepthToRGBA( dist );
}`,DW=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
}`,IW=`uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include <common>
void main() {
	vec3 direction = normalize( vWorldDirection );
	vec2 sampleUV = equirectUv( direction );
	gl_FragColor = texture2D( tEquirect, sampleUV );
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,LW=`uniform float scale;
attribute float lineDistance;
varying float vLineDistance;
#include <common>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	vLineDistance = scale * lineDistance;
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,OW=`uniform vec3 diffuse;
uniform float opacity;
uniform float dashSize;
uniform float totalSize;
varying float vLineDistance;
#include <common>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	if ( mod( vLineDistance, totalSize ) > dashSize ) {
		discard;
	}
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,NW=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinbase_vertex>
		#include <skinnormal_vertex>
		#include <defaultnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <fog_vertex>
}`,kW=`uniform vec3 diffuse;
uniform float opacity;
#ifndef FLAT_SHADED
	varying vec3 vNormal;
#endif
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
	#else
		reflectedLight.indirectDiffuse += vec3( 1.0 );
	#endif
	#include <aomap_fragment>
	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
	vec3 outgoingLight = reflectedLight.indirectDiffuse;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,UW=`#define LAMBERT
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,FW=`#define LAMBERT
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_lambert_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_lambert_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,BW=`#define MATCAP
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <displacementmap_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
	vViewPosition = - mvPosition.xyz;
}`,VW=`#define MATCAP
uniform vec3 diffuse;
uniform float opacity;
uniform sampler2D matcap;
varying vec3 vViewPosition;
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	vec3 viewDir = normalize( vViewPosition );
	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
	vec3 y = cross( viewDir, x );
	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
	#ifdef USE_MATCAP
		vec4 matcapColor = texture2D( matcap, uv );
	#else
		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
	#endif
	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,HW=`#define NORMAL
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	varying vec3 vViewPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	vViewPosition = - mvPosition.xyz;
#endif
}`,zW=`#define NORMAL
uniform float opacity;
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	varying vec3 vViewPosition;
#endif
#include <packing>
#include <uv_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );
	#ifdef OPAQUE
		gl_FragColor.a = 1.0;
	#endif
}`,WW=`#define PHONG
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,GW=`#define PHONG
uniform vec3 diffuse;
uniform vec3 emissive;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_phong_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_phong_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,jW=`#define STANDARD
varying vec3 vViewPosition;
#ifdef USE_TRANSMISSION
	varying vec3 vWorldPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
#ifdef USE_TRANSMISSION
	vWorldPosition = worldPosition.xyz;
#endif
}`,XW=`#define STANDARD
#ifdef PHYSICAL
	#define IOR
	#define USE_SPECULAR
#endif
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float roughness;
uniform float metalness;
uniform float opacity;
#ifdef IOR
	uniform float ior;
#endif
#ifdef USE_SPECULAR
	uniform float specularIntensity;
	uniform vec3 specularColor;
	#ifdef USE_SPECULAR_COLORMAP
		uniform sampler2D specularColorMap;
	#endif
	#ifdef USE_SPECULAR_INTENSITYMAP
		uniform sampler2D specularIntensityMap;
	#endif
#endif
#ifdef USE_CLEARCOAT
	uniform float clearcoat;
	uniform float clearcoatRoughness;
#endif
#ifdef USE_DISPERSION
	uniform float dispersion;
#endif
#ifdef USE_IRIDESCENCE
	uniform float iridescence;
	uniform float iridescenceIOR;
	uniform float iridescenceThicknessMinimum;
	uniform float iridescenceThicknessMaximum;
#endif
#ifdef USE_SHEEN
	uniform vec3 sheenColor;
	uniform float sheenRoughness;
	#ifdef USE_SHEEN_COLORMAP
		uniform sampler2D sheenColorMap;
	#endif
	#ifdef USE_SHEEN_ROUGHNESSMAP
		uniform sampler2D sheenRoughnessMap;
	#endif
#endif
#ifdef USE_ANISOTROPY
	uniform vec2 anisotropyVector;
	#ifdef USE_ANISOTROPYMAP
		uniform sampler2D anisotropyMap;
	#endif
#endif
varying vec3 vViewPosition;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <iridescence_fragment>
#include <cube_uv_reflection_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_physical_pars_fragment>
#include <fog_pars_fragment>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_physical_pars_fragment>
#include <transmission_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <clearcoat_pars_fragment>
#include <iridescence_pars_fragment>
#include <roughnessmap_pars_fragment>
#include <metalnessmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <roughnessmap_fragment>
	#include <metalnessmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <clearcoat_normal_fragment_begin>
	#include <clearcoat_normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_physical_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
	#include <transmission_fragment>
	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
	#ifdef USE_SHEEN
		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;
	#endif
	#ifdef USE_CLEARCOAT
		float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
	#endif
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,YW=`#define TOON
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,qW=`#define TOON
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <gradientmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_toon_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_toon_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,KW=`uniform float size;
uniform float scale;
#include <common>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
#ifdef USE_POINTS_UV
	varying vec2 vUv;
	uniform mat3 uvTransform;
#endif
void main() {
	#ifdef USE_POINTS_UV
		vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
	#endif
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	gl_PointSize = size;
	#ifdef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
	#endif
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <fog_vertex>
}`,QW=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <color_pars_fragment>
#include <map_particle_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_particle_fragment>
	#include <color_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,ZW=`#include <common>
#include <batching_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <shadowmap_pars_vertex>
void main() {
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,$W=`uniform vec3 color;
uniform float opacity;
#include <common>
#include <packing>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <logdepthbuf_pars_fragment>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
void main() {
	#include <logdepthbuf_fragment>
	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
}`,JW=`uniform float rotation;
uniform vec2 center;
#include <common>
#include <uv_pars_vertex>
#include <fog_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
	vec2 scale;
	scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
	scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
	#ifndef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) scale *= - mvPosition.z;
	#endif
	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
	vec2 rotatedPosition;
	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
	mvPosition.xy += rotatedPosition;
	gl_Position = projectionMatrix * mvPosition;
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,e6=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
}`,Dt={alphahash_fragment:Sz,alphahash_pars_fragment:wz,alphamap_fragment:Mz,alphamap_pars_fragment:Ez,alphatest_fragment:Tz,alphatest_pars_fragment:Az,aomap_fragment:Cz,aomap_pars_fragment:Pz,batching_pars_vertex:Rz,batching_vertex:Dz,begin_vertex:Iz,beginnormal_vertex:Lz,bsdfs:Oz,iridescence_fragment:Nz,bumpmap_pars_fragment:kz,clipping_planes_fragment:Uz,clipping_planes_pars_fragment:Fz,clipping_planes_pars_vertex:Bz,clipping_planes_vertex:Vz,color_fragment:Hz,color_pars_fragment:zz,color_pars_vertex:Wz,color_vertex:Gz,common:jz,cube_uv_reflection_fragment:Xz,defaultnormal_vertex:Yz,displacementmap_pars_vertex:qz,displacementmap_vertex:Kz,emissivemap_fragment:Qz,emissivemap_pars_fragment:Zz,colorspace_fragment:$z,colorspace_pars_fragment:Jz,envmap_fragment:e8,envmap_common_pars_fragment:t8,envmap_pars_fragment:n8,envmap_pars_vertex:i8,envmap_physical_pars_fragment:p8,envmap_vertex:r8,fog_vertex:a8,fog_pars_vertex:o8,fog_fragment:s8,fog_pars_fragment:l8,gradientmap_pars_fragment:c8,lightmap_pars_fragment:u8,lights_lambert_fragment:d8,lights_lambert_pars_fragment:f8,lights_pars_begin:h8,lights_toon_fragment:m8,lights_toon_pars_fragment:g8,lights_phong_fragment:v8,lights_phong_pars_fragment:y8,lights_physical_fragment:b8,lights_physical_pars_fragment:_8,lights_fragment_begin:x8,lights_fragment_maps:S8,lights_fragment_end:w8,logdepthbuf_fragment:M8,logdepthbuf_pars_fragment:E8,logdepthbuf_pars_vertex:T8,logdepthbuf_vertex:A8,map_fragment:C8,map_pars_fragment:P8,map_particle_fragment:R8,map_particle_pars_fragment:D8,metalnessmap_fragment:I8,metalnessmap_pars_fragment:L8,morphinstance_vertex:O8,morphcolor_vertex:N8,morphnormal_vertex:k8,morphtarget_pars_vertex:U8,morphtarget_vertex:F8,normal_fragment_begin:B8,normal_fragment_maps:V8,normal_pars_fragment:H8,normal_pars_vertex:z8,normal_vertex:W8,normalmap_pars_fragment:G8,clearcoat_normal_fragment_begin:j8,clearcoat_normal_fragment_maps:X8,clearcoat_pars_fragment:Y8,iridescence_pars_fragment:q8,opaque_fragment:K8,packing:Q8,premultiplied_alpha_fragment:Z8,project_vertex:$8,dithering_fragment:J8,dithering_pars_fragment:eW,roughnessmap_fragment:tW,roughnessmap_pars_fragment:nW,shadowmap_pars_fragment:iW,shadowmap_pars_vertex:rW,shadowmap_vertex:aW,shadowmask_pars_fragment:oW,skinbase_vertex:sW,skinning_pars_vertex:lW,skinning_vertex:cW,skinnormal_vertex:uW,specularmap_fragment:dW,specularmap_pars_fragment:fW,tonemapping_fragment:hW,tonemapping_pars_fragment:pW,transmission_fragment:mW,transmission_pars_fragment:gW,uv_pars_fragment:vW,uv_pars_vertex:yW,uv_vertex:bW,worldpos_vertex:_W,background_vert:xW,background_frag:SW,backgroundCube_vert:wW,backgroundCube_frag:MW,cube_vert:EW,cube_frag:TW,depth_vert:AW,depth_frag:CW,distanceRGBA_vert:PW,distanceRGBA_frag:RW,equirect_vert:DW,equirect_frag:IW,linedashed_vert:LW,linedashed_frag:OW,meshbasic_vert:NW,meshbasic_frag:kW,meshlambert_vert:UW,meshlambert_frag:FW,meshmatcap_vert:BW,meshmatcap_frag:VW,meshnormal_vert:HW,meshnormal_frag:zW,meshphong_vert:WW,meshphong_frag:GW,meshphysical_vert:jW,meshphysical_frag:XW,meshtoon_vert:YW,meshtoon_frag:qW,points_vert:KW,points_frag:QW,shadow_vert:ZW,shadow_frag:$W,sprite_vert:JW,sprite_frag:e6},We={common:{diffuse:{value:new Ot(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new It},alphaMap:{value:null},alphaMapTransform:{value:new It},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new It}},envmap:{envMap:{value:null},envMapRotation:{value:new It},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new It}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new It}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new It},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new It},normalScale:{value:new bt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new It},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new It}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new It}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new It}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ot(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ot(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new It},alphaTest:{value:0},uvTransform:{value:new It}},sprite:{diffuse:{value:new Ot(16777215)},opacity:{value:1},center:{value:new bt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new It},alphaMap:{value:null},alphaMapTransform:{value:new It},alphaTest:{value:0}}},Gr={basic:{uniforms:Mi([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.fog]),vertexShader:Dt.meshbasic_vert,fragmentShader:Dt.meshbasic_frag},lambert:{uniforms:Mi([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new Ot(0)}}]),vertexShader:Dt.meshlambert_vert,fragmentShader:Dt.meshlambert_frag},phong:{uniforms:Mi([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new Ot(0)},specular:{value:new Ot(1118481)},shininess:{value:30}}]),vertexShader:Dt.meshphong_vert,fragmentShader:Dt.meshphong_frag},standard:{uniforms:Mi([We.common,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.roughnessmap,We.metalnessmap,We.fog,We.lights,{emissive:{value:new Ot(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Dt.meshphysical_vert,fragmentShader:Dt.meshphysical_frag},toon:{uniforms:Mi([We.common,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.gradientmap,We.fog,We.lights,{emissive:{value:new Ot(0)}}]),vertexShader:Dt.meshtoon_vert,fragmentShader:Dt.meshtoon_frag},matcap:{uniforms:Mi([We.common,We.bumpmap,We.normalmap,We.displacementmap,We.fog,{matcap:{value:null}}]),vertexShader:Dt.meshmatcap_vert,fragmentShader:Dt.meshmatcap_frag},points:{uniforms:Mi([We.points,We.fog]),vertexShader:Dt.points_vert,fragmentShader:Dt.points_frag},dashed:{uniforms:Mi([We.common,We.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Dt.linedashed_vert,fragmentShader:Dt.linedashed_frag},depth:{uniforms:Mi([We.common,We.displacementmap]),vertexShader:Dt.depth_vert,fragmentShader:Dt.depth_frag},normal:{uniforms:Mi([We.common,We.bumpmap,We.normalmap,We.displacementmap,{opacity:{value:1}}]),vertexShader:Dt.meshnormal_vert,fragmentShader:Dt.meshnormal_frag},sprite:{uniforms:Mi([We.sprite,We.fog]),vertexShader:Dt.sprite_vert,fragmentShader:Dt.sprite_frag},background:{uniforms:{uvTransform:{value:new It},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Dt.background_vert,fragmentShader:Dt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new It}},vertexShader:Dt.backgroundCube_vert,fragmentShader:Dt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Dt.cube_vert,fragmentShader:Dt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Dt.equirect_vert,fragmentShader:Dt.equirect_frag},distanceRGBA:{uniforms:Mi([We.common,We.displacementmap,{referencePosition:{value:new te},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Dt.distanceRGBA_vert,fragmentShader:Dt.distanceRGBA_frag},shadow:{uniforms:Mi([We.lights,We.fog,{color:{value:new Ot(0)},opacity:{value:1}}]),vertexShader:Dt.shadow_vert,fragmentShader:Dt.shadow_frag}};Gr.physical={uniforms:Mi([Gr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new It},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new It},clearcoatNormalScale:{value:new bt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new It},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new It},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new It},sheen:{value:0},sheenColor:{value:new Ot(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new It},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new It},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new It},transmissionSamplerSize:{value:new bt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new It},attenuationDistance:{value:0},attenuationColor:{value:new Ot(0)},specularColor:{value:new Ot(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new It},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new It},anisotropyVector:{value:new bt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new It}}]),vertexShader:Dt.meshphysical_vert,fragmentShader:Dt.meshphysical_frag};const Vd={r:0,b:0,g:0},zo=new Rr,t6=new Rt;function n6(t,e,n,i,r,a,o){const s=new Ot(0);let l=a===!0?0:1,c,u,d=null,f=0,h=null;function p(b){let y=b.isScene===!0?b.background:null;return y&&y.isTexture&&(y=(b.backgroundBlurriness>0?n:e).get(y)),y}function m(b){let y=!1;const w=p(b);w===null?v(s,l):w&&w.isColor&&(v(w,1),y=!0);const L=t.xr.getEnvironmentBlendMode();L==="additive"?i.buffers.color.setClear(0,0,0,1,o):L==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(t.autoClear||y)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil))}function g(b,y){const w=p(y);w&&(w.isCubeTexture||w.mapping===Gh)?(u===void 0&&(u=new Tr(new Xu(1,1,1),new _o({name:"BackgroundCubeMaterial",uniforms:Vl(Gr.backgroundCube.uniforms),vertexShader:Gr.backgroundCube.vertexShader,fragmentShader:Gr.backgroundCube.fragmentShader,side:Hi,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(L,_,E){this.matrixWorld.copyPosition(E.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),zo.copy(y.backgroundRotation),zo.x*=-1,zo.y*=-1,zo.z*=-1,w.isCubeTexture&&w.isRenderTargetTexture===!1&&(zo.y*=-1,zo.z*=-1),u.material.uniforms.envMap.value=w,u.material.uniforms.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=y.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(t6.makeRotationFromEuler(zo)),u.material.toneMapped=en.getTransfer(w.colorSpace)!==fn,(d!==w||f!==w.version||h!==t.toneMapping)&&(u.material.needsUpdate=!0,d=w,f=w.version,h=t.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):w&&w.isTexture&&(c===void 0&&(c=new Tr(new Yh(2,2),new _o({name:"BackgroundMaterial",uniforms:Vl(Gr.background.uniforms),vertexShader:Gr.background.vertexShader,fragmentShader:Gr.background.fragmentShader,side:Ra,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=w,c.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,c.material.toneMapped=en.getTransfer(w.colorSpace)!==fn,w.matrixAutoUpdate===!0&&w.updateMatrix(),c.material.uniforms.uvTransform.value.copy(w.matrix),(d!==w||f!==w.version||h!==t.toneMapping)&&(c.material.needsUpdate=!0,d=w,f=w.version,h=t.toneMapping),c.layers.enableAll(),b.unshift(c,c.geometry,c.material,0,0,null))}function v(b,y){b.getRGB(Vd,EA(t)),i.buffers.color.setClear(Vd.r,Vd.g,Vd.b,y,o)}return{getClearColor:function(){return s},setClearColor:function(b,y=1){s.set(b),l=y,v(s,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,v(s,l)},render:m,addToRenderList:g}}function i6(t,e){const n=t.getParameter(t.MAX_VERTEX_ATTRIBS),i={},r=f(null);let a=r,o=!1;function s(M,D,O,V,X){let K=!1;const z=d(V,O,D);a!==z&&(a=z,c(a.object)),K=h(M,V,O,X),K&&p(M,V,O,X),X!==null&&e.update(X,t.ELEMENT_ARRAY_BUFFER),(K||o)&&(o=!1,w(M,D,O,V),X!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e.get(X).buffer))}function l(){return t.createVertexArray()}function c(M){return t.bindVertexArray(M)}function u(M){return t.deleteVertexArray(M)}function d(M,D,O){const V=O.wireframe===!0;let X=i[M.id];X===void 0&&(X={},i[M.id]=X);let K=X[D.id];K===void 0&&(K={},X[D.id]=K);let z=K[V];return z===void 0&&(z=f(l()),K[V]=z),z}function f(M){const D=[],O=[],V=[];for(let X=0;X<n;X++)D[X]=0,O[X]=0,V[X]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:D,enabledAttributes:O,attributeDivisors:V,object:M,attributes:{},index:null}}function h(M,D,O,V){const X=a.attributes,K=D.attributes;let z=0;const Q=O.getAttributes();for(const Y in Q)if(Q[Y].location>=0){const ne=X[Y];let Z=K[Y];if(Z===void 0&&(Y==="instanceMatrix"&&M.instanceMatrix&&(Z=M.instanceMatrix),Y==="instanceColor"&&M.instanceColor&&(Z=M.instanceColor)),ne===void 0||ne.attribute!==Z||Z&&ne.data!==Z.data)return!0;z++}return a.attributesNum!==z||a.index!==V}function p(M,D,O,V){const X={},K=D.attributes;let z=0;const Q=O.getAttributes();for(const Y in Q)if(Q[Y].location>=0){let ne=K[Y];ne===void 0&&(Y==="instanceMatrix"&&M.instanceMatrix&&(ne=M.instanceMatrix),Y==="instanceColor"&&M.instanceColor&&(ne=M.instanceColor));const Z={};Z.attribute=ne,ne&&ne.data&&(Z.data=ne.data),X[Y]=Z,z++}a.attributes=X,a.attributesNum=z,a.index=V}function m(){const M=a.newAttributes;for(let D=0,O=M.length;D<O;D++)M[D]=0}function g(M){v(M,0)}function v(M,D){const O=a.newAttributes,V=a.enabledAttributes,X=a.attributeDivisors;O[M]=1,V[M]===0&&(t.enableVertexAttribArray(M),V[M]=1),X[M]!==D&&(t.vertexAttribDivisor(M,D),X[M]=D)}function b(){const M=a.newAttributes,D=a.enabledAttributes;for(let O=0,V=D.length;O<V;O++)D[O]!==M[O]&&(t.disableVertexAttribArray(O),D[O]=0)}function y(M,D,O,V,X,K,z){z===!0?t.vertexAttribIPointer(M,D,O,X,K):t.vertexAttribPointer(M,D,O,V,X,K)}function w(M,D,O,V){m();const X=V.attributes,K=O.getAttributes(),z=D.defaultAttributeValues;for(const Q in K){const Y=K[Q];if(Y.location>=0){let he=X[Q];if(he===void 0&&(Q==="instanceMatrix"&&M.instanceMatrix&&(he=M.instanceMatrix),Q==="instanceColor"&&M.instanceColor&&(he=M.instanceColor)),he!==void 0){const ne=he.normalized,Z=he.itemSize,_e=e.get(he);if(_e===void 0)continue;const Te=_e.buffer,ee=_e.type,le=_e.bytesPerElement,re=ee===t.INT||ee===t.UNSIGNED_INT||he.gpuType===Zy;if(he.isInterleavedBufferAttribute){const W=he.data,ce=W.stride,me=he.offset;if(W.isInstancedInterleavedBuffer){for(let Ce=0;Ce<Y.locationSize;Ce++)v(Y.location+Ce,W.meshPerAttribute);M.isInstancedMesh!==!0&&V._maxInstanceCount===void 0&&(V._maxInstanceCount=W.meshPerAttribute*W.count)}else for(let Ce=0;Ce<Y.locationSize;Ce++)g(Y.location+Ce);t.bindBuffer(t.ARRAY_BUFFER,Te);for(let Ce=0;Ce<Y.locationSize;Ce++)y(Y.location+Ce,Z/Y.locationSize,ee,ne,ce*le,(me+Z/Y.locationSize*Ce)*le,re)}else{if(he.isInstancedBufferAttribute){for(let W=0;W<Y.locationSize;W++)v(Y.location+W,he.meshPerAttribute);M.isInstancedMesh!==!0&&V._maxInstanceCount===void 0&&(V._maxInstanceCount=he.meshPerAttribute*he.count)}else for(let W=0;W<Y.locationSize;W++)g(Y.location+W);t.bindBuffer(t.ARRAY_BUFFER,Te);for(let W=0;W<Y.locationSize;W++)y(Y.location+W,Z/Y.locationSize,ee,ne,Z*le,Z/Y.locationSize*W*le,re)}}else if(z!==void 0){const ne=z[Q];if(ne!==void 0)switch(ne.length){case 2:t.vertexAttrib2fv(Y.location,ne);break;case 3:t.vertexAttrib3fv(Y.location,ne);break;case 4:t.vertexAttrib4fv(Y.location,ne);break;default:t.vertexAttrib1fv(Y.location,ne)}}}}b()}function L(){R();for(const M in i){const D=i[M];for(const O in D){const V=D[O];for(const X in V)u(V[X].object),delete V[X];delete D[O]}delete i[M]}}function _(M){if(i[M.id]===void 0)return;const D=i[M.id];for(const O in D){const V=D[O];for(const X in V)u(V[X].object),delete V[X];delete D[O]}delete i[M.id]}function E(M){for(const D in i){const O=i[D];if(O[M.id]===void 0)continue;const V=O[M.id];for(const X in V)u(V[X].object),delete V[X];delete O[M.id]}}function R(){S(),o=!0,a!==r&&(a=r,c(a.object))}function S(){r.geometry=null,r.program=null,r.wireframe=!1}return{setup:s,reset:R,resetDefaultState:S,dispose:L,releaseStatesOfGeometry:_,releaseStatesOfProgram:E,initAttributes:m,enableAttribute:g,disableUnusedAttributes:b}}function r6(t,e,n){let i;function r(c){i=c}function a(c,u){t.drawArrays(i,c,u),n.update(u,i,1)}function o(c,u,d){d!==0&&(t.drawArraysInstanced(i,c,u,d),n.update(u,i,d))}function s(c,u,d){if(d===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,c,0,u,0,d);let h=0;for(let p=0;p<d;p++)h+=u[p];n.update(h,i,1)}function l(c,u,d,f){if(d===0)return;const h=e.get("WEBGL_multi_draw");if(h===null)for(let p=0;p<c.length;p++)o(c[p],u[p],f[p]);else{h.multiDrawArraysInstancedWEBGL(i,c,0,u,0,f,0,d);let p=0;for(let m=0;m<d;m++)p+=u[m];for(let m=0;m<f.length;m++)n.update(p,i,f[m])}}this.setMode=r,this.render=a,this.renderInstances=o,this.renderMultiDraw=s,this.renderMultiDrawInstances=l}function a6(t,e,n,i){let r;function a(){if(r!==void 0)return r;if(e.has("EXT_texture_filter_anisotropic")===!0){const _=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(_.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r}function o(_){return!(_!==ur&&i.convert(_)!==t.getParameter(t.IMPLEMENTATION_COLOR_READ_FORMAT))}function s(_){const E=_===ju&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(_!==Da&&i.convert(_)!==t.getParameter(t.IMPLEMENTATION_COLOR_READ_TYPE)&&_!==$r&&!E)}function l(_){if(_==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";_="mediump"}return _==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=n.precision!==void 0?n.precision:"highp";const u=l(c);u!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const d=n.logarithmicDepthBuffer===!0,f=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),p=t.getParameter(t.MAX_TEXTURE_SIZE),m=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),g=t.getParameter(t.MAX_VERTEX_ATTRIBS),v=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),b=t.getParameter(t.MAX_VARYING_VECTORS),y=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),w=h>0,L=t.getParameter(t.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:l,textureFormatReadable:o,textureTypeReadable:s,precision:c,logarithmicDepthBuffer:d,maxTextures:f,maxVertexTextures:h,maxTextureSize:p,maxCubemapSize:m,maxAttributes:g,maxVertexUniforms:v,maxVaryings:b,maxFragmentUniforms:y,vertexTextures:w,maxSamples:L}}function o6(t){const e=this;let n=null,i=0,r=!1,a=!1;const o=new ro,s=new It,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(d,f){const h=d.length!==0||f||i!==0||r;return r=f,i=d.length,h},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(d,f){n=u(d,f,0)},this.setState=function(d,f,h){const p=d.clippingPlanes,m=d.clipIntersection,g=d.clipShadows,v=t.get(d);if(!r||p===null||p.length===0||a&&!g)a?u(null):c();else{const b=a?0:i,y=b*4;let w=v.clippingState||null;l.value=w,w=u(p,f,y,h);for(let L=0;L!==y;++L)w[L]=n[L];v.clippingState=w,this.numIntersection=m?this.numPlanes:0,this.numPlanes+=b}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function u(d,f,h,p){const m=d!==null?d.length:0;let g=null;if(m!==0){if(g=l.value,p!==!0||g===null){const v=h+m*4,b=f.matrixWorldInverse;s.getNormalMatrix(b),(g===null||g.length<v)&&(g=new Float32Array(v));for(let y=0,w=h;y!==m;++y,w+=4)o.copy(d[y]).applyMatrix4(b,s),o.normal.toArray(g,w),g[w+3]=o.constant}l.value=g,l.needsUpdate=!0}return e.numPlanes=m,e.numIntersection=0,g}}function s6(t){let e=new WeakMap;function n(o,s){return s===Ng?o.mapping=Nl:s===kg&&(o.mapping=kl),o}function i(o){if(o&&o.isTexture){const s=o.mapping;if(s===Ng||s===kg)if(e.has(o)){const l=e.get(o).texture;return n(l,o.mapping)}else{const l=o.image;if(l&&l.height>0){const c=new yz(l.height);return c.fromEquirectangularTexture(t,o),e.set(o,c),o.addEventListener("dispose",r),n(c.texture,o.mapping)}else return null}}return o}function r(o){const s=o.target;s.removeEventListener("dispose",r);const l=e.get(s);l!==void 0&&(e.delete(s),l.dispose())}function a(){e=new WeakMap}return{get:i,dispose:a}}class s0 extends TA{constructor(e=-1,n=1,i=1,r=-1,a=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=i,this.bottom=r,this.near=a,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,i,r,a,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let a=i-e,o=i+e,s=r+n,l=r-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=c*this.view.offsetX,o=a+c*this.view.width,s-=u*this.view.offsetY,l=s-u*this.view.height}this.projectionMatrix.makeOrthographic(a,o,s,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const ul=4,Fx=[.125,.215,.35,.446,.526,.582],Ko=20,rm=new s0,Bx=new Ot;let am=null,om=0,sm=0,lm=!1;const jo=(1+Math.sqrt(5))/2,$s=1/jo,Vx=[new te(-jo,$s,0),new te(jo,$s,0),new te(-$s,0,jo),new te($s,0,jo),new te(0,jo,-$s),new te(0,jo,$s),new te(-1,1,-1),new te(1,1,-1),new te(-1,1,1),new te(1,1,1)];class Hx{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,i=.1,r=100){am=this._renderer.getRenderTarget(),om=this._renderer.getActiveCubeFace(),sm=this._renderer.getActiveMipmapLevel(),lm=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,i,r,a),n>0&&this._blur(a,0,0,n),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Gx(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Wx(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(am,om,sm),this._renderer.xr.enabled=lm,e.scissorTest=!1,Hd(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===Nl||e.mapping===kl?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),am=this._renderer.getRenderTarget(),om=this._renderer.getActiveCubeFace(),sm=this._renderer.getActiveMipmapLevel(),lm=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const i=n||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,i={magFilter:Ui,minFilter:Ui,generateMipmaps:!1,type:ju,format:ur,colorSpace:Co,depthBuffer:!1},r=zx(e,n,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=zx(e,n,i);const{_lodMax:a}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=l6(a)),this._blurMaterial=c6(a,e,n)}return r}_compileMaterial(e){const n=new Tr(this._lodPlanes[0],e);this._renderer.compile(n,rm)}_sceneToCubeUV(e,n,i,r){const s=new pi(90,1,n,i),l=[1,-1,1,1,1,1],c=[1,1,1,-1,-1,-1],u=this._renderer,d=u.autoClear,f=u.toneMapping;u.getClearColor(Bx),u.toneMapping=yo,u.autoClear=!1;const h=new $f({name:"PMREM.Background",side:Hi,depthWrite:!1,depthTest:!1}),p=new Tr(new Xu,h);let m=!1;const g=e.background;g?g.isColor&&(h.color.copy(g),e.background=null,m=!0):(h.color.copy(Bx),m=!0);for(let v=0;v<6;v++){const b=v%3;b===0?(s.up.set(0,l[v],0),s.lookAt(c[v],0,0)):b===1?(s.up.set(0,0,l[v]),s.lookAt(0,c[v],0)):(s.up.set(0,l[v],0),s.lookAt(0,0,c[v]));const y=this._cubeSize;Hd(r,b*y,v>2?y:0,y,y),u.setRenderTarget(r),m&&u.render(p,s),u.render(e,s)}p.geometry.dispose(),p.material.dispose(),u.toneMapping=f,u.autoClear=d,e.background=g}_textureToCubeUV(e,n){const i=this._renderer,r=e.mapping===Nl||e.mapping===kl;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Gx()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Wx());const a=r?this._cubemapMaterial:this._equirectMaterial,o=new Tr(this._lodPlanes[0],a),s=a.uniforms;s.envMap.value=e;const l=this._cubeSize;Hd(n,0,0,3*l,2*l),i.setRenderTarget(n),i.render(o,rm)}_applyPMREM(e){const n=this._renderer,i=n.autoClear;n.autoClear=!1;const r=this._lodPlanes.length;for(let a=1;a<r;a++){const o=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),s=Vx[(r-a-1)%Vx.length];this._blur(e,a-1,a,o,s)}n.autoClear=i}_blur(e,n,i,r,a){const o=this._pingPongRenderTarget;this._halfBlur(e,o,n,i,r,"latitudinal",a),this._halfBlur(o,e,i,i,r,"longitudinal",a)}_halfBlur(e,n,i,r,a,o,s){const l=this._renderer,c=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const u=3,d=new Tr(this._lodPlanes[r],c),f=c.uniforms,h=this._sizeLods[i]-1,p=isFinite(a)?Math.PI/(2*h):2*Math.PI/(2*Ko-1),m=a/p,g=isFinite(a)?1+Math.floor(u*m):Ko;g>Ko&&console.warn(`sigmaRadians, ${a}, is too large and will clip, as it requested ${g} samples when the maximum is set to ${Ko}`);const v=[];let b=0;for(let E=0;E<Ko;++E){const R=E/m,S=Math.exp(-R*R/2);v.push(S),E===0?b+=S:E<g&&(b+=2*S)}for(let E=0;E<v.length;E++)v[E]=v[E]/b;f.envMap.value=e.texture,f.samples.value=g,f.weights.value=v,f.latitudinal.value=o==="latitudinal",s&&(f.poleAxis.value=s);const{_lodMax:y}=this;f.dTheta.value=p,f.mipInt.value=y-i;const w=this._sizeLods[r],L=3*w*(r>y-ul?r-y+ul:0),_=4*(this._cubeSize-w);Hd(n,L,_,3*w,2*w),l.setRenderTarget(n),l.render(d,rm)}}function l6(t){const e=[],n=[],i=[];let r=t;const a=t-ul+1+Fx.length;for(let o=0;o<a;o++){const s=Math.pow(2,r);n.push(s);let l=1/s;o>t-ul?l=Fx[o-t+ul-1]:o===0&&(l=0),i.push(l);const c=1/(s-2),u=-c,d=1+c,f=[u,u,d,u,d,d,u,u,d,d,u,d],h=6,p=6,m=3,g=2,v=1,b=new Float32Array(m*p*h),y=new Float32Array(g*p*h),w=new Float32Array(v*p*h);for(let _=0;_<h;_++){const E=_%3*2/3-1,R=_>2?0:-1,S=[E,R,0,E+2/3,R,0,E+2/3,R+1,0,E,R,0,E+2/3,R+1,0,E,R+1,0];b.set(S,m*p*_),y.set(f,g*p*_);const M=[_,_,_,_,_,_];w.set(M,v*p*_)}const L=new Ba;L.setAttribute("position",new ea(b,m)),L.setAttribute("uv",new ea(y,g)),L.setAttribute("faceIndex",new ea(w,v)),e.push(L),r>ul&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}function zx(t,e,n){const i=new hs(t,e,n);return i.texture.mapping=Gh,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Hd(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function c6(t,e,n){const i=new Float32Array(Ko),r=new te(0,1,0);return new _o({name:"SphericalGaussianBlur",defines:{n:Ko,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:l0(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;
			uniform int samples;
			uniform float weights[ n ];
			uniform bool latitudinal;
			uniform float dTheta;
			uniform float mipInt;
			uniform vec3 poleAxis;

			#define ENVMAP_TYPE_CUBE_UV
			#include <cube_uv_reflection_fragment>

			vec3 getSample( float theta, vec3 axis ) {

				float cosTheta = cos( theta );
				// Rodrigues' axis-angle rotation
				vec3 sampleDirection = vOutputDirection * cosTheta
					+ cross( axis, vOutputDirection ) * sin( theta )
					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );

				return bilinearCubeUV( envMap, sampleDirection, mipInt );

			}

			void main() {

				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );

				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {

					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );

				}

				axis = normalize( axis );

				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );

				for ( int i = 1; i < n; i++ ) {

					if ( i >= samples ) {

						break;

					}

					float theta = dTheta * float( i );
					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );

				}

			}
		`,blending:vo,depthTest:!1,depthWrite:!1})}function Wx(){return new _o({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:l0(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;

			#include <common>

			void main() {

				vec3 outputDirection = normalize( vOutputDirection );
				vec2 uv = equirectUv( outputDirection );

				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );

			}
		`,blending:vo,depthTest:!1,depthWrite:!1})}function Gx(){return new _o({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:l0(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			uniform float flipEnvMap;

			varying vec3 vOutputDirection;

			uniform samplerCube envMap;

			void main() {

				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );

			}
		`,blending:vo,depthTest:!1,depthWrite:!1})}function l0(){return`

		precision mediump float;
		precision mediump int;

		attribute float faceIndex;

		varying vec3 vOutputDirection;

		// RH coordinate system; PMREM face-indexing convention
		vec3 getDirection( vec2 uv, float face ) {

			uv = 2.0 * uv - 1.0;

			vec3 direction = vec3( uv, 1.0 );

			if ( face == 0.0 ) {

				direction = direction.zyx; // ( 1, v, u ) pos x

			} else if ( face == 1.0 ) {

				direction = direction.xzy;
				direction.xz *= -1.0; // ( -u, 1, -v ) pos y

			} else if ( face == 2.0 ) {

				direction.x *= -1.0; // ( -u, v, 1 ) pos z

			} else if ( face == 3.0 ) {

				direction = direction.zyx;
				direction.xz *= -1.0; // ( -1, v, -u ) neg x

			} else if ( face == 4.0 ) {

				direction = direction.xzy;
				direction.xy *= -1.0; // ( -u, -1, v ) neg y

			} else if ( face == 5.0 ) {

				direction.z *= -1.0; // ( u, v, -1 ) neg z

			}

			return direction;

		}

		void main() {

			vOutputDirection = getDirection( uv, faceIndex );
			gl_Position = vec4( position, 1.0 );

		}
	`}function u6(t){let e=new WeakMap,n=null;function i(s){if(s&&s.isTexture){const l=s.mapping,c=l===Ng||l===kg,u=l===Nl||l===kl;if(c||u){let d=e.get(s);const f=d!==void 0?d.texture.pmremVersion:0;if(s.isRenderTargetTexture&&s.pmremVersion!==f)return n===null&&(n=new Hx(t)),d=c?n.fromEquirectangular(s,d):n.fromCubemap(s,d),d.texture.pmremVersion=s.pmremVersion,e.set(s,d),d.texture;if(d!==void 0)return d.texture;{const h=s.image;return c&&h&&h.height>0||u&&h&&r(h)?(n===null&&(n=new Hx(t)),d=c?n.fromEquirectangular(s):n.fromCubemap(s),d.texture.pmremVersion=s.pmremVersion,e.set(s,d),s.addEventListener("dispose",a),d.texture):null}}}return s}function r(s){let l=0;const c=6;for(let u=0;u<c;u++)s[u]!==void 0&&l++;return l===c}function a(s){const l=s.target;l.removeEventListener("dispose",a);const c=e.get(l);c!==void 0&&(e.delete(l),c.dispose())}function o(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:i,dispose:o}}function d6(t){const e={};function n(i){if(e[i]!==void 0)return e[i];let r;switch(i){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(i)}return e[i]=r,r}return{has:function(i){return n(i)!==null},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(i){const r=n(i);return r===null&&$c("THREE.WebGLRenderer: "+i+" extension not supported."),r}}}function f6(t,e,n,i){const r={},a=new WeakMap;function o(d){const f=d.target;f.index!==null&&e.remove(f.index);for(const p in f.attributes)e.remove(f.attributes[p]);for(const p in f.morphAttributes){const m=f.morphAttributes[p];for(let g=0,v=m.length;g<v;g++)e.remove(m[g])}f.removeEventListener("dispose",o),delete r[f.id];const h=a.get(f);h&&(e.remove(h),a.delete(f)),i.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,n.memory.geometries--}function s(d,f){return r[f.id]===!0||(f.addEventListener("dispose",o),r[f.id]=!0,n.memory.geometries++),f}function l(d){const f=d.attributes;for(const p in f)e.update(f[p],t.ARRAY_BUFFER);const h=d.morphAttributes;for(const p in h){const m=h[p];for(let g=0,v=m.length;g<v;g++)e.update(m[g],t.ARRAY_BUFFER)}}function c(d){const f=[],h=d.index,p=d.attributes.position;let m=0;if(h!==null){const b=h.array;m=h.version;for(let y=0,w=b.length;y<w;y+=3){const L=b[y+0],_=b[y+1],E=b[y+2];f.push(L,_,_,E,E,L)}}else if(p!==void 0){const b=p.array;m=p.version;for(let y=0,w=b.length/3-1;y<w;y+=3){const L=y+0,_=y+1,E=y+2;f.push(L,_,_,E,E,L)}}else return;const g=new(yA(f)?MA:wA)(f,1);g.version=m;const v=a.get(d);v&&e.remove(v),a.set(d,g)}function u(d){const f=a.get(d);if(f){const h=d.index;h!==null&&f.version<h.version&&c(d)}else c(d);return a.get(d)}return{get:s,update:l,getWireframeAttribute:u}}function h6(t,e,n){let i;function r(f){i=f}let a,o;function s(f){a=f.type,o=f.bytesPerElement}function l(f,h){t.drawElements(i,h,a,f*o),n.update(h,i,1)}function c(f,h,p){p!==0&&(t.drawElementsInstanced(i,h,a,f*o,p),n.update(h,i,p))}function u(f,h,p){if(p===0)return;e.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,h,0,a,f,0,p);let g=0;for(let v=0;v<p;v++)g+=h[v];n.update(g,i,1)}function d(f,h,p,m){if(p===0)return;const g=e.get("WEBGL_multi_draw");if(g===null)for(let v=0;v<f.length;v++)c(f[v]/o,h[v],m[v]);else{g.multiDrawElementsInstancedWEBGL(i,h,0,a,f,0,m,0,p);let v=0;for(let b=0;b<p;b++)v+=h[b];for(let b=0;b<m.length;b++)n.update(v,i,m[b])}}this.setMode=r,this.setIndex=s,this.render=l,this.renderInstances=c,this.renderMultiDraw=u,this.renderMultiDrawInstances=d}function p6(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(a,o,s){switch(n.calls++,o){case t.TRIANGLES:n.triangles+=s*(a/3);break;case t.LINES:n.lines+=s*(a/2);break;case t.LINE_STRIP:n.lines+=s*(a-1);break;case t.LINE_LOOP:n.lines+=s*a;break;case t.POINTS:n.points+=s*a;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function r(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:r,update:i}}function m6(t,e,n){const i=new WeakMap,r=new on;function a(o,s,l){const c=o.morphTargetInfluences,u=s.morphAttributes.position||s.morphAttributes.normal||s.morphAttributes.color,d=u!==void 0?u.length:0;let f=i.get(s);if(f===void 0||f.count!==d){let M=function(){R.dispose(),i.delete(s),s.removeEventListener("dispose",M)};var h=M;f!==void 0&&f.texture.dispose();const p=s.morphAttributes.position!==void 0,m=s.morphAttributes.normal!==void 0,g=s.morphAttributes.color!==void 0,v=s.morphAttributes.position||[],b=s.morphAttributes.normal||[],y=s.morphAttributes.color||[];let w=0;p===!0&&(w=1),m===!0&&(w=2),g===!0&&(w=3);let L=s.attributes.position.count*w,_=1;L>e.maxTextureSize&&(_=Math.ceil(L/e.maxTextureSize),L=e.maxTextureSize);const E=new Float32Array(L*_*4*d),R=new _A(E,L,_,d);R.type=$r,R.needsUpdate=!0;const S=w*4;for(let D=0;D<d;D++){const O=v[D],V=b[D],X=y[D],K=L*_*4*D;for(let z=0;z<O.count;z++){const Q=z*S;p===!0&&(r.fromBufferAttribute(O,z),E[K+Q+0]=r.x,E[K+Q+1]=r.y,E[K+Q+2]=r.z,E[K+Q+3]=0),m===!0&&(r.fromBufferAttribute(V,z),E[K+Q+4]=r.x,E[K+Q+5]=r.y,E[K+Q+6]=r.z,E[K+Q+7]=0),g===!0&&(r.fromBufferAttribute(X,z),E[K+Q+8]=r.x,E[K+Q+9]=r.y,E[K+Q+10]=r.z,E[K+Q+11]=X.itemSize===4?r.w:1)}}f={count:d,texture:R,size:new bt(L,_)},i.set(s,f),s.addEventListener("dispose",M)}if(o.isInstancedMesh===!0&&o.morphTexture!==null)l.getUniforms().setValue(t,"morphTexture",o.morphTexture,n);else{let p=0;for(let g=0;g<c.length;g++)p+=c[g];const m=s.morphTargetsRelative?1:1-p;l.getUniforms().setValue(t,"morphTargetBaseInfluence",m),l.getUniforms().setValue(t,"morphTargetInfluences",c)}l.getUniforms().setValue(t,"morphTargetsTexture",f.texture,n),l.getUniforms().setValue(t,"morphTargetsTextureSize",f.size)}return{update:a}}function g6(t,e,n,i){let r=new WeakMap;function a(l){const c=i.render.frame,u=l.geometry,d=e.get(l,u);if(r.get(d)!==c&&(e.update(d),r.set(d,c)),l.isInstancedMesh&&(l.hasEventListener("dispose",s)===!1&&l.addEventListener("dispose",s),r.get(l)!==c&&(n.update(l.instanceMatrix,t.ARRAY_BUFFER),l.instanceColor!==null&&n.update(l.instanceColor,t.ARRAY_BUFFER),r.set(l,c))),l.isSkinnedMesh){const f=l.skeleton;r.get(f)!==c&&(f.update(),r.set(f,c))}return d}function o(){r=new WeakMap}function s(l){const c=l.target;c.removeEventListener("dispose",s),n.remove(c.instanceMatrix),c.instanceColor!==null&&n.remove(c.instanceColor)}return{update:a,dispose:o}}class PA extends bi{constructor(e,n,i,r,a,o,s,l,c,u=xl){if(u!==xl&&u!==Fl)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&u===xl&&(i=fs),i===void 0&&u===Fl&&(i=Ul),super(null,r,a,o,s,l,u,i,c),this.isDepthTexture=!0,this.image={width:e,height:n},this.magFilter=s!==void 0?s:Fi,this.minFilter=l!==void 0?l:Fi,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}const RA=new bi,jx=new PA(1,1),DA=new _A,IA=new nz,LA=new AA,Xx=[],Yx=[],qx=new Float32Array(16),Kx=new Float32Array(9),Qx=new Float32Array(4);function ac(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let a=Xx[r];if(a===void 0&&(a=new Float32Array(r),Xx[r]=a),e!==0){i.toArray(a,0);for(let o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function qn(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function Kn(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function qh(t,e){let n=Yx[e];n===void 0&&(n=new Int32Array(e),Yx[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function v6(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function y6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(qn(n,e))return;t.uniform2fv(this.addr,e),Kn(n,e)}}function b6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(qn(n,e))return;t.uniform3fv(this.addr,e),Kn(n,e)}}function _6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(qn(n,e))return;t.uniform4fv(this.addr,e),Kn(n,e)}}function x6(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(qn(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),Kn(n,e)}else{if(qn(n,i))return;Qx.set(i),t.uniformMatrix2fv(this.addr,!1,Qx),Kn(n,i)}}function S6(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(qn(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),Kn(n,e)}else{if(qn(n,i))return;Kx.set(i),t.uniformMatrix3fv(this.addr,!1,Kx),Kn(n,i)}}function w6(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(qn(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),Kn(n,e)}else{if(qn(n,i))return;qx.set(i),t.uniformMatrix4fv(this.addr,!1,qx),Kn(n,i)}}function M6(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function E6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(qn(n,e))return;t.uniform2iv(this.addr,e),Kn(n,e)}}function T6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(qn(n,e))return;t.uniform3iv(this.addr,e),Kn(n,e)}}function A6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(qn(n,e))return;t.uniform4iv(this.addr,e),Kn(n,e)}}function C6(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function P6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(qn(n,e))return;t.uniform2uiv(this.addr,e),Kn(n,e)}}function R6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(qn(n,e))return;t.uniform3uiv(this.addr,e),Kn(n,e)}}function D6(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(qn(n,e))return;t.uniform4uiv(this.addr,e),Kn(n,e)}}function I6(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r);let a;this.type===t.SAMPLER_2D_SHADOW?(jx.compareFunction=vA,a=jx):a=RA,n.setTexture2D(e||a,r)}function L6(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||IA,r)}function O6(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||LA,r)}function N6(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||DA,r)}function k6(t){switch(t){case 5126:return v6;case 35664:return y6;case 35665:return b6;case 35666:return _6;case 35674:return x6;case 35675:return S6;case 35676:return w6;case 5124:case 35670:return M6;case 35667:case 35671:return E6;case 35668:case 35672:return T6;case 35669:case 35673:return A6;case 5125:return C6;case 36294:return P6;case 36295:return R6;case 36296:return D6;case 35678:case 36198:case 36298:case 36306:case 35682:return I6;case 35679:case 36299:case 36307:return L6;case 35680:case 36300:case 36308:case 36293:return O6;case 36289:case 36303:case 36311:case 36292:return N6}}function U6(t,e){t.uniform1fv(this.addr,e)}function F6(t,e){const n=ac(e,this.size,2);t.uniform2fv(this.addr,n)}function B6(t,e){const n=ac(e,this.size,3);t.uniform3fv(this.addr,n)}function V6(t,e){const n=ac(e,this.size,4);t.uniform4fv(this.addr,n)}function H6(t,e){const n=ac(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function z6(t,e){const n=ac(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function W6(t,e){const n=ac(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function G6(t,e){t.uniform1iv(this.addr,e)}function j6(t,e){t.uniform2iv(this.addr,e)}function X6(t,e){t.uniform3iv(this.addr,e)}function Y6(t,e){t.uniform4iv(this.addr,e)}function q6(t,e){t.uniform1uiv(this.addr,e)}function K6(t,e){t.uniform2uiv(this.addr,e)}function Q6(t,e){t.uniform3uiv(this.addr,e)}function Z6(t,e){t.uniform4uiv(this.addr,e)}function $6(t,e,n){const i=this.cache,r=e.length,a=qh(n,r);qn(i,a)||(t.uniform1iv(this.addr,a),Kn(i,a));for(let o=0;o!==r;++o)n.setTexture2D(e[o]||RA,a[o])}function J6(t,e,n){const i=this.cache,r=e.length,a=qh(n,r);qn(i,a)||(t.uniform1iv(this.addr,a),Kn(i,a));for(let o=0;o!==r;++o)n.setTexture3D(e[o]||IA,a[o])}function e9(t,e,n){const i=this.cache,r=e.length,a=qh(n,r);qn(i,a)||(t.uniform1iv(this.addr,a),Kn(i,a));for(let o=0;o!==r;++o)n.setTextureCube(e[o]||LA,a[o])}function t9(t,e,n){const i=this.cache,r=e.length,a=qh(n,r);qn(i,a)||(t.uniform1iv(this.addr,a),Kn(i,a));for(let o=0;o!==r;++o)n.setTexture2DArray(e[o]||DA,a[o])}function n9(t){switch(t){case 5126:return U6;case 35664:return F6;case 35665:return B6;case 35666:return V6;case 35674:return H6;case 35675:return z6;case 35676:return W6;case 5124:case 35670:return G6;case 35667:case 35671:return j6;case 35668:case 35672:return X6;case 35669:case 35673:return Y6;case 5125:return q6;case 36294:return K6;case 36295:return Q6;case 36296:return Z6;case 35678:case 36198:case 36298:case 36306:case 35682:return $6;case 35679:case 36299:case 36307:return J6;case 35680:case 36300:case 36308:case 36293:return e9;case 36289:case 36303:case 36311:case 36292:return t9}}class i9{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.setValue=k6(n.type)}}class r9{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.size=n.size,this.setValue=n9(n.type)}}class a9{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,i){const r=this.seq;for(let a=0,o=r.length;a!==o;++a){const s=r[a];s.setValue(e,n[s.id],i)}}}const cm=/(\w+)(\])?(\[|\.)?/g;function Zx(t,e){t.seq.push(e),t.map[e.id]=e}function o9(t,e,n){const i=t.name,r=i.length;for(cm.lastIndex=0;;){const a=cm.exec(i),o=cm.lastIndex;let s=a[1];const l=a[2]==="]",c=a[3];if(l&&(s=s|0),c===void 0||c==="["&&o+2===r){Zx(n,c===void 0?new i9(s,t,e):new r9(s,t,e));break}else{let d=n.map[s];d===void 0&&(d=new a9(s),Zx(n,d)),n=d}}}class mf{constructor(e,n){this.seq=[],this.map={};const i=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let r=0;r<i;++r){const a=e.getActiveUniform(n,r),o=e.getUniformLocation(n,a.name);o9(a,o,this)}}setValue(e,n,i,r){const a=this.map[n];a!==void 0&&a.setValue(e,i,r)}setOptional(e,n,i){const r=n[i];r!==void 0&&this.setValue(e,i,r)}static upload(e,n,i,r){for(let a=0,o=n.length;a!==o;++a){const s=n[a],l=i[s.id];l.needsUpdate!==!1&&s.setValue(e,l.value,r)}}static seqWithValue(e,n){const i=[];for(let r=0,a=e.length;r!==a;++r){const o=e[r];o.id in n&&i.push(o)}return i}}function $x(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}const s9=37297;let l9=0;function c9(t,e){const n=t.split(`
`),i=[],r=Math.max(e-6,0),a=Math.min(e+6,n.length);for(let o=r;o<a;o++){const s=o+1;i.push(`${s===e?">":" "} ${s}: ${n[o]}`)}return i.join(`
`)}function u9(t){const e=en.getPrimaries(en.workingColorSpace),n=en.getPrimaries(t);let i;switch(e===n?i="":e===Qf&&n===Kf?i="LinearDisplayP3ToLinearSRGB":e===Kf&&n===Qf&&(i="LinearSRGBToLinearDisplayP3"),t){case Co:case jh:return[i,"LinearTransferOETF"];case Qi:case r0:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[i,"LinearTransferOETF"]}}function Jx(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),r=t.getShaderInfoLog(e).trim();if(i&&r==="")return"";const a=/ERROR: 0:(\d+)/.exec(r);if(a){const o=parseInt(a[1]);return n.toUpperCase()+`

`+r+`

`+c9(t.getShaderSource(e),o)}else return r}function d9(t,e){const n=u9(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function f9(t,e){let n;switch(e){case hH:n="Linear";break;case pH:n="Reinhard";break;case mH:n="OptimizedCineon";break;case gH:n="ACESFilmic";break;case yH:n="AgX";break;case bH:n="Neutral";break;case vH:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}const zd=new te;function h9(){en.getLuminanceCoefficients(zd);const t=zd.x.toFixed(4),e=zd.y.toFixed(4),n=zd.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",`	const vec3 weights = vec3( ${t}, ${e}, ${n} );`,"	return dot( weights, rgb );","}"].join(`
`)}function p9(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",t.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Fc).join(`
`)}function m9(t){const e=[];for(const n in t){const i=t[n];i!==!1&&e.push("#define "+n+" "+i)}return e.join(`
`)}function g9(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const a=t.getActiveAttrib(e,r),o=a.name;let s=1;a.type===t.FLOAT_MAT2&&(s=2),a.type===t.FLOAT_MAT3&&(s=3),a.type===t.FLOAT_MAT4&&(s=4),n[o]={type:a.type,location:t.getAttribLocation(e,o),locationSize:s}}return n}function Fc(t){return t!==""}function eS(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function tS(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const v9=/^[ \t]*#include +<([\w\d./]+)>/gm;function dv(t){return t.replace(v9,b9)}const y9=new Map;function b9(t,e){let n=Dt[e];if(n===void 0){const i=y9.get(e);if(i!==void 0)n=Dt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return dv(n)}const _9=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function nS(t){return t.replace(_9,x9)}function x9(t,e,n,i){let r="";for(let a=parseInt(e);a<parseInt(n);a++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return r}function iS(t){let e=`precision ${t.precision} float;
	precision ${t.precision} int;
	precision ${t.precision} sampler2D;
	precision ${t.precision} samplerCube;
	precision ${t.precision} sampler3D;
	precision ${t.precision} sampler2DArray;
	precision ${t.precision} sampler2DShadow;
	precision ${t.precision} samplerCubeShadow;
	precision ${t.precision} sampler2DArrayShadow;
	precision ${t.precision} isampler2D;
	precision ${t.precision} isampler3D;
	precision ${t.precision} isamplerCube;
	precision ${t.precision} isampler2DArray;
	precision ${t.precision} usampler2D;
	precision ${t.precision} usampler3D;
	precision ${t.precision} usamplerCube;
	precision ${t.precision} usampler2DArray;
	`;return t.precision==="highp"?e+=`
#define HIGH_PRECISION`:t.precision==="mediump"?e+=`
#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=`
#define LOW_PRECISION`),e}function S9(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===aA?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===B5?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===va&&(e="SHADOWMAP_TYPE_VSM"),e}function w9(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case Nl:case kl:e="ENVMAP_TYPE_CUBE";break;case Gh:e="ENVMAP_TYPE_CUBE_UV";break}return e}function M9(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case kl:e="ENVMAP_MODE_REFRACTION";break}return e}function E9(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case Wh:e="ENVMAP_BLENDING_MULTIPLY";break;case dH:e="ENVMAP_BLENDING_MIX";break;case fH:e="ENVMAP_BLENDING_ADD";break}return e}function T9(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),7*16)),texelHeight:i,maxMip:n}}function A9(t,e,n,i){const r=t.getContext(),a=n.defines;let o=n.vertexShader,s=n.fragmentShader;const l=S9(n),c=w9(n),u=M9(n),d=E9(n),f=T9(n),h=p9(n),p=m9(a),m=r.createProgram();let g,v,b=n.glslVersion?"#version "+n.glslVersion+`
`:"";n.isRawShaderMaterial?(g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p].filter(Fc).join(`
`),g.length>0&&(g+=`
`),v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p].filter(Fc).join(`
`),v.length>0&&(v+=`
`)):(g=[iS(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","	uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","	attribute vec2 uv1;","#endif","#ifdef USE_UV2","	attribute vec2 uv2;","#endif","#ifdef USE_UV3","	attribute vec2 uv3;","#endif","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
`].filter(Fc).join(`
`),v=[iS(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==yo?"#define TONE_MAPPING":"",n.toneMapping!==yo?Dt.tonemapping_pars_fragment:"",n.toneMapping!==yo?f9("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Dt.colorspace_pars_fragment,d9("linearToOutputTexel",n.outputColorSpace),h9(),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
`].filter(Fc).join(`
`)),o=dv(o),o=eS(o,n),o=tS(o,n),s=dv(s),s=eS(s,n),s=tS(s,n),o=nS(o),s=nS(s),n.isRawShaderMaterial!==!0&&(b=`#version 300 es
`,g=[h,"#define attribute in","#define varying out","#define texture2D texture"].join(`
`)+`
`+g,v=["#define varying in",n.glslVersion===vx?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===vx?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
`)+`
`+v);const y=b+g+o,w=b+v+s,L=$x(r,r.VERTEX_SHADER,y),_=$x(r,r.FRAGMENT_SHADER,w);r.attachShader(m,L),r.attachShader(m,_),n.index0AttributeName!==void 0?r.bindAttribLocation(m,0,n.index0AttributeName):n.morphTargets===!0&&r.bindAttribLocation(m,0,"position"),r.linkProgram(m);function E(D){if(t.debug.checkShaderErrors){const O=r.getProgramInfoLog(m).trim(),V=r.getShaderInfoLog(L).trim(),X=r.getShaderInfoLog(_).trim();let K=!0,z=!0;if(r.getProgramParameter(m,r.LINK_STATUS)===!1)if(K=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(r,m,L,_);else{const Q=Jx(r,L,"vertex"),Y=Jx(r,_,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(m,r.VALIDATE_STATUS)+`

Material Name: `+D.name+`
Material Type: `+D.type+`

Program Info Log: `+O+`
`+Q+`
`+Y)}else O!==""?console.warn("THREE.WebGLProgram: Program Info Log:",O):(V===""||X==="")&&(z=!1);z&&(D.diagnostics={runnable:K,programLog:O,vertexShader:{log:V,prefix:g},fragmentShader:{log:X,prefix:v}})}r.deleteShader(L),r.deleteShader(_),R=new mf(r,m),S=g9(r,m)}let R;this.getUniforms=function(){return R===void 0&&E(this),R};let S;this.getAttributes=function(){return S===void 0&&E(this),S};let M=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=r.getProgramParameter(m,s9)),M},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(m),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=l9++,this.cacheKey=e,this.usedTimes=1,this.program=m,this.vertexShader=L,this.fragmentShader=_,this}let C9=0;class P9{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,i=e.fragmentShader,r=this._getShaderStage(n),a=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(r)===!1&&(o.add(r),r.usedTimes++),o.has(a)===!1&&(o.add(a),a.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const i of n)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let i=n.get(e);return i===void 0&&(i=new Set,n.set(e,i)),i}_getShaderStage(e){const n=this.shaderCache;let i=n.get(e);return i===void 0&&(i=new R9(e),n.set(e,i)),i}}class R9{constructor(e){this.id=C9++,this.code=e,this.usedTimes=0}}function D9(t,e,n,i,r,a,o){const s=new xA,l=new P9,c=new Set,u=[],d=r.logarithmicDepthBuffer,f=r.vertexTextures;let h=r.precision;const p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function m(S){return c.add(S),S===0?"uv":`uv${S}`}function g(S,M,D,O,V){const X=O.fog,K=V.geometry,z=S.isMeshStandardMaterial?O.environment:null,Q=(S.isMeshStandardMaterial?n:e).get(S.envMap||z),Y=Q&&Q.mapping===Gh?Q.image.height:null,he=p[S.type];S.precision!==null&&(h=r.getMaxPrecision(S.precision),h!==S.precision&&console.warn("THREE.WebGLProgram.getParameters:",S.precision,"not supported, using",h,"instead."));const ne=K.morphAttributes.position||K.morphAttributes.normal||K.morphAttributes.color,Z=ne!==void 0?ne.length:0;let _e=0;K.morphAttributes.position!==void 0&&(_e=1),K.morphAttributes.normal!==void 0&&(_e=2),K.morphAttributes.color!==void 0&&(_e=3);let Te,ee,le,re;if(he){const zt=Gr[he];Te=zt.vertexShader,ee=zt.fragmentShader}else Te=S.vertexShader,ee=S.fragmentShader,l.update(S),le=l.getVertexShaderID(S),re=l.getFragmentShaderID(S);const W=t.getRenderTarget(),ce=V.isInstancedMesh===!0,me=V.isBatchedMesh===!0,Ce=!!S.map,$e=!!S.matcap,j=!!Q,H=!!S.aoMap,B=!!S.lightMap,J=!!S.bumpMap,ie=!!S.normalMap,fe=!!S.displacementMap,ye=!!S.emissiveMap,Me=!!S.metalnessMap,k=!!S.roughnessMap,T=S.anisotropy>0,G=S.clearcoat>0,oe=S.dispersion>0,pe=S.iridescence>0,ue=S.sheen>0,Re=S.transmission>0,Ae=T&&!!S.anisotropyMap,Le=G&&!!S.clearcoatMap,ze=G&&!!S.clearcoatNormalMap,Pe=G&&!!S.clearcoatRoughnessMap,Ue=pe&&!!S.iridescenceMap,xt=pe&&!!S.iridescenceThicknessMap,lt=ue&&!!S.sheenColorMap,je=ue&&!!S.sheenRoughnessMap,ht=!!S.specularMap,tt=!!S.specularColorMap,kt=!!S.specularIntensityMap,P=Re&&!!S.transmissionMap,de=Re&&!!S.thicknessMap,ge=!!S.gradientMap,Se=!!S.alphaMap,Ie=S.alphaTest>0,rt=!!S.alphaHash,vt=!!S.extensions;let Sn=yo;S.toneMapped&&(W===null||W.isXRRenderTarget===!0)&&(Sn=t.toneMapping);const Rn={shaderID:he,shaderType:S.type,shaderName:S.name,vertexShader:Te,fragmentShader:ee,defines:S.defines,customVertexShaderID:le,customFragmentShaderID:re,isRawShaderMaterial:S.isRawShaderMaterial===!0,glslVersion:S.glslVersion,precision:h,batching:me,batchingColor:me&&V._colorsTexture!==null,instancing:ce,instancingColor:ce&&V.instanceColor!==null,instancingMorph:ce&&V.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:W===null?t.outputColorSpace:W.isXRRenderTarget===!0?W.texture.colorSpace:Co,alphaToCoverage:!!S.alphaToCoverage,map:Ce,matcap:$e,envMap:j,envMapMode:j&&Q.mapping,envMapCubeUVHeight:Y,aoMap:H,lightMap:B,bumpMap:J,normalMap:ie,displacementMap:f&&fe,emissiveMap:ye,normalMapObjectSpace:ie&&S.normalMapType===EH,normalMapTangentSpace:ie&&S.normalMapType===i0,metalnessMap:Me,roughnessMap:k,anisotropy:T,anisotropyMap:Ae,clearcoat:G,clearcoatMap:Le,clearcoatNormalMap:ze,clearcoatRoughnessMap:Pe,dispersion:oe,iridescence:pe,iridescenceMap:Ue,iridescenceThicknessMap:xt,sheen:ue,sheenColorMap:lt,sheenRoughnessMap:je,specularMap:ht,specularColorMap:tt,specularIntensityMap:kt,transmission:Re,transmissionMap:P,thicknessMap:de,gradientMap:ge,opaque:S.transparent===!1&&S.blending===_l&&S.alphaToCoverage===!1,alphaMap:Se,alphaTest:Ie,alphaHash:rt,combine:S.combine,mapUv:Ce&&m(S.map.channel),aoMapUv:H&&m(S.aoMap.channel),lightMapUv:B&&m(S.lightMap.channel),bumpMapUv:J&&m(S.bumpMap.channel),normalMapUv:ie&&m(S.normalMap.channel),displacementMapUv:fe&&m(S.displacementMap.channel),emissiveMapUv:ye&&m(S.emissiveMap.channel),metalnessMapUv:Me&&m(S.metalnessMap.channel),roughnessMapUv:k&&m(S.roughnessMap.channel),anisotropyMapUv:Ae&&m(S.anisotropyMap.channel),clearcoatMapUv:Le&&m(S.clearcoatMap.channel),clearcoatNormalMapUv:ze&&m(S.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Pe&&m(S.clearcoatRoughnessMap.channel),iridescenceMapUv:Ue&&m(S.iridescenceMap.channel),iridescenceThicknessMapUv:xt&&m(S.iridescenceThicknessMap.channel),sheenColorMapUv:lt&&m(S.sheenColorMap.channel),sheenRoughnessMapUv:je&&m(S.sheenRoughnessMap.channel),specularMapUv:ht&&m(S.specularMap.channel),specularColorMapUv:tt&&m(S.specularColorMap.channel),specularIntensityMapUv:kt&&m(S.specularIntensityMap.channel),transmissionMapUv:P&&m(S.transmissionMap.channel),thicknessMapUv:de&&m(S.thicknessMap.channel),alphaMapUv:Se&&m(S.alphaMap.channel),vertexTangents:!!K.attributes.tangent&&(ie||T),vertexColors:S.vertexColors,vertexAlphas:S.vertexColors===!0&&!!K.attributes.color&&K.attributes.color.itemSize===4,pointsUvs:V.isPoints===!0&&!!K.attributes.uv&&(Ce||Se),fog:!!X,useFog:S.fog===!0,fogExp2:!!X&&X.isFogExp2,flatShading:S.flatShading===!0,sizeAttenuation:S.sizeAttenuation===!0,logarithmicDepthBuffer:d,skinning:V.isSkinnedMesh===!0,morphTargets:K.morphAttributes.position!==void 0,morphNormals:K.morphAttributes.normal!==void 0,morphColors:K.morphAttributes.color!==void 0,morphTargetsCount:Z,morphTextureStride:_e,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:S.dithering,shadowMapEnabled:t.shadowMap.enabled&&D.length>0,shadowMapType:t.shadowMap.type,toneMapping:Sn,decodeVideoTexture:Ce&&S.map.isVideoTexture===!0&&en.getTransfer(S.map.colorSpace)===fn,premultipliedAlpha:S.premultipliedAlpha,doubleSided:S.side===Kr,flipSided:S.side===Hi,useDepthPacking:S.depthPacking>=0,depthPacking:S.depthPacking||0,index0AttributeName:S.index0AttributeName,extensionClipCullDistance:vt&&S.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(vt&&S.extensions.multiDraw===!0||me)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:S.customProgramCacheKey()};return Rn.vertexUv1s=c.has(1),Rn.vertexUv2s=c.has(2),Rn.vertexUv3s=c.has(3),c.clear(),Rn}function v(S){const M=[];if(S.shaderID?M.push(S.shaderID):(M.push(S.customVertexShaderID),M.push(S.customFragmentShaderID)),S.defines!==void 0)for(const D in S.defines)M.push(D),M.push(S.defines[D]);return S.isRawShaderMaterial===!1&&(b(M,S),y(M,S),M.push(t.outputColorSpace)),M.push(S.customProgramCacheKey),M.join()}function b(S,M){S.push(M.precision),S.push(M.outputColorSpace),S.push(M.envMapMode),S.push(M.envMapCubeUVHeight),S.push(M.mapUv),S.push(M.alphaMapUv),S.push(M.lightMapUv),S.push(M.aoMapUv),S.push(M.bumpMapUv),S.push(M.normalMapUv),S.push(M.displacementMapUv),S.push(M.emissiveMapUv),S.push(M.metalnessMapUv),S.push(M.roughnessMapUv),S.push(M.anisotropyMapUv),S.push(M.clearcoatMapUv),S.push(M.clearcoatNormalMapUv),S.push(M.clearcoatRoughnessMapUv),S.push(M.iridescenceMapUv),S.push(M.iridescenceThicknessMapUv),S.push(M.sheenColorMapUv),S.push(M.sheenRoughnessMapUv),S.push(M.specularMapUv),S.push(M.specularColorMapUv),S.push(M.specularIntensityMapUv),S.push(M.transmissionMapUv),S.push(M.thicknessMapUv),S.push(M.combine),S.push(M.fogExp2),S.push(M.sizeAttenuation),S.push(M.morphTargetsCount),S.push(M.morphAttributeCount),S.push(M.numDirLights),S.push(M.numPointLights),S.push(M.numSpotLights),S.push(M.numSpotLightMaps),S.push(M.numHemiLights),S.push(M.numRectAreaLights),S.push(M.numDirLightShadows),S.push(M.numPointLightShadows),S.push(M.numSpotLightShadows),S.push(M.numSpotLightShadowsWithMaps),S.push(M.numLightProbes),S.push(M.shadowMapType),S.push(M.toneMapping),S.push(M.numClippingPlanes),S.push(M.numClipIntersection),S.push(M.depthPacking)}function y(S,M){s.disableAll(),M.supportsVertexTextures&&s.enable(0),M.instancing&&s.enable(1),M.instancingColor&&s.enable(2),M.instancingMorph&&s.enable(3),M.matcap&&s.enable(4),M.envMap&&s.enable(5),M.normalMapObjectSpace&&s.enable(6),M.normalMapTangentSpace&&s.enable(7),M.clearcoat&&s.enable(8),M.iridescence&&s.enable(9),M.alphaTest&&s.enable(10),M.vertexColors&&s.enable(11),M.vertexAlphas&&s.enable(12),M.vertexUv1s&&s.enable(13),M.vertexUv2s&&s.enable(14),M.vertexUv3s&&s.enable(15),M.vertexTangents&&s.enable(16),M.anisotropy&&s.enable(17),M.alphaHash&&s.enable(18),M.batching&&s.enable(19),M.dispersion&&s.enable(20),M.batchingColor&&s.enable(21),S.push(s.mask),s.disableAll(),M.fog&&s.enable(0),M.useFog&&s.enable(1),M.flatShading&&s.enable(2),M.logarithmicDepthBuffer&&s.enable(3),M.skinning&&s.enable(4),M.morphTargets&&s.enable(5),M.morphNormals&&s.enable(6),M.morphColors&&s.enable(7),M.premultipliedAlpha&&s.enable(8),M.shadowMapEnabled&&s.enable(9),M.doubleSided&&s.enable(10),M.flipSided&&s.enable(11),M.useDepthPacking&&s.enable(12),M.dithering&&s.enable(13),M.transmission&&s.enable(14),M.sheen&&s.enable(15),M.opaque&&s.enable(16),M.pointsUvs&&s.enable(17),M.decodeVideoTexture&&s.enable(18),M.alphaToCoverage&&s.enable(19),S.push(s.mask)}function w(S){const M=p[S.type];let D;if(M){const O=Gr[M];D=pz.clone(O.uniforms)}else D=S.uniforms;return D}function L(S,M){let D;for(let O=0,V=u.length;O<V;O++){const X=u[O];if(X.cacheKey===M){D=X,++D.usedTimes;break}}return D===void 0&&(D=new A9(t,M,S,a),u.push(D)),D}function _(S){if(--S.usedTimes===0){const M=u.indexOf(S);u[M]=u[u.length-1],u.pop(),S.destroy()}}function E(S){l.remove(S)}function R(){l.dispose()}return{getParameters:g,getProgramCacheKey:v,getUniforms:w,acquireProgram:L,releaseProgram:_,releaseShaderCache:E,programs:u,dispose:R}}function I9(){let t=new WeakMap;function e(a){let o=t.get(a);return o===void 0&&(o={},t.set(a,o)),o}function n(a){t.delete(a)}function i(a,o,s){t.get(a)[o]=s}function r(){t=new WeakMap}return{get:e,remove:n,update:i,dispose:r}}function L9(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function rS(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function aS(){const t=[];let e=0;const n=[],i=[],r=[];function a(){e=0,n.length=0,i.length=0,r.length=0}function o(d,f,h,p,m,g){let v=t[e];return v===void 0?(v={id:d.id,object:d,geometry:f,material:h,groupOrder:p,renderOrder:d.renderOrder,z:m,group:g},t[e]=v):(v.id=d.id,v.object=d,v.geometry=f,v.material=h,v.groupOrder=p,v.renderOrder=d.renderOrder,v.z=m,v.group=g),e++,v}function s(d,f,h,p,m,g){const v=o(d,f,h,p,m,g);h.transmission>0?i.push(v):h.transparent===!0?r.push(v):n.push(v)}function l(d,f,h,p,m,g){const v=o(d,f,h,p,m,g);h.transmission>0?i.unshift(v):h.transparent===!0?r.unshift(v):n.unshift(v)}function c(d,f){n.length>1&&n.sort(d||L9),i.length>1&&i.sort(f||rS),r.length>1&&r.sort(f||rS)}function u(){for(let d=e,f=t.length;d<f;d++){const h=t[d];if(h.id===null)break;h.id=null,h.object=null,h.geometry=null,h.material=null,h.group=null}}return{opaque:n,transmissive:i,transparent:r,init:a,push:s,unshift:l,finish:u,sort:c}}function O9(){let t=new WeakMap;function e(i,r){const a=t.get(i);let o;return a===void 0?(o=new aS,t.set(i,[o])):r>=a.length?(o=new aS,a.push(o)):o=a[r],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function N9(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new te,color:new Ot};break;case"SpotLight":n={position:new te,direction:new te,color:new Ot,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new te,color:new Ot,distance:0,decay:0};break;case"HemisphereLight":n={direction:new te,skyColor:new Ot,groundColor:new Ot};break;case"RectAreaLight":n={color:new Ot,position:new te,halfWidth:new te,halfHeight:new te};break}return t[e.id]=n,n}}}function k9(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new bt};break;case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new bt};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new bt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let U9=0;function F9(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function B9(t){const e=new N9,n=k9(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)i.probe.push(new te);const r=new te,a=new Rt,o=new Rt;function s(c){let u=0,d=0,f=0;for(let S=0;S<9;S++)i.probe[S].set(0,0,0);let h=0,p=0,m=0,g=0,v=0,b=0,y=0,w=0,L=0,_=0,E=0;c.sort(F9);for(let S=0,M=c.length;S<M;S++){const D=c[S],O=D.color,V=D.intensity,X=D.distance,K=D.shadow&&D.shadow.map?D.shadow.map.texture:null;if(D.isAmbientLight)u+=O.r*V,d+=O.g*V,f+=O.b*V;else if(D.isLightProbe){for(let z=0;z<9;z++)i.probe[z].addScaledVector(D.sh.coefficients[z],V);E++}else if(D.isDirectionalLight){const z=e.get(D);if(z.color.copy(D.color).multiplyScalar(D.intensity),D.castShadow){const Q=D.shadow,Y=n.get(D);Y.shadowIntensity=Q.intensity,Y.shadowBias=Q.bias,Y.shadowNormalBias=Q.normalBias,Y.shadowRadius=Q.radius,Y.shadowMapSize=Q.mapSize,i.directionalShadow[h]=Y,i.directionalShadowMap[h]=K,i.directionalShadowMatrix[h]=D.shadow.matrix,b++}i.directional[h]=z,h++}else if(D.isSpotLight){const z=e.get(D);z.position.setFromMatrixPosition(D.matrixWorld),z.color.copy(O).multiplyScalar(V),z.distance=X,z.coneCos=Math.cos(D.angle),z.penumbraCos=Math.cos(D.angle*(1-D.penumbra)),z.decay=D.decay,i.spot[m]=z;const Q=D.shadow;if(D.map&&(i.spotLightMap[L]=D.map,L++,Q.updateMatrices(D),D.castShadow&&_++),i.spotLightMatrix[m]=Q.matrix,D.castShadow){const Y=n.get(D);Y.shadowIntensity=Q.intensity,Y.shadowBias=Q.bias,Y.shadowNormalBias=Q.normalBias,Y.shadowRadius=Q.radius,Y.shadowMapSize=Q.mapSize,i.spotShadow[m]=Y,i.spotShadowMap[m]=K,w++}m++}else if(D.isRectAreaLight){const z=e.get(D);z.color.copy(O).multiplyScalar(V),z.halfWidth.set(D.width*.5,0,0),z.halfHeight.set(0,D.height*.5,0),i.rectArea[g]=z,g++}else if(D.isPointLight){const z=e.get(D);if(z.color.copy(D.color).multiplyScalar(D.intensity),z.distance=D.distance,z.decay=D.decay,D.castShadow){const Q=D.shadow,Y=n.get(D);Y.shadowIntensity=Q.intensity,Y.shadowBias=Q.bias,Y.shadowNormalBias=Q.normalBias,Y.shadowRadius=Q.radius,Y.shadowMapSize=Q.mapSize,Y.shadowCameraNear=Q.camera.near,Y.shadowCameraFar=Q.camera.far,i.pointShadow[p]=Y,i.pointShadowMap[p]=K,i.pointShadowMatrix[p]=D.shadow.matrix,y++}i.point[p]=z,p++}else if(D.isHemisphereLight){const z=e.get(D);z.skyColor.copy(D.color).multiplyScalar(V),z.groundColor.copy(D.groundColor).multiplyScalar(V),i.hemi[v]=z,v++}}g>0&&(t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=We.LTC_FLOAT_1,i.rectAreaLTC2=We.LTC_FLOAT_2):(i.rectAreaLTC1=We.LTC_HALF_1,i.rectAreaLTC2=We.LTC_HALF_2)),i.ambient[0]=u,i.ambient[1]=d,i.ambient[2]=f;const R=i.hash;(R.directionalLength!==h||R.pointLength!==p||R.spotLength!==m||R.rectAreaLength!==g||R.hemiLength!==v||R.numDirectionalShadows!==b||R.numPointShadows!==y||R.numSpotShadows!==w||R.numSpotMaps!==L||R.numLightProbes!==E)&&(i.directional.length=h,i.spot.length=m,i.rectArea.length=g,i.point.length=p,i.hemi.length=v,i.directionalShadow.length=b,i.directionalShadowMap.length=b,i.pointShadow.length=y,i.pointShadowMap.length=y,i.spotShadow.length=w,i.spotShadowMap.length=w,i.directionalShadowMatrix.length=b,i.pointShadowMatrix.length=y,i.spotLightMatrix.length=w+L-_,i.spotLightMap.length=L,i.numSpotLightShadowsWithMaps=_,i.numLightProbes=E,R.directionalLength=h,R.pointLength=p,R.spotLength=m,R.rectAreaLength=g,R.hemiLength=v,R.numDirectionalShadows=b,R.numPointShadows=y,R.numSpotShadows=w,R.numSpotMaps=L,R.numLightProbes=E,i.version=U9++)}function l(c,u){let d=0,f=0,h=0,p=0,m=0;const g=u.matrixWorldInverse;for(let v=0,b=c.length;v<b;v++){const y=c[v];if(y.isDirectionalLight){const w=i.directional[d];w.direction.setFromMatrixPosition(y.matrixWorld),r.setFromMatrixPosition(y.target.matrixWorld),w.direction.sub(r),w.direction.transformDirection(g),d++}else if(y.isSpotLight){const w=i.spot[h];w.position.setFromMatrixPosition(y.matrixWorld),w.position.applyMatrix4(g),w.direction.setFromMatrixPosition(y.matrixWorld),r.setFromMatrixPosition(y.target.matrixWorld),w.direction.sub(r),w.direction.transformDirection(g),h++}else if(y.isRectAreaLight){const w=i.rectArea[p];w.position.setFromMatrixPosition(y.matrixWorld),w.position.applyMatrix4(g),o.identity(),a.copy(y.matrixWorld),a.premultiply(g),o.extractRotation(a),w.halfWidth.set(y.width*.5,0,0),w.halfHeight.set(0,y.height*.5,0),w.halfWidth.applyMatrix4(o),w.halfHeight.applyMatrix4(o),p++}else if(y.isPointLight){const w=i.point[f];w.position.setFromMatrixPosition(y.matrixWorld),w.position.applyMatrix4(g),f++}else if(y.isHemisphereLight){const w=i.hemi[m];w.direction.setFromMatrixPosition(y.matrixWorld),w.direction.transformDirection(g),m++}}}return{setup:s,setupView:l,state:i}}function oS(t){const e=new B9(t),n=[],i=[];function r(u){c.camera=u,n.length=0,i.length=0}function a(u){n.push(u)}function o(u){i.push(u)}function s(){e.setup(n)}function l(u){e.setupView(n,u)}const c={lightsArray:n,shadowsArray:i,camera:null,lights:e,transmissionRenderTarget:{}};return{init:r,state:c,setupLights:s,setupLightsView:l,pushLight:a,pushShadow:o}}function V9(t){let e=new WeakMap;function n(r,a=0){const o=e.get(r);let s;return o===void 0?(s=new oS(t),e.set(r,[s])):a>=o.length?(s=new oS(t),o.push(s)):s=o[a],s}function i(){e=new WeakMap}return{get:n,dispose:i}}class H9 extends ws{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=wH,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class z9 extends ws{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const W9=`void main() {
	gl_Position = vec4( position, 1.0 );
}`,G9=`uniform sampler2D shadow_pass;
uniform vec2 resolution;
uniform float radius;
#include <packing>
void main() {
	const float samples = float( VSM_SAMPLES );
	float mean = 0.0;
	float squared_mean = 0.0;
	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
	for ( float i = 0.0; i < samples; i ++ ) {
		float uvOffset = uvStart + i * uvStride;
		#ifdef HORIZONTAL_PASS
			vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
			mean += distribution.x;
			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
		#else
			float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
			mean += depth;
			squared_mean += depth * depth;
		#endif
	}
	mean = mean / samples;
	squared_mean = squared_mean / samples;
	float std_dev = sqrt( squared_mean - mean * mean );
	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
}`;function j9(t,e,n){let i=new o0;const r=new bt,a=new bt,o=new on,s=new H9({depthPacking:MH}),l=new z9,c={},u=n.maxTextureSize,d={[Ra]:Hi,[Hi]:Ra,[Kr]:Kr},f=new _o({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new bt},radius:{value:4}},vertexShader:W9,fragmentShader:G9}),h=f.clone();h.defines.HORIZONTAL_PASS=1;const p=new Ba;p.setAttribute("position",new ea(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new Tr(p,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=aA;let v=this.type;this.render=function(_,E,R){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||_.length===0)return;const S=t.getRenderTarget(),M=t.getActiveCubeFace(),D=t.getActiveMipmapLevel(),O=t.state;O.setBlending(vo),O.buffers.color.setClear(1,1,1,1),O.buffers.depth.setTest(!0),O.setScissorTest(!1);const V=v!==va&&this.type===va,X=v===va&&this.type!==va;for(let K=0,z=_.length;K<z;K++){const Q=_[K],Y=Q.shadow;if(Y===void 0){console.warn("THREE.WebGLShadowMap:",Q,"has no shadow.");continue}if(Y.autoUpdate===!1&&Y.needsUpdate===!1)continue;r.copy(Y.mapSize);const he=Y.getFrameExtents();if(r.multiply(he),a.copy(Y.mapSize),(r.x>u||r.y>u)&&(r.x>u&&(a.x=Math.floor(u/he.x),r.x=a.x*he.x,Y.mapSize.x=a.x),r.y>u&&(a.y=Math.floor(u/he.y),r.y=a.y*he.y,Y.mapSize.y=a.y)),Y.map===null||V===!0||X===!0){const Z=this.type!==va?{minFilter:Fi,magFilter:Fi}:{};Y.map!==null&&Y.map.dispose(),Y.map=new hs(r.x,r.y,Z),Y.map.texture.name=Q.name+".shadowMap",Y.camera.updateProjectionMatrix()}t.setRenderTarget(Y.map),t.clear();const ne=Y.getViewportCount();for(let Z=0;Z<ne;Z++){const _e=Y.getViewport(Z);o.set(a.x*_e.x,a.y*_e.y,a.x*_e.z,a.y*_e.w),O.viewport(o),Y.updateMatrices(Q,Z),i=Y.getFrustum(),w(E,R,Y.camera,Q,this.type)}Y.isPointLightShadow!==!0&&this.type===va&&b(Y,R),Y.needsUpdate=!1}v=this.type,g.needsUpdate=!1,t.setRenderTarget(S,M,D)};function b(_,E){const R=e.update(m);f.defines.VSM_SAMPLES!==_.blurSamples&&(f.defines.VSM_SAMPLES=_.blurSamples,h.defines.VSM_SAMPLES=_.blurSamples,f.needsUpdate=!0,h.needsUpdate=!0),_.mapPass===null&&(_.mapPass=new hs(r.x,r.y)),f.uniforms.shadow_pass.value=_.map.texture,f.uniforms.resolution.value=_.mapSize,f.uniforms.radius.value=_.radius,t.setRenderTarget(_.mapPass),t.clear(),t.renderBufferDirect(E,null,R,f,m,null),h.uniforms.shadow_pass.value=_.mapPass.texture,h.uniforms.resolution.value=_.mapSize,h.uniforms.radius.value=_.radius,t.setRenderTarget(_.map),t.clear(),t.renderBufferDirect(E,null,R,h,m,null)}function y(_,E,R,S){let M=null;const D=R.isPointLight===!0?_.customDistanceMaterial:_.customDepthMaterial;if(D!==void 0)M=D;else if(M=R.isPointLight===!0?l:s,t.localClippingEnabled&&E.clipShadows===!0&&Array.isArray(E.clippingPlanes)&&E.clippingPlanes.length!==0||E.displacementMap&&E.displacementScale!==0||E.alphaMap&&E.alphaTest>0||E.map&&E.alphaTest>0){const O=M.uuid,V=E.uuid;let X=c[O];X===void 0&&(X={},c[O]=X);let K=X[V];K===void 0&&(K=M.clone(),X[V]=K,E.addEventListener("dispose",L)),M=K}if(M.visible=E.visible,M.wireframe=E.wireframe,S===va?M.side=E.shadowSide!==null?E.shadowSide:E.side:M.side=E.shadowSide!==null?E.shadowSide:d[E.side],M.alphaMap=E.alphaMap,M.alphaTest=E.alphaTest,M.map=E.map,M.clipShadows=E.clipShadows,M.clippingPlanes=E.clippingPlanes,M.clipIntersection=E.clipIntersection,M.displacementMap=E.displacementMap,M.displacementScale=E.displacementScale,M.displacementBias=E.displacementBias,M.wireframeLinewidth=E.wireframeLinewidth,M.linewidth=E.linewidth,R.isPointLight===!0&&M.isMeshDistanceMaterial===!0){const O=t.properties.get(M);O.light=R}return M}function w(_,E,R,S,M){if(_.visible===!1)return;if(_.layers.test(E.layers)&&(_.isMesh||_.isLine||_.isPoints)&&(_.castShadow||_.receiveShadow&&M===va)&&(!_.frustumCulled||i.intersectsObject(_))){_.modelViewMatrix.multiplyMatrices(R.matrixWorldInverse,_.matrixWorld);const V=e.update(_),X=_.material;if(Array.isArray(X)){const K=V.groups;for(let z=0,Q=K.length;z<Q;z++){const Y=K[z],he=X[Y.materialIndex];if(he&&he.visible){const ne=y(_,he,S,M);_.onBeforeShadow(t,_,E,R,V,ne,Y),t.renderBufferDirect(R,null,V,ne,_,Y),_.onAfterShadow(t,_,E,R,V,ne,Y)}}}else if(X.visible){const K=y(_,X,S,M);_.onBeforeShadow(t,_,E,R,V,K,null),t.renderBufferDirect(R,null,V,K,_,null),_.onAfterShadow(t,_,E,R,V,K,null)}}const O=_.children;for(let V=0,X=O.length;V<X;V++)w(O[V],E,R,S,M)}function L(_){_.target.removeEventListener("dispose",L);for(const R in c){const S=c[R],M=_.target.uuid;M in S&&(S[M].dispose(),delete S[M])}}}function X9(t){function e(){let P=!1;const de=new on;let ge=null;const Se=new on(0,0,0,0);return{setMask:function(Ie){ge!==Ie&&!P&&(t.colorMask(Ie,Ie,Ie,Ie),ge=Ie)},setLocked:function(Ie){P=Ie},setClear:function(Ie,rt,vt,Sn,Rn){Rn===!0&&(Ie*=Sn,rt*=Sn,vt*=Sn),de.set(Ie,rt,vt,Sn),Se.equals(de)===!1&&(t.clearColor(Ie,rt,vt,Sn),Se.copy(de))},reset:function(){P=!1,ge=null,Se.set(-1,0,0,0)}}}function n(){let P=!1,de=null,ge=null,Se=null;return{setTest:function(Ie){Ie?re(t.DEPTH_TEST):W(t.DEPTH_TEST)},setMask:function(Ie){de!==Ie&&!P&&(t.depthMask(Ie),de=Ie)},setFunc:function(Ie){if(ge!==Ie){switch(Ie){case rH:t.depthFunc(t.NEVER);break;case aH:t.depthFunc(t.ALWAYS);break;case oH:t.depthFunc(t.LESS);break;case Xf:t.depthFunc(t.LEQUAL);break;case sH:t.depthFunc(t.EQUAL);break;case lH:t.depthFunc(t.GEQUAL);break;case cH:t.depthFunc(t.GREATER);break;case uH:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}ge=Ie}},setLocked:function(Ie){P=Ie},setClear:function(Ie){Se!==Ie&&(t.clearDepth(Ie),Se=Ie)},reset:function(){P=!1,de=null,ge=null,Se=null}}}function i(){let P=!1,de=null,ge=null,Se=null,Ie=null,rt=null,vt=null,Sn=null,Rn=null;return{setTest:function(zt){P||(zt?re(t.STENCIL_TEST):W(t.STENCIL_TEST))},setMask:function(zt){de!==zt&&!P&&(t.stencilMask(zt),de=zt)},setFunc:function(zt,$t,wn){(ge!==zt||Se!==$t||Ie!==wn)&&(t.stencilFunc(zt,$t,wn),ge=zt,Se=$t,Ie=wn)},setOp:function(zt,$t,wn){(rt!==zt||vt!==$t||Sn!==wn)&&(t.stencilOp(zt,$t,wn),rt=zt,vt=$t,Sn=wn)},setLocked:function(zt){P=zt},setClear:function(zt){Rn!==zt&&(t.clearStencil(zt),Rn=zt)},reset:function(){P=!1,de=null,ge=null,Se=null,Ie=null,rt=null,vt=null,Sn=null,Rn=null}}}const r=new e,a=new n,o=new i,s=new WeakMap,l=new WeakMap;let c={},u={},d=new WeakMap,f=[],h=null,p=!1,m=null,g=null,v=null,b=null,y=null,w=null,L=null,_=new Ot(0,0,0),E=0,R=!1,S=null,M=null,D=null,O=null,V=null;const X=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let K=!1,z=0;const Q=t.getParameter(t.VERSION);Q.indexOf("WebGL")!==-1?(z=parseFloat(/^WebGL (\d)/.exec(Q)[1]),K=z>=1):Q.indexOf("OpenGL ES")!==-1&&(z=parseFloat(/^OpenGL ES (\d)/.exec(Q)[1]),K=z>=2);let Y=null,he={};const ne=t.getParameter(t.SCISSOR_BOX),Z=t.getParameter(t.VIEWPORT),_e=new on().fromArray(ne),Te=new on().fromArray(Z);function ee(P,de,ge,Se){const Ie=new Uint8Array(4),rt=t.createTexture();t.bindTexture(P,rt),t.texParameteri(P,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(P,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let vt=0;vt<ge;vt++)P===t.TEXTURE_3D||P===t.TEXTURE_2D_ARRAY?t.texImage3D(de,0,t.RGBA,1,1,Se,0,t.RGBA,t.UNSIGNED_BYTE,Ie):t.texImage2D(de+vt,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,Ie);return rt}const le={};le[t.TEXTURE_2D]=ee(t.TEXTURE_2D,t.TEXTURE_2D,1),le[t.TEXTURE_CUBE_MAP]=ee(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),le[t.TEXTURE_2D_ARRAY]=ee(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),le[t.TEXTURE_3D]=ee(t.TEXTURE_3D,t.TEXTURE_3D,1,1),r.setClear(0,0,0,1),a.setClear(1),o.setClear(0),re(t.DEPTH_TEST),a.setFunc(Xf),J(!1),ie(sx),re(t.CULL_FACE),H(vo);function re(P){c[P]!==!0&&(t.enable(P),c[P]=!0)}function W(P){c[P]!==!1&&(t.disable(P),c[P]=!1)}function ce(P,de){return u[P]!==de?(t.bindFramebuffer(P,de),u[P]=de,P===t.DRAW_FRAMEBUFFER&&(u[t.FRAMEBUFFER]=de),P===t.FRAMEBUFFER&&(u[t.DRAW_FRAMEBUFFER]=de),!0):!1}function me(P,de){let ge=f,Se=!1;if(P){ge=d.get(de),ge===void 0&&(ge=[],d.set(de,ge));const Ie=P.textures;if(ge.length!==Ie.length||ge[0]!==t.COLOR_ATTACHMENT0){for(let rt=0,vt=Ie.length;rt<vt;rt++)ge[rt]=t.COLOR_ATTACHMENT0+rt;ge.length=Ie.length,Se=!0}}else ge[0]!==t.BACK&&(ge[0]=t.BACK,Se=!0);Se&&t.drawBuffers(ge)}function Ce(P){return h!==P?(t.useProgram(P),h=P,!0):!1}const $e={[qo]:t.FUNC_ADD,[H5]:t.FUNC_SUBTRACT,[z5]:t.FUNC_REVERSE_SUBTRACT};$e[W5]=t.MIN,$e[G5]=t.MAX;const j={[j5]:t.ZERO,[X5]:t.ONE,[Y5]:t.SRC_COLOR,[Lg]:t.SRC_ALPHA,[J5]:t.SRC_ALPHA_SATURATE,[Z5]:t.DST_COLOR,[K5]:t.DST_ALPHA,[q5]:t.ONE_MINUS_SRC_COLOR,[Og]:t.ONE_MINUS_SRC_ALPHA,[$5]:t.ONE_MINUS_DST_COLOR,[Q5]:t.ONE_MINUS_DST_ALPHA,[eH]:t.CONSTANT_COLOR,[tH]:t.ONE_MINUS_CONSTANT_COLOR,[nH]:t.CONSTANT_ALPHA,[iH]:t.ONE_MINUS_CONSTANT_ALPHA};function H(P,de,ge,Se,Ie,rt,vt,Sn,Rn,zt){if(P===vo){p===!0&&(W(t.BLEND),p=!1);return}if(p===!1&&(re(t.BLEND),p=!0),P!==V5){if(P!==m||zt!==R){if((g!==qo||y!==qo)&&(t.blendEquation(t.FUNC_ADD),g=qo,y=qo),zt)switch(P){case _l:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case lx:t.blendFunc(t.ONE,t.ONE);break;case cx:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case ux:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",P);break}else switch(P){case _l:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case lx:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case cx:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case ux:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",P);break}v=null,b=null,w=null,L=null,_.set(0,0,0),E=0,m=P,R=zt}return}Ie=Ie||de,rt=rt||ge,vt=vt||Se,(de!==g||Ie!==y)&&(t.blendEquationSeparate($e[de],$e[Ie]),g=de,y=Ie),(ge!==v||Se!==b||rt!==w||vt!==L)&&(t.blendFuncSeparate(j[ge],j[Se],j[rt],j[vt]),v=ge,b=Se,w=rt,L=vt),(Sn.equals(_)===!1||Rn!==E)&&(t.blendColor(Sn.r,Sn.g,Sn.b,Rn),_.copy(Sn),E=Rn),m=P,R=!1}function B(P,de){P.side===Kr?W(t.CULL_FACE):re(t.CULL_FACE);let ge=P.side===Hi;de&&(ge=!ge),J(ge),P.blending===_l&&P.transparent===!1?H(vo):H(P.blending,P.blendEquation,P.blendSrc,P.blendDst,P.blendEquationAlpha,P.blendSrcAlpha,P.blendDstAlpha,P.blendColor,P.blendAlpha,P.premultipliedAlpha),a.setFunc(P.depthFunc),a.setTest(P.depthTest),a.setMask(P.depthWrite),r.setMask(P.colorWrite);const Se=P.stencilWrite;o.setTest(Se),Se&&(o.setMask(P.stencilWriteMask),o.setFunc(P.stencilFunc,P.stencilRef,P.stencilFuncMask),o.setOp(P.stencilFail,P.stencilZFail,P.stencilZPass)),ye(P.polygonOffset,P.polygonOffsetFactor,P.polygonOffsetUnits),P.alphaToCoverage===!0?re(t.SAMPLE_ALPHA_TO_COVERAGE):W(t.SAMPLE_ALPHA_TO_COVERAGE)}function J(P){S!==P&&(P?t.frontFace(t.CW):t.frontFace(t.CCW),S=P)}function ie(P){P!==U5?(re(t.CULL_FACE),P!==M&&(P===sx?t.cullFace(t.BACK):P===F5?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):W(t.CULL_FACE),M=P}function fe(P){P!==D&&(K&&t.lineWidth(P),D=P)}function ye(P,de,ge){P?(re(t.POLYGON_OFFSET_FILL),(O!==de||V!==ge)&&(t.polygonOffset(de,ge),O=de,V=ge)):W(t.POLYGON_OFFSET_FILL)}function Me(P){P?re(t.SCISSOR_TEST):W(t.SCISSOR_TEST)}function k(P){P===void 0&&(P=t.TEXTURE0+X-1),Y!==P&&(t.activeTexture(P),Y=P)}function T(P,de,ge){ge===void 0&&(Y===null?ge=t.TEXTURE0+X-1:ge=Y);let Se=he[ge];Se===void 0&&(Se={type:void 0,texture:void 0},he[ge]=Se),(Se.type!==P||Se.texture!==de)&&(Y!==ge&&(t.activeTexture(ge),Y=ge),t.bindTexture(P,de||le[P]),Se.type=P,Se.texture=de)}function G(){const P=he[Y];P!==void 0&&P.type!==void 0&&(t.bindTexture(P.type,null),P.type=void 0,P.texture=void 0)}function oe(){try{t.compressedTexImage2D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function pe(){try{t.compressedTexImage3D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function ue(){try{t.texSubImage2D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function Re(){try{t.texSubImage3D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function Ae(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function Le(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function ze(){try{t.texStorage2D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function Pe(){try{t.texStorage3D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function Ue(){try{t.texImage2D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function xt(){try{t.texImage3D.apply(t,arguments)}catch(P){console.error("THREE.WebGLState:",P)}}function lt(P){_e.equals(P)===!1&&(t.scissor(P.x,P.y,P.z,P.w),_e.copy(P))}function je(P){Te.equals(P)===!1&&(t.viewport(P.x,P.y,P.z,P.w),Te.copy(P))}function ht(P,de){let ge=l.get(de);ge===void 0&&(ge=new WeakMap,l.set(de,ge));let Se=ge.get(P);Se===void 0&&(Se=t.getUniformBlockIndex(de,P.name),ge.set(P,Se))}function tt(P,de){const Se=l.get(de).get(P);s.get(de)!==Se&&(t.uniformBlockBinding(de,Se,P.__bindingPointIndex),s.set(de,Se))}function kt(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),c={},Y=null,he={},u={},d=new WeakMap,f=[],h=null,p=!1,m=null,g=null,v=null,b=null,y=null,w=null,L=null,_=new Ot(0,0,0),E=0,R=!1,S=null,M=null,D=null,O=null,V=null,_e.set(0,0,t.canvas.width,t.canvas.height),Te.set(0,0,t.canvas.width,t.canvas.height),r.reset(),a.reset(),o.reset()}return{buffers:{color:r,depth:a,stencil:o},enable:re,disable:W,bindFramebuffer:ce,drawBuffers:me,useProgram:Ce,setBlending:H,setMaterial:B,setFlipSided:J,setCullFace:ie,setLineWidth:fe,setPolygonOffset:ye,setScissorTest:Me,activeTexture:k,bindTexture:T,unbindTexture:G,compressedTexImage2D:oe,compressedTexImage3D:pe,texImage2D:Ue,texImage3D:xt,updateUBOMapping:ht,uniformBlockBinding:tt,texStorage2D:ze,texStorage3D:Pe,texSubImage2D:ue,texSubImage3D:Re,compressedTexSubImage2D:Ae,compressedTexSubImage3D:Le,scissor:lt,viewport:je,reset:kt}}function sS(t,e,n,i){const r=Y9(i);switch(n){case uA:return t*e;case fA:return t*e;case hA:return t*e*2;case pA:return t*e/r.components*r.byteLength;case e0:return t*e/r.components*r.byteLength;case mA:return t*e*2/r.components*r.byteLength;case t0:return t*e*2/r.components*r.byteLength;case dA:return t*e*3/r.components*r.byteLength;case ur:return t*e*4/r.components*r.byteLength;case n0:return t*e*4/r.components*r.byteLength;case uf:case df:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*8;case ff:case hf:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case Bg:case Hg:return Math.max(t,16)*Math.max(e,8)/4;case Fg:case Vg:return Math.max(t,8)*Math.max(e,8)/2;case zg:case Wg:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*8;case Gg:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case jg:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case Xg:return Math.floor((t+4)/5)*Math.floor((e+3)/4)*16;case Yg:return Math.floor((t+4)/5)*Math.floor((e+4)/5)*16;case qg:return Math.floor((t+5)/6)*Math.floor((e+4)/5)*16;case Kg:return Math.floor((t+5)/6)*Math.floor((e+5)/6)*16;case Qg:return Math.floor((t+7)/8)*Math.floor((e+4)/5)*16;case Zg:return Math.floor((t+7)/8)*Math.floor((e+5)/6)*16;case $g:return Math.floor((t+7)/8)*Math.floor((e+7)/8)*16;case Jg:return Math.floor((t+9)/10)*Math.floor((e+4)/5)*16;case ev:return Math.floor((t+9)/10)*Math.floor((e+5)/6)*16;case tv:return Math.floor((t+9)/10)*Math.floor((e+7)/8)*16;case nv:return Math.floor((t+9)/10)*Math.floor((e+9)/10)*16;case iv:return Math.floor((t+11)/12)*Math.floor((e+9)/10)*16;case rv:return Math.floor((t+11)/12)*Math.floor((e+11)/12)*16;case pf:case av:case ov:return Math.ceil(t/4)*Math.ceil(e/4)*16;case gA:case sv:return Math.ceil(t/4)*Math.ceil(e/4)*8;case lv:case cv:return Math.ceil(t/4)*Math.ceil(e/4)*16}throw new Error(`Unable to determine texture byte length for ${n} format.`)}function Y9(t){switch(t){case Da:case sA:return{byteLength:1,components:1};case Su:case lA:case ju:return{byteLength:2,components:1};case $y:case Jy:return{byteLength:2,components:4};case fs:case Zy:case $r:return{byteLength:4,components:1};case cA:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${t}.`)}function q9(t,e,n,i,r,a,o){const s=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,l=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new bt,u=new WeakMap;let d;const f=new WeakMap;let h=!1;try{h=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function p(k,T){return h?new OffscreenCanvas(k,T):wu("canvas")}function m(k,T,G){let oe=1;const pe=Me(k);if((pe.width>G||pe.height>G)&&(oe=G/Math.max(pe.width,pe.height)),oe<1)if(typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&k instanceof ImageBitmap||typeof VideoFrame<"u"&&k instanceof VideoFrame){const ue=Math.floor(oe*pe.width),Re=Math.floor(oe*pe.height);d===void 0&&(d=p(ue,Re));const Ae=T?p(ue,Re):d;return Ae.width=ue,Ae.height=Re,Ae.getContext("2d").drawImage(k,0,0,ue,Re),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+pe.width+"x"+pe.height+") to ("+ue+"x"+Re+")."),Ae}else return"data"in k&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+pe.width+"x"+pe.height+")."),k;return k}function g(k){return k.generateMipmaps&&k.minFilter!==Fi&&k.minFilter!==Ui}function v(k){t.generateMipmap(k)}function b(k,T,G,oe,pe=!1){if(k!==null){if(t[k]!==void 0)return t[k];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+k+"'")}let ue=T;if(T===t.RED&&(G===t.FLOAT&&(ue=t.R32F),G===t.HALF_FLOAT&&(ue=t.R16F),G===t.UNSIGNED_BYTE&&(ue=t.R8)),T===t.RED_INTEGER&&(G===t.UNSIGNED_BYTE&&(ue=t.R8UI),G===t.UNSIGNED_SHORT&&(ue=t.R16UI),G===t.UNSIGNED_INT&&(ue=t.R32UI),G===t.BYTE&&(ue=t.R8I),G===t.SHORT&&(ue=t.R16I),G===t.INT&&(ue=t.R32I)),T===t.RG&&(G===t.FLOAT&&(ue=t.RG32F),G===t.HALF_FLOAT&&(ue=t.RG16F),G===t.UNSIGNED_BYTE&&(ue=t.RG8)),T===t.RG_INTEGER&&(G===t.UNSIGNED_BYTE&&(ue=t.RG8UI),G===t.UNSIGNED_SHORT&&(ue=t.RG16UI),G===t.UNSIGNED_INT&&(ue=t.RG32UI),G===t.BYTE&&(ue=t.RG8I),G===t.SHORT&&(ue=t.RG16I),G===t.INT&&(ue=t.RG32I)),T===t.RGB&&G===t.UNSIGNED_INT_5_9_9_9_REV&&(ue=t.RGB9_E5),T===t.RGBA){const Re=pe?qf:en.getTransfer(oe);G===t.FLOAT&&(ue=t.RGBA32F),G===t.HALF_FLOAT&&(ue=t.RGBA16F),G===t.UNSIGNED_BYTE&&(ue=Re===fn?t.SRGB8_ALPHA8:t.RGBA8),G===t.UNSIGNED_SHORT_4_4_4_4&&(ue=t.RGBA4),G===t.UNSIGNED_SHORT_5_5_5_1&&(ue=t.RGB5_A1)}return(ue===t.R16F||ue===t.R32F||ue===t.RG16F||ue===t.RG32F||ue===t.RGBA16F||ue===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ue}function y(k,T){let G;return k?T===null||T===fs||T===Ul?G=t.DEPTH24_STENCIL8:T===$r?G=t.DEPTH32F_STENCIL8:T===Su&&(G=t.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):T===null||T===fs||T===Ul?G=t.DEPTH_COMPONENT24:T===$r?G=t.DEPTH_COMPONENT32F:T===Su&&(G=t.DEPTH_COMPONENT16),G}function w(k,T){return g(k)===!0||k.isFramebufferTexture&&k.minFilter!==Fi&&k.minFilter!==Ui?Math.log2(Math.max(T.width,T.height))+1:k.mipmaps!==void 0&&k.mipmaps.length>0?k.mipmaps.length:k.isCompressedTexture&&Array.isArray(k.image)?T.mipmaps.length:1}function L(k){const T=k.target;T.removeEventListener("dispose",L),E(T),T.isVideoTexture&&u.delete(T)}function _(k){const T=k.target;T.removeEventListener("dispose",_),S(T)}function E(k){const T=i.get(k);if(T.__webglInit===void 0)return;const G=k.source,oe=f.get(G);if(oe){const pe=oe[T.__cacheKey];pe.usedTimes--,pe.usedTimes===0&&R(k),Object.keys(oe).length===0&&f.delete(G)}i.remove(k)}function R(k){const T=i.get(k);t.deleteTexture(T.__webglTexture);const G=k.source,oe=f.get(G);delete oe[T.__cacheKey],o.memory.textures--}function S(k){const T=i.get(k);if(k.depthTexture&&k.depthTexture.dispose(),k.isWebGLCubeRenderTarget)for(let oe=0;oe<6;oe++){if(Array.isArray(T.__webglFramebuffer[oe]))for(let pe=0;pe<T.__webglFramebuffer[oe].length;pe++)t.deleteFramebuffer(T.__webglFramebuffer[oe][pe]);else t.deleteFramebuffer(T.__webglFramebuffer[oe]);T.__webglDepthbuffer&&t.deleteRenderbuffer(T.__webglDepthbuffer[oe])}else{if(Array.isArray(T.__webglFramebuffer))for(let oe=0;oe<T.__webglFramebuffer.length;oe++)t.deleteFramebuffer(T.__webglFramebuffer[oe]);else t.deleteFramebuffer(T.__webglFramebuffer);if(T.__webglDepthbuffer&&t.deleteRenderbuffer(T.__webglDepthbuffer),T.__webglMultisampledFramebuffer&&t.deleteFramebuffer(T.__webglMultisampledFramebuffer),T.__webglColorRenderbuffer)for(let oe=0;oe<T.__webglColorRenderbuffer.length;oe++)T.__webglColorRenderbuffer[oe]&&t.deleteRenderbuffer(T.__webglColorRenderbuffer[oe]);T.__webglDepthRenderbuffer&&t.deleteRenderbuffer(T.__webglDepthRenderbuffer)}const G=k.textures;for(let oe=0,pe=G.length;oe<pe;oe++){const ue=i.get(G[oe]);ue.__webglTexture&&(t.deleteTexture(ue.__webglTexture),o.memory.textures--),i.remove(G[oe])}i.remove(k)}let M=0;function D(){M=0}function O(){const k=M;return k>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+k+" texture units while this GPU supports only "+r.maxTextures),M+=1,k}function V(k){const T=[];return T.push(k.wrapS),T.push(k.wrapT),T.push(k.wrapR||0),T.push(k.magFilter),T.push(k.minFilter),T.push(k.anisotropy),T.push(k.internalFormat),T.push(k.format),T.push(k.type),T.push(k.generateMipmaps),T.push(k.premultiplyAlpha),T.push(k.flipY),T.push(k.unpackAlignment),T.push(k.colorSpace),T.join()}function X(k,T){const G=i.get(k);if(k.isVideoTexture&&fe(k),k.isRenderTargetTexture===!1&&k.version>0&&G.__version!==k.version){const oe=k.image;if(oe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(oe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Te(G,k,T);return}}n.bindTexture(t.TEXTURE_2D,G.__webglTexture,t.TEXTURE0+T)}function K(k,T){const G=i.get(k);if(k.version>0&&G.__version!==k.version){Te(G,k,T);return}n.bindTexture(t.TEXTURE_2D_ARRAY,G.__webglTexture,t.TEXTURE0+T)}function z(k,T){const G=i.get(k);if(k.version>0&&G.__version!==k.version){Te(G,k,T);return}n.bindTexture(t.TEXTURE_3D,G.__webglTexture,t.TEXTURE0+T)}function Q(k,T){const G=i.get(k);if(k.version>0&&G.__version!==k.version){ee(G,k,T);return}n.bindTexture(t.TEXTURE_CUBE_MAP,G.__webglTexture,t.TEXTURE0+T)}const Y={[Jo]:t.REPEAT,[Er]:t.CLAMP_TO_EDGE,[Ug]:t.MIRRORED_REPEAT},he={[Fi]:t.NEAREST,[xH]:t.NEAREST_MIPMAP_NEAREST,[xd]:t.NEAREST_MIPMAP_LINEAR,[Ui]:t.LINEAR,[Fp]:t.LINEAR_MIPMAP_NEAREST,[Sa]:t.LINEAR_MIPMAP_LINEAR},ne={[TH]:t.NEVER,[IH]:t.ALWAYS,[AH]:t.LESS,[vA]:t.LEQUAL,[CH]:t.EQUAL,[DH]:t.GEQUAL,[PH]:t.GREATER,[RH]:t.NOTEQUAL};function Z(k,T){if(T.type===$r&&e.has("OES_texture_float_linear")===!1&&(T.magFilter===Ui||T.magFilter===Fp||T.magFilter===xd||T.magFilter===Sa||T.minFilter===Ui||T.minFilter===Fp||T.minFilter===xd||T.minFilter===Sa)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),t.texParameteri(k,t.TEXTURE_WRAP_S,Y[T.wrapS]),t.texParameteri(k,t.TEXTURE_WRAP_T,Y[T.wrapT]),(k===t.TEXTURE_3D||k===t.TEXTURE_2D_ARRAY)&&t.texParameteri(k,t.TEXTURE_WRAP_R,Y[T.wrapR]),t.texParameteri(k,t.TEXTURE_MAG_FILTER,he[T.magFilter]),t.texParameteri(k,t.TEXTURE_MIN_FILTER,he[T.minFilter]),T.compareFunction&&(t.texParameteri(k,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(k,t.TEXTURE_COMPARE_FUNC,ne[T.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(T.magFilter===Fi||T.minFilter!==xd&&T.minFilter!==Sa||T.type===$r&&e.has("OES_texture_float_linear")===!1)return;if(T.anisotropy>1||i.get(T).__currentAnisotropy){const G=e.get("EXT_texture_filter_anisotropic");t.texParameterf(k,G.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(T.anisotropy,r.getMaxAnisotropy())),i.get(T).__currentAnisotropy=T.anisotropy}}}function _e(k,T){let G=!1;k.__webglInit===void 0&&(k.__webglInit=!0,T.addEventListener("dispose",L));const oe=T.source;let pe=f.get(oe);pe===void 0&&(pe={},f.set(oe,pe));const ue=V(T);if(ue!==k.__cacheKey){pe[ue]===void 0&&(pe[ue]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,G=!0),pe[ue].usedTimes++;const Re=pe[k.__cacheKey];Re!==void 0&&(pe[k.__cacheKey].usedTimes--,Re.usedTimes===0&&R(T)),k.__cacheKey=ue,k.__webglTexture=pe[ue].texture}return G}function Te(k,T,G){let oe=t.TEXTURE_2D;(T.isDataArrayTexture||T.isCompressedArrayTexture)&&(oe=t.TEXTURE_2D_ARRAY),T.isData3DTexture&&(oe=t.TEXTURE_3D);const pe=_e(k,T),ue=T.source;n.bindTexture(oe,k.__webglTexture,t.TEXTURE0+G);const Re=i.get(ue);if(ue.version!==Re.__version||pe===!0){n.activeTexture(t.TEXTURE0+G);const Ae=en.getPrimaries(en.workingColorSpace),Le=T.colorSpace===so?null:en.getPrimaries(T.colorSpace),ze=T.colorSpace===so||Ae===Le?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,T.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,T.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,T.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,ze);let Pe=m(T.image,!1,r.maxTextureSize);Pe=ye(T,Pe);const Ue=a.convert(T.format,T.colorSpace),xt=a.convert(T.type);let lt=b(T.internalFormat,Ue,xt,T.colorSpace,T.isVideoTexture);Z(oe,T);let je;const ht=T.mipmaps,tt=T.isVideoTexture!==!0,kt=Re.__version===void 0||pe===!0,P=ue.dataReady,de=w(T,Pe);if(T.isDepthTexture)lt=y(T.format===Fl,T.type),kt&&(tt?n.texStorage2D(t.TEXTURE_2D,1,lt,Pe.width,Pe.height):n.texImage2D(t.TEXTURE_2D,0,lt,Pe.width,Pe.height,0,Ue,xt,null));else if(T.isDataTexture)if(ht.length>0){tt&&kt&&n.texStorage2D(t.TEXTURE_2D,de,lt,ht[0].width,ht[0].height);for(let ge=0,Se=ht.length;ge<Se;ge++)je=ht[ge],tt?P&&n.texSubImage2D(t.TEXTURE_2D,ge,0,0,je.width,je.height,Ue,xt,je.data):n.texImage2D(t.TEXTURE_2D,ge,lt,je.width,je.height,0,Ue,xt,je.data);T.generateMipmaps=!1}else tt?(kt&&n.texStorage2D(t.TEXTURE_2D,de,lt,Pe.width,Pe.height),P&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,Pe.width,Pe.height,Ue,xt,Pe.data)):n.texImage2D(t.TEXTURE_2D,0,lt,Pe.width,Pe.height,0,Ue,xt,Pe.data);else if(T.isCompressedTexture)if(T.isCompressedArrayTexture){tt&&kt&&n.texStorage3D(t.TEXTURE_2D_ARRAY,de,lt,ht[0].width,ht[0].height,Pe.depth);for(let ge=0,Se=ht.length;ge<Se;ge++)if(je=ht[ge],T.format!==ur)if(Ue!==null)if(tt){if(P)if(T.layerUpdates.size>0){const Ie=sS(je.width,je.height,T.format,T.type);for(const rt of T.layerUpdates){const vt=je.data.subarray(rt*Ie/je.data.BYTES_PER_ELEMENT,(rt+1)*Ie/je.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,ge,0,0,rt,je.width,je.height,1,Ue,vt,0,0)}T.clearLayerUpdates()}else n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,ge,0,0,0,je.width,je.height,Pe.depth,Ue,je.data,0,0)}else n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,ge,lt,je.width,je.height,Pe.depth,0,je.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else tt?P&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,ge,0,0,0,je.width,je.height,Pe.depth,Ue,xt,je.data):n.texImage3D(t.TEXTURE_2D_ARRAY,ge,lt,je.width,je.height,Pe.depth,0,Ue,xt,je.data)}else{tt&&kt&&n.texStorage2D(t.TEXTURE_2D,de,lt,ht[0].width,ht[0].height);for(let ge=0,Se=ht.length;ge<Se;ge++)je=ht[ge],T.format!==ur?Ue!==null?tt?P&&n.compressedTexSubImage2D(t.TEXTURE_2D,ge,0,0,je.width,je.height,Ue,je.data):n.compressedTexImage2D(t.TEXTURE_2D,ge,lt,je.width,je.height,0,je.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):tt?P&&n.texSubImage2D(t.TEXTURE_2D,ge,0,0,je.width,je.height,Ue,xt,je.data):n.texImage2D(t.TEXTURE_2D,ge,lt,je.width,je.height,0,Ue,xt,je.data)}else if(T.isDataArrayTexture)if(tt){if(kt&&n.texStorage3D(t.TEXTURE_2D_ARRAY,de,lt,Pe.width,Pe.height,Pe.depth),P)if(T.layerUpdates.size>0){const ge=sS(Pe.width,Pe.height,T.format,T.type);for(const Se of T.layerUpdates){const Ie=Pe.data.subarray(Se*ge/Pe.data.BYTES_PER_ELEMENT,(Se+1)*ge/Pe.data.BYTES_PER_ELEMENT);n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,Se,Pe.width,Pe.height,1,Ue,xt,Ie)}T.clearLayerUpdates()}else n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,Pe.width,Pe.height,Pe.depth,Ue,xt,Pe.data)}else n.texImage3D(t.TEXTURE_2D_ARRAY,0,lt,Pe.width,Pe.height,Pe.depth,0,Ue,xt,Pe.data);else if(T.isData3DTexture)tt?(kt&&n.texStorage3D(t.TEXTURE_3D,de,lt,Pe.width,Pe.height,Pe.depth),P&&n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,Pe.width,Pe.height,Pe.depth,Ue,xt,Pe.data)):n.texImage3D(t.TEXTURE_3D,0,lt,Pe.width,Pe.height,Pe.depth,0,Ue,xt,Pe.data);else if(T.isFramebufferTexture){if(kt)if(tt)n.texStorage2D(t.TEXTURE_2D,de,lt,Pe.width,Pe.height);else{let ge=Pe.width,Se=Pe.height;for(let Ie=0;Ie<de;Ie++)n.texImage2D(t.TEXTURE_2D,Ie,lt,ge,Se,0,Ue,xt,null),ge>>=1,Se>>=1}}else if(ht.length>0){if(tt&&kt){const ge=Me(ht[0]);n.texStorage2D(t.TEXTURE_2D,de,lt,ge.width,ge.height)}for(let ge=0,Se=ht.length;ge<Se;ge++)je=ht[ge],tt?P&&n.texSubImage2D(t.TEXTURE_2D,ge,0,0,Ue,xt,je):n.texImage2D(t.TEXTURE_2D,ge,lt,Ue,xt,je);T.generateMipmaps=!1}else if(tt){if(kt){const ge=Me(Pe);n.texStorage2D(t.TEXTURE_2D,de,lt,ge.width,ge.height)}P&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,Ue,xt,Pe)}else n.texImage2D(t.TEXTURE_2D,0,lt,Ue,xt,Pe);g(T)&&v(oe),Re.__version=ue.version,T.onUpdate&&T.onUpdate(T)}k.__version=T.version}function ee(k,T,G){if(T.image.length!==6)return;const oe=_e(k,T),pe=T.source;n.bindTexture(t.TEXTURE_CUBE_MAP,k.__webglTexture,t.TEXTURE0+G);const ue=i.get(pe);if(pe.version!==ue.__version||oe===!0){n.activeTexture(t.TEXTURE0+G);const Re=en.getPrimaries(en.workingColorSpace),Ae=T.colorSpace===so?null:en.getPrimaries(T.colorSpace),Le=T.colorSpace===so||Re===Ae?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,T.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,T.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,T.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Le);const ze=T.isCompressedTexture||T.image[0].isCompressedTexture,Pe=T.image[0]&&T.image[0].isDataTexture,Ue=[];for(let Se=0;Se<6;Se++)!ze&&!Pe?Ue[Se]=m(T.image[Se],!0,r.maxCubemapSize):Ue[Se]=Pe?T.image[Se].image:T.image[Se],Ue[Se]=ye(T,Ue[Se]);const xt=Ue[0],lt=a.convert(T.format,T.colorSpace),je=a.convert(T.type),ht=b(T.internalFormat,lt,je,T.colorSpace),tt=T.isVideoTexture!==!0,kt=ue.__version===void 0||oe===!0,P=pe.dataReady;let de=w(T,xt);Z(t.TEXTURE_CUBE_MAP,T);let ge;if(ze){tt&&kt&&n.texStorage2D(t.TEXTURE_CUBE_MAP,de,ht,xt.width,xt.height);for(let Se=0;Se<6;Se++){ge=Ue[Se].mipmaps;for(let Ie=0;Ie<ge.length;Ie++){const rt=ge[Ie];T.format!==ur?lt!==null?tt?P&&n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie,0,0,rt.width,rt.height,lt,rt.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie,ht,rt.width,rt.height,0,rt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):tt?P&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie,0,0,rt.width,rt.height,lt,je,rt.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie,ht,rt.width,rt.height,0,lt,je,rt.data)}}}else{if(ge=T.mipmaps,tt&&kt){ge.length>0&&de++;const Se=Me(Ue[0]);n.texStorage2D(t.TEXTURE_CUBE_MAP,de,ht,Se.width,Se.height)}for(let Se=0;Se<6;Se++)if(Pe){tt?P&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,0,0,0,Ue[Se].width,Ue[Se].height,lt,je,Ue[Se].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,0,ht,Ue[Se].width,Ue[Se].height,0,lt,je,Ue[Se].data);for(let Ie=0;Ie<ge.length;Ie++){const vt=ge[Ie].image[Se].image;tt?P&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie+1,0,0,vt.width,vt.height,lt,je,vt.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie+1,ht,vt.width,vt.height,0,lt,je,vt.data)}}else{tt?P&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,0,0,0,lt,je,Ue[Se]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,0,ht,lt,je,Ue[Se]);for(let Ie=0;Ie<ge.length;Ie++){const rt=ge[Ie];tt?P&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie+1,0,0,lt,je,rt.image[Se]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Se,Ie+1,ht,lt,je,rt.image[Se])}}}g(T)&&v(t.TEXTURE_CUBE_MAP),ue.__version=pe.version,T.onUpdate&&T.onUpdate(T)}k.__version=T.version}function le(k,T,G,oe,pe,ue){const Re=a.convert(G.format,G.colorSpace),Ae=a.convert(G.type),Le=b(G.internalFormat,Re,Ae,G.colorSpace);if(!i.get(T).__hasExternalTextures){const Pe=Math.max(1,T.width>>ue),Ue=Math.max(1,T.height>>ue);pe===t.TEXTURE_3D||pe===t.TEXTURE_2D_ARRAY?n.texImage3D(pe,ue,Le,Pe,Ue,T.depth,0,Re,Ae,null):n.texImage2D(pe,ue,Le,Pe,Ue,0,Re,Ae,null)}n.bindFramebuffer(t.FRAMEBUFFER,k),ie(T)?s.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,oe,pe,i.get(G).__webglTexture,0,J(T)):(pe===t.TEXTURE_2D||pe>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&pe<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,oe,pe,i.get(G).__webglTexture,ue),n.bindFramebuffer(t.FRAMEBUFFER,null)}function re(k,T,G){if(t.bindRenderbuffer(t.RENDERBUFFER,k),T.depthBuffer){const oe=T.depthTexture,pe=oe&&oe.isDepthTexture?oe.type:null,ue=y(T.stencilBuffer,pe),Re=T.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Ae=J(T);ie(T)?s.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Ae,ue,T.width,T.height):G?t.renderbufferStorageMultisample(t.RENDERBUFFER,Ae,ue,T.width,T.height):t.renderbufferStorage(t.RENDERBUFFER,ue,T.width,T.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,Re,t.RENDERBUFFER,k)}else{const oe=T.textures;for(let pe=0;pe<oe.length;pe++){const ue=oe[pe],Re=a.convert(ue.format,ue.colorSpace),Ae=a.convert(ue.type),Le=b(ue.internalFormat,Re,Ae,ue.colorSpace),ze=J(T);G&&ie(T)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ze,Le,T.width,T.height):ie(T)?s.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ze,Le,T.width,T.height):t.renderbufferStorage(t.RENDERBUFFER,Le,T.width,T.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function W(k,T){if(T&&T.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,k),!(T.depthTexture&&T.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(T.depthTexture).__webglTexture||T.depthTexture.image.width!==T.width||T.depthTexture.image.height!==T.height)&&(T.depthTexture.image.width=T.width,T.depthTexture.image.height=T.height,T.depthTexture.needsUpdate=!0),X(T.depthTexture,0);const oe=i.get(T.depthTexture).__webglTexture,pe=J(T);if(T.depthTexture.format===xl)ie(T)?s.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,oe,0,pe):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,oe,0);else if(T.depthTexture.format===Fl)ie(T)?s.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,oe,0,pe):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,oe,0);else throw new Error("Unknown depthTexture format")}function ce(k){const T=i.get(k),G=k.isWebGLCubeRenderTarget===!0;if(k.depthTexture&&!T.__autoAllocateDepthBuffer){if(G)throw new Error("target.depthTexture not supported in Cube render targets");W(T.__webglFramebuffer,k)}else if(G){T.__webglDepthbuffer=[];for(let oe=0;oe<6;oe++)n.bindFramebuffer(t.FRAMEBUFFER,T.__webglFramebuffer[oe]),T.__webglDepthbuffer[oe]=t.createRenderbuffer(),re(T.__webglDepthbuffer[oe],k,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,T.__webglFramebuffer),T.__webglDepthbuffer=t.createRenderbuffer(),re(T.__webglDepthbuffer,k,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function me(k,T,G){const oe=i.get(k);T!==void 0&&le(oe.__webglFramebuffer,k,k.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),G!==void 0&&ce(k)}function Ce(k){const T=k.texture,G=i.get(k),oe=i.get(T);k.addEventListener("dispose",_);const pe=k.textures,ue=k.isWebGLCubeRenderTarget===!0,Re=pe.length>1;if(Re||(oe.__webglTexture===void 0&&(oe.__webglTexture=t.createTexture()),oe.__version=T.version,o.memory.textures++),ue){G.__webglFramebuffer=[];for(let Ae=0;Ae<6;Ae++)if(T.mipmaps&&T.mipmaps.length>0){G.__webglFramebuffer[Ae]=[];for(let Le=0;Le<T.mipmaps.length;Le++)G.__webglFramebuffer[Ae][Le]=t.createFramebuffer()}else G.__webglFramebuffer[Ae]=t.createFramebuffer()}else{if(T.mipmaps&&T.mipmaps.length>0){G.__webglFramebuffer=[];for(let Ae=0;Ae<T.mipmaps.length;Ae++)G.__webglFramebuffer[Ae]=t.createFramebuffer()}else G.__webglFramebuffer=t.createFramebuffer();if(Re)for(let Ae=0,Le=pe.length;Ae<Le;Ae++){const ze=i.get(pe[Ae]);ze.__webglTexture===void 0&&(ze.__webglTexture=t.createTexture(),o.memory.textures++)}if(k.samples>0&&ie(k)===!1){G.__webglMultisampledFramebuffer=t.createFramebuffer(),G.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,G.__webglMultisampledFramebuffer);for(let Ae=0;Ae<pe.length;Ae++){const Le=pe[Ae];G.__webglColorRenderbuffer[Ae]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,G.__webglColorRenderbuffer[Ae]);const ze=a.convert(Le.format,Le.colorSpace),Pe=a.convert(Le.type),Ue=b(Le.internalFormat,ze,Pe,Le.colorSpace,k.isXRRenderTarget===!0),xt=J(k);t.renderbufferStorageMultisample(t.RENDERBUFFER,xt,Ue,k.width,k.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ae,t.RENDERBUFFER,G.__webglColorRenderbuffer[Ae])}t.bindRenderbuffer(t.RENDERBUFFER,null),k.depthBuffer&&(G.__webglDepthRenderbuffer=t.createRenderbuffer(),re(G.__webglDepthRenderbuffer,k,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(ue){n.bindTexture(t.TEXTURE_CUBE_MAP,oe.__webglTexture),Z(t.TEXTURE_CUBE_MAP,T);for(let Ae=0;Ae<6;Ae++)if(T.mipmaps&&T.mipmaps.length>0)for(let Le=0;Le<T.mipmaps.length;Le++)le(G.__webglFramebuffer[Ae][Le],k,T,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+Ae,Le);else le(G.__webglFramebuffer[Ae],k,T,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+Ae,0);g(T)&&v(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(Re){for(let Ae=0,Le=pe.length;Ae<Le;Ae++){const ze=pe[Ae],Pe=i.get(ze);n.bindTexture(t.TEXTURE_2D,Pe.__webglTexture),Z(t.TEXTURE_2D,ze),le(G.__webglFramebuffer,k,ze,t.COLOR_ATTACHMENT0+Ae,t.TEXTURE_2D,0),g(ze)&&v(t.TEXTURE_2D)}n.unbindTexture()}else{let Ae=t.TEXTURE_2D;if((k.isWebGL3DRenderTarget||k.isWebGLArrayRenderTarget)&&(Ae=k.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY),n.bindTexture(Ae,oe.__webglTexture),Z(Ae,T),T.mipmaps&&T.mipmaps.length>0)for(let Le=0;Le<T.mipmaps.length;Le++)le(G.__webglFramebuffer[Le],k,T,t.COLOR_ATTACHMENT0,Ae,Le);else le(G.__webglFramebuffer,k,T,t.COLOR_ATTACHMENT0,Ae,0);g(T)&&v(Ae),n.unbindTexture()}k.depthBuffer&&ce(k)}function $e(k){const T=k.textures;for(let G=0,oe=T.length;G<oe;G++){const pe=T[G];if(g(pe)){const ue=k.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,Re=i.get(pe).__webglTexture;n.bindTexture(ue,Re),v(ue),n.unbindTexture()}}}const j=[],H=[];function B(k){if(k.samples>0){if(ie(k)===!1){const T=k.textures,G=k.width,oe=k.height;let pe=t.COLOR_BUFFER_BIT;const ue=k.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Re=i.get(k),Ae=T.length>1;if(Ae)for(let Le=0;Le<T.length;Le++)n.bindFramebuffer(t.FRAMEBUFFER,Re.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Le,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,Re.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Le,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,Re.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,Re.__webglFramebuffer);for(let Le=0;Le<T.length;Le++){if(k.resolveDepthBuffer&&(k.depthBuffer&&(pe|=t.DEPTH_BUFFER_BIT),k.stencilBuffer&&k.resolveStencilBuffer&&(pe|=t.STENCIL_BUFFER_BIT)),Ae){t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,Re.__webglColorRenderbuffer[Le]);const ze=i.get(T[Le]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,ze,0)}t.blitFramebuffer(0,0,G,oe,0,0,G,oe,pe,t.NEAREST),l===!0&&(j.length=0,H.length=0,j.push(t.COLOR_ATTACHMENT0+Le),k.depthBuffer&&k.resolveDepthBuffer===!1&&(j.push(ue),H.push(ue),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,H)),t.invalidateFramebuffer(t.READ_FRAMEBUFFER,j))}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),Ae)for(let Le=0;Le<T.length;Le++){n.bindFramebuffer(t.FRAMEBUFFER,Re.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Le,t.RENDERBUFFER,Re.__webglColorRenderbuffer[Le]);const ze=i.get(T[Le]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,Re.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Le,t.TEXTURE_2D,ze,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,Re.__webglMultisampledFramebuffer)}else if(k.depthBuffer&&k.resolveDepthBuffer===!1&&l){const T=k.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[T])}}}function J(k){return Math.min(r.maxSamples,k.samples)}function ie(k){const T=i.get(k);return k.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&T.__useRenderToTexture!==!1}function fe(k){const T=o.render.frame;u.get(k)!==T&&(u.set(k,T),k.update())}function ye(k,T){const G=k.colorSpace,oe=k.format,pe=k.type;return k.isCompressedTexture===!0||k.isVideoTexture===!0||G!==Co&&G!==so&&(en.getTransfer(G)===fn?(oe!==ur||pe!==Da)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",G)),T}function Me(k){return typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement?(c.width=k.naturalWidth||k.width,c.height=k.naturalHeight||k.height):typeof VideoFrame<"u"&&k instanceof VideoFrame?(c.width=k.displayWidth,c.height=k.displayHeight):(c.width=k.width,c.height=k.height),c}this.allocateTextureUnit=O,this.resetTextureUnits=D,this.setTexture2D=X,this.setTexture2DArray=K,this.setTexture3D=z,this.setTextureCube=Q,this.rebindTextures=me,this.setupRenderTarget=Ce,this.updateRenderTargetMipmap=$e,this.updateMultisampleRenderTarget=B,this.setupDepthRenderbuffer=ce,this.setupFrameBufferTexture=le,this.useMultisampledRTT=ie}function K9(t,e){function n(i,r=so){let a;const o=en.getTransfer(r);if(i===Da)return t.UNSIGNED_BYTE;if(i===$y)return t.UNSIGNED_SHORT_4_4_4_4;if(i===Jy)return t.UNSIGNED_SHORT_5_5_5_1;if(i===cA)return t.UNSIGNED_INT_5_9_9_9_REV;if(i===sA)return t.BYTE;if(i===lA)return t.SHORT;if(i===Su)return t.UNSIGNED_SHORT;if(i===Zy)return t.INT;if(i===fs)return t.UNSIGNED_INT;if(i===$r)return t.FLOAT;if(i===ju)return t.HALF_FLOAT;if(i===uA)return t.ALPHA;if(i===dA)return t.RGB;if(i===ur)return t.RGBA;if(i===fA)return t.LUMINANCE;if(i===hA)return t.LUMINANCE_ALPHA;if(i===xl)return t.DEPTH_COMPONENT;if(i===Fl)return t.DEPTH_STENCIL;if(i===pA)return t.RED;if(i===e0)return t.RED_INTEGER;if(i===mA)return t.RG;if(i===t0)return t.RG_INTEGER;if(i===n0)return t.RGBA_INTEGER;if(i===uf||i===df||i===ff||i===hf)if(o===fn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===uf)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===df)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===ff)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===hf)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===uf)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===df)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===ff)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===hf)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===Fg||i===Bg||i===Vg||i===Hg)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===Fg)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===Bg)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===Vg)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===Hg)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===zg||i===Wg||i===Gg)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===zg||i===Wg)return o===fn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===Gg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===jg||i===Xg||i===Yg||i===qg||i===Kg||i===Qg||i===Zg||i===$g||i===Jg||i===ev||i===tv||i===nv||i===iv||i===rv)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===jg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===Xg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===Yg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===qg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===Kg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===Qg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===Zg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===$g)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===Jg)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===ev)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===tv)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===nv)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===iv)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===rv)return o===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===pf||i===av||i===ov)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===pf)return o===fn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===av)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===ov)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===gA||i===sv||i===lv||i===cv)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===pf)return a.COMPRESSED_RED_RGTC1_EXT;if(i===sv)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===lv)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===cv)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===Ul?t.UNSIGNED_INT_24_8:t[i]!==void 0?t[i]:null}return{convert:n}}class Q9 extends pi{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class dl extends Hn{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Z9={type:"move"};class um{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new dl,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new dl,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new te,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new te),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new dl,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new te,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new te),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const i of e.hand.values())this._getHandJoint(n,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,i){let r=null,a=null,o=null;const s=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const m of e.hand.values()){const g=n.getJointPose(m,i),v=this._getHandJoint(c,m);g!==null&&(v.matrix.fromArray(g.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.matrixWorldNeedsUpdate=!0,v.jointRadius=g.radius),v.visible=g!==null}const u=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],f=u.position.distanceTo(d.position),h=.02,p=.005;c.inputState.pinching&&f>h+p?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&f<=h-p&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(a=n.getPose(e.gripSpace,i),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));s!==null&&(r=n.getPose(e.targetRaySpace,i),r===null&&a!==null&&(r=a),r!==null&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(Z9)))}return s!==null&&(s.visible=r!==null),l!==null&&(l.visible=a!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const i=new dl;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[n.jointName]=i,e.add(i)}return e.joints[n.jointName]}}const $9=`
void main() {

	gl_Position = vec4( position, 1.0 );

}`,J9=`
uniform sampler2DArray depthColor;
uniform float depthWidth;
uniform float depthHeight;

void main() {

	vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );

	if ( coord.x >= 1.0 ) {

		gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;

	} else {

		gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;

	}

}`;class eG{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,n,i){if(this.texture===null){const r=new bi,a=e.properties.get(r);a.__webglTexture=n.texture,(n.depthNear!=i.depthNear||n.depthFar!=i.depthFar)&&(this.depthNear=n.depthNear,this.depthFar=n.depthFar),this.texture=r}}getMesh(e){if(this.texture!==null&&this.mesh===null){const n=e.cameras[0].viewport,i=new _o({vertexShader:$9,fragmentShader:J9,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new Tr(new Yh(20,20),i)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class tG extends Ss{constructor(e,n){super();const i=this;let r=null,a=1,o=null,s="local-floor",l=1,c=null,u=null,d=null,f=null,h=null,p=null;const m=new eG,g=n.getContextAttributes();let v=null,b=null;const y=[],w=[],L=new bt;let _=null;const E=new pi;E.layers.enable(1),E.viewport=new on;const R=new pi;R.layers.enable(2),R.viewport=new on;const S=[E,R],M=new Q9;M.layers.enable(1),M.layers.enable(2);let D=null,O=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let le=y[ee];return le===void 0&&(le=new um,y[ee]=le),le.getTargetRaySpace()},this.getControllerGrip=function(ee){let le=y[ee];return le===void 0&&(le=new um,y[ee]=le),le.getGripSpace()},this.getHand=function(ee){let le=y[ee];return le===void 0&&(le=new um,y[ee]=le),le.getHandSpace()};function V(ee){const le=w.indexOf(ee.inputSource);if(le===-1)return;const re=y[le];re!==void 0&&(re.update(ee.inputSource,ee.frame,c||o),re.dispatchEvent({type:ee.type,data:ee.inputSource}))}function X(){r.removeEventListener("select",V),r.removeEventListener("selectstart",V),r.removeEventListener("selectend",V),r.removeEventListener("squeeze",V),r.removeEventListener("squeezestart",V),r.removeEventListener("squeezeend",V),r.removeEventListener("end",X),r.removeEventListener("inputsourceschange",K);for(let ee=0;ee<y.length;ee++){const le=w[ee];le!==null&&(w[ee]=null,y[ee].disconnect(le))}D=null,O=null,m.reset(),e.setRenderTarget(v),h=null,f=null,d=null,r=null,b=null,Te.stop(),i.isPresenting=!1,e.setPixelRatio(_),e.setSize(L.width,L.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(ee){a=ee,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(ee){s=ee,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||o},this.setReferenceSpace=function(ee){c=ee},this.getBaseLayer=function(){return f!==null?f:h},this.getBinding=function(){return d},this.getFrame=function(){return p},this.getSession=function(){return r},this.setSession=async function(ee){if(r=ee,r!==null){if(v=e.getRenderTarget(),r.addEventListener("select",V),r.addEventListener("selectstart",V),r.addEventListener("selectend",V),r.addEventListener("squeeze",V),r.addEventListener("squeezestart",V),r.addEventListener("squeezeend",V),r.addEventListener("end",X),r.addEventListener("inputsourceschange",K),g.xrCompatible!==!0&&await n.makeXRCompatible(),_=e.getPixelRatio(),e.getSize(L),r.renderState.layers===void 0){const le={antialias:g.antialias,alpha:!0,depth:g.depth,stencil:g.stencil,framebufferScaleFactor:a};h=new XRWebGLLayer(r,n,le),r.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),b=new hs(h.framebufferWidth,h.framebufferHeight,{format:ur,type:Da,colorSpace:e.outputColorSpace,stencilBuffer:g.stencil})}else{let le=null,re=null,W=null;g.depth&&(W=g.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,le=g.stencil?Fl:xl,re=g.stencil?Ul:fs);const ce={colorFormat:n.RGBA8,depthFormat:W,scaleFactor:a};d=new XRWebGLBinding(r,n),f=d.createProjectionLayer(ce),r.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),b=new hs(f.textureWidth,f.textureHeight,{format:ur,type:Da,depthTexture:new PA(f.textureWidth,f.textureHeight,re,void 0,void 0,void 0,void 0,void 0,void 0,le),stencilBuffer:g.stencil,colorSpace:e.outputColorSpace,samples:g.antialias?4:0,resolveDepthBuffer:f.ignoreDepthValues===!1})}b.isXRRenderTarget=!0,this.setFoveation(l),c=null,o=await r.requestReferenceSpace(s),Te.setContext(r),Te.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode},this.getDepthTexture=function(){return m.getDepthTexture()};function K(ee){for(let le=0;le<ee.removed.length;le++){const re=ee.removed[le],W=w.indexOf(re);W>=0&&(w[W]=null,y[W].disconnect(re))}for(let le=0;le<ee.added.length;le++){const re=ee.added[le];let W=w.indexOf(re);if(W===-1){for(let me=0;me<y.length;me++)if(me>=w.length){w.push(re),W=me;break}else if(w[me]===null){w[me]=re,W=me;break}if(W===-1)break}const ce=y[W];ce&&ce.connect(re)}}const z=new te,Q=new te;function Y(ee,le,re){z.setFromMatrixPosition(le.matrixWorld),Q.setFromMatrixPosition(re.matrixWorld);const W=z.distanceTo(Q),ce=le.projectionMatrix.elements,me=re.projectionMatrix.elements,Ce=ce[14]/(ce[10]-1),$e=ce[14]/(ce[10]+1),j=(ce[9]+1)/ce[5],H=(ce[9]-1)/ce[5],B=(ce[8]-1)/ce[0],J=(me[8]+1)/me[0],ie=Ce*B,fe=Ce*J,ye=W/(-B+J),Me=ye*-B;le.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(Me),ee.translateZ(ye),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const k=Ce+ye,T=$e+ye,G=ie-Me,oe=fe+(W-Me),pe=j*$e/T*k,ue=H*$e/T*k;ee.projectionMatrix.makePerspective(G,oe,pe,ue,k,T),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function he(ee,le){le===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(le.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(r===null)return;m.texture!==null&&(ee.near=m.depthNear,ee.far=m.depthFar),M.near=R.near=E.near=ee.near,M.far=R.far=E.far=ee.far,(D!==M.near||O!==M.far)&&(r.updateRenderState({depthNear:M.near,depthFar:M.far}),D=M.near,O=M.far,E.near=D,E.far=O,R.near=D,R.far=O,E.updateProjectionMatrix(),R.updateProjectionMatrix(),ee.updateProjectionMatrix());const le=ee.parent,re=M.cameras;he(M,le);for(let W=0;W<re.length;W++)he(re[W],le);re.length===2?Y(M,E,R):M.projectionMatrix.copy(E.projectionMatrix),ne(ee,M,le)};function ne(ee,le,re){re===null?ee.matrix.copy(le.matrixWorld):(ee.matrix.copy(re.matrixWorld),ee.matrix.invert(),ee.matrix.multiply(le.matrixWorld)),ee.matrix.decompose(ee.position,ee.quaternion,ee.scale),ee.updateMatrixWorld(!0),ee.projectionMatrix.copy(le.projectionMatrix),ee.projectionMatrixInverse.copy(le.projectionMatrixInverse),ee.isPerspectiveCamera&&(ee.fov=Bl*2*Math.atan(1/ee.projectionMatrix.elements[5]),ee.zoom=1)}this.getCamera=function(){return M},this.getFoveation=function(){if(!(f===null&&h===null))return l},this.setFoveation=function(ee){l=ee,f!==null&&(f.fixedFoveation=ee),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=ee)},this.hasDepthSensing=function(){return m.texture!==null},this.getDepthSensingMesh=function(){return m.getMesh(M)};let Z=null;function _e(ee,le){if(u=le.getViewerPose(c||o),p=le,u!==null){const re=u.views;h!==null&&(e.setRenderTargetFramebuffer(b,h.framebuffer),e.setRenderTarget(b));let W=!1;re.length!==M.cameras.length&&(M.cameras.length=0,W=!0);for(let me=0;me<re.length;me++){const Ce=re[me];let $e=null;if(h!==null)$e=h.getViewport(Ce);else{const H=d.getViewSubImage(f,Ce);$e=H.viewport,me===0&&(e.setRenderTargetTextures(b,H.colorTexture,f.ignoreDepthValues?void 0:H.depthStencilTexture),e.setRenderTarget(b))}let j=S[me];j===void 0&&(j=new pi,j.layers.enable(me),j.viewport=new on,S[me]=j),j.matrix.fromArray(Ce.transform.matrix),j.matrix.decompose(j.position,j.quaternion,j.scale),j.projectionMatrix.fromArray(Ce.projectionMatrix),j.projectionMatrixInverse.copy(j.projectionMatrix).invert(),j.viewport.set($e.x,$e.y,$e.width,$e.height),me===0&&(M.matrix.copy(j.matrix),M.matrix.decompose(M.position,M.quaternion,M.scale)),W===!0&&M.cameras.push(j)}const ce=r.enabledFeatures;if(ce&&ce.includes("depth-sensing")){const me=d.getDepthInformation(re[0]);me&&me.isValid&&me.texture&&m.init(e,me,r.renderState)}}for(let re=0;re<y.length;re++){const W=w[re],ce=y[re];W!==null&&ce!==void 0&&ce.update(W,le,c||o)}Z&&Z(ee,le),le.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:le}),p=null}const Te=new CA;Te.setAnimationLoop(_e),this.setAnimationLoop=function(ee){Z=ee},this.dispose=function(){}}}const Wo=new Rr,nG=new Rt;function iG(t,e){function n(g,v){g.matrixAutoUpdate===!0&&g.updateMatrix(),v.value.copy(g.matrix)}function i(g,v){v.color.getRGB(g.fogColor.value,EA(t)),v.isFog?(g.fogNear.value=v.near,g.fogFar.value=v.far):v.isFogExp2&&(g.fogDensity.value=v.density)}function r(g,v,b,y,w){v.isMeshBasicMaterial||v.isMeshLambertMaterial?a(g,v):v.isMeshToonMaterial?(a(g,v),d(g,v)):v.isMeshPhongMaterial?(a(g,v),u(g,v)):v.isMeshStandardMaterial?(a(g,v),f(g,v),v.isMeshPhysicalMaterial&&h(g,v,w)):v.isMeshMatcapMaterial?(a(g,v),p(g,v)):v.isMeshDepthMaterial?a(g,v):v.isMeshDistanceMaterial?(a(g,v),m(g,v)):v.isMeshNormalMaterial?a(g,v):v.isLineBasicMaterial?(o(g,v),v.isLineDashedMaterial&&s(g,v)):v.isPointsMaterial?l(g,v,b,y):v.isSpriteMaterial?c(g,v):v.isShadowMaterial?(g.color.value.copy(v.color),g.opacity.value=v.opacity):v.isShaderMaterial&&(v.uniformsNeedUpdate=!1)}function a(g,v){g.opacity.value=v.opacity,v.color&&g.diffuse.value.copy(v.color),v.emissive&&g.emissive.value.copy(v.emissive).multiplyScalar(v.emissiveIntensity),v.map&&(g.map.value=v.map,n(v.map,g.mapTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,n(v.alphaMap,g.alphaMapTransform)),v.bumpMap&&(g.bumpMap.value=v.bumpMap,n(v.bumpMap,g.bumpMapTransform),g.bumpScale.value=v.bumpScale,v.side===Hi&&(g.bumpScale.value*=-1)),v.normalMap&&(g.normalMap.value=v.normalMap,n(v.normalMap,g.normalMapTransform),g.normalScale.value.copy(v.normalScale),v.side===Hi&&g.normalScale.value.negate()),v.displacementMap&&(g.displacementMap.value=v.displacementMap,n(v.displacementMap,g.displacementMapTransform),g.displacementScale.value=v.displacementScale,g.displacementBias.value=v.displacementBias),v.emissiveMap&&(g.emissiveMap.value=v.emissiveMap,n(v.emissiveMap,g.emissiveMapTransform)),v.specularMap&&(g.specularMap.value=v.specularMap,n(v.specularMap,g.specularMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest);const b=e.get(v),y=b.envMap,w=b.envMapRotation;y&&(g.envMap.value=y,Wo.copy(w),Wo.x*=-1,Wo.y*=-1,Wo.z*=-1,y.isCubeTexture&&y.isRenderTargetTexture===!1&&(Wo.y*=-1,Wo.z*=-1),g.envMapRotation.value.setFromMatrix4(nG.makeRotationFromEuler(Wo)),g.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=v.reflectivity,g.ior.value=v.ior,g.refractionRatio.value=v.refractionRatio),v.lightMap&&(g.lightMap.value=v.lightMap,g.lightMapIntensity.value=v.lightMapIntensity,n(v.lightMap,g.lightMapTransform)),v.aoMap&&(g.aoMap.value=v.aoMap,g.aoMapIntensity.value=v.aoMapIntensity,n(v.aoMap,g.aoMapTransform))}function o(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,v.map&&(g.map.value=v.map,n(v.map,g.mapTransform))}function s(g,v){g.dashSize.value=v.dashSize,g.totalSize.value=v.dashSize+v.gapSize,g.scale.value=v.scale}function l(g,v,b,y){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.size.value=v.size*b,g.scale.value=y*.5,v.map&&(g.map.value=v.map,n(v.map,g.uvTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,n(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function c(g,v){g.diffuse.value.copy(v.color),g.opacity.value=v.opacity,g.rotation.value=v.rotation,v.map&&(g.map.value=v.map,n(v.map,g.mapTransform)),v.alphaMap&&(g.alphaMap.value=v.alphaMap,n(v.alphaMap,g.alphaMapTransform)),v.alphaTest>0&&(g.alphaTest.value=v.alphaTest)}function u(g,v){g.specular.value.copy(v.specular),g.shininess.value=Math.max(v.shininess,1e-4)}function d(g,v){v.gradientMap&&(g.gradientMap.value=v.gradientMap)}function f(g,v){g.metalness.value=v.metalness,v.metalnessMap&&(g.metalnessMap.value=v.metalnessMap,n(v.metalnessMap,g.metalnessMapTransform)),g.roughness.value=v.roughness,v.roughnessMap&&(g.roughnessMap.value=v.roughnessMap,n(v.roughnessMap,g.roughnessMapTransform)),v.envMap&&(g.envMapIntensity.value=v.envMapIntensity)}function h(g,v,b){g.ior.value=v.ior,v.sheen>0&&(g.sheenColor.value.copy(v.sheenColor).multiplyScalar(v.sheen),g.sheenRoughness.value=v.sheenRoughness,v.sheenColorMap&&(g.sheenColorMap.value=v.sheenColorMap,n(v.sheenColorMap,g.sheenColorMapTransform)),v.sheenRoughnessMap&&(g.sheenRoughnessMap.value=v.sheenRoughnessMap,n(v.sheenRoughnessMap,g.sheenRoughnessMapTransform))),v.clearcoat>0&&(g.clearcoat.value=v.clearcoat,g.clearcoatRoughness.value=v.clearcoatRoughness,v.clearcoatMap&&(g.clearcoatMap.value=v.clearcoatMap,n(v.clearcoatMap,g.clearcoatMapTransform)),v.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=v.clearcoatRoughnessMap,n(v.clearcoatRoughnessMap,g.clearcoatRoughnessMapTransform)),v.clearcoatNormalMap&&(g.clearcoatNormalMap.value=v.clearcoatNormalMap,n(v.clearcoatNormalMap,g.clearcoatNormalMapTransform),g.clearcoatNormalScale.value.copy(v.clearcoatNormalScale),v.side===Hi&&g.clearcoatNormalScale.value.negate())),v.dispersion>0&&(g.dispersion.value=v.dispersion),v.iridescence>0&&(g.iridescence.value=v.iridescence,g.iridescenceIOR.value=v.iridescenceIOR,g.iridescenceThicknessMinimum.value=v.iridescenceThicknessRange[0],g.iridescenceThicknessMaximum.value=v.iridescenceThicknessRange[1],v.iridescenceMap&&(g.iridescenceMap.value=v.iridescenceMap,n(v.iridescenceMap,g.iridescenceMapTransform)),v.iridescenceThicknessMap&&(g.iridescenceThicknessMap.value=v.iridescenceThicknessMap,n(v.iridescenceThicknessMap,g.iridescenceThicknessMapTransform))),v.transmission>0&&(g.transmission.value=v.transmission,g.transmissionSamplerMap.value=b.texture,g.transmissionSamplerSize.value.set(b.width,b.height),v.transmissionMap&&(g.transmissionMap.value=v.transmissionMap,n(v.transmissionMap,g.transmissionMapTransform)),g.thickness.value=v.thickness,v.thicknessMap&&(g.thicknessMap.value=v.thicknessMap,n(v.thicknessMap,g.thicknessMapTransform)),g.attenuationDistance.value=v.attenuationDistance,g.attenuationColor.value.copy(v.attenuationColor)),v.anisotropy>0&&(g.anisotropyVector.value.set(v.anisotropy*Math.cos(v.anisotropyRotation),v.anisotropy*Math.sin(v.anisotropyRotation)),v.anisotropyMap&&(g.anisotropyMap.value=v.anisotropyMap,n(v.anisotropyMap,g.anisotropyMapTransform))),g.specularIntensity.value=v.specularIntensity,g.specularColor.value.copy(v.specularColor),v.specularColorMap&&(g.specularColorMap.value=v.specularColorMap,n(v.specularColorMap,g.specularColorMapTransform)),v.specularIntensityMap&&(g.specularIntensityMap.value=v.specularIntensityMap,n(v.specularIntensityMap,g.specularIntensityMapTransform))}function p(g,v){v.matcap&&(g.matcap.value=v.matcap)}function m(g,v){const b=e.get(v).light;g.referencePosition.value.setFromMatrixPosition(b.matrixWorld),g.nearDistance.value=b.shadow.camera.near,g.farDistance.value=b.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:r}}function rG(t,e,n,i){let r={},a={},o=[];const s=t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS);function l(b,y){const w=y.program;i.uniformBlockBinding(b,w)}function c(b,y){let w=r[b.id];w===void 0&&(p(b),w=u(b),r[b.id]=w,b.addEventListener("dispose",g));const L=y.program;i.updateUBOMapping(b,L);const _=e.render.frame;a[b.id]!==_&&(f(b),a[b.id]=_)}function u(b){const y=d();b.__bindingPointIndex=y;const w=t.createBuffer(),L=b.__size,_=b.usage;return t.bindBuffer(t.UNIFORM_BUFFER,w),t.bufferData(t.UNIFORM_BUFFER,L,_),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,y,w),w}function d(){for(let b=0;b<s;b++)if(o.indexOf(b)===-1)return o.push(b),b;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function f(b){const y=r[b.id],w=b.uniforms,L=b.__cache;t.bindBuffer(t.UNIFORM_BUFFER,y);for(let _=0,E=w.length;_<E;_++){const R=Array.isArray(w[_])?w[_]:[w[_]];for(let S=0,M=R.length;S<M;S++){const D=R[S];if(h(D,_,S,L)===!0){const O=D.__offset,V=Array.isArray(D.value)?D.value:[D.value];let X=0;for(let K=0;K<V.length;K++){const z=V[K],Q=m(z);typeof z=="number"||typeof z=="boolean"?(D.__data[0]=z,t.bufferSubData(t.UNIFORM_BUFFER,O+X,D.__data)):z.isMatrix3?(D.__data[0]=z.elements[0],D.__data[1]=z.elements[1],D.__data[2]=z.elements[2],D.__data[3]=0,D.__data[4]=z.elements[3],D.__data[5]=z.elements[4],D.__data[6]=z.elements[5],D.__data[7]=0,D.__data[8]=z.elements[6],D.__data[9]=z.elements[7],D.__data[10]=z.elements[8],D.__data[11]=0):(z.toArray(D.__data,X),X+=Q.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,O,D.__data)}}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function h(b,y,w,L){const _=b.value,E=y+"_"+w;if(L[E]===void 0)return typeof _=="number"||typeof _=="boolean"?L[E]=_:L[E]=_.clone(),!0;{const R=L[E];if(typeof _=="number"||typeof _=="boolean"){if(R!==_)return L[E]=_,!0}else if(R.equals(_)===!1)return R.copy(_),!0}return!1}function p(b){const y=b.uniforms;let w=0;const L=16;for(let E=0,R=y.length;E<R;E++){const S=Array.isArray(y[E])?y[E]:[y[E]];for(let M=0,D=S.length;M<D;M++){const O=S[M],V=Array.isArray(O.value)?O.value:[O.value];for(let X=0,K=V.length;X<K;X++){const z=V[X],Q=m(z),Y=w%L,he=Y%Q.boundary,ne=Y+he;w+=he,ne!==0&&L-ne<Q.storage&&(w+=L-ne),O.__data=new Float32Array(Q.storage/Float32Array.BYTES_PER_ELEMENT),O.__offset=w,w+=Q.storage}}}const _=w%L;return _>0&&(w+=L-_),b.__size=w,b.__cache={},this}function m(b){const y={boundary:0,storage:0};return typeof b=="number"||typeof b=="boolean"?(y.boundary=4,y.storage=4):b.isVector2?(y.boundary=8,y.storage=8):b.isVector3||b.isColor?(y.boundary=16,y.storage=12):b.isVector4?(y.boundary=16,y.storage=16):b.isMatrix3?(y.boundary=48,y.storage=48):b.isMatrix4?(y.boundary=64,y.storage=64):b.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",b),y}function g(b){const y=b.target;y.removeEventListener("dispose",g);const w=o.indexOf(y.__bindingPointIndex);o.splice(w,1),t.deleteBuffer(r[y.id]),delete r[y.id],delete a[y.id]}function v(){for(const b in r)t.deleteBuffer(r[b]);o=[],r={},a={}}return{bind:l,update:c,dispose:v}}class aG{constructor(e={}){const{canvas:n=KH(),context:i=null,depth:r=!0,stencil:a=!1,alpha:o=!1,antialias:s=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let f;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");f=i.getContextAttributes().alpha}else f=o;const h=new Uint32Array(4),p=new Int32Array(4);let m=null,g=null;const v=[],b=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Qi,this.toneMapping=yo,this.toneMappingExposure=1;const y=this;let w=!1,L=0,_=0,E=null,R=-1,S=null;const M=new on,D=new on;let O=null;const V=new Ot(0);let X=0,K=n.width,z=n.height,Q=1,Y=null,he=null;const ne=new on(0,0,K,z),Z=new on(0,0,K,z);let _e=!1;const Te=new o0;let ee=!1,le=!1;const re=new Rt,W=new te,ce=new on,me={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Ce=!1;function $e(){return E===null?Q:1}let j=i;function H(F,ae){return n.getContext(F,ae)}try{const F={alpha:!0,depth:r,stencil:a,antialias:s,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:d};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${Qy}`),n.addEventListener("webglcontextlost",ge,!1),n.addEventListener("webglcontextrestored",Se,!1),n.addEventListener("webglcontextcreationerror",Ie,!1),j===null){const ae="webgl2";if(j=H(ae,F),j===null)throw H(ae)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(F){throw console.error("THREE.WebGLRenderer: "+F.message),F}let B,J,ie,fe,ye,Me,k,T,G,oe,pe,ue,Re,Ae,Le,ze,Pe,Ue,xt,lt,je,ht,tt,kt;function P(){B=new d6(j),B.init(),ht=new K9(j,B),J=new a6(j,B,e,ht),ie=new X9(j),fe=new p6(j),ye=new I9,Me=new q9(j,B,ie,ye,J,ht,fe),k=new s6(y),T=new u6(y),G=new xz(j),tt=new i6(j,G),oe=new f6(j,G,fe,tt),pe=new g6(j,oe,G,fe),xt=new m6(j,J,Me),ze=new o6(ye),ue=new D9(y,k,T,B,J,tt,ze),Re=new iG(y,ye),Ae=new O9,Le=new V9(B),Ue=new n6(y,k,T,ie,pe,f,l),Pe=new j9(y,pe,J),kt=new rG(j,fe,J,ie),lt=new r6(j,B,fe),je=new h6(j,B,fe),fe.programs=ue.programs,y.capabilities=J,y.extensions=B,y.properties=ye,y.renderLists=Ae,y.shadowMap=Pe,y.state=ie,y.info=fe}P();const de=new tG(y,j);this.xr=de,this.getContext=function(){return j},this.getContextAttributes=function(){return j.getContextAttributes()},this.forceContextLoss=function(){const F=B.get("WEBGL_lose_context");F&&F.loseContext()},this.forceContextRestore=function(){const F=B.get("WEBGL_lose_context");F&&F.restoreContext()},this.getPixelRatio=function(){return Q},this.setPixelRatio=function(F){F!==void 0&&(Q=F,this.setSize(K,z,!1))},this.getSize=function(F){return F.set(K,z)},this.setSize=function(F,ae,ve=!0){if(de.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}K=F,z=ae,n.width=Math.floor(F*Q),n.height=Math.floor(ae*Q),ve===!0&&(n.style.width=F+"px",n.style.height=ae+"px"),this.setViewport(0,0,F,ae)},this.getDrawingBufferSize=function(F){return F.set(K*Q,z*Q).floor()},this.setDrawingBufferSize=function(F,ae,ve){K=F,z=ae,Q=ve,n.width=Math.floor(F*ve),n.height=Math.floor(ae*ve),this.setViewport(0,0,F,ae)},this.getCurrentViewport=function(F){return F.copy(M)},this.getViewport=function(F){return F.copy(ne)},this.setViewport=function(F,ae,ve,be){F.isVector4?ne.set(F.x,F.y,F.z,F.w):ne.set(F,ae,ve,be),ie.viewport(M.copy(ne).multiplyScalar(Q).round())},this.getScissor=function(F){return F.copy(Z)},this.setScissor=function(F,ae,ve,be){F.isVector4?Z.set(F.x,F.y,F.z,F.w):Z.set(F,ae,ve,be),ie.scissor(D.copy(Z).multiplyScalar(Q).round())},this.getScissorTest=function(){return _e},this.setScissorTest=function(F){ie.setScissorTest(_e=F)},this.setOpaqueSort=function(F){Y=F},this.setTransparentSort=function(F){he=F},this.getClearColor=function(F){return F.copy(Ue.getClearColor())},this.setClearColor=function(){Ue.setClearColor.apply(Ue,arguments)},this.getClearAlpha=function(){return Ue.getClearAlpha()},this.setClearAlpha=function(){Ue.setClearAlpha.apply(Ue,arguments)},this.clear=function(F=!0,ae=!0,ve=!0){let be=0;if(F){let se=!1;if(E!==null){const Oe=E.texture.format;se=Oe===n0||Oe===t0||Oe===e0}if(se){const Oe=E.texture.type,Ne=Oe===Da||Oe===fs||Oe===Su||Oe===Ul||Oe===$y||Oe===Jy,qe=Ue.getClearColor(),Ze=Ue.getClearAlpha(),pt=qe.r,yt=qe.g,ct=qe.b;Ne?(h[0]=pt,h[1]=yt,h[2]=ct,h[3]=Ze,j.clearBufferuiv(j.COLOR,0,h)):(p[0]=pt,p[1]=yt,p[2]=ct,p[3]=Ze,j.clearBufferiv(j.COLOR,0,p))}else be|=j.COLOR_BUFFER_BIT}ae&&(be|=j.DEPTH_BUFFER_BIT),ve&&(be|=j.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),j.clear(be)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",ge,!1),n.removeEventListener("webglcontextrestored",Se,!1),n.removeEventListener("webglcontextcreationerror",Ie,!1),Ae.dispose(),Le.dispose(),ye.dispose(),k.dispose(),T.dispose(),pe.dispose(),tt.dispose(),kt.dispose(),ue.dispose(),de.dispose(),de.removeEventListener("sessionstart",wn),de.removeEventListener("sessionend",Fr),Wn.stop()};function ge(F){F.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),w=!0}function Se(){console.log("THREE.WebGLRenderer: Context Restored."),w=!1;const F=fe.autoReset,ae=Pe.enabled,ve=Pe.autoUpdate,be=Pe.needsUpdate,se=Pe.type;P(),fe.autoReset=F,Pe.enabled=ae,Pe.autoUpdate=ve,Pe.needsUpdate=be,Pe.type=se}function Ie(F){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",F.statusMessage)}function rt(F){const ae=F.target;ae.removeEventListener("dispose",rt),vt(ae)}function vt(F){Sn(F),ye.remove(F)}function Sn(F){const ae=ye.get(F).programs;ae!==void 0&&(ae.forEach(function(ve){ue.releaseProgram(ve)}),F.isShaderMaterial&&ue.releaseShaderCache(F))}this.renderBufferDirect=function(F,ae,ve,be,se,Oe){ae===null&&(ae=me);const Ne=se.isMesh&&se.matrixWorld.determinant()<0,qe=Jh(F,ae,ve,be,se);ie.setMaterial(be,Ne);let Ze=ve.index,pt=1;if(be.wireframe===!0){if(Ze=oe.getWireframeAttribute(ve),Ze===void 0)return;pt=2}const yt=ve.drawRange,ct=ve.attributes.position;let Kt=yt.start*pt,vn=(yt.start+yt.count)*pt;Oe!==null&&(Kt=Math.max(Kt,Oe.start*pt),vn=Math.min(vn,(Oe.start+Oe.count)*pt)),Ze!==null?(Kt=Math.max(Kt,0),vn=Math.min(vn,Ze.count)):ct!=null&&(Kt=Math.max(Kt,0),vn=Math.min(vn,ct.count));const yn=vn-Kt;if(yn<0||yn===1/0)return;tt.setup(se,be,qe,ve,Ze);let oi,Gt=lt;if(Ze!==null&&(oi=G.get(Ze),Gt=je,Gt.setIndex(oi)),se.isMesh)be.wireframe===!0?(ie.setLineWidth(be.wireframeLinewidth*$e()),Gt.setMode(j.LINES)):Gt.setMode(j.TRIANGLES);else if(se.isLine){let et=be.linewidth;et===void 0&&(et=1),ie.setLineWidth(et*$e()),se.isLineSegments?Gt.setMode(j.LINES):se.isLineLoop?Gt.setMode(j.LINE_LOOP):Gt.setMode(j.LINE_STRIP)}else se.isPoints?Gt.setMode(j.POINTS):se.isSprite&&Gt.setMode(j.TRIANGLES);if(se.isBatchedMesh)if(se._multiDrawInstances!==null)Gt.renderMultiDrawInstances(se._multiDrawStarts,se._multiDrawCounts,se._multiDrawCount,se._multiDrawInstances);else if(B.get("WEBGL_multi_draw"))Gt.renderMultiDraw(se._multiDrawStarts,se._multiDrawCounts,se._multiDrawCount);else{const et=se._multiDrawStarts,Gn=se._multiDrawCounts,jt=se._multiDrawCount,Xi=Ze?G.get(Ze).bytesPerElement:1,oa=ye.get(be).currentProgram.getUniforms();for(let xi=0;xi<jt;xi++)oa.setValue(j,"_gl_DrawID",xi),Gt.render(et[xi]/Xi,Gn[xi])}else if(se.isInstancedMesh)Gt.renderInstances(Kt,yn,se.count);else if(ve.isInstancedBufferGeometry){const et=ve._maxInstanceCount!==void 0?ve._maxInstanceCount:1/0,Gn=Math.min(ve.instanceCount,et);Gt.renderInstances(Kt,yn,Gn)}else Gt.render(Kt,yn)};function Rn(F,ae,ve){F.transparent===!0&&F.side===Kr&&F.forceSinglePass===!1?(F.side=Hi,F.needsUpdate=!0,Es(F,ae,ve),F.side=Ra,F.needsUpdate=!0,Es(F,ae,ve),F.side=Kr):Es(F,ae,ve)}this.compile=function(F,ae,ve=null){ve===null&&(ve=F),g=Le.get(ve),g.init(ae),b.push(g),ve.traverseVisible(function(se){se.isLight&&se.layers.test(ae.layers)&&(g.pushLight(se),se.castShadow&&g.pushShadow(se))}),F!==ve&&F.traverseVisible(function(se){se.isLight&&se.layers.test(ae.layers)&&(g.pushLight(se),se.castShadow&&g.pushShadow(se))}),g.setupLights();const be=new Set;return F.traverse(function(se){const Oe=se.material;if(Oe)if(Array.isArray(Oe))for(let Ne=0;Ne<Oe.length;Ne++){const qe=Oe[Ne];Rn(qe,ve,se),be.add(qe)}else Rn(Oe,ve,se),be.add(Oe)}),b.pop(),g=null,be},this.compileAsync=function(F,ae,ve=null){const be=this.compile(F,ae,ve);return new Promise(se=>{function Oe(){if(be.forEach(function(Ne){ye.get(Ne).currentProgram.isReady()&&be.delete(Ne)}),be.size===0){se(F);return}setTimeout(Oe,10)}B.get("KHR_parallel_shader_compile")!==null?Oe():setTimeout(Oe,10)})};let zt=null;function $t(F){zt&&zt(F)}function wn(){Wn.stop()}function Fr(){Wn.start()}const Wn=new CA;Wn.setAnimationLoop($t),typeof self<"u"&&Wn.setContext(self),this.setAnimationLoop=function(F){zt=F,de.setAnimationLoop(F),F===null?Wn.stop():Wn.start()},de.addEventListener("sessionstart",wn),de.addEventListener("sessionend",Fr),this.render=function(F,ae){if(ae!==void 0&&ae.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(w===!0)return;if(F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),ae.parent===null&&ae.matrixWorldAutoUpdate===!0&&ae.updateMatrixWorld(),de.enabled===!0&&de.isPresenting===!0&&(de.cameraAutoUpdate===!0&&de.updateCamera(ae),ae=de.getCamera()),F.isScene===!0&&F.onBeforeRender(y,F,ae,E),g=Le.get(F,b.length),g.init(ae),b.push(g),re.multiplyMatrices(ae.projectionMatrix,ae.matrixWorldInverse),Te.setFromProjectionMatrix(re),le=this.localClippingEnabled,ee=ze.init(this.clippingPlanes,le),m=Ae.get(F,v.length),m.init(),v.push(m),de.enabled===!0&&de.isPresenting===!0){const Oe=y.xr.getDepthSensingMesh();Oe!==null&&mr(Oe,ae,-1/0,y.sortObjects)}mr(F,ae,0,y.sortObjects),m.finish(),y.sortObjects===!0&&m.sort(Y,he),Ce=de.enabled===!1||de.isPresenting===!1||de.hasDepthSensing()===!1,Ce&&Ue.addToRenderList(m,F),this.info.render.frame++,ee===!0&&ze.beginShadows();const ve=g.state.shadowsArray;Pe.render(ve,F,ae),ee===!0&&ze.endShadows(),this.info.autoReset===!0&&this.info.reset();const be=m.opaque,se=m.transmissive;if(g.setupLights(),ae.isArrayCamera){const Oe=ae.cameras;if(se.length>0)for(let Ne=0,qe=Oe.length;Ne<qe;Ne++){const Ze=Oe[Ne];Do(be,se,F,Ze)}Ce&&Ue.render(F);for(let Ne=0,qe=Oe.length;Ne<qe;Ne++){const Ze=Oe[Ne];aa(m,F,Ze,Ze.viewport)}}else se.length>0&&Do(be,se,F,ae),Ce&&Ue.render(F),aa(m,F,ae);E!==null&&(Me.updateMultisampleRenderTarget(E),Me.updateRenderTargetMipmap(E)),F.isScene===!0&&F.onAfterRender(y,F,ae),tt.resetDefaultState(),R=-1,S=null,b.pop(),b.length>0?(g=b[b.length-1],ee===!0&&ze.setGlobalState(y.clippingPlanes,g.state.camera)):g=null,v.pop(),v.length>0?m=v[v.length-1]:m=null};function mr(F,ae,ve,be){if(F.visible===!1)return;if(F.layers.test(ae.layers)){if(F.isGroup)ve=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ae);else if(F.isLight)g.pushLight(F),F.castShadow&&g.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||Te.intersectsSprite(F)){be&&ce.setFromMatrixPosition(F.matrixWorld).applyMatrix4(re);const Ne=pe.update(F),qe=F.material;qe.visible&&m.push(F,Ne,qe,ve,ce.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||Te.intersectsObject(F))){const Ne=pe.update(F),qe=F.material;if(be&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),ce.copy(F.boundingSphere.center)):(Ne.boundingSphere===null&&Ne.computeBoundingSphere(),ce.copy(Ne.boundingSphere.center)),ce.applyMatrix4(F.matrixWorld).applyMatrix4(re)),Array.isArray(qe)){const Ze=Ne.groups;for(let pt=0,yt=Ze.length;pt<yt;pt++){const ct=Ze[pt],Kt=qe[ct.materialIndex];Kt&&Kt.visible&&m.push(F,Ne,Kt,ve,ce.z,ct)}}else qe.visible&&m.push(F,Ne,qe,ve,ce.z,null)}}const Oe=F.children;for(let Ne=0,qe=Oe.length;Ne<qe;Ne++)mr(Oe[Ne],ae,ve,be)}function aa(F,ae,ve,be){const se=F.opaque,Oe=F.transmissive,Ne=F.transparent;g.setupLightsView(ve),ee===!0&&ze.setGlobalState(y.clippingPlanes,ve),be&&ie.viewport(M.copy(be)),se.length>0&&Ms(se,ae,ve),Oe.length>0&&Ms(Oe,ae,ve),Ne.length>0&&Ms(Ne,ae,ve),ie.buffers.depth.setTest(!0),ie.buffers.depth.setMask(!0),ie.buffers.color.setMask(!0),ie.setPolygonOffset(!1)}function Do(F,ae,ve,be){if((ve.isScene===!0?ve.overrideMaterial:null)!==null)return;g.state.transmissionRenderTarget[be.id]===void 0&&(g.state.transmissionRenderTarget[be.id]=new hs(1,1,{generateMipmaps:!0,type:B.has("EXT_color_buffer_half_float")||B.has("EXT_color_buffer_float")?ju:Da,minFilter:Sa,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:en.workingColorSpace}));const Oe=g.state.transmissionRenderTarget[be.id],Ne=be.viewport||M;Oe.setSize(Ne.z,Ne.w);const qe=y.getRenderTarget();y.setRenderTarget(Oe),y.getClearColor(V),X=y.getClearAlpha(),X<1&&y.setClearColor(16777215,.5),y.clear(),Ce&&Ue.render(ve);const Ze=y.toneMapping;y.toneMapping=yo;const pt=be.viewport;if(be.viewport!==void 0&&(be.viewport=void 0),g.setupLightsView(be),ee===!0&&ze.setGlobalState(y.clippingPlanes,be),Ms(F,ve,be),Me.updateMultisampleRenderTarget(Oe),Me.updateRenderTargetMipmap(Oe),B.has("WEBGL_multisampled_render_to_texture")===!1){let yt=!1;for(let ct=0,Kt=ae.length;ct<Kt;ct++){const vn=ae[ct],yn=vn.object,oi=vn.geometry,Gt=vn.material,et=vn.group;if(Gt.side===Kr&&yn.layers.test(be.layers)){const Gn=Gt.side;Gt.side=Hi,Gt.needsUpdate=!0,dc(yn,ve,be,oi,Gt,et),Gt.side=Gn,Gt.needsUpdate=!0,yt=!0}}yt===!0&&(Me.updateMultisampleRenderTarget(Oe),Me.updateRenderTargetMipmap(Oe))}y.setRenderTarget(qe),y.setClearColor(V,X),pt!==void 0&&(be.viewport=pt),y.toneMapping=Ze}function Ms(F,ae,ve){const be=ae.isScene===!0?ae.overrideMaterial:null;for(let se=0,Oe=F.length;se<Oe;se++){const Ne=F[se],qe=Ne.object,Ze=Ne.geometry,pt=be===null?Ne.material:be,yt=Ne.group;qe.layers.test(ve.layers)&&dc(qe,ae,ve,Ze,pt,yt)}}function dc(F,ae,ve,be,se,Oe){F.onBeforeRender(y,ae,ve,be,se,Oe),F.modelViewMatrix.multiplyMatrices(ve.matrixWorldInverse,F.matrixWorld),F.normalMatrix.getNormalMatrix(F.modelViewMatrix),se.transparent===!0&&se.side===Kr&&se.forceSinglePass===!1?(se.side=Hi,se.needsUpdate=!0,y.renderBufferDirect(ve,ae,be,se,F,Oe),se.side=Ra,se.needsUpdate=!0,y.renderBufferDirect(ve,ae,be,se,F,Oe),se.side=Kr):y.renderBufferDirect(ve,ae,be,se,F,Oe),F.onAfterRender(y,ae,ve,be,se,Oe)}function Es(F,ae,ve){ae.isScene!==!0&&(ae=me);const be=ye.get(F),se=g.state.lights,Oe=g.state.shadowsArray,Ne=se.state.version,qe=ue.getParameters(F,se.state,Oe,ae,ve),Ze=ue.getProgramCacheKey(qe);let pt=be.programs;be.environment=F.isMeshStandardMaterial?ae.environment:null,be.fog=ae.fog,be.envMap=(F.isMeshStandardMaterial?T:k).get(F.envMap||be.environment),be.envMapRotation=be.environment!==null&&F.envMap===null?ae.environmentRotation:F.envMapRotation,pt===void 0&&(F.addEventListener("dispose",rt),pt=new Map,be.programs=pt);let yt=pt.get(Ze);if(yt!==void 0){if(be.currentProgram===yt&&be.lightsStateVersion===Ne)return Ju(F,qe),yt}else qe.uniforms=ue.getUniforms(F),F.onBeforeCompile(qe,y),yt=ue.acquireProgram(qe,Ze),pt.set(Ze,yt),be.uniforms=qe.uniforms;const ct=be.uniforms;return(!F.isShaderMaterial&&!F.isRawShaderMaterial||F.clipping===!0)&&(ct.clippingPlanes=ze.uniform),Ju(F,qe),be.needsLights=tp(F),be.lightsStateVersion=Ne,be.needsLights&&(ct.ambientLightColor.value=se.state.ambient,ct.lightProbe.value=se.state.probe,ct.directionalLights.value=se.state.directional,ct.directionalLightShadows.value=se.state.directionalShadow,ct.spotLights.value=se.state.spot,ct.spotLightShadows.value=se.state.spotShadow,ct.rectAreaLights.value=se.state.rectArea,ct.ltc_1.value=se.state.rectAreaLTC1,ct.ltc_2.value=se.state.rectAreaLTC2,ct.pointLights.value=se.state.point,ct.pointLightShadows.value=se.state.pointShadow,ct.hemisphereLights.value=se.state.hemi,ct.directionalShadowMap.value=se.state.directionalShadowMap,ct.directionalShadowMatrix.value=se.state.directionalShadowMatrix,ct.spotShadowMap.value=se.state.spotShadowMap,ct.spotLightMatrix.value=se.state.spotLightMatrix,ct.spotLightMap.value=se.state.spotLightMap,ct.pointShadowMap.value=se.state.pointShadowMap,ct.pointShadowMatrix.value=se.state.pointShadowMatrix),be.currentProgram=yt,be.uniformsList=null,yt}function fc(F){if(F.uniformsList===null){const ae=F.currentProgram.getUniforms();F.uniformsList=mf.seqWithValue(ae.seq,F.uniforms)}return F.uniformsList}function Ju(F,ae){const ve=ye.get(F);ve.outputColorSpace=ae.outputColorSpace,ve.batching=ae.batching,ve.batchingColor=ae.batchingColor,ve.instancing=ae.instancing,ve.instancingColor=ae.instancingColor,ve.instancingMorph=ae.instancingMorph,ve.skinning=ae.skinning,ve.morphTargets=ae.morphTargets,ve.morphNormals=ae.morphNormals,ve.morphColors=ae.morphColors,ve.morphTargetsCount=ae.morphTargetsCount,ve.numClippingPlanes=ae.numClippingPlanes,ve.numIntersection=ae.numClipIntersection,ve.vertexAlphas=ae.vertexAlphas,ve.vertexTangents=ae.vertexTangents,ve.toneMapping=ae.toneMapping}function Jh(F,ae,ve,be,se){ae.isScene!==!0&&(ae=me),Me.resetTextureUnits();const Oe=ae.fog,Ne=be.isMeshStandardMaterial?ae.environment:null,qe=E===null?y.outputColorSpace:E.isXRRenderTarget===!0?E.texture.colorSpace:Co,Ze=(be.isMeshStandardMaterial?T:k).get(be.envMap||Ne),pt=be.vertexColors===!0&&!!ve.attributes.color&&ve.attributes.color.itemSize===4,yt=!!ve.attributes.tangent&&(!!be.normalMap||be.anisotropy>0),ct=!!ve.morphAttributes.position,Kt=!!ve.morphAttributes.normal,vn=!!ve.morphAttributes.color;let yn=yo;be.toneMapped&&(E===null||E.isXRRenderTarget===!0)&&(yn=y.toneMapping);const oi=ve.morphAttributes.position||ve.morphAttributes.normal||ve.morphAttributes.color,Gt=oi!==void 0?oi.length:0,et=ye.get(be),Gn=g.state.lights;if(ee===!0&&(le===!0||F!==S)){const si=F===S&&be.id===R;ze.setState(be,F,si)}let jt=!1;be.version===et.__version?(et.needsLights&&et.lightsStateVersion!==Gn.state.version||et.outputColorSpace!==qe||se.isBatchedMesh&&et.batching===!1||!se.isBatchedMesh&&et.batching===!0||se.isBatchedMesh&&et.batchingColor===!0&&se.colorTexture===null||se.isBatchedMesh&&et.batchingColor===!1&&se.colorTexture!==null||se.isInstancedMesh&&et.instancing===!1||!se.isInstancedMesh&&et.instancing===!0||se.isSkinnedMesh&&et.skinning===!1||!se.isSkinnedMesh&&et.skinning===!0||se.isInstancedMesh&&et.instancingColor===!0&&se.instanceColor===null||se.isInstancedMesh&&et.instancingColor===!1&&se.instanceColor!==null||se.isInstancedMesh&&et.instancingMorph===!0&&se.morphTexture===null||se.isInstancedMesh&&et.instancingMorph===!1&&se.morphTexture!==null||et.envMap!==Ze||be.fog===!0&&et.fog!==Oe||et.numClippingPlanes!==void 0&&(et.numClippingPlanes!==ze.numPlanes||et.numIntersection!==ze.numIntersection)||et.vertexAlphas!==pt||et.vertexTangents!==yt||et.morphTargets!==ct||et.morphNormals!==Kt||et.morphColors!==vn||et.toneMapping!==yn||et.morphTargetsCount!==Gt)&&(jt=!0):(jt=!0,et.__version=be.version);let Xi=et.currentProgram;jt===!0&&(Xi=Es(be,ae,se));let oa=!1,xi=!1,hc=!1;const Dn=Xi.getUniforms(),gr=et.uniforms;if(ie.useProgram(Xi.program)&&(oa=!0,xi=!0,hc=!0),be.id!==R&&(R=be.id,xi=!0),oa||S!==F){Dn.setValue(j,"projectionMatrix",F.projectionMatrix),Dn.setValue(j,"viewMatrix",F.matrixWorldInverse);const si=Dn.map.cameraPosition;si!==void 0&&si.setValue(j,W.setFromMatrixPosition(F.matrixWorld)),J.logarithmicDepthBuffer&&Dn.setValue(j,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(be.isMeshPhongMaterial||be.isMeshToonMaterial||be.isMeshLambertMaterial||be.isMeshBasicMaterial||be.isMeshStandardMaterial||be.isShaderMaterial)&&Dn.setValue(j,"isOrthographic",F.isOrthographicCamera===!0),S!==F&&(S=F,xi=!0,hc=!0)}if(se.isSkinnedMesh){Dn.setOptional(j,se,"bindMatrix"),Dn.setOptional(j,se,"bindMatrixInverse");const si=se.skeleton;si&&(si.boneTexture===null&&si.computeBoneTexture(),Dn.setValue(j,"boneTexture",si.boneTexture,Me))}se.isBatchedMesh&&(Dn.setOptional(j,se,"batchingTexture"),Dn.setValue(j,"batchingTexture",se._matricesTexture,Me),Dn.setOptional(j,se,"batchingIdTexture"),Dn.setValue(j,"batchingIdTexture",se._indirectTexture,Me),Dn.setOptional(j,se,"batchingColorTexture"),se._colorsTexture!==null&&Dn.setValue(j,"batchingColorTexture",se._colorsTexture,Me));const Mn=ve.morphAttributes;if((Mn.position!==void 0||Mn.normal!==void 0||Mn.color!==void 0)&&xt.update(se,ve,Xi),(xi||et.receiveShadow!==se.receiveShadow)&&(et.receiveShadow=se.receiveShadow,Dn.setValue(j,"receiveShadow",se.receiveShadow)),be.isMeshGouraudMaterial&&be.envMap!==null&&(gr.envMap.value=Ze,gr.flipEnvMap.value=Ze.isCubeTexture&&Ze.isRenderTargetTexture===!1?-1:1),be.isMeshStandardMaterial&&be.envMap===null&&ae.environment!==null&&(gr.envMapIntensity.value=ae.environmentIntensity),xi&&(Dn.setValue(j,"toneMappingExposure",y.toneMappingExposure),et.needsLights&&ep(gr,hc),Oe&&be.fog===!0&&Re.refreshFogUniforms(gr,Oe),Re.refreshMaterialUniforms(gr,be,Q,z,g.state.transmissionRenderTarget[F.id]),mf.upload(j,fc(et),gr,Me)),be.isShaderMaterial&&be.uniformsNeedUpdate===!0&&(mf.upload(j,fc(et),gr,Me),be.uniformsNeedUpdate=!1),be.isSpriteMaterial&&Dn.setValue(j,"center",se.center),Dn.setValue(j,"modelViewMatrix",se.modelViewMatrix),Dn.setValue(j,"normalMatrix",se.normalMatrix),Dn.setValue(j,"modelMatrix",se.matrixWorld),be.isShaderMaterial||be.isRawShaderMaterial){const si=be.uniformsGroups;for(let pc=0,ed=si.length;pc<ed;pc++){const mc=si[pc];kt.update(mc,Xi),kt.bind(mc,Xi)}}return Xi}function ep(F,ae){F.ambientLightColor.needsUpdate=ae,F.lightProbe.needsUpdate=ae,F.directionalLights.needsUpdate=ae,F.directionalLightShadows.needsUpdate=ae,F.pointLights.needsUpdate=ae,F.pointLightShadows.needsUpdate=ae,F.spotLights.needsUpdate=ae,F.spotLightShadows.needsUpdate=ae,F.rectAreaLights.needsUpdate=ae,F.hemisphereLights.needsUpdate=ae}function tp(F){return F.isMeshLambertMaterial||F.isMeshToonMaterial||F.isMeshPhongMaterial||F.isMeshStandardMaterial||F.isShadowMaterial||F.isShaderMaterial&&F.lights===!0}this.getActiveCubeFace=function(){return L},this.getActiveMipmapLevel=function(){return _},this.getRenderTarget=function(){return E},this.setRenderTargetTextures=function(F,ae,ve){ye.get(F.texture).__webglTexture=ae,ye.get(F.depthTexture).__webglTexture=ve;const be=ye.get(F);be.__hasExternalTextures=!0,be.__autoAllocateDepthBuffer=ve===void 0,be.__autoAllocateDepthBuffer||B.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),be.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(F,ae){const ve=ye.get(F);ve.__webglFramebuffer=ae,ve.__useDefaultFramebuffer=ae===void 0},this.setRenderTarget=function(F,ae=0,ve=0){E=F,L=ae,_=ve;let be=!0,se=null,Oe=!1,Ne=!1;if(F){const Ze=ye.get(F);Ze.__useDefaultFramebuffer!==void 0?(ie.bindFramebuffer(j.FRAMEBUFFER,null),be=!1):Ze.__webglFramebuffer===void 0?Me.setupRenderTarget(F):Ze.__hasExternalTextures&&Me.rebindTextures(F,ye.get(F.texture).__webglTexture,ye.get(F.depthTexture).__webglTexture);const pt=F.texture;(pt.isData3DTexture||pt.isDataArrayTexture||pt.isCompressedArrayTexture)&&(Ne=!0);const yt=ye.get(F).__webglFramebuffer;F.isWebGLCubeRenderTarget?(Array.isArray(yt[ae])?se=yt[ae][ve]:se=yt[ae],Oe=!0):F.samples>0&&Me.useMultisampledRTT(F)===!1?se=ye.get(F).__webglMultisampledFramebuffer:Array.isArray(yt)?se=yt[ve]:se=yt,M.copy(F.viewport),D.copy(F.scissor),O=F.scissorTest}else M.copy(ne).multiplyScalar(Q).floor(),D.copy(Z).multiplyScalar(Q).floor(),O=_e;if(ie.bindFramebuffer(j.FRAMEBUFFER,se)&&be&&ie.drawBuffers(F,se),ie.viewport(M),ie.scissor(D),ie.setScissorTest(O),Oe){const Ze=ye.get(F.texture);j.framebufferTexture2D(j.FRAMEBUFFER,j.COLOR_ATTACHMENT0,j.TEXTURE_CUBE_MAP_POSITIVE_X+ae,Ze.__webglTexture,ve)}else if(Ne){const Ze=ye.get(F.texture),pt=ae||0;j.framebufferTextureLayer(j.FRAMEBUFFER,j.COLOR_ATTACHMENT0,Ze.__webglTexture,ve||0,pt)}R=-1},this.readRenderTargetPixels=function(F,ae,ve,be,se,Oe,Ne){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let qe=ye.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&Ne!==void 0&&(qe=qe[Ne]),qe){ie.bindFramebuffer(j.FRAMEBUFFER,qe);try{const Ze=F.texture,pt=Ze.format,yt=Ze.type;if(!J.textureFormatReadable(pt)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!J.textureTypeReadable(yt)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ae>=0&&ae<=F.width-be&&ve>=0&&ve<=F.height-se&&j.readPixels(ae,ve,be,se,ht.convert(pt),ht.convert(yt),Oe)}finally{const Ze=E!==null?ye.get(E).__webglFramebuffer:null;ie.bindFramebuffer(j.FRAMEBUFFER,Ze)}}},this.readRenderTargetPixelsAsync=async function(F,ae,ve,be,se,Oe,Ne){if(!(F&&F.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let qe=ye.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&Ne!==void 0&&(qe=qe[Ne]),qe){ie.bindFramebuffer(j.FRAMEBUFFER,qe);try{const Ze=F.texture,pt=Ze.format,yt=Ze.type;if(!J.textureFormatReadable(pt))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!J.textureTypeReadable(yt))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(ae>=0&&ae<=F.width-be&&ve>=0&&ve<=F.height-se){const ct=j.createBuffer();j.bindBuffer(j.PIXEL_PACK_BUFFER,ct),j.bufferData(j.PIXEL_PACK_BUFFER,Oe.byteLength,j.STREAM_READ),j.readPixels(ae,ve,be,se,ht.convert(pt),ht.convert(yt),0),j.flush();const Kt=j.fenceSync(j.SYNC_GPU_COMMANDS_COMPLETE,0);await QH(j,Kt,4);try{j.bindBuffer(j.PIXEL_PACK_BUFFER,ct),j.getBufferSubData(j.PIXEL_PACK_BUFFER,0,Oe)}finally{j.deleteBuffer(ct),j.deleteSync(Kt)}return Oe}}finally{const Ze=E!==null?ye.get(E).__webglFramebuffer:null;ie.bindFramebuffer(j.FRAMEBUFFER,Ze)}}},this.copyFramebufferToTexture=function(F,ae=null,ve=0){F.isTexture!==!0&&($c("WebGLRenderer: copyFramebufferToTexture function signature has changed."),ae=arguments[0]||null,F=arguments[1]);const be=Math.pow(2,-ve),se=Math.floor(F.image.width*be),Oe=Math.floor(F.image.height*be),Ne=ae!==null?ae.x:0,qe=ae!==null?ae.y:0;Me.setTexture2D(F,0),j.copyTexSubImage2D(j.TEXTURE_2D,ve,0,0,Ne,qe,se,Oe),ie.unbindTexture()},this.copyTextureToTexture=function(F,ae,ve=null,be=null,se=0){F.isTexture!==!0&&($c("WebGLRenderer: copyTextureToTexture function signature has changed."),be=arguments[0]||null,F=arguments[1],ae=arguments[2],se=arguments[3]||0,ve=null);let Oe,Ne,qe,Ze,pt,yt;ve!==null?(Oe=ve.max.x-ve.min.x,Ne=ve.max.y-ve.min.y,qe=ve.min.x,Ze=ve.min.y):(Oe=F.image.width,Ne=F.image.height,qe=0,Ze=0),be!==null?(pt=be.x,yt=be.y):(pt=0,yt=0);const ct=ht.convert(ae.format),Kt=ht.convert(ae.type);Me.setTexture2D(ae,0),j.pixelStorei(j.UNPACK_FLIP_Y_WEBGL,ae.flipY),j.pixelStorei(j.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ae.premultiplyAlpha),j.pixelStorei(j.UNPACK_ALIGNMENT,ae.unpackAlignment);const vn=j.getParameter(j.UNPACK_ROW_LENGTH),yn=j.getParameter(j.UNPACK_IMAGE_HEIGHT),oi=j.getParameter(j.UNPACK_SKIP_PIXELS),Gt=j.getParameter(j.UNPACK_SKIP_ROWS),et=j.getParameter(j.UNPACK_SKIP_IMAGES),Gn=F.isCompressedTexture?F.mipmaps[se]:F.image;j.pixelStorei(j.UNPACK_ROW_LENGTH,Gn.width),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,Gn.height),j.pixelStorei(j.UNPACK_SKIP_PIXELS,qe),j.pixelStorei(j.UNPACK_SKIP_ROWS,Ze),F.isDataTexture?j.texSubImage2D(j.TEXTURE_2D,se,pt,yt,Oe,Ne,ct,Kt,Gn.data):F.isCompressedTexture?j.compressedTexSubImage2D(j.TEXTURE_2D,se,pt,yt,Gn.width,Gn.height,ct,Gn.data):j.texSubImage2D(j.TEXTURE_2D,se,pt,yt,Oe,Ne,ct,Kt,Gn),j.pixelStorei(j.UNPACK_ROW_LENGTH,vn),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,yn),j.pixelStorei(j.UNPACK_SKIP_PIXELS,oi),j.pixelStorei(j.UNPACK_SKIP_ROWS,Gt),j.pixelStorei(j.UNPACK_SKIP_IMAGES,et),se===0&&ae.generateMipmaps&&j.generateMipmap(j.TEXTURE_2D),ie.unbindTexture()},this.copyTextureToTexture3D=function(F,ae,ve=null,be=null,se=0){F.isTexture!==!0&&($c("WebGLRenderer: copyTextureToTexture3D function signature has changed."),ve=arguments[0]||null,be=arguments[1]||null,F=arguments[2],ae=arguments[3],se=arguments[4]||0);let Oe,Ne,qe,Ze,pt,yt,ct,Kt,vn;const yn=F.isCompressedTexture?F.mipmaps[se]:F.image;ve!==null?(Oe=ve.max.x-ve.min.x,Ne=ve.max.y-ve.min.y,qe=ve.max.z-ve.min.z,Ze=ve.min.x,pt=ve.min.y,yt=ve.min.z):(Oe=yn.width,Ne=yn.height,qe=yn.depth,Ze=0,pt=0,yt=0),be!==null?(ct=be.x,Kt=be.y,vn=be.z):(ct=0,Kt=0,vn=0);const oi=ht.convert(ae.format),Gt=ht.convert(ae.type);let et;if(ae.isData3DTexture)Me.setTexture3D(ae,0),et=j.TEXTURE_3D;else if(ae.isDataArrayTexture||ae.isCompressedArrayTexture)Me.setTexture2DArray(ae,0),et=j.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}j.pixelStorei(j.UNPACK_FLIP_Y_WEBGL,ae.flipY),j.pixelStorei(j.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ae.premultiplyAlpha),j.pixelStorei(j.UNPACK_ALIGNMENT,ae.unpackAlignment);const Gn=j.getParameter(j.UNPACK_ROW_LENGTH),jt=j.getParameter(j.UNPACK_IMAGE_HEIGHT),Xi=j.getParameter(j.UNPACK_SKIP_PIXELS),oa=j.getParameter(j.UNPACK_SKIP_ROWS),xi=j.getParameter(j.UNPACK_SKIP_IMAGES);j.pixelStorei(j.UNPACK_ROW_LENGTH,yn.width),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,yn.height),j.pixelStorei(j.UNPACK_SKIP_PIXELS,Ze),j.pixelStorei(j.UNPACK_SKIP_ROWS,pt),j.pixelStorei(j.UNPACK_SKIP_IMAGES,yt),F.isDataTexture||F.isData3DTexture?j.texSubImage3D(et,se,ct,Kt,vn,Oe,Ne,qe,oi,Gt,yn.data):ae.isCompressedArrayTexture?j.compressedTexSubImage3D(et,se,ct,Kt,vn,Oe,Ne,qe,oi,yn.data):j.texSubImage3D(et,se,ct,Kt,vn,Oe,Ne,qe,oi,Gt,yn),j.pixelStorei(j.UNPACK_ROW_LENGTH,Gn),j.pixelStorei(j.UNPACK_IMAGE_HEIGHT,jt),j.pixelStorei(j.UNPACK_SKIP_PIXELS,Xi),j.pixelStorei(j.UNPACK_SKIP_ROWS,oa),j.pixelStorei(j.UNPACK_SKIP_IMAGES,xi),se===0&&ae.generateMipmaps&&j.generateMipmap(et),ie.unbindTexture()},this.initRenderTarget=function(F){ye.get(F).__webglFramebuffer===void 0&&Me.setupRenderTarget(F)},this.initTexture=function(F){F.isCubeTexture?Me.setTextureCube(F,0):F.isData3DTexture?Me.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?Me.setTexture2DArray(F,0):Me.setTexture2D(F,0),ie.unbindTexture()},this.resetState=function(){L=0,_=0,E=null,ie.reset(),tt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return wa}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===r0?"display-p3":"srgb",n.unpackColorSpace=en.workingColorSpace===jh?"display-p3":"srgb"}}class OA extends Hn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Rr,this.environmentIntensity=1,this.environmentRotation=new Rr,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(n.object.environmentIntensity=this.environmentIntensity),n.object.environmentRotation=this.environmentRotation.toArray(),n}}const lS=new te,cS=new on,uS=new on,oG=new te,dS=new Rt,Wd=new te,dm=new rc,fS=new Rt,fm=new Xh;class sG extends Tr{constructor(e,n){super(e,n),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=dx,this.bindMatrix=new Rt,this.bindMatrixInverse=new Rt,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new ic),this.boundingBox.makeEmpty();const n=e.getAttribute("position");for(let i=0;i<n.count;i++)this.getVertexPosition(i,Wd),this.boundingBox.expandByPoint(Wd)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new rc),this.boundingSphere.makeEmpty();const n=e.getAttribute("position");for(let i=0;i<n.count;i++)this.getVertexPosition(i,Wd),this.boundingSphere.expandByPoint(Wd)}copy(e,n){return super.copy(e,n),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,n){const i=this.material,r=this.matrixWorld;i!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),dm.copy(this.boundingSphere),dm.applyMatrix4(r),e.ray.intersectsSphere(dm)!==!1&&(fS.copy(r).invert(),fm.copy(e.ray).applyMatrix4(fS),!(this.boundingBox!==null&&fm.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,n,fm)))}getVertexPosition(e,n){return super.getVertexPosition(e,n),this.applyBoneTransform(e,n),n}bind(e,n){this.skeleton=e,n===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),n=this.matrixWorld),this.bindMatrix.copy(n),this.bindMatrixInverse.copy(n).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new on,n=this.geometry.attributes.skinWeight;for(let i=0,r=n.count;i<r;i++){e.fromBufferAttribute(n,i);const a=1/e.manhattanLength();a!==1/0?e.multiplyScalar(a):e.set(1,0,0,0),n.setXYZW(i,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===dx?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===_H?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,n){const i=this.skeleton,r=this.geometry;cS.fromBufferAttribute(r.attributes.skinIndex,e),uS.fromBufferAttribute(r.attributes.skinWeight,e),lS.copy(n).applyMatrix4(this.bindMatrix),n.set(0,0,0);for(let a=0;a<4;a++){const o=uS.getComponent(a);if(o!==0){const s=cS.getComponent(a);dS.multiplyMatrices(i.bones[s].matrixWorld,i.boneInverses[s]),n.addScaledVector(oG.copy(lS).applyMatrix4(dS),o)}}return n.applyMatrix4(this.bindMatrixInverse)}}class NA extends Hn{constructor(){super(),this.isBone=!0,this.type="Bone"}}class kA extends bi{constructor(e=null,n=1,i=1,r,a,o,s,l,c=Fi,u=Fi,d,f){super(null,o,s,l,c,u,r,a,d,f),this.isDataTexture=!0,this.image={data:e,width:n,height:i},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const hS=new Rt,lG=new Rt;class c0{constructor(e=[],n=[]){this.uuid=Po(),this.bones=e.slice(0),this.boneInverses=n,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,n=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),n.length===0)this.calculateInverses();else if(e.length!==n.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let i=0,r=this.bones.length;i<r;i++)this.boneInverses.push(new Rt)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,n=this.bones.length;e<n;e++){const i=new Rt;this.bones[e]&&i.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(i)}}pose(){for(let e=0,n=this.bones.length;e<n;e++){const i=this.bones[e];i&&i.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,n=this.bones.length;e<n;e++){const i=this.bones[e];i&&(i.parent&&i.parent.isBone?(i.matrix.copy(i.parent.matrixWorld).invert(),i.matrix.multiply(i.matrixWorld)):i.matrix.copy(i.matrixWorld),i.matrix.decompose(i.position,i.quaternion,i.scale))}}update(){const e=this.bones,n=this.boneInverses,i=this.boneMatrices,r=this.boneTexture;for(let a=0,o=e.length;a<o;a++){const s=e[a]?e[a].matrixWorld:lG;hS.multiplyMatrices(s,n[a]),hS.toArray(i,a*16)}r!==null&&(r.needsUpdate=!0)}clone(){return new c0(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const n=new Float32Array(e*e*4);n.set(this.boneMatrices);const i=new kA(n,e,e,ur,$r);return i.needsUpdate=!0,this.boneMatrices=n,this.boneTexture=i,this}getBoneByName(e){for(let n=0,i=this.bones.length;n<i;n++){const r=this.bones[n];if(r.name===e)return r}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,n){this.uuid=e.uuid;for(let i=0,r=e.bones.length;i<r;i++){const a=e.bones[i];let o=n[a];o===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",a),o=new NA),this.bones.push(o),this.boneInverses.push(new Rt().fromArray(e.boneInverses[i]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const n=this.bones,i=this.boneInverses;for(let r=0,a=n.length;r<a;r++){const o=n[r];e.bones.push(o.uuid);const s=i[r];e.boneInverses.push(s.toArray())}return e}}class fv extends ws{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Ot(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Jf=new te,eh=new te,pS=new Rt,Ic=new Xh,Gd=new rc,hm=new te,mS=new te;class UA extends Hn{constructor(e=new Ba,n=new fv){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[0];for(let r=1,a=n.count;r<a;r++)Jf.fromBufferAttribute(n,r-1),eh.fromBufferAttribute(n,r),i[r]=i[r-1],i[r]+=Jf.distanceTo(eh);e.setAttribute("lineDistance",new di(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,n){const i=this.geometry,r=this.matrixWorld,a=e.params.Line.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),Gd.copy(i.boundingSphere),Gd.applyMatrix4(r),Gd.radius+=a,e.ray.intersectsSphere(Gd)===!1)return;pS.copy(r).invert(),Ic.copy(e.ray).applyMatrix4(pS);const s=a/((this.scale.x+this.scale.y+this.scale.z)/3),l=s*s,c=this.isLineSegments?2:1,u=i.index,f=i.attributes.position;if(u!==null){const h=Math.max(0,o.start),p=Math.min(u.count,o.start+o.count);for(let m=h,g=p-1;m<g;m+=c){const v=u.getX(m),b=u.getX(m+1),y=jd(this,e,Ic,l,v,b);y&&n.push(y)}if(this.isLineLoop){const m=u.getX(p-1),g=u.getX(h),v=jd(this,e,Ic,l,m,g);v&&n.push(v)}}else{const h=Math.max(0,o.start),p=Math.min(f.count,o.start+o.count);for(let m=h,g=p-1;m<g;m+=c){const v=jd(this,e,Ic,l,m,m+1);v&&n.push(v)}if(this.isLineLoop){const m=jd(this,e,Ic,l,p-1,h);m&&n.push(m)}}}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,o=r.length;a<o;a++){const s=r[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[s]=a}}}}}function jd(t,e,n,i,r,a){const o=t.geometry.attributes.position;if(Jf.fromBufferAttribute(o,r),eh.fromBufferAttribute(o,a),n.distanceSqToSegment(Jf,eh,hm,mS)>i)return;hm.applyMatrix4(t.matrixWorld);const l=e.ray.origin.distanceTo(hm);if(!(l<e.near||l>e.far))return{distance:l,point:mS.clone().applyMatrix4(t.matrixWorld),index:r,face:null,faceIndex:null,object:t}}const gS=new te,vS=new te;class cG extends UA{constructor(e,n){super(e,n),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[];for(let r=0,a=n.count;r<a;r+=2)gS.fromBufferAttribute(n,r),vS.fromBufferAttribute(n,r+1),i[r]=r===0?0:i[r-1],i[r+1]=i[r]+gS.distanceTo(vS);e.setAttribute("lineDistance",new di(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class yS extends ws{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Ot(16777215),this.specular=new Ot(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ot(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=i0,this.normalScale=new bt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Rr,this.combine=Wh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class uG extends ws{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Ot(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ot(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=i0,this.normalScale=new bt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Rr,this.combine=Wh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function Xd(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function dG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function fG(t){function e(r,a){return t[r]-t[a]}const n=t.length,i=new Array(n);for(let r=0;r!==n;++r)i[r]=r;return i.sort(e),i}function bS(t,e,n){const i=t.length,r=new t.constructor(i);for(let a=0,o=0;o!==i;++a){const s=n[a]*e;for(let l=0;l!==e;++l)r[o++]=t[s+l]}return r}function FA(t,e,n,i){let r=1,a=t[0];for(;a!==void 0&&a[i]===void 0;)a=t[r++];if(a===void 0)return;let o=a[i];if(o!==void 0)if(Array.isArray(o))do o=a[i],o!==void 0&&(e.push(a.time),n.push.apply(n,o)),a=t[r++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[i],o!==void 0&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++];while(a!==void 0);else do o=a[i],o!==void 0&&(e.push(a.time),n.push(o)),a=t[r++];while(a!==void 0)}class Kh{constructor(e,n,i,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new n.constructor(i),this.sampleValues=n,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let i=this._cachedIndex,r=n[i],a=n[i-1];n:{e:{let o;t:{i:if(!(e<r)){for(let s=i+2;;){if(r===void 0){if(e<a)break i;return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===s)break;if(a=r,r=n[++i],e<r)break e}o=n.length;break t}if(!(e>=a)){const s=n[1];e<s&&(i=2,a=s);for(let l=i-2;;){if(a===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===l)break;if(r=a,a=n[--i-1],e>=a)break e}o=i,i=0;break t}break n}for(;i<o;){const s=i+o>>>1;e<n[s]?o=s:i=s+1}if(r=n[i],a=n[i-1],a===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,a,r)}return this.interpolate_(i,a,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const n=this.resultBuffer,i=this.sampleValues,r=this.valueSize,a=e*r;for(let o=0;o!==r;++o)n[o]=i[a+o];return n}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class hG extends Kh{constructor(e,n,i,r){super(e,n,i,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:fx,endingEnd:fx}}intervalChanged_(e,n,i){const r=this.parameterPositions;let a=e-2,o=e+1,s=r[a],l=r[o];if(s===void 0)switch(this.getSettings_().endingStart){case hx:a=e,s=2*n-i;break;case px:a=r.length-2,s=n+r[a]-r[a+1];break;default:a=e,s=i}if(l===void 0)switch(this.getSettings_().endingEnd){case hx:o=e,l=2*i-n;break;case px:o=1,l=i+r[1]-r[0];break;default:o=e-1,l=n}const c=(i-n)*.5,u=this.valueSize;this._weightPrev=c/(n-s),this._weightNext=c/(l-i),this._offsetPrev=a*u,this._offsetNext=o*u}interpolate_(e,n,i,r){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=e*s,c=l-s,u=this._offsetPrev,d=this._offsetNext,f=this._weightPrev,h=this._weightNext,p=(i-n)/(r-n),m=p*p,g=m*p,v=-f*g+2*f*m-f*p,b=(1+f)*g+(-1.5-2*f)*m+(-.5+f)*p+1,y=(-1-h)*g+(1.5+h)*m+.5*p,w=h*g-h*m;for(let L=0;L!==s;++L)a[L]=v*o[u+L]+b*o[c+L]+y*o[l+L]+w*o[d+L];return a}}class pG extends Kh{constructor(e,n,i,r){super(e,n,i,r)}interpolate_(e,n,i,r){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=e*s,c=l-s,u=(i-n)/(r-n),d=1-u;for(let f=0;f!==s;++f)a[f]=o[c+f]*d+o[l+f]*u;return a}}class mG extends Kh{constructor(e,n,i,r){super(e,n,i,r)}interpolate_(e){return this.copySampleValue_(e-1)}}class ra{constructor(e,n,i,r){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(n===void 0||n.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Xd(n,this.TimeBufferType),this.values=Xd(i,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){const n=e.constructor;let i;if(n.toJSON!==this.toJSON)i=n.toJSON(e);else{i={name:e.name,times:Xd(e.times,Array),values:Xd(e.values,Array)};const r=e.getInterpolation();r!==e.DefaultInterpolation&&(i.interpolation=r)}return i.type=e.ValueTypeName,i}InterpolantFactoryMethodDiscrete(e){return new mG(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new pG(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new hG(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let n;switch(e){case Yf:n=this.InterpolantFactoryMethodDiscrete;break;case uv:n=this.InterpolantFactoryMethodLinear;break;case Bp:n=this.InterpolantFactoryMethodSmooth;break}if(n===void 0){const i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=n,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Yf;case this.InterpolantFactoryMethodLinear:return uv;case this.InterpolantFactoryMethodSmooth:return Bp}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]+=e}return this}scale(e){if(e!==1){const n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]*=e}return this}trim(e,n){const i=this.times,r=i.length;let a=0,o=r-1;for(;a!==r&&i[a]<e;)++a;for(;o!==-1&&i[o]>n;)--o;if(++o,a!==0||o!==r){a>=o&&(o=Math.max(o,1),a=o-1);const s=this.getValueSize();this.times=i.slice(a,o),this.values=this.values.slice(a*s,o*s)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,r=this.values,a=i.length;a===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let s=0;s!==a;s++){const l=i[s];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,s,l,o),e=!1;break}o=l}if(r!==void 0&&dG(r))for(let s=0,l=r.length;s!==l;++s){const c=r[s];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),n=this.values.slice(),i=this.getValueSize(),r=this.getInterpolation()===Bp,a=e.length-1;let o=1;for(let s=1;s<a;++s){let l=!1;const c=e[s],u=e[s+1];if(c!==u&&(s!==1||c!==e[0]))if(r)l=!0;else{const d=s*i,f=d-i,h=d+i;for(let p=0;p!==i;++p){const m=n[d+p];if(m!==n[f+p]||m!==n[h+p]){l=!0;break}}}if(l){if(s!==o){e[o]=e[s];const d=s*i,f=o*i;for(let h=0;h!==i;++h)n[f+h]=n[d+h]}++o}}if(a>0){e[o]=e[a];for(let s=a*i,l=o*i,c=0;c!==i;++c)n[l+c]=n[s+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*i)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),i=this.constructor,r=new i(this.name,e,n);return r.createInterpolant=this.createInterpolant,r}}ra.prototype.TimeBufferType=Float32Array;ra.prototype.ValueBufferType=Float32Array;ra.prototype.DefaultInterpolation=uv;class oc extends ra{constructor(e,n,i){super(e,n,i)}}oc.prototype.ValueTypeName="bool";oc.prototype.ValueBufferType=Array;oc.prototype.DefaultInterpolation=Yf;oc.prototype.InterpolantFactoryMethodLinear=void 0;oc.prototype.InterpolantFactoryMethodSmooth=void 0;class BA extends ra{}BA.prototype.ValueTypeName="color";class th extends ra{}th.prototype.ValueTypeName="number";class gG extends Kh{constructor(e,n,i,r){super(e,n,i,r)}interpolate_(e,n,i,r){const a=this.resultBuffer,o=this.sampleValues,s=this.valueSize,l=(i-n)/(r-n);let c=e*s;for(let u=c+s;c!==u;c+=4)Ia.slerpFlat(a,0,o,c-s,o,c,l);return a}}class Yu extends ra{InterpolantFactoryMethodLinear(e){return new gG(this.times,this.values,this.getValueSize(),e)}}Yu.prototype.ValueTypeName="quaternion";Yu.prototype.InterpolantFactoryMethodSmooth=void 0;class sc extends ra{constructor(e,n,i){super(e,n,i)}}sc.prototype.ValueTypeName="string";sc.prototype.ValueBufferType=Array;sc.prototype.DefaultInterpolation=Yf;sc.prototype.InterpolantFactoryMethodLinear=void 0;sc.prototype.InterpolantFactoryMethodSmooth=void 0;class Hl extends ra{}Hl.prototype.ValueTypeName="vector";class _S{constructor(e="",n=-1,i=[],r=SH){this.name=e,this.tracks=i,this.duration=n,this.blendMode=r,this.uuid=Po(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],i=e.tracks,r=1/(e.fps||1);for(let o=0,s=i.length;o!==s;++o)n.push(yG(i[o]).scale(r));const a=new this(e.name,e.duration,n,e.blendMode);return a.uuid=e.uuid,a}static toJSON(e){const n=[],i=e.tracks,r={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let a=0,o=i.length;a!==o;++a)n.push(ra.toJSON(i[a]));return r}static CreateFromMorphTargetSequence(e,n,i,r){const a=n.length,o=[];for(let s=0;s<a;s++){let l=[],c=[];l.push((s+a-1)%a,s,(s+1)%a),c.push(0,1,0);const u=fG(l);l=bS(l,1,u),c=bS(c,1,u),!r&&l[0]===0&&(l.push(a),c.push(c[0])),o.push(new th(".morphTargetInfluences["+n[s].name+"]",l,c).scale(1/i))}return new this(e,-1,o)}static findByName(e,n){let i=e;if(!Array.isArray(e)){const r=e;i=r.geometry&&r.geometry.animations||r.animations}for(let r=0;r<i.length;r++)if(i[r].name===n)return i[r];return null}static CreateClipsFromMorphTargetSequences(e,n,i){const r={},a=/^([\w-]*?)([\d]+)$/;for(let s=0,l=e.length;s<l;s++){const c=e[s],u=c.name.match(a);if(u&&u.length>1){const d=u[1];let f=r[d];f||(r[d]=f=[]),f.push(c)}}const o=[];for(const s in r)o.push(this.CreateFromMorphTargetSequence(s,r[s],n,i));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(d,f,h,p,m){if(h.length!==0){const g=[],v=[];FA(h,g,v,p),g.length!==0&&m.push(new d(f,g,v))}},r=[],a=e.name||"default",o=e.fps||30,s=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let d=0;d<c.length;d++){const f=c[d].keys;if(!(!f||f.length===0))if(f[0].morphTargets){const h={};let p;for(p=0;p<f.length;p++)if(f[p].morphTargets)for(let m=0;m<f[p].morphTargets.length;m++)h[f[p].morphTargets[m]]=-1;for(const m in h){const g=[],v=[];for(let b=0;b!==f[p].morphTargets.length;++b){const y=f[p];g.push(y.time),v.push(y.morphTarget===m?1:0)}r.push(new th(".morphTargetInfluence["+m+"]",g,v))}l=h.length*o}else{const h=".bones["+n[d].name+"]";i(Hl,h+".position",f,"pos",r),i(Yu,h+".quaternion",f,"rot",r),i(Hl,h+".scale",f,"scl",r)}}return r.length===0?null:new this(a,l,r,s)}resetDuration(){const e=this.tracks;let n=0;for(let i=0,r=e.length;i!==r;++i){const a=this.tracks[i];n=Math.max(n,a.times[a.times.length-1])}return this.duration=n,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let n=0;n<this.tracks.length;n++)e=e&&this.tracks[n].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let n=0;n<this.tracks.length;n++)e.push(this.tracks[n].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function vG(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return th;case"vector":case"vector2":case"vector3":case"vector4":return Hl;case"color":return BA;case"quaternion":return Yu;case"bool":case"boolean":return oc;case"string":return sc}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function yG(t){if(t.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=vG(t.type);if(t.times===void 0){const n=[],i=[];FA(t.keys,n,i,"value"),t.times=n,t.values=i}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const nh={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class bG{constructor(e,n,i){const r=this;let a=!1,o=0,s=0,l;const c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=n,this.onError=i,this.itemStart=function(u){s++,a===!1&&r.onStart!==void 0&&r.onStart(u,o,s),a=!0},this.itemEnd=function(u){o++,r.onProgress!==void 0&&r.onProgress(u,o,s),o===s&&(a=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(u){r.onError!==void 0&&r.onError(u)},this.resolveURL=function(u){return l?l(u):u},this.setURLModifier=function(u){return l=u,this},this.addHandler=function(u,d){return c.push(u,d),this},this.removeHandler=function(u){const d=c.indexOf(u);return d!==-1&&c.splice(d,2),this},this.getHandler=function(u){for(let d=0,f=c.length;d<f;d+=2){const h=c[d],p=c[d+1];if(h.global&&(h.lastIndex=0),h.test(u))return p}return null}}}const _G=new bG;class ps{constructor(e){this.manager=e!==void 0?e:_G,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,n){const i=this;return new Promise(function(r,a){i.load(e,r,n,a)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}ps.DEFAULT_MATERIAL_NAME="__DEFAULT";const pa={};class xG extends Error{constructor(e,n){super(e),this.response=n}}class VA extends ps{constructor(e){super(e)}load(e,n,i,r){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=nh.get(e);if(a!==void 0)return this.manager.itemStart(e),setTimeout(()=>{n&&n(a),this.manager.itemEnd(e)},0),a;if(pa[e]!==void 0){pa[e].push({onLoad:n,onProgress:i,onError:r});return}pa[e]=[],pa[e].push({onLoad:n,onProgress:i,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=pa[e],d=c.body.getReader(),f=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),h=f?parseInt(f):0,p=h!==0;let m=0;const g=new ReadableStream({start(v){b();function b(){d.read().then(({done:y,value:w})=>{if(y)v.close();else{m+=w.byteLength;const L=new ProgressEvent("progress",{lengthComputable:p,loaded:m,total:h});for(let _=0,E=u.length;_<E;_++){const R=u[_];R.onProgress&&R.onProgress(L)}v.enqueue(w),b()}},y=>{v.error(y)})}}});return new Response(g)}else throw new xG(`fetch for "${c.url}" responded with ${c.status}: ${c.statusText}`,c)}).then(c=>{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,s));case"json":return c.json();default:if(s===void 0)return c.text();{const d=/charset="?([^;"\s]*)"?/i.exec(s),f=d&&d[1]?d[1].toLowerCase():void 0,h=new TextDecoder(f);return c.arrayBuffer().then(p=>h.decode(p))}}}).then(c=>{nh.add(e,c);const u=pa[e];delete pa[e];for(let d=0,f=u.length;d<f;d++){const h=u[d];h.onLoad&&h.onLoad(c)}}).catch(c=>{const u=pa[e];if(u===void 0)throw this.manager.itemError(e),c;delete pa[e];for(let d=0,f=u.length;d<f;d++){const h=u[d];h.onError&&h.onError(c)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class SG extends ps{constructor(e){super(e)}load(e,n,i,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,o=nh.get(e);if(o!==void 0)return a.manager.itemStart(e),setTimeout(function(){n&&n(o),a.manager.itemEnd(e)},0),o;const s=wu("img");function l(){u(),nh.add(e,this),n&&n(this),a.manager.itemEnd(e)}function c(d){u(),r&&r(d),a.manager.itemError(e),a.manager.itemEnd(e)}function u(){s.removeEventListener("load",l,!1),s.removeEventListener("error",c,!1)}return s.addEventListener("load",l,!1),s.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(s.crossOrigin=this.crossOrigin),a.manager.itemStart(e),s.src=e,s}}class wG extends ps{constructor(e){super(e)}load(e,n,i,r){const a=this,o=new kA,s=new VA(this.manager);return s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setPath(this.path),s.setWithCredentials(a.withCredentials),s.load(e,function(l){let c;try{c=a.parse(l)}catch(u){if(r!==void 0)r(u);else{console.error(u);return}}c.image!==void 0?o.image=c.image:c.data!==void 0&&(o.image.width=c.width,o.image.height=c.height,o.image.data=c.data),o.wrapS=c.wrapS!==void 0?c.wrapS:Er,o.wrapT=c.wrapT!==void 0?c.wrapT:Er,o.magFilter=c.magFilter!==void 0?c.magFilter:Ui,o.minFilter=c.minFilter!==void 0?c.minFilter:Ui,o.anisotropy=c.anisotropy!==void 0?c.anisotropy:1,c.colorSpace!==void 0&&(o.colorSpace=c.colorSpace),c.flipY!==void 0&&(o.flipY=c.flipY),c.format!==void 0&&(o.format=c.format),c.type!==void 0&&(o.type=c.type),c.mipmaps!==void 0&&(o.mipmaps=c.mipmaps,o.minFilter=Sa),c.mipmapCount===1&&(o.minFilter=Ui),c.generateMipmaps!==void 0&&(o.generateMipmaps=c.generateMipmaps),o.needsUpdate=!0,n&&n(o,c)},i,r),o}}class MG extends ps{constructor(e){super(e)}load(e,n,i,r){const a=new bi,o=new SG(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(s){a.image=s,a.needsUpdate=!0,n!==void 0&&n(a)},i,r),a}}class Qh extends Hn{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new Ot(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(n.object.target=this.target.uuid),n}}const pm=new Rt,xS=new te,SS=new te;class u0{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new bt(512,512),this.map=null,this.mapPass=null,this.matrix=new Rt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new o0,this._frameExtents=new bt(1,1),this._viewportCount=1,this._viewports=[new on(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,i=this.matrix;xS.setFromMatrixPosition(e.matrixWorld),n.position.copy(xS),SS.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(SS),n.updateMatrixWorld(),pm.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(pm),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(pm)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class EG extends u0{constructor(){super(new pi(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,i=Bl*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,a=e.distance||n.far;(i!==n.fov||r!==n.aspect||a!==n.far)&&(n.fov=i,n.aspect=r,n.far=a,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class TG extends Qh{constructor(e,n,i=0,r=Math.PI/3,a=0,o=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Hn.DEFAULT_UP),this.updateMatrix(),this.target=new Hn,this.distance=i,this.angle=r,this.penumbra=a,this.decay=o,this.map=null,this.shadow=new EG}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const wS=new Rt,Lc=new te,mm=new te;class AG extends u0{constructor(){super(new pi(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new bt(4,2),this._viewportCount=6,this._viewports=[new on(2,1,1,1),new on(0,1,1,1),new on(3,1,1,1),new on(1,1,1,1),new on(3,0,1,1),new on(1,0,1,1)],this._cubeDirections=[new te(1,0,0),new te(-1,0,0),new te(0,0,1),new te(0,0,-1),new te(0,1,0),new te(0,-1,0)],this._cubeUps=[new te(0,1,0),new te(0,1,0),new te(0,1,0),new te(0,1,0),new te(0,0,1),new te(0,0,-1)]}updateMatrices(e,n=0){const i=this.camera,r=this.matrix,a=e.distance||i.far;a!==i.far&&(i.far=a,i.updateProjectionMatrix()),Lc.setFromMatrixPosition(e.matrixWorld),i.position.copy(Lc),mm.copy(i.position),mm.add(this._cubeDirections[n]),i.up.copy(this._cubeUps[n]),i.lookAt(mm),i.updateMatrixWorld(),r.makeTranslation(-Lc.x,-Lc.y,-Lc.z),wS.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(wS)}}class HA extends Qh{constructor(e,n,i=0,r=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=r,this.shadow=new AG}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class CG extends u0{constructor(){super(new s0(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class PG extends Qh{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Hn.DEFAULT_UP),this.updateMatrix(),this.target=new Hn,this.shadow=new CG}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class RG extends Qh{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class DG{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let i=0,r=e.length;i<r;i++)n+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(n))}catch{return n}}static extractUrlBase(e){const n=e.lastIndexOf("/");return n===-1?"./":e.slice(0,n+1)}static resolveURL(e,n){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(n)&&/^\//.test(e)&&(n=n.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:n+e)}}class MS{constructor(e=1,n=0,i=0){return this.radius=e,this.phi=n,this.theta=i,this}set(e,n,i){return this.radius=e,this.phi=n,this.theta=i,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,i){return this.radius=Math.sqrt(e*e+n*n+i*i),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,i),this.phi=Math.acos(hi(n/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Qy}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Qy);class ES extends wG{constructor(e){super(e)}parse(e){function n(z){switch(z.image_type){case f:case m:if(z.colormap_length>256||z.colormap_size!==24||z.colormap_type!==1)throw new Error("THREE.TGALoader: Invalid type colormap data for indexed type.");break;case h:case p:case g:case v:if(z.colormap_type)throw new Error("THREE.TGALoader: Invalid type colormap data for colormap type.");break;case d:throw new Error("THREE.TGALoader: No data.");default:throw new Error("THREE.TGALoader: Invalid type "+z.image_type)}if(z.width<=0||z.height<=0)throw new Error("THREE.TGALoader: Invalid image size.");if(z.pixel_size!==8&&z.pixel_size!==16&&z.pixel_size!==24&&z.pixel_size!==32)throw new Error("THREE.TGALoader: Invalid pixel size "+z.pixel_size)}function i(z,Q,Y,he,ne){let Z,_e;const Te=Y.pixel_size>>3,ee=Y.width*Y.height*Te;if(Q&&(_e=ne.subarray(he,he+=Y.colormap_length*(Y.colormap_size>>3))),z){Z=new Uint8Array(ee);let le,re,W,ce=0;const me=new Uint8Array(Te);for(;ce<ee;)if(le=ne[he++],re=(le&127)+1,le&128){for(W=0;W<Te;++W)me[W]=ne[he++];for(W=0;W<re;++W)Z.set(me,ce+W*Te);ce+=Te*re}else{for(re*=Te,W=0;W<re;++W)Z[ce+W]=ne[he++];ce+=re}}else Z=ne.subarray(he,he+=Q?Y.width*Y.height:ee);return{pixel_data:Z,palettes:_e}}function r(z,Q,Y,he,ne,Z,_e,Te,ee){const le=ee;let re,W=0,ce,me;const Ce=M.width;for(me=Q;me!==he;me+=Y)for(ce=ne;ce!==_e;ce+=Z,W++)re=Te[W],z[(ce+Ce*me)*4+3]=255,z[(ce+Ce*me)*4+2]=le[re*3+0],z[(ce+Ce*me)*4+1]=le[re*3+1],z[(ce+Ce*me)*4+0]=le[re*3+2];return z}function a(z,Q,Y,he,ne,Z,_e,Te){let ee,le=0,re,W;const ce=M.width;for(W=Q;W!==he;W+=Y)for(re=ne;re!==_e;re+=Z,le+=2)ee=Te[le+0]+(Te[le+1]<<8),z[(re+ce*W)*4+0]=(ee&31744)>>7,z[(re+ce*W)*4+1]=(ee&992)>>2,z[(re+ce*W)*4+2]=(ee&31)<<3,z[(re+ce*W)*4+3]=ee&32768?0:255;return z}function o(z,Q,Y,he,ne,Z,_e,Te){let ee=0,le,re;const W=M.width;for(re=Q;re!==he;re+=Y)for(le=ne;le!==_e;le+=Z,ee+=3)z[(le+W*re)*4+3]=255,z[(le+W*re)*4+2]=Te[ee+0],z[(le+W*re)*4+1]=Te[ee+1],z[(le+W*re)*4+0]=Te[ee+2];return z}function s(z,Q,Y,he,ne,Z,_e,Te){let ee=0,le,re;const W=M.width;for(re=Q;re!==he;re+=Y)for(le=ne;le!==_e;le+=Z,ee+=4)z[(le+W*re)*4+2]=Te[ee+0],z[(le+W*re)*4+1]=Te[ee+1],z[(le+W*re)*4+0]=Te[ee+2],z[(le+W*re)*4+3]=Te[ee+3];return z}function l(z,Q,Y,he,ne,Z,_e,Te){let ee,le=0,re,W;const ce=M.width;for(W=Q;W!==he;W+=Y)for(re=ne;re!==_e;re+=Z,le++)ee=Te[le],z[(re+ce*W)*4+0]=ee,z[(re+ce*W)*4+1]=ee,z[(re+ce*W)*4+2]=ee,z[(re+ce*W)*4+3]=255;return z}function c(z,Q,Y,he,ne,Z,_e,Te){let ee=0,le,re;const W=M.width;for(re=Q;re!==he;re+=Y)for(le=ne;le!==_e;le+=Z,ee+=2)z[(le+W*re)*4+0]=Te[ee+0],z[(le+W*re)*4+1]=Te[ee+0],z[(le+W*re)*4+2]=Te[ee+0],z[(le+W*re)*4+3]=Te[ee+1];return z}function u(z,Q,Y,he,ne){let Z,_e,Te,ee,le,re;switch((M.flags&b)>>y){default:case _:Z=0,Te=1,le=Q,_e=0,ee=1,re=Y;break;case w:Z=0,Te=1,le=Q,_e=Y-1,ee=-1,re=-1;break;case E:Z=Q-1,Te=-1,le=-1,_e=0,ee=1,re=Y;break;case L:Z=Q-1,Te=-1,le=-1,_e=Y-1,ee=-1,re=-1;break}if(V)switch(M.pixel_size){case 8:l(z,_e,ee,re,Z,Te,le,he);break;case 16:c(z,_e,ee,re,Z,Te,le,he);break;default:throw new Error("THREE.TGALoader: Format not supported.")}else switch(M.pixel_size){case 8:r(z,_e,ee,re,Z,Te,le,he,ne);break;case 16:a(z,_e,ee,re,Z,Te,le,he);break;case 24:o(z,_e,ee,re,Z,Te,le,he);break;case 32:s(z,_e,ee,re,Z,Te,le,he);break;default:throw new Error("THREE.TGALoader: Format not supported.")}return z}const d=0,f=1,h=2,p=3,m=9,g=10,v=11,b=48,y=4,w=0,L=1,_=2,E=3;if(e.length<19)throw new Error("THREE.TGALoader: Not enough data to contain header.");let R=0;const S=new Uint8Array(e),M={id_length:S[R++],colormap_type:S[R++],image_type:S[R++],colormap_index:S[R++]|S[R++]<<8,colormap_length:S[R++]|S[R++]<<8,colormap_size:S[R++],origin:[S[R++]|S[R++]<<8,S[R++]|S[R++]<<8],width:S[R++]|S[R++]<<8,height:S[R++]|S[R++]<<8,pixel_size:S[R++],flags:S[R++]};if(n(M),M.id_length+R>e.length)throw new Error("THREE.TGALoader: No data.");R+=M.id_length;let D=!1,O=!1,V=!1;switch(M.image_type){case m:D=!0,O=!0;break;case f:O=!0;break;case g:D=!0;break;case h:break;case v:D=!0,V=!0;break;case p:V=!0;break}const X=new Uint8Array(M.width*M.height*4),K=i(D,O,M,R,S);return u(X,M.width,M.height,K.pixel_data,K.palettes),{data:X,width:M.width,height:M.height,flipY:!0,generateMipmaps:!0,minFilter:Sa}}}class IG extends ps{load(e,n,i,r){const a=this,o=a.path===""?DG.extractUrlBase(e):a.path,s=new VA(a.manager);s.setPath(a.path),s.setRequestHeader(a.requestHeader),s.setWithCredentials(a.withCredentials),s.load(e,function(l){try{n(a.parse(l,o))}catch(c){r?r(c):console.error(c),a.manager.itemError(e)}},i,r)}parse(e,n){function i(C,A){const N=[],I=C.childNodes;for(let U=0,xe=I.length;U<xe;U++){const Ee=I[U];Ee.nodeName===A&&N.push(Ee)}return N}function r(C){if(C.length===0)return[];const A=C.trim().split(/\s+/),N=new Array(A.length);for(let I=0,U=A.length;I<U;I++)N[I]=A[I];return N}function a(C){if(C.length===0)return[];const A=C.trim().split(/\s+/),N=new Array(A.length);for(let I=0,U=A.length;I<U;I++)N[I]=parseFloat(A[I]);return N}function o(C){if(C.length===0)return[];const A=C.trim().split(/\s+/),N=new Array(A.length);for(let I=0,U=A.length;I<U;I++)N[I]=parseInt(A[I]);return N}function s(C){return C.substring(1)}function l(){return"three_default_"+zC++}function c(C){return Object.keys(C).length===0}function u(C){return{unit:d(i(C,"unit")[0]),upAxis:f(i(C,"up_axis")[0])}}function d(C){return C!==void 0&&C.hasAttribute("meter")===!0?parseFloat(C.getAttribute("meter")):1}function f(C){return C!==void 0?C.textContent:"Y_UP"}function h(C,A,N,I){const U=i(C,A)[0];if(U!==void 0){const xe=i(U,N);for(let Ee=0;Ee<xe.length;Ee++)I(xe[Ee])}}function p(C,A){for(const N in C){const I=C[N];I.build=A(C[N])}}function m(C,A){return C.build!==void 0||(C.build=A(C)),C.build}function g(C){const A={sources:{},samplers:{},channels:{}};let N=!1;for(let I=0,U=C.childNodes.length;I<U;I++){const xe=C.childNodes[I];if(xe.nodeType!==1)continue;let Ee;switch(xe.nodeName){case"source":Ee=xe.getAttribute("id"),A.sources[Ee]=Se(xe);break;case"sampler":Ee=xe.getAttribute("id"),A.samplers[Ee]=v(xe);break;case"channel":Ee=xe.getAttribute("target"),A.channels[Ee]=b(xe);break;case"animation":g(xe),N=!0;break;default:console.log(xe)}}N===!1&&(mt.animations[C.getAttribute("id")||rl.generateUUID()]=A)}function v(C){const A={inputs:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"input":const xe=s(U.getAttribute("source")),Ee=U.getAttribute("semantic");A.inputs[Ee]=xe;break}}return A}function b(C){const A={};let I=C.getAttribute("target").split("/");const U=I.shift();let xe=I.shift();const Ee=xe.indexOf("(")!==-1,Qe=xe.indexOf(".")!==-1;if(Qe)I=xe.split("."),xe=I.shift(),A.member=I.shift();else if(Ee){const Fe=xe.split("(");xe=Fe.shift();for(let Xe=0;Xe<Fe.length;Xe++)Fe[Xe]=parseInt(Fe[Xe].replace(/\)/,""));A.indices=Fe}return A.id=U,A.sid=xe,A.arraySyntax=Ee,A.memberSyntax=Qe,A.sampler=s(C.getAttribute("source")),A}function y(C){const A=[],N=C.channels,I=C.samplers,U=C.sources;for(const xe in N)if(N.hasOwnProperty(xe)){const Ee=N[xe],Qe=I[Ee.sampler],Fe=Qe.inputs.INPUT,Xe=Qe.inputs.OUTPUT,at=U[Fe],De=U[Xe],it=L(Ee,at,De);M(it,A)}return A}function w(C){return m(mt.animations[C],y)}function L(C,A,N){const I=mt.nodes[C.id],U=et(I.id),xe=I.transforms[C.sid],Ee=I.matrix.clone().transpose();let Qe,Fe,Xe,at,De,it;const Je={};switch(xe){case"matrix":for(Xe=0,at=A.array.length;Xe<at;Xe++)if(Qe=A.array[Xe],Fe=Xe*N.stride,Je[Qe]===void 0&&(Je[Qe]={}),C.arraySyntax===!0){const En=N.array[Fe],tn=C.indices[0]+4*C.indices[1];Je[Qe][tn]=En}else for(De=0,it=N.stride;De<it;De++)Je[Qe][De]=N.array[Fe+De];break;case"translate":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',xe);break;case"rotate":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',xe);break;case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',xe);break}const dt=_(Je,Ee);return{name:U.uuid,keyframes:dt}}function _(C,A){const N=[];for(const U in C)N.push({time:parseFloat(U),value:C[U]});N.sort(I);for(let U=0;U<16;U++)D(N,U,A.elements[U]);return N;function I(U,xe){return U.time-xe.time}}const E=new te,R=new te,S=new Ia;function M(C,A){const N=C.keyframes,I=C.name,U=[],xe=[],Ee=[],Qe=[];for(let Fe=0,Xe=N.length;Fe<Xe;Fe++){const at=N[Fe],De=at.time,it=at.value;Ne.fromArray(it).transpose(),Ne.decompose(E,S,R),U.push(De),xe.push(E.x,E.y,E.z),Ee.push(S.x,S.y,S.z,S.w),Qe.push(R.x,R.y,R.z)}return xe.length>0&&A.push(new Hl(I+".position",U,xe)),Ee.length>0&&A.push(new Yu(I+".quaternion",U,Ee)),Qe.length>0&&A.push(new Hl(I+".scale",U,Qe)),A}function D(C,A,N){let I,U=!0,xe,Ee;for(xe=0,Ee=C.length;xe<Ee;xe++)I=C[xe],I.value[A]===void 0?I.value[A]=null:U=!1;if(U===!0)for(xe=0,Ee=C.length;xe<Ee;xe++)I=C[xe],I.value[A]=N;else O(C,A)}function O(C,A){let N,I;for(let U=0,xe=C.length;U<xe;U++){const Ee=C[U];if(Ee.value[A]===null){if(N=V(C,U,A),I=X(C,U,A),N===null){Ee.value[A]=I.value[A];continue}if(I===null){Ee.value[A]=N.value[A];continue}K(Ee,N,I,A)}}}function V(C,A,N){for(;A>=0;){const I=C[A];if(I.value[N]!==null)return I;A--}return null}function X(C,A,N){for(;A<C.length;){const I=C[A];if(I.value[N]!==null)return I;A++}return null}function K(C,A,N,I){if(N.time-A.time===0){C.value[I]=A.value[I];return}C.value[I]=(C.time-A.time)*(N.value[I]-A.value[I])/(N.time-A.time)+A.value[I]}function z(C){const A={name:C.getAttribute("id")||"default",start:parseFloat(C.getAttribute("start")||0),end:parseFloat(C.getAttribute("end")||0),animations:[]};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"instance_animation":A.animations.push(s(U.getAttribute("url")));break}}mt.clips[C.getAttribute("id")]=A}function Q(C){const A=[],N=C.name,I=C.end-C.start||-1,U=C.animations;for(let xe=0,Ee=U.length;xe<Ee;xe++){const Qe=w(U[xe]);for(let Fe=0,Xe=Qe.length;Fe<Xe;Fe++)A.push(Qe[Fe])}return new _S(N,I,A)}function Y(C){return m(mt.clips[C],Q)}function he(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"skin":A.id=s(U.getAttribute("source")),A.skin=ne(U);break;case"morph":A.id=s(U.getAttribute("source")),console.warn("THREE.ColladaLoader: Morph target animation not supported yet.");break}}mt.controllers[C.getAttribute("id")]=A}function ne(C){const A={sources:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"bind_shape_matrix":A.bindShapeMatrix=a(U.textContent);break;case"source":const xe=U.getAttribute("id");A.sources[xe]=Se(U);break;case"joints":A.joints=Z(U);break;case"vertex_weights":A.vertexWeights=_e(U);break}}return A}function Z(C){const A={inputs:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"input":const xe=U.getAttribute("semantic"),Ee=s(U.getAttribute("source"));A.inputs[xe]=Ee;break}}return A}function _e(C){const A={inputs:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"input":const xe=U.getAttribute("semantic"),Ee=s(U.getAttribute("source")),Qe=parseInt(U.getAttribute("offset"));A.inputs[xe]={id:Ee,offset:Qe};break;case"vcount":A.vcount=o(U.textContent);break;case"v":A.v=o(U.textContent);break}}return A}function Te(C){const A={id:C.id},N=mt.geometries[A.id];return C.skin!==void 0&&(A.skin=ee(C.skin),N.sources.skinIndices=A.skin.indices,N.sources.skinWeights=A.skin.weights),A}function ee(C){const N={joints:[],indices:{array:[],stride:4},weights:{array:[],stride:4}},I=C.sources,U=C.vertexWeights,xe=U.vcount,Ee=U.v,Qe=U.inputs.JOINT.offset,Fe=U.inputs.WEIGHT.offset,Xe=C.sources[C.joints.inputs.JOINT],at=C.sources[C.joints.inputs.INV_BIND_MATRIX],De=I[U.inputs.WEIGHT.id].array;let it=0,Je,dt,st;for(Je=0,st=xe.length;Je<st;Je++){const tn=xe[Je],Qt=[];for(dt=0;dt<tn;dt++){const Zt=Ee[it+Qe],sa=Ee[it+Fe],Di=De[sa];Qt.push({index:Zt,weight:Di}),it+=2}for(Qt.sort(En),dt=0;dt<4;dt++){const Zt=Qt[dt];Zt!==void 0?(N.indices.array.push(Zt.index),N.weights.array.push(Zt.weight)):(N.indices.array.push(0),N.weights.array.push(0))}}for(C.bindShapeMatrix?N.bindMatrix=new Rt().fromArray(C.bindShapeMatrix).transpose():N.bindMatrix=new Rt().identity(),Je=0,st=Xe.array.length;Je<st;Je++){const tn=Xe.array[Je],Qt=new Rt().fromArray(at.array,Je*at.stride).transpose();N.joints.push({name:tn,boneInverse:Qt})}return N;function En(tn,Qt){return Qt.weight-tn.weight}}function le(C){return m(mt.controllers[C],Te)}function re(C){const A={init_from:i(C,"init_from")[0].textContent};mt.images[C.getAttribute("id")]=A}function W(C){return C.build!==void 0?C.build:C.init_from}function ce(C){const A=mt.images[C];return A!==void 0?m(A,W):(console.warn("THREE.ColladaLoader: Couldn't find image with ID:",C),null)}function me(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"profile_COMMON":A.profile=Ce(U);break}}mt.effects[C.getAttribute("id")]=A}function Ce(C){const A={surfaces:{},samplers:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"newparam":$e(U,A);break;case"technique":A.technique=B(U);break;case"extra":A.extra=k(U);break}}return A}function $e(C,A){const N=C.getAttribute("sid");for(let I=0,U=C.childNodes.length;I<U;I++){const xe=C.childNodes[I];if(xe.nodeType===1)switch(xe.nodeName){case"surface":A.surfaces[N]=j(xe);break;case"sampler2D":A.samplers[N]=H(xe);break}}}function j(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"init_from":A.init_from=U.textContent;break}}return A}function H(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"source":A.source=U.textContent;break}}return A}function B(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"constant":case"lambert":case"blinn":case"phong":A.type=U.nodeName,A.parameters=J(U);break;case"extra":A.extra=k(U);break}}return A}function J(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":A[U.nodeName]=ie(U);break;case"transparent":A[U.nodeName]={opaque:U.hasAttribute("opaque")?U.getAttribute("opaque"):"A_ONE",data:ie(U)};break}}return A}function ie(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"color":A[U.nodeName]=a(U.textContent);break;case"float":A[U.nodeName]=parseFloat(U.textContent);break;case"texture":A[U.nodeName]={id:U.getAttribute("texture"),extra:fe(U)};break}}return A}function fe(C){const A={technique:{}};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"extra":ye(U,A);break}}return A}function ye(C,A){for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"technique":Me(U,A);break}}}function Me(C,A){for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":A.technique[U.nodeName]=parseFloat(U.textContent);break;case"wrapU":case"wrapV":U.textContent.toUpperCase()==="TRUE"?A.technique[U.nodeName]=1:U.textContent.toUpperCase()==="FALSE"?A.technique[U.nodeName]=0:A.technique[U.nodeName]=parseInt(U.textContent);break;case"bump":A[U.nodeName]=G(U);break}}}function k(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"technique":A.technique=T(U);break}}return A}function T(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"double_sided":A[U.nodeName]=parseInt(U.textContent);break;case"bump":A[U.nodeName]=G(U);break}}return A}function G(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"texture":A[U.nodeName]={id:U.getAttribute("texture"),texcoord:U.getAttribute("texcoord"),extra:fe(U)};break}}return A}function oe(C){return C}function pe(C){return m(mt.effects[C],oe)}function ue(C){const A={name:C.getAttribute("name")};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"instance_effect":A.url=s(U.getAttribute("url"));break}}mt.materials[C.getAttribute("id")]=A}function Re(C){let A,N=C.slice((C.lastIndexOf(".")-1>>>0)+2);switch(N=N.toLowerCase(),N){case"tga":A=np;break;default:A=mc}return A}function Ae(C){const A=pe(C.url),N=A.profile.technique;let I;switch(N.type){case"phong":case"blinn":I=new yS;break;case"lambert":I=new uG;break;default:I=new $f;break}I.name=C.name||"";function U(Fe,Xe=null){const at=A.profile.samplers[Fe.id];let De=null;if(at!==void 0){const it=A.profile.surfaces[at.source];De=ce(it.init_from)}else console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),De=ce(Fe.id);if(De!==null){const it=Re(De);if(it!==void 0){const Je=it.load(De),dt=Fe.extra;if(dt!==void 0&&dt.technique!==void 0&&c(dt.technique)===!1){const st=dt.technique;Je.wrapS=st.wrapU?Jo:Er,Je.wrapT=st.wrapV?Jo:Er,Je.offset.set(st.offsetU||0,st.offsetV||0),Je.repeat.set(st.repeatU||1,st.repeatV||1)}else Je.wrapS=Jo,Je.wrapT=Jo;return Xe!==null&&(Je.colorSpace=Xe),Je}else return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",De),null}else return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",Fe.id),null}const xe=N.parameters;for(const Fe in xe){const Xe=xe[Fe];switch(Fe){case"diffuse":Xe.color&&I.color.fromArray(Xe.color),Xe.texture&&(I.map=U(Xe.texture,Qi));break;case"specular":Xe.color&&I.specular&&I.specular.fromArray(Xe.color),Xe.texture&&(I.specularMap=U(Xe.texture));break;case"bump":Xe.texture&&(I.normalMap=U(Xe.texture));break;case"ambient":Xe.texture&&(I.lightMap=U(Xe.texture,Qi));break;case"shininess":Xe.float&&I.shininess&&(I.shininess=Xe.float);break;case"emission":Xe.color&&I.emissive&&I.emissive.fromArray(Xe.color),Xe.texture&&(I.emissiveMap=U(Xe.texture,Qi));break}}I.color.convertSRGBToLinear(),I.specular&&I.specular.convertSRGBToLinear(),I.emissive&&I.emissive.convertSRGBToLinear();let Ee=xe.transparent,Qe=xe.transparency;if(Qe===void 0&&Ee&&(Qe={float:1}),Ee===void 0&&Qe&&(Ee={opaque:"A_ONE",data:{color:[1,1,1,1]}}),Ee&&Qe)if(Ee.data.texture)I.transparent=!0;else{const Fe=Ee.data.color;switch(Ee.opaque){case"A_ONE":I.opacity=Fe[3]*Qe.float;break;case"RGB_ZERO":I.opacity=1-Fe[0]*Qe.float;break;case"A_ZERO":I.opacity=1-Fe[3]*Qe.float;break;case"RGB_ONE":I.opacity=Fe[0]*Qe.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',Ee.opaque)}I.opacity<1&&(I.transparent=!0)}if(N.extra!==void 0&&N.extra.technique!==void 0){const Fe=N.extra.technique;for(const Xe in Fe){const at=Fe[Xe];switch(Xe){case"double_sided":I.side=at===1?Kr:Ra;break;case"bump":I.normalMap=U(at.texture),I.normalScale=new bt(1,1);break}}}return I}function Le(C){return m(mt.materials[C],Ae)}function ze(C){const A={name:C.getAttribute("name")};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"optics":A.optics=Pe(U);break}}mt.cameras[C.getAttribute("id")]=A}function Pe(C){for(let A=0;A<C.childNodes.length;A++){const N=C.childNodes[A];switch(N.nodeName){case"technique_common":return Ue(N)}}return{}}function Ue(C){const A={};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];switch(I.nodeName){case"perspective":case"orthographic":A.technique=I.nodeName,A.parameters=xt(I);break}}return A}function xt(C){const A={};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];switch(I.nodeName){case"xfov":case"yfov":case"xmag":case"ymag":case"znear":case"zfar":case"aspect_ratio":A[I.nodeName]=parseFloat(I.textContent);break}}return A}function lt(C){let A;switch(C.optics.technique){case"perspective":A=new pi(C.optics.parameters.yfov,C.optics.parameters.aspect_ratio,C.optics.parameters.znear,C.optics.parameters.zfar);break;case"orthographic":let N=C.optics.parameters.ymag,I=C.optics.parameters.xmag;const U=C.optics.parameters.aspect_ratio;I=I===void 0?N*U:I,N=N===void 0?I/U:N,I*=.5,N*=.5,A=new s0(-I,I,N,-N,C.optics.parameters.znear,C.optics.parameters.zfar);break;default:A=new pi;break}return A.name=C.name||"",A}function je(C){const A=mt.cameras[C];return A!==void 0?m(A,lt):(console.warn("THREE.ColladaLoader: Couldn't find camera with ID:",C),null)}function ht(C){let A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"technique_common":A=tt(U);break}}mt.lights[C.getAttribute("id")]=A}function tt(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"directional":case"point":case"spot":case"ambient":A.technique=U.nodeName,A.parameters=kt(U)}}return A}function kt(C){const A={};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"color":const xe=a(U.textContent);A.color=new Ot().fromArray(xe).convertSRGBToLinear();break;case"falloff_angle":A.falloffAngle=parseFloat(U.textContent);break;case"quadratic_attenuation":const Ee=parseFloat(U.textContent);A.distance=Ee?Math.sqrt(1/Ee):0;break}}return A}function P(C){let A;switch(C.technique){case"directional":A=new PG;break;case"point":A=new HA;break;case"spot":A=new TG;break;case"ambient":A=new RG;break}return C.parameters.color&&A.color.copy(C.parameters.color),C.parameters.distance&&(A.distance=C.parameters.distance),A}function de(C){const A=mt.lights[C];return A!==void 0?m(A,P):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",C),null)}function ge(C){const A={name:C.getAttribute("name"),sources:{},vertices:{},primitives:[]},N=i(C,"mesh")[0];if(N!==void 0){for(let I=0;I<N.childNodes.length;I++){const U=N.childNodes[I];if(U.nodeType!==1)continue;const xe=U.getAttribute("id");switch(U.nodeName){case"source":A.sources[xe]=Se(U);break;case"vertices":A.vertices=Ie(U);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",U.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":A.primitives.push(rt(U));break;default:console.log(U)}}mt.geometries[C.getAttribute("id")]=A}}function Se(C){const A={array:[],stride:3};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"float_array":A.array=a(I.textContent);break;case"Name_array":A.array=r(I.textContent);break;case"technique_common":const U=i(I,"accessor")[0];U!==void 0&&(A.stride=parseInt(U.getAttribute("stride")));break}}return A}function Ie(C){const A={};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];I.nodeType===1&&(A[I.getAttribute("semantic")]=s(I.getAttribute("source")))}return A}function rt(C){const A={type:C.nodeName,material:C.getAttribute("material"),count:parseInt(C.getAttribute("count")),inputs:{},stride:0,hasUV:!1};for(let N=0,I=C.childNodes.length;N<I;N++){const U=C.childNodes[N];if(U.nodeType===1)switch(U.nodeName){case"input":const xe=s(U.getAttribute("source")),Ee=U.getAttribute("semantic"),Qe=parseInt(U.getAttribute("offset")),Fe=parseInt(U.getAttribute("set")),Xe=Fe>0?Ee+Fe:Ee;A.inputs[Xe]={id:xe,offset:Qe},A.stride=Math.max(A.stride,Qe+1),Ee==="TEXCOORD"&&(A.hasUV=!0);break;case"vcount":A.vcount=o(U.textContent);break;case"p":A.p=o(U.textContent);break}}return A}function vt(C){const A={};for(let N=0;N<C.length;N++){const I=C[N];A[I.type]===void 0&&(A[I.type]=[]),A[I.type].push(I)}return A}function Sn(C){let A=0;for(let N=0,I=C.length;N<I;N++)C[N].hasUV===!0&&A++;A>0&&A<C.length&&(C.uvsNeedsFix=!0)}function Rn(C){const A={},N=C.sources,I=C.vertices,U=C.primitives;if(U.length===0)return{};const xe=vt(U);for(const Ee in xe){const Qe=xe[Ee];Sn(Qe),A[Ee]=zt(Qe,N,I)}return A}function zt(C,A,N){const I={},U={array:[],stride:0},xe={array:[],stride:0},Ee={array:[],stride:0},Qe={array:[],stride:0},Fe={array:[],stride:0},Xe={array:[],stride:4},at={array:[],stride:4},De=new Ba,it=[];let Je=0;for(let dt=0;dt<C.length;dt++){const st=C[dt],En=st.inputs;let tn=0;switch(st.type){case"lines":case"linestrips":tn=st.count*2;break;case"triangles":tn=st.count*3;break;case"polylist":for(let Qt=0;Qt<st.count;Qt++){const Zt=st.vcount[Qt];switch(Zt){case 3:tn+=3;break;case 4:tn+=6;break;default:tn+=(Zt-2)*3;break}}break;default:console.warn("THREE.ColladaLoader: Unknow primitive type:",st.type)}De.addGroup(Je,tn,dt),Je+=tn,st.material&&it.push(st.material);for(const Qt in En){const Zt=En[Qt];switch(Qt){case"VERTEX":for(const sa in N){const Di=N[sa];switch(sa){case"POSITION":const Ts=U.array.length;if($t(st,A[Di],Zt.offset,U.array),U.stride=A[Di].stride,A.skinWeights&&A.skinIndices&&($t(st,A.skinIndices,Zt.offset,Xe.array),$t(st,A.skinWeights,Zt.offset,at.array)),st.hasUV===!1&&C.uvsNeedsFix===!0){const WC=(U.array.length-Ts)/U.stride;for(let w0=0;w0<WC;w0++)Ee.array.push(0,0)}break;case"NORMAL":$t(st,A[Di],Zt.offset,xe.array),xe.stride=A[Di].stride;break;case"COLOR":$t(st,A[Di],Zt.offset,Fe.array),Fe.stride=A[Di].stride;break;case"TEXCOORD":$t(st,A[Di],Zt.offset,Ee.array),Ee.stride=A[Di].stride;break;case"TEXCOORD1":$t(st,A[Di],Zt.offset,Qe.array),Ee.stride=A[Di].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',sa)}}break;case"NORMAL":$t(st,A[Zt.id],Zt.offset,xe.array),xe.stride=A[Zt.id].stride;break;case"COLOR":$t(st,A[Zt.id],Zt.offset,Fe.array,!0),Fe.stride=A[Zt.id].stride;break;case"TEXCOORD":$t(st,A[Zt.id],Zt.offset,Ee.array),Ee.stride=A[Zt.id].stride;break;case"TEXCOORD1":$t(st,A[Zt.id],Zt.offset,Qe.array),Qe.stride=A[Zt.id].stride;break}}}return U.array.length>0&&De.setAttribute("position",new di(U.array,U.stride)),xe.array.length>0&&De.setAttribute("normal",new di(xe.array,xe.stride)),Fe.array.length>0&&De.setAttribute("color",new di(Fe.array,Fe.stride)),Ee.array.length>0&&De.setAttribute("uv",new di(Ee.array,Ee.stride)),Qe.array.length>0&&De.setAttribute("uv1",new di(Qe.array,Qe.stride)),Xe.array.length>0&&De.setAttribute("skinIndex",new di(Xe.array,Xe.stride)),at.array.length>0&&De.setAttribute("skinWeight",new di(at.array,at.stride)),I.data=De,I.type=C[0].type,I.materialKeys=it,I}function $t(C,A,N,I,U=!1){const xe=C.p,Ee=C.stride,Qe=C.vcount;function Fe(De){let it=xe[De+N]*at;const Je=it+at;for(;it<Je;it++)I.push(Xe[it]);if(U){const dt=I.length-at-1;td.setRGB(I[dt+0],I[dt+1],I[dt+2]).convertSRGBToLinear(),I[dt+0]=td.r,I[dt+1]=td.g,I[dt+2]=td.b}}const Xe=A.array,at=A.stride;if(C.vcount!==void 0){let De=0;for(let it=0,Je=Qe.length;it<Je;it++){const dt=Qe[it];if(dt===4){const st=De+Ee*0,En=De+Ee*1,tn=De+Ee*2,Qt=De+Ee*3;Fe(st),Fe(En),Fe(Qt),Fe(En),Fe(tn),Fe(Qt)}else if(dt===3){const st=De+Ee*0,En=De+Ee*1,tn=De+Ee*2;Fe(st),Fe(En),Fe(tn)}else if(dt>4)for(let st=1,En=dt-2;st<=En;st++){const tn=De+Ee*0,Qt=De+Ee*st,Zt=De+Ee*(st+1);Fe(tn),Fe(Qt),Fe(Zt)}De+=Ee*dt}}else for(let De=0,it=xe.length;De<it;De+=Ee)Fe(De)}function wn(C){return m(mt.geometries[C],Rn)}function Fr(C){const A={name:C.getAttribute("name")||"",joints:{},links:[]};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"technique_common":aa(I,A);break}}mt.kinematicsModels[C.getAttribute("id")]=A}function Wn(C){return C.build!==void 0?C.build:C}function mr(C){return m(mt.kinematicsModels[C],Wn)}function aa(C,A){for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"joint":A.joints[I.getAttribute("sid")]=Do(I);break;case"link":A.links.push(dc(I));break}}}function Do(C){let A;for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"prismatic":case"revolute":A=Ms(I);break}}return A}function Ms(C){const A={sid:C.getAttribute("sid"),name:C.getAttribute("name")||"",axis:new te,limits:{min:0,max:0},type:C.nodeName,static:!1,zeroPosition:0,middlePosition:0};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"axis":const U=a(I.textContent);A.axis.fromArray(U);break;case"limits":const xe=I.getElementsByTagName("max")[0],Ee=I.getElementsByTagName("min")[0];A.limits.max=parseFloat(xe.textContent),A.limits.min=parseFloat(Ee.textContent);break}}return A.limits.min>=A.limits.max&&(A.static=!0),A.middlePosition=(A.limits.min+A.limits.max)/2,A}function dc(C){const A={sid:C.getAttribute("sid"),name:C.getAttribute("name")||"",attachments:[],transforms:[]};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"attachment_full":A.attachments.push(Es(I));break;case"matrix":case"translate":case"rotate":A.transforms.push(fc(I));break}}return A}function Es(C){const A={joint:C.getAttribute("joint").split("/").pop(),transforms:[],links:[]};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"link":A.links.push(dc(I));break;case"matrix":case"translate":case"rotate":A.transforms.push(fc(I));break}}return A}function fc(C){const A={type:C.nodeName},N=a(C.textContent);switch(A.type){case"matrix":A.obj=new Rt,A.obj.fromArray(N).transpose();break;case"translate":A.obj=new te,A.obj.fromArray(N);break;case"rotate":A.obj=new te,A.obj.fromArray(N),A.angle=rl.degToRad(N[3]);break}return A}function Ju(C){const A={name:C.getAttribute("name")||"",rigidBodies:{}};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"rigid_body":A.rigidBodies[I.getAttribute("name")]={},Jh(I,A.rigidBodies[I.getAttribute("name")]);break}}mt.physicsModels[C.getAttribute("id")]=A}function Jh(C,A){for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"technique_common":ep(I,A);break}}}function ep(C,A){for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"inertia":A.inertia=a(I.textContent);break;case"mass":A.mass=a(I.textContent)[0];break}}}function tp(C){const A={bindJointAxis:[]};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"bind_joint_axis":A.bindJointAxis.push(F(I));break}}mt.kinematicsScenes[s(C.getAttribute("url"))]=A}function F(C){const A={target:C.getAttribute("target").split("/").pop()};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType===1)switch(I.nodeName){case"axis":const U=I.getElementsByTagName("param")[0];A.axis=U.textContent;const xe=A.axis.split("inst_").pop().split("axis")[0];A.jointIndex=xe.substring(0,xe.length-1);break}}return A}function ae(C){return C.build!==void 0?C.build:C}function ve(C){return m(mt.kinematicsScenes[C],ae)}function be(){const C=Object.keys(mt.kinematicsModels)[0],A=Object.keys(mt.kinematicsScenes)[0],N=Object.keys(mt.visualScenes)[0];if(C===void 0||A===void 0)return;const I=mr(C),U=ve(A),xe=oa(N),Ee=U.bindJointAxis,Qe={};for(let at=0,De=Ee.length;at<De;at++){const it=Ee[at],Je=Mn.querySelector('[sid="'+it.target+'"]');if(Je){const dt=Je.parentElement;Fe(it.jointIndex,dt)}}function Fe(at,De){const it=De.getAttribute("name"),Je=I.joints[at];xe.traverse(function(dt){dt.name===it&&(Qe[at]={object:dt,transforms:se(De),joint:Je,position:Je.zeroPosition})})}const Xe=new Rt;S0={joints:I&&I.joints,getJointValue:function(at){const De=Qe[at];if(De)return De.position;console.warn("THREE.ColladaLoader: Joint "+at+" doesn't exist.")},setJointValue:function(at,De){const it=Qe[at];if(it){const Je=it.joint;if(De>Je.limits.max||De<Je.limits.min)console.warn("THREE.ColladaLoader: Joint "+at+" value "+De+" outside of limits (min: "+Je.limits.min+", max: "+Je.limits.max+").");else if(Je.static)console.warn("THREE.ColladaLoader: Joint "+at+" is static.");else{const dt=it.object,st=Je.axis,En=it.transforms;Ne.identity();for(let tn=0;tn<En.length;tn++){const Qt=En[tn];if(Qt.sid&&Qt.sid.indexOf(at)!==-1)switch(Je.type){case"revolute":Ne.multiply(Xe.makeRotationAxis(st,rl.degToRad(De)));break;case"prismatic":Ne.multiply(Xe.makeTranslation(st.x*De,st.y*De,st.z*De));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+Je.type);break}else switch(Qt.type){case"matrix":Ne.multiply(Qt.obj);break;case"translate":Ne.multiply(Xe.makeTranslation(Qt.obj.x,Qt.obj.y,Qt.obj.z));break;case"scale":Ne.scale(Qt.obj);break;case"rotate":Ne.multiply(Xe.makeRotationAxis(Qt.obj,Qt.angle));break}}dt.matrix.copy(Ne),dt.matrix.decompose(dt.position,dt.quaternion,dt.scale),Qe[at].position=De}}else console.log("THREE.ColladaLoader: "+at+" does not exist.")}}}function se(C){const A=[],N=Mn.querySelector('[id="'+C.id+'"]');for(let I=0;I<N.childNodes.length;I++){const U=N.childNodes[I];if(U.nodeType!==1)continue;let xe,Ee;switch(U.nodeName){case"matrix":xe=a(U.textContent);const Qe=new Rt().fromArray(xe).transpose();A.push({sid:U.getAttribute("sid"),type:U.nodeName,obj:Qe});break;case"translate":case"scale":xe=a(U.textContent),Ee=new te().fromArray(xe),A.push({sid:U.getAttribute("sid"),type:U.nodeName,obj:Ee});break;case"rotate":xe=a(U.textContent),Ee=new te().fromArray(xe);const Fe=rl.degToRad(xe[3]);A.push({sid:U.getAttribute("sid"),type:U.nodeName,obj:Ee,angle:Fe});break}}return A}function Oe(C){const A=C.getElementsByTagName("node");for(let N=0;N<A.length;N++){const I=A[N];I.hasAttribute("id")===!1&&I.setAttribute("id",l())}}const Ne=new Rt,qe=new te;function Ze(C){const A={name:C.getAttribute("name")||"",type:C.getAttribute("type"),id:C.getAttribute("id"),sid:C.getAttribute("sid"),matrix:new Rt,nodes:[],instanceCameras:[],instanceControllers:[],instanceLights:[],instanceGeometries:[],instanceNodes:[],transforms:{}};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];if(I.nodeType!==1)continue;let U;switch(I.nodeName){case"node":A.nodes.push(I.getAttribute("id")),Ze(I);break;case"instance_camera":A.instanceCameras.push(s(I.getAttribute("url")));break;case"instance_controller":A.instanceControllers.push(pt(I));break;case"instance_light":A.instanceLights.push(s(I.getAttribute("url")));break;case"instance_geometry":A.instanceGeometries.push(pt(I));break;case"instance_node":A.instanceNodes.push(s(I.getAttribute("url")));break;case"matrix":U=a(I.textContent),A.matrix.multiply(Ne.fromArray(U).transpose()),A.transforms[I.getAttribute("sid")]=I.nodeName;break;case"translate":U=a(I.textContent),qe.fromArray(U),A.matrix.multiply(Ne.makeTranslation(qe.x,qe.y,qe.z)),A.transforms[I.getAttribute("sid")]=I.nodeName;break;case"rotate":U=a(I.textContent);const xe=rl.degToRad(U[3]);A.matrix.multiply(Ne.makeRotationAxis(qe.fromArray(U),xe)),A.transforms[I.getAttribute("sid")]=I.nodeName;break;case"scale":U=a(I.textContent),A.matrix.scale(qe.fromArray(U)),A.transforms[I.getAttribute("sid")]=I.nodeName;break;case"extra":break;default:console.log(I)}}return Gt(A.id)?console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.",A.id):mt.nodes[A.id]=A,A}function pt(C){const A={id:s(C.getAttribute("url")),materials:{},skeletons:[]};for(let N=0;N<C.childNodes.length;N++){const I=C.childNodes[N];switch(I.nodeName){case"bind_material":const U=I.getElementsByTagName("instance_material");for(let xe=0;xe<U.length;xe++){const Ee=U[xe],Qe=Ee.getAttribute("symbol"),Fe=Ee.getAttribute("target");A.materials[Qe]=s(Fe)}break;case"skeleton":A.skeletons.push(s(I.textContent));break}}return A}function yt(C,A){const N=[],I=[];let U,xe,Ee;for(U=0;U<C.length;U++){const Xe=C[U];let at;if(Gt(Xe))at=et(Xe),ct(at,A,N);else if(Xi(Xe)){const it=mt.visualScenes[Xe].children;for(let Je=0;Je<it.length;Je++){const dt=it[Je];if(dt.type==="JOINT"){const st=et(dt.id);ct(st,A,N)}}}else console.error("THREE.ColladaLoader: Unable to find root bone of skeleton with ID:",Xe)}for(U=0;U<A.length;U++)for(xe=0;xe<N.length;xe++)if(Ee=N[xe],Ee.bone.name===A[U].name){I[U]=Ee,Ee.processed=!0;break}for(U=0;U<N.length;U++)Ee=N[U],Ee.processed===!1&&(I.push(Ee),Ee.processed=!0);const Qe=[],Fe=[];for(U=0;U<I.length;U++)Ee=I[U],Qe.push(Ee.bone),Fe.push(Ee.boneInverse);return new c0(Qe,Fe)}function ct(C,A,N){C.traverse(function(I){if(I.isBone===!0){let U;for(let xe=0;xe<A.length;xe++){const Ee=A[xe];if(Ee.name===I.name){U=Ee.boneInverse;break}}U===void 0&&(U=new Rt),N.push({bone:I,boneInverse:U,processed:!1})}})}function Kt(C){const A=[],N=C.matrix,I=C.nodes,U=C.type,xe=C.instanceCameras,Ee=C.instanceControllers,Qe=C.instanceLights,Fe=C.instanceGeometries,Xe=C.instanceNodes;for(let De=0,it=I.length;De<it;De++)A.push(et(I[De]));for(let De=0,it=xe.length;De<it;De++){const Je=je(xe[De]);Je!==null&&A.push(Je.clone())}for(let De=0,it=Ee.length;De<it;De++){const Je=Ee[De],dt=le(Je.id),st=wn(dt.id),En=oi(st,Je.materials),tn=Je.skeletons,Qt=dt.skin.joints,Zt=yt(tn,Qt);for(let sa=0,Di=En.length;sa<Di;sa++){const Ts=En[sa];Ts.isSkinnedMesh&&(Ts.bind(Zt,dt.skin.bindMatrix),Ts.normalizeSkinWeights()),A.push(Ts)}}for(let De=0,it=Qe.length;De<it;De++){const Je=de(Qe[De]);Je!==null&&A.push(Je.clone())}for(let De=0,it=Fe.length;De<it;De++){const Je=Fe[De],dt=wn(Je.id),st=oi(dt,Je.materials);for(let En=0,tn=st.length;En<tn;En++)A.push(st[En])}for(let De=0,it=Xe.length;De<it;De++)A.push(et(Xe[De]).clone());let at;if(I.length===0&&A.length===1)at=A[0];else{at=U==="JOINT"?new NA:new dl;for(let De=0;De<A.length;De++)at.add(A[De])}return at.name=U==="JOINT"?C.sid:C.name,at.matrix.copy(N),at.matrix.decompose(at.position,at.quaternion,at.scale),at}const vn=new $f({name:ps.DEFAULT_MATERIAL_NAME,color:16711935});function yn(C,A){const N=[];for(let I=0,U=C.length;I<U;I++){const xe=A[C[I]];xe===void 0?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",C[I]),N.push(vn)):N.push(Le(xe))}return N}function oi(C,A){const N=[];for(const I in C){const U=C[I],xe=yn(U.materialKeys,A);if(xe.length===0&&(I==="lines"||I==="linestrips"?xe.push(new fv):xe.push(new yS)),I==="lines"||I==="linestrips")for(let Xe=0,at=xe.length;Xe<at;Xe++){const De=xe[Xe];if(De.isMeshPhongMaterial===!0||De.isMeshLambertMaterial===!0){const it=new fv;it.color.copy(De.color),it.opacity=De.opacity,it.transparent=De.transparent,xe[Xe]=it}}const Ee=U.data.attributes.skinIndex!==void 0,Qe=xe.length===1?xe[0]:xe;let Fe;switch(I){case"lines":Fe=new cG(U.data,Qe);break;case"linestrips":Fe=new UA(U.data,Qe);break;case"triangles":case"polylist":Ee?Fe=new sG(U.data,Qe):Fe=new Tr(U.data,Qe);break}N.push(Fe)}return N}function Gt(C){return mt.nodes[C]!==void 0}function et(C){return m(mt.nodes[C],Kt)}function Gn(C){const A={name:C.getAttribute("name"),children:[]};Oe(C);const N=i(C,"node");for(let I=0;I<N.length;I++)A.children.push(Ze(N[I]));mt.visualScenes[C.getAttribute("id")]=A}function jt(C){const A=new dl;A.name=C.name;const N=C.children;for(let I=0;I<N.length;I++){const U=N[I];A.add(et(U.id))}return A}function Xi(C){return mt.visualScenes[C]!==void 0}function oa(C){return m(mt.visualScenes[C],jt)}function xi(C){const A=i(C,"instance_visual_scene")[0];return oa(s(A.getAttribute("url")))}function hc(){const C=mt.clips;if(c(C)===!0){if(c(mt.animations)===!1){const A=[];for(const N in mt.animations){const I=w(N);for(let U=0,xe=I.length;U<xe;U++)A.push(I[U])}nd.push(new _S("default",-1,A))}}else for(const A in C)nd.push(Y(A))}function Dn(C){let A="";const N=[C];for(;N.length;){const I=N.shift();I.nodeType===Node.TEXT_NODE?A+=I.textContent:(A+=`
`,N.push.apply(N,I.childNodes))}return A.trim()}if(e.length===0)return{scene:new OA};const gr=new DOMParser().parseFromString(e,"application/xml"),Mn=i(gr,"COLLADA")[0],si=gr.getElementsByTagName("parsererror")[0];if(si!==void 0){const C=i(si,"div")[0];let A;return C?A=C.textContent:A=Dn(si),console.error(`THREE.ColladaLoader: Failed to parse collada file.
`,A),null}const pc=Mn.getAttribute("version");console.debug("THREE.ColladaLoader: File version",pc);const ed=u(i(Mn,"asset")[0]),mc=new MG(this.manager);mc.setPath(this.resourcePath||n).setCrossOrigin(this.crossOrigin);let np;ES&&(np=new ES(this.manager),np.setPath(this.resourcePath||n));const td=new Ot,nd=[];let S0={},zC=0;const mt={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};h(Mn,"library_animations","animation",g),h(Mn,"library_animation_clips","animation_clip",z),h(Mn,"library_controllers","controller",he),h(Mn,"library_images","image",re),h(Mn,"library_effects","effect",me),h(Mn,"library_materials","material",ue),h(Mn,"library_cameras","camera",ze),h(Mn,"library_lights","light",ht),h(Mn,"library_geometries","geometry",ge),h(Mn,"library_nodes","node",Ze),h(Mn,"library_visual_scenes","visual_scene",Gn),h(Mn,"library_kinematics_models","kinematics_model",Fr),h(Mn,"library_physics_models","physics_model",Ju),h(Mn,"scene","instance_kinematics_scene",tp),p(mt.animations,y),p(mt.clips,Q),p(mt.controllers,Te),p(mt.images,W),p(mt.effects,oe),p(mt.materials,Ae),p(mt.cameras,lt),p(mt.lights,P),p(mt.geometries,Rn),p(mt.visualScenes,jt),hc(),be();const id=xi(i(Mn,"scene")[0]);return id.animations=nd,ed.upAxis==="Z_UP"&&(console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."),id.rotation.set(-Math.PI/2,0,0)),id.scale.multiplyScalar(ed.unit),{get animations(){return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."),nd},kinematics:S0,library:mt,scene:id}}}const TS={type:"change"},gm={type:"start"},AS={type:"end"},Yd=new Xh,CS=new ro,LG=Math.cos(70*rl.DEG2RAD);class OG extends Ss{constructor(e,n){super(),this.object=e,this.domElement=n,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new te,this.cursor=new te,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Os.ROTATE,MIDDLE:Os.DOLLY,RIGHT:Os.PAN},this.touches={ONE:Ns.ROTATE,TWO:Ns.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return s.phi},this.getAzimuthalAngle=function(){return s.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(P){P.addEventListener("keydown",Le),this._domElementKeyEvents=P},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",Le),this._domElementKeyEvents=null},this.saveState=function(){i.target0.copy(i.target),i.position0.copy(i.object.position),i.zoom0=i.object.zoom},this.reset=function(){i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(TS),i.update(),a=r.NONE},this.update=function(){const P=new te,de=new Ia().setFromUnitVectors(e.up,new te(0,1,0)),ge=de.clone().invert(),Se=new te,Ie=new Ia,rt=new te,vt=2*Math.PI;return function(Rn=null){const zt=i.object.position;P.copy(zt).sub(i.target),P.applyQuaternion(de),s.setFromVector3(P),i.autoRotate&&a===r.NONE&&O(M(Rn)),i.enableDamping?(s.theta+=l.theta*i.dampingFactor,s.phi+=l.phi*i.dampingFactor):(s.theta+=l.theta,s.phi+=l.phi);let $t=i.minAzimuthAngle,wn=i.maxAzimuthAngle;isFinite($t)&&isFinite(wn)&&($t<-Math.PI?$t+=vt:$t>Math.PI&&($t-=vt),wn<-Math.PI?wn+=vt:wn>Math.PI&&(wn-=vt),$t<=wn?s.theta=Math.max($t,Math.min(wn,s.theta)):s.theta=s.theta>($t+wn)/2?Math.max($t,s.theta):Math.min(wn,s.theta)),s.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,s.phi)),s.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(u,i.dampingFactor):i.target.add(u),i.target.sub(i.cursor),i.target.clampLength(i.minTargetRadius,i.maxTargetRadius),i.target.add(i.cursor);let Fr=!1;if(i.zoomToCursor&&_||i.object.isOrthographicCamera)s.radius=ne(s.radius);else{const Wn=s.radius;s.radius=ne(s.radius*c),Fr=Wn!=s.radius}if(P.setFromSpherical(s),P.applyQuaternion(ge),zt.copy(i.target).add(P),i.object.lookAt(i.target),i.enableDamping===!0?(l.theta*=1-i.dampingFactor,l.phi*=1-i.dampingFactor,u.multiplyScalar(1-i.dampingFactor)):(l.set(0,0,0),u.set(0,0,0)),i.zoomToCursor&&_){let Wn=null;if(i.object.isPerspectiveCamera){const mr=P.length();Wn=ne(mr*c);const aa=mr-Wn;i.object.position.addScaledVector(w,aa),i.object.updateMatrixWorld(),Fr=!!aa}else if(i.object.isOrthographicCamera){const mr=new te(L.x,L.y,0);mr.unproject(i.object);const aa=i.object.zoom;i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/c)),i.object.updateProjectionMatrix(),Fr=aa!==i.object.zoom;const Do=new te(L.x,L.y,0);Do.unproject(i.object),i.object.position.sub(Do).add(mr),i.object.updateMatrixWorld(),Wn=P.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;Wn!==null&&(this.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(Wn).add(i.object.position):(Yd.origin.copy(i.object.position),Yd.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(Yd.direction))<LG?e.lookAt(i.target):(CS.setFromNormalAndCoplanarPoint(i.object.up,i.target),Yd.intersectPlane(CS,i.target))))}else if(i.object.isOrthographicCamera){const Wn=i.object.zoom;i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/c)),Wn!==i.object.zoom&&(i.object.updateProjectionMatrix(),Fr=!0)}return c=1,_=!1,Fr||Se.distanceToSquared(i.object.position)>o||8*(1-Ie.dot(i.object.quaternion))>o||rt.distanceToSquared(i.target)>o?(i.dispatchEvent(TS),Se.copy(i.object.position),Ie.copy(i.object.quaternion),rt.copy(i.target),!0):!1}}(),this.dispose=function(){i.domElement.removeEventListener("contextmenu",Ue),i.domElement.removeEventListener("pointerdown",Me),i.domElement.removeEventListener("pointercancel",T),i.domElement.removeEventListener("wheel",pe),i.domElement.removeEventListener("pointermove",k),i.domElement.removeEventListener("pointerup",T),i.domElement.getRootNode().removeEventListener("keydown",Re,{capture:!0}),i._domElementKeyEvents!==null&&(i._domElementKeyEvents.removeEventListener("keydown",Le),i._domElementKeyEvents=null)};const i=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let a=r.NONE;const o=1e-6,s=new MS,l=new MS;let c=1;const u=new te,d=new bt,f=new bt,h=new bt,p=new bt,m=new bt,g=new bt,v=new bt,b=new bt,y=new bt,w=new te,L=new bt;let _=!1;const E=[],R={};let S=!1;function M(P){return P!==null?2*Math.PI/60*i.autoRotateSpeed*P:2*Math.PI/60/60*i.autoRotateSpeed}function D(P){const de=Math.abs(P*.01);return Math.pow(.95,i.zoomSpeed*de)}function O(P){l.theta-=P}function V(P){l.phi-=P}const X=function(){const P=new te;return function(ge,Se){P.setFromMatrixColumn(Se,0),P.multiplyScalar(-ge),u.add(P)}}(),K=function(){const P=new te;return function(ge,Se){i.screenSpacePanning===!0?P.setFromMatrixColumn(Se,1):(P.setFromMatrixColumn(Se,0),P.crossVectors(i.object.up,P)),P.multiplyScalar(ge),u.add(P)}}(),z=function(){const P=new te;return function(ge,Se){const Ie=i.domElement;if(i.object.isPerspectiveCamera){const rt=i.object.position;P.copy(rt).sub(i.target);let vt=P.length();vt*=Math.tan(i.object.fov/2*Math.PI/180),X(2*ge*vt/Ie.clientHeight,i.object.matrix),K(2*Se*vt/Ie.clientHeight,i.object.matrix)}else i.object.isOrthographicCamera?(X(ge*(i.object.right-i.object.left)/i.object.zoom/Ie.clientWidth,i.object.matrix),K(Se*(i.object.top-i.object.bottom)/i.object.zoom/Ie.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}}();function Q(P){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?c/=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function Y(P){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?c*=P:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function he(P,de){if(!i.zoomToCursor)return;_=!0;const ge=i.domElement.getBoundingClientRect(),Se=P-ge.left,Ie=de-ge.top,rt=ge.width,vt=ge.height;L.x=Se/rt*2-1,L.y=-(Ie/vt)*2+1,w.set(L.x,L.y,1).unproject(i.object).sub(i.object.position).normalize()}function ne(P){return Math.max(i.minDistance,Math.min(i.maxDistance,P))}function Z(P){d.set(P.clientX,P.clientY)}function _e(P){he(P.clientX,P.clientX),v.set(P.clientX,P.clientY)}function Te(P){p.set(P.clientX,P.clientY)}function ee(P){f.set(P.clientX,P.clientY),h.subVectors(f,d).multiplyScalar(i.rotateSpeed);const de=i.domElement;O(2*Math.PI*h.x/de.clientHeight),V(2*Math.PI*h.y/de.clientHeight),d.copy(f),i.update()}function le(P){b.set(P.clientX,P.clientY),y.subVectors(b,v),y.y>0?Q(D(y.y)):y.y<0&&Y(D(y.y)),v.copy(b),i.update()}function re(P){m.set(P.clientX,P.clientY),g.subVectors(m,p).multiplyScalar(i.panSpeed),z(g.x,g.y),p.copy(m),i.update()}function W(P){he(P.clientX,P.clientY),P.deltaY<0?Y(D(P.deltaY)):P.deltaY>0&&Q(D(P.deltaY)),i.update()}function ce(P){let de=!1;switch(P.code){case i.keys.UP:P.ctrlKey||P.metaKey||P.shiftKey?V(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):z(0,i.keyPanSpeed),de=!0;break;case i.keys.BOTTOM:P.ctrlKey||P.metaKey||P.shiftKey?V(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):z(0,-i.keyPanSpeed),de=!0;break;case i.keys.LEFT:P.ctrlKey||P.metaKey||P.shiftKey?O(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):z(i.keyPanSpeed,0),de=!0;break;case i.keys.RIGHT:P.ctrlKey||P.metaKey||P.shiftKey?O(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):z(-i.keyPanSpeed,0),de=!0;break}de&&(P.preventDefault(),i.update())}function me(P){if(E.length===1)d.set(P.pageX,P.pageY);else{const de=tt(P),ge=.5*(P.pageX+de.x),Se=.5*(P.pageY+de.y);d.set(ge,Se)}}function Ce(P){if(E.length===1)p.set(P.pageX,P.pageY);else{const de=tt(P),ge=.5*(P.pageX+de.x),Se=.5*(P.pageY+de.y);p.set(ge,Se)}}function $e(P){const de=tt(P),ge=P.pageX-de.x,Se=P.pageY-de.y,Ie=Math.sqrt(ge*ge+Se*Se);v.set(0,Ie)}function j(P){i.enableZoom&&$e(P),i.enablePan&&Ce(P)}function H(P){i.enableZoom&&$e(P),i.enableRotate&&me(P)}function B(P){if(E.length==1)f.set(P.pageX,P.pageY);else{const ge=tt(P),Se=.5*(P.pageX+ge.x),Ie=.5*(P.pageY+ge.y);f.set(Se,Ie)}h.subVectors(f,d).multiplyScalar(i.rotateSpeed);const de=i.domElement;O(2*Math.PI*h.x/de.clientHeight),V(2*Math.PI*h.y/de.clientHeight),d.copy(f)}function J(P){if(E.length===1)m.set(P.pageX,P.pageY);else{const de=tt(P),ge=.5*(P.pageX+de.x),Se=.5*(P.pageY+de.y);m.set(ge,Se)}g.subVectors(m,p).multiplyScalar(i.panSpeed),z(g.x,g.y),p.copy(m)}function ie(P){const de=tt(P),ge=P.pageX-de.x,Se=P.pageY-de.y,Ie=Math.sqrt(ge*ge+Se*Se);b.set(0,Ie),y.set(0,Math.pow(b.y/v.y,i.zoomSpeed)),Q(y.y),v.copy(b);const rt=(P.pageX+de.x)*.5,vt=(P.pageY+de.y)*.5;he(rt,vt)}function fe(P){i.enableZoom&&ie(P),i.enablePan&&J(P)}function ye(P){i.enableZoom&&ie(P),i.enableRotate&&B(P)}function Me(P){i.enabled!==!1&&(E.length===0&&(i.domElement.setPointerCapture(P.pointerId),i.domElement.addEventListener("pointermove",k),i.domElement.addEventListener("pointerup",T)),!je(P)&&(xt(P),P.pointerType==="touch"?ze(P):G(P)))}function k(P){i.enabled!==!1&&(P.pointerType==="touch"?Pe(P):oe(P))}function T(P){switch(lt(P),E.length){case 0:i.domElement.releasePointerCapture(P.pointerId),i.domElement.removeEventListener("pointermove",k),i.domElement.removeEventListener("pointerup",T),i.dispatchEvent(AS),a=r.NONE;break;case 1:const de=E[0],ge=R[de];ze({pointerId:de,pageX:ge.x,pageY:ge.y});break}}function G(P){let de;switch(P.button){case 0:de=i.mouseButtons.LEFT;break;case 1:de=i.mouseButtons.MIDDLE;break;case 2:de=i.mouseButtons.RIGHT;break;default:de=-1}switch(de){case Os.DOLLY:if(i.enableZoom===!1)return;_e(P),a=r.DOLLY;break;case Os.ROTATE:if(P.ctrlKey||P.metaKey||P.shiftKey){if(i.enablePan===!1)return;Te(P),a=r.PAN}else{if(i.enableRotate===!1)return;Z(P),a=r.ROTATE}break;case Os.PAN:if(P.ctrlKey||P.metaKey||P.shiftKey){if(i.enableRotate===!1)return;Z(P),a=r.ROTATE}else{if(i.enablePan===!1)return;Te(P),a=r.PAN}break;default:a=r.NONE}a!==r.NONE&&i.dispatchEvent(gm)}function oe(P){switch(a){case r.ROTATE:if(i.enableRotate===!1)return;ee(P);break;case r.DOLLY:if(i.enableZoom===!1)return;le(P);break;case r.PAN:if(i.enablePan===!1)return;re(P);break}}function pe(P){i.enabled===!1||i.enableZoom===!1||a!==r.NONE||(P.preventDefault(),i.dispatchEvent(gm),W(ue(P)),i.dispatchEvent(AS))}function ue(P){const de=P.deltaMode,ge={clientX:P.clientX,clientY:P.clientY,deltaY:P.deltaY};switch(de){case 1:ge.deltaY*=16;break;case 2:ge.deltaY*=100;break}return P.ctrlKey&&!S&&(ge.deltaY*=10),ge}function Re(P){P.key==="Control"&&(S=!0,i.domElement.getRootNode().addEventListener("keyup",Ae,{passive:!0,capture:!0}))}function Ae(P){P.key==="Control"&&(S=!1,i.domElement.getRootNode().removeEventListener("keyup",Ae,{passive:!0,capture:!0}))}function Le(P){i.enabled===!1||i.enablePan===!1||ce(P)}function ze(P){switch(ht(P),E.length){case 1:switch(i.touches.ONE){case Ns.ROTATE:if(i.enableRotate===!1)return;me(P),a=r.TOUCH_ROTATE;break;case Ns.PAN:if(i.enablePan===!1)return;Ce(P),a=r.TOUCH_PAN;break;default:a=r.NONE}break;case 2:switch(i.touches.TWO){case Ns.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;j(P),a=r.TOUCH_DOLLY_PAN;break;case Ns.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;H(P),a=r.TOUCH_DOLLY_ROTATE;break;default:a=r.NONE}break;default:a=r.NONE}a!==r.NONE&&i.dispatchEvent(gm)}function Pe(P){switch(ht(P),a){case r.TOUCH_ROTATE:if(i.enableRotate===!1)return;B(P),i.update();break;case r.TOUCH_PAN:if(i.enablePan===!1)return;J(P),i.update();break;case r.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;fe(P),i.update();break;case r.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;ye(P),i.update();break;default:a=r.NONE}}function Ue(P){i.enabled!==!1&&P.preventDefault()}function xt(P){E.push(P.pointerId)}function lt(P){delete R[P.pointerId];for(let de=0;de<E.length;de++)if(E[de]==P.pointerId){E.splice(de,1);return}}function je(P){for(let de=0;de<E.length;de++)if(E[de]==P.pointerId)return!0;return!1}function ht(P){let de=R[P.pointerId];de===void 0&&(de=new bt,R[P.pointerId]=de),de.set(P.pageX,P.pageY)}function tt(P){const de=P.pointerId===E[0]?E[1]:E[0];return R[de]}i.domElement.addEventListener("contextmenu",Ue),i.domElement.addEventListener("pointerdown",Me),i.domElement.addEventListener("pointercancel",T),i.domElement.addEventListener("wheel",pe,{passive:!1}),i.domElement.getRootNode().addEventListener("keydown",Re,{passive:!0,capture:!0}),this.update()}}const NG={name:"DaeViewer",data(){return{camera:null,controls:null,renderer:null}},mounted(){this.initThreeJS(),window.addEventListener("resize",this.onWindowResize)},beforeDestroy(){window.removeEventListener("resize",this.onWindowResize)},methods:{initThreeJS(){const t=new OA,e=0,n=35,i=0,r=new HA(16777215);r.position.set(30,60,40),t.background=new Ot("white"),t.add(r),this.camera=new pi(35,window.innerWidth/window.innerHeight,.1,500),this.camera.position.set(50,100,135),this.camera.lookAt(e,n,i),t.add(this.camera),this.renderer=new aG,this.renderer.setSize(this.$refs.rendererContainer.clientWidth,this.$refs.rendererContainer.clientHeight),this.renderer.setClearColor(16777215),this.$refs.rendererContainer.appendChild(this.renderer.domElement),new IG().load("/_file.dae",s=>{const l=s.scene;t.add(l),l.position.set(0,0,0),l.scale.set(1,1,1)},void 0,s=>{console.error("An error occurred while loading the .dae file:",s)}),this.controls=new OG(this.camera,this.renderer.domElement),this.controls.enableDamping=!0,this.controls.dampingFactor=.25,this.controls.enableZoom=!0;const o=()=>{requestAnimationFrame(o),this.controls.update(),this.renderer.render(t,this.camera)};o()},onWindowResize(){this.camera&&this.renderer&&(this.camera.aspect=this.$refs.rendererContainer.clientWidth/this.$refs.rendererContainer.clientHeight,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.$refs.rendererContainer.clientWidth,this.$refs.rendererContainer.clientHeight))}}},kG={ref:"rendererContainer",class:"renderer-container"};function UG(t,e,n,i,r,a){return Ve(),St("div",kG,null,512)}const FG=Ri(NG,[["render",UG],["__scopeId","data-v-6314de99"]]),BG={name:"ImageTextLayout",components:{DaeViewer:FG},props:["eye","profile"],setup(t){const e=ke({});let n;return ir(async()=>{let a=(await Pi.get(`/profile?profile_id=${t.profile}`)).data.name;n=await Pi.get(`/all?item_id=${t.profile}`);let s=[];n.data.forEach(c=>{s.push(c[0]),s.push(c[1])});let l=s.find(c=>c.id==t.eye);e.value={marron:"https://colorimetria-api.tech-impulse.com/data/"+l.base_path+"/"+l.eye+"_marron.png",marron_claro:"https://colorimetria-api.tech-impulse.com/data/"+l.base_path+"/"+l.eye+"_marron_claro.png",amarillo:"https://colorimetria-api.tech-impulse.com/data/"+l.base_path+"/"+l.eye+"_amarillo.png",original:"https://colorimetria-api.tech-impulse.com/data/"+l.base_path+"/"+l.eye+".png",name:a,date:l.date,mean_grade:l.mean_grade,mean_scale:l.mean_scale,mean_melanin_percentage:l.mean_melanin_percentage}}),{state:e}},async beforeMount(){}};function VG(t,e,n,i,r,a){return Ve(),Wt(Vi,{fluid:""},{default:$(()=>[x(Ji,{"no-gutters":""},{default:$(()=>[x(pn,{cols:"4",class:"pa-5",style:{"text-align":"center"}},{default:$(()=>[Be(" Isobaras: "),x(sn,{src:i.state.original,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:1}),x(pn,{cols:"4",class:"pa-5",style:{"text-align":"center"}},{default:$(()=>[Be(" Topografía 2D: "),x(sn,{src:i.state.original,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:1}),x(pn,{cols:"4",class:"pa-5",style:{"text-align":"center"}},{default:$(()=>[Be(" Topografía 3D: "),x(sn,{src:i.state.original,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:1})]),_:1}),x(Ji,null,{default:$(()=>[x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Marrón: "),x(sn,{src:i.state.marron,"aspect-ratio":"1.5",class:"image-card"},null,8,["src"])]),_:1}),x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Marrón claro: "),x(sn,{src:i.state.marron_claro,"aspect-ratio":"1.5",class:"image-card"},null,8,["src"])]),_:1}),x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Amarillo: "),x(sn,{src:i.state.amarillo,"aspect-ratio":"1.5",class:"image-card"},null,8,["src"])]),_:1})]),_:1})]),_:1})}const ih=Ri(BG,[["render",VG],["__scopeId","data-v-67f2751e"]]),d0=Symbol.for("vuetify:v-tabs"),HG=He({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Xl(NE({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Ja=ut()({name:"VTab",props:HG(),setup(t,e){let{slots:n,attrs:i}=e;const{textColorClasses:r,textColorStyles:a}=Pa(t,"sliderColor"),o=ke(),s=ke(),l=q(()=>t.direction==="horizontal"),c=q(()=>{var d,f;return((f=(d=o.value)==null?void 0:d.group)==null?void 0:f.isSelected.value)??!1});function u(d){var h,p;let{value:f}=d;if(f){const m=(p=(h=o.value)==null?void 0:h.$el.parentElement)==null?void 0:p.querySelector(".v-tab--selected .v-tab__slider"),g=s.value;if(!m||!g)return;const v=getComputedStyle(m).color,b=m.getBoundingClientRect(),y=g.getBoundingClientRect(),w=l.value?"x":"y",L=l.value?"X":"Y",_=l.value?"right":"bottom",E=l.value?"width":"height",R=b[w],S=y[w],M=R>S?b[_]-y[_]:b[w]-y[w],D=Math.sign(M)>0?l.value?"right":"bottom":Math.sign(M)<0?l.value?"left":"top":"center",V=(Math.abs(M)+(Math.sign(M)<0?b[E]:y[E]))/Math.max(b[E],y[E])||0,X=b[E]/y[E]||0,K=1.5;Zo(g,{backgroundColor:[v,"currentcolor"],transform:[`translate${L}(${M}px) scale${L}(${X})`,`translate${L}(${M/K}px) scale${L}(${(V-1)/K+1})`,"none"],transformOrigin:Array(3).fill(D)},{duration:225,easing:hu})}}return Et(()=>{const d=qt.filterProps(t);return x(qt,Ye({symbol:d0,ref:o,class:["v-tab",t.class],style:t.style,tabindex:c.value?0:-1,role:"tab","aria-selected":String(c.value),active:!1},d,i,{block:t.fixed,maxWidth:t.fixed?300:void 0,"onGroup:selected":u}),{...n,default:()=>{var f;return x(Mt,null,[((f=n.default)==null?void 0:f.call(n))??t.text,!t.hideSlider&&x("div",{ref:s,class:["v-tab__slider",r.value],style:a.value},null)])}})}),Jl({},o)}}),zG=t=>{const{touchstartX:e,touchendX:n,touchstartY:i,touchendY:r}=t,a=.5,o=16;t.offsetX=n-e,t.offsetY=r-i,Math.abs(t.offsetY)<a*Math.abs(t.offsetX)&&(t.left&&n<e-o&&t.left(t),t.right&&n>e+o&&t.right(t)),Math.abs(t.offsetX)<a*Math.abs(t.offsetY)&&(t.up&&r<i-o&&t.up(t),t.down&&r>i+o&&t.down(t))};function WG(t,e){var i;const n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,(i=e.start)==null||i.call(e,{originalEvent:t,...e})}function GG(t,e){var i;const n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,(i=e.end)==null||i.call(e,{originalEvent:t,...e}),zG(e)}function jG(t,e){var i;const n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,(i=e.move)==null||i.call(e,{originalEvent:t,...e})}function XG(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:n=>WG(n,e),touchend:n=>GG(n,e),touchmove:n=>jG(n,e)}}function YG(t,e){var s;const n=e.value,i=n!=null&&n.parent?t.parentElement:t,r=(n==null?void 0:n.options)??{passive:!0},a=(s=e.instance)==null?void 0:s.$.uid;if(!i||!a)return;const o=XG(e.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[a]=o,oM(o).forEach(l=>{i.addEventListener(l,o[l],r)})}function qG(t,e){var a,o;const n=(a=e.value)!=null&&a.parent?t.parentElement:t,i=(o=e.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!i)return;const r=n._touchHandlers[i];oM(r).forEach(s=>{n.removeEventListener(s,r[s])}),delete n._touchHandlers[i]}const zA={mounted:YG,unmounted:qG},WA=Symbol.for("vuetify:v-window"),GA=Symbol.for("vuetify:v-window-group"),jA=He({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||t==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Nt(),...Pn(),...ti()},"VWindow"),PS=ut()({name:"VWindow",directives:{Touch:zA},props:jA(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:i}=ai(t),{isRtl:r}=Lr(),{t:a}=MM(),o=wy(t,GA),s=ke(),l=q(()=>r.value?!t.reverse:t.reverse),c=At(!1),u=q(()=>{const w=t.direction==="vertical"?"y":"x",_=(l.value?!c.value:c.value)?"-reverse":"";return`v-window-${w}${_}-transition`}),d=At(0),f=ke(void 0),h=q(()=>o.items.value.findIndex(w=>o.selected.value.includes(w.id)));ft(h,(w,L)=>{const _=o.items.value.length,E=_-1;_<=2?c.value=w<L:w===E&&L===0?c.value=!0:w===0&&L===E?c.value=!1:c.value=w<L}),ln(WA,{transition:u,isReversed:c,transitionCount:d,transitionHeight:f,rootRef:s});const p=q(()=>t.continuous||h.value!==0),m=q(()=>t.continuous||h.value!==o.items.value.length-1);function g(){p.value&&o.prev()}function v(){m.value&&o.next()}const b=q(()=>{const w=[],L={icon:r.value?t.nextIcon:t.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,"aria-label":a("$vuetify.carousel.prev")};w.push(p.value?n.prev?n.prev({props:L}):x(qt,L,null):x("div",null,null));const _={icon:r.value?t.prevIcon:t.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,"aria-label":a("$vuetify.carousel.next")};return w.push(m.value?n.next?n.next({props:_}):x(qt,_,null):x("div",null,null)),w}),y=q(()=>t.touch===!1?t.touch:{...{left:()=>{l.value?g():v()},right:()=>{l.value?v():g()},start:L=>{let{originalEvent:_}=L;_.stopPropagation()}},...t.touch===!0?{}:t.touch});return Et(()=>Gi(x(t.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":t.showArrows==="hover"},i.value,t.class],style:t.style},{default:()=>{var w,L;return[x("div",{class:"v-window__container",style:{height:f.value}},[(w=n.default)==null?void 0:w.call(n,{group:o}),t.showArrows!==!1&&x("div",{class:"v-window__controls"},[b.value])]),(L=n.additional)==null?void 0:L.call(n,{group:o})]}}),[[gs("touch"),y.value]])),{group:o}}}),KG=He({...Xl(jA(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),XA=ut()({name:"VTabsWindow",props:KG(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const i=Ct(d0,null),r=vi(t,"modelValue"),a=q({get(){var o;return r.value!=null||!i?r.value:(o=i.items.value.find(s=>i.selected.value.includes(s.id)))==null?void 0:o.value},set(o){r.value=o}});return Et(()=>{const o=PS.filterProps(t);return x(PS,Ye({_as:"VTabsWindow"},o,{modelValue:a.value,"onUpdate:modelValue":s=>a.value=s,class:["v-tabs-window",t.class],style:t.style,mandatory:!1,touch:!1}),n)}),{}}}),YA=He({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Nt(),..._E(),...VE()},"VWindowItem"),RS=ut()({name:"VWindowItem",directives:{Touch:zA},props:YA(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const i=Ct(WA),r=xE(t,GA),{isBooted:a}=Fy();if(!i||!r)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=At(!1),s=q(()=>a.value&&(i.isReversed.value?t.reverseTransition!==!1:t.transition!==!1));function l(){!o.value||!i||(o.value=!1,i.transitionCount.value>0&&(i.transitionCount.value-=1,i.transitionCount.value===0&&(i.transitionHeight.value=void 0)))}function c(){var p;o.value||!i||(o.value=!0,i.transitionCount.value===0&&(i.transitionHeight.value=_t((p=i.rootRef.value)==null?void 0:p.clientHeight)),i.transitionCount.value+=1)}function u(){l()}function d(p){o.value&&ri(()=>{!s.value||!o.value||!i||(i.transitionHeight.value=_t(p.clientHeight))})}const f=q(()=>{const p=i.isReversed.value?t.reverseTransition:t.transition;return s.value?{name:typeof p!="string"?i.transition.value:p,onBeforeEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onAfterLeave:l,onLeaveCancelled:u,onEnter:d}:!1}),{hasContent:h}=HE(t,r.isSelected);return Et(()=>x(_a,{transition:f.value,disabled:!a.value},{default:()=>{var p;return[Gi(x("div",{class:["v-window-item",r.selectedClass.value,t.class],style:t.style},[h.value&&((p=n.default)==null?void 0:p.call(n))]),[[vs,r.isSelected.value]])]}})),{groupItem:r}}}),QG=He({...YA()},"VTabsWindowItem"),ya=ut()({name:"VTabsWindowItem",props:QG(),setup(t,e){let{slots:n}=e;return Et(()=>{const i=RS.filterProps(t);return x(RS,Ye({_as:"VTabsWindowItem"},i,{class:["v-tabs-window-item",t.class],style:t.style}),n)}),{}}});function ZG(t){let{selectedElement:e,containerElement:n,isRtl:i,isHorizontal:r}=t;const a=Mu(r,n),o=qA(r,i,n),s=Mu(r,e),l=KA(r,e),c=s*.4;return o>l?l-c:o+a<l+s?l-a+s+c:o}function $G(t){let{selectedElement:e,containerElement:n,isHorizontal:i}=t;const r=Mu(i,n),a=KA(i,e),o=Mu(i,e);return a-r/2+o/2}function DS(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function JG(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function qA(t,e,n){if(!n)return 0;const{scrollLeft:i,offsetWidth:r,scrollWidth:a}=n;return t?e?a-r+i:i:n.scrollTop}function Mu(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function KA(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const e7=Symbol.for("vuetify:v-slide-group"),QA=He({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:e7},nextIcon:{type:Ln,default:"$next"},prevIcon:{type:Ln,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Nt(),...ak({mobile:null}),...Pn(),...bE({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),IS=ut()({name:"VSlideGroup",props:QA(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:i}=Lr(),{displayClasses:r,mobile:a}=CM(t),o=wy(t,t.symbol),s=At(!1),l=At(0),c=At(0),u=At(0),d=q(()=>t.direction==="horizontal"),{resizeRef:f,contentRect:h}=kf(),{resizeRef:p,contentRect:m}=kf(),g=lk(),v=q(()=>({container:f.el,duration:200,easing:"easeOutQuart"})),b=q(()=>o.selected.value.length?o.items.value.findIndex(ne=>ne.id===o.selected.value[0]):-1),y=q(()=>o.selected.value.length?o.items.value.findIndex(ne=>ne.id===o.selected.value[o.selected.value.length-1]):-1);if(un){let ne=-1;ft(()=>[o.selected.value,h.value,m.value,d.value],()=>{cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{if(h.value&&m.value){const Z=d.value?"width":"height";c.value=h.value[Z],u.value=m.value[Z],s.value=c.value+1<u.value}if(b.value>=0&&p.el){const Z=p.el.children[y.value];L(Z,t.centerActive)}})})}const w=At(!1);function L(ne,Z){let _e=0;Z?_e=$G({containerElement:f.el,isHorizontal:d.value,selectedElement:ne}):_e=ZG({containerElement:f.el,isHorizontal:d.value,isRtl:i.value,selectedElement:ne}),_(_e)}function _(ne){if(!un||!f.el)return;const Z=Mu(d.value,f.el),_e=qA(d.value,i.value,f.el);if(!(DS(d.value,f.el)<=Z||Math.abs(ne-_e)<16)){if(d.value&&i.value&&f.el){const{scrollWidth:ee,offsetWidth:le}=f.el;ne=ee-le-ne}d.value?g.horizontal(ne,v.value):g(ne,v.value)}}function E(ne){const{scrollTop:Z,scrollLeft:_e}=ne.target;l.value=d.value?_e:Z}function R(ne){if(w.value=!0,!(!s.value||!p.el)){for(const Z of ne.composedPath())for(const _e of p.el.children)if(_e===Z){L(_e);return}}}function S(ne){w.value=!1}let M=!1;function D(ne){var Z;!M&&!w.value&&!(ne.relatedTarget&&((Z=p.el)!=null&&Z.contains(ne.relatedTarget)))&&X(),M=!1}function O(){M=!0}function V(ne){if(!p.el)return;function Z(_e){ne.preventDefault(),X(_e)}d.value?ne.key==="ArrowRight"?Z(i.value?"prev":"next"):ne.key==="ArrowLeft"&&Z(i.value?"next":"prev"):ne.key==="ArrowDown"?Z("next"):ne.key==="ArrowUp"&&Z("prev"),ne.key==="Home"?Z("first"):ne.key==="End"&&Z("last")}function X(ne){var _e,Te;if(!p.el)return;let Z;if(!ne)Z=ly(p.el)[0];else if(ne==="next"){if(Z=(_e=p.el.querySelector(":focus"))==null?void 0:_e.nextElementSibling,!Z)return X("first")}else if(ne==="prev"){if(Z=(Te=p.el.querySelector(":focus"))==null?void 0:Te.previousElementSibling,!Z)return X("last")}else ne==="first"?Z=p.el.firstElementChild:ne==="last"&&(Z=p.el.lastElementChild);Z&&Z.focus({preventScroll:!0})}function K(ne){const Z=d.value&&i.value?-1:1,_e=(ne==="prev"?-Z:Z)*c.value;let Te=l.value+_e;if(d.value&&i.value&&f.el){const{scrollWidth:ee,offsetWidth:le}=f.el;Te+=ee-le}_(Te)}const z=q(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),Q=q(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!a.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return a.value||s.value||Math.abs(l.value)>0;default:return!a.value&&(s.value||Math.abs(l.value)>0)}}),Y=q(()=>Math.abs(l.value)>1),he=q(()=>{if(!f.value)return!1;const ne=DS(d.value,f.el),Z=JG(d.value,f.el);return ne-Z-Math.abs(l.value)>1});return Et(()=>x(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":Q.value,"v-slide-group--is-overflowing":s.value},r.value,t.class],style:t.style,tabindex:w.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var ne,Z,_e;return[Q.value&&x("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!Y.value}],onMousedown:O,onClick:()=>Y.value&&K("prev")},[((ne=n.prev)==null?void 0:ne.call(n,z.value))??x(k_,null,{default:()=>[x(gn,{icon:i.value?t.nextIcon:t.prevIcon},null)]})]),x("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:E},[x("div",{ref:p,class:"v-slide-group__content",onFocusin:R,onFocusout:S,onKeydown:V},[(Z=n.default)==null?void 0:Z.call(n,z.value)])]),Q.value&&x("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!he.value}],onMousedown:O,onClick:()=>he.value&&K("next")},[((_e=n.next)==null?void 0:_e.call(n,z.value))??x(k_,null,{default:()=>[x(gn,{icon:i.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:K,scrollOffset:l,focus:X,hasPrev:Y,hasNext:he}}});function t7(t){return t?t.map(e=>Pf(e)?e:{text:e,value:e}):[]}const n7=He({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...QA({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ka(),...Pn()},"VTabs"),i7=ut()({name:"VTabs",props:n7(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:n,slots:i}=e;const r=vi(t,"modelValue"),a=q(()=>t7(t.items)),{densityClasses:o}=Ao(t),{backgroundColorClasses:s,backgroundColorStyles:l}=Aa(Pt(t,"bgColor")),{scopeId:c}=zu();return Yl({VTab:{color:Pt(t,"color"),direction:Pt(t,"direction"),stacked:Pt(t,"stacked"),fixed:Pt(t,"fixedTabs"),sliderColor:Pt(t,"sliderColor"),hideSlider:Pt(t,"hideSlider")}}),Et(()=>{const u=IS.filterProps(t),d=!!(i.window||t.items.length>0);return x(Mt,null,[x(IS,Ye(u,{modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,class:["v-tabs",`v-tabs--${t.direction}`,`v-tabs--align-tabs-${t.alignTabs}`,{"v-tabs--fixed-tabs":t.fixedTabs,"v-tabs--grow":t.grow,"v-tabs--stacked":t.stacked},o.value,s.value,t.class],style:[{"--v-tabs-height":_t(t.height)},l.value,t.style],role:"tablist",symbol:d0},c,n),{default:()=>{var f;return[((f=i.default)==null?void 0:f.call(i))??a.value.map(h=>{var p;return((p=i.tab)==null?void 0:p.call(i,{item:h}))??x(Ja,Ye(h,{key:h.text,value:h.value}),{default:i[`tab.${h.value}`]?()=>{var m;return(m=i[`tab.${h.value}`])==null?void 0:m.call(i,{item:h})}:void 0})})]}}),d&&x(XA,Ye({modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,key:"tabs-window"},c),{default:()=>{var f;return[a.value.map(h=>{var p;return((p=i.item)==null?void 0:p.call(i,{item:h}))??x(ya,{value:h.value},{default:()=>{var m;return(m=i[`item.${h.value}`])==null?void 0:m.call(i,{item:h})}})}),(f=i.window)==null?void 0:f.call(i)]}})])}),{}}}),r7=Eo({name:"EyeHistoric",components:{Carousel:tA,Slide:iA,Navigation:nA,EyeSummary:rA,Dae:ih,Escala:Vh},props:["id"],setup(t){console.log("setup");const e=ke({}),n=ke(0),i=ke(!0),r=ke(0);return ir(async()=>{console.log("mounted");let s=(await Pi.get(`/profile?profile_id=${t.id}`)).data.name,c=(await Pi.get(`/all?item_id=${t.id}`)).data.map(u=>({l_eye_id:u[0].id,r_eye_id:u[1].id,l_img:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0.png",r_img:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1.png",l_marron:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0_marron.png",l_marron_claro:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0_marron_claro.png",l_amarillo:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0_amarillo.png",l_original:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0.png",l_topo2d:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0_model2D.png",l_isobaras:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/0_isobaras.png",r_marron:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1_marron.png",r_marron_claro:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1_marron_claro.png",r_amarillo:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1_amarillo.png",r_original:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1.png",r_topo2d:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1_model2D.png",r_isobaras:"https://colorimetria-api.tech-impulse.com/data/"+u.base_path+"/1_isobaras.png",date:u[0].date,l_grado:u[0].mean_grade,l_escala:u[0].mean_scale,l_melanina:u[0].mean_melanin_percentage,r_grado:u[1].mean_grade,r_escala:u[1].mean_scale,r_melanina:u[1].mean_melanin_percentage}));n.value=0,i.value=!1,e.value={name:s,eyes:c,selectedIndex:n,loading:i},r.value=0}),{state:e}},data(){return{startSlide:0,slide:0,eyesCurrent:[],eyesBefore:[],diffLeft:[],diffRight:[],modalEye:"",modalProfile:"",dialog:!1,dialog_add:!1,showDiferencias:!0,selectedTab:"derecho",tab:null}},methods:{openModal(t,e){this.modalProfile=t,this.modalEye=e},calculatePercentDiff(t,e){return e==0&&t==0?0:e==0?100:parseFloat((t-e)/e*100).toFixed(2)},onSlideChange(t){console.warn(t),this.slide=t.currentSlideIndex},handleInit(){console.log("created"),setTimeout(()=>{this.showDiferencias=this.state.eyes.length>=2},1500)},setDiffInfo(t,e){}}}),a7={class:"w-90 h-75 ga-sm-4 d-flex justify-center align-center"},o7={class:"w-100 h-100 ma-5 pl-15 pr-15 pt-5 pb-5"},s7={class:"w-100",style:{border:"0px solid"}},l7={class:"d-flex flex-column justify-center align-center eye-summary-wrapper h-100 w-100"},c7=nt("h1",{style:{visibility:"hidden"}},"aaaa",-1);function u7(t,e,n,i,r,a){const o=ni("Dae"),s=JT,l=Vh,c=ni("Slide"),u=ni("Navigation"),d=ni("Carousel");return Ve(),St(Mt,null,[x(Wf,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=f=>t.dialog=f),"max-width":"",class:"w-10",style:{width:"70%"}},{default:$(()=>[x(Ci,null,{default:$(()=>[x(cr,{class:"pa-0"},{default:$(()=>[x(o,{profile:t.modalProfile,eye:t.modalEye},null,8,["profile","eye"])]),_:1}),x(Wu,null,{default:$(()=>[x(qt,{color:"green",text:"",onClick:e[0]||(e[0]=f=>t.dialog=!1)},{default:$(()=>[Be("Cerrar")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),x(Wf,{modelValue:t.dialog_add,"onUpdate:modelValue":e[2]||(e[2]=f=>t.dialog_add=f),"max-width":"",class:"w-10",style:{width:"70%"}},{default:$(()=>[x(s,{addImage:1,id:this.id},null,8,["id"])]),_:1},8,["modelValue"]),x(Gu,{modelValue:t.dialog_add,"onUpdate:modelValue":e[5]||(e[5]=f=>t.dialog_add=f),density:"compact",color:"#5a9891"},{default:$(()=>[x(qt,{to:{path:"/"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(gn,{class:""},{default:$(()=>[Be("mdi-home")]),_:1})]),_:1}),x(qt,{to:{path:"/register"},fab:"",class:"text-h5 flex align-center justify-center"},{default:$(()=>[x(By,{activator:"parent",location:"start"},{default:$(()=>[Be("Registrar paciente")]),_:1}),x(gn,{class:""},{default:$(()=>[Be("mdi-account-plus")]),_:1})]),_:1}),x(ec,null,{default:$(()=>[Be("Paciente: "+Tn(t.state.name),1)]),_:1}),x(pF,{modelValue:t.selectedTab,"onUpdate:modelValue":e[3]||(e[3]=f=>t.selectedTab=f),class:"tab-container",tile:""},{default:$(()=>[x(qt,{class:fi(["tab-btn",{"active-tab":t.selectedTab==="derecho"}]),value:"derecho"},{default:$(()=>[Be(" DERECHO ")]),_:1},8,["class"]),x(qt,{class:fi(["tab-btn",{"active-tab":t.selectedTab==="izquierdo"}]),value:"izquierdo"},{default:$(()=>[Be(" IZQUIERDO ")]),_:1},8,["class"])]),_:1},8,["modelValue"]),x(qt,{onClick:e[4]||(e[4]=f=>t.dialog_add=!0),class:"fixed-top-right"},{default:$(()=>[x(gn,null,{default:$(()=>[Be("mdi-plus")]),_:1}),Be(" Añadir nuevo iris ")]),_:1}),x(qt,{to:{path:"/pacientes"},fab:"",class:"text-h5"},{default:$(()=>[x(gn,null,{default:$(()=>[Be(" mdi-arrow-left ")]),_:1})]),_:1})]),_:1},8,["modelValue"]),nt("div",a7,[nt("div",o7,[x(d,{class:"h-100","items-to-show":1,"wrap-around":!1,modelValue:t.startSlide,snapAlign:t.center,onSlideEnd:t.onSlideChange,onInit:t.handleInit},{addons:$(()=>[x(u,{class:"uwu"})]),default:$(()=>[(Ve(!0),St(Mt,null,co(t.state.eyes,(f,h)=>(Ve(),Wt(c,{key:h,style:{"border-radius":"1em","background-color":"white",color:"black",border:"1px solid #ccc"}},{default:$(()=>[nt("div",s7,[nt("div",l7,[x(i7,{modelValue:t.tab,"onUpdate:modelValue":e[6]||(e[6]=p=>t.tab=p),"align-tabs":"end",color:"green-accent-4"},{default:$(()=>[x(Ja,{value:1},{default:$(()=>[Be("Resumen")]),_:1}),x(Ja,{value:2},{default:$(()=>[Be("Original")]),_:1}),x(Ja,{value:3},{default:$(()=>[Be("Isobara")]),_:1}),x(Ja,{value:4},{default:$(()=>[Be("Topografia")]),_:1}),x(Ja,{value:5},{default:$(()=>[Be("Marron")]),_:1}),x(Ja,{value:6},{default:$(()=>[Be("Marron claro")]),_:1}),x(Ja,{value:7},{default:$(()=>[Be("Marron Amarillo")]),_:1})]),_:1},8,["modelValue"]),x(XA,{modelValue:t.tab,"onUpdate:modelValue":e[7]||(e[7]=p=>t.tab=p),class:"h-100 w-100"},{default:$(()=>[x(ya,{key:"0"},{default:$(()=>[Be(" 111 ")]),_:1}),x(ya,{key:"1",class:"h-100 w-100 pa-5"},{default:$(()=>[x(Vi,{fluid:""},{default:$(()=>[x(Ji,{"no-gutters":""},{default:$(()=>[x(pn,{cols:"4",class:"pa-5 d-flex justify-center align-center flex-column",style:{"text-align":"center"}},{default:$(()=>[Be(" Isobaras: "),x(sn,{src:t.selectedTab==="derecho"?f.r_isobaras:f.l_isobaras,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn,{cols:"4",class:"pa-5 d-flex justify-center align-center flex-column",style:{"text-align":"center"}},{default:$(()=>[Be(" Topografía 2D: "),x(sn,{src:t.selectedTab==="derecho"?f.r_topo2d:f.l_topo2d,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn,{cols:"4",class:"pa-5 d-flex justify-center align-center flex-column",style:{"text-align":"center"}},{default:$(()=>[Be(" Topografía 3D: "),x(sn,{src:t.selectedTab==="derecho"?f.r_original:f.l_original,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024)]),_:2},1024),x(Ji,null,{default:$(()=>[x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Marrón: "),x(sn,{src:t.selectedTab==="derecho"?f.r_marron:f.l_marron,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Marrón claro: "),x(sn,{src:t.selectedTab==="derecho"?f.r_marron_claro:f.l_marron_claro,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn,{cols:"4",style:{"text-align":"center"}},{default:$(()=>[Be(" Amarillo: "),x(sn,{src:t.selectedTab==="derecho"?f.r_amarillo:f.l_amarillo,"aspect-ratio":"2",class:"image-card"},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),x(ya,{key:"2",class:"h-100 w-100 pa-5"},{default:$(()=>[x(Vi,null,{default:$(()=>[x(Ji,null,{default:$(()=>[x(pn,{class:"pa-50"},{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_original:f.l_original,"aspect-ratio":"4",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn,{cols:"1"},{default:$(()=>[x(l,{escala:t.selectedTab==="derecho"?f.r_escala:f.l_escala},null,8,["escala"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),x(ya,{key:"3",class:"h-100 w-100 pa-5"},{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_isobaras:f.l_isobaras,"aspect-ratio":"3",class:"image-card"},null,8,["src"])]),_:2},1024),x(ya,{key:"4",class:"h-100 w-100 pa-5"},{default:$(()=>[x(Vi,null,{default:$(()=>[x(Ji,null,{default:$(()=>[x(pn,null,{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_topo2d:f.l_topo2d,"aspect-ratio":"4",class:"image-card"},null,8,["src"])]),_:2},1024),x(pn)]),_:2},1024)]),_:2},1024)]),_:2},1024),x(ya,{key:"5",class:"h-100 w-100 pa-5"},{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_marron:f.l_marron,"aspect-ratio":"3",class:"image-card"},null,8,["src"])]),_:2},1024),x(ya,{key:"6",class:"h-100 w-100 pa-5"},{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_marron_claro:f.l_marron_claro,"aspect-ratio":"3",class:"image-card"},null,8,["src"])]),_:2},1024),x(ya,{key:"7",class:"h-100 w-100 pa-5"},{default:$(()=>[x(sn,{src:t.selectedTab==="derecho"?f.r_amarillo:f.l_amarillo,"aspect-ratio":"3",class:"image-card"},null,8,["src"])]),_:2},1024)]),_:2},1032,["modelValue"]),c7])])]),_:2},1024))),128))]),_:1},8,["modelValue","snapAlign","onSlideEnd","onInit"])])]),Ft("",!0)],64)}const d7=Ri(r7,[["render",u7]]);var LS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h7(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var p7=Error,m7=EvalError,g7=RangeError,v7=ReferenceError,ZA=SyntaxError,qu=TypeError,y7=URIError,b7=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[n]=r;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==r||o.enumerable!==!0)return!1}return!0},OS=typeof Symbol<"u"&&Symbol,_7=b7,x7=function(){return typeof OS!="function"||typeof Symbol!="function"||typeof OS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_7()},vm={__proto__:null,foo:{}},S7=Object,w7=function(){return{__proto__:vm}.foo===vm.foo&&!(vm instanceof S7)},M7="Function.prototype.bind called on incompatible ",E7=Object.prototype.toString,T7=Math.max,A7="[object Function]",NS=function(e,n){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var a=0;a<n.length;a+=1)i[a+e.length]=n[a];return i},C7=function(e,n){for(var i=[],r=n,a=0;r<e.length;r+=1,a+=1)i[a]=e[r];return i},P7=function(t,e){for(var n="",i=0;i<t.length;i+=1)n+=t[i],i+1<t.length&&(n+=e);return n},R7=function(e){var n=this;if(typeof n!="function"||E7.apply(n)!==A7)throw new TypeError(M7+n);for(var i=C7(arguments,1),r,a=function(){if(this instanceof r){var u=n.apply(this,NS(i,arguments));return Object(u)===u?u:this}return n.apply(e,NS(i,arguments))},o=T7(0,n.length-i.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(r=Function("binder","return function ("+P7(s,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var c=function(){};c.prototype=n.prototype,r.prototype=new c,c.prototype=null}return r},D7=R7,f0=Function.prototype.bind||D7,I7=Function.prototype.call,L7=Object.prototype.hasOwnProperty,O7=f0,N7=O7.call(I7,L7),Vt,k7=p7,U7=m7,F7=g7,B7=v7,zl=ZA,wl=qu,V7=y7,$A=Function,ym=function(t){try{return $A('"use strict"; return ('+t+").constructor;")()}catch{}},os=Object.getOwnPropertyDescriptor;if(os)try{os({},"")}catch{os=null}var bm=function(){throw new wl},H7=os?function(){try{return arguments.callee,bm}catch{try{return os(arguments,"callee").get}catch{return bm}}}():bm,Js=x7(),z7=w7(),$n=Object.getPrototypeOf||(z7?function(t){return t.__proto__}:null),al={},W7=typeof Uint8Array>"u"||!$n?Vt:$n(Uint8Array),ss={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Vt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Vt:ArrayBuffer,"%ArrayIteratorPrototype%":Js&&$n?$n([][Symbol.iterator]()):Vt,"%AsyncFromSyncIteratorPrototype%":Vt,"%AsyncFunction%":al,"%AsyncGenerator%":al,"%AsyncGeneratorFunction%":al,"%AsyncIteratorPrototype%":al,"%Atomics%":typeof Atomics>"u"?Vt:Atomics,"%BigInt%":typeof BigInt>"u"?Vt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Vt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Vt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Vt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":k7,"%eval%":eval,"%EvalError%":U7,"%Float32Array%":typeof Float32Array>"u"?Vt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Vt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Vt:FinalizationRegistry,"%Function%":$A,"%GeneratorFunction%":al,"%Int8Array%":typeof Int8Array>"u"?Vt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Vt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Vt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Js&&$n?$n($n([][Symbol.iterator]())):Vt,"%JSON%":typeof JSON=="object"?JSON:Vt,"%Map%":typeof Map>"u"?Vt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Js||!$n?Vt:$n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Vt:Promise,"%Proxy%":typeof Proxy>"u"?Vt:Proxy,"%RangeError%":F7,"%ReferenceError%":B7,"%Reflect%":typeof Reflect>"u"?Vt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Vt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Js||!$n?Vt:$n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Vt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Js&&$n?$n(""[Symbol.iterator]()):Vt,"%Symbol%":Js?Symbol:Vt,"%SyntaxError%":zl,"%ThrowTypeError%":H7,"%TypedArray%":W7,"%TypeError%":wl,"%Uint8Array%":typeof Uint8Array>"u"?Vt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Vt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Vt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Vt:Uint32Array,"%URIError%":V7,"%WeakMap%":typeof WeakMap>"u"?Vt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Vt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Vt:WeakSet};if($n)try{null.error}catch(t){var G7=$n($n(t));ss["%Error.prototype%"]=G7}var j7=function t(e){var n;if(e==="%AsyncFunction%")n=ym("async function () {}");else if(e==="%GeneratorFunction%")n=ym("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=ym("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&$n&&(n=$n(r.prototype))}return ss[e]=n,n},kS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ku=f0,rh=N7,X7=Ku.call(Function.call,Array.prototype.concat),Y7=Ku.call(Function.apply,Array.prototype.splice),US=Ku.call(Function.call,String.prototype.replace),ah=Ku.call(Function.call,String.prototype.slice),q7=Ku.call(Function.call,RegExp.prototype.exec),K7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q7=/\\(\\)?/g,Z7=function(e){var n=ah(e,0,1),i=ah(e,-1);if(n==="%"&&i!=="%")throw new zl("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&n!=="%")throw new zl("invalid intrinsic syntax, expected opening `%`");var r=[];return US(e,K7,function(a,o,s,l){r[r.length]=s?US(l,Q7,"$1"):o||a}),r},$7=function(e,n){var i=e,r;if(rh(kS,i)&&(r=kS[i],i="%"+r[0]+"%"),rh(ss,i)){var a=ss[i];if(a===al&&(a=j7(i)),typeof a>"u"&&!n)throw new wl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new zl("intrinsic "+e+" does not exist!")},lc=function(e,n){if(typeof e!="string"||e.length===0)throw new wl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new wl('"allowMissing" argument must be a boolean');if(q7(/^%?[^%]*%?$/,e)===null)throw new zl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Z7(e),r=i.length>0?i[0]:"",a=$7("%"+r+"%",n),o=a.name,s=a.value,l=!1,c=a.alias;c&&(r=c[0],Y7(i,X7([0,1],c)));for(var u=1,d=!0;u<i.length;u+=1){var f=i[u],h=ah(f,0,1),p=ah(f,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new zl("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(l=!0),r+="."+f,o="%"+r+"%",rh(ss,o))s=ss[o];else if(s!=null){if(!(f in s)){if(!n)throw new wl("base intrinsic for "+e+" exists, but the property is not available.");return}if(os&&u+1>=i.length){var m=os(s,f);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[f]}else d=rh(s,f),s=s[f];d&&!l&&(ss[o]=s)}}return s},JA={exports:{}},_m,FS;function h0(){if(FS)return _m;FS=1;var t=lc,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return _m=e,_m}var J7=lc,gf=J7("%Object.getOwnPropertyDescriptor%",!0);if(gf)try{gf([],"length")}catch{gf=null}var eC=gf,BS=h0(),ej=ZA,el=qu,VS=eC,tj=function(e,n,i){if(!e||typeof e!="object"&&typeof e!="function")throw new el("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new el("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new el("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new el("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new el("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new el("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!VS&&VS(e,n);if(BS)BS(e,n,{configurable:o===null&&l?l.configurable:!o,enumerable:r===null&&l?l.enumerable:!r,value:i,writable:a===null&&l?l.writable:!a});else if(s||!r&&!a&&!o)e[n]=i;else throw new ej("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hv=h0(),tC=function(){return!!hv};tC.hasArrayLengthDefineBug=function(){if(!hv)return null;try{return hv([],"length",{value:1}).length!==1}catch{return!0}};var nj=tC,ij=lc,HS=tj,rj=nj(),zS=eC,WS=qu,aj=ij("%Math.floor%"),oj=function(e,n){if(typeof e!="function")throw new WS("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||aj(n)!==n)throw new WS("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,a=!0;if("length"in e&&zS){var o=zS(e,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(a=!1)}return(r||a||!i)&&(rj?HS(e,"length",n,!0,!0):HS(e,"length",n)),e};(function(t){var e=f0,n=lc,i=oj,r=qu,a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||e.call(o,a),l=h0(),c=n("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new r("a function is required");var h=s(e,o,arguments);return i(h,1+c(0,f.length-(arguments.length-1)),!0)};var u=function(){return s(e,a,arguments)};l?l(t.exports,"apply",{value:u}):t.exports.apply=u})(JA);var sj=JA.exports,nC=lc,iC=sj,lj=iC(nC("String.prototype.indexOf")),cj=function(e,n){var i=nC(e,!!n);return typeof i=="function"&&lj(e,".prototype.")>-1?iC(i):i};const uj={},dj=Object.freeze(Object.defineProperty({__proto__:null,default:uj},Symbol.toStringTag,{value:"Module"})),fj=h7(dj);var p0=typeof Map=="function"&&Map.prototype,xm=Object.getOwnPropertyDescriptor&&p0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oh=p0&&xm&&typeof xm.get=="function"?xm.get:null,GS=p0&&Map.prototype.forEach,m0=typeof Set=="function"&&Set.prototype,Sm=Object.getOwnPropertyDescriptor&&m0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,sh=m0&&Sm&&typeof Sm.get=="function"?Sm.get:null,jS=m0&&Set.prototype.forEach,hj=typeof WeakMap=="function"&&WeakMap.prototype,Jc=hj?WeakMap.prototype.has:null,pj=typeof WeakSet=="function"&&WeakSet.prototype,eu=pj?WeakSet.prototype.has:null,mj=typeof WeakRef=="function"&&WeakRef.prototype,XS=mj?WeakRef.prototype.deref:null,gj=Boolean.prototype.valueOf,vj=Object.prototype.toString,yj=Function.prototype.toString,bj=String.prototype.match,g0=String.prototype.slice,ho=String.prototype.replace,_j=String.prototype.toUpperCase,YS=String.prototype.toLowerCase,rC=RegExp.prototype.test,qS=Array.prototype.concat,jr=Array.prototype.join,xj=Array.prototype.slice,KS=Math.floor,pv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,wm=Object.getOwnPropertySymbols,mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_i=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Wl||!0)?Symbol.toStringTag:null,aC=Object.prototype.propertyIsEnumerable,QS=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ZS(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||rC.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var i=t<0?-KS(-t):KS(t);if(i!==t){var r=String(i),a=g0.call(e,r.length+1);return ho.call(r,n,"$&_")+"."+ho.call(ho.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ho.call(e,n,"$&_")}var gv=fj,$S=gv.custom,JS=sC($S)?$S:null,Sj=function t(e,n,i,r){var a=n||{};if(ao(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ao(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=ao(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ao(a,"indent")&&a.indent!==null&&a.indent!=="	"&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ao(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return cC(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return s?ZS(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return s?ZS(e,c):c}var u=typeof a.depth>"u"?5:a.depth;if(typeof i>"u"&&(i=0),i>=u&&u>0&&typeof e=="object")return vv(e)?"[Array]":"[Object]";var d=Vj(a,i);if(typeof r>"u")r=[];else if(lC(r,e)>=0)return"[Circular]";function f(V,X,K){if(X&&(r=xj.call(r),r.push(X)),K){var z={depth:a.depth};return ao(a,"quoteStyle")&&(z.quoteStyle=a.quoteStyle),t(V,z,i+1,r)}return t(V,a,i+1,r)}if(typeof e=="function"&&!ew(e)){var h=Dj(e),p=qd(e,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+jr.call(p,", ")+" }":"")}if(sC(e)){var m=Wl?ho.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):mv.call(e);return typeof e=="object"&&!Wl?Oc(m):m}if(Uj(e)){for(var g="<"+YS.call(String(e.nodeName)),v=e.attributes||[],b=0;b<v.length;b++)g+=" "+v[b].name+"="+oC(wj(v[b].value),"double",a);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+YS.call(String(e.nodeName))+">",g}if(vv(e)){if(e.length===0)return"[]";var y=qd(e,f);return d&&!Bj(y)?"["+yv(y,d)+"]":"[ "+jr.call(y,", ")+" ]"}if(Ej(e)){var w=qd(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!aC.call(e,"cause")?"{ ["+String(e)+"] "+jr.call(qS.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+jr.call(w,", ")+" }"}if(typeof e=="object"&&o){if(JS&&typeof e[JS]=="function"&&gv)return gv(e,{depth:u-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ij(e)){var L=[];return GS&&GS.call(e,function(V,X){L.push(f(X,e,!0)+" => "+f(V,e))}),tw("Map",oh.call(e),L,d)}if(Nj(e)){var _=[];return jS&&jS.call(e,function(V){_.push(f(V,e))}),tw("Set",sh.call(e),_,d)}if(Lj(e))return Mm("WeakMap");if(kj(e))return Mm("WeakSet");if(Oj(e))return Mm("WeakRef");if(Aj(e))return Oc(f(Number(e)));if(Pj(e))return Oc(f(pv.call(e)));if(Cj(e))return Oc(gj.call(e));if(Tj(e))return Oc(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof LS<"u"&&e===LS)return"{ [object globalThis] }";if(!Mj(e)&&!ew(e)){var E=qd(e,f),R=QS?QS(e)===Object.prototype:e instanceof Object||e.constructor===Object,S=e instanceof Object?"":"null prototype",M=!R&&_i&&Object(e)===e&&_i in e?g0.call(Ro(e),8,-1):S?"Object":"",D=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",O=D+(M||S?"["+jr.call(qS.call([],M||[],S||[]),": ")+"] ":"");return E.length===0?O+"{}":d?O+"{"+yv(E,d)+"}":O+"{ "+jr.call(E,", ")+" }"}return String(e)};function oC(t,e,n){var i=(n.quoteStyle||e)==="double"?'"':"'";return i+t+i}function wj(t){return ho.call(String(t),/"/g,"&quot;")}function vv(t){return Ro(t)==="[object Array]"&&(!_i||!(typeof t=="object"&&_i in t))}function Mj(t){return Ro(t)==="[object Date]"&&(!_i||!(typeof t=="object"&&_i in t))}function ew(t){return Ro(t)==="[object RegExp]"&&(!_i||!(typeof t=="object"&&_i in t))}function Ej(t){return Ro(t)==="[object Error]"&&(!_i||!(typeof t=="object"&&_i in t))}function Tj(t){return Ro(t)==="[object String]"&&(!_i||!(typeof t=="object"&&_i in t))}function Aj(t){return Ro(t)==="[object Number]"&&(!_i||!(typeof t=="object"&&_i in t))}function Cj(t){return Ro(t)==="[object Boolean]"&&(!_i||!(typeof t=="object"&&_i in t))}function sC(t){if(Wl)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!mv)return!1;try{return mv.call(t),!0}catch{}return!1}function Pj(t){if(!t||typeof t!="object"||!pv)return!1;try{return pv.call(t),!0}catch{}return!1}var Rj=Object.prototype.hasOwnProperty||function(t){return t in this};function ao(t,e){return Rj.call(t,e)}function Ro(t){return vj.call(t)}function Dj(t){if(t.name)return t.name;var e=bj.call(yj.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function lC(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}function Ij(t){if(!oh||!t||typeof t!="object")return!1;try{oh.call(t);try{sh.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Lj(t){if(!Jc||!t||typeof t!="object")return!1;try{Jc.call(t,Jc);try{eu.call(t,eu)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Oj(t){if(!XS||!t||typeof t!="object")return!1;try{return XS.call(t),!0}catch{}return!1}function Nj(t){if(!sh||!t||typeof t!="object")return!1;try{sh.call(t);try{oh.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function kj(t){if(!eu||!t||typeof t!="object")return!1;try{eu.call(t,eu);try{Jc.call(t,Jc)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Uj(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function cC(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return cC(g0.call(t,0,e.maxStringLength),e)+i}var r=ho.call(ho.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fj);return oC(r,"single",e)}function Fj(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+_j.call(e.toString(16))}function Oc(t){return"Object("+t+")"}function Mm(t){return t+" { ? }"}function tw(t,e,n,i){var r=i?yv(n,i):jr.call(n,", ");return t+" ("+e+") {"+r+"}"}function Bj(t){for(var e=0;e<t.length;e++)if(lC(t[e],`
`)>=0)return!1;return!0}function Vj(t,e){var n;if(t.indent==="	")n="	";else if(typeof t.indent=="number"&&t.indent>0)n=jr.call(Array(t.indent+1)," ");else return null;return{base:n,prev:jr.call(Array(e+1),n)}}function yv(t,e){if(t.length===0)return"";var n=`
`+e.prev+e.base;return n+jr.call(t,","+n)+`
`+e.prev}function qd(t,e){var n=vv(t),i=[];if(n){i.length=t.length;for(var r=0;r<t.length;r++)i[r]=ao(t,r)?e(t[r],t):""}var a=typeof wm=="function"?wm(t):[],o;if(Wl){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in t)ao(t,l)&&(n&&String(Number(l))===l&&l<t.length||Wl&&o["$"+l]instanceof Symbol||(rC.call(/[^\w$]/,l)?i.push(e(l,t)+": "+e(t[l],t)):i.push(l+": "+e(t[l],t))));if(typeof wm=="function")for(var c=0;c<a.length;c++)aC.call(t,a[c])&&i.push("["+e(a[c])+"]: "+e(t[a[c]],t));return i}var uC=lc,cc=cj,Hj=Sj,zj=qu,Kd=uC("%WeakMap%",!0),Qd=uC("%Map%",!0),Wj=cc("WeakMap.prototype.get",!0),Gj=cc("WeakMap.prototype.set",!0),jj=cc("WeakMap.prototype.has",!0),Xj=cc("Map.prototype.get",!0),Yj=cc("Map.prototype.set",!0),qj=cc("Map.prototype.has",!0),v0=function(t,e){for(var n=t,i;(i=n.next)!==null;n=i)if(i.key===e)return n.next=i.next,i.next=t.next,t.next=i,i},Kj=function(t,e){var n=v0(t,e);return n&&n.value},Qj=function(t,e,n){var i=v0(t,e);i?i.value=n:t.next={key:e,next:t.next,value:n}},Zj=function(t,e){return!!v0(t,e)},$j=function(){var e,n,i,r={assert:function(a){if(!r.has(a))throw new zj("Side channel does not contain "+Hj(a))},get:function(a){if(Kd&&a&&(typeof a=="object"||typeof a=="function")){if(e)return Wj(e,a)}else if(Qd){if(n)return Xj(n,a)}else if(i)return Kj(i,a)},has:function(a){if(Kd&&a&&(typeof a=="object"||typeof a=="function")){if(e)return jj(e,a)}else if(Qd){if(n)return qj(n,a)}else if(i)return Zj(i,a);return!1},set:function(a,o){Kd&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Kd),Gj(e,a,o)):Qd?(n||(n=new Qd),Yj(n,a,o)):(i||(i={key:{},next:null}),Qj(i,a,o))}};return r},Jj=String.prototype.replace,eX=/%20/g,Em={RFC1738:"RFC1738",RFC3986:"RFC3986"},y0={default:Em.RFC3986,formatters:{RFC1738:function(t){return Jj.call(t,eX,"+")},RFC3986:function(t){return String(t)}},RFC1738:Em.RFC1738,RFC3986:Em.RFC3986},tX=y0,Tm=Object.prototype.hasOwnProperty,Qo=Array.isArray,Vr=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),nX=function(e){for(;e.length>1;){var n=e.pop(),i=n.obj[n.prop];if(Qo(i)){for(var r=[],a=0;a<i.length;++a)typeof i[a]<"u"&&r.push(i[a]);n.obj[n.prop]=r}}},dC=function(e,n){for(var i=n&&n.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(i[r]=e[r]);return i},iX=function t(e,n,i){if(!n)return e;if(typeof n!="object"){if(Qo(e))e.push(n);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!Tm.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var r=e;return Qo(e)&&!Qo(n)&&(r=dC(e,i)),Qo(e)&&Qo(n)?(n.forEach(function(a,o){if(Tm.call(e,o)){var s=e[o];s&&typeof s=="object"&&a&&typeof a=="object"?e[o]=t(s,a,i):e.push(a)}else e[o]=a}),e):Object.keys(n).reduce(function(a,o){var s=n[o];return Tm.call(a,o)?a[o]=t(a[o],s,i):a[o]=s,a},r)},rX=function(e,n){return Object.keys(n).reduce(function(i,r){return i[r]=n[r],i},e)},aX=function(t,e,n){var i=t.replace(/\+/g," ");if(n==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},Am=1024,oX=function(e,n,i,r,a){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),i==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;l+=Am){for(var c=o.length>=Am?o.slice(l,l+Am):o,u=[],d=0;d<c.length;++d){var f=c.charCodeAt(d);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===tX.RFC1738&&(f===40||f===41)){u[u.length]=c.charAt(d);continue}if(f<128){u[u.length]=Vr[f];continue}if(f<2048){u[u.length]=Vr[192|f>>6]+Vr[128|f&63];continue}if(f<55296||f>=57344){u[u.length]=Vr[224|f>>12]+Vr[128|f>>6&63]+Vr[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|c.charCodeAt(d)&1023),u[u.length]=Vr[240|f>>18]+Vr[128|f>>12&63]+Vr[128|f>>6&63]+Vr[128|f&63]}s+=u.join("")}return s},sX=function(e){for(var n=[{obj:{o:e},prop:"o"}],i=[],r=0;r<n.length;++r)for(var a=n[r],o=a.obj[a.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],u=o[c];typeof u=="object"&&u!==null&&i.indexOf(u)===-1&&(n.push({obj:o,prop:c}),i.push(u))}return nX(n),e},lX=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},cX=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},uX=function(e,n){return[].concat(e,n)},dX=function(e,n){if(Qo(e)){for(var i=[],r=0;r<e.length;r+=1)i.push(n(e[r]));return i}return n(e)},fC={arrayToObject:dC,assign:rX,combine:uX,compact:sX,decode:aX,encode:oX,isBuffer:cX,isRegExp:lX,maybeMap:dX,merge:iX},hC=$j,vf=fC,tu=y0,fX=Object.prototype.hasOwnProperty,pC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},zr=Array.isArray,hX=Array.prototype.push,mC=function(t,e){hX.apply(t,zr(e)?e:[e])},pX=Date.prototype.toISOString,nw=tu.default,jn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:vf.encode,encodeValuesOnly:!1,format:nw,formatter:tu.formatters[nw],indices:!1,serializeDate:function(e){return pX.call(e)},skipNulls:!1,strictNullHandling:!1},mX=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Cm={},gX=function t(e,n,i,r,a,o,s,l,c,u,d,f,h,p,m,g,v,b){for(var y=e,w=b,L=0,_=!1;(w=w.get(Cm))!==void 0&&!_;){var E=w.get(e);if(L+=1,typeof E<"u"){if(E===L)throw new RangeError("Cyclic object value");_=!0}typeof w.get(Cm)>"u"&&(L=0)}if(typeof u=="function"?y=u(n,y):y instanceof Date?y=h(y):i==="comma"&&zr(y)&&(y=vf.maybeMap(y,function(ne){return ne instanceof Date?h(ne):ne})),y===null){if(o)return c&&!g?c(n,jn.encoder,v,"key",p):n;y=""}if(mX(y)||vf.isBuffer(y)){if(c){var R=g?n:c(n,jn.encoder,v,"key",p);return[m(R)+"="+m(c(y,jn.encoder,v,"value",p))]}return[m(n)+"="+m(String(y))]}var S=[];if(typeof y>"u")return S;var M;if(i==="comma"&&zr(y))g&&c&&(y=vf.maybeMap(y,c)),M=[{value:y.length>0?y.join(",")||null:void 0}];else if(zr(u))M=u;else{var D=Object.keys(y);M=d?D.sort(d):D}var O=l?n.replace(/\./g,"%2E"):n,V=r&&zr(y)&&y.length===1?O+"[]":O;if(a&&zr(y)&&y.length===0)return V+"[]";for(var X=0;X<M.length;++X){var K=M[X],z=typeof K=="object"&&typeof K.value<"u"?K.value:y[K];if(!(s&&z===null)){var Q=f&&l?K.replace(/\./g,"%2E"):K,Y=zr(y)?typeof i=="function"?i(V,Q):V:V+(f?"."+Q:"["+Q+"]");b.set(e,L);var he=hC();he.set(Cm,b),mC(S,t(z,Y,i,r,a,o,s,l,i==="comma"&&g&&zr(y)?null:c,u,d,f,h,p,m,g,v,he))}}return S},vX=function(e){if(!e)return jn;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=e.charset||jn.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=tu.default;if(typeof e.format<"u"){if(!fX.call(tu.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var r=tu.formatters[i],a=jn.filter;(typeof e.filter=="function"||zr(e.filter))&&(a=e.filter);var o;if(e.arrayFormat in pC?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=jn.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:jn.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:jn.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:jn.allowEmptyArrays,arrayFormat:o,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:jn.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?jn.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:jn.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:jn.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:jn.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:jn.encodeValuesOnly,filter:a,format:i,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:jn.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:jn.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:jn.strictNullHandling}},yX=function(t,e){var n=t,i=vX(e),r,a;typeof i.filter=="function"?(a=i.filter,n=a("",n)):zr(i.filter)&&(a=i.filter,r=a);var o=[];if(typeof n!="object"||n===null)return"";var s=pC[i.arrayFormat],l=s==="comma"&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var c=hC(),u=0;u<r.length;++u){var d=r[u];i.skipNulls&&n[d]===null||mC(o,gX(n[d],d,s,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c))}var f=o.join(i.delimiter),h=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),f.length>0?h+f:""},Gl=fC,bv=Object.prototype.hasOwnProperty,bX=Array.isArray,In={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Gl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},_X=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},gC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},xX="utf8=%26%2310003%3B",SX="utf8=%E2%9C%93",wX=function(e,n){var i={__proto__:null},r=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=n.parameterLimit===1/0?void 0:n.parameterLimit,o=r.split(n.delimiter,a),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===SX?c="utf-8":o[l]===xX&&(c="iso-8859-1"),s=l,l=o.length);for(l=0;l<o.length;++l)if(l!==s){var u=o[l],d=u.indexOf("]="),f=d===-1?u.indexOf("="):d+1,h,p;f===-1?(h=n.decoder(u,In.decoder,c,"key"),p=n.strictNullHandling?null:""):(h=n.decoder(u.slice(0,f),In.decoder,c,"key"),p=Gl.maybeMap(gC(u.slice(f+1),n),function(g){return n.decoder(g,In.decoder,c,"value")})),p&&n.interpretNumericEntities&&c==="iso-8859-1"&&(p=_X(p)),u.indexOf("[]=")>-1&&(p=bX(p)?[p]:p);var m=bv.call(i,h);m&&n.duplicates==="combine"?i[h]=Gl.combine(i[h],p):(!m||n.duplicates==="last")&&(i[h]=p)}return i},MX=function(t,e,n,i){for(var r=i?e:gC(e,n),a=t.length-1;a>=0;--a){var o,s=t[a];if(s==="[]"&&n.parseArrays)o=n.allowEmptyArrays&&(r===""||n.strictNullHandling&&r===null)?[]:[].concat(r);else{o=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(c,10);!n.parseArrays&&c===""?o={0:r}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[],o[u]=r):c!=="__proto__"&&(o[c]=r)}r=o}return r},EX=function(e,n,i,r){if(e){var a=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(a),c=l?a.slice(0,l.index):a,u=[];if(c){if(!i.plainObjects&&bv.call(Object.prototype,c)&&!i.allowPrototypes)return;u.push(c)}for(var d=0;i.depth>0&&(l=s.exec(a))!==null&&d<i.depth;){if(d+=1,!i.plainObjects&&bv.call(Object.prototype,l[1].slice(1,-1))&&!i.allowPrototypes)return;u.push(l[1])}if(l){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");u.push("["+a.slice(l.index)+"]")}return MX(u,n,i,r)}},TX=function(e){if(!e)return In;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof e.charset>"u"?In.charset:e.charset,i=typeof e.duplicates>"u"?In.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:In.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:In.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:In.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:In.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:In.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:In.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:In.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:In.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:In.decoder,delimiter:typeof e.delimiter=="string"||Gl.isRegExp(e.delimiter)?e.delimiter:In.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:In.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:In.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:In.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:In.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:In.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:In.strictNullHandling}},AX=function(t,e){var n=TX(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var i=typeof t=="string"?wX(t,n):t,r=n.plainObjects?Object.create(null):{},a=Object.keys(i),o=0;o<a.length;++o){var s=a[o],l=EX(s,i[s],n,typeof t=="string");r=Gl.merge(r,l,n)}return n.allowSparse===!0?r:Gl.compact(r)},CX=yX,PX=AX,RX=y0,DX={formats:RX,parse:PX,stringify:CX};const IX=f7(DX),LX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAAAnCAYAAAAICXReAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gUcCSQibi7sswAADodJREFUeNrtnXu8FdV1x79cbzWvneoWxJq4xzYlRgQfkNSP+kljxBg0Pigigo8RlZHw8IkPBCM0KiCkagEVHRQcq/IMoISgBlOsJBoNby4abePsflKiXkfSaUPUIP1j9mmO0znnzMw9596jnd8/957Zj9lrn7X2WnvttfbppqRYrYPwdDoAJcUNwCYdhE+XPTsJmJCzy7nA28AlOghHphzDDGC6DsIgoaw7cL0OwhtT9uUCC3QQrjefBwJX56TlbuAyYLIOwrYOzPFZwCk6CK80nx3gnJzdTdFB+EKsfwkMB/oDRwJ/DuwD/B5oAzYCD+ogfKfKGH+og3AwDYSSYrGZyx052x9g6Pwq0BvY39C5G9hh6Jyng7C9Sh8rgf1yvL5NB+G1pg8POKhG/feAncB6HYSPlBe0AqcqKWaVGCInegNxgTnY/J2To78XdBC2KynuVFKcrIPw2RRt9ge+C0xNKBsLiJRf7DeBo0tCa/BFYA9wXw5aXgKOAG4H/i4ns0lgIjCl7HFP4C1gcY4uX431fx1wKfAC8CIwsyQYSoojgG8AJwDrlRQzdRA+WIUPGim0I4ETgZHA+BztrwZsYCvw8xidh8fodHUQ/qBCV1/J836jjEr4G+C6GvU/ZXhnuJLiYuCK/12wlBT/qqR4TklxWQcmdIGZ1PJnw5QUSzuqyZUU81PWPUZJsbFC2RYlRd+U/TyopJgQZxglxYIO0rJcSXFNzrZzlBQ/iD27WUkxvQ7C8A9Kiie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RVm9caav9cB/A7dYnvs+tX9zqECBhmnb0yzPnVGh7GajseLPb7U892Tz/3TLcwcm1FlseW73Cv0urDKenknllueeZXnulFrtTflNludekfD8BMtz55R9ftjy3H4J9WZYnnu2+b+35bnzEur0tzz3qJaChQp0EUYZrZMF24FDAXzbmQBcbrRXiaknA4t822nPOhjfdt4EVhrNV27KX+jbzpQUC1F3oK9vO7MT+v4ZUXopludOBFb5trMhod4N/CnOuh/RzRfxOr/0bWdLIbgFukLb3gp4lfaoVTCUj0ZDzQBuM30eBRzq207ukELfdh4Helmee0SZaT0tw0LkVem7ZIL3922n2pU8z1qee44R2orZd8Uet0BnC21vI2Dfq1H1Wstzy3NrDwZe9m3nd2XC8ILluYOMyewY4amGT1uem3Sj5/Ulp4/Zx/6jMYvbfdsp/+nWfSu0nwgc69tOmruw99YofwP4km87yyzPfdLy3OVE+cB7jcWxxLedtkJwC3Q2bkypxe70bWdVzKFzk+W5Z/q282SZ8E6wPPdXwMQUJvJu33aG1TKZLc9dCUz3bSfu2X6/UnvLc0PLc7unGEMtK/dTRM4yjPWwrOwdA4CrLM9tK0zlAp2pbc8Ffu3bTubEdN923jV7wEsTijf4trO0XuM0JnPWJICFpPs5lPcsz+1RpfwbwNoK41prvNMnFYJboLOE9gDg/DSOnhpoyl/e823nKaBvJaG0PPeO+L48oc6RwJ/5tlMz260Q3AKdhYlkvwAuztgjST6fbRZMBu62PLd/2Zh7WJ47G3jTCPhGYIPluffGPOIDTfsJ5vMplucuMU63uNXymyJyqkBnadtJvu1cl7K+QxR48GHZ488Dz/m2Mz2h/mTfdv4+Rb93EAV2xLHHt50LavVpee7tRFf2JGncYaaOJPo5lENMUStwr287T8f66m+E9EOifOStCe/rQXTbyCFEubwCWOfbzvT/ATcf6OYRuh9+AAAAAElFTkSuQmCC",OX={data(){return{user:"",password:"",rules:{required:t=>!!t||"Required."},toast:{snackbar:!1,message:"",color:"info",timeout:3e3}}},methods:{async login(){if(this.$refs.form.validate()){const t={username:this.user,password:this.password};try{const e=await Pi.post("/token",IX.stringify(t),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}});if(e.status===200){const n=e.data.access_token;localStorage.setItem("access_token",n),console.log("Login successful, token stored in localStorage:",n),this.$router.push("/")}else console.error("Login failed:",e.statusText),this.showToast("Login failed","error")}catch(e){console.error("Error during login:",e),this.showToast("Las credenciales ingresadas son incorrectas. Verifica tu nombre de usuario y contraseña e inténtalo de nuevo.","error")}}else console.log("Form validation failed")},showToast(t,e="error"){this.toast.message=t,this.toast.color=e,this.toast.snackbar=!0}}},vC=t=>(vh("data-v-7a7ee8f6"),t=t(),yh(),t),NX=vC(()=>nt("img",{src:LX,alt:"",class:"w-10"},null,-1)),kX=vC(()=>nt("h1",{class:"custom-title"},"Grimaldos Iris Analysis",-1));function UX(t,e,n,i,r,a){return Ve(),St(Mt,null,[x(Vi,{fluid:"",class:"d-flex justify-center align-center page-background flex-column",style:{height:"100vh"}},{default:$(()=>[NX,x(Vi,{class:"d-flex justify-center align-center",style:{"min-height":"200px"}},{default:$(()=>[kX]),_:1}),x(Ci,{class:"pa-5",width:"30%"},{default:$(()=>[x(xa,{class:"text-h5"},{default:$(()=>[Be("Iniciar sesión")]),_:1}),x(cr,null,{default:$(()=>[x(Iy,{ref:"form"},{default:$(()=>[x(go,{modelValue:r.user,"onUpdate:modelValue":e[0]||(e[0]=o=>r.user=o),label:"Usuario",type:"text",rules:[r.rules.required],required:""},null,8,["modelValue","rules"]),x(go,{modelValue:r.password,"onUpdate:modelValue":e[1]||(e[1]=o=>r.password=o),label:"Contraseña",type:"password",rules:[r.rules.required],required:"",onKeyup:mO(a.login,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1},512)]),_:1}),x(Wu,null,{default:$(()=>[x(Ny),x(qt,{color:"white",onClick:a.login},{default:$(()=>[Be("Acceder")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1}),x(zf,{modelValue:r.toast.snackbar,"onUpdate:modelValue":e[3]||(e[3]=o=>r.toast.snackbar=o),timeout:r.toast.timeout,color:r.toast.color,top:"",right:""},{action:$(({attrs:o})=>[x(qt,Ye({color:"white",text:""},o,{onClick:e[2]||(e[2]=s=>r.toast.snackbar=!1)}),{default:$(()=>[Be(" Cerrar ")]),_:2},1040)]),default:$(()=>[Be(Tn(r.toast.message)+" ",1)]),_:1},8,["modelValue","timeout","color"])],64)}const FX=Ri(OX,[["render",UX],["__scopeId","data-v-7a7ee8f6"]]),BX=Eo({name:"WrapAround",components:{Carousel:tA,Slide:iA,Navigation:nA,EyeSummary:rA,Dae:ih},data(){return{eyes:[{l_eye_id:86,r_eye_id:85,l_img:"http://localhost:8000/data/28\\85_86\\/0.png",r_img:"http://localhost:8000/data/28\\85_86\\/1.png",date:"2024-10-11",l_grado:3,l_escala:33,l_melanina:.468185,r_grado:5,r_escala:53,r_melanina:.249057},{l_eye_id:68,r_eye_id:67,l_img:"http://localhost:8000/data/28\\67_68\\/0.png",r_img:"http://localhost:8000/data/28\\67_68\\/1.png",date:"2024-10-09",l_grado:null,l_escala:null,l_melanina:null,r_grado:null,r_escala:null,r_melanina:null},{l_eye_id:66,r_eye_id:65,l_img:"http://localhost:8000/data/28\\65_66\\/0.png",r_img:"http://localhost:8000/data/28\\65_66\\/1.png",date:"2024-10-09",l_grado:4,l_escala:41,l_melanina:.416577,r_grado:4,r_escala:41,r_melanina:.416577},{l_eye_id:60,r_eye_id:59,l_img:"http://localhost:8000/data/28\\59_60\\/0.png",r_img:"http://localhost:8000/data/28\\59_60\\/1.png",date:"2024-10-09",l_grado:4,l_escala:41,l_melanina:.416577,r_grado:1,r_escala:18,r_melanina:.636594},{l_eye_id:58,r_eye_id:57,l_img:"http://localhost:8000/data/28\\57_58\\/0.png",r_img:"http://localhost:8000/data/28\\57_58\\/1.png",date:"2024-10-09",l_grado:4,l_escala:48,l_melanina:.277783,r_grado:4,r_escala:41,r_melanina:.416577},{l_eye_id:52,r_eye_id:51,l_img:"http://localhost:8000/data/28\\51_52\\/0.png",r_img:"http://localhost:8000/data/28\\51_52\\/1.png",date:"2024-10-09",l_grado:1,l_escala:18,l_melanina:.636594,r_grado:0,r_escala:6,r_melanina:.715081},{l_eye_id:86,r_eye_id:85,l_img:"http://localhost:8000/data/28\\85_86\\/0.png",r_img:"http://localhost:8000/data/28\\85_86\\/1.png",date:"2024-10-11",l_grado:3,l_escala:33,l_melanina:.468185,r_grado:5,r_escala:53,r_melanina:.249057},{l_eye_id:68,r_eye_id:67,l_img:"http://localhost:8000/data/28\\67_68\\/0.png",r_img:"http://localhost:8000/data/28\\67_68\\/1.png",date:"2024-10-09",l_grado:null,l_escala:null,l_melanina:null,r_grado:null,r_escala:null,r_melanina:null},{l_eye_id:66,r_eye_id:65,l_img:"http://localhost:8000/data/28\\65_66\\/0.png",r_img:"http://localhost:8000/data/28\\65_66\\/1.png",date:"2024-10-09",l_grado:4,l_escala:41,l_melanina:.416577,r_grado:4,r_escala:41,r_melanina:.416577},{l_eye_id:60,r_eye_id:59,l_img:"http://localhost:8000/data/28\\59_60\\/0.png",r_img:"http://localhost:8000/data/28\\59_60\\/1.png",date:"2024-10-09",l_grado:4,l_escala:41,l_melanina:.416577,r_grado:1,r_escala:18,r_melanina:.636594},{l_eye_id:58,r_eye_id:57,l_img:"http://localhost:8000/data/28\\57_58\\/0.png",r_img:"http://localhost:8000/data/28\\57_58\\/1.png",date:"2024-10-09",l_grado:4,l_escala:48,l_melanina:.277783,r_grado:4,r_escala:41,r_melanina:.416577},{l_eye_id:52,r_eye_id:51,l_img:"http://localhost:8000/data/28\\51_52\\/0.png",r_img:"http://localhost:8000/data/28\\51_52\\/1.png",date:"2024-10-09",l_grado:1,l_escala:18,l_melanina:.636594,r_grado:0,r_escala:6,r_melanina:.715081}],id:28,startSlide:0,eyesCurrent:[],eyesBefore:[],diffLeft:[],diffRight:[],modalEye:"",modalProfile:"",dialog:!1}},mounted(){this.startSlide=0,this.setDiffInfo(this.startSlide,this.startSlide+1)},methods:{openModal(t,e){this.dialog=!0,this.modalProfile=t,this.modalEye=e},calculatePercentDiff(t,e){return e==0&&t==0?0:e==0?100:parseFloat((t-e)/e*100).toFixed(2)},onSlideChange(t){this.setDiffInfo(t.currentSlideIndex,t.currentSlideIndex+1)},setDiffInfo(t,e){let n=this.eyes[t],i=this.eyes[e];n.l_grado=n.l_grado==null?0:n.l_grado,n.l_escala=n.l_escala==null?0:n.l_escala,n.l_melanina=n.l_melanina==null?0:n.l_melanina,i.l_grado=i.l_grado==null?0:n.l_grado,i.l_escala=i.l_escala==null?0:n.l_escala,i.l_melanina=i.l_melanina==null?0:n.l_melanina,this.diffLeft={grado:n.l_grado-i.l_grado+" ("+this.calculatePercentDiff(n.l_grado,i.l_grado)+"%)",escala:n.l_escala-i.l_escala+" ("+this.calculatePercentDiff(n.l_escala,i.l_escala)+"%)",melanina:n.l_melanina-i.l_melanina+" ("+this.calculatePercentDiff(n.l_melanina,i.l_melanina)+"%)",val_grado:n.l_grado-i.l_grado,val_escala:n.l_escala-i.l_escala,val_melanina:n.l_melanina-i.l_melanina},n.r_grado=n.r_grado==null?0:n.r_grado,n.r_escala=n.r_escala==null?0:n.r_escala,n.r_melanina=n.r_melanina==null?0:n.r_melanina,i.r_grado=i.r_grado==null?0:n.r_grado,i.r_escala=i.r_escala==null?0:n.r_escala,i.r_melanina=i.r_melanina==null?0:n.r_melanina,this.diffRight={grado:n.r_grado-i.r_grado+" ("+this.calculatePercentDiff(n.r_grado,i.r_grado)+"%)",escala:n.r_escala-i.r_escala+" ("+this.calculatePercentDiff(n.r_escala,i.r_escala)+"%)",melanina:n.r_melanina-i.r_melanina+" ("+this.calculatePercentDiff(n.r_melanina,i.r_melanina)+"%)",val_grado:n.r_grado-i.r_grado,val_escala:n.r_escala-i.r_escala,val_melanina:n.r_melanina-i.r_melanina}}}}),VX={class:"w-90 ga-sm-4 d-flex justify-center align-center"},HX={class:"w-50 ma-5 pa-5"},zX={class:"w-100",style:{border:"0px solid"}},WX={class:"d-flex flex-column justify-center align-center eye-summary-wrapper"},GX=nt("span",{class:"font-weight-black"},"Diferencias iris izquierdo",-1),jX=nt("br",null,null,-1),XX=nt("br",null,null,-1),YX=nt("br",null,null,-1),qX=nt("span",{class:"font-weight-black"},"Diferencias iris derecho",-1),KX=nt("br",null,null,-1),QX=nt("br",null,null,-1),ZX=nt("br",null,null,-1);function $X(t,e,n,i,r,a){const o=ni("Dae"),s=ni("EyeSummary"),l=ni("Slide"),c=ni("Navigation"),u=ni("Carousel");return Ve(),St(Mt,null,[x(Wf,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=d=>t.dialog=d),"max-width":"",class:"w-10",style:{width:"70%"}},{default:$(()=>[x(Ci,null,{default:$(()=>[x(cr,{class:"pa-0"},{default:$(()=>[x(o,{profile:t.modalProfile,eye:t.modalEye},null,8,["profile","eye"])]),_:1}),x(Wu,null,{default:$(()=>[x(qt,{color:"green",text:"",onClick:e[0]||(e[0]=d=>t.dialog=!1)},{default:$(()=>[Be("Cerrar")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),x(Gu,{density:"compact",color:""},{default:$(()=>[x(ec,null,{default:$(()=>[Be("App colorimetría")]),_:1})]),_:1}),nt("div",VX,[nt("div",HX,[x(u,{"items-to-show":2.8,"wrap-around":!1,modelValue:t.startSlide,snapAlign:t.center,onSlideEnd:t.onSlideChange},{addons:$(()=>[x(c,{class:"uwu"})]),default:$(()=>[(Ve(!0),St(Mt,null,co(this.eyes,(d,f)=>(Ve(),Wt(l,{key:f},{default:$(()=>[nt("div",zX,[nt("div",WX,[x(xa,{class:"text-h3"},{default:$(()=>[Be(Tn(d.date),1)]),_:2},1024),x(s,{onOpenModal:t.openModal,eye_id:d.l_eye_id,profile_id:this.id,eye_path:d.l_img,grado:d.l_grado,escala:d.l_escala,melanina:d.l_melanina,eye:0},null,8,["onOpenModal","eye_id","profile_id","eye_path","grado","escala","melanina"]),x(s,{onOpenModal:t.openModal,eye_id:d.r_eye_id,profile_id:this.id,eye_path:d.r_img,grado:d.r_grado,escala:d.r_escala,melanina:d.r_melanina,eye:1},null,8,["onOpenModal","eye_id","profile_id","eye_path","grado","escala","melanina"])])])]),_:2},1024))),128))]),_:1},8,["modelValue","snapAlign","onSlideEnd"])])]),x(Vi,{class:"w-50"},{default:$(()=>[x(Ji,{class:"justify-center pa-0"},{default:$(()=>[x(pn,{cols:"1",md:"6"},{default:$(()=>[x(Ci,{class:"mx-auto","prepend-icon":"$",width:"400"},{title:$(()=>[GX]),default:$(()=>[x(cr,{class:"bg-surface-light pt-4 font-weight-bold"},{default:$(()=>[nt("span",{class:fi([this.diffLeft.val_grado==0?"text-white":this.diffLeft.val_grado<0?"text-red":"text-green"])}," Grado: "+Tn(this.diffLeft.grado),3),jX,nt("span",{class:fi([this.diffLeft.val_escala==0?"text-white":this.diffLeft.val_escala<0?"text-red":"text-green"])}," Escala: "+Tn(this.diffLeft.escala),3),XX,nt("span",{class:fi([this.diffLeft.val_melanina==0?"text-white":this.diffLeft.val_melanina<0?"text-red":"text-green"])}," Melanina: "+Tn(this.diffLeft.melanina),3),YX]),_:1})]),_:1})]),_:1}),x(pn,{cols:"1",md:"6"},{default:$(()=>[x(Ci,{class:"mx-auto","prepend-icon":"$",width:"400"},{title:$(()=>[qX]),default:$(()=>[x(cr,{class:"bg-surface-light pt-4 font-weight-bold"},{default:$(()=>[nt("span",{class:fi([this.diffRight.val_grado==0?"text-white":this.diffRight.val_grado<0?"text-red":"text-green"])}," Grado: "+Tn(this.diffRight.grado),3),KX,nt("span",{class:fi([this.diffRight.val_escala==0?"text-white":this.diffRight.val_escala<0?"text-red":"text-green"])}," Escala: "+Tn(this.diffRight.escala),3),QX,nt("span",{class:fi([this.diffRight.val_melanina==0?"text-white":this.diffRight.val_melanina<0?"text-red":"text-green"])}," Melanina: "+Tn(this.diffRight.melanina),3),ZX]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64)}const JX=Ri(BX,[["render",$X]]);async function eY(){console.log("check auth");const t=localStorage.getItem("access_token");if(!t)return!1;try{console.log(t);const e=await Pi.post(`/verify?token=${t}`,{token:t,headers:{Authorization:`Bearer ${t}`}});return Pi.defaults.headers.common.Authorization=`Bearer ${t}`,!0}catch(e){return console.error("Authentication check failed:",e),!1}}const tY=[{path:"/",name:"Home",component:rV,meta:{requiresAuth:!0}},{path:"/login",name:"Login",component:FX},{path:"/register",name:"Registrar paciente",component:JT,meta:{requiresAuth:!0}},{path:"/test",name:"test",component:JX,meta:{requiresAuth:!0}},{path:"/pacientes",name:"Pacientes",component:kV,meta:{requiresAuth:!0}},{path:"/paciente/:id",name:"Paciente",component:d7,props:!0,meta:{requiresAuth:!0}},{path:"/eye-summary/:profile/:eye",name:"Resumen iris",component:ih,props:!0,meta:{requiresAuth:!0}},{path:"/dae",name:"dae",component:ih,props:!0,meta:{requiresAuth:!0}}],Zh=N3({history:s3("/"),routes:tY});Zh.beforeEach(async(t,e,n)=>{if(t!=null&&t.name&&(document.title=t.name+" - Colorimetria"),t.matched.some(i=>i.meta.requiresAuth))try{await eY()?n():n({name:"Login"})}catch(i){console.error("Error during route guard:",i),n({name:"Login"})}else n()});Zh.onError((t,e)=>{var n,i;(i=(n=t==null?void 0:t.message)==null?void 0:n.includes)!=null&&i.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",t):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(e.fullPath)):console.error(t)});Zh.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});const nY=()=>({ogImg:"",firstCrop:"",secondCrop:"",ogImgRight:"",firstCropRight:"",secondCropRight:""}),iY={getOgImg:t=>t.ogImg,getFirstCrop:t=>t.firstCrop,getSecondCrop:t=>t.secondCrop,getOgImgRight:t=>t.ogImgRight,getFirstCropRight:t=>t.firstCropRight,getSecondCropRight:t=>t.secondCropRight},rY={setOgImg(t,e){t.ogImg=e},setFirstCrop(t,e){t.firstCrop=e},setSecondCrop(t,e){t.secondCrop=e},setOgImgRight(t,e){t.ogImgRight=e},setFirstCropRight(t,e){t.firstCropRight=e},setSecondCropRight(t,e){t.secondCropRight=e}},aY={updateOgImg({commit:t},e){t("setOgImg",e)},updateFirstCrop({commit:t},e){t("setFirstCrop",e)},updateSecondCrop({commit:t},e){t("setSecondCrop",e)},updateOgImgRight({commit:t},e){t("setOgImgRight",e)},updateFirstCropRight({commit:t},e){t("setFirstCropRight",e)},updateSecondCropRight({commit:t},e){t("setSecondCropRight",e)}},oY={namespaced:!0,state:nY,getters:iY,mutations:rY,actions:aY},sY=X4({modules:{example:oY}});function lY(t){t.use(Sk).use(Zh).use(sY)}const cY=He({...Nt(),...yk({fullHeight:!0}),...ti()},"VApp"),uY=ut()({name:"VApp",props:cY(),setup(t,e){let{slots:n}=e;const i=ai(t),{layoutClasses:r,getLayoutItem:a,items:o,layoutRef:s}=_k(t),{rtlClasses:l}=Lr();return Et(()=>{var c;return x("div",{ref:s,class:["v-application",i.themeClasses.value,r.value,l.value,t.class],style:[t.style]},[x("div",{class:"v-application__wrap"},[(c=n.default)==null?void 0:c.call(n)])])}),{getLayoutItem:a,items:o,theme:i}}}),dY=He({scrollable:Boolean,...Nt(),...Ua(),...Pn({tag:"main"})},"VMain"),fY=ut()({name:"VMain",props:dY(),setup(t,e){let{slots:n}=e;const{dimensionStyles:i}=Fa(t),{mainStyles:r}=LM(),{ssrBootStyles:a}=Fy();return Et(()=>x(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[r.value,a.value,i.value,t.style]},{default:()=>{var o,s;return[t.scrollable?x("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(s=n.default)==null?void 0:s.call(n)]}})),{}}}),hY={methods:{logout(){localStorage.clear()},token(){window.token=()=>{console.log(localStorage.getItem("access_token"))}}}};function pY(t,e,n,i,r,a){const o=ni("router-view");return Ve(),Wt(uY,{class:"page-background"},{default:$(()=>[x(fY,null,{default:$(()=>[x(o)]),_:1})]),_:1})}const mY=Ri(hY,[["render",pY]]);var gY=Object.defineProperty,iw=Object.getOwnPropertySymbols,vY=Object.prototype.hasOwnProperty,yY=Object.prototype.propertyIsEnumerable,rw=(t,e,n)=>e in t?gY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bY=(t,e)=>{for(var n in e||(e={}))vY.call(e,n)&&rw(t,n,e[n]);if(iw)for(var n of iw(e))yY.call(e,n)&&rw(t,n,e[n]);return t};function Dr(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function _Y(t,e,n,i=1){let r=-1;const a=Dr(t),o=Dr(e);return a&&o?r=0:a?r=i:o?r=-i:typeof t=="string"&&typeof e=="string"?r=n(t,e):r=t<e?-1:t>e?1:0,r}function b0(t){return!!(t&&t.constructor&&t.call&&t.apply)}function hn(t){return!Dr(t)}function na(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function dr(t,...e){return b0(t)?t(...e):t}function zi(t,e=!0){return typeof t=="string"&&(e||t!=="")}function wr(t){return zi(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function _0(t,e="",n={}){const i=wr(e).split("."),r=i.shift();return r?na(t)?_0(dr(t[Object.keys(t).find(a=>wr(a)===r)||""],n),i.join("."),n):void 0:dr(t,n)}function $h(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function yC(t){return hn(t)&&!isNaN(t)}function xY(){return new Intl.Collator(void 0,{numeric:!0}).compare}function Ma(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function SY(...t){const e=(n={},i={})=>{const r=bY({},n);return Object.keys(i).forEach(a=>{na(i[a])&&a in n&&na(n[a])?r[a]=e(n[a],i[a]):r[a]=i[a]}),r};return t.reduce((n,i,r)=>r===0?i:e(n,i),{})}function nu(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function wY(t,e,n=1,i,r=1){const a=_Y(t,e,i,n);let o=n;return(Dr(t)||Dr(e))&&(o=r===1?n:r),o*a}function MY(t){return zi(t,!1)?t[0].toUpperCase()+t.slice(1):t}function bC(t){return zi(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function aw(t){return zi(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function _C(){const t=new Map;return{on(e,n){let i=t.get(e);return i?i.push(n):i=[n],t.set(e,i),this},off(e,n){let i=t.get(e);return i&&i.splice(i.indexOf(n)>>>0,1),this},emit(e,n){let i=t.get(e);i&&i.slice().map(r=>{r(n)})},clear(){t.clear()}}}var EY=Object.defineProperty,TY=Object.defineProperties,AY=Object.getOwnPropertyDescriptors,lh=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,ow=(t,e,n)=>e in t?EY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mr=(t,e)=>{for(var n in e||(e={}))xC.call(e,n)&&ow(t,n,e[n]);if(lh)for(var n of lh(e))SC.call(e,n)&&ow(t,n,e[n]);return t},Pm=(t,e)=>TY(t,AY(e)),ma=(t,e)=>{var n={};for(var i in t)xC.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&lh)for(var i of lh(t))e.indexOf(i)<0&&SC.call(t,i)&&(n[i]=t[i]);return n},CY=_C(),Sr=CY;function sw(t,e){$h(t)?t.push(...e||[]):na(t)&&Object.assign(t,e)}function PY(t){return na(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function lw(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(i=>e.endsWith(i))?t:`${t}`.trim().split(" ").map(a=>yC(a)?`${a}px`:a).join(" ")}function RY(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function _v(t="",e=""){return RY(`${zi(t,!1)&&zi(e,!1)?`${t}-`:t}${e}`)}function wC(t="",e=""){return`--${_v(t,e)}`}function MC(t,e="",n="",i=[],r){if(zi(t)){const a=/{([^}]*)}/g,o=t.trim();if(Ma(o,a)){const s=o.replaceAll(a,u=>{const f=u.replace(/{|}/g,"").split(".").filter(h=>!i.some(p=>Ma(h,p)));return`var(${wC(n,bC(f.join("-")))}${hn(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,c=/var\([^)]+\)/g;return Ma(s.replace(c,"0"),l)?`calc(${s})`:s}return lw(o,e)}else if(yC(t))return lw(t,e)}function DY(t,e,n){zi(e,!1)&&t.push(`${e}:${n};`)}function ol(t,e){return t?`${t}{${e}}`:""}var iu=(...t)=>IY(rn.getTheme(),...t),IY=(t={},e,n,i)=>{if(e){const{variable:r,options:a}=rn.defaults||{},{prefix:o,transform:s}=(t==null?void 0:t.options)||a||{},c=Ma(e,/{([^}]*)}/g)?e:`{${e}}`;return i==="value"||Dr(i)&&s==="strict"?rn.getTokenValue(e):MC(c,void 0,o,[r.excludedKeyRegex],n)}return""};function LY(t,e={}){const n=rn.defaults.variable,{prefix:i=n.prefix,selector:r=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,o=(c,u="")=>Object.entries(c).reduce((d,[f,h])=>{const p=Ma(f,a)?_v(u):_v(u,bC(f)),m=PY(h);if(na(m)){const{variables:g,tokens:v}=o(m,p);sw(d.tokens,v),sw(d.variables,g)}else d.tokens.push((i?p.replace(`${i}-`,""):p).replaceAll("-",".")),DY(d.variables,wC(p),MC(m,p,i,[a]));return d},{variables:[],tokens:[]}),{variables:s,tokens:l}=o(t,i);return{value:s,tokens:l,declarations:s.join(""),css:ol(r,s.join(""))}}var xr={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var i;return(i=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?i:this.rules.custom.resolve(n)})}},_toVariables(t,e){return LY(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:i,defaults:r}){var a,o,s,l,c,u,d;const{preset:f,options:h}=e;let p,m,g,v,b,y,w;if(hn(f)&&h.transform!=="strict"){const{primitive:L,semantic:_,extend:E}=f,R=_||{},{colorScheme:S}=R,M=ma(R,["colorScheme"]),D=E||{},{colorScheme:O}=D,V=ma(D,["colorScheme"]),X=S||{},{dark:K}=X,z=ma(X,["dark"]),Q=O||{},{dark:Y}=Q,he=ma(Q,["dark"]),ne=hn(L)?this._toVariables({primitive:L},h):{},Z=hn(M)?this._toVariables({semantic:M},h):{},_e=hn(z)?this._toVariables({light:z},h):{},Te=hn(K)?this._toVariables({dark:K},h):{},ee=hn(V)?this._toVariables({semantic:V},h):{},le=hn(he)?this._toVariables({light:he},h):{},re=hn(Y)?this._toVariables({dark:Y},h):{},[W,ce]=[(a=ne.declarations)!=null?a:"",ne.tokens],[me,Ce]=[(o=Z.declarations)!=null?o:"",Z.tokens||[]],[$e,j]=[(s=_e.declarations)!=null?s:"",_e.tokens||[]],[H,B]=[(l=Te.declarations)!=null?l:"",Te.tokens||[]],[J,ie]=[(c=ee.declarations)!=null?c:"",ee.tokens||[]],[fe,ye]=[(u=le.declarations)!=null?u:"",le.tokens||[]],[Me,k]=[(d=re.declarations)!=null?d:"",re.tokens||[]];p=this.transformCSS(t,W,"light","variable",h,i,r),m=ce;const T=this.transformCSS(t,`${me}${$e}`,"light","variable",h,i,r),G=this.transformCSS(t,`${H}`,"dark","variable",h,i,r);g=`${T}${G}`,v=[...new Set([...Ce,...j,...B])];const oe=this.transformCSS(t,`${J}${fe}color-scheme:light`,"light","variable",h,i,r),pe=this.transformCSS(t,`${Me}color-scheme:dark`,"dark","variable",h,i,r);b=`${oe}${pe}`,y=[...new Set([...ie,...ye,...k])],w=dr(f.css,{dt:iu})}return{primitive:{css:p,tokens:m},semantic:{css:g,tokens:v},global:{css:b,tokens:y},style:w}},getPreset({name:t="",preset:e={},options:n,params:i,set:r,defaults:a,selector:o}){var s,l,c;let u,d,f;if(hn(e)&&n.transform!=="strict"){const h=t.replace("-directive",""),p=e,{colorScheme:m,extend:g,css:v}=p,b=ma(p,["colorScheme","extend","css"]),y=g||{},{colorScheme:w}=y,L=ma(y,["colorScheme"]),_=m||{},{dark:E}=_,R=ma(_,["dark"]),S=w||{},{dark:M}=S,D=ma(S,["dark"]),O=hn(b)?this._toVariables({[h]:Mr(Mr({},b),L)},n):{},V=hn(R)?this._toVariables({[h]:Mr(Mr({},R),D)},n):{},X=hn(E)?this._toVariables({[h]:Mr(Mr({},E),M)},n):{},[K,z]=[(s=O.declarations)!=null?s:"",O.tokens||[]],[Q,Y]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[he,ne]=[(c=X.declarations)!=null?c:"",X.tokens||[]],Z=this.transformCSS(h,`${K}${Q}`,"light","variable",n,r,a,o),_e=this.transformCSS(h,he,"dark","variable",n,r,a,o);u=`${Z}${_e}`,d=[...new Set([...z,...Y,...ne])],f=dr(v,{dt:iu})}return{css:u,tokens:d,style:f}},getPresetC({name:t="",theme:e={},params:n,set:i,defaults:r}){var a;const{preset:o,options:s}=e,l=(a=o==null?void 0:o.components)==null?void 0:a[t];return this.getPreset({name:t,preset:l,options:s,params:n,set:i,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:i,defaults:r}){var a;const o=t.replace("-directive",""),{preset:s,options:l}=e,c=(a=s==null?void 0:s.directives)==null?void 0:a[o];return this.getPreset({name:o,preset:c,options:l,params:n,set:i,defaults:r})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,i){const{cssLayer:r}=e;return r?`@layer ${dr(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:i={},set:r,defaults:a}){const o=this.getCommon({name:t,theme:e,params:n,set:r,defaults:a}),s=Object.entries(i).reduce((l,[c,u])=>l.push(`${c}="${u}"`)&&l,[]).join(" ");return Object.entries(o||{}).reduce((l,[c,u])=>{if(u!=null&&u.css){const d=nu(u==null?void 0:u.css),f=`${c}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${f}" ${s}>${d}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:i={},set:r,defaults:a}){var o;const s={name:t,theme:e,params:n,set:r,defaults:a},l=(o=t.includes("-directive")?this.getPresetD(s):this.getPresetC(s))==null?void 0:o.css,c=Object.entries(i).reduce((u,[d,f])=>u.push(`${d}="${f}"`)&&u,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${c}>${nu(l)}</style>`:""},createTokens(t={},e,n="",i="",r={}){return Object.entries(t).forEach(([a,o])=>{const s=Ma(a,e.variable.excludedKeyRegex)?n:n?`${n}.${aw(a)}`:aw(a),l=i?`${i}.${a}`:a;na(o)?this.createTokens(o,e,s,l,r):(r[s]||(r[s]={paths:[],computed(c,u={}){var d,f;return this.paths.length===1?(d=this.paths[0])==null?void 0:d.computed(this.paths[0].scheme,u.binding):c&&c!=="none"?(f=this.paths.find(h=>h.scheme===c))==null?void 0:f.computed(c,u.binding):this.paths.map(h=>h.computed(h.scheme,u[h.scheme]))}}),r[s].paths.push({path:l,value:o,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(c,u={}){const d=/{([^}]*)}/g;let f=o;if(u.name=this.path,u.binding||(u.binding={}),Ma(o,d)){const p=o.trim().replaceAll(d,v=>{var b;const y=v.replace(/{|}/g,""),w=(b=r[y])==null?void 0:b.computed(c,u);return $h(w)&&w.length===2?`light-dark(${w[0].value},${w[1].value})`:w==null?void 0:w.value}),m=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,g=/var\([^)]+\)/g;f=Ma(p.replace(g,"0"),m)?`calc(${p})`:p}return Dr(u.binding)&&delete u.binding,{colorScheme:c,path:this.path,paths:u,value:f.includes("undefined")?void 0:f}}}))}),r},getTokenValue(t,e,n){var i;const a=(l=>l.split(".").filter(u=>!Ma(u.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),o=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(i=t[a])==null?void 0:i.computed(o)].flat().filter(l=>l);return s.length===1?s[0].value:s.reduce((l={},c)=>{const u=c,{colorScheme:d}=u,f=ma(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,n,i){return n==="class"||n==="attr"?ol(hn(e)?`${t}${e},${t} ${e}`:t,i):ol(t,hn(e)?ol(e,i):i)},transformCSS(t,e,n,i,r={},a,o,s){if(hn(e)){const{cssLayer:l}=r;if(i!=="style"){const c=this.getColorSchemeOption(r,o);e=n==="dark"?c.reduce((u,{type:d,selector:f})=>(hn(f)&&(u+=f.includes("[CSS]")?f.replace("[CSS]",e):this.getSelectorRule(f,s,d,e)),u),""):ol(s??":root",e)}if(l){const c={name:"primeui",order:"primeui"};na(l)&&(c.name=dr(l.name,{name:t,type:i})),hn(c.name)&&(e=ol(`@layer ${c.name}`,e),a==null||a.layerNames(c.name))}return e}return""}},rn={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Pm(Mr({},e),{options:Mr(Mr({},this.defaults.options),e.options)}),this._tokens=xr.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Sr.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Pm(Mr({},this.theme),{preset:t}),this._tokens=xr.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Sr.emit("preset:change",t),Sr.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Pm(Mr({},this.theme),{options:t}),this.clearLoadedStyleNames(),Sr.emit("options:change",t),Sr.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return xr.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xr.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xr.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xr.getPresetD(n)},getCustomPreset(t="",e,n,i){const r={name:t,preset:e,options:this.options,selector:n,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xr.getPreset(r)},getLayerOrderCSS(t=""){return xr.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",i){return xr.transformCSS(t,e,i,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xr.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xr.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Sr.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Sr.emit("theme:load"))}};function OY(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function EC(t,e){if(t&&e){const n=i=>{OY(t,i)||(t.classList?t.classList.add(i):t.className+=" "+i)};[e].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(n))}}function yf(t,e){if(t&&e){const n=i=>{t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(n))}}function NY(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Qu(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function ch(t,e={}){if(Qu(t)){const n=(i,r)=>{var a,o;const s=(a=t==null?void 0:t.$attrs)!=null&&a[i]?[(o=t==null?void 0:t.$attrs)==null?void 0:o[i]]:[];return[r].flat().reduce((l,c)=>{if(c!=null){const u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){const d=Array.isArray(c)?n(i,c):Object.entries(c).map(([f,h])=>i==="style"&&(h||h===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?f:void 0);l=d.length?l.concat(d.filter(f=>!!f)):l}}return l},s)};Object.entries(e).forEach(([i,r])=>{if(r!=null){const a=i.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),r):i==="p-bind"?ch(t,r):(r=i==="class"?[...new Set(n("class",r))].join(" ").trim():i==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[i]=r),t.setAttribute(i,r))}})}}function kY(t,e={},...n){{const i=document.createElement(t);return ch(i,e),i.append(...n),i}}function Nc(t,e){return Qu(t)?Array.from(t.querySelectorAll(e)):[]}function xv(t,e){return Qu(t)?t.matches(e)?t:t.querySelector(e):null}function TC(t,e){if(Qu(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function cw(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function UY(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function FY(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function BY(t,e){return t?t.offsetHeight:0}function VY(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&UY(t))}function uw(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function AC(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function CC(t,e="",n){Qu(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var Zd={};function PC(t="pui_id_"){return Zd.hasOwnProperty(t)||(Zd[t]=0),Zd[t]++,`${t}${Zd[t]}`}var ui={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"};function Eu(t){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eu(t)}function dw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function fw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dw(Object(n),!0).forEach(function(i){HY(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function HY(t,e,n){return(e=zY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zY(t){var e=WY(t,"string");return Eu(e)=="symbol"?e:e+""}function WY(t,e){if(Eu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Eu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function GY(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Sh()?ir(t):e?t():ri(t)}var jY=0;function XY(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ke(!1),i=ke(t),r=ke(null),a=AC()?window.document:void 0,o=e.document,s=o===void 0?a:o,l=e.immediate,c=l===void 0?!0:l,u=e.manual,d=u===void 0?!1:u,f=e.name,h=f===void 0?"style_".concat(++jY):f,p=e.id,m=p===void 0?void 0:p,g=e.media,v=g===void 0?void 0:g,b=e.nonce,y=b===void 0?void 0:b,w=e.first,L=w===void 0?!1:w,_=e.onMounted,E=_===void 0?void 0:_,R=e.onUpdated,S=R===void 0?void 0:R,M=e.onLoad,D=M===void 0?void 0:M,O=e.props,V=O===void 0?{}:O,X=function(){},K=function(Y){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s){var ne=fw(fw({},V),he),Z=ne.name||h,_e=ne.id||m,Te=ne.nonce||y;r.value=s.querySelector('style[data-primevue-style-id="'.concat(Z,'"]'))||s.getElementById(_e)||s.createElement("style"),r.value.isConnected||(i.value=Y||t,ch(r.value,{type:"text/css",id:_e,media:v,nonce:Te}),L?s.head.prepend(r.value):s.head.appendChild(r.value),CC(r.value,"data-primevue-style-id",Z),ch(r.value,ne),r.value.onload=function(ee){return D==null?void 0:D(ee,{name:Z})},E==null||E(Z)),!n.value&&(X=ft(i,function(ee){r.value.textContent=ee,S==null||S(Z)},{immediate:!0}),n.value=!0)}},z=function(){!s||!n.value||(X(),VY(r.value)&&s.head.removeChild(r.value),n.value=!1)};return c&&!d&&GY(K),{id:m,name:h,el:r,css:i,unload:z,load:K,isLoaded:jl(n)}}function Tu(t){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tu(t)}function hw(t,e){return QY(t)||KY(t,e)||qY(t,e)||YY()}function YY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qY(t,e){if(t){if(typeof t=="string")return pw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pw(t,e):void 0}}function pw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function KY(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function QY(t){if(Array.isArray(t))return t}function mw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Rm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mw(Object(n),!0).forEach(function(i){ZY(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ZY(t,e,n){return(e=$Y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $Y(t){var e=JY(t,"string");return Tu(e)=="symbol"?e:e+""}function JY(t,e){if(Tu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Tu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var eq=function(e){var n=e.dt;return`
* {
    box-sizing: border-box;
}

/* Non vue overlay animations */
.p-connected-overlay {
    opacity: 0;
    transform: scaleY(0.8);
    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
        opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}

.p-connected-overlay-visible {
    opacity: 1;
    transform: scaleY(1);
}

.p-connected-overlay-hidden {
    opacity: 0;
    transform: scaleY(1);
    transition: opacity 0.1s linear;
}

/* Vue based overlay animations */
.p-connected-overlay-enter-from {
    opacity: 0;
    transform: scaleY(0.8);
}

.p-connected-overlay-leave-to {
    opacity: 0;
}

.p-connected-overlay-enter-active {
    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
        opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}

.p-connected-overlay-leave-active {
    transition: opacity 0.1s linear;
}

/* Toggleable Content */
.p-toggleable-content-enter-from,
.p-toggleable-content-leave-to {
    max-height: 0;
}

.p-toggleable-content-enter-to,
.p-toggleable-content-leave-from {
    max-height: 1000px;
}

.p-toggleable-content-leave-active {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
}

.p-toggleable-content-enter-active {
    overflow: hidden;
    transition: max-height 1s ease-in-out;
}

.p-disabled,
.p-disabled * {
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.p-disabled,
.p-component:disabled {
    opacity: `.concat(n("disabled.opacity"),`;
}

.pi {
    font-size: `).concat(n("icon.size"),`;
}

.p-icon {
    width: `).concat(n("icon.size"),`;
    height: `).concat(n("icon.size"),`;
}

.p-overlay-mask {
    background: `).concat(n("mask.background"),`;
    color: `).concat(n("mask.color"),`;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.p-overlay-mask-enter {
    animation: p-overlay-mask-enter-animation `).concat(n("mask.transition.duration"),` forwards;
}

.p-overlay-mask-leave {
    animation: p-overlay-mask-leave-animation `).concat(n("mask.transition.duration"),` forwards;
}

@keyframes p-overlay-mask-enter-animation {
    from {
        background: transparent;
    }
    to {
        background: `).concat(n("mask.background"),`;
    }
}
@keyframes p-overlay-mask-leave-animation {
    from {
        background: `).concat(n("mask.background"),`;
    }
    to {
        background: transparent;
    }
}
`)},tq=function(e){var n=e.dt;return`
.p-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.p-hidden-accessible input,
.p-hidden-accessible select {
    transform: scale(0);
}

.p-overflow-hidden {
    overflow: hidden;
    padding-right: `.concat(n("scrollbar.width"),`;
}
`)},nq={},iq={},cn={name:"base",css:tq,theme:eq,classes:nq,inlineStyles:iq,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(a){return a},r=i(dr(e,{dt:iu}));return hn(r)?XY(nu(r),Rm({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,n,function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return rn.transformCSS(n.name||e.name,"".concat(r).concat(i))})},getCommonTheme:function(e){return rn.getCommon(this.name,e)},getComponentTheme:function(e){return rn.getComponent(this.name,e)},getDirectiveTheme:function(e){return rn.getDirective(this.name,e)},getPresetTheme:function(e,n,i){return rn.getCustomPreset(this.name,e,n,i)},getLayerOrderThemeCSS:function(){return rn.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var i=dr(this.css,{dt:iu})||"",r=nu("".concat(i).concat(e)),a=Object.entries(n).reduce(function(o,s){var l=hw(s,2),c=l[0],u=l[1];return o.push("".concat(c,'="').concat(u,'"'))&&o},[]).join(" ");return hn(r)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(a,">").concat(r,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rn.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[rn.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),a=dr(this.theme,{dt:iu}),o=nu(rn.transformCSS(r,a)),s=Object.entries(n).reduce(function(l,c){var u=hw(c,2),d=u[0],f=u[1];return l.push("".concat(d,'="').concat(f,'"'))&&l},[]).join(" ");hn(o)&&i.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(s,">").concat(o,"</style>"))}return i.join("")},extend:function(e){return Rm(Rm({},this),{},{css:void 0,theme:void 0},e)}},fl=_C();function Au(t){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(t)}function gw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function $d(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gw(Object(n),!0).forEach(function(i){rq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function rq(t,e,n){return(e=aq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aq(t){var e=oq(t,"string");return Au(e)=="symbol"?e:e+""}function oq(t,e){if(Au(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Au(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sq={ripple:!1,inputStyle:null,inputVariant:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},filterMatchModeOptions:{text:[ui.STARTS_WITH,ui.CONTAINS,ui.NOT_CONTAINS,ui.ENDS_WITH,ui.EQUALS,ui.NOT_EQUALS],numeric:[ui.EQUALS,ui.NOT_EQUALS,ui.LESS_THAN,ui.LESS_THAN_OR_EQUAL_TO,ui.GREATER_THAN,ui.GREATER_THAN_OR_EQUAL_TO],date:[ui.DATE_IS,ui.DATE_IS_NOT,ui.DATE_BEFORE,ui.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},theme:void 0,unstyled:!1,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},csp:{nonce:void 0}},lq=Symbol();function cq(t,e){var n={config:mn(e)};return t.config.globalProperties.$primevue=n,t.provide(lq,n),uq(),dq(t,n),n}var hl=[];function uq(){Sr.clear(),hl.forEach(function(t){return t==null?void 0:t()}),hl=[]}function dq(t,e){var n=ke(!1),i=function(){var c;if(((c=e.config)===null||c===void 0?void 0:c.theme)!=="none"&&!rn.isStyleNameLoaded("common")){var u,d,f=((u=cn.getCommonTheme)===null||u===void 0?void 0:u.call(cn))||{},h=f.primitive,p=f.semantic,m=f.global,g=f.style,v={nonce:(d=e.config)===null||d===void 0||(d=d.csp)===null||d===void 0?void 0:d.nonce};cn.load(h==null?void 0:h.css,$d({name:"primitive-variables"},v)),cn.load(p==null?void 0:p.css,$d({name:"semantic-variables"},v)),cn.load(m==null?void 0:m.css,$d({name:"global-variables"},v)),cn.loadTheme($d({name:"global-style"},v),g),rn.setLoadedStyleName("common")}};Sr.on("theme:change",function(l){n.value||(t.config.globalProperties.$primevue.config.theme=l,n.value=!0)});var r=ft(e.config,function(l,c){fl.emit("config:change",{newValue:l,oldValue:c})},{immediate:!0,deep:!0}),a=ft(function(){return e.config.ripple},function(l,c){fl.emit("config:ripple:change",{newValue:l,oldValue:c})},{immediate:!0,deep:!0}),o=ft(function(){return e.config.theme},function(l,c){n.value||rn.setTheme(l),e.config.unstyled||i(),n.value=!1,fl.emit("config:theme:change",{newValue:l,oldValue:c})},{immediate:!0,deep:!0}),s=ft(function(){return e.config.unstyled},function(l,c){!l&&e.config.theme&&i(),fl.emit("config:unstyled:change",{newValue:l,oldValue:c})},{immediate:!0,deep:!0});hl.push(r),hl.push(a),hl.push(o),hl.push(s)}var fq={install:function(e,n){var i=SY(sq,n);cq(e,i)}},lo={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},vw=cn.extend({name:"common"});function Cu(t){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(t)}function hq(t){return IC(t)||pq(t)||DC(t)||RC()}function pq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jd(t,e){return IC(t)||mq(t,e)||DC(t,e)||RC()}function RC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DC(t,e){if(t){if(typeof t=="string")return yw(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yw(t,e):void 0}}function yw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function mq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function IC(t){if(Array.isArray(t))return t}function bw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bw(Object(n),!0).forEach(function(i){Bc(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Bc(t,e,n){return(e=gq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gq(t){var e=vq(t,"string");return Cu(e)=="symbol"?e:e+""}function vq(t,e){if(Cu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Cu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zu={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,i,r,a,o,s,l,c,u,d,f=(e=this.pt)===null||e===void 0?void 0:e._usept,h=f?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,p=f?(i=this.pt)===null||i===void 0||(i=i.value)===null||i===void 0?void 0:i[this.$.type.name]:this.pt;(r=p||h)===null||r===void 0||(r=r.hooks)===null||r===void 0||(a=r.onBeforeCreate)===null||a===void 0||a.call(r);var m=(o=this.$primevueConfig)===null||o===void 0||(o=o.pt)===null||o===void 0?void 0:o._usept,g=m?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.originalValue:void 0,v=m?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0?void 0:c.pt;(u=v||g)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(d=u.onBeforeCreate)===null||d===void 0||d.call(u),this.$attrSelector=PC("pc")},created:function(){this._hook("onCreated")},beforeMount:function(){this.rootEl=xv(this.$el,'[data-pc-name="'.concat(wr(this.$.type.name),'"]')),this.rootEl&&(this.$attrSelector&&!this.rootEl.hasAttribute(this.$attrSelector)&&this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=Bt({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),i=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),i==null||i()}},_mergeProps:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return b0(e)?e.apply(void 0,i):Ye.apply(void 0,i)},_loadStyles:function(){var e=this,n=function(){lo.isStyleNameLoaded("base")||(cn.loadCSS(e.$styleOptions),e._loadGlobalStyles(),lo.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!lo.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(vw.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),lo.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);hn(e)&&cn.load(e,Bt({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!rn.isStyleNameLoaded("common")){var i,r,a=((i=this.$style)===null||i===void 0||(r=i.getCommonTheme)===null||r===void 0?void 0:r.call(i))||{},o=a.primitive,s=a.semantic,l=a.global,c=a.style;cn.load(o==null?void 0:o.css,Bt({name:"primitive-variables"},this.$styleOptions)),cn.load(s==null?void 0:s.css,Bt({name:"semantic-variables"},this.$styleOptions)),cn.load(l==null?void 0:l.css,Bt({name:"global-variables"},this.$styleOptions)),cn.loadTheme(Bt({name:"global-style"},this.$styleOptions),c),rn.setLoadedStyleName("common")}if(!rn.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,d,f,h,p=((u=this.$style)===null||u===void 0||(d=u.getComponentTheme)===null||d===void 0?void 0:d.call(u))||{},m=p.css,g=p.style;(f=this.$style)===null||f===void 0||f.load(m,Bt({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(Bt({name:"".concat(this.$style.name,"-style")},this.$styleOptions),g),rn.setLoadedStyleName(this.$style.name)}if(!rn.isStyleNameLoaded("layer-order")){var v,b,y=(v=this.$style)===null||v===void 0||(b=v.getLayerOrderThemeCSS)===null||b===void 0?void 0:b.call(v);cn.load(y,Bt({name:"layer-order",first:!0},this.$styleOptions)),rn.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,i,r,a=((n=this.$style)===null||n===void 0||(i=n.getPresetTheme)===null||i===void 0?void 0:i.call(n,e,"[".concat(this.$attrSelector,"]")))||{},o=a.css,s=(r=this.$style)===null||r===void 0?void 0:r.load(o,Bt({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=s.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lo.clearLoadedStyleNames(),Sr.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _0(e,n,i)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=/./g.test(i)&&!!r[i.split(".")[0]],s=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=s.mergeSections,c=l===void 0?!0:l,u=s.mergeProps,d=u===void 0?!1:u,f=a?o?this._useGlobalPT(this._getPTClassValue,i,r):this._useDefaultPT(this._getPTClassValue,i,r):void 0,h=o?void 0:this._getPTSelf(n,this._getPTClassValue,i,Bt(Bt({},r),{},{global:f||{}})),p=this._getPTDatasets(i);return c||!c&&h?d?this._mergeProps(d,f,h,p):Bt(Bt(Bt({},f),h),p):Bt(Bt({},h),p)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Ye(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var e,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",a=i==="root"&&hn((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return i!=="transition"&&Bt(Bt({},i==="root"&&Bt(Bt(Bc({},"".concat(r,"name"),wr(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Bc({},"".concat(r,"extend"),wr(this.$.type.name))),AC()&&Bc({},"".concat(this.$attrSelector),""))),{},Bc({},"".concat(r,"section"),wr(i)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return zi(e)||$h(e)?{class:e}:e},_getPT:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,a=function(s){var l,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=r?r(s):s,d=wr(i),f=wr(n.$name);return(l=c?d!==f?u==null?void 0:u[d]:void 0:u==null?void 0:u[d])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,i,r){var a=function(m){return n(m,i,r)};if(e!=null&&e.hasOwnProperty("_usept")){var o,s=e._usept||((o=this.$primevueConfig)===null||o===void 0?void 0:o.ptOptions)||{},l=s.mergeSections,c=l===void 0?!0:l,u=s.mergeProps,d=u===void 0?!1:u,f=a(e.originalValue),h=a(e.value);return f===void 0&&h===void 0?void 0:zi(h)?h:zi(f)?f:c||!c&&h?d?this._mergeProps(d,f,h):Bt(Bt({},f),h):h}return a(e)},_useGlobalPT:function(e,n,i){return this._usePT(this.globalPT,e,n,i)},_useDefaultPT:function(e,n,i){return this._usePT(this.defaultPT,e,n,i)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Bt(Bt({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ye(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Bt({instance:this},i),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Bt(Bt({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,Bt(Bt({},this.$params),i)),a=this._getOptionValue(vw.inlineStyles,e,Bt(Bt({},this.$params),i));return[a,r]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return dr(i,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return n._getOptionValue(i,n.$name,Bt({},n.$params))||dr(i,Bt({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Bt(Bt({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Jd(e,1),i=n[0];return i==null?void 0:i.startsWith("pt:")}).reduce(function(e,n){var i=Jd(n,2),r=i[0],a=i[1],o=r.split(":"),s=hq(o),l=s.slice(1);return l==null||l.reduce(function(c,u,d,f){return!c[u]&&(c[u]=d===f.length-1?a:{}),c[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Jd(e,1),i=n[0];return!(i!=null&&i.startsWith("pt:"))}).reduce(function(e,n){var i=Jd(n,2),r=i[0],a=i[1];return e[r]=a,e},{})}}},yq=`
.p-icon {
    display: inline-block;
    vertical-align: baseline;
}

.p-icon-spin {
    -webkit-animation: p-icon-spin 2s infinite linear;
    animation: p-icon-spin 2s infinite linear;
}

@-webkit-keyframes p-icon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes p-icon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
`,bq=cn.extend({name:"baseicon",css:yq});function Pu(t){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pu(t)}function _w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function xw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_w(Object(n),!0).forEach(function(i){_q(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_w(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _q(t,e,n){return(e=xq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xq(t){var e=Sq(t,"string");return Pu(e)=="symbol"?e:e+""}function Sq(t,e){if(Pu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Pu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $u={name:"BaseIcon",extends:Zu,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:bq,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Dr(this.label);return xw(xw({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},LC={name:"SpinnerIcon",extends:$u};function wq(t,e,n,i,r,a){return Ve(),St("svg",Ye({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[nt("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1)]),16)}LC.render=wq;var Mq=function(e){var n=e.dt;return`
.p-badge {
    display: inline-flex;
    border-radius: `.concat(n("badge.border.radius"),`;
    align-items: center;
    justify-content: center;
    padding: `).concat(n("badge.padding"),`;
    background: `).concat(n("badge.primary.background"),`;
    color: `).concat(n("badge.primary.color"),`;
    font-size: `).concat(n("badge.font.size"),`;
    font-weight: `).concat(n("badge.font.weight"),`;
    min-width: `).concat(n("badge.min.width"),`;
    height: `).concat(n("badge.height"),`;
}

.p-badge-dot {
    width: `).concat(n("badge.dot.size"),`;
    min-width: `).concat(n("badge.dot.size"),`;
    height: `).concat(n("badge.dot.size"),`;
    border-radius: 50%;
    padding: 0;
}

.p-badge-circle {
    padding: 0;
    border-radius: 50%;
}

.p-badge-secondary {
    background: `).concat(n("badge.secondary.background"),`;
    color: `).concat(n("badge.secondary.color"),`;
}

.p-badge-success {
    background: `).concat(n("badge.success.background"),`;
    color: `).concat(n("badge.success.color"),`;
}

.p-badge-info {
    background: `).concat(n("badge.info.background"),`;
    color: `).concat(n("badge.info.color"),`;
}

.p-badge-warn {
    background: `).concat(n("badge.warn.background"),`;
    color: `).concat(n("badge.warn.color"),`;
}

.p-badge-danger {
    background: `).concat(n("badge.danger.background"),`;
    color: `).concat(n("badge.danger.color"),`;
}

.p-badge-contrast {
    background: `).concat(n("badge.contrast.background"),`;
    color: `).concat(n("badge.contrast.color"),`;
}

.p-badge-sm {
    font-size: `).concat(n("badge.sm.font.size"),`;
    min-width: `).concat(n("badge.sm.min.width"),`;
    height: `).concat(n("badge.sm.height"),`;
}

.p-badge-lg {
    font-size: `).concat(n("badge.lg.font.size"),`;
    min-width: `).concat(n("badge.lg.min.width"),`;
    height: `).concat(n("badge.lg.height"),`;
}

.p-badge-xl {
    font-size: `).concat(n("badge.xl.font.size"),`;
    min-width: `).concat(n("badge.xl.min.width"),`;
    height: `).concat(n("badge.xl.height"),`;
}
`)},Eq={root:function(e){var n=e.props,i=e.instance;return["p-badge p-component",{"p-badge-circle":hn(n.value)&&String(n.value).length===1,"p-badge-dot":Dr(n.value)&&!i.$slots.default,"p-badge-sm":n.size==="small","p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warn":n.severity==="warn","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},Tq=cn.extend({name:"badge",theme:Mq,classes:Eq}),Aq={name:"BaseBadge",extends:Zu,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:Tq,provide:function(){return{$pcBadge:this,$parentInstance:this}}},OC={name:"Badge",extends:Aq,inheritAttrs:!1};function Cq(t,e,n,i,r,a){return Ve(),St("span",Ye({class:t.cx("root")},t.ptmi("root")),[Oi(t.$slots,"default",{},function(){return[Be(Tn(t.value),1)]})],16)}OC.render=Cq;function Ru(t){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ru(t)}function Sw(t,e){return Iq(t)||Dq(t,e)||Rq(t,e)||Pq()}function Pq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rq(t,e){if(t){if(typeof t=="string")return ww(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ww(t,e):void 0}}function ww(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Dq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function Iq(t){if(Array.isArray(t))return t}function Mw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mw(Object(n),!0).forEach(function(i){Sv(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Sv(t,e,n){return(e=Lq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lq(t){var e=Oq(t,"string");return Ru(e)=="symbol"?e:e+""}function Oq(t,e){if(Ru(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Ru(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lt={_getMeta:function(){return[na(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],dr(na(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var i,r,a;return(i=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||i===void 0?void 0:i.config},_getOptionValue:_0,_getPTValue:function(){var e,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var b=Lt._getOptionValue.apply(Lt,arguments);return zi(b)||$h(b)?{class:b}:b},c=((e=i.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=i.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,f=c.mergeProps,h=f===void 0?!1:f,p=s?Lt._useDefaultPT(i,i.defaultPT(),l,a,o):void 0,m=Lt._usePT(i,Lt._getPT(r,i.$name),l,a,Xt(Xt({},o),{},{global:p||{}})),g=Lt._getPTDatasets(i,a);return d||!d&&m?h?Lt._mergeProps(i,h,p,m,g):Xt(Xt(Xt({},p),m),g):Xt(Xt({},m),g)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i="data-pc-";return Xt(Xt({},n==="root"&&Sv({},"".concat(i,"name"),wr(e.$name))),{},Sv({},"".concat(i,"section"),wr(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=function(o){var s,l=i?i(o):o,c=wr(n);return(s=l==null?void 0:l[c])!==null&&s!==void 0?s:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=function(g){return i(g,r,a)};if(n!=null&&n.hasOwnProperty("_usept")){var s,l=n._usept||((s=e.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=l.mergeSections,u=c===void 0?!0:c,d=l.mergeProps,f=d===void 0?!1:d,h=o(n.originalValue),p=o(n.value);return h===void 0&&p===void 0?void 0:zi(p)?p:zi(h)?h:u||!u&&p?f?Lt._mergeProps(e,f,h,p):Xt(Xt({},h),p):p}return o(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return Lt._usePT(e,n,i,r,a)},_loadStyles:function(e,n,i){var r,a=Lt._getConfig(n,i),o={nonce:a==null||(r=a.csp)===null||r===void 0?void 0:r.nonce};Lt._loadCoreStyles(e.$instance,o),Lt._loadThemeStyles(e.$instance,o),Lt._loadScopedThemeStyles(e.$instance,o),Lt._themeChangeListener(function(){return Lt._loadThemeStyles(e.$instance,o)})},_loadCoreStyles:function(){var e,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!lo.isStyleNameLoaded((e=i.$style)===null||e===void 0?void 0:e.name)&&(n=i.$style)!==null&&n!==void 0&&n.name){var a;cn.loadCSS(r),(a=i.$style)===null||a===void 0||a.loadCSS(r),lo.setLoadedStyleName(i.$style.name)}},_loadThemeStyles:function(){var e,n,i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled()||(r==null||(e=r.theme)===null||e===void 0?void 0:e.call(r))==="none")){if(!rn.isStyleNameLoaded("common")){var o,s,l=((o=r.$style)===null||o===void 0||(s=o.getCommonTheme)===null||s===void 0?void 0:s.call(o))||{},c=l.primitive,u=l.semantic,d=l.global,f=l.style;cn.load(c==null?void 0:c.css,Xt({name:"primitive-variables"},a)),cn.load(u==null?void 0:u.css,Xt({name:"semantic-variables"},a)),cn.load(d==null?void 0:d.css,Xt({name:"global-variables"},a)),cn.loadTheme(Xt({name:"global-style"},a),f),rn.setLoadedStyleName("common")}if(!rn.isStyleNameLoaded((n=r.$style)===null||n===void 0?void 0:n.name)&&(i=r.$style)!==null&&i!==void 0&&i.name){var h,p,m,g,v=((h=r.$style)===null||h===void 0||(p=h.getDirectiveTheme)===null||p===void 0?void 0:p.call(h))||{},b=v.css,y=v.style;(m=r.$style)===null||m===void 0||m.load(b,Xt({name:"".concat(r.$style.name,"-variables")},a)),(g=r.$style)===null||g===void 0||g.loadTheme(Xt({name:"".concat(r.$style.name,"-style")},a),y),rn.setLoadedStyleName(r.$style.name)}if(!rn.isStyleNameLoaded("layer-order")){var w,L,_=(w=r.$style)===null||w===void 0||(L=w.getLayerOrderThemeCSS)===null||L===void 0?void 0:L.call(w);cn.load(_,Xt({name:"layer-order",first:!0},a)),rn.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=e.preset();if(i&&e.$attrSelector){var r,a,o,s=((r=e.$style)===null||r===void 0||(a=r.getPresetTheme)===null||a===void 0?void 0:a.call(r,i,"[".concat(e.$attrSelector,"]")))||{},l=s.css,c=(o=e.$style)===null||o===void 0?void 0:o.load(l,Xt({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=c.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lo.clearLoadedStyleNames(),Sr.on("theme:change",e)},_hook:function(e,n,i,r,a,o){var s,l,c="on".concat(MY(n)),u=Lt._getConfig(r,a),d=i==null?void 0:i.$instance,f=Lt._usePT(d,Lt._getPT(r==null||(s=r.value)===null||s===void 0?void 0:s.pt,e),Lt._getOptionValue,"hooks.".concat(c)),h=Lt._useDefaultPT(d,u==null||(l=u.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],Lt._getOptionValue,"hooks.".concat(c)),p={el:i,binding:r,vnode:a,prevVnode:o};f==null||f(d,p),h==null||h(d,p)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return b0(e)?e.apply(void 0,i):Ye.apply(void 0,i)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=function(o,s,l,c,u){var d,f,h,p;s._$instances=s._$instances||{};var m=Lt._getConfig(l,c),g=s._$instances[e]||{},v=Dr(g)?Xt(Xt({},n),n==null?void 0:n.methods):{};s._$instances[e]=Xt(Xt({},g),{},{$name:e,$host:s,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:g.$el||s||void 0,$style:Xt({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:m,$attrSelector:(d=s.$pd)===null||d===void 0||(d=d[e])===null||d===void 0?void 0:d.attrSelector,defaultPT:function(){return Lt._getPT(m==null?void 0:m.pt,void 0,function(y){var w;return y==null||(w=y.directives)===null||w===void 0?void 0:w[e]})},isUnstyled:function(){var y,w;return((y=s.$instance)===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.unstyled)!==void 0?(w=s.$instance)===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.unstyled:m==null?void 0:m.unstyled},theme:function(){var y;return(y=s.$instance)===null||y===void 0||(y=y.$primevueConfig)===null||y===void 0?void 0:y.theme},preset:function(){var y;return(y=s.$instance)===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.dt},ptm:function(){var y,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Lt._getPTValue(s.$instance,(y=s.$instance)===null||y===void 0||(y=y.$binding)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.pt,w,Xt({},L))},ptmo:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Lt._getPTValue(s.$instance,y,w,L,!1)},cx:function(){var y,w,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(y=s.$instance)!==null&&y!==void 0&&y.isUnstyled()?void 0:Lt._getOptionValue((w=s.$instance)===null||w===void 0||(w=w.$style)===null||w===void 0?void 0:w.classes,L,Xt({},_))},sx:function(){var y,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L?Lt._getOptionValue((y=s.$instance)===null||y===void 0||(y=y.$style)===null||y===void 0?void 0:y.inlineStyles,w,Xt({},_)):void 0}},v),s.$instance=s._$instances[e],(f=(h=s.$instance)[o])===null||f===void 0||f.call(h,s,l,c,u),s["$".concat(e)]=s.$instance,Lt._hook(e,o,s,l,c,u),s.$pd||(s.$pd={}),s.$pd[e]=Xt(Xt({},(p=s.$pd)===null||p===void 0?void 0:p[e]),{},{name:e,instance:s.$instance})},r=function(o){var s,l,c,u,d,f=(s=o.$instance)===null||s===void 0?void 0:s.watch;f==null||(l=f.config)===null||l===void 0||l.call(o.$instance,(c=o.$instance)===null||c===void 0?void 0:c.$primevueConfig),fl.on("config:change",function(h){var p,m=h.newValue,g=h.oldValue;return f==null||(p=f.config)===null||p===void 0?void 0:p.call(o.$instance,m,g)}),f==null||(u=f["config.ripple"])===null||u===void 0||u.call(o.$instance,(d=o.$instance)===null||d===void 0||(d=d.$primevueConfig)===null||d===void 0?void 0:d.ripple),fl.on("config:ripple:change",function(h){var p,m=h.newValue,g=h.oldValue;return f==null||(p=f["config.ripple"])===null||p===void 0?void 0:p.call(o.$instance,m,g)})};return{created:function(o,s,l,c){o.$pd||(o.$pd={}),o.$pd[e]={name:e,attrSelector:PC("pd")},i("created",o,s,l,c)},beforeMount:function(o,s,l,c){Lt._loadStyles(o,s,l),i("beforeMount",o,s,l,c),r(o)},mounted:function(o,s,l,c){Lt._loadStyles(o,s,l),i("mounted",o,s,l,c)},beforeUpdate:function(o,s,l,c){i("beforeUpdate",o,s,l,c)},updated:function(o,s,l,c){Lt._loadStyles(o,s,l),i("updated",o,s,l,c)},beforeUnmount:function(o,s,l,c){i("beforeUnmount",o,s,l,c)},unmounted:function(o,s,l,c){var u;(u=o.$instance)===null||u===void 0||(u=u.scopedStyleEl)===null||u===void 0||(u=u.value)===null||u===void 0||u.remove(),i("unmounted",o,s,l,c)}}},extend:function(){var e=Lt._getMeta.apply(Lt,arguments),n=Sw(e,2),i=n[0],r=n[1];return Xt({extend:function(){var o=Lt._getMeta.apply(Lt,arguments),s=Sw(o,2),l=s[0],c=s[1];return Lt.extend(l,Xt(Xt(Xt({},r),r==null?void 0:r.methods),c))}},Lt._extend(i,r))}},Nq=function(e){var n=e.dt;return`
.p-ink {
    display: block;
    position: absolute;
    background: `.concat(n("ripple.background"),`;
    border-radius: 100%;
    transform: scale(0);
    pointer-events: none;
}

.p-ink-active {
    animation: ripple 0.4s linear;
}

@keyframes ripple {
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}
`)},kq={root:"p-ink"},Uq=cn.extend({name:"ripple-directive",theme:Nq,classes:kq}),Fq=Lt.extend({style:Uq});function Du(t){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(t)}function Bq(t){return Wq(t)||zq(t)||Hq(t)||Vq()}function Vq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hq(t,e){if(t){if(typeof t=="string")return wv(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wv(t,e):void 0}}function zq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wq(t){if(Array.isArray(t))return wv(t)}function wv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Ew(t,e,n){return(e=Gq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gq(t){var e=jq(t,"string");return Du(e)=="symbol"?e:e+""}function jq(t,e){if(Du(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Du(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var NC=Fq.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=kY("span",Ew(Ew({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,i=e.currentTarget,r=this.getInk(i);if(!(!r||getComputedStyle(r,null).display==="none")){if(!this.isUnstyled()&&yf(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!cw(r)&&!uw(r)){var a=Math.max(NY(i),BY(i));r.style.height=a+"px",r.style.width=a+"px"}var o=FY(i),s=e.pageX-o.left+document.body.scrollTop-uw(r)/2,l=e.pageY-o.top+document.body.scrollLeft-cw(r)/2;r.style.top=l+"px",r.style.left=s+"px",!this.isUnstyled()&&EC(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&yf(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&yf(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Bq(e.children).find(function(n){return TC(n,"data-pc-name")==="ripple"}):void 0}}});function Iu(t){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(t)}function Hr(t,e,n){return(e=Xq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xq(t){var e=Yq(t,"string");return Iu(e)=="symbol"?e:e+""}function Yq(t,e){if(Iu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Iu(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qq=function(e){var n=e.dt;return`
.p-button {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: `.concat(n("button.primary.color"),`;
    background: `).concat(n("button.primary.background"),`;
    border: 1px solid `).concat(n("button.primary.border.color"),`;
    padding: `).concat(n("button.padding.y")," ").concat(n("button.padding.x"),`;
    font-size: 1rem;
    font-family: inherit;
    font-feature-settings: inherit;
    transition: background `).concat(n("button.transition.duration"),", color ").concat(n("button.transition.duration"),", border-color ").concat(n("button.transition.duration"),`,
            outline-color `).concat(n("button.transition.duration"),", box-shadow ").concat(n("button.transition.duration"),`;
    border-radius: `).concat(n("button.border.radius"),`;
    outline-color: transparent;
    gap: `).concat(n("button.gap"),`;
}

.p-button:disabled {
    cursor: default;
}

.p-button-icon-right {
    order: 1;
}

.p-button-icon-bottom {
    order: 2;
}

.p-button-icon-only {
    width: `).concat(n("button.icon.only.width"),`;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

.p-button-icon-only.p-button-rounded {
    border-radius: 50%;
    height: `).concat(n("button.icon.only.width"),`;
}

.p-button-icon-only .p-button-label {
    visibility: hidden;
    width: 0;
}

.p-button-sm {
    font-size: `).concat(n("button.sm.font.size"),`;
    padding: `).concat(n("button.sm.padding.y")," ").concat(n("button.sm.padding.x"),`;
}

.p-button-sm .p-button-icon {
    font-size: `).concat(n("button.sm.font.size"),`;
}

.p-button-lg {
    font-size: `).concat(n("button.lg.font.size"),`;
    padding: `).concat(n("button.lg.padding.y")," ").concat(n("button.lg.padding.x"),`;
}

.p-button-lg .p-button-icon {
    font-size: `).concat(n("button.lg.font.size"),`;
}

.p-button-vertical {
    flex-direction: column;
}

.p-button-label {
    font-weight: `).concat(n("button.label.font.weight"),`;
}

.p-button-fluid {
    width: 100%;
}

.p-button-fluid.p-button-icon-only {
    width: `).concat(n("button.icon.only.width"),`;
}

.p-button:not(:disabled):hover {
    background: `).concat(n("button.primary.hover.background"),`;
    border: 1px solid `).concat(n("button.primary.hover.border.color"),`;
    color: `).concat(n("button.primary.hover.color"),`;
}

.p-button:not(:disabled):active {
    background: `).concat(n("button.primary.active.background"),`;
    border: 1px solid `).concat(n("button.primary.active.border.color"),`;
    color: `).concat(n("button.primary.active.color"),`;
}

.p-button:focus-visible {
    box-shadow: `).concat(n("button.primary.focus.ring.shadow"),`;
    outline: `).concat(n("button.focus.ring.width")," ").concat(n("button.focus.ring.style")," ").concat(n("button.primary.focus.ring.color"),`;
    outline-offset: `).concat(n("button.focus.ring.offset"),`;
}

.p-button .p-badge {
    min-width: `).concat(n("button.badge.size"),`;
    height: `).concat(n("button.badge.size"),`;
    line-height: `).concat(n("button.badge.size"),`;
}

.p-button-raised {
    box-shadow: `).concat(n("button.raised.shadow"),`;
}

.p-button-rounded {
    border-radius: `).concat(n("button.rounded.border.radius"),`;
}

.p-button-secondary {
    background: `).concat(n("button.secondary.background"),`;
    border: 1px solid `).concat(n("button.secondary.border.color"),`;
    color: `).concat(n("button.secondary.color"),`;
}

.p-button-secondary:not(:disabled):hover {
    background: `).concat(n("button.secondary.hover.background"),`;
    border: 1px solid `).concat(n("button.secondary.hover.border.color"),`;
    color: `).concat(n("button.secondary.hover.color"),`;
}

.p-button-secondary:not(:disabled):active {
    background: `).concat(n("button.secondary.active.background"),`;
    border: 1px solid `).concat(n("button.secondary.active.border.color"),`;
    color: `).concat(n("button.secondary.active.color"),`;
}

.p-button-secondary:focus-visible {
    outline-color: `).concat(n("button.secondary.focus.ring.color"),`;
    box-shadow: `).concat(n("button.secondary.focus.ring.shadow"),`;
}

.p-button-success {
    background: `).concat(n("button.success.background"),`;
    border: 1px solid `).concat(n("button.success.border.color"),`;
    color: `).concat(n("button.success.color"),`;
}

.p-button-success:not(:disabled):hover {
    background: `).concat(n("button.success.hover.background"),`;
    border: 1px solid `).concat(n("button.success.hover.border.color"),`;
    color: `).concat(n("button.success.hover.color"),`;
}

.p-button-success:not(:disabled):active {
    background: `).concat(n("button.success.active.background"),`;
    border: 1px solid `).concat(n("button.success.active.border.color"),`;
    color: `).concat(n("button.success.active.color"),`;
}

.p-button-success:focus-visible {
    outline-color: `).concat(n("button.success.focus.ring.color"),`;
    box-shadow: `).concat(n("button.success.focus.ring.shadow"),`;
}

.p-button-info {
    background: `).concat(n("button.info.background"),`;
    border: 1px solid `).concat(n("button.info.border.color"),`;
    color: `).concat(n("button.info.color"),`;
}

.p-button-info:not(:disabled):hover {
    background: `).concat(n("button.info.hover.background"),`;
    border: 1px solid `).concat(n("button.info.hover.border.color"),`;
    color: `).concat(n("button.info.hover.color"),`;
}

.p-button-info:not(:disabled):active {
    background: `).concat(n("button.info.active.background"),`;
    border: 1px solid `).concat(n("button.info.active.border.color"),`;
    color: `).concat(n("button.info.active.color"),`;
}

.p-button-info:focus-visible {
    outline-color: `).concat(n("button.info.focus.ring.color"),`;
    box-shadow: `).concat(n("button.info.focus.ring.shadow"),`;
}

.p-button-warn {
    background: `).concat(n("button.warn.background"),`;
    border: 1px solid `).concat(n("button.warn.border.color"),`;
    color: `).concat(n("button.warn.color"),`;
}

.p-button-warn:not(:disabled):hover {
    background: `).concat(n("button.warn.hover.background"),`;
    border: 1px solid `).concat(n("button.warn.hover.border.color"),`;
    color: `).concat(n("button.warn.hover.color"),`;
}

.p-button-warn:not(:disabled):active {
    background: `).concat(n("button.warn.active.background"),`;
    border: 1px solid `).concat(n("button.warn.active.border.color"),`;
    color: `).concat(n("button.warn.active.color"),`;
}

.p-button-warn:focus-visible {
    outline-color: `).concat(n("button.warn.focus.ring.color"),`;
    box-shadow: `).concat(n("button.warn.focus.ring.shadow"),`;
}

.p-button-help {
    background: `).concat(n("button.help.background"),`;
    border: 1px solid `).concat(n("button.help.border.color"),`;
    color: `).concat(n("button.help.color"),`;
}

.p-button-help:not(:disabled):hover {
    background: `).concat(n("button.help.hover.background"),`;
    border: 1px solid `).concat(n("button.help.hover.border.color"),`;
    color: `).concat(n("button.help.hover.color"),`;
}

.p-button-help:not(:disabled):active {
    background: `).concat(n("button.help.active.background"),`;
    border: 1px solid `).concat(n("button.help.active.border.color"),`;
    color: `).concat(n("button.help.active.color"),`;
}

.p-button-help:focus-visible {
    outline-color: `).concat(n("button.help.focus.ring.color"),`;
    box-shadow: `).concat(n("button.help.focus.ring.shadow"),`;
}

.p-button-danger {
    background: `).concat(n("button.danger.background"),`;
    border: 1px solid `).concat(n("button.danger.border.color"),`;
    color: `).concat(n("button.danger.color"),`;
}

.p-button-danger:not(:disabled):hover {
    background: `).concat(n("button.danger.hover.background"),`;
    border: 1px solid `).concat(n("button.danger.hover.border.color"),`;
    color: `).concat(n("button.danger.hover.color"),`;
}

.p-button-danger:not(:disabled):active {
    background: `).concat(n("button.danger.active.background"),`;
    border: 1px solid `).concat(n("button.danger.active.border.color"),`;
    color: `).concat(n("button.danger.active.color"),`;
}

.p-button-danger:focus-visible {
    outline-color: `).concat(n("button.danger.focus.ring.color"),`;
    box-shadow: `).concat(n("button.danger.focus.ring.shadow"),`;
}

.p-button-contrast {
    background: `).concat(n("button.contrast.background"),`;
    border: 1px solid `).concat(n("button.contrast.border.color"),`;
    color: `).concat(n("button.contrast.color"),`;
}

.p-button-contrast:not(:disabled):hover {
    background: `).concat(n("button.contrast.hover.background"),`;
    border: 1px solid `).concat(n("button.contrast.hover.border.color"),`;
    color: `).concat(n("button.contrast.hover.color"),`;
}

.p-button-contrast:not(:disabled):active {
    background: `).concat(n("button.contrast.active.background"),`;
    border: 1px solid `).concat(n("button.contrast.active.border.color"),`;
    color: `).concat(n("button.contrast.active.color"),`;
}

.p-button-contrast:focus-visible {
    outline-color: `).concat(n("button.contrast.focus.ring.color"),`;
    box-shadow: `).concat(n("button.contrast.focus.ring.shadow"),`;
}

.p-button-outlined {
    background: transparent;
    border-color: `).concat(n("button.outlined.primary.border.color"),`;
    color: `).concat(n("button.outlined.primary.color"),`;
}

.p-button-outlined:not(:disabled):hover {
    background: `).concat(n("button.outlined.primary.hover.background"),`;
    border-color: `).concat(n("button.outlined.primary.border.color"),`;
    color: `).concat(n("button.outlined.primary.color"),`;
}

.p-button-outlined:not(:disabled):active {
    background: `).concat(n("button.outlined.primary.active.background"),`;
    border-color: `).concat(n("button.outlined.primary.border.color"),`;
    color: `).concat(n("button.outlined.primary.color"),`;
}

.p-button-outlined.p-button-secondary {
    border-color: `).concat(n("button.outlined.secondary.border.color"),`;
    color: `).concat(n("button.outlined.secondary.color"),`;
}

.p-button-outlined.p-button-secondary:not(:disabled):hover {
    background: `).concat(n("button.outlined.secondary.hover.background"),`;
    border-color: `).concat(n("button.outlined.secondary.border.color"),`;
    color: `).concat(n("button.outlined.secondary.color"),`;
}

.p-button-outlined.p-button-secondary:not(:disabled):active {
    background: `).concat(n("button.outlined.secondary.active.background"),`;
    border-color: `).concat(n("button.outlined.secondary.border.color"),`;
    color: `).concat(n("button.outlined.secondary.color"),`;
}

.p-button-outlined.p-button-success {
    border-color: `).concat(n("button.outlined.success.border.color"),`;
    color: `).concat(n("button.outlined.success.color"),`;
}

.p-button-outlined.p-button-success:not(:disabled):hover {
    background: `).concat(n("button.outlined.success.hover.background"),`;
    border-color: `).concat(n("button.outlined.success.border.color"),`;
    color: `).concat(n("button.outlined.success.color"),`;
}

.p-button-outlined.p-button-success:not(:disabled):active {
    background: `).concat(n("button.outlined.success.active.background"),`;
    border-color: `).concat(n("button.outlined.success.border.color"),`;
    color: `).concat(n("button.outlined.success.color"),`;
}

.p-button-outlined.p-button-info {
    border-color: `).concat(n("button.outlined.info.border.color"),`;
    color: `).concat(n("button.outlined.info.color"),`;
}

.p-button-outlined.p-button-info:not(:disabled):hover {
    background: `).concat(n("button.outlined.info.hover.background"),`;
    border-color: `).concat(n("button.outlined.info.border.color"),`;
    color: `).concat(n("button.outlined.info.color"),`;
}

.p-button-outlined.p-button-info:not(:disabled):active {
    background: `).concat(n("button.outlined.info.active.background"),`;
    border-color: `).concat(n("button.outlined.info.border.color"),`;
    color: `).concat(n("button.outlined.info.color"),`;
}

.p-button-outlined.p-button-warn {
    border-color: `).concat(n("button.outlined.warn.border.color"),`;
    color: `).concat(n("button.outlined.warn.color"),`;
}

.p-button-outlined.p-button-warn:not(:disabled):hover {
    background: `).concat(n("button.outlined.warn.hover.background"),`;
    border-color: `).concat(n("button.outlined.warn.border.color"),`;
    color: `).concat(n("button.outlined.warn.color"),`;
}

.p-button-outlined.p-button-warn:not(:disabled):active {
    background: `).concat(n("button.outlined.warn.active.background"),`;
    border-color: `).concat(n("button.outlined.warn.border.color"),`;
    color: `).concat(n("button.outlined.warn.color"),`;
}

.p-button-outlined.p-button-help {
    border-color: `).concat(n("button.outlined.help.border.color"),`;
    color: `).concat(n("button.outlined.help.color"),`;
}

.p-button-outlined.p-button-help:not(:disabled):hover {
    background: `).concat(n("button.outlined.help.hover.background"),`;
    border-color: `).concat(n("button.outlined.help.border.color"),`;
    color: `).concat(n("button.outlined.help.color"),`;
}

.p-button-outlined.p-button-help:not(:disabled):active {
    background: `).concat(n("button.outlined.help.active.background"),`;
    border-color: `).concat(n("button.outlined.help.border.color"),`;
    color: `).concat(n("button.outlined.help.color"),`;
}

.p-button-outlined.p-button-danger {
    border-color: `).concat(n("button.outlined.danger.border.color"),`;
    color: `).concat(n("button.outlined.danger.color"),`;
}

.p-button-outlined.p-button-danger:not(:disabled):hover {
    background: `).concat(n("button.outlined.danger.hover.background"),`;
    border-color: `).concat(n("button.outlined.danger.border.color"),`;
    color: `).concat(n("button.outlined.danger.color"),`;
}

.p-button-outlined.p-button-danger:not(:disabled):active {
    background: `).concat(n("button.outlined.danger.active.background"),`;
    border-color: `).concat(n("button.outlined.danger.border.color"),`;
    color: `).concat(n("button.outlined.danger.color"),`;
}

.p-button-outlined.p-button-contrast {
    border-color: `).concat(n("button.outlined.contrast.border.color"),`;
    color: `).concat(n("button.outlined.contrast.color"),`;
}

.p-button-outlined.p-button-contrast:not(:disabled):hover {
    background: `).concat(n("button.outlined.contrast.hover.background"),`;
    border-color: `).concat(n("button.outlined.contrast.border.color"),`;
    color: `).concat(n("button.outlined.contrast.color"),`;
}

.p-button-outlined.p-button-contrast:not(:disabled):active {
    background: `).concat(n("button.outlined.contrast.active.background"),`;
    border-color: `).concat(n("button.outlined.contrast.border.color"),`;
    color: `).concat(n("button.outlined.contrast.color"),`;
}

.p-button-outlined.p-button-plain {
    border-color: `).concat(n("button.outlined.plain.border.color"),`;
    color: `).concat(n("button.outlined.plain.color"),`;
}

.p-button-outlined.p-button-plain:not(:disabled):hover {
    background: `).concat(n("button.outlined.plain.hover.background"),`;
    border-color: `).concat(n("button.outlined.plain.border.color"),`;
    color: `).concat(n("button.outlined.plain.color"),`;
}

.p-button-outlined.p-button-plain:not(:disabled):active {
    background: `).concat(n("button.outlined.plain.active.background"),`;
    border-color: `).concat(n("button.outlined.plain.border.color"),`;
    color: `).concat(n("button.outlined.plain.color"),`;
}

.p-button-text {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.primary.color"),`;
}

.p-button-text:not(:disabled):hover {
    background: `).concat(n("button.text.primary.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.primary.color"),`;
}

.p-button-text:not(:disabled):active {
    background: `).concat(n("button.text.primary.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.primary.color"),`;
}

.p-button-text.p-button-secondary {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.secondary.color"),`;
}

.p-button-text.p-button-secondary:not(:disabled):hover {
    background: `).concat(n("button.text.secondary.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.secondary.color"),`;
}

.p-button-text.p-button-secondary:not(:disabled):active {
    background: `).concat(n("button.text.secondary.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.secondary.color"),`;
}

.p-button-text.p-button-success {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.success.color"),`;
}

.p-button-text.p-button-success:not(:disabled):hover {
    background: `).concat(n("button.text.success.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.success.color"),`;
}

.p-button-text.p-button-success:not(:disabled):active {
    background: `).concat(n("button.text.success.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.success.color"),`;
}

.p-button-text.p-button-info {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.info.color"),`;
}

.p-button-text.p-button-info:not(:disabled):hover {
    background: `).concat(n("button.text.info.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.info.color"),`;
}

.p-button-text.p-button-info:not(:disabled):active {
    background: `).concat(n("button.text.info.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.info.color"),`;
}

.p-button-text.p-button-warn {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.warn.color"),`;
}

.p-button-text.p-button-warn:not(:disabled):hover {
    background: `).concat(n("button.text.warn.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.warn.color"),`;
}

.p-button-text.p-button-warn:not(:disabled):active {
    background: `).concat(n("button.text.warn.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.warn.color"),`;
}

.p-button-text.p-button-help {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.help.color"),`;
}

.p-button-text.p-button-help:not(:disabled):hover {
    background: `).concat(n("button.text.help.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.help.color"),`;
}

.p-button-text.p-button-help:not(:disabled):active {
    background: `).concat(n("button.text.help.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.help.color"),`;
}

.p-button-text.p-button-danger {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.danger.color"),`;
}

.p-button-text.p-button-danger:not(:disabled):hover {
    background: `).concat(n("button.text.danger.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.danger.color"),`;
}

.p-button-text.p-button-danger:not(:disabled):active {
    background: `).concat(n("button.text.danger.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.danger.color"),`;
}

.p-button-text.p-button-plain {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.text.plain.color"),`;
}

.p-button-text.p-button-plain:not(:disabled):hover {
    background: `).concat(n("button.text.plain.hover.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.plain.color"),`;
}

.p-button-text.p-button-plain:not(:disabled):active {
    background: `).concat(n("button.text.plain.active.background"),`;
    border-color: transparent;
    color: `).concat(n("button.text.plain.color"),`;
}

.p-button-link {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.link.color"),`;
}

.p-button-link:not(:disabled):hover {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.link.hover.color"),`;
}

.p-button-link:not(:disabled):hover .p-button-label {
    text-decoration: underline;
}

.p-button-link:not(:disabled):active {
    background: transparent;
    border-color: transparent;
    color: `).concat(n("button.link.active.color"),`;
}
`)},Kq={root:function(e){var n=e.instance,i=e.props;return["p-button p-component",Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr({"p-button-icon-only":n.hasIcon&&!i.label&&!i.badge,"p-button-vertical":(i.iconPos==="top"||i.iconPos==="bottom")&&i.label,"p-button-loading":i.loading,"p-button-link":i.link},"p-button-".concat(i.severity),i.severity),"p-button-raised",i.raised),"p-button-rounded",i.rounded),"p-button-text",i.text),"p-button-outlined",i.outlined),"p-button-sm",i.size==="small"),"p-button-lg",i.size==="large"),"p-button-plain",i.plain),"p-button-fluid",n.hasFluid)]},loadingIcon:"p-button-loading-icon",icon:function(e){var n=e.props;return["p-button-icon",Hr({},"p-button-icon-".concat(n.iconPos),n.label)]},label:"p-button-label"},Qq=cn.extend({name:"button",theme:qq,classes:Kq}),Zq={name:"BaseButton",extends:Zu,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:"secondary"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:Qq,provide:function(){return{$pcButton:this,$parentInstance:this}}},x0={name:"Button",extends:Zq,inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return Ye(this.asAttrs,this.a11yAttrs,this.getPTOptions("root"))},asAttrs:function(){return this.as==="BUTTON"?{type:"button",disabled:this.disabled}:void 0},a11yAttrs:function(){return{"aria-label":this.defaultAriaLabel,"data-pc-name":"button","data-p-disabled":this.disabled,"data-p-severity":this.severity}},hasFluid:function(){return Dr(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:LC,Badge:OC},directives:{ripple:NC}};function $q(t,e,n,i,r,a){var o=ni("SpinnerIcon"),s=ni("Badge"),l=gs("ripple");return t.asChild?Oi(t.$slots,"default",{key:1,class:fi(t.cx("root")),a11yAttrs:a.a11yAttrs}):Gi((Ve(),Wt(uu(t.as),Ye({key:0,class:t.cx("root")},a.attrs),{default:$(function(){return[Oi(t.$slots,"default",{},function(){return[t.loading?Oi(t.$slots,"loadingicon",{key:0,class:fi([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(Ve(),St("span",Ye({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(Ve(),Wt(o,Ye({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):Oi(t.$slots,"icon",{key:1,class:fi([t.cx("icon")])},function(){return[t.icon?(Ve(),St("span",Ye({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):Ft("",!0)]}),nt("span",Ye({class:t.cx("label")},t.ptm("label")),Tn(t.label||" "),17),t.badge?(Ve(),Wt(s,{key:2,value:t.badge,class:fi(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm("pcBadge")},null,8,["value","class","severity","unstyled","pt"])):Ft("",!0)]})]}),_:3},16,["class"])),[[l]])}x0.render=$q;var kC={name:"ChevronDownIcon",extends:$u};function Jq(t,e,n,i,r,a){return Ve(),St("svg",Ye({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[nt("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}kC.render=Jq;var UC={name:"ChevronLeftIcon",extends:$u};function eK(t,e,n,i,r,a){return Ve(),St("svg",Ye({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[nt("path",{d:"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z",fill:"currentColor"},null,-1)]),16)}UC.render=eK;var FC={name:"ChevronRightIcon",extends:$u};function tK(t,e,n,i,r,a){return Ve(),St("svg",Ye({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[nt("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}FC.render=tK;var BC={name:"ChevronUpIcon",extends:$u};function nK(t,e,n,i,r,a){return Ve(),St("svg",Ye({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[nt("path",{d:"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",fill:"currentColor"},null,-1)]),16)}BC.render=nK;var iK=function(e){var n=e.dt;return`
.p-carousel {
    display: flex;
    flex-direction: column;
}

.p-carousel-content-container {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.p-carousel-content {
    display: flex;
    flex-direction: row;
    gap: `.concat(n("carousel.content.gap"),`;
}

.p-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.p-carousel-item-list {
    display: flex;
    flex-direction: row;
}

.p-carousel-prev-button,
.p-carousel-next-button {
    align-self: center;
    flex-shrink: 0;
}

.p-carousel-indicator-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding: `).concat(n("carousel.indicator.list.padding"),`;
    gap: `).concat(n("carousel.indicator.list.gap"),`;
    margin: 0;
    list-style: none;
}

.p-carousel-indicator-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: `).concat(n("carousel.indicator.background"),`;
    width: `).concat(n("carousel.indicator.width"),`;
    height: `).concat(n("carousel.indicator.height"),`;
    border: 0 none;
    transition: background `).concat(n("carousel.transition.duration"),", color ").concat(n("carousel.transition.duration"),", outline-color ").concat(n("carousel.transition.duration"),", box-shadow ").concat(n("carousel.transition.duration"),`;
    outline-color: transparent;
    border-radius: `).concat(n("carousel.indicator.border.radius"),`;
    padding: 0;
    margin: 0;
    user-select: none;
    cursor: pointer;
}

.p-carousel-indicator-button:focus-visible {
    box-shadow: `).concat(n("carousel.indicator.focus.ring.shadow"),`;
    outline: `).concat(n("carousel.indicator.focus.ring.width")," ").concat(n("carousel.indicator.focus.ring.style")," ").concat(n("carousel.indicator.focus.ring.color"),`;
    outline-offset: `).concat(n("carousel.indicator.focus.ring.offset"),`;
}

.p-carousel-indicator-button:hover {
    background: `).concat(n("carousel.indicator.hover.background"),`;
}

.p-carousel-indicator-active .p-carousel-indicator-button {
    background: `).concat(n("carousel.indicator.active.background"),`;
}

.p-carousel-vertical .p-carousel-content {
    flex-direction: column;
}

.p-carousel-vertical .p-carousel-item-list {
    flex-direction: column;
    height: 100%;
}

.p-items-hidden .p-carousel-item {
    visibility: hidden;
}

.p-items-hidden .p-carousel-item.p-carousel-item-active {
    visibility: visible;
}
`)},rK={root:function(e){var n=e.instance;return["p-carousel p-component",{"p-carousel-vertical":n.isVertical(),"p-carousel-horizontal":!n.isVertical()}]},header:"p-carousel-header",contentContainer:"p-carousel-content-container",content:"p-carousel-content",pcPrevButton:function(e){var n=e.instance;return["p-carousel-prev-button",{"p-disabled":n.backwardIsDisabled}]},viewport:"p-carousel-viewport",itemList:"p-carousel-item-list",itemClone:function(e){var n=e.index,i=e.value,r=e.totalShiftedItems,a=e.d_numVisible;return["p-carousel-item p-carousel-item-clone",{"p-carousel-item-active":r*-1===i.length+a,"p-carousel-item-start":n===0,"p-carousel-item-end":i.slice(-1*a).length-1===n}]},item:function(e){var n=e.instance,i=e.index;return["p-carousel-item",{"p-carousel-item-active":n.firstIndex()<=i&&n.lastIndex()>=i,"p-carousel-item-start":n.firstIndex()===i,"p-carousel-item-end":n.lastIndex()===i}]},pcNextButton:function(e){var n=e.instance;return["p-carousel-next-button",{"p-disabled":n.forwardIsDisabled}]},indicatorList:"p-carousel-indicator-list",indicator:function(e){var n=e.instance,i=e.index;return["p-carousel-indicator",{"p-carousel-indicator-active":n.d_page===i}]},indicatorButton:"p-carousel-indicator-button",footer:"p-carousel-footer"},aK=cn.extend({name:"carousel",theme:iK,classes:rK}),oK={name:"BaseCarousel",extends:Zu,props:{value:null,page:{type:Number,default:0},numVisible:{type:Number,default:1},numScroll:{type:Number,default:1},responsiveOptions:Array,orientation:{type:String,default:"horizontal"},verticalViewPortHeight:{type:String,default:"300px"},contentClass:String,containerClass:String,indicatorsContentClass:String,circular:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:0},showNavigators:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},prevButtonProps:{type:Object,default:function(){return{severity:"secondary",text:!0,rounded:!0}}},nextButtonProps:{type:Object,default:function(){return{severity:"secondary",text:!0,rounded:!0}}}},style:aK,provide:function(){return{$pcCarousel:this,$parentInstance:this}}};function tl(t){return uK(t)||cK(t)||lK(t)||sK()}function sK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lK(t,e){if(t){if(typeof t=="string")return Mv(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mv(t,e):void 0}}function cK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uK(t){if(Array.isArray(t))return Mv(t)}function Mv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var VC={name:"Carousel",extends:oK,inheritAttrs:!1,emits:["update:page"],isRemainingItemsAdded:!1,data:function(){return{remainingItems:0,d_numVisible:this.numVisible,d_numScroll:this.numScroll,d_oldNumScroll:0,d_oldNumVisible:0,d_oldValue:null,d_page:this.page,totalShiftedItems:this.page*this.numScroll*-1,allowAutoplay:!!this.autoplayInterval,d_circular:this.circular||this.allowAutoplay,swipeThreshold:20}},watch:{page:function(e){e>this.d_page?this.navForward({},e):e<this.d_page&&this.navBackward({},e),this.d_page=e},circular:function(e){this.d_circular=e},numVisible:function(e,n){this.d_numVisible=e,this.d_oldNumVisible=n},numScroll:function(e,n){this.d_oldNumScroll=n,this.d_numScroll=e},value:function(e){this.d_oldValue=e}},mounted:function(){var e=!1;if(this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners(),this.isCircular()){var n=this.totalShiftedItems;this.d_page===0?n=-1*this.d_numVisible:n===0&&(n=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),n!==this.totalShiftedItems&&(this.totalShiftedItems=n,e=!0)}!e&&this.isAutoplay()&&this.startAutoplay()},updated:function(){if(!this.empty){var e=this.isCircular(),n=!1,i=this.totalShiftedItems;if(this.autoplayInterval&&this.stopAutoplay(),this.d_oldNumScroll!==this.d_numScroll||this.d_oldNumVisible!==this.d_numVisible||this.d_oldValue.length!==this.value.length){this.remainingItems=(this.value.length-this.d_numVisible)%this.d_numScroll;var r=this.d_page;this.totalIndicators!==0&&r>=this.totalIndicators&&(r=this.totalIndicators-1,this.$emit("update:page",r),this.d_page=r,n=!0),i=r*this.d_numScroll*-1,e&&(i-=this.d_numVisible),r===this.totalIndicators-1&&this.remainingItems>0?(i+=-1*this.remainingItems+this.d_numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,i!==this.totalShiftedItems&&(this.totalShiftedItems=i,n=!0),this.d_oldNumScroll=this.d_numScroll,this.d_oldNumVisible=this.d_numVisible,this.d_oldValue=this.value,this.$refs.itemsContainer.style.transform=this.isVertical()?"translate3d(0, ".concat(i*(100/this.d_numVisible),"%, 0)"):"translate3d(".concat(i*(100/this.d_numVisible),"%, 0, 0)")}e&&(this.d_page===0?i=-1*this.d_numVisible:i===0&&(i=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),i!==this.totalShiftedItems&&(this.totalShiftedItems=i,n=!0)),!n&&this.isAutoplay()&&this.startAutoplay()}},beforeUnmount:function(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()},methods:{getIndicatorPTOptions:function(e,n){return this.ptm(e,{context:{highlighted:n===this.d_page}})},getItemPTOptions:function(e,n){return this.ptm(e,{context:{index:n,active:this.firstIndex()<=n&&this.lastIndex()>=n,start:this.firstIndex()===n,end:this.lastIndex()===n}})},step:function(e,n){var i=this.totalShiftedItems,r=this.isCircular();if(n!=null)i=this.d_numScroll*n*-1,r&&(i-=this.d_numVisible),this.isRemainingItemsAdded=!1;else{i+=this.d_numScroll*e,this.isRemainingItemsAdded&&(i+=this.remainingItems-this.d_numScroll*e,this.isRemainingItemsAdded=!1);var a=r?i+this.d_numVisible:i;n=Math.abs(Math.floor(a/this.d_numScroll))}r&&this.d_page===this.totalIndicators-1&&e===-1?(i=-1*(this.value.length+this.d_numVisible),n=0):r&&this.d_page===0&&e===1?(i=0,n=this.totalIndicators-1):n===this.totalIndicators-1&&this.remainingItems>0&&(i+=this.remainingItems*-1-this.d_numScroll*e,this.isRemainingItemsAdded=!0),this.$refs.itemsContainer&&(!this.isUnstyled&&yf(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transform=this.isVertical()?"translate3d(0, ".concat(i*(100/this.d_numVisible),"%, 0)"):"translate3d(".concat(i*(100/this.d_numVisible),"%, 0, 0)"),this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=i,this.$emit("update:page",n),this.d_page=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.responsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible,numScroll:this.numScroll},i=0;i<this.responsiveOptions.length;i++){var r=this.responsiveOptions[i];parseInt(r.breakpoint,10)>=e&&(n=r)}if(this.d_numScroll!==n.numScroll){var a=this.d_page;a=parseInt(a*this.d_numScroll/n.numScroll),this.totalShiftedItems=n.numScroll*a*-1,this.isCircular()&&(this.totalShiftedItems-=n.numVisible),this.d_numScroll=n.numScroll,this.$emit("update:page",a),this.d_page=a}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},navBackward:function(e,n){(this.d_circular||this.d_page!==0)&&this.step(1,n),this.allowAutoplay=!1,e.cancelable&&e.preventDefault()},navForward:function(e,n){(this.d_circular||this.d_page<this.totalIndicators-1)&&this.step(-1,n),this.allowAutoplay=!1,e.cancelable&&e.preventDefault()},onIndicatorClick:function(e,n){var i=this.d_page;n>i?this.navForward(e,n):n<i&&this.navBackward(e,n)},onTransitionEnd:function(){this.$refs.itemsContainer&&(!this.isUnstyled&&EC(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="",(this.d_page===0||this.d_page===this.totalIndicators-1)&&this.isCircular()&&(this.$refs.itemsContainer.style.transform=this.isVertical()?"translate3d(0, ".concat(this.totalShiftedItems*(100/this.d_numVisible),"%, 0)"):"translate3d(".concat(this.totalShiftedItems*(100/this.d_numVisible),"%, 0, 0)")))},onTouchStart:function(e){var n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}},onTouchMove:function(e){var n=e.changedTouches[0],i=this.isVertical()?n.pageY-this.startPos.y:n.pageX-this.startPos.x;Math.abs(i)>this.swipeThreshold&&e.cancelable&&e.preventDefault()},onTouchEnd:function(e){var n=e.changedTouches[0];this.isVertical()?this.changePageOnTouch(e,n.pageY-this.startPos.y):this.changePageOnTouch(e,n.pageX-this.startPos.x)},changePageOnTouch:function(e,n){Math.abs(n)>this.swipeThreshold&&(n<0?this.navForward(e):this.navBackward(e))},onIndicatorKeydown:function(e){switch(e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":e.preventDefault();break;case"Tab":this.onTabKey();break}},onRightKey:function(){var e=tl(Nc(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n+1===e.length?e.length-1:n+1)},onLeftKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)},onHomeKey:function(){var e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)},onEndKey:function(){var e=tl(Nc(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,e.length-1)},onTabKey:function(){var e=tl(Nc(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=e.findIndex(function(a){return TC(a,"data-p-active")===!0}),i=xv(this.$refs.indicatorContent,'[data-pc-section="indicator"] > button[tabindex="0"]'),r=e.findIndex(function(a){return a===i.parentElement});e[r].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"},findFocusedIndicatorIndex:function(){var e=tl(Nc(this.$refs.indicatorContent,'[data-pc-section="indicator"]')),n=xv(this.$refs.indicatorContent,'[data-pc-section="indicator"] > button[tabindex="0"]');return e.findIndex(function(i){return i===n.parentElement})},changedFocusedIndicator:function(e,n){var i=tl(Nc(this.$refs.indicatorContent,'[data-pc-section="indicator"]'));i[e].children[0].tabIndex="-1",i[n].children[0].tabIndex="0",i[n].children[0].focus()},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(n){e.calculatePosition(n)},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},startAutoplay:function(){var e=this;this.interval=setInterval(function(){e.d_page===e.totalIndicators-1?e.step(-1,0):e.step(-1,e.d_page+1)},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)},createStyle:function(){if(!this.carouselStyle){var e;this.carouselStyle=document.createElement("style"),this.carouselStyle.type="text/css",CC(this.carouselStyle,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.body.appendChild(this.carouselStyle)}var n=`
                .p-carousel[`.concat(this.$attrSelector,`] .p-carousel-item {
                    flex: 1 0 `).concat(100/this.d_numVisible,`%
                }
            `);if(this.responsiveOptions&&!this.isUnstyled){var i=tl(this.responsiveOptions),r=xY();i.sort(function(s,l){var c=s.breakpoint,u=l.breakpoint;return wY(c,u,-1,r)});for(var a=0;a<i.length;a++){var o=i[a];n+=`
                        @media screen and (max-width: `.concat(o.breakpoint,`) {
                            .p-carousel[`).concat(this.$attrSelector,`] .p-carousel-item {
                                flex: 1 0 `).concat(100/o.numVisible,`%
                            }
                        }
                    `)}}this.carouselStyle.innerHTML=n},isVertical:function(){return this.orientation==="vertical"},isCircular:function(){return this.value&&this.d_circular&&this.value.length>=this.d_numVisible},isAutoplay:function(){return this.autoplayInterval&&this.allowAutoplay},firstIndex:function(){return this.isCircular()?-1*(this.totalShiftedItems+this.d_numVisible):this.totalShiftedItems*-1},lastIndex:function(){return this.firstIndex()+this.d_numVisible-1},ariaSlideNumber:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g,e):void 0},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{totalIndicators:function(){return this.value?Math.max(Math.ceil((this.value.length-this.d_numVisible)/this.d_numScroll)+1,0):0},backwardIsDisabled:function(){return this.value&&(!this.circular||this.value.length<this.d_numVisible)&&this.d_page===0},forwardIsDisabled:function(){return this.value&&(!this.circular||this.value.length<this.d_numVisible)&&(this.d_page===this.totalIndicators-1||this.totalIndicators===0)},ariaSlideLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slide:void 0},ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0},empty:function(){return!this.value||this.value.length===0},emptyMessageText:function(){var e;return((e=this.$primevue.config)===null||e===void 0||(e=e.locale)===null||e===void 0?void 0:e.emptyMessage)||""}},components:{Button:x0,ChevronRightIcon:FC,ChevronDownIcon:kC,ChevronLeftIcon:UC,ChevronUpIcon:BC},directives:{ripple:NC}},dK=["aria-live"],fK=["data-p-carousel-item-active","data-p-carousel-item-start","data-p-carousel-item-end"],hK=["aria-hidden","aria-label","aria-roledescription","data-p-carousel-item-active","data-p-carousel-item-start","data-p-carousel-item-end"],pK=["data-p-active"],mK=["tabindex","aria-label","aria-current","onClick"];function gK(t,e,n,i,r,a){var o=ni("Button");return Ve(),St("div",Ye({class:t.cx("root"),role:"region"},t.ptmi("root")),[t.$slots.header?(Ve(),St("div",Ye({key:0,class:t.cx("header")},t.ptm("header")),[Oi(t.$slots,"header")],16)):Ft("",!0),a.empty?Oi(t.$slots,"empty",{key:2},function(){return[Be(Tn(a.emptyMessageText),1)]}):(Ve(),St("div",Ye({key:1,class:[t.cx("contentContainer"),t.containerClass]},t.ptm("contentContainer")),[nt("div",Ye({class:[t.cx("content"),t.contentClass],"aria-live":r.allowAutoplay?"polite":"off"},t.ptm("content")),[t.showNavigators?(Ve(),Wt(o,Ye({key:0,class:t.cx("pcPrevButton"),disabled:a.backwardIsDisabled,"aria-label":a.ariaPrevButtonLabel,unstyled:t.unstyled,onClick:a.navBackward},t.prevButtonProps,{pt:t.ptm("pcPrevButton"),"data-pc-group-section":"navigator"}),{icon:$(function(s){return[Oi(t.$slots,"previcon",{},function(){return[(Ve(),Wt(uu(a.isVertical()?"ChevronUpIcon":"ChevronLeftIcon"),Ye({class:s.icon},t.ptm("pcPrevButton").icon),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-label","unstyled","onClick","pt"])):Ft("",!0),nt("div",Ye({class:t.cx("viewport"),style:[{height:a.isVertical()?t.verticalViewPortHeight:"auto"}],onTouchend:e[1]||(e[1]=function(){return a.onTouchEnd&&a.onTouchEnd.apply(a,arguments)}),onTouchstart:e[2]||(e[2]=function(){return a.onTouchStart&&a.onTouchStart.apply(a,arguments)}),onTouchmove:e[3]||(e[3]=function(){return a.onTouchMove&&a.onTouchMove.apply(a,arguments)})},t.ptm("viewport")),[nt("div",Ye({ref:"itemsContainer",class:t.cx("itemList"),onTransitionend:e[0]||(e[0]=function(){return a.onTransitionEnd&&a.onTransitionEnd.apply(a,arguments)})},t.ptm("itemList")),[a.isCircular()?(Ve(!0),St(Mt,{key:0},co(t.value.slice(-1*r.d_numVisible),function(s,l){return Ve(),St("div",Ye({key:l+"_scloned",class:t.cx("itemClone",{index:l,value:t.value,totalShiftedItems:r.totalShiftedItems,d_numVisible:r.d_numVisible}),ref_for:!0},t.ptm("itemClone"),{"data-p-carousel-item-active":r.totalShiftedItems*-1===t.value.length+r.d_numVisible,"data-p-carousel-item-start":l===0,"data-p-carousel-item-end":t.value.slice(-1*r.d_numVisible).length-1===l}),[Oi(t.$slots,"item",{data:s,index:l})],16,fK)}),128)):Ft("",!0),(Ve(!0),St(Mt,null,co(t.value,function(s,l){return Ve(),St("div",Ye({key:l,class:t.cx("item",{index:l}),role:"group","aria-hidden":a.firstIndex()>l||a.lastIndex()<l?!0:void 0,"aria-label":a.ariaSlideNumber(l),"aria-roledescription":a.ariaSlideLabel,ref_for:!0},a.getItemPTOptions("item",l),{"data-p-carousel-item-active":a.firstIndex()<=l&&a.lastIndex()>=l,"data-p-carousel-item-start":a.firstIndex()===l,"data-p-carousel-item-end":a.lastIndex()===l}),[Oi(t.$slots,"item",{data:s,index:l})],16,hK)}),128)),a.isCircular()?(Ve(!0),St(Mt,{key:1},co(t.value.slice(0,r.d_numVisible),function(s,l){return Ve(),St("div",Ye({key:l+"_fcloned",class:t.cx("itemClone",{index:l,value:t.value,totalShiftedItems:r.totalShiftedItems,d_numVisible:r.d_numVisible}),ref_for:!0},t.ptm("itemClone")),[Oi(t.$slots,"item",{data:s,index:l})],16)}),128)):Ft("",!0)],16)],16),t.showNavigators?(Ve(),Wt(o,Ye({key:1,class:t.cx("pcNextButton"),disabled:a.forwardIsDisabled,"aria-label":a.ariaNextButtonLabel,unstyled:t.unstyled,onClick:a.navForward},t.nextButtonProps,{pt:t.ptm("pcNextButton"),"data-pc-group-section":"navigator"}),{icon:$(function(s){return[Oi(t.$slots,"nexticon",{},function(){return[(Ve(),Wt(uu(a.isVertical()?"ChevronDownIcon":"ChevronRightIcon"),Ye({class:s.class},t.ptm("pcNextButton").icon),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-label","unstyled","onClick","pt"])):Ft("",!0)],16,dK),a.totalIndicators>=0&&t.showIndicators?(Ve(),St("ul",Ye({key:0,ref:"indicatorContent",class:[t.cx("indicatorList"),t.indicatorsContentClass],onKeydown:e[4]||(e[4]=function(){return a.onIndicatorKeydown&&a.onIndicatorKeydown.apply(a,arguments)})},t.ptm("indicatorList")),[(Ve(!0),St(Mt,null,co(a.totalIndicators,function(s,l){return Ve(),St("li",Ye({key:"p-carousel-indicator-"+l.toString(),class:t.cx("indicator",{index:l}),ref_for:!0},a.getIndicatorPTOptions("indicator",l),{"data-p-active":r.d_page===l}),[nt("button",Ye({class:t.cx("indicatorButton"),type:"button",tabindex:r.d_page===l?"0":"-1","aria-label":a.ariaPageLabel(l+1),"aria-current":r.d_page===l?"page":void 0,onClick:function(u){return a.onIndicatorClick(u,l)},ref_for:!0},a.getIndicatorPTOptions("indicatorButton",l)),null,16,mK)],16,pK)}),128))],16)):Ft("",!0)],16)),t.$slots.footer?(Ve(),St("div",Ye({key:3,class:t.cx("footer")},t.ptm("footer")),[Oi(t.$slots,"footer")],16)):Ft("",!0)],16)}VC.render=gK;var vK=function(e){var n=e.dt;return`
.p-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: `.concat(n("tag.primary.background"),`;
    color: `).concat(n("tag.primary.color"),`;
    font-size: `).concat(n("tag.font.size"),`;
    font-weight: `).concat(n("tag.font.weight"),`;
    padding: `).concat(n("tag.padding"),`;
    border-radius: `).concat(n("tag.border.radius"),`;
    gap: `).concat(n("tag.gap"),`;
}

.p-tag-icon {
    font-size: `).concat(n("tag.icon.size"),`;
    width: `).concat(n("tag.icon.size"),`;
    height:`).concat(n("tag.icon.size"),`;
}

.p-tag-rounded {
    border-radius: `).concat(n("tag.rounded.border.radius"),`;
}

.p-tag-success {
    background: `).concat(n("tag.success.background"),`;
    color: `).concat(n("tag.success.color"),`;
}

.p-tag-info {
    background: `).concat(n("tag.info.background"),`;
    color: `).concat(n("tag.info.color"),`;
}

.p-tag-warn {
    background: `).concat(n("tag.warn.background"),`;
    color: `).concat(n("tag.warn.color"),`;
}

.p-tag-danger {
    background: `).concat(n("tag.danger.background"),`;
    color: `).concat(n("tag.danger.color"),`;
}

.p-tag-secondary {
    background: `).concat(n("tag.secondary.background"),`;
    color: `).concat(n("tag.secondary.color"),`;
}

.p-tag-contrast {
    background: `).concat(n("tag.contrast.background"),`;
    color: `).concat(n("tag.contrast.color"),`;
}
`)},yK={root:function(e){var n=e.props;return["p-tag p-component",{"p-tag-info":n.severity==="info","p-tag-success":n.severity==="success","p-tag-warn":n.severity==="warn","p-tag-danger":n.severity==="danger","p-tag-secondary":n.severity==="secondary","p-tag-contrast":n.severity==="contrast","p-tag-rounded":n.rounded}]},icon:"p-tag-icon",label:"p-tag-label"},bK=cn.extend({name:"tag",theme:vK,classes:yK}),_K={name:"BaseTag",extends:Zu,props:{value:null,severity:null,rounded:Boolean,icon:String},style:bK,provide:function(){return{$pcTag:this,$parentInstance:this}}},HC={name:"Tag",extends:_K,inheritAttrs:!1};function xK(t,e,n,i,r,a){return Ve(),St("span",Ye({class:t.cx("root")},t.ptmi("root")),[t.$slots.icon?(Ve(),Wt(uu(t.$slots.icon),Ye({key:0,class:t.cx("icon")},t.ptm("icon")),null,16,["class"])):t.icon?(Ve(),St("span",Ye({key:1,class:[t.cx("icon"),t.icon]},t.ptm("icon")),null,16)):Ft("",!0),t.value!=null||t.$slots.default?Oi(t.$slots,"default",{key:2},function(){return[nt("span",Ye({class:t.cx("label")},t.ptm("label")),Tn(t.value),17)]}):Ft("",!0)],16)}HC.render=xK;const uc=yO(mY);lY(uc);uc.use(fq);uc.component("Button",x0);uc.component("Carousel",VC);uc.component("Tag",HC);uc.mount("#app");

Youez - 2016 - github.com/yon3zu
LinuXploit