(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3034],{66191:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(60461),o=n.n(r)},60461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return u}});let r=n(92376),o=n(40653),i=n(42909),a=r._(n(94344));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},80994:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return eB}});var o,i,a,u=n(85942),s=n(18401),l=n(16126),c=n(9951),d=n(6237),p=n(62297),f=n(23883),h=n(43478);let m=/^[a-z0-9]+(-[a-z0-9]+)*$/,v=(e,t,n,r="")=>{let o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!g(i)?null:i}let i=o[0],a=i.split("-");if(a.length>1){let e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!g(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:i};return t&&!g(e,n)?null:e}return null},g=(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}),b=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),w=Object.freeze({...y,...b}),E=Object.freeze({...w,body:"",hidden:!1});function T(e,t){let n=function(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(let r in E)r in b?r in e&&!(r in n)&&(n[r]=b[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Z(e,t){let 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)});let r=function(e,t){let n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return Object.keys(n).concat(Object.keys(r)).forEach(function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;let n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]}),o}(e);for(let o in r){let i=r[o];i&&(t(o,function(e,t,n){let r=e.icons,o=e.aliases||Object.create(null),i={};function a(e){i=T(r[e]||o[e],i)}return a(t),n.forEach(a),T(e,i)}(e,o,i)),n.push(o))}return n}let C={provider:"",aliases:{},not_found:{},...y};function L(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function O(e){if("object"!=typeof e||null===e||"string"!=typeof e.prefix||!e.icons||"object"!=typeof e.icons||!L(e,C))return null;let t=e.icons;for(let e in t){let n=t[e];if(!e.match(m)||"string"!=typeof n.body||!L(n,E))return null}let n=e.aliases||Object.create(null);for(let e in n){let r=n[e],o=r.parent;if(!e.match(m)||"string"!=typeof o||!t[o]&&!n[o]||!L(r,E))return null}return e}let k=Object.create(null);function A(e,t){let n=k[e]||(k[e]=Object.create(null));return n[t]||(n[t]={provider:e,prefix:t,icons:Object.create(null),missing:new Set})}function _(e,t){return O(t)?Z(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}let P=!1;function M(e){return"boolean"==typeof e&&(P=e),P}let S=Object.freeze({width:null,height:null}),D=Object.freeze({...S,...b}),x=/(-?[0-9.]*[0-9]+[0-9.]*)/g,R=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N(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;let r=e.split(x);if(null===r||!r.length)return e;let o=[],i=r.shift(),a=R.test(i);for(;;){if(a){let e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(void 0===(i=r.shift()))return o.join("");a=!a}}let V=e=>"unset"===e||"undefined"===e||"none"===e,I=/\sid="(\S+)"/g,U="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),F=0,j=Object.create(null);function B(e){return j[e]||j[""]}function W(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(!((t=e.resources)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}}let z=Object.create(null),J=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;J.length>0;)1===J.length?H.push(J.shift()):Math.random()>.5?H.push(J.shift()):H.push(J.pop());z[""]=W({resources:["https://api.iconify.design"].concat(H)});let G=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(e){}})();function $(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let K=0;var q={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Q(e){let t={...q,...e},n=[];function r(){n=n.filter(e=>"pending"===e().status)}return{query:function(e,o,i){let a=function(e,t,n,r){let o,i;let a=e.resources.length,u=e.random?Math.floor(Math.random()*a):e.index;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(u).concat(e.resources.slice(0,u));let s=Date.now(),l="pending",c=0,d=null,p=[],f=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===l&&(l="aborted"),h(),p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function v(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function g(){l="failed",f.forEach(e=>{e(void 0,i)})}function y(){p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}return"function"==typeof r&&f.push(r),setTimeout(function r(){if("pending"!==l)return;h();let a=o.shift();if(void 0===a){if(p.length){d=setTimeout(()=>{h(),"pending"===l&&(y(),g())},e.timeout);return}g();return}let u={status:"pending",resource:a,callback:(t,n)=>{!function(t,n,a){let u="success"!==n;switch(p=p.filter(e=>e!==t),l){case"pending":break;case"failed":if(u||!e.dataAfterTimeout)return;break;default:return}if("abort"===n){i=a,g();return}if(u){i=a,p.length||(o.length?r():g());return}if(h(),y(),!e.random){let n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",f.forEach(e=>{e(a)})}(u,t,n)}};p.push(u),c++,d=setTimeout(r,e.rotate),n(a,t,u.callback)}),function(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:v,abort:m}}}(t,e,o,(e,t)=>{r(),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:r}}let X=Object.create(null),Y="iconify2",ee="iconify",et=ee+"-count",en=ee+"-version";function er(e,t){try{return e.getItem(t)}catch(e){}}function eo(e,t,n){try{return e.setItem(t,n),!0}catch(e){}}function ei(e,t){try{e.removeItem(t)}catch(e){}}function ea(e,t){return eo(e,et,t.toString())}function eu(e){return parseInt(er(e,et))||0}let es={local:!0,session:!0},el={local:new Set,session:new Set},ec=!1,ed="undefined"==typeof window?{}:window;function ep(e){let t=e+"Storage";try{if(ed&&ed[t]&&"number"==typeof ed[t].length)return ed[t]}catch(e){}es[e]=!1}function ef(e,t){let n=ep(e);if(!n)return;let r=er(n,en);if(r!==Y){if(r){let e=eu(n);for(let t=0;t<e;t++)ei(n,ee+t.toString())}eo(n,en,Y),ea(n,0);return}let o=Math.floor(Date.now()/36e5)-168,i=e=>{let r=ee+e.toString(),i=er(n,r);if("string"==typeof i){try{let n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch(e){}ei(n,r)}},a=eu(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?ea(n,--a):el[e].add(t))}function eh(){if(!ec)for(let e in ec=!0,es)ef(e,e=>{let t=e.data,n=A(e.provider,t.prefix);if(!_(n,t).length)return!1;let r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0})}function em(){}let ev=(e,t)=>{let n,r;let o=function(e){let 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 r={provider:"",prefix:"",name:""};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let o=e.provider,i=e.prefix,a=e.name,u=n[o]||(n[o]=Object.create(null)),s=u[i]||(u[i]=A(o,i));(a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending).push({provider:o,prefix:i,name:a})}),t}(function(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let o="string"==typeof e?v(e,t,n):e;o&&r.push(o)}),r}(e,!0,M()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,em)}),()=>{e=!1}}let i=Object.create(null),a=[];return o.pending.forEach(e=>{let{provider:t,prefix:o}=e;if(o===r&&t===n)return;n=t,r=o,a.push(A(t,o));let u=i[t]||(i[t]=Object.create(null));u[o]||(u[o]=[])}),o.pending.forEach(e=>{let{provider:t,prefix:n,name:r}=e,o=A(t,n),a=o.pendingIcons||(o.pendingIcons=new Set);a.has(r)||(a.add(r),i[t][n].push(r))}),a.forEach(e=>{let{provider:t,prefix:n}=e;if(i[t][n].length){var r;r=i[t][n],e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(r).sort():e.iconsToLoad=r,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{let t;e.iconsQueueFlag=!1;let{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad,o&&(t=B(n))&&t.prepare(n,r,o).forEach(t=>{!function(e,t,n){let r,o;if("string"==typeof e){let t=B(e);if(!t)return n(void 0,424);o=t.send;let i=function(e){if(!X[e]){let t=z[e];if(!t)return;let n=Q(t);X[e]={config:t,redundancy:n}}return X[e]}(e);i&&(r=i.redundancy)}else{let t=W(e);if(t){r=Q(t);let n=B(e.resources?e.resources[0]:"");n&&(o=n.send)}}r&&o?r.query(t,o,n)().abort:n(void 0,424)}(n,t,n=>{if("object"!=typeof n)t.icons.forEach(t=>{e.missing.add(t)});else try{let t=_(e,n);if(!t.length)return;let r=e.pendingIcons;r&&t.forEach(e=>{r.delete(e)}),function(e,t){function n(n){let r,o;if(!es[n]||!(r=ep(n)))return;let i=el[n];if(i.size)i.delete(o=Array.from(i).shift());else if(o=eu(r),!ea(r,o+1))return;let a={cached:Math.floor(Date.now()/36e5),provider:e.provider,data:t};return eo(r,ee+o.toString(),JSON.stringify(a))}ec||eh(),(!t.lastModified||function(e,t){let n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(let n in es)ef(n,n=>{let r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}(e,t.lastModified))&&Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}(e,n)}catch(e){console.error(e)}e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,o=e.prefix;t.forEach(t=>{let i=t.icons,a=i.pending.length;i.pending=i.pending.filter(t=>{if(t.prefix!==o)return!0;let a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1}),i.pending.length!==a&&(n||$([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))})}))}))})})}))}}),t?function(e,t,n){let r=K++,o=$.bind(null,n,r);if(!t.pending.length)return o;let i={id:r,icons:t,callback:e,abort:o};return n.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)}),o}(t,o,a):em},eg=/[\s,]+/,ey={...D,inline:!1},eb={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ew={display:"inline-block"},eE={backgroundColor:"currentColor"},eT={backgroundColor:"transparent"},eZ={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},eC={WebkitMask:eE,mask:eE,background:eT};for(let e in eC){let t=eC[e];for(let n in eZ)t[e+n]=eZ[n]}let eL={...ey,inline:!0};function eO(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let ek=(e,t,n,o)=>{let i=n?eL:ey,a=function(e,t){let n={...e};for(let e in t){let r=t[e],o=typeof r;e in S?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,t),u=t.mode||"svg",s={},l=t.style||{},c={..."svg"===u?eb:{},ref:o};for(let e in t){let n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&function(e,t){t.split(eg).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}(a,n);break;case"color":s.color=n;break;case"rotate":"string"==typeof n?a[e]=function(e,t=0){let n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t)%1==0?r(o):0}}return t}(n):"number"==typeof n&&(a[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=n)}}let d=function(e,t){let n,r;let o={...w,...e},i={...D,...t},a={left:o.left,top:o.top,width:o.width,height:o.height},u=o.body;[o,i].forEach(e=>{let t;let n=[],r=e.hFlip,o=e.vFlip,i=e.rotate;switch(r?o?i+=2:(n.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),n.push("scale(-1 1)"),a.top=a.left=0):o&&(n.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),n.push("scale(1 -1)"),a.top=a.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:n.unshift("rotate(90 "+(t=a.height/2+a.top).toString()+" "+t.toString()+")");break;case 2:n.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:n.unshift("rotate(-90 "+(t=a.width/2+a.left).toString()+" "+t.toString()+")")}i%2==1&&(a.left!==a.top&&(t=a.left,a.left=a.top,a.top=t),a.width!==a.height&&(t=a.width,a.width=a.height,a.height=t)),n.length&&(u='<g transform="'+n.join(" ")+'">'+u+"</g>")});let s=i.width,l=i.height,c=a.width,d=a.height;null===s?n=N(r=null===l?"1em":"auto"===l?d:l,c/d):(n="auto"===s?c:s,r=null===l?N(n,d/c):"auto"===l?d:l);let p={},f=(e,t)=>{V(t)||(p[e]=t.toString())};return f("width",n),f("height",r),p.viewBox=a.left.toString()+" "+a.top.toString()+" "+c.toString()+" "+d.toString(),{attributes:p,body:u}}(e,a),p=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===u){var f;c.style={...s,...l},Object.assign(c,p);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:(f=function(e,t=U){let n;let r=[];for(;n=I.exec(e);)r.push(n[1]);if(!r.length)return e;let o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach(n=>{let r="function"==typeof t?t(n):t+(F++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),e=e.replace(RegExp(o,"g"),"")}(d.body,n?()=>n+"ID"+e++:"iconifyReact"),void 0===r&&function(){try{r=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){r=null}}(),r?r.createHTML(f):f)},h.createElement("svg",c)}let{body:m,width:v,height:g}=e,y="mask"===u||"bg"!==u&&-1!==m.indexOf("currentColor"),b=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(m,{...p,width:v+"",height:g+""});return c.style={...s,"--svg":'url("data:image/svg+xml,'+b.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")',width:eO(p.width),height:eO(p.height),...ew,...y?eE:eT,...l},h.createElement("span",c)};if(M(!0),o={prepare:(e,t,n)=>{let r=[],o=function(e,t){let n;let r=z[e];if(!r)return 0;if(r.maxURL){let e=0;r.resources.forEach(t=>{e=Math.max(e,t.length)}),n=r.maxURL-e-r.path.length-(t+".json?icons=").length}else n=0;return n}(e,t),i="icons",a={type:i,provider:e,prefix:t,icons:[]},u=0;return n.forEach((n,s)=>{(u+=n.length+1)>=o&&s>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},u=n.length),a.icons.push(n)}),r.push(a),r},send:(e,t,n)=>{if(!G){n("abort",424);return}let r=function(e){if("string"==typeof e){let t=z[e];if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":r+=t.prefix+".json?"+new URLSearchParams({icons:t.icons.join(",")}).toString();break;case"custom":{let e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:n("abort",400);return}let o=503;G(e+r).then(e=>{let t=e.status;if(200!==t){setTimeout(()=>{n(404===t?"abort":"next",t)});return}return o=501,e.json()}).then(e=>{if("object"!=typeof e||null===e){setTimeout(()=>{404===e?n("abort",e):n("next",o)});return}setTimeout(()=>{n("success",e)})}).catch(()=>{n("next",o)})}},j[""]=o,"undefined"!=typeof document&&"undefined"!=typeof window){eh();let e=window;if(void 0!==e.IconifyPreload){let t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!function(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),P&&!t&&!e.prefix){let t=!1;return O(e)&&(e.prefix="",Z(e,(e,n)=>{n&&function(e,t){let n=v(e,!0,P);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch(e){}return!1}(A(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)})),t}let n=e.prefix;return!!g({provider:t,prefix:n,name:"a"})&&!!_(A(t,n),e)}(e))&&console.error(n)}catch(e){console.error(n)}})}if(void 0!==e.IconifyProviders){let t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){let n="IconifyProviders["+e+"] is invalid.";try{let r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;!function(e,t){let n=W(t);return null!==n&&(z[e]=n,!0)}(e,r)&&console.error(n)}catch(e){console.error(n)}}}}class eA extends h.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){let t;let n=this.state,r=this.props.icon;if("object"==typeof r&&null!==r&&"string"==typeof r.body){this._icon="",this._abortLoading(),(e||null===n.icon)&&this._setData({data:r});return}if("string"!=typeof r||null===(t=v(r,!1,!0))){this._abortLoading(),this._setData(null);return}let o=function(e){let t="string"==typeof e?v(e,!0,P):e;if(t){let e=A(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(t);if(!o){this._loading&&this._loading.name===r||(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:r,abort:ev([t],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||null===n.icon){this._abortLoading(),this._icon=r;let e=["iconify"];""!==t.prefix&&e.push("iconify--"+t.prefix),""!==t.provider&&e.push("iconify--"+t.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){let e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:h.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),ek({...w,...t.data},n,e._inline,e._ref)}}let e_=h.forwardRef(function(e,t){let n={...e,_ref:t,_inline:!1};return h.createElement(eA,n)});h.forwardRef(function(e,t){let n={...e,_ref:t,_inline:!0};return h.createElement(eA,n)});var eP=n(23302),eM=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"}},eS=function(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX},eD=function(e){return e>9?e.toString():"0".concat(e)},ex=function(e,t,n){if(!isFinite(e))return null;var r=Math.floor(e/60),o=eD(r),i=eD(Math.floor(e%60)),a=eD(Math.floor(r%60)),u=Math.floor(r/60),s="".concat(o,":").concat(i),l="".concat(u,":").concat(a,":").concat(i);return"auto"===n?t>=3600?l:s:"mm:ss"===n?s:"hh:mm:ss"===n?l:void 0};function eR(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout(function(){return n=!1},t))}}var eN=function(e){(0,c.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.Z)(r);return e=t?Reflect.construct(n,arguments,(0,p.Z)(this).constructor):n.apply(this,arguments),(0,d.Z)(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,f.Z)((0,l.Z)(e),"audio",void 0),(0,f.Z)((0,l.Z)(e),"timeOnMouseMove",0),(0,f.Z)((0,l.Z)(e),"hasAddedAudioEventListener",!1),(0,f.Z)((0,l.Z)(e),"downloadProgressAnimationTimer",void 0),(0,f.Z)((0,l.Z)(e),"state",{isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[],waitingForSeekCallback:!1}),(0,f.Z)((0,l.Z)(e),"getCurrentProgress",function(t){var n=e.props,r=n.audio,o=n.progressBar;if(0!==r.src.indexOf("blob:")&&void 0===e.props.srcDuration&&(!r.src||!isFinite(r.currentTime)||!o.current))return{currentTime:0,currentTimePos:"0%"};var i=o.current.getBoundingClientRect(),a=i.width,u=eS(t)-i.left;return u<0?u=0:u>a&&(u=a),{currentTime:e.getDuration()*u/a,currentTimePos:"".concat((u/a*100).toFixed(2),"%")}}),(0,f.Z)((0,l.Z)(e),"handleContextMenu",function(e){e.preventDefault()}),(0,f.Z)((0,l.Z)(e),"handleMouseDownOrTouchStartProgressBar",function(t){t.stopPropagation();var n=e.getCurrentProgress(t.nativeEvent),r=n.currentTime,o=n.currentTimePos;isFinite(r)&&(e.timeOnMouseMove=r,e.setState({isDraggingProgress:!0,currentTimePos:o}),t.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.addEventListener("touchend",e.handleWindowMouseOrTouchUp)))}),(0,f.Z)((0,l.Z)(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 r=e.getCurrentProgress(t),o=r.currentTime,i=r.currentTimePos;e.timeOnMouseMove=o,e.setState({currentTimePos:i})}}),(0,f.Z)((0,l.Z)(e),"handleWindowMouseOrTouchUp",function(t){t.stopPropagation();var n=e.timeOnMouseMove,r=e.props,o=r.audio,i=r.onChangeCurrentTimeError,a=r.onSeek;if(a)e.setState({isDraggingProgress:!1,waitingForSeekCallback:!0},function(){a(o,n).then(function(){return e.setState({waitingForSeekCallback:!1})},function(e){throw Error(e)})});else{var u={isDraggingProgress:!1};o.readyState!==o.HAVE_NOTHING&&o.readyState!==o.HAVE_METADATA&&isFinite(n)?o.currentTime=n:(u.currentTimePos="0%",i&&i()),e.setState(u)}t instanceof MouseEvent?(window.removeEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",e.handleWindowMouseOrTouchUp))}),(0,f.Z)((0,l.Z)(e),"handleAudioTimeUpdate",eR(function(t){var n=e.state.isDraggingProgress,r=t.target;if(!n&&!0!==e.state.waitingForSeekCallback){var o=r.currentTime,i=e.getDuration();e.setState({currentTimePos:"".concat((o/i*100||0).toFixed(2),"%")})}},e.props.progressUpdateInterval)),(0,f.Z)((0,l.Z)(e),"handleAudioDownloadProgressUpdate",function(t){for(var n=t.target,r=e.getDuration(),o=[],i=0;i<n.buffered.length;i++){var a=n.buffered.start(i),u=n.buffered.end(i);o.push({left:"".concat(Math.round(100/r*a)||0,"%"),width:"".concat(Math.round(100/r*(u-a))||0,"%")})}clearTimeout(e.downloadProgressAnimationTimer),e.setState({downloadProgressArr:o,hasDownloadProgressAnimation:!0}),e.downloadProgressAnimationTimer=setTimeout(function(){e.setState({hasDownloadProgressAnimation:!1})},200)}),e}return(0,s.Z)(r,[{key:"getDuration",value:function(){var e=this.props,t=e.audio,n=e.srcDuration;return void 0===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,r=e.progressBar,o=e.i18nProgressBar,i=this.state,a=i.currentTimePos,u=i.downloadProgressArr,s=i.hasDownloadProgressAnimation;return h.createElement("div",{className:"rhap_progress-container",ref:r,"aria-label":o,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},h.createElement("div",{className:"rhap_progress-bar ".concat(t?"rhap_progress-bar-show-download":"")},h.createElement("div",{className:"rhap_progress-indicator",style:{left:a}}),n&&h.createElement("div",{className:"rhap_progress-filled",style:{width:a}}),t&&u.map(function(e,t){var n=e.left,r=e.width;return h.createElement("div",{key:t,className:"rhap_download-progress",style:{left:n,width:r,transitionDuration:s?".2s":"0s"}})})))}}]),r}(h.Component),eV=(0,h.forwardRef)(function(e,t){return h.createElement(eN,(0,eP.Z)({},e,{progressBar:t}))}),eI=function(e){(0,c.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.Z)(r);return e=t?Reflect.construct(n,arguments,(0,p.Z)(this).constructor):n.apply(this,arguments),(0,d.Z)(this,e)});function r(e){(0,u.Z)(this,r),t=n.call(this,e),(0,f.Z)((0,l.Z)(t),"audio",void 0),(0,f.Z)((0,l.Z)(t),"hasAddedAudioEventListener",!1),(0,f.Z)((0,l.Z)(t),"state",{currentTime:t.props.defaultCurrentTime}),(0,f.Z)((0,l.Z)(t),"handleAudioCurrentTimeChange",function(e){var n=e.target,r=t.props,o=r.isLeftTime,i=r.timeFormat,a=r.defaultCurrentTime;t.setState({currentTime:ex(o?n.duration-n.currentTime:n.currentTime,n.duration,i)||a})}),(0,f.Z)((0,l.Z)(t),"addAudioEventListeners",function(){var e=t.props.audio;e&&!t.hasAddedAudioEventListener&&(t.audio=e,t.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",t.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",t.handleAudioCurrentTimeChange))});var t,o=e.audio,i=e.defaultCurrentTime,a=e.isLeftTime,s=e.timeFormat,c=i;return o&&(c=ex(a?o.duration-o.currentTime:o.currentTime,o.duration,s)),t.state={currentTime:c},t}return(0,s.Z)(r,[{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}}]),r}(h.PureComponent),eU=function(e){(0,c.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.Z)(r);return e=t?Reflect.construct(n,arguments,(0,p.Z)(this).constructor):n.apply(this,arguments),(0,d.Z)(this,e)});function r(e){(0,u.Z)(this,r),t=n.call(this,e),(0,f.Z)((0,l.Z)(t),"audio",void 0),(0,f.Z)((0,l.Z)(t),"hasAddedAudioEventListener",!1),(0,f.Z)((0,l.Z)(t),"state",{duration:t.props.audio?ex(t.props.audio.duration,t.props.audio.duration,t.props.timeFormat):t.props.defaultDuration}),(0,f.Z)((0,l.Z)(t),"handleAudioDurationChange",function(e){var n=e.target,r=t.props,o=r.timeFormat,i=r.defaultDuration;t.setState({duration:ex(n.duration,n.duration,o)||i})}),(0,f.Z)((0,l.Z)(t),"addAudioEventListeners",function(){var e=t.props.audio;e&&!t.hasAddedAudioEventListener&&(t.audio=e,t.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",t.handleAudioDurationChange),e.addEventListener("abort",t.handleAudioDurationChange))});var t,o=e.audio,i=e.timeFormat,a=e.defaultDuration;return t.state={duration:o?ex(o.duration,o.duration,i):a},t}return(0,s.Z)(r,[{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}}]),r}(h.PureComponent),eF=function(e){(0,c.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.Z)(r);return e=t?Reflect.construct(n,arguments,(0,p.Z)(this).constructor):n.apply(this,arguments),(0,d.Z)(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,f.Z)((0,l.Z)(e),"audio",void 0),(0,f.Z)((0,l.Z)(e),"hasAddedAudioEventListener",!1),(0,f.Z)((0,l.Z)(e),"volumeBar",(0,h.createRef)()),(0,f.Z)((0,l.Z)(e),"volumeAnimationTimer",0),(0,f.Z)((0,l.Z)(e),"lastVolume",e.props.volume),(0,f.Z)((0,l.Z)(e),"state",{currentVolumePos:"".concat((e.lastVolume/1*100||0).toFixed(2),"%"),hasVolumeAnimation:!1,isDraggingVolume:!1}),(0,f.Z)((0,l.Z)(e),"getCurrentVolume",function(t){var n,r,o=e.props.audio;if(!e.volumeBar.current)return{currentVolume:o.volume,currentVolumePos:e.state.currentVolumePos};var i=e.volumeBar.current.getBoundingClientRect(),a=i.width,u=eS(t)-i.left;return u<0?(n=0,r="0%"):u>i.width?(n=1,r="100%"):(n=u/a,r="".concat(u/a*100,"%")),{currentVolume:n,currentVolumePos:r}}),(0,f.Z)((0,l.Z)(e),"handleContextMenu",function(e){e.preventDefault()}),(0,f.Z)((0,l.Z)(e),"handleClickVolumeButton",function(){var t=e.props.audio;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume}),(0,f.Z)((0,l.Z)(e),"handleVolumnControlMouseOrTouchDown",function(t){t.stopPropagation();var n=e.props.audio,r=e.getCurrentVolume(t.nativeEvent),o=r.currentVolume,i=r.currentVolumePos;n.volume=o,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))}),(0,f.Z)((0,l.Z)(e),"handleWindowMouseOrTouchMove",function(t){t instanceof MouseEvent&&t.preventDefault(),t.stopPropagation();var n=e.props.audio,r=window.getSelection();if(r&&"Range"===r.type&&r.empty(),e.state.isDraggingVolume){var o=e.getCurrentVolume(t),i=o.currentVolume,a=o.currentVolumePos;n.volume=i,e.setState({currentVolumePos:a})}}),(0,f.Z)((0,l.Z)(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))}),(0,f.Z)((0,l.Z)(e),"handleAudioVolumeChange",function(t){var n=e.state.isDraggingVolume,r=t.target.volume;(e.lastVolume>0&&0===r||0===e.lastVolume&&r>0)&&e.props.onMuteChange(),e.lastVolume=r,n||(e.setState({hasVolumeAnimation:!0,currentVolumePos:"".concat((r/1*100||0).toFixed(2),"%")}),clearTimeout(e.volumeAnimationTimer),e.volumeAnimationTimer=setTimeout(function(){e.setState({hasVolumeAnimation:!1})},100))}),e}return(0,s.Z)(r,[{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,r=e.i18nVolumeControl,o=this.state,i=o.currentVolumePos,a=o.hasVolumeAnimation,u=(t||{}).volume;return h.createElement("div",{ref:this.volumeBar,onMouseDown:this.handleVolumnControlMouseOrTouchDown,onTouchStart:this.handleVolumnControlMouseOrTouchDown,onContextMenu:this.handleContextMenu,role:"progressbar","aria-label":r,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*u).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},h.createElement("div",{className:"rhap_volume-bar"},h.createElement("div",{className:"rhap_volume-indicator",style:{left:i,transitionDuration:a?".1s":"0s"}}),n&&h.createElement("div",{className:"rhap_volume-filled",style:{width:i}})))}}]),r}(h.Component);(i=a||(a={})).CURRENT_TIME="CURRENT_TIME",i.CURRENT_LEFT_TIME="CURRENT_LEFT_TIME",i.PROGRESS_BAR="PROGRESS_BAR",i.DURATION="DURATION",i.ADDITIONAL_CONTROLS="ADDITIONAL_CONTROLS",i.MAIN_CONTROLS="MAIN_CONTROLS",i.VOLUME_CONTROLS="VOLUME_CONTROLS",i.LOOP="LOOP",i.VOLUME="VOLUME";var ej=function(e){(0,c.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.Z)(r);return e=t?Reflect.construct(n,arguments,(0,p.Z)(this).constructor):n.apply(this,arguments),(0,d.Z)(this,e)});function r(){var e;(0,u.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,f.Z)((0,l.Z)(e),"audio",(0,h.createRef)()),(0,f.Z)((0,l.Z)(e),"progressBar",(0,h.createRef)()),(0,f.Z)((0,l.Z)(e),"container",(0,h.createRef)()),(0,f.Z)((0,l.Z)(e),"lastVolume",e.props.volume),(0,f.Z)((0,l.Z)(e),"listenTracker",void 0),(0,f.Z)((0,l.Z)(e),"volumeAnimationTimer",void 0),(0,f.Z)((0,l.Z)(e),"downloadProgressAnimationTimer",void 0),(0,f.Z)((0,l.Z)(e),"togglePlay",function(t){t.stopPropagation();var n=e.audio.current;(n.paused||n.ended)&&n.src?e.playAudioPromise():n.paused||n.pause()}),(0,f.Z)((0,l.Z)(e),"playAudioPromise",function(){var t=e.audio.current.play();t?t.then(null).catch(function(t){var n=e.props.onPlayError;n&&n(Error(t))}):e.forceUpdate()}),(0,f.Z)((0,l.Z)(e),"isPlaying",function(){var t=e.audio.current;return!!t&&!t.paused&&!t.ended}),(0,f.Z)((0,l.Z)(e),"handlePlay",function(t){e.forceUpdate(),e.props.onPlay&&e.props.onPlay(t)}),(0,f.Z)((0,l.Z)(e),"handlePause",function(t){e.audio&&(e.forceUpdate(),e.props.onPause&&e.props.onPause(t))}),(0,f.Z)((0,l.Z)(e),"handleEnded",function(t){e.audio&&(e.forceUpdate(),e.props.onEnded&&e.props.onEnded(t))}),(0,f.Z)((0,l.Z)(e),"handleAbort",function(t){e.props.onAbort&&e.props.onAbort(t)}),(0,f.Z)((0,l.Z)(e),"handleClickVolumeButton",function(){var t=e.audio.current;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume}),(0,f.Z)((0,l.Z)(e),"handleMuteChange",function(){e.forceUpdate()}),(0,f.Z)((0,l.Z)(e),"handleClickLoopButton",function(){e.audio.current.loop=!e.audio.current.loop,e.forceUpdate()}),(0,f.Z)((0,l.Z)(e),"handleClickRewind",function(){var t=e.props,n=t.progressJumpSteps,r=t.progressJumpStep,o=n.backward||r;e.setJumpTime(-o)}),(0,f.Z)((0,l.Z)(e),"handleClickForward",function(){var t=e.props,n=t.progressJumpSteps,r=t.progressJumpStep,o=n.forward||r;e.setJumpTime(o)}),(0,f.Z)((0,l.Z)(e),"setJumpTime",function(t){var n=e.audio.current,r=n.duration,o=n.currentTime;if(n.readyState===n.HAVE_NOTHING||n.readyState===n.HAVE_METADATA||!isFinite(r)||!isFinite(o))return e.props.onChangeCurrentTimeError&&e.props.onChangeCurrentTimeError();var i=o+t/1e3;i<0?(n.currentTime=0,i=0):i>r?(n.currentTime=r,i=r):n.currentTime=i}),(0,f.Z)((0,l.Z)(e),"setJumpVolume",function(t){var n=e.audio.current.volume+t;n<0?n=0:n>1&&(n=1),e.audio.current.volume=n}),(0,f.Z)((0,l.Z)(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;case"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()}}),(0,f.Z)((0,l.Z)(e),"renderUIModules",function(t){return t.map(function(t,n){return e.renderUIModule(t,n)})}),(0,f.Z)((0,l.Z)(e),"renderUIModule",function(t,n){var r=e.props,o=r.defaultCurrentTime,i=r.progressUpdateInterval,u=r.showDownloadProgress,s=r.showFilledProgress,l=r.showFilledVolume,c=r.defaultDuration,d=r.customIcons,p=r.showSkipControls,f=r.onClickPrevious,m=r.onClickNext,v=r.onChangeCurrentTimeError,g=r.showJumpControls,y=r.customAdditionalControls,b=r.customVolumeControls,w=r.muted,E=r.timeFormat,T=r.volume,Z=r.loop,C=r.mse,L=r.i18nAriaLabels;switch(t){case a.CURRENT_TIME:return h.createElement("div",{key:n,id:"rhap_current-time",className:"rhap_time rhap_current-time"},h.createElement(eI,{audio:e.audio.current,isLeftTime:!1,defaultCurrentTime:o,timeFormat:E}));case a.CURRENT_LEFT_TIME:return h.createElement("div",{key:n,id:"rhap_current-left-time",className:"rhap_time rhap_current-left-time"},h.createElement(eI,{audio:e.audio.current,isLeftTime:!0,defaultCurrentTime:o,timeFormat:E}));case a.PROGRESS_BAR:return h.createElement(eV,{key:n,ref:e.progressBar,audio:e.audio.current,progressUpdateInterval:i,showDownloadProgress:u,showFilledProgress:s,onSeek:C&&C.onSeek,onChangeCurrentTimeError:v,srcDuration:C&&C.srcDuration,i18nProgressBar:L.progressControl});case a.DURATION:return h.createElement("div",{key:n,className:"rhap_time rhap_total-time"},C&&C.srcDuration?ex(C.srcDuration,C.srcDuration,e.props.timeFormat):h.createElement(eU,{audio:e.audio.current,defaultDuration:c,timeFormat:E}));case a.ADDITIONAL_CONTROLS:return h.createElement("div",{key:n,className:"rhap_additional-controls"},e.renderUIModules(y));case a.MAIN_CONTROLS:var O,k=e.isPlaying();return O=k?d.pause?d.pause:h.createElement(e_,{icon:"mdi:pause-circle"}):d.play?d.play:h.createElement(e_,{icon:"mdi:play-circle"}),h.createElement("div",{key:n,className:"rhap_main-controls"},p&&h.createElement("button",{"aria-label":L.previous,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:f},d.previous?d.previous:h.createElement(e_,{icon:"mdi:skip-previous"})),g&&h.createElement("button",{"aria-label":L.rewind,className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",type:"button",onClick:e.handleClickRewind},d.rewind?d.rewind:h.createElement(e_,{icon:"mdi:rewind"})),h.createElement("button",{"aria-label":k?L.pause:L.play,className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",type:"button",onClick:e.togglePlay},O),g&&h.createElement("button",{"aria-label":L.forward,className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",type:"button",onClick:e.handleClickForward},d.forward?d.forward:h.createElement(e_,{icon:"mdi:fast-forward"})),p&&h.createElement("button",{"aria-label":L.next,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:m},d.next?d.next:h.createElement(e_,{icon:"mdi:skip-next"})));case a.VOLUME_CONTROLS:return h.createElement("div",{key:n,className:"rhap_volume-controls"},e.renderUIModules(b));case a.LOOP:var A,_=e.audio.current?e.audio.current.loop:Z;return A=_?d.loop?d.loop:h.createElement(e_,{icon:"mdi:repeat"}):d.loopOff?d.loopOff:h.createElement(e_,{icon:"mdi:repeat-off"}),h.createElement("button",{key:n,"aria-label":_?L.loop:L.loopOff,className:"rhap_button-clear rhap_repeat-button",type:"button",onClick:e.handleClickLoopButton},A);case a.VOLUME:var P,M=(e.audio.current||{}).volume,S=void 0===M?w?0:T:M;return P=S?d.volume?d.volume:h.createElement(e_,{icon:"mdi:volume-high"}):d.volume?d.volumeMute:h.createElement(e_,{icon:"mdi:volume-mute"}),h.createElement("div",{key:n,className:"rhap_volume-container"},h.createElement("button",{"aria-label":S?L.volume:L.volumeMute,onClick:e.handleClickVolumeButton,type:"button",className:"rhap_button-clear rhap_volume-button"},P),h.createElement(eF,{audio:e.audio.current,volume:S,onMuteChange:e.handleMuteChange,showFilledVolume:l,i18nVolumeControl:L.volumeControl}));default:if(!(0,h.isValidElement)(t))return null;return t.key?t:(0,h.cloneElement)(t,{key:n})}}),e}return(0,s.Z)(r,[{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){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",eR(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,r=t.autoPlayAfterSrcChange;e.src!==n&&(r?this.playAudioPromise():this.forceUpdate())}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.src,r=e.loop,o=e.preload,i=e.autoPlay,a=e.crossOrigin,u=e.mediaGroup,s=e.header,l=e.footer,c=e.layout,d=e.customProgressBarSection,p=e.customControlsSection,f=e.children,m=e.style,v=e.i18nAriaLabels,g=this.audio.current?this.audio.current.loop:r,y=g?"rhap_loop--on":"rhap_loop--off",b=this.isPlaying()?"rhap_play-status--playing":"rhap_play-status--paused";return h.createElement("div",{role:"group",tabIndex:0,"aria-label":v.player,className:"rhap_container ".concat(y," ").concat(b," ").concat(t),onKeyDown:this.handleKeyDown,ref:this.container,style:m},h.createElement("audio",{src:n,controls:!1,loop:g,autoPlay:i,preload:o,crossOrigin:a,mediaGroup:u,ref:this.audio},f),s&&h.createElement("div",{className:"rhap_header"},s),h.createElement("div",{className:"rhap_main ".concat(eM(c))},h.createElement("div",{className:"rhap_progress-section"},this.renderUIModules(d)),h.createElement("div",{className:"rhap_controls-section"},this.renderUIModules(p))),l&&h.createElement("div",{className:"rhap_footer"},l))}}]),r}(h.Component);(0,f.Z)(ej,"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:[a.CURRENT_TIME,a.PROGRESS_BAR,a.DURATION],customControlsSection:[a.ADDITIONAL_CONTROLS,a.MAIN_CONTROLS,a.VOLUME_CONTROLS],customAdditionalControls:[a.LOOP],customVolumeControls:[a.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 eB=ej},35707:function(){},16126:function(e,t,n){"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},85942:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},18401:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(96699);function o(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,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},23883:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(96699);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},62297:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return r}})},9951:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72585);function o(e,t){if("function"!=typeof t&&null!==t)throw 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&&(0,r.Z)(e,t)}},6237:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(74965),o=n(16126);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},72585:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},96699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(74965);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},74965:function(e,t,n){"use strict";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})(e)}n.d(t,{Z:function(){return r}})}}]);
//# sourceMappingURL=3034-07c4199f53245ed9.js.map