PageSourceSearch

https://wavlakeplaylistparty.vercel.app/_next/static/chunks/667-fb3a502cc06e4899.js

js wavlakeplaylistparty.vercel.app collected 2026-10-03 08:01:26 UTC 62,447 bytes, 1 lines download raw bytes

vendor: 13,913 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[667],{2944:function(){},2038:function(e){e.exports={style:{fontFamily:"'__Poppins_59d23c', '__Poppins_Fallback_59d23c'",fontStyle:"normal"},className:"__className_59d23c"}},4059:function(e,t,n){"use strict";n.d(t,{tv:function(){return A}});var o,r=n(7294),i=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))u.call(t,n)&&c(e,n,t[n]);return e},d=(e,t)=>{var n={};for(var o in e)s.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&a)for(var o of a(e))t.indexOf(o)<0&&u.call(e,o)&&(n[o]=e[o]);return n};(e=>{const t=class{constructor(e,n,o,r){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(r<-1||r>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let t=0;t<this.size;t++)a.push(!1);for(let t=0;t<this.size;t++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(o);if(this.drawCodewords(s),-1==r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}i(0<=r&&r<=7),this.mask=r,this.applyMask(r),this.drawFormatBits(r),this.isFunction=[]}static encodeText(n,o){const r=e.QrSegment.makeSegments(n);return t.encodeSegments(r,o)}static encodeBinary(n,o){const r=e.QrSegment.makeBytes(n);return t.encodeSegments([r],o)}static encodeSegments(e,n,r=1,a=40,u=-1,c=!0){if(!(t.MIN_VERSION<=r&&r<=a&&a<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let l,d;for(l=r;;l++){const o=8*t.getNumDataCodewords(l,n),r=s.getTotalBits(e,l);if(r<=o){d=r;break}if(l>=a)throw new RangeError("Data too long")}for(const o of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(l,o)&&(n=o);let h=[];for(const t of e){o(t.mode.modeBits,4,h),o(t.numChars,t.mode.numCharCountBits(l),h);for(const e of t.getData())h.push(e)}i(h.length==d);const f=8*t.getNumDataCodewords(l,n);i(h.length<=f),o(0,Math.min(4,f-h.length),h),o(0,(8-h.length%8)%8,h),i(h.length%8==0);for(let t=236;h.length<f;t^=253)o(t,8,h);let p=[];for(;8*p.length<h.length;)p.push(0);return h.forEach(((e,t)=>p[t>>>3]|=e<<7-(7&t))),new t(l,n,p,u)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let o=0;o<t;o++)0==n&&0==o||0==n&&o==t-1||n==t-1&&0==o||this.drawAlignmentPattern(e[n],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let r=0;r<10;r++)n=n<<1^1335*(n>>>9);const o=21522^(t<<10|n);i(o>>>15==0);for(let i=0;i<=5;i++)this.setFunctionModule(8,i,r(o,i));this.setFunctionModule(8,7,r(o,6)),this.setFunctionModule(8,8,r(o,7)),this.setFunctionModule(7,8,r(o,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,r(o,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,r(o,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,r(o,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let n=0;n<18;n++){const e=r(t,n),o=this.size-11+n%3,i=Math.floor(n/3);this.setFunctionModule(o,i,e),this.setFunctionModule(i,o,e)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,o=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");const r=t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),u=r-s%r,c=Math.floor(s/r);let l=[];const d=t.reedSolomonComputeDivisor(a);for(let i=0,f=0;i<r;i++){let n=e.slice(f,f+c-a+(i<u?0:1));f+=n.length;const o=t.reedSolomonComputeRemainder(n,d);i<u&&n.push(0),l.push(n.concat(o))}let h=[];for(let t=0;t<l[0].length;t++)l.forEach(((e,n)=>{(t!=c-a||n>=u)&&h.push(e[t])}));return i(h.length==s),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-o:o;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=r(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let o;switch(e){case 0:o=(n+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=n%3==0;break;case 3:o=(n+t)%3==0;break;case 4:o=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:o=n*t%2+n*t%3==0;break;case 6:o=(n*t%2+n*t%3)%2==0;break;case 7:o=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&o&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let i=0;i<this.size;i++){let n=!1,o=0,r=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[i][a]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,r),n||(e+=this.finderPenaltyCountPatterns(r)*t.PENALTY_N3),n=this.modules[i][a],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,r)*t.PENALTY_N3}for(let i=0;i<this.size;i++){let n=!1,o=0,r=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][i]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,r),n||(e+=this.finderPenaltyCountPatterns(r)*t.PENALTY_N3),n=this.modules[a][i],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,r)*t.PENALTY_N3}for(let i=0;i<this.size-1;i++)for(let n=0;n<this.size-1;n++){const o=this.modules[i][n];o==this.modules[i][n+1]&&o==this.modules[i+1][n]&&o==this.modules[i+1][n+1]&&(e+=t.PENALTY_N2)}let n=0;for(const t of this.modules)n=t.reduce(((e,t)=>e+(t?1:0)),n);const o=this.size*this.size,r=Math.ceil(Math.abs(20*n-10*o)/o)-1;return i(0<=r&&r<=9),e+=r*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let o=this.size-7;n.length<e;o-=t)n.splice(1,0,o);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let o=1;for(let r=0;r<e;r++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],o),e+1<n.length&&(n[e]^=n[e+1]);o=t.reedSolomonMultiply(o,2)}return n}static reedSolomonComputeRemainder(e,n){let o=n.map((e=>0));for(const r of e){const e=r^o.shift();o.push(0),n.forEach(((n,r)=>o[r]^=t.reedSolomonMultiply(n,e)))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function o(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function r(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)o(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const r=Math.min(e.length-n,3);o(parseInt(e.substr(n,r),10),3*r+1,t),n+=r}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let r=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));r+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),o(r,11,n)}return t<e.length&&o(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)o(e,8,t);else if(e<16384)o(2,2,t),o(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");o(6,3,t),o(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const o of e){const e=o.mode.numCharCountBits(t);if(o.numChars>=1<<e)return 1/0;n+=4+e+o.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(o||(o={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(o||(o={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(o||(o={}));var h=o,f={L:h.QrCode.Ecc.LOW,M:h.QrCode.Ecc.MEDIUM,Q:h.QrCode.Ecc.QUARTILE,H:h.QrCode.Ecc.HIGH},p=128,m="L",g="#FFFFFF",v="#000000",y=!1,E=4,w=.1;function b(e,t=0){const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(i,a){if(!i&&null!==r)return n.push(`M${r+t} ${o+t}h${a-r}v1H${r+t}z`),void(r=null);if(a!==e.length-1)i&&null===r&&(r=a);else{if(!i)return;null===r?n.push(`M${a+t},${o+t} h1v1H${a+t}z`):n.push(`M${r+t},${o+t} h${a+1-r}v1H${r+t}z`)}}))})),n.join("")}function C(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function M(e,t,n,o){if(null==o)return null;const r=n?E:0,i=e.length+2*r,a=Math.floor(t*w),s=i/t,u=(o.width||a)*s,c=(o.height||a)*s,l=null==o.x?e.length/2-u/2:o.x*s,d=null==o.y?e.length/2-c/2:o.y*s;let h=null;if(o.excavate){let e=Math.floor(l),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(u+l-e),h:Math.ceil(c+d-t)}}return{x:l,y:d,h:c,w:u,excavation:h}}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();function A(e){const t=e,{value:n,size:o=p,level:i=m,bgColor:a=g,fgColor:s=v,includeMargin:u=y,imageSettings:c}=t,w=d(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let A=h.QrCode.encodeText(n,f[i]).getModules();const T=u?E:0,P=A.length+2*T,_=M(A,o,u,c);let O=null;null!=c&&null!=_&&(null!=_.excavation&&(A=C(A,_.excavation)),O=r.createElement("image",{xlinkHref:c.src,height:_.h,width:_.w,x:_.x+T,y:_.y+T,preserveAspectRatio:"none"}));const L=b(A,T);
1return r.createElement("svg",l({height:o,width:o,viewBox:`0 0 ${P} ${P}`},w),r.createElement("path",{fill:a,d:`M0,0 h${P}v${P}H0z`,shapeRendering:"crispEdges"}),r.createElement("path",{fill:s,d:L,shapeRendering:"crispEdges"}),O)}},3412:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function d(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return ft}});var p=n(7294);const m=/^[a-z0-9]+(-[a-z0-9]+)*$/,g=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!v(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!v(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!v(e,n)?null:e}return null},v=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(m)||!(t&&""===e.prefix||e.prefix.match(m))||!e.name.match(m)),y=Object.freeze({left:0,top:0,width:16,height:16}),E=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),w=Object.freeze({...y,...E}),b=Object.freeze({...w,body:"",hidden:!1});function C(e,t){const n=function(e,t){const n={};!e.hFlip!==!t.hFlip&&(n.hFlip=!0),!e.vFlip!==!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in b)o in E?o in e&&!(o in n)&&(n[o]=E[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function M(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=C(o[e]||r[e],i)}return a(t),n.forEach(a),C(e,i)}function A(e,t){const n=[];if("object"!==typeof e||"object"!==typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,M(e,r,i)),n.push(r))}return n}const T={provider:"",aliases:{},not_found:{},...y};function P(e,t){for(const n in t)if(n in e&&typeof e[n]!==typeof t[n])return!1;return!0}function _(e){if("object"!==typeof e||null===e)return null;const t=e;if("string"!==typeof t.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!P(e,T))return null;const n=t.icons;for(const r in n){const e=n[r];if(!r.match(m)||"string"!==typeof e.body||!P(e,b))return null}const o=t.aliases||Object.create(null);for(const r in o){const e=o[r],t=e.parent;if(!r.match(m)||"string"!==typeof t||!n[t]&&!o[t]||!P(e,b))return null}return t}const O=Object.create(null);function L(e,t){const n=O[e]||(O[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function k(e,t){return _(t)?A(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let R=!1;function S(e){return"boolean"===typeof e&&(R=e),R}function N(e){const t="string"===typeof e?g(e,!0,R):e;if(t){const e=L(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function D(e,t){if("object"!==typeof e)return!1;if("string"!==typeof t&&(t=e.provider||""),R&&!t&&!e.prefix){let t=!1;return _(e)&&(e.prefix="",A(e,((e,n)=>{n&&function(e,t){const n=g(e,!0,R);return!!n&&function(e,t,n){try{if("string"===typeof n.body)return e.icons[t]={...n},!0}catch(o){}return!1}(L(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!v({provider:t,prefix:n,name:"a"}))return!1;return!!k(L(t,n),e)}const x=Object.freeze({width:null,height:null}),I=Object.freeze({...x,...E}),F=/(-?[0-9.]*[0-9]+[0-9.]*)/g,U=/^-?[0-9.]*[0-9]+[0-9.]*$/g;
vendor: 4,710 bytes, line 1
1function V(e,t,n){if(1===t)return e;if(n=n||100,"number"===typeof e)return Math.ceil(e*t*n)/n;if("string"!==typeof e)return e;const o=e.split(F);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=U.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const B=/\sid="(\S+)"/g,j="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let z=0;function H(e,t=j){const n=[];let o;for(;o=B.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"===typeof t?t(n):t+(z++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const W=Object.create(null);function $(e,t){W[e]=t}function J(e){return W[e]||W[""]}function Q(e){let t;if("string"===typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const G=Object.create(null),Y=["https://api.simplesvg.com","https://api.unisvg.com"],K=[];for(;Y.length>0;)1===Y.length||Math.random()>.5?K.push(Y.shift()):K.push(Y.pop());function X(e,t){const n=Q(t);return null!==n&&(G[e]=n,!0)}function q(e){return G[e]}G[""]=Q({resources:["https://api.iconify.design"].concat(K)});let Z=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(t){}})();const ee={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=q(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,u)=>{s+=n.length+1,s>=r&&u>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!Z)return void n("abort",424);let o=function(e){if("string"===typeof e){const t=q(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;Z(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function te(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let ne=0;var oe={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function re(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let u,c="pending",l=0,d=null,h=[],f=[];function p(){d&&(clearTimeout(d),d=null)}function m(){"pending"===c&&(c="aborted"),p(),h.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),h=[]}function g(e,t){t&&(f=[]),"function"===typeof e&&f.push(e)}function v(){c="failed",f.forEach((e=>{e(void 0,u)}))}function y(){h.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),h=[]}function E(){if("pending"!==c)return;p();const o=a.shift();if(void 0===o)return h.length?void(d=setTimeout((()=>{p(),"pending"===c&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(h=h.filter((e=>e!==t)),c){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return u=o,void v();if(r)return u=o,void(h.length||(a.length?E():v()));if(p(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",f.forEach((e=>{e(o)}))}(r,t,n)}};h.push(r),l++,d=setTimeout(E,e.rotate),n(o,t,r.callback)}return"function"===typeof o&&f.push(o),setTimeout(E),function(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:h.length,subscribe:g,abort:m}}}function ie(e){const t={...oe,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=re(t,e,r,((e,t)=>
1{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function ae(){}const se=Object.create(null);function ue(e,t,n){let o,r;if("string"===typeof e){const t=J(e);if(!t)return n(void 0,424),ae;r=t.send;const i=function(e){if(!se[e]){const t=q(e);if(!t)return;const n={config:t,redundancy:ie(t)};se[e]=n}return se[e]}(e);i&&(o=i.redundancy)}else{const t=Q(e);if(t){o=ie(t);const n=J(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),ae)}const ce="iconify2",le="iconify",de=le+"-count",he=le+"-version",fe=36e5,pe=168;function me(e,t){try{return e.getItem(t)}catch(n){}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch(o){}}function ve(e,t){try{e.removeItem(t)}catch(n){}}function ye(e,t){return ge(e,de,t.toString())}function Ee(e){return parseInt(me(e,de))||0}const we={local:!0,session:!0},be={local:new Set,session:new Set};let Ce=!1;let Me="undefined"===typeof window?{}:window;function Ae(e){const t=e+"Storage";try{if(Me&&Me[t]&&"number"===typeof Me[t].length)return Me[t]}catch(n){}we[e]=!1}function Te(e,t){const n=Ae(e);if(!n)return;const o=me(n,he);if(o!==ce){if(o){const e=Ee(n);for(let t=0;t<e;t++)ve(n,le+t.toString())}return ge(n,he,ce),void ye(n,0)}const r=Math.floor(Date.now()/fe)-pe,i=e=>{const o=le+e.toString(),i=me(n,o);if("string"===typeof i){try{const n=JSON.parse(i);if("object"===typeof n&&"number"===typeof n.cached&&n.cached>r&&"string"===typeof n.provider&&"object"===typeof n.data&&"string"===typeof n.data.prefix&&t(n,e))return!0}catch(a){}ve(n,o)}};let a=Ee(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,ye(n,a)):be[e].add(s))}function Pe(){if(!Ce){Ce=!0;for(const e in we)Te(e,(e=>{const t=e.data,n=L(e.provider,t.prefix);if(!k(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function _e(e,t){function n(n){let o;if(!we[n]||!(o=Ae(n)))return;const r=be[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Ee(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/fe),provider:e.provider,data:t};return ge(o,le+i.toString(),JSON.stringify(a))}Ce||Pe(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in we)Te(o,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Oe(){}function Le(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||te([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const ke=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"===typeof e?g(e,t,n):e;r&&o.push(r)})),o}(e,!0,S()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,s=n[r]||(n[r]=Object.create(null)),u=s[i]||(s[i]=L(r,i));let c;c=a in u.icons?t.loaded:""===i||u.missing.has(a)?t.missing:t.pending;const l={provider:r,prefix:i,name:a};c.push(l)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Oe)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,s;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(L(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=L(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);
1a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=J(t))&&r.prepare(t,n,o).forEach((n=>{ue(t,n,(t=>{if("object"!==typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=k(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),_e(e,t)}catch(o){console.error(o)}Le(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=ne++,r=te.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):Oe};const Re=/[\s,]+/;function Se(e,t){t.split(Re).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Ne(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1===0?o(r):0)}}return t}let De;function xe(e){return void 0===De&&function(){try{De=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){De=null}}(),De?De.createHTML(e):e}const Ie={...I,inline:!1},Fe={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ue={display:"inline-block"},Ve={backgroundColor:"currentColor"},Be={backgroundColor:"transparent"},je={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ze={WebkitMask:Ve,mask:Ve,background:Be};for(const mt in ze){const e=ze[mt];for(const t in je)e[mt+t]=je[t]}const He={...Ie,inline:!0};function We(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const $e=(e,t,n,o)=>{const r=n?He:Ie,i=function(e,t){const n={...e};for(const o in t){const e=t[o],r=typeof e;o in x?(null===e||e&&("string"===r||"number"===r))&&(n[o]=e):r===typeof n[o]&&(n[o]="rotate"===o?e%4:e)}return n}(r,t),a=t.mode||"svg",s={},u=t.style||{},c={..."svg"===a?Fe:{},ref:o};for(let p in t){const e=t[p];if(void 0!==e)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":i[p]=!0===e||"true"===e||1===e;break;case"flip":"string"===typeof e&&Se(i,e);break;case"color":s.color=e;break;case"rotate":"string"===typeof e?i[p]=Ne(e):"number"===typeof e&&(i[p]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete c["aria-hidden"];break;default:void 0===r[p]&&(c[p]=e)}}const l=function(e,t){const n={...w,...e},o={...I,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,s=e.rotate;switch(n?o?s+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2===1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=o.width,s=o.height,u=r.width,c=r.height;let l,d;null===a?(d=null===s?"1em":"auto"===s?c:s,l=V(d,u/c)):(l="auto"===a?u:a,d=null===s?V(l,c/u):"auto"===s?c:s);const h={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(h[e]=t.toString())};return f("width",l),f("height",d),h.viewBox=r.left.toString()+" "+r.top.toString()+" "+u.toString()+" "+c.toString(),{attributes:h,body:i}}(e,i),d=l.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...u},Object.assign(c,d);let e=0,n=t.id;return"string"===typeof n&&(n=n.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:xe(H(l.body,n?()=>n+"ID"+e++:"iconifyReact"))},p.createElement("svg",c)}const{body:h,width:f,height:m}=e,g="mask"===a||"bg"!==a&&-1!==h.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(h,{...d,width:f+"",height:m+""});var y;return c.style={...s,"--svg":(y=v,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(y)+'")'),width:We(d.width),height:We(d.height),...Ue,...g?Ve:Be,...u},p.createElement("span",c)};if(S(!0),$("",ee),"undefined"!==typeof document&&"undefined"!==typeof window){Pe();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"===typeof t&&null!==t&&(t instanceof Array?t:[t]).forEac
1h((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!D(e))&&console.error(n)}catch(t){console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"===typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!==typeof o||!o||void 0===o.resources)continue;X(e,o)||console.error(n)}catch(pt){console.error(n)}}}}class Je extends p.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"===typeof n&&null!==n&&"string"===typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!==typeof n||null===(o=g(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=N(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else this._loading&&this._loading.name===n||(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:ke([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:p.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"===typeof e.className?e.className+" ":"")+t.classes.join(" ")}),$e({...w,...t.data},n,e._inline,e._ref)}}const Qe=p.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return p.createElement(Je,n)}));p.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return p.createElement(Je,n)}));function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ge.apply(null,arguments)}var Ye=function(e){switch(e){case"stacked":default:return"rhap_stacked";case"stacked-reverse":return"rhap_stacked-reverse";case"horizontal":return"rhap_horizontal";case"horizontal-reverse":return"rhap_horizontal-reverse"}},Ke=function(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX},Xe=function(e){return e>9?e.toString():"0".concat(e)},qe=function(e,t,n){if(!isFinite(e))return null;var o=Math.floor(e/60),r=Xe(o),i=Xe(Math.floor(e%60)),a=Xe(Math.floor(o%60)),s=Math.floor(o/60),u="".concat(r,":").concat(i),c="".concat(s,":").concat(a,":").concat(i);return"auto"===n?t>=3600?c:u:"mm:ss"===n?u:"hh:mm:ss"===n?c:void 0};function Ze(e,t){var n=!1;return function(o){n||(e(o),n=!0,setTimeout((function(){return n=!1}),t))}}function et(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(pt){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var tt=function(e){l(n,e);var t=et(n);function n(){var e;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return f(u(e=t.call.apply(t,[this].concat(i))),"audio",void 0),f(u(e),"timeOnMouseMove",0),f(u(e),"hasAddedAudioEventListener",!1),f(u(e),"downloadProgressAnimationTimer",void 0),f(u(e),"state",{isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[],waitingForSeekCallback:!1}),f(u(e),"getCurrentProgress",(function(t){var n=e.props,o=n.audio,r=n.progressBar;if(0!==o.src.indexOf("blob:")&&"undefined"===typeof e.props.srcDuration&&(!o.src||!isFinite(o.currentTime)||!r.current))return{currentTime:0,currentTimePos:"0%"};var i=r.current.getBoundingClientRect(),a=i.width,s=Ke(t)-i.left;return s<0?s=0:s>a&&(s=a),{currentTime:e.getDuration()*s/a,currentTimePos:"".concat((s/a*100).toFixed(2),"%")}})),f(u(e),"handleContextMenu",(function(e){e.preventDefault()})),f(u(e),"handleMouseDownOrTouchStartProgressBar",(function(t){t.stopPropagation();var n=e.getCurrentProgress(t.nativeEvent),o=n.currentTime,r=n.currentTimePos;
1isFinite(o)&&(e.timeOnMouseMove=o,e.setState({isDraggingProgress:!0,currentTimePos:r}),t.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.addEventListener("touchend",e.handleWindowMouseOrTouchUp)))})),f(u(e),"handleWindowMouseOrTouchMove",(function(t){t instanceof MouseEvent&&t.preventDefault(),t.stopPropagation();var n=window.getSelection();if(n&&"Range"===n.type&&n.empty(),e.state.isDraggingProgress){var o=e.getCurrentProgress(t),r=o.currentTime,i=o.currentTimePos;e.timeOnMouseMove=r,e.setState({currentTimePos:i})}})),f(u(e),"handleWindowMouseOrTouchUp",(function(t){t.stopPropagation();var n=e.timeOnMouseMove,o=e.props,r=o.audio,i=o.onChangeCurrentTimeError,a=o.onSeek;if(a)e.setState({isDraggingProgress:!1,waitingForSeekCallback:!0},(function(){a(r,n).then((function(){return e.setState({waitingForSeekCallback:!1})}),(function(e){throw new Error(e)}))}));else{var s={isDraggingProgress:!1};if(r.readyState===r.HAVE_NOTHING||r.readyState===r.HAVE_METADATA||!isFinite(n))try{r.load()}catch(u){return s.currentTimePos="0%",i&&i(u)}r.currentTime=n,e.setState(s)}t instanceof MouseEvent?(window.removeEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",e.handleWindowMouseOrTouchUp))})),f(u(e),"handleAudioTimeUpdate",Ze((function(t){var n=e.state.isDraggingProgress,o=t.target;if(!n&&!0!==e.state.waitingForSeekCallback){var r=o.currentTime,i=e.getDuration();e.setState({currentTimePos:"".concat((r/i*100||0).toFixed(2),"%")})}}),e.props.progressUpdateInterval)),f(u(e),"handleAudioDownloadProgressUpdate",(function(t){for(var n=t.target,o=e.getDuration(),r=[],i=0;i<n.buffered.length;i++){var a=n.buffered.start(i),s=n.buffered.end(i);r.push({left:"".concat(Math.round(100/o*a)||0,"%"),width:"".concat(Math.round(100/o*(s-a))||0,"%")})}clearTimeout(e.downloadProgressAnimationTimer),e.setState({downloadProgressArr:r,hasDownloadProgressAnimation:!0}),e.downloadProgressAnimationTimer=setTimeout((function(){e.setState({hasDownloadProgressAnimation:!1})}),200)})),e}return s(n,[{key:"getDuration",value:function(){var e=this.props,t=e.audio,n=e.srcDuration;return"undefined"===typeof n?t.duration:n}},{key:"initialize",value:function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioTimeUpdate),e.addEventListener("progress",this.handleAudioDownloadProgressUpdate))}},{key:"componentDidMount",value:function(){this.initialize()}},{key:"componentDidUpdate",value:function(){this.initialize()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioTimeUpdate),this.audio.removeEventListener("progress",this.handleAudioDownloadProgressUpdate)),clearTimeout(this.downloadProgressAnimationTimer)}},{key:"render",value:function(){var e=this.props,t=e.showDownloadProgress,n=e.showFilledProgress,o=e.progressBar,r=e.i18nProgressBar,i=this.state,a=i.currentTimePos,s=i.downloadProgressArr,u=i.hasDownloadProgressAnimation;return p.createElement("div",{className:"rhap_progress-container",ref:o,"aria-label":r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(a.split("%")[0]),tabIndex:0,onMouseDown:this.handleMouseDownOrTouchStartProgressBar,onTouchStart:this.handleMouseDownOrTouchStartProgressBar,onContextMenu:this.handleContextMenu},p.createElement("div",{className:"rhap_progress-bar ".concat(t?"rhap_progress-bar-show-download":"")},p.createElement("div",{className:"rhap_progress-indicator",style:{left:a}}),n&&p.createElement("div",{className:"rhap_progress-filled",style:{width:a}}),t&&s.map((function(e,t){var n=e.left,o=e.width;return p.createElement("div",{key:t,className:"rhap_download-progress",style:{left:n,width:o,transitionDuration:u?".2s":"0s"}})}))))}}]),n}(p.Component),nt=(0,p.forwardRef)((function(e,t){return p.createElement(tt,Ge({},e,{progressBar:t}))}));function ot(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(pt){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var rt=function(e){l(n,e);var t=ot(n);function n(e){var r;o(this,n),f(u(r=t.call(this,e)),"audio",void 0),f(u(r),"hasAddedAudioEventListener",!1),f(u(r),"state",{currentTime:r.props.defaultCurrentTime}),f(u(r),"handleAudioCurrentTimeChange",(function(e){var t=e.target,n=r.props,o=n.isLeftTime,i=n.timeFormat,a=n.defaultCurrentTime;r.setState({currentTime:qe(o?t.duration-t.currentTime:t.currentTime,t.duration,i)||a})})),f(u(r),"addAudioEventListeners",(function(){var e=r.props.audio;e&&!r.hasAddedAudioEventListener&&(r.audio=e,r.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",r.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",r.handleAudioCurrentTimeChange))}));var i=e.audio,a=e.defaultCurrentTime,s=e.isLeftTime,c=e.timeFormat,l=a;return i&&(l=qe(s?i.duration-i.currentTime:i.currentTime,i.duration,c)),r.state={currentTime:l},r}
1return s(n,[{key:"componentDidMount",value:function(){this.addAudioEventListeners()}},{key:"componentDidUpdate",value:function(){this.addAudioEventListeners()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioCurrentTimeChange),this.audio.removeEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))}},{key:"render",value:function(){return this.state.currentTime}}]),n}(p.PureComponent);function it(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(pt){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var at=function(e){l(n,e);var t=it(n);function n(e){var r;o(this,n),f(u(r=t.call(this,e)),"audio",void 0),f(u(r),"hasAddedAudioEventListener",!1),f(u(r),"state",{duration:r.props.audio?qe(r.props.audio.duration,r.props.audio.duration,r.props.timeFormat):r.props.defaultDuration}),f(u(r),"handleAudioDurationChange",(function(e){var t=e.target,n=r.props,o=n.timeFormat,i=n.defaultDuration;r.setState({duration:qe(t.duration,t.duration,o)||i})})),f(u(r),"addAudioEventListeners",(function(){var e=r.props.audio;e&&!r.hasAddedAudioEventListener&&(r.audio=e,r.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",r.handleAudioDurationChange),e.addEventListener("abort",r.handleAudioDurationChange))}));var i=e.audio,a=e.timeFormat,s=e.defaultDuration;return r.state={duration:i?qe(i.duration,i.duration,a):s},r}return s(n,[{key:"componentDidMount",value:function(){this.addAudioEventListeners()}},{key:"componentDidUpdate",value:function(){this.addAudioEventListeners()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("durationchange",this.handleAudioDurationChange),this.audio.removeEventListener("abort",this.handleAudioDurationChange))}},{key:"render",value:function(){return this.state.duration}}]),n}(p.PureComponent);function st(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(pt){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}var ut,ct=function(e){l(n,e);var t=st(n);function n(){var e;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return f(u(e=t.call.apply(t,[this].concat(i))),"audio",void 0),f(u(e),"hasAddedAudioEventListener",!1),f(u(e),"volumeBar",(0,p.createRef)()),f(u(e),"volumeAnimationTimer",0),f(u(e),"lastVolume",e.props.volume),f(u(e),"state",{currentVolumePos:"".concat((e.lastVolume/1*100||0).toFixed(2),"%"),hasVolumeAnimation:!1,isDraggingVolume:!1}),f(u(e),"getCurrentVolume",(function(t){var n=e.props.audio;if(!e.volumeBar.current)return{currentVolume:n.volume,currentVolumePos:e.state.currentVolumePos};var o,r,i=e.volumeBar.current.getBoundingClientRect(),a=i.width,s=Ke(t)-i.left;return s<0?(o=0,r="0%"):s>i.width?(o=1,r="100%"):(o=s/a,r="".concat(s/a*100,"%")),{currentVolume:o,currentVolumePos:r}})),f(u(e),"handleContextMenu",(function(e){e.preventDefault()})),f(u(e),"handleClickVolumeButton",(function(){var t=e.props.audio;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume})),f(u(e),"handleVolumnControlMouseOrTouchDown",(function(t){t.stopPropagation();var n=e.props.audio,o=e.getCurrentVolume(t.nativeEvent),r=o.currentVolume,i=o.currentVolumePos;n.volume=r,e.setState({isDraggingVolume:!0,currentVolumePos:i}),t.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.addEventListener("touchend",e.handleWindowMouseOrTouchUp))})),f(u(e),"handleWindowMouseOrTouchMove",(function(t){t instanceof MouseEvent&&t.preventDefault(),t.stopPropagation();var n=e.props.audio,o=window.getSelection();if(o&&"Range"===o.type&&o.empty(),e.state.isDraggingVolume){var r=e.getCurrentVolume(t),i=r.currentVolume,a=r.currentVolumePos;n.volume=i,e.setState({currentVolumePos:a})}})),f(u(e),"handleWindowMouseOrTouchUp",(function(t){t.stopPropagation(),e.setState({isDraggingVolume:!1}),t instanceof MouseEvent?(window.removeEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",e.handleWindowMouseOrTouchUp))})),f(u(e),"handleAudioVolumeChange",(function(t){var n=e.state.isDraggingVolume,o=t.target.volume;(e.lastVolume>0&&0===o||0===e.lastVolume&&o>0)&&e.props.onMuteChange(),e.lastVolume=o,n||(e.setState({hasVolumeAnimation:!0,currentVolumePos:"".concat((o/1*100||0).toFixed(2),"%")}),clearTimeout(e.volumeAnimationTimer),e.volumeAnimationTimer=setTimeout((function(){e.setState({hasVolumeAnimation:!1})}),100))})),e}
1return s(n,[{key:"componentDidUpdate",value:function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("volumechange",this.handleAudioVolumeChange))}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("volumechange",this.handleAudioVolumeChange),clearTimeout(this.volumeAnimationTimer)}},{key:"render",value:function(){var e=this.props,t=e.audio,n=e.showFilledVolume,o=e.i18nVolumeControl,r=this.state,i=r.currentVolumePos,a=r.hasVolumeAnimation,s=(t||{}).volume;return p.createElement("div",{ref:this.volumeBar,onMouseDown:this.handleVolumnControlMouseOrTouchDown,onTouchStart:this.handleVolumnControlMouseOrTouchDown,onContextMenu:this.handleContextMenu,role:"progressbar","aria-label":o,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*s).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},p.createElement("div",{className:"rhap_volume-bar"},p.createElement("div",{className:"rhap_volume-indicator",style:{left:i,transitionDuration:a?".1s":"0s"}}),n&&p.createElement("div",{className:"rhap_volume-filled",style:{width:i}})))}}]),n}(p.Component),lt=ct;function dt(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(pt){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}!function(e){e.CURRENT_TIME="CURRENT_TIME",e.CURRENT_LEFT_TIME="CURRENT_LEFT_TIME",e.PROGRESS_BAR="PROGRESS_BAR",e.DURATION="DURATION",e.ADDITIONAL_CONTROLS="ADDITIONAL_CONTROLS",e.MAIN_CONTROLS="MAIN_CONTROLS",e.VOLUME_CONTROLS="VOLUME_CONTROLS",e.LOOP="LOOP",e.VOLUME="VOLUME"}(ut||(ut={}));var ht=function(e){l(n,e);var t=dt(n);function n(){var e;o(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return f(u(e=t.call.apply(t,[this].concat(i))),"audio",(0,p.createRef)()),f(u(e),"progressBar",(0,p.createRef)()),f(u(e),"container",(0,p.createRef)()),f(u(e),"lastVolume",e.props.volume),f(u(e),"listenTracker",void 0),f(u(e),"volumeAnimationTimer",void 0),f(u(e),"downloadProgressAnimationTimer",void 0),f(u(e),"togglePlay",(function(t){t.stopPropagation();var n=e.audio.current;(n.paused||n.ended)&&n.src?e.playAudioPromise():n.paused||n.pause()})),f(u(e),"playAudioPromise",(function(){e.audio.current.error&&e.audio.current.load();var t=e.audio.current.play();t?t.then(null).catch((function(t){var n=e.props.onPlayError;n&&n(new Error(t))})):e.forceUpdate()})),f(u(e),"isPlaying",(function(){var t=e.audio.current;return!!t&&(!t.paused&&!t.ended)})),f(u(e),"handlePlay",(function(t){e.forceUpdate(),e.props.onPlay&&e.props.onPlay(t)})),f(u(e),"handlePause",(function(t){e.audio&&(e.forceUpdate(),e.props.onPause&&e.props.onPause(t))})),f(u(e),"handleEnded",(function(t){e.audio&&(e.forceUpdate(),e.props.onEnded&&e.props.onEnded(t))})),f(u(e),"handleAbort",(function(t){e.props.onAbort&&e.props.onAbort(t)})),f(u(e),"handleClickVolumeButton",(function(){var t=e.audio.current;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume})),f(u(e),"handleMuteChange",(function(){e.forceUpdate()})),f(u(e),"handleClickLoopButton",(function(){e.audio.current.loop=!e.audio.current.loop,e.forceUpdate()})),f(u(e),"handleClickRewind",(function(){var t=e.props,n=t.progressJumpSteps,o=t.progressJumpStep,r=n.backward||o;e.setJumpTime(-r)})),f(u(e),"handleClickForward",(function(){var t=e.props,n=t.progressJumpSteps,o=t.progressJumpStep,r=n.forward||o;e.setJumpTime(r)})),f(u(e),"setJumpTime",(function(t){var n=e.audio.current,o=n.duration,r=n.currentTime;if(n.readyState===n.HAVE_NOTHING||n.readyState===n.HAVE_METADATA||!isFinite(o)||!isFinite(r))try{n.load()}catch(a){return e.props.onChangeCurrentTimeError&&e.props.onChangeCurrentTimeError(a)}var i=r+t/1e3;i<0?(n.currentTime=0,i=0):i>o?(n.currentTime=o,i=o):n.currentTime=i})),f(u(e),"setJumpVolume",(function(t){var n=e.audio.current.volume+t;n<0?n=0:n>1&&(n=1),e.audio.current.volume=n})),f(u(e),"handleKeyDown",(function(t){if(e.props.hasDefaultKeyBindings)switch(t.key){case" ":t.target!==e.container.current&&t.target!==e.progressBar.current||(t.preventDefault(),e.togglePlay(t));break;case"ArrowLeft":e.handleClickRewind();break;
1case"ArrowRight":e.handleClickForward();break;case"ArrowUp":t.preventDefault(),e.setJumpVolume(e.props.volumeJumpStep);break;case"ArrowDown":t.preventDefault(),e.setJumpVolume(-e.props.volumeJumpStep);break;case"l":e.handleClickLoopButton();break;case"m":e.handleClickVolumeButton()}})),f(u(e),"renderUIModules",(function(t){return t.map((function(t,n){return e.renderUIModule(t,n)}))})),f(u(e),"renderUIModule",(function(t,n){var o=e.props,r=o.defaultCurrentTime,i=o.progressUpdateInterval,a=o.showDownloadProgress,s=o.showFilledProgress,u=o.showFilledVolume,c=o.defaultDuration,l=o.customIcons,d=o.showSkipControls,h=o.onClickPrevious,f=o.onClickNext,m=o.onChangeCurrentTimeError,g=o.showJumpControls,v=o.customAdditionalControls,y=o.customVolumeControls,E=o.muted,w=o.timeFormat,b=o.volume,C=o.loop,M=o.mse,A=o.i18nAriaLabels;switch(t){case ut.CURRENT_TIME:return p.createElement("div",{key:n,id:"rhap_current-time",className:"rhap_time rhap_current-time"},p.createElement(rt,{audio:e.audio.current,isLeftTime:!1,defaultCurrentTime:r,timeFormat:w}));case ut.CURRENT_LEFT_TIME:return p.createElement("div",{key:n,id:"rhap_current-left-time",className:"rhap_time rhap_current-left-time"},p.createElement(rt,{audio:e.audio.current,isLeftTime:!0,defaultCurrentTime:r,timeFormat:w}));case ut.PROGRESS_BAR:return p.createElement(nt,{key:n,ref:e.progressBar,audio:e.audio.current,progressUpdateInterval:i,showDownloadProgress:a,showFilledProgress:s,onSeek:M&&M.onSeek,onChangeCurrentTimeError:m,srcDuration:M&&M.srcDuration,i18nProgressBar:A.progressControl});case ut.DURATION:return p.createElement("div",{key:n,className:"rhap_time rhap_total-time"},M&&M.srcDuration?qe(M.srcDuration,M.srcDuration,e.props.timeFormat):p.createElement(at,{audio:e.audio.current,defaultDuration:c,timeFormat:w}));case ut.ADDITIONAL_CONTROLS:return p.createElement("div",{key:n,className:"rhap_additional-controls"},e.renderUIModules(v));case ut.MAIN_CONTROLS:var T,P=e.isPlaying();return T=P?l.pause?l.pause:p.createElement(Qe,{icon:"mdi:pause-circle"}):l.play?l.play:p.createElement(Qe,{icon:"mdi:play-circle"}),p.createElement("div",{key:n,className:"rhap_main-controls"},d&&p.createElement("button",{"aria-label":A.previous,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:h},l.previous?l.previous:p.createElement(Qe,{icon:"mdi:skip-previous"})),g&&p.createElement("button",{"aria-label":A.rewind,className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",type:"button",onClick:e.handleClickRewind},l.rewind?l.rewind:p.createElement(Qe,{icon:"mdi:rewind"})),p.createElement("button",{"aria-label":P?A.pause:A.play,className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",type:"button",onClick:e.togglePlay},T),g&&p.createElement("button",{"aria-label":A.forward,className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",type:"button",onClick:e.handleClickForward},l.forward?l.forward:p.createElement(Qe,{icon:"mdi:fast-forward"})),d&&p.createElement("button",{"aria-label":A.next,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:f},l.next?l.next:p.createElement(Qe,{icon:"mdi:skip-next"})));case ut.VOLUME_CONTROLS:return p.createElement("div",{key:n,className:"rhap_volume-controls"},e.renderUIModules(y));case ut.LOOP:var _,O=e.audio.current?e.audio.current.loop:C;return _=O?l.loop?l.loop:p.createElement(Qe,{icon:"mdi:repeat"}):l.loopOff?l.loopOff:p.createElement(Qe,{icon:"mdi:repeat-off"}),p.createElement("button",{key:n,"aria-label":O?A.loop:A.loopOff,className:"rhap_button-clear rhap_repeat-button",type:"button",onClick:e.handleClickLoopButton},_);case ut.VOLUME:var L,k=(e.audio.current||{}).volume,R=void 0===k?E?0:b:k;return L=R?l.volume?l.volume:p.createElement(Qe,{icon:"mdi:volume-high"}):l.volume?l.volumeMute:p.createElement(Qe,{icon:"mdi:volume-mute"}),p.createElement("div",{key:n,className:"rhap_volume-container"},p.createElement("button",{"aria-label":R?A.volume:A.volumeMute,onClick:e.handleClickVolumeButton,type:"button",className:"rhap_button-clear rhap_volume-button"},L),p.createElement(lt,{audio:e.audio.current,volume:R,onMuteChange:e.handleMuteChange,showFilledVolume:u,i18nVolumeControl:A.volumeControl}));default:return(0,p.isValidElement)(t)?t.key?t:(0,p.cloneElement)(t,{key:n}):null}})),e}
1return s(n,[{key:"componentDidMount",value:function(){var e=this;this.forceUpdate();var t=this.audio.current;this.props.muted?t.volume=0:t.volume=this.lastVolume,t.addEventListener("error",(function(t){var n=t.target;if(n.error&&n.currentTime===n.duration)return e.props.onEnded&&e.props.onEnded(t);e.props.onError&&e.props.onError(t)})),t.addEventListener("canplay",(function(t){e.props.onCanPlay&&e.props.onCanPlay(t)})),t.addEventListener("canplaythrough",(function(t){e.props.onCanPlayThrough&&e.props.onCanPlayThrough(t)})),t.addEventListener("play",this.handlePlay),t.addEventListener("abort",this.handleAbort),t.addEventListener("ended",this.handleEnded),t.addEventListener("playing",(function(t){e.props.onPlaying&&e.props.onPlaying(t)})),t.addEventListener("seeking",(function(t){e.props.onSeeking&&e.props.onSeeking(t)})),t.addEventListener("seeked",(function(t){e.props.onSeeked&&e.props.onSeeked(t)})),t.addEventListener("waiting",(function(t){e.props.onWaiting&&e.props.onWaiting(t)})),t.addEventListener("emptied",(function(t){e.props.onEmptied&&e.props.onEmptied(t)})),t.addEventListener("stalled",(function(t){e.props.onStalled&&e.props.onStalled(t)})),t.addEventListener("suspend",(function(t){e.props.onSuspend&&e.props.onSuspend(t)})),t.addEventListener("loadstart",(function(t){e.props.onLoadStart&&e.props.onLoadStart(t)})),t.addEventListener("loadedmetadata",(function(t){e.props.onLoadedMetaData&&e.props.onLoadedMetaData(t)})),t.addEventListener("loadeddata",(function(t){e.props.onLoadedData&&e.props.onLoadedData(t)})),t.addEventListener("pause",this.handlePause),t.addEventListener("timeupdate",Ze((function(t){e.props.onListen&&e.props.onListen(t)}),this.props.listenInterval)),t.addEventListener("volumechange",(function(t){e.props.onVolumeChange&&e.props.onVolumeChange(t)})),t.addEventListener("encrypted",(function(t){var n=e.props.mse;n&&n.onEcrypted&&n.onEcrypted(t)}))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.src,o=t.autoPlayAfterSrcChange;e.src!==n&&(o?this.playAudioPromise():this.forceUpdate())}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.src,o=e.loop,r=e.preload,i=e.autoPlay,a=e.crossOrigin,s=e.mediaGroup,u=e.header,c=e.footer,l=e.layout,d=e.customProgressBarSection,h=e.customControlsSection,f=e.children,m=e.style,g=e.i18nAriaLabels,v=this.audio.current?this.audio.current.loop:o,y=v?"rhap_loop--on":"rhap_loop--off",E=this.isPlaying()?"rhap_play-status--playing":"rhap_play-status--paused";return p.createElement("div",{role:"group",tabIndex:0,"aria-label":g.player,className:"rhap_container ".concat(y," ").concat(E," ").concat(t),onKeyDown:this.handleKeyDown,ref:this.container,style:m},p.createElement("audio",{src:n,controls:!1,loop:v,autoPlay:i,preload:r,crossOrigin:a,mediaGroup:s,ref:this.audio},f),u&&p.createElement("div",{className:"rhap_header"},u),p.createElement("div",{className:"rhap_main ".concat(Ye(l))},p.createElement("div",{className:"rhap_progress-section"},this.renderUIModules(d)),p.createElement("div",{className:"rhap_controls-section"},this.renderUIModules(h))),c&&p.createElement("div",{className:"rhap_footer"},c))}}]),n}(p.Component);f(ht,"defaultProps",{autoPlay:!1,autoPlayAfterSrcChange:!0,listenInterval:1e3,progressJumpStep:5e3,progressJumpSteps:{},volumeJumpStep:.1,loop:!1,muted:!1,preload:"auto",progressUpdateInterval:20,defaultCurrentTime:"--:--",defaultDuration:"--:--",timeFormat:"auto",volume:1,className:"",showJumpControls:!0,showSkipControls:!1,showDownloadProgress:!0,showFilledProgress:!0,showFilledVolume:!1,customIcons:{},customProgressBarSection:[ut.CURRENT_TIME,ut.PROGRESS_BAR,ut.DURATION],customControlsSection:[ut.ADDITIONAL_CONTROLS,ut.MAIN_CONTROLS,ut.VOLUME_CONTROLS],customAdditionalControls:[ut.LOOP],customVolumeControls:[ut.VOLUME],layout:"stacked",hasDefaultKeyBindings:!0,i18nAriaLabels:{player:"Audio player",progressControl:"Audio progress control",volumeControl:"Volume control",play:"Play",pause:"Pause",rewind:"Rewind",forward:"Forward",previous:"Previous",next:"Skip",loop:"Disable loop",loopOff:"Enable loop",volume:"Mute",volumeMute:"Unmute"}});var ft=ht}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.