filecat 6.9.2 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/{1636.30468729d36c207a8ef4.js → 1636.072967845ab14f895639.js} +1 -1
- package/build/dist/{2055.cb159742ee5a05e75046.js → 2055.62d0426a3fc1c31b0bab.js} +1 -1
- package/build/dist/{2286.cbd71319c6939820a1b9.js → 2286.7b47b50c225130b2a17e.js} +2 -2
- package/build/dist/2542.6894d0214af41b826e1d.js +1 -0
- package/build/dist/2851.6d0f7f44b07703b3b9d7.js +1 -0
- package/build/dist/397.35e2e66390b0f2e972d7.js +2 -0
- package/build/dist/{4273.b5a75d7edaf3213e5bbf.js → 4273.41a9feaab67d7ad3f8b5.js} +1 -1
- package/build/dist/{5838.1d57a1ebe1d439a635b2.js → 5838.5d636e34b45888ec83a4.js} +1 -1
- package/build/dist/{5937.088e5a04adbf7f7f643e.js → 5937.523bd926b56c396be084.js} +1 -1
- package/build/dist/6084.cb0ad62ae4786aa13a54.js +1 -0
- package/build/dist/6413.c7a7182be7e2f9e321e1.js +1 -0
- package/build/dist/{6723.faaa06f224af3b03127a.js → 6723.543183e8747e2b0ace9c.js} +2 -2
- package/build/dist/{7795.62b518fc1550f5ab95c9.js → 7795.3a83ff937851fbdbb757.js} +2 -2
- package/build/dist/8194.6a91fdc006d0b5369b74.js +1 -0
- package/build/dist/8302.b421118ad87aa89119bf.js +1 -0
- package/build/dist/9782.ecacd943d1a29c6bf31e.js +1 -0
- package/build/dist/index.html +1 -1
- package/build/dist/main.6d4d28884666f264065f.js +1 -0
- package/build/dist/{npm.axios.5550ce6331dd7babbcfe.js → npm.axios.a286c4fe3f8d4ec9796a.js} +1 -1
- package/build/dist/npm.d3-selection.d25be3c43262bec3e0e9.js +1 -0
- package/build/dist/npm.d3-shape.eb306454bfc543d4fbcf.js +1 -0
- package/build/dist/npm.es-toolkit.34c9948c83cd1954dd90.js +1 -0
- package/build/dist/{npm.excalidraw.1b06762da5042714467a.js → npm.excalidraw.94526d6a7108a360de25.js} +1 -1
- package/build/dist/{npm.floating-ui.c75a64cadcbaaebc0082.js → npm.floating-ui.6eecae6896df6b20e910.js} +1 -1
- package/build/dist/npm.github-markdown-css.82ca3e981b64da3ae836.js +1 -0
- package/build/dist/{npm.highlight.js.630038518d374f6e2cc8.js → npm.highlight.js.e197da73449d85791b07.js} +1 -1
- package/build/dist/npm.i18next.ea872f8dfd91b2154015.js +1 -0
- package/build/dist/npm.image-blob-reduce.25b5b3d0361f80b89938.js +2 -0
- package/build/dist/{npm.khroma.7ab89b0e2068439dcb74.js → npm.khroma.82cbf6838f023564870b.js} +1 -1
- package/build/dist/{npm.lodash-es.caed1cb74816cb0ed085.js → npm.lodash-es.9c09e9abc4ae8587b600.js} +1 -1
- package/build/dist/npm.markdown-it.d69ce2e9e8ffa466eba6.js +1 -0
- package/build/dist/npm.mermaid.e0b59d2463c32a0e43db.js +1 -0
- package/build/dist/npm.mpd-parser.cf420d46dbb8a8921ab1.js +1 -0
- package/build/dist/{npm.noty.9c23b429c58905300317.js → npm.noty.2eab57f475fb39eb37db.js} +2 -2
- package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js → npm.react-router.2b16d221233fc84c4261.js} +2 -2
- package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js → npm.video.js.2d49851da555765dc3e4.js} +2 -2
- package/build/dist/{npm.videojs.230d2e05e6e419773044.js → npm.videojs.06bcec493b9d59598ea8.js} +1 -1
- package/build/dist/{npm.xterm.757ab099dce39da3f542.js → npm.xterm.657bae3fcfdbec409d2b.js} +1 -1
- package/build/main.js +1 -1
- package/build/plugin/core.type.d.ts +22 -0
- package/build/threads.work.filecat.js +1 -1
- package/package.json +3 -2
- package/build/dist/2542.0e99091dcaba3d4146f7.js +0 -1
- package/build/dist/2851.1a65e336550d234e96ee.js +0 -1
- package/build/dist/397.19bbedd5e9d5ed0c6790.js +0 -2
- package/build/dist/6084.6c144a4d692d003cfca0.js +0 -1
- package/build/dist/7274.2b2a3e2ea2541db2c202.js +0 -1
- package/build/dist/8302.345d05a7a3fa23d2b15d.js +0 -1
- package/build/dist/9782.8808d86e7e0a6928ad5d.js +0 -1
- package/build/dist/main.a0b8da302660e45014c9.js +0 -1
- package/build/dist/npm.d3-selection.d95fb47c647ef6e93798.js +0 -1
- package/build/dist/npm.d3-shape.a087932c2fb242e67aa2.js +0 -1
- package/build/dist/npm.es-toolkit.6e2def85c642c1ae121c.js +0 -1
- package/build/dist/npm.github-markdown-css.a3ce76a1172b0aa3ee39.js +0 -1
- package/build/dist/npm.i18next.4d343d06af92faf9acfd.js +0 -1
- package/build/dist/npm.image-blob-reduce.973825a3b7c5a1605a78.js +0 -2
- package/build/dist/npm.markdown-it.81994f1b0a64619b892a.js +0 -1
- package/build/dist/npm.mermaid.92be56e14ee41c57413e.js +0 -1
- package/build/dist/npm.mpd-parser.8d49860cde5e4ba98bce.js +0 -1
- /package/build/dist/{2286.cbd71319c6939820a1b9.js.LICENSE.txt → 2286.7b47b50c225130b2a17e.js.LICENSE.txt} +0 -0
- /package/build/dist/{397.19bbedd5e9d5ed0c6790.js.LICENSE.txt → 397.35e2e66390b0f2e972d7.js.LICENSE.txt} +0 -0
- /package/build/dist/{6723.faaa06f224af3b03127a.js.LICENSE.txt → 6723.543183e8747e2b0ace9c.js.LICENSE.txt} +0 -0
- /package/build/dist/{7795.62b518fc1550f5ab95c9.js.LICENSE.txt → 7795.3a83ff937851fbdbb757.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.image-blob-reduce.973825a3b7c5a1605a78.js.LICENSE.txt → npm.image-blob-reduce.25b5b3d0361f80b89938.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.noty.9c23b429c58905300317.js.LICENSE.txt → npm.noty.2eab57f475fb39eb37db.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.react-router.6294ae9e93aa01cece06.js.LICENSE.txt → npm.react-router.2b16d221233fc84c4261.js.LICENSE.txt} +0 -0
- /package/build/dist/{npm.video.js.a61b7ba57d10b9b3e56d.js.LICENSE.txt → npm.video.js.2d49851da555765dc3e4.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[715],{74896(e,t,n){var i=n(27098),r=n(89840),a=n.n(r),s=n(29191),o=n(27860),u=n(28978);const c=e=>!!e&&"object"==typeof e,l=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):c(e[n])&&c(t[n])?e[n]=l(e[n],t[n]):e[n]=t[n]}),e),{}),d=e=>Object.keys(e).map(t=>e[t]),m=e=>e.reduce((e,t)=>e.concat(t),[]),p=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t};var g="INVALID_NUMBER_OF_PERIOD",b="DASH_EMPTY_MANIFEST",f="DASH_INVALID_XML",h="NO_BASE_URL",y="SEGMENT_TIME_UNSPECIFIED",S="UNSUPPORTED_UTC_TIMING_SCHEME";const I=({baseUrl:e="",source:t="",range:n="",indexRange:r=""})=>{const s={uri:t,resolvedUri:(0,i.A)(e||"",t)};if(n||r){const e=(n||r).split("-");let t,i=a().BigInt?a().BigInt(e[0]):parseInt(e[0],10),o=a().BigInt?a().BigInt(e[1]):parseInt(e[1],10);i<Number.MAX_SAFE_INTEGER&&"bigint"==typeof i&&(i=Number(i)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),t="bigint"==typeof o||"bigint"==typeof i?a().BigInt(o)-a().BigInt(i)+a().BigInt(1):o-i+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),s.byterange={length:t,offset:i}}return s},U=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),E={static(e){const{duration:t,timescale:n=1,sourceDuration:i,periodDuration:r}=e,a=U(e.endNumber),s=t/n;return"number"==typeof a?{start:0,end:a}:"number"==typeof r?{start:0,end:r/s}:{start:0,end:i/s}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:i,timescale:r=1,duration:a,periodStart:s=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:u=1/0}=e,c=U(e.endNumber),l=(t+n)/1e3,d=i+s,m=l+o-d,p=Math.ceil(m*r/a),g=Math.floor((l-d-u)*r/a),b=Math.floor((l-d)*r/a);return{start:Math.max(0,g),end:"number"==typeof c?c:Math.min(p,b)}}},D=e=>{const{type:t,duration:n,timescale:i=1,periodDuration:r,sourceDuration:a}=e,{start:s,end:o}=E[t](e),u=((e,t)=>{const n=[];for(let i=e;i<t;i++)n.push(i);return n})(s,o).map((e=>t=>{const{duration:n,timescale:i=1,periodStart:r,startNumber:a=1}=e;return{number:a+t,duration:n/i,timeline:r,time:t*n}})(e));if("static"===t){const e=u.length-1,t="number"==typeof r?r:a;u[e].duration=t-n/i*e}return u},T=e=>{const{baseUrl:t,initialization:n={},sourceDuration:i,indexRange:r="",periodStart:a,presentationTime:s,number:o=0,duration:u}=e;if(!t)throw new Error(h);const c=I({baseUrl:t,source:n.sourceURL,range:n.range}),l=I({baseUrl:t,source:t,indexRange:r});if(l.map=c,u){const t=D(e);t.length&&(l.duration=t[0].duration,l.timeline=t[0].timeline)}else i&&(l.duration=i,l.timeline=a);return l.presentationTime=s||a,l.number=o,[l]},v=(e,t,n)=>{const i=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,s=e.timeline||0,o=e.sidx.byterange,u=o.offset+o.length,c=t.timescale,l=t.references.filter(e=>1!==e.referenceType),d=[],m=e.endList?"static":"dynamic",p=e.sidx.timeline;let g,b=p,f=e.mediaSequence||0;g="bigint"==typeof t.firstOffset?a().BigInt(u)+t.firstOffset:u+t.firstOffset;for(let e=0;e<l.length;e++){const o=t.references[e],u=o.referencedSize,l=o.subsegmentDuration;let h;h="bigint"==typeof g?g+a().BigInt(u)-a().BigInt(1):g+u-1;const y=T({baseUrl:n,timescale:c,timeline:s,periodStart:p,presentationTime:b,number:f,duration:l,sourceDuration:r,indexRange:`${g}-${h}`,type:m})[0];i&&(y.map=i),d.push(y),g+="bigint"==typeof g?a().BigInt(u):u,b+=l/c,f++}return e.segments=d,e},R=["AUDIO","SUBTITLES"],N=1/60,O=e=>{return(t=e,n=({timeline:e})=>e,d(t.reduce((e,t)=>(t.forEach(t=>{e[n(t)]=t}),e),{}))).sort((e,t)=>e.timeline>t.timeline?1:-1);var t,n},A=e=>{let t=[];return(0,s._)(e,R,(e,n,i,r)=>{t=t.concat(e.playlists||[])}),t},L=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,n)=>{t.number=e.mediaSequence+n})},P=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(A(e)),i=t.playlists.concat(A(t));return t.timelineStarts=O([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(t=>{t.discontinuitySequence=n.findIndex(function({timeline:e}){return e===t.timeline});const i=((e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null})(e,t.attributes.NAME);if(!i)return;if(t.sidx)return;const r=t.segments[0],a=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<N});if(-1===a)return L({playlist:t,mediaSequence:i.mediaSequence+i.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!i.segments.length&&t.timeline>i.timeline||i.segments.length&&t.timeline>i.segments[i.segments.length-1].timeline)&&t.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),L({playlist:t,mediaSequence:i.segments[a].number})})})({oldPlaylists:n,newPlaylists:i,timelineStarts:t.timelineStarts}),t},M=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?a().BigInt(e.offset)+a().BigInt(e.length)-a().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),w=e=>{const t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{});let n=[];return Object.values(t).forEach(e=>{const t=d(e.reduce((e,t)=>{const n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(e=>{var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((e,t,i)=>(t[n]&&e.push(i),e),[])),e})},x=(e,t)=>{const n=M(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&v(e,i,e.sidx.resolvedUri),e},B=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=x(e[n],t);return e},q=({attributes:e,segments:t,sidx:n,discontinuityStarts:i})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),void 0!==e.qualityRanking&&(r.attributes.SCORE=1/(e.qualityRanking+1)),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),n&&(r.sidx=n),r},C=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,k=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,_=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,$=e=>e?Object.keys(e).reduce((t,n)=>{const i=e[n];return t.concat(i.playlists)},[]):[],F=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:i={},previousManifest:r,eventStream:a})=>{if(!e.length)return{};const{sourceDuration:s,type:o,suggestedPresentationDelay:u,minimumUpdatePeriod:c}=e[0].attributes,l=w(e.filter(C)).map(q),d=w(e.filter(k)),m=w(e.filter(_)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:s,playlists:B(l,i)};c>=0&&(g.minimumUpdatePeriod=1e3*c),t&&(g.locations=t),n&&(g.contentSteering=n),"dynamic"===o&&(g.suggestedPresentationDelay=u),a&&a.length>0&&(g.eventStream=a);const b=0===g.playlists.length,f=d.length?((e,t={},n=!1)=>{let i;const r=e.reduce((e,r)=>{const a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"";let o=r.attributes.label||"main";if(s&&!r.attributes.label){const e=a?` (${a})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});const u=x((({attributes:e,segments:t,sidx:n,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:a},s)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),n&&(o.sidx=n),s&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(r,n),t);return e[o].playlists.push(u),void 0===i&&"main"===a&&(i=r,i.default=!0),e},{});i||(r[Object.keys(r)[0]].default=!0);return r})(d,i,b):null,h=m.length?((e,t={})=>e.reduce((e,n)=>{const i=n.attributes.label||n.attributes.lang||"text",r=n.attributes.lang||"und";return e[i]||(e[i]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(x((({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:r})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);const s={attributes:a,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:n,segments:t};return e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),s})(n),t)),e},{}))(m,i):null,y=l.concat($(f),$(h)),S=y.map(({timelineStarts:e})=>e);var I,U;return g.timelineStarts=O(S),I=y,U=g.timelineStarts,I.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=U.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})}),f&&(g.mediaGroups.AUDIO.audio=f),h&&(g.mediaGroups.SUBTITLES.subs=h),p.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce((e,t)=>t?(t.forEach(t=>{const{channel:n,language:i}=t;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])}),e):e,{})),r?P({oldManifest:r,newManifest:g}):g},G=(e,t,n)=>{const{NOW:i,clientOffset:r,availabilityStartTime:a,timescale:s=1,periodStart:o=0,minimumUpdatePeriod:u=0}=e,c=(i+r)/1e3+u-(a+o);return Math.ceil((c*s-t)/n)},z=(e,t)=>{const{type:n,minimumUpdatePeriod:i=0,media:r="",sourceDuration:a,timescale:s=1,startNumber:o=1,periodStart:u}=e,c=[];let l=-1;for(let d=0;d<t.length;d++){const m=t[d],p=m.d,g=m.r||0,b=m.t||0;let f;if(l<0&&(l=b),b&&b>l&&(l=b),g<0){const o=d+1;f=o===t.length?"dynamic"===n&&i>0&&r.indexOf("$Number$")>0?G(e,l,p):(a*s-l)/p:(t[o].t-l)/p}else f=g+1;const h=o+c.length+f;let y=o+c.length;for(;y<h;)c.push({number:y,duration:p/s,time:l,timeline:u}),l+=p,y++}return c},j=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,H=(e,t)=>e.replace(j,(e=>(t,n,i,r)=>{if("$$"===t)return"$";if(void 0===e[n])return t;const a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:`${new Array(r-a.length+1).join("0")}${a}`)})(t)),W=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:"",range:""}}=e,a=I({baseUrl:e.baseUrl,source:H(r.sourceURL,n),range:r.range}),s=((e,t)=>e.duration||t?e.duration?D(e):z(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t);return s.map(t=>{n.Number=t.number,n.Time=t.time;const r=H(e.media||"",n),s=e.timescale||1,o=e.presentationTimeOffset||0,u=e.periodStart+(t.time-o)/s;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:(0,i.A)(e.baseUrl||"",r),map:a,number:t.number,presentationTime:u}})},V=(e,t)=>{const{duration:n,segmentUrls:i=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error(y);const a=i.map(t=>((e,t)=>{const{baseUrl:n,initialization:i={}}=e,r=I({baseUrl:n,source:i.sourceURL,range:i.range}),a=I({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=r,a})(e,t));let s;n&&(s=D(e)),t&&(s=z(e,t));return s.map((t,n)=>{if(a[n]){const i=a[n],s=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=r+(t.time-o)/s,i}}).filter(e=>e)},X=({attributes:e,segmentInfo:t})=>{let n,i;t.template?(i=W,n=l(e,t.template)):t.base?(i=T,n=l(e,t.base)):t.list&&(i=V,n=l(e,t.list));const r={attributes:e};if(!i)return r;const a=i(n,t.segmentTimeline);if(n.duration){const{duration:e,timescale:t=1}=n;n.duration=e/t}else a.length?n.duration=a.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):n.duration=0;return r.attributes=n,r.segments=a,t.base&&n.indexRange&&(r.sidx=a[0],r.segments=[]),r},Y=(e,t)=>p(e.childNodes).filter(({tagName:e})=>e===t),Z=e=>e.textContent.trim(),J=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[n,i,r,a,s,o]=t.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(r||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(o||0)},K={mediaPresentationDuration:e=>J(e),availabilityStartTime(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:e=>J(e),suggestedPresentationDelay:e=>J(e),type:e=>e,timeShiftBufferDepth:e=>J(e),start:e=>J(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce((e,t)=>e/t)))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?J(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),qualityRanking:e=>parseInt(e,10),qualityranking:e=>parseInt(e,10),DEFAULT:e=>e},Q={qualityranking:"qualityRanking"},ee=e=>e&&e.attributes?p(e.attributes).reduce((e,t)=>{const n=K[t.name]||K.DEFAULT;return e[Q[t.name]||t.name]=n(t.value),e},{}):{},te={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},ne=(e,t)=>t.length?m(e.map(function(e){return t.map(function(t){const n=Z(t),r=(0,i.A)(e.baseUrl,n),a=l(ee(t),{baseUrl:r});return r!==n&&!a.serviceLocation&&e.serviceLocation&&(a.serviceLocation=e.serviceLocation),a})})):e,ie=e=>{const t=Y(e,"SegmentTemplate")[0],n=Y(e,"SegmentList")[0],i=n&&Y(n,"SegmentURL").map(e=>l({tag:"SegmentURL"},ee(e))),r=Y(e,"SegmentBase")[0],a=n||t,s=a&&Y(a,"SegmentTimeline")[0],o=n||r||t,u=o&&Y(o,"Initialization")[0],c=t&&ee(t);c&&u?c.initialization=u&&ee(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const d={template:c,segmentTimeline:s&&Y(s,"S").map(e=>ee(e)),list:n&&l(ee(n),{segmentUrls:i,initialization:ee(u)}),base:r&&l(ee(r),{initialization:ee(u)})};return Object.keys(d).forEach(e=>{d[e]||delete d[e]}),d},re=e=>m(Y(e.node,"EventStream").map(t=>{const n=ee(t),i=n.schemeIdUri;return Y(t,"Event").map(t=>{const r=ee(t),a=r.presentationTime||0,s=n.timescale||1,o=r.duration||0,u=a/s+e.attributes.start;return{schemeIdUri:i,value:n.value,id:r.id,start:u,end:u+o/s,messageData:Z(t)||r.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),ae=(e,t,n)=>i=>{const r=ee(i),a=ne(t,Y(i,"BaseURL")),s=Y(i,"Role")[0],u={role:ee(s)};let c=l(e,r,u);const d=Y(i,"Accessibility")[0],p=(e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}});if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri)return("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[n,i=""]=e.split("=");t.channel=n,t.language=e,i.split(",").forEach(e=>{const[n,i]=e.split(":");"lang"===n?t.language=i:"er"===n?t.easyReader=Number(i):"war"===n?t.aspectRatio=Number(i):"3D"===n&&(t["3D"]=Number(i))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})})(ee(d));p&&(c=l(c,{captionServices:p}));const g=Y(i,"Label")[0];if(g&&g.childNodes.length){const e=g.childNodes[0].nodeValue.trim();c=l(c,{label:e})}const b=Y(i,"ContentProtection").reduce((e,t)=>{const n=ee(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());const i=te[n.schemeIdUri];if(i){e[i]={attributes:n};const r=Y(t,"cenc:pssh")[0];if(r){const t=Z(r);e[i].pssh=t&&(0,o.A)(t)}}return e},{});Object.keys(b).length&&(c=l(c,{contentProtection:b}));const f=ie(i),h=Y(i,"Representation"),y=l(n,f);return m(h.map(((e,t,n)=>i=>{const r=Y(i,"BaseURL"),a=ne(t,r),s=l(e,ee(i)),o=ie(i);return a.map(e=>({segmentInfo:l(n,o),attributes:l(s,e)}))})(c,a,y)))},se=(e,t)=>(n,i)=>{const r=ne(t,Y(n.node,"BaseURL")),a=l(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);const s=Y(n.node,"AdaptationSet"),o=ie(n.node);return m(s.map(ae(a,r,o)))},oe=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=l({serverURL:Z(e[0])},ee(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},ue=e=>{if(""===e)throw new Error(b);const t=new u.DOMParser;let n,i;try{n=t.parseFromString(e,"application/xml"),i=n&&"MPD"===n.documentElement.tagName?n.documentElement:null}catch(e){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(f);return i};n.d(t,["Tt",0,v,"Ze",0,M,"i6",0,e=>(e=>{const t=Y(e,"UTCTiming")[0];if(!t)return null;const n=ee(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(S)}return n})(ue(e)),"qg",0,(e,t={})=>{const n=((e,t={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:a=function(){}}=t,s=Y(e,"Period");if(!s.length)throw new Error(g);const o=Y(e,"Location"),u=ee(e),c=ne([{baseUrl:n}],Y(e,"BaseURL")),l=Y(e,"ContentSteering");u.type=u.type||"static",u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=i,u.clientOffset=r,o.length&&(u.locations=o.map(Z));const d=[];return s.forEach((e,t)=>{const n=ee(e),i=d[t-1];n.start=(({attributes:e,priorPeriodAttributes:t,mpdType:n})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==n?null:0)({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:u.type}),d.push({node:e,attributes:n})}),{locations:u.locations,contentSteeringInfo:oe(l,a),representationInfo:m(d.map(se(u,c))),eventStream:m(d.map(re))}})(ue(e),t),i=n.representationInfo.map(X);return F({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})}])}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see npm.noty.
|
|
2
|
-
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[8180],{19186(t,n,e){"use strict";e.d(n,{A:()=>a});var o=e(31601),i=e.n(o),r=e(76314),s=e.n(r)()(i());s.push([t.id,".noty_layout_mixin, #noty_layout__top, #noty_layout__topLeft, #noty_layout__topCenter, #noty_layout__topRight, #noty_layout__bottom, #noty_layout__bottomLeft, #noty_layout__bottomCenter, #noty_layout__bottomRight, #noty_layout__center, #noty_layout__centerLeft, #noty_layout__centerRight {\n position: fixed;\n margin: 0;\n padding: 0;\n z-index: 9999999;\n -webkit-transform: translateZ(0) scale(1, 1);\n transform: translateZ(0) scale(1, 1);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n filter: blur(0);\n -webkit-filter: blur(0);\n max-width: 90%; }\n\n#noty_layout__top {\n top: 0;\n left: 5%;\n width: 90%; }\n\n#noty_layout__topLeft {\n top: 20px;\n left: 20px;\n width: 325px; }\n\n#noty_layout__topCenter {\n top: 5%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__topRight {\n top: 20px;\n right: 20px;\n width: 325px; }\n\n#noty_layout__bottom {\n bottom: 0;\n left: 5%;\n width: 90%; }\n\n#noty_layout__bottomLeft {\n bottom: 20px;\n left: 20px;\n width: 325px; }\n\n#noty_layout__bottomCenter {\n bottom: 5%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__bottomRight {\n bottom: 20px;\n right: 20px;\n width: 325px; }\n\n#noty_layout__center {\n top: 50%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px), -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px), calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__centerLeft {\n top: 50%;\n left: 20px;\n width: 325px;\n -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__centerRight {\n top: 50%;\n right: 20px;\n width: 325px;\n -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n.noty_progressbar {\n display: none; }\n\n.noty_has_timeout.noty_has_progressbar .noty_progressbar {\n display: block;\n position: absolute;\n left: 0;\n bottom: 0;\n height: 3px;\n width: 100%;\n background-color: #646464;\n opacity: 0.2;\n filter: alpha(opacity=10); }\n\n.noty_bar {\n -webkit-backface-visibility: hidden;\n -webkit-transform: translate(0, 0) translateZ(0) scale(1, 1);\n -ms-transform: translate(0, 0) scale(1, 1);\n transform: translate(0, 0) scale(1, 1);\n -webkit-font-smoothing: subpixel-antialiased;\n overflow: hidden; }\n\n.noty_effects_open {\n opacity: 0;\n -webkit-transform: translate(50%);\n -ms-transform: translate(50%);\n transform: translate(50%);\n -webkit-animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n.noty_effects_close {\n -webkit-animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n.noty_fix_effects_height {\n -webkit-animation: noty_anim_height 75ms ease-out;\n animation: noty_anim_height 75ms ease-out; }\n\n.noty_close_with_click {\n cursor: pointer; }\n\n.noty_close_button {\n position: absolute;\n top: 2px;\n right: 2px;\n font-weight: bold;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 2px;\n cursor: pointer;\n -webkit-transition: all .2s ease-out;\n transition: all .2s ease-out; }\n\n.noty_close_button:hover {\n background-color: rgba(0, 0, 0, 0.1); }\n\n.noty_modal {\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: #000;\n z-index: 10000;\n opacity: .3;\n left: 0;\n top: 0; }\n\n.noty_modal.noty_modal_open {\n opacity: 0;\n -webkit-animation: noty_modal_in .3s ease-out;\n animation: noty_modal_in .3s ease-out; }\n\n.noty_modal.noty_modal_close {\n -webkit-animation: noty_modal_out .3s ease-out;\n animation: noty_modal_out .3s ease-out;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n@-webkit-keyframes noty_modal_in {\n 100% {\n opacity: .3; } }\n\n@keyframes noty_modal_in {\n 100% {\n opacity: .3; } }\n\n@-webkit-keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@-webkit-keyframes noty_anim_in {\n 100% {\n -webkit-transform: translate(0);\n transform: translate(0);\n opacity: 1; } }\n\n@keyframes noty_anim_in {\n 100% {\n -webkit-transform: translate(0);\n transform: translate(0);\n opacity: 1; } }\n\n@-webkit-keyframes noty_anim_out {\n 100% {\n -webkit-transform: translate(50%);\n transform: translate(50%);\n opacity: 0; } }\n\n@keyframes noty_anim_out {\n 100% {\n -webkit-transform: translate(50%);\n transform: translate(50%);\n opacity: 0; } }\n\n@-webkit-keyframes noty_anim_height {\n 100% {\n height: 0; } }\n\n@keyframes noty_anim_height {\n 100% {\n height: 0; } }",""]);const a=s},25289(t,n,e){"use strict";e.d(n,{A:()=>a});var o=e(31601),i=e.n(o),r=e(76314),s=e.n(r)()(i());s.push([t.id,".noty_theme__mint.noty_bar {\n margin: 4px 0;\n overflow: hidden;\n border-radius: 2px;\n position: relative; }\n .noty_theme__mint.noty_bar .noty_body {\n padding: 10px;\n font-size: 14px; }\n .noty_theme__mint.noty_bar .noty_buttons {\n padding: 10px; }\n\n.noty_theme__mint.noty_type__alert,\n.noty_theme__mint.noty_type__notification {\n background-color: #fff;\n border-bottom: 1px solid #D1D1D1;\n color: #2F2F2F; }\n\n.noty_theme__mint.noty_type__warning {\n background-color: #FFAE42;\n border-bottom: 1px solid #E89F3C;\n color: #fff; }\n\n.noty_theme__mint.noty_type__error {\n background-color: #DE636F;\n border-bottom: 1px solid #CA5A65;\n color: #fff; }\n\n.noty_theme__mint.noty_type__info,\n.noty_theme__mint.noty_type__information {\n background-color: #7F7EFF;\n border-bottom: 1px solid #7473E8;\n color: #fff; }\n\n.noty_theme__mint.noty_type__success {\n background-color: #AFC765;\n border-bottom: 1px solid #A0B55C;\n color: #fff; }\n",""]);const a=s},93413(t){var n;n=function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.css=n.deepExtend=n.animationEndEvents=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n.inArray=function(t,n,e){var o=void 0;if(e){for(o in n)if(n.hasOwnProperty(o)&&n[o]===t)return!0}else for(o in n)if(n.hasOwnProperty(o)&&n[o]===t)return!0;return!1},n.stopPropagation=function(t){void 0!==(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0},n.generateID=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="noty_"+t+"_";return n+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},n.outerHeight=function(t){var n=t.offsetHeight,e=window.getComputedStyle(t);return n+=parseInt(e.marginTop)+parseInt(e.marginBottom)},n.addListener=r,n.hasClass=s,n.addClass=function(t,n){var e=u(t),o=e+n;s(e,n)||(t.className=o.substring(1))},n.removeClass=function(t,n){var e=u(t),o=void 0;s(t,n)&&(o=e.replace(" "+n+" "," "),t.className=o.substring(1,o.length-1))},n.remove=a,n.classList=u,n.visibilityChangeFlow=function(){var t=void 0,n=void 0;function e(){i.PageHidden?setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].stop()})},100):setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].resume()}),i.queueRenderAll()},100)}void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),n&&r(document,n,function(){i.PageHidden=document[t],e()}),r(window,"blur",function(){i.PageHidden=!0,e()}),r(window,"focus",function(){i.PageHidden=!1,e()})},n.createAudioElements=function(t){if(t.hasSound){var n=document.createElement("audio");t.options.sounds.sources.forEach(function(t){var e=document.createElement("source");e.src=t,e.type="audio/"+t.match(/\.([^.]+)$/)[1],n.appendChild(e)}),t.barDom?t.barDom.appendChild(n):document.querySelector("body").appendChild(n),n.volume=t.options.sounds.volume,t.soundPlayed||(n.play(),t.soundPlayed=!0),n.onended=function(){a(n)}}};var i=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(1));function r(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n.split(" ");for(var i=0;i<n.length;i++)document.addEventListener?t.addEventListener(n[i],e,o):document.attachEvent&&t.attachEvent("on"+n[i],e)}function s(t,n){return("string"==typeof t?t:u(t)).indexOf(" "+n+" ")>=0}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}n.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n.deepExtend=function t(n){n=n||{};for(var e=1;e<arguments.length;e++){var i=arguments[e];if(i)for(var r in i)i.hasOwnProperty(r)&&(Array.isArray(i[r])?n[r]=i[r]:"object"===o(i[r])&&null!==i[r]?n[r]=t(n[r],i[r]):n[r]=i[r])}return n},n.css=function(){var t=["Webkit","O","Moz","ms"],n={};function e(e){return e=e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,n){return n.toUpperCase()}),n[e]||(n[e]=function(n){var e=document.body.style;if(n in e)return n;for(var o=t.length,i=n.charAt(0).toUpperCase()+n.slice(1),r=void 0;o--;)if((r=t[o]+i)in e)return r;return n}(e))}function o(t,n,o){n=e(n),t.style[n]=o}return function(t,n){var e=arguments,i=void 0,r=void 0;if(2===e.length)for(i in n)n.hasOwnProperty(i)&&void 0!==(r=n[i])&&n.hasOwnProperty(i)&&o(t,i,r);else o(t,e[1],e[2])}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Defaults=n.Store=n.Queues=n.DefaultMaxVisible=n.docTitle=n.DocModalCount=n.PageHidden=void 0,n.getQueueCounts=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global",n=0,e=a;return u.hasOwnProperty(t)&&(e=u[t].maxVisible,Object.keys(l).forEach(function(e){l[e].options.queue!==t||l[e].closed||n++})),{current:n,maxVisible:e}},n.addToQueue=function(t){u.hasOwnProperty(t.options.queue)||(u[t.options.queue]={maxVisible:a,queue:[]}),u[t.options.queue].queue.push(t)},n.removeFromQueue=function(t){if(u.hasOwnProperty(t.options.queue)){var n=[];Object.keys(u[t.options.queue].queue).forEach(function(e){u[t.options.queue].queue[e].id!==t.id&&n.push(u[t.options.queue].queue[e])}),u[t.options.queue].queue=n}},n.queueRender=c,n.queueRenderAll=function(){Object.keys(u).forEach(function(t){c(t)})},n.ghostFix=function(t){var n=o.generateID("ghost"),e=document.createElement("div");e.setAttribute("id",n),o.css(e,{height:o.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",e.outerHTML),o.remove(t.barDom),e=document.getElementById(n),o.addClass(e,"noty_fix_effects_height"),o.addListener(e,o.animationEndEvents,function(){o.remove(e)})},n.build=function(t){!function(t){if(t.options.container)t.layoutDom=document.querySelector(t.options.container);else{var n="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+n),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",n),t.layoutDom.setAttribute("role","alert"),t.layoutDom.setAttribute("aria-live","polite"),o.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}}(t);var n='<div class="noty_body">'+t.options.text+"</div>"+function(t){if(d(t)){var n=document.createElement("div");return o.addClass(n,"noty_buttons"),Object.keys(t.options.buttons).forEach(function(e){n.appendChild(t.options.buttons[e].dom)}),t.options.buttons.forEach(function(t){n.appendChild(t.dom)}),n.outerHTML}return""}(t)+'<div class="noty_progressbar"></div>';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),o.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=n,p(t,"onTemplate")},n.hasButtons=d,n.handleModal=function(t){var e,r;t.options.modal&&(0===i&&(e=document.querySelector("body"),r=document.createElement("div"),o.addClass(r,"noty_modal"),e.insertBefore(r,e.firstChild),o.addClass(r,"noty_modal_open"),o.addListener(r,o.animationEndEvents,function(){o.removeClass(r,"noty_modal_open")})),n.DocModalCount=i+=1)},n.handleModalClose=function(t){if(t.options.modal&&i>0&&(n.DocModalCount=i-=1,i<=0)){var e=document.querySelector(".noty_modal");e&&(o.removeClass(e,"noty_modal_open"),o.addClass(e,"noty_modal_close"),o.addListener(e,o.animationEndEvents,function(){o.remove(e)}))}},n.queueClose=f,n.dequeueClose=h,n.fire=p,n.openFlow=function(t){p(t,"afterShow"),f(t),o.addListener(t.barDom,"mouseenter",function(){h(t)}),o.addListener(t.barDom,"mouseleave",function(){f(t)})},n.closeFlow=function(t){delete l[t.id],t.closing=!1,p(t,"afterClose"),o.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||o.remove(t.layoutDom),(o.inArray("docVisible",t.options.titleCount.conditions)||o.inArray("docHidden",t.options.titleCount.conditions))&&s.decrement(),c(t.options.queue)};var o=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));n.PageHidden=!1;var i=n.DocModalCount=0,r={originalTitle:null,count:0,changed:!1,timer:-1},s=n.docTitle={increment:function(){r.count++,s._update()},decrement:function(){r.count--,r.count<=0?s._clear():s._update()},_update:function(){var t=document.title;r.changed?document.title="("+r.count+") "+r.originalTitle:(r.originalTitle=t,document.title="("+r.count+") "+t,r.changed=!0)},_clear:function(){r.changed&&(r.count=0,document.title=r.originalTitle,r.changed=!1)}},a=n.DefaultMaxVisible=5,u=n.Queues={global:{maxVisible:a,queue:[]}},l=n.Store={};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";if(u.hasOwnProperty(t)){var n=u[t].queue.shift();n&&n.show()}}function d(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function f(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&o.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout(function(){t.close()},t.options.timeout))}function h(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&o.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function p(t,n){t.listeners.hasOwnProperty(n)&&t.listeners[n].forEach(function(n){"function"==typeof n&&n.apply(t)})}n.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NotyButton=void 0;var o=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));n.NotyButton=function t(n,e,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom=document.createElement("button"),this.dom.innerHTML=n,this.id=s.id=s.id||o.generateID("button"),this.cb=i,Object.keys(s).forEach(function(t){r.dom.setAttribute(t,s[t])}),o.addClass(this.dom,e||"noty_btn"),this}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}();n.Push=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.subData={},this.workerPath=n,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return o(t,[{key:"on",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof n&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(n),this}},{key:"fire",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(n,e)})}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var n=t.endpoint,e=t.subscriptionId;return e&&-1===n.indexOf(e)&&(n+="/"+e),n}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var t=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(n){var e=!0,o=!1,i=void 0;try{for(var r,s=n[Symbol.iterator]();!(e=(r=s.next()).done);e=!0)r.value.unregister(),t.fire("onSubscriptionCancel")}catch(t){o=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(o)throw i}}})}},{key:"requestSubscription",value:function(){var t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this,o=this.getPermissionStatus(),i=function(o){"granted"===o?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then(function(){navigator.serviceWorker.ready.then(function(t){e.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:n}).then(function(t){var n=t.getKey("p256dh"),o=t.getKey("auth");e.subData={endpoint:e.getEndpoint(t),p256dh:n?window.btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null,auth:o?window.btoa(String.fromCharCode.apply(null,new Uint8Array(o))):null},e.fire("onSubscriptionSuccess",[e.subData])}).catch(function(t){e.fire("onWorkerError",[t])})})}):e.fire("onWorkerNotSupported")):"denied"===o&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===o?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(o)}}]),t}()},function(t,n,e){(function(n,o){var i;i=function(){"use strict";function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,s=void 0,a=void 0,u=function(t,n){m[r]=t,m[r+1]=n,2===(r+=2)&&(a?a(y):g())},l="undefined"!=typeof window?window:void 0,c=l||{},d=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var t=setTimeout;return function(){return t(y,1)}}var m=new Array(1e3);function y(){for(var t=0;t<r;t+=2)(0,m[t])(m[t+1]),m[t]=void 0,m[t+1]=void 0;r=0}var b,_,v,w,g=void 0;function k(t,n){var e=arguments,o=this,i=new this.constructor(D);void 0===i[C]&&V(i);var r,s=o._state;return s?(r=e[s-1],u(function(){return Q(s,i,r,o._result)})):H(o,i,t,n),i}function x(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var n=new this(D);return M(n,t),n}f?g=function(){return n.nextTick(y)}:d?(_=0,v=new d(y),w=document.createTextNode(""),v.observe(w,{characterData:!0}),g=function(){w.data=_=++_%2}):h?((b=new MessageChannel).port1.onmessage=y,g=function(){return b.port2.postMessage(0)}):g=void 0===l?function(){try{var t=e(9);return void 0!==(s=t.runOnLoop||t.runOnContext)?function(){s(y)}:p()}catch(t){return p()}}():p();var C=Math.random().toString(36).substring(16);function D(){}var S=void 0,E=1,P=2,T=new F;function A(t){try{return t.then}catch(t){return T.error=t,T}}function O(n,e,o){e.constructor===n.constructor&&o===k&&e.constructor.resolve===x?function(t,n){n._state===E?L(t,n._result):n._state===P?j(t,n._result):H(n,void 0,function(n){return M(t,n)},function(n){return j(t,n)})}(n,e):o===T?(j(n,T.error),T.error=null):void 0===o?L(n,e):t(o)?function(t,n,e){u(function(t){var o=!1,i=function(t,n,e,o){try{t.call(n,e,o)}catch(t){return t}}(e,n,function(e){o||(o=!0,n!==e?M(t,e):L(t,e))},function(n){o||(o=!0,j(t,n))},t._label);!o&&i&&(o=!0,j(t,i))},t)}(n,e,o):L(n,e)}function M(t,n){var e,o;t===n?j(t,new TypeError("You cannot resolve a promise with itself")):(o=typeof(e=n),null===e||"object"!==o&&"function"!==o?L(t,n):O(t,n,A(n)))}function q(t){t._onerror&&t._onerror(t._result),N(t)}function L(t,n){t._state===S&&(t._result=n,t._state=E,0!==t._subscribers.length&&u(N,t))}function j(t,n){t._state===S&&(t._state=P,t._result=n,u(q,t))}function H(t,n,e,o){var i=t._subscribers,r=i.length;t._onerror=null,i[r]=n,i[r+E]=e,i[r+P]=o,0===r&&t._state&&u(N,t)}function N(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var o=void 0,i=void 0,r=t._result,s=0;s<n.length;s+=3)o=n[s],i=n[s+e],o?Q(e,o,i,r):i(r);t._subscribers.length=0}}function F(){this.error=null}var W=new F;function Q(n,e,o,i){var r=t(o),s=void 0,a=void 0,u=void 0,l=void 0;if(r){if(s=function(t,n){try{return t(n)}catch(t){return W.error=t,W}}(o,i),s===W?(l=!0,a=s.error,s.error=null):u=!0,e===s)return void j(e,new TypeError("A promises callback cannot return that same promise."))}else s=i,u=!0;e._state!==S||(r&&u?M(e,s):l?j(e,a):n===E?L(e,s):n===P&&j(e,s))}var B=0;function V(t){t[C]=B++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Z(t,n){this._instanceConstructor=t,this.promise=new t(D),this.promise[C]||V(this.promise),i(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&L(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}function z(t){this[C]=B++,this._result=this._state=void 0,this._subscribers=[],D!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof z?function(t,n){try{n(function(n){M(t,n)},function(n){j(t,n)})}catch(n){j(t,n)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return Z.prototype._enumerate=function(t){for(var n=0;this._state===S&&n<t.length;n++)this._eachEntry(t[n],n)},Z.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,o=e.resolve;if(o===x){var i=A(t);if(i===k&&t._state!==S)this._settledAt(t._state,n,t._result);else if("function"!=typeof i)this._remaining--,this._result[n]=t;else if(e===z){var r=new e(D);O(r,t,i),this._willSettleAt(r,n)}else this._willSettleAt(new e(function(n){return n(t)}),n)}else this._willSettleAt(o(t),n)},Z.prototype._settledAt=function(t,n,e){var o=this.promise;o._state===S&&(this._remaining--,t===P?j(o,e):this._result[n]=e),0===this._remaining&&L(o,this._result)},Z.prototype._willSettleAt=function(t,n){var e=this;H(t,void 0,function(t){return e._settledAt(E,n,t)},function(t){return e._settledAt(P,n,t)})},z.all=function(t){return new Z(this,t).promise},z.race=function(t){var n=this;return i(t)?new n(function(e,o){for(var i=t.length,r=0;r<i;r++)n.resolve(t[r]).then(e,o)}):new n(function(t,n){return n(new TypeError("You must pass an array to race."))})},z.resolve=x,z.reject=function(t){var n=new this(D);return j(n,t),n},z._setScheduler=function(t){a=t},z._setAsap=function(t){u=t},z._asap=u,z.prototype={constructor:z,then:k,catch:function(t){return this.then(null,t)}},z.polyfill=function(){var t=void 0;if(void 0!==o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var e=null;try{e=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===e&&!n.cast)return}t.Promise=z},z.Promise=z,z},t.exports=i()}).call(n,e(7),e(8))},function(t,n){},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}();e(5);var i,r=e(4),s=(i=r)&&i.__esModule?i:{default:i},a=d(e(0)),u=d(e(1)),l=e(2),c=e(3);function d(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=a.deepExtend({},u.Defaults,n),u.Store[this.options.id]?u.Store[this.options.id]:(this.id=this.options.id||a.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this)}return o(t,[{key:"on",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof n&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(n),this}},{key:"show",value:function(){var n=this;if(this.showing||this.shown)return this;!0===this.options.killer?t.closeAll():"string"==typeof this.options.killer&&t.closeAll(this.options.killer);var e=u.getQueueCounts(this.options.queue);if(e.current>=e.maxVisible||u.PageHidden&&this.options.visibilityControl)return u.addToQueue(this),u.PageHidden&&this.hasSound&&a.inArray("docHidden",this.options.sounds.conditions)&&a.createAudioElements(this),u.PageHidden&&a.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this;if(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing)return this.showing=!1,this;if(u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&a.inArray("docVisible",this.options.sounds.conditions)&&a.createAudioElements(this),a.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach(function(t){var e=n.barDom.querySelector("#"+n.options.buttons[t].id);a.addListener(e,"click",function(e){a.stopPropagation(e),n.options.buttons[t].cb(n)})}),this.progressDom=this.barDom.querySelector(".noty_progressbar"),a.inArray("click",this.options.closeWith)&&(a.addClass(this.barDom,"noty_close_with_click"),a.addListener(this.barDom,"click",function(t){a.stopPropagation(t),u.fire(n,"onClick"),n.close()},!1)),a.addListener(this.barDom,"mouseenter",function(){u.fire(n,"onHover")},!1),this.options.timeout&&a.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&a.addClass(this.barDom,"noty_has_progressbar"),a.inArray("button",this.options.closeWith)){a.addClass(this.barDom,"noty_close_with_button");var o=document.createElement("div");a.addClass(o,"noty_close_button"),o.innerHTML="×",this.barDom.appendChild(o),a.addListener(o,"click",function(t){a.stopPropagation(t),n.close()},!1)}return u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new s.default(function(t){t()}):"function"==typeof this.options.animation.open?this.promises.show=new s.default(this.options.animation.open.bind(this)):(a.addClass(this.barDom,this.options.animation.open),this.promises.show=new s.default(function(t){a.addListener(n.barDom,a.animationEndEvents,function(){a.removeClass(n.barDom,n.options.animation.open),t()})})),this.promises.show.then(function(){var t=n;setTimeout(function(){u.openFlow(t)},100)}),this}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}(function(t){if(this.stop(),this.options.timeout=t,this.barDom){this.options.timeout?a.addClass(this.barDom,"noty_has_timeout"):a.removeClass(this.barDom,"noty_has_timeout");var n=this;setTimeout(function(){n.resume()},100)}return this})},{key:"setText",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),n&&(this.options.text=t),this}},{key:"setType",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach(function(t){"noty_type__"===t.substring(0,11)&&a.removeClass(n.barDom,t)}),a.addClass(this.barDom,"noty_type__"+t)),e&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach(function(t){"noty_theme__"===t.substring(0,12)&&a.removeClass(n.barDom,t)}),a.addClass(this.barDom,"noty_theme__"+t)),e&&(this.options.theme=t),this}},{key:"close",value:function(){var t=this;return this.closed?this:this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close||!1===this.options.animation.close?this.promises.close=new s.default(function(t){t()}):"function"==typeof this.options.animation.close?this.promises.close=new s.default(this.options.animation.close.bind(this)):(a.addClass(this.barDom,this.options.animation.close),this.promises.close=new s.default(function(n){a.addListener(t.barDom,a.animationEndEvents,function(){t.options.force?a.remove(t.barDom):u.ghostFix(t),n()})})),this.promises.close.then(function(){u.closeFlow(t),u.handleModalClose(t)}),this.closed=!0,this):(u.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach(function(n){t?u.Store[n].options.queue===t&&u.Store[n].killable&&u.Store[n].close():u.Store[n].killable&&u.Store[n].close()}),this}},{key:"clearQueue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";return u.Queues.hasOwnProperty(t)&&(u.Queues[t].queue=[]),this}},{key:"overrideDefaults",value:function(t){return u.Defaults=a.deepExtend({},u.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(n)||(u.Queues[n]={maxVisible:t,queue:[]}),u.Queues[n].maxVisible=t,this}},{key:"button",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new l.NotyButton(t,n,e,o)}},{key:"version",value:function(){return"3.2.0-beta"}},{key:"Push",value:function(t){return new c.Push(t)}},{key:"Queues",get:function(){return u.Queues}},{key:"PageHidden",get:function(){return u.PageHidden}}]),t}();n.default=f,"undefined"!=typeof window&&a.visibilityChangeFlow(),t.exports=n.default},function(t,n){var e,o,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(t){o=s}}();var u,l=[],c=!1,d=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var n=l.length;n;){for(u=l,l=[];++d<n;)u&&u[d].run();d=-1,n=l.length}u=null,c=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(n){try{return o.call(null,t)}catch(n){return o.call(this,t)}}}(t)}}function p(t,n){this.fun=t,this.array=n}function m(){}i.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];l.push(new p(t,n)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){}])},t.exports=n()}}]);
|
|
1
|
+
/*! For license information please see npm.noty.2eab57f475fb39eb37db.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[8180],{19186(t,n,e){"use strict";var o=e(31601),i=e.n(o),r=e(76314),s=e.n(r)()(i());s.push([t.id,".noty_layout_mixin, #noty_layout__top, #noty_layout__topLeft, #noty_layout__topCenter, #noty_layout__topRight, #noty_layout__bottom, #noty_layout__bottomLeft, #noty_layout__bottomCenter, #noty_layout__bottomRight, #noty_layout__center, #noty_layout__centerLeft, #noty_layout__centerRight {\n position: fixed;\n margin: 0;\n padding: 0;\n z-index: 9999999;\n -webkit-transform: translateZ(0) scale(1, 1);\n transform: translateZ(0) scale(1, 1);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-font-smoothing: subpixel-antialiased;\n filter: blur(0);\n -webkit-filter: blur(0);\n max-width: 90%; }\n\n#noty_layout__top {\n top: 0;\n left: 5%;\n width: 90%; }\n\n#noty_layout__topLeft {\n top: 20px;\n left: 20px;\n width: 325px; }\n\n#noty_layout__topCenter {\n top: 5%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__topRight {\n top: 20px;\n right: 20px;\n width: 325px; }\n\n#noty_layout__bottom {\n bottom: 0;\n left: 5%;\n width: 90%; }\n\n#noty_layout__bottomLeft {\n bottom: 20px;\n left: 20px;\n width: 325px; }\n\n#noty_layout__bottomCenter {\n bottom: 5%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__bottomRight {\n bottom: 20px;\n right: 20px;\n width: 325px; }\n\n#noty_layout__center {\n top: 50%;\n left: 50%;\n width: 325px;\n -webkit-transform: translate(-webkit-calc(-50% - .5px), -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(calc(-50% - .5px), calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__centerLeft {\n top: 50%;\n left: 20px;\n width: 325px;\n -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n#noty_layout__centerRight {\n top: 50%;\n right: 20px;\n width: 325px;\n -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);\n transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }\n\n.noty_progressbar {\n display: none; }\n\n.noty_has_timeout.noty_has_progressbar .noty_progressbar {\n display: block;\n position: absolute;\n left: 0;\n bottom: 0;\n height: 3px;\n width: 100%;\n background-color: #646464;\n opacity: 0.2;\n filter: alpha(opacity=10); }\n\n.noty_bar {\n -webkit-backface-visibility: hidden;\n -webkit-transform: translate(0, 0) translateZ(0) scale(1, 1);\n -ms-transform: translate(0, 0) scale(1, 1);\n transform: translate(0, 0) scale(1, 1);\n -webkit-font-smoothing: subpixel-antialiased;\n overflow: hidden; }\n\n.noty_effects_open {\n opacity: 0;\n -webkit-transform: translate(50%);\n -ms-transform: translate(50%);\n transform: translate(50%);\n -webkit-animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n.noty_effects_close {\n -webkit-animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n.noty_fix_effects_height {\n -webkit-animation: noty_anim_height 75ms ease-out;\n animation: noty_anim_height 75ms ease-out; }\n\n.noty_close_with_click {\n cursor: pointer; }\n\n.noty_close_button {\n position: absolute;\n top: 2px;\n right: 2px;\n font-weight: bold;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 2px;\n cursor: pointer;\n -webkit-transition: all .2s ease-out;\n transition: all .2s ease-out; }\n\n.noty_close_button:hover {\n background-color: rgba(0, 0, 0, 0.1); }\n\n.noty_modal {\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: #000;\n z-index: 10000;\n opacity: .3;\n left: 0;\n top: 0; }\n\n.noty_modal.noty_modal_open {\n opacity: 0;\n -webkit-animation: noty_modal_in .3s ease-out;\n animation: noty_modal_in .3s ease-out; }\n\n.noty_modal.noty_modal_close {\n -webkit-animation: noty_modal_out .3s ease-out;\n animation: noty_modal_out .3s ease-out;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards; }\n\n@-webkit-keyframes noty_modal_in {\n 100% {\n opacity: .3; } }\n\n@keyframes noty_modal_in {\n 100% {\n opacity: .3; } }\n\n@-webkit-keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@keyframes noty_modal_out {\n 100% {\n opacity: 0; } }\n\n@-webkit-keyframes noty_anim_in {\n 100% {\n -webkit-transform: translate(0);\n transform: translate(0);\n opacity: 1; } }\n\n@keyframes noty_anim_in {\n 100% {\n -webkit-transform: translate(0);\n transform: translate(0);\n opacity: 1; } }\n\n@-webkit-keyframes noty_anim_out {\n 100% {\n -webkit-transform: translate(50%);\n transform: translate(50%);\n opacity: 0; } }\n\n@keyframes noty_anim_out {\n 100% {\n -webkit-transform: translate(50%);\n transform: translate(50%);\n opacity: 0; } }\n\n@-webkit-keyframes noty_anim_height {\n 100% {\n height: 0; } }\n\n@keyframes noty_anim_height {\n 100% {\n height: 0; } }",""]);const a=s;e.d(n,["A",0,a])},25289(t,n,e){"use strict";var o=e(31601),i=e.n(o),r=e(76314),s=e.n(r)()(i());s.push([t.id,".noty_theme__mint.noty_bar {\n margin: 4px 0;\n overflow: hidden;\n border-radius: 2px;\n position: relative; }\n .noty_theme__mint.noty_bar .noty_body {\n padding: 10px;\n font-size: 14px; }\n .noty_theme__mint.noty_bar .noty_buttons {\n padding: 10px; }\n\n.noty_theme__mint.noty_type__alert,\n.noty_theme__mint.noty_type__notification {\n background-color: #fff;\n border-bottom: 1px solid #D1D1D1;\n color: #2F2F2F; }\n\n.noty_theme__mint.noty_type__warning {\n background-color: #FFAE42;\n border-bottom: 1px solid #E89F3C;\n color: #fff; }\n\n.noty_theme__mint.noty_type__error {\n background-color: #DE636F;\n border-bottom: 1px solid #CA5A65;\n color: #fff; }\n\n.noty_theme__mint.noty_type__info,\n.noty_theme__mint.noty_type__information {\n background-color: #7F7EFF;\n border-bottom: 1px solid #7473E8;\n color: #fff; }\n\n.noty_theme__mint.noty_type__success {\n background-color: #AFC765;\n border-bottom: 1px solid #A0B55C;\n color: #fff; }\n",""]);const a=s;e.d(n,["A",0,a])},93413(t){var n;n=function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.css=n.deepExtend=n.animationEndEvents=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n.inArray=function(t,n,e){var o=void 0;if(e){for(o in n)if(n.hasOwnProperty(o)&&n[o]===t)return!0}else for(o in n)if(n.hasOwnProperty(o)&&n[o]===t)return!0;return!1},n.stopPropagation=function(t){void 0!==(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0},n.generateID=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="noty_"+t+"_";return n+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},n.outerHeight=function(t){var n=t.offsetHeight,e=window.getComputedStyle(t);return n+=parseInt(e.marginTop)+parseInt(e.marginBottom)},n.addListener=r,n.hasClass=s,n.addClass=function(t,n){var e=u(t),o=e+n;s(e,n)||(t.className=o.substring(1))},n.removeClass=function(t,n){var e=u(t),o=void 0;s(t,n)&&(o=e.replace(" "+n+" "," "),t.className=o.substring(1,o.length-1))},n.remove=a,n.classList=u,n.visibilityChangeFlow=function(){var t=void 0,n=void 0;function e(){i.PageHidden?setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].stop()})},100):setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].resume()}),i.queueRenderAll()},100)}void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),n&&r(document,n,function(){i.PageHidden=document[t],e()}),r(window,"blur",function(){i.PageHidden=!0,e()}),r(window,"focus",function(){i.PageHidden=!1,e()})},n.createAudioElements=function(t){if(t.hasSound){var n=document.createElement("audio");t.options.sounds.sources.forEach(function(t){var e=document.createElement("source");e.src=t,e.type="audio/"+t.match(/\.([^.]+)$/)[1],n.appendChild(e)}),t.barDom?t.barDom.appendChild(n):document.querySelector("body").appendChild(n),n.volume=t.options.sounds.volume,t.soundPlayed||(n.play(),t.soundPlayed=!0),n.onended=function(){a(n)}}};var i=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(1));function r(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n.split(" ");for(var i=0;i<n.length;i++)document.addEventListener?t.addEventListener(n[i],e,o):document.attachEvent&&t.attachEvent("on"+n[i],e)}function s(t,n){return("string"==typeof t?t:u(t)).indexOf(" "+n+" ")>=0}function a(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}n.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n.deepExtend=function t(n){n=n||{};for(var e=1;e<arguments.length;e++){var i=arguments[e];if(i)for(var r in i)i.hasOwnProperty(r)&&(Array.isArray(i[r])?n[r]=i[r]:"object"===o(i[r])&&null!==i[r]?n[r]=t(n[r],i[r]):n[r]=i[r])}return n},n.css=function(){var t=["Webkit","O","Moz","ms"],n={};function e(e){return e=e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,n){return n.toUpperCase()}),n[e]||(n[e]=function(n){var e=document.body.style;if(n in e)return n;for(var o=t.length,i=n.charAt(0).toUpperCase()+n.slice(1),r=void 0;o--;)if((r=t[o]+i)in e)return r;return n}(e))}function o(t,n,o){n=e(n),t.style[n]=o}return function(t,n){var e=arguments,i=void 0,r=void 0;if(2===e.length)for(i in n)n.hasOwnProperty(i)&&void 0!==(r=n[i])&&n.hasOwnProperty(i)&&o(t,i,r);else o(t,e[1],e[2])}}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Defaults=n.Store=n.Queues=n.DefaultMaxVisible=n.docTitle=n.DocModalCount=n.PageHidden=void 0,n.getQueueCounts=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global",n=0,e=a;return u.hasOwnProperty(t)&&(e=u[t].maxVisible,Object.keys(l).forEach(function(e){l[e].options.queue!==t||l[e].closed||n++})),{current:n,maxVisible:e}},n.addToQueue=function(t){u.hasOwnProperty(t.options.queue)||(u[t.options.queue]={maxVisible:a,queue:[]}),u[t.options.queue].queue.push(t)},n.removeFromQueue=function(t){if(u.hasOwnProperty(t.options.queue)){var n=[];Object.keys(u[t.options.queue].queue).forEach(function(e){u[t.options.queue].queue[e].id!==t.id&&n.push(u[t.options.queue].queue[e])}),u[t.options.queue].queue=n}},n.queueRender=c,n.queueRenderAll=function(){Object.keys(u).forEach(function(t){c(t)})},n.ghostFix=function(t){var n=o.generateID("ghost"),e=document.createElement("div");e.setAttribute("id",n),o.css(e,{height:o.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",e.outerHTML),o.remove(t.barDom),e=document.getElementById(n),o.addClass(e,"noty_fix_effects_height"),o.addListener(e,o.animationEndEvents,function(){o.remove(e)})},n.build=function(t){!function(t){if(t.options.container)t.layoutDom=document.querySelector(t.options.container);else{var n="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+n),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",n),t.layoutDom.setAttribute("role","alert"),t.layoutDom.setAttribute("aria-live","polite"),o.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}}(t);var n='<div class="noty_body">'+t.options.text+"</div>"+function(t){if(d(t)){var n=document.createElement("div");return o.addClass(n,"noty_buttons"),Object.keys(t.options.buttons).forEach(function(e){n.appendChild(t.options.buttons[e].dom)}),t.options.buttons.forEach(function(t){n.appendChild(t.dom)}),n.outerHTML}return""}(t)+'<div class="noty_progressbar"></div>';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),o.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=n,p(t,"onTemplate")},n.hasButtons=d,n.handleModal=function(t){var e,r;t.options.modal&&(0===i&&(e=document.querySelector("body"),r=document.createElement("div"),o.addClass(r,"noty_modal"),e.insertBefore(r,e.firstChild),o.addClass(r,"noty_modal_open"),o.addListener(r,o.animationEndEvents,function(){o.removeClass(r,"noty_modal_open")})),n.DocModalCount=i+=1)},n.handleModalClose=function(t){if(t.options.modal&&i>0&&(n.DocModalCount=i-=1,i<=0)){var e=document.querySelector(".noty_modal");e&&(o.removeClass(e,"noty_modal_open"),o.addClass(e,"noty_modal_close"),o.addListener(e,o.animationEndEvents,function(){o.remove(e)}))}},n.queueClose=f,n.dequeueClose=h,n.fire=p,n.openFlow=function(t){p(t,"afterShow"),f(t),o.addListener(t.barDom,"mouseenter",function(){h(t)}),o.addListener(t.barDom,"mouseleave",function(){f(t)})},n.closeFlow=function(t){delete l[t.id],t.closing=!1,p(t,"afterClose"),o.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||o.remove(t.layoutDom),(o.inArray("docVisible",t.options.titleCount.conditions)||o.inArray("docHidden",t.options.titleCount.conditions))&&s.decrement(),c(t.options.queue)};var o=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));n.PageHidden=!1;var i=n.DocModalCount=0,r={originalTitle:null,count:0,changed:!1,timer:-1},s=n.docTitle={increment:function(){r.count++,s._update()},decrement:function(){r.count--,r.count<=0?s._clear():s._update()},_update:function(){var t=document.title;r.changed?document.title="("+r.count+") "+r.originalTitle:(r.originalTitle=t,document.title="("+r.count+") "+t,r.changed=!0)},_clear:function(){r.changed&&(r.count=0,document.title=r.originalTitle,r.changed=!1)}},a=n.DefaultMaxVisible=5,u=n.Queues={global:{maxVisible:a,queue:[]}},l=n.Store={};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";if(u.hasOwnProperty(t)){var n=u[t].queue.shift();n&&n.show()}}function d(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function f(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&o.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout(function(){t.close()},t.options.timeout))}function h(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&o.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function p(t,n){t.listeners.hasOwnProperty(n)&&t.listeners[n].forEach(function(n){"function"==typeof n&&n.apply(t)})}n.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NotyButton=void 0;var o=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(0));n.NotyButton=function t(n,e,i){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom=document.createElement("button"),this.dom.innerHTML=n,this.id=s.id=s.id||o.generateID("button"),this.cb=i,Object.keys(s).forEach(function(t){r.dom.setAttribute(t,s[t])}),o.addClass(this.dom,e||"noty_btn"),this}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}();n.Push=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.subData={},this.workerPath=n,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return o(t,[{key:"on",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof n&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(n),this}},{key:"fire",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(n,e)})}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var n=t.endpoint,e=t.subscriptionId;return e&&-1===n.indexOf(e)&&(n+="/"+e),n}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var t=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(n){var e=!0,o=!1,i=void 0;try{for(var r,s=n[Symbol.iterator]();!(e=(r=s.next()).done);e=!0)r.value.unregister(),t.fire("onSubscriptionCancel")}catch(t){o=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(o)throw i}}})}},{key:"requestSubscription",value:function(){var t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this,o=this.getPermissionStatus(),i=function(o){"granted"===o?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then(function(){navigator.serviceWorker.ready.then(function(t){e.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:n}).then(function(t){var n=t.getKey("p256dh"),o=t.getKey("auth");e.subData={endpoint:e.getEndpoint(t),p256dh:n?window.btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null,auth:o?window.btoa(String.fromCharCode.apply(null,new Uint8Array(o))):null},e.fire("onSubscriptionSuccess",[e.subData])}).catch(function(t){e.fire("onWorkerError",[t])})})}):e.fire("onWorkerNotSupported")):"denied"===o&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===o?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(o)}}]),t}()},function(t,n,e){(function(n,o){var i;i=function(){"use strict";function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,s=void 0,a=void 0,u=function(t,n){m[r]=t,m[r+1]=n,2===(r+=2)&&(a?a(y):g())},l="undefined"!=typeof window?window:void 0,c=l||{},d=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var t=setTimeout;return function(){return t(y,1)}}var m=new Array(1e3);function y(){for(var t=0;t<r;t+=2)(0,m[t])(m[t+1]),m[t]=void 0,m[t+1]=void 0;r=0}var b,_,v,w,g=void 0;function k(t,n){var e=arguments,o=this,i=new this.constructor(D);void 0===i[C]&&V(i);var r,s=o._state;return s?(r=e[s-1],u(function(){return Q(s,i,r,o._result)})):H(o,i,t,n),i}function x(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var n=new this(D);return M(n,t),n}f?g=function(){return n.nextTick(y)}:d?(_=0,v=new d(y),w=document.createTextNode(""),v.observe(w,{characterData:!0}),g=function(){w.data=_=++_%2}):h?((b=new MessageChannel).port1.onmessage=y,g=function(){return b.port2.postMessage(0)}):g=void 0===l?function(){try{var t=e(9);return void 0!==(s=t.runOnLoop||t.runOnContext)?function(){s(y)}:p()}catch(t){return p()}}():p();var C=Math.random().toString(36).substring(16);function D(){}var S=void 0,E=1,P=2,T=new F;function A(t){try{return t.then}catch(t){return T.error=t,T}}function O(n,e,o){e.constructor===n.constructor&&o===k&&e.constructor.resolve===x?function(t,n){n._state===E?L(t,n._result):n._state===P?j(t,n._result):H(n,void 0,function(n){return M(t,n)},function(n){return j(t,n)})}(n,e):o===T?(j(n,T.error),T.error=null):void 0===o?L(n,e):t(o)?function(t,n,e){u(function(t){var o=!1,i=function(t,n,e,o){try{t.call(n,e,o)}catch(t){return t}}(e,n,function(e){o||(o=!0,n!==e?M(t,e):L(t,e))},function(n){o||(o=!0,j(t,n))},t._label);!o&&i&&(o=!0,j(t,i))},t)}(n,e,o):L(n,e)}function M(t,n){var e,o;t===n?j(t,new TypeError("You cannot resolve a promise with itself")):(o=typeof(e=n),null===e||"object"!==o&&"function"!==o?L(t,n):O(t,n,A(n)))}function q(t){t._onerror&&t._onerror(t._result),N(t)}function L(t,n){t._state===S&&(t._result=n,t._state=E,0!==t._subscribers.length&&u(N,t))}function j(t,n){t._state===S&&(t._state=P,t._result=n,u(q,t))}function H(t,n,e,o){var i=t._subscribers,r=i.length;t._onerror=null,i[r]=n,i[r+E]=e,i[r+P]=o,0===r&&t._state&&u(N,t)}function N(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var o=void 0,i=void 0,r=t._result,s=0;s<n.length;s+=3)o=n[s],i=n[s+e],o?Q(e,o,i,r):i(r);t._subscribers.length=0}}function F(){this.error=null}var W=new F;function Q(n,e,o,i){var r=t(o),s=void 0,a=void 0,u=void 0,l=void 0;if(r){if(s=function(t,n){try{return t(n)}catch(t){return W.error=t,W}}(o,i),s===W?(l=!0,a=s.error,s.error=null):u=!0,e===s)return void j(e,new TypeError("A promises callback cannot return that same promise."))}else s=i,u=!0;e._state!==S||(r&&u?M(e,s):l?j(e,a):n===E?L(e,s):n===P&&j(e,s))}var B=0;function V(t){t[C]=B++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Z(t,n){this._instanceConstructor=t,this.promise=new t(D),this.promise[C]||V(this.promise),i(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&L(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}function z(t){this[C]=B++,this._result=this._state=void 0,this._subscribers=[],D!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof z?function(t,n){try{n(function(n){M(t,n)},function(n){j(t,n)})}catch(n){j(t,n)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return Z.prototype._enumerate=function(t){for(var n=0;this._state===S&&n<t.length;n++)this._eachEntry(t[n],n)},Z.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,o=e.resolve;if(o===x){var i=A(t);if(i===k&&t._state!==S)this._settledAt(t._state,n,t._result);else if("function"!=typeof i)this._remaining--,this._result[n]=t;else if(e===z){var r=new e(D);O(r,t,i),this._willSettleAt(r,n)}else this._willSettleAt(new e(function(n){return n(t)}),n)}else this._willSettleAt(o(t),n)},Z.prototype._settledAt=function(t,n,e){var o=this.promise;o._state===S&&(this._remaining--,t===P?j(o,e):this._result[n]=e),0===this._remaining&&L(o,this._result)},Z.prototype._willSettleAt=function(t,n){var e=this;H(t,void 0,function(t){return e._settledAt(E,n,t)},function(t){return e._settledAt(P,n,t)})},z.all=function(t){return new Z(this,t).promise},z.race=function(t){var n=this;return i(t)?new n(function(e,o){for(var i=t.length,r=0;r<i;r++)n.resolve(t[r]).then(e,o)}):new n(function(t,n){return n(new TypeError("You must pass an array to race."))})},z.resolve=x,z.reject=function(t){var n=new this(D);return j(n,t),n},z._setScheduler=function(t){a=t},z._setAsap=function(t){u=t},z._asap=u,z.prototype={constructor:z,then:k,catch:function(t){return this.then(null,t)}},z.polyfill=function(){var t=void 0;if(void 0!==o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var e=null;try{e=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===e&&!n.cast)return}t.Promise=z},z.Promise=z,z},t.exports=i()}).call(n,e(7),e(8))},function(t,n){},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}();e(5);var i,r=e(4),s=(i=r)&&i.__esModule?i:{default:i},a=d(e(0)),u=d(e(1)),l=e(2),c=e(3);function d(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=a.deepExtend({},u.Defaults,n),u.Store[this.options.id]?u.Store[this.options.id]:(this.id=this.options.id||a.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this)}return o(t,[{key:"on",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof n&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(n),this}},{key:"show",value:function(){var n=this;if(this.showing||this.shown)return this;!0===this.options.killer?t.closeAll():"string"==typeof this.options.killer&&t.closeAll(this.options.killer);var e=u.getQueueCounts(this.options.queue);if(e.current>=e.maxVisible||u.PageHidden&&this.options.visibilityControl)return u.addToQueue(this),u.PageHidden&&this.hasSound&&a.inArray("docHidden",this.options.sounds.conditions)&&a.createAudioElements(this),u.PageHidden&&a.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this;if(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing)return this.showing=!1,this;if(u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&a.inArray("docVisible",this.options.sounds.conditions)&&a.createAudioElements(this),a.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach(function(t){var e=n.barDom.querySelector("#"+n.options.buttons[t].id);a.addListener(e,"click",function(e){a.stopPropagation(e),n.options.buttons[t].cb(n)})}),this.progressDom=this.barDom.querySelector(".noty_progressbar"),a.inArray("click",this.options.closeWith)&&(a.addClass(this.barDom,"noty_close_with_click"),a.addListener(this.barDom,"click",function(t){a.stopPropagation(t),u.fire(n,"onClick"),n.close()},!1)),a.addListener(this.barDom,"mouseenter",function(){u.fire(n,"onHover")},!1),this.options.timeout&&a.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&a.addClass(this.barDom,"noty_has_progressbar"),a.inArray("button",this.options.closeWith)){a.addClass(this.barDom,"noty_close_with_button");var o=document.createElement("div");a.addClass(o,"noty_close_button"),o.innerHTML="×",this.barDom.appendChild(o),a.addListener(o,"click",function(t){a.stopPropagation(t),n.close()},!1)}return u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new s.default(function(t){t()}):"function"==typeof this.options.animation.open?this.promises.show=new s.default(this.options.animation.open.bind(this)):(a.addClass(this.barDom,this.options.animation.open),this.promises.show=new s.default(function(t){a.addListener(n.barDom,a.animationEndEvents,function(){a.removeClass(n.barDom,n.options.animation.open),t()})})),this.promises.show.then(function(){var t=n;setTimeout(function(){u.openFlow(t)},100)}),this}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}(function(t){if(this.stop(),this.options.timeout=t,this.barDom){this.options.timeout?a.addClass(this.barDom,"noty_has_timeout"):a.removeClass(this.barDom,"noty_has_timeout");var n=this;setTimeout(function(){n.resume()},100)}return this})},{key:"setText",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),n&&(this.options.text=t),this}},{key:"setType",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach(function(t){"noty_type__"===t.substring(0,11)&&a.removeClass(n.barDom,t)}),a.addClass(this.barDom,"noty_type__"+t)),e&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(a.classList(this.barDom).split(" ").forEach(function(t){"noty_theme__"===t.substring(0,12)&&a.removeClass(n.barDom,t)}),a.addClass(this.barDom,"noty_theme__"+t)),e&&(this.options.theme=t),this}},{key:"close",value:function(){var t=this;return this.closed?this:this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close||!1===this.options.animation.close?this.promises.close=new s.default(function(t){t()}):"function"==typeof this.options.animation.close?this.promises.close=new s.default(this.options.animation.close.bind(this)):(a.addClass(this.barDom,this.options.animation.close),this.promises.close=new s.default(function(n){a.addListener(t.barDom,a.animationEndEvents,function(){t.options.force?a.remove(t.barDom):u.ghostFix(t),n()})})),this.promises.close.then(function(){u.closeFlow(t),u.handleModalClose(t)}),this.closed=!0,this):(u.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach(function(n){t?u.Store[n].options.queue===t&&u.Store[n].killable&&u.Store[n].close():u.Store[n].killable&&u.Store[n].close()}),this}},{key:"clearQueue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";return u.Queues.hasOwnProperty(t)&&(u.Queues[t].queue=[]),this}},{key:"overrideDefaults",value:function(t){return u.Defaults=a.deepExtend({},u.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(n)||(u.Queues[n]={maxVisible:t,queue:[]}),u.Queues[n].maxVisible=t,this}},{key:"button",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new l.NotyButton(t,n,e,o)}},{key:"version",value:function(){return"3.2.0-beta"}},{key:"Push",value:function(t){return new c.Push(t)}},{key:"Queues",get:function(){return u.Queues}},{key:"PageHidden",get:function(){return u.PageHidden}}]),t}();n.default=f,"undefined"!=typeof window&&a.visibilityChangeFlow(),t.exports=n.default},function(t,n){var e,o,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(t){o=s}}();var u,l=[],c=!1,d=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var n=l.length;n;){for(u=l,l=[];++d<n;)u&&u[d].run();d=-1,n=l.length}u=null,c=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(n){try{return o.call(null,t)}catch(n){return o.call(this,t)}}}(t)}}function p(t,n){this.fun=t,this.array=n}function m(){}i.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];l.push(new p(t,n)),1!==l.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){}])},t.exports=n()}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see npm.react-router.
|
|
2
|
-
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[3825],{52671(e,t,n){var r;n.d(t,{BV:()=>je,Kd:()=>vt,N_:()=>wt,Zp:()=>fe,k2:()=>bt,ok:()=>xt,qh:()=>Ae,zy:()=>de});var a=n(96540),o=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,i=/^[\\/]{2}/;function l(e,t){return t+e.replace(/\\/g,"/")}var s="popstate";function u(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function c(e={}){return g(function(e,t){let n=t.state?.masked,{pathname:r,search:a,hash:o}=n||e.location;return m("",{pathname:r,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:f(t)},null,e)}function h(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?y(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function y(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l="POP",c=null,h=d();function d(){return(i.state||{idx:null}).idx}function f(){l="POP";let e=d(),t=null==e?null:e-h;h=e,c&&c({action:l,location:g.location,delta:t})}function y(e){return v(a,e)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let g={get action(){return l},get location(){return e(a,i)},listen(e){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(s,f),c=e,()=>{a.removeEventListener(s,f),c=null}},createHref:e=>t(a,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=u(e)?e:m(g.location,e,t);n&&n(r,e),h=d()+1;let s=p(r,h),f=g.createHref(r.mask||r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&c&&c({action:l,location:g.location,delta:1})},replace:function(e,t){l="REPLACE";let r=u(e)?e:m(g.location,e,t);n&&n(r,e),h=d();let a=p(r,h),s=g.createHref(r.mask||r);i.replaceState(a,"",s),o&&c&&c({action:l,location:g.location,delta:0})},go:e=>i.go(e)};return g}function v(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),h(r,"No window.location.(origin|href) available to create URL");let a="string"==typeof t?t:f(t);return a=a.replace(/ $/,"%20"),!n&&i.test(a)&&(a=r+a),new URL(a,r)}new WeakMap;function w(e,t,n="/"){return b(e,t,n,!1)}function b(e,t,n,r,a){let o=M(("string"==typeof t?y(t):t).pathname||"/",n);if(null==o)return null;let i=a??E(e),l=null,s=O(o);for(let e=0;null==l&&e<i.length;++e)l=k(i[e],s,r);return l}function E(e){let t=R(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function R(e,t=[],n=[],r="",a=!1){let o=(e,o,i=a,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;h(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=D([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(h(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),R(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:$(u,e.index),routesMeta:c.map((e,t)=>{let[n,r]=P(e.relativePath,e.caseSensitive,t===c.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of S(e.path))o(e,t,!0,n);else o(e,t)}),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=S(r.join("/")),l=[];return l.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var x=/^:[\w-]+$/,C=e=>"*"===e;function $(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),r)}function k(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c={path:l.relativePath,caseSensitive:l.caseSensitive,end:s},h=l.matcher&&l.compiledParams?T(c,u,l.matcher,l.compiledParams):L(c,u),d=l.route;if(!h&&s&&n&&!r[r.length-1].route.index&&(h=L({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!h)return null;Object.assign(a,h.params),i.push({params:a,pathname:D([o,h.pathname]),pathnameBase:H(D([o,h.pathnameBase])),route:d}),"/"!==h.pathnameBase&&(o=D([o,h.pathnameBase]))}return i}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=P(e.path,e.caseSensitive,e.end);return T(e,t,n,r)}function T(e,t,n,r){let a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=l[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function P(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function O(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function N(e,t){let n=U(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function _(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function F(e){let t=A(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function j(e,t,n,r=!1){let a;"string"==typeof e?a=y(e):(a={...e},h(!a.pathname||!a.pathname.includes("?"),_("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),_("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),_("#","search","hash",a)));let o,i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?y(e):e;return r?(r=W(r),n=r.startsWith("/")?N(r.substring(1),"/"):N(r,t)):n=t,{pathname:n,search:B(a),hash:I(o)}}(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var W=e=>e.replace(/[\\/]{2,}/g,"/"),D=e=>W(e.join("/")),U=e=>e.replace(/\/+$/,""),H=e=>U(e).replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var J=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Y(e){let t=e.map(e=>e.route.path).filter(Boolean);return D(t)||"/"}var K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function q(e,t){let n=e;if("string"!=typeof n||!o.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(K)try{let e=new URL(window.location.href),r=i.test(n)?new URL(l(n,e.protocol)):new URL(n),o=M(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){d(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var V=["POST","PUT","PATCH","DELETE"],X=(new Set(V),["GET",...V]);new Set(X),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var G=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Z(e){try{return G.includes(new URL(e).protocol)}catch{return!1}}var Q=a.createContext(null);Q.displayName="DataRouter";var ee=a.createContext(null);ee.displayName="DataRouterState";var te=a.createContext(!1);function ne(){return a.useContext(te)}var re=a.createContext({isTransitioning:!1});re.displayName="ViewTransition";var ae=a.createContext(new Map);ae.displayName="Fetchers";var oe=a.createContext(null);oe.displayName="Await";var ie=a.createContext(null);ie.displayName="Navigation";var le=a.createContext(null);le.displayName="Location";var se=a.createContext({outlet:null,matches:[],isDataRoute:!1});se.displayName="Route";var ue=a.createContext(null);ue.displayName="RouteError";var ce="REACT_ROUTER_ERROR";function he(){return null!=a.useContext(le)}function de(){return h(he(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(le).location}var pe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function me(e){a.useContext(ie).static||a.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=a.useContext(se);return e?function(){let{router:e}=$e("useNavigate"),t=Le("useNavigate"),n=a.useRef(!1);return me(()=>{n.current=!0}),a.useCallback(async(r,a={})=>{d(n.current,pe),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}():function(){h(he(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Q),{basename:t,navigator:n}=a.useContext(ie),{matches:r}=a.useContext(se),{pathname:o}=de(),i=JSON.stringify(F(r)),l=a.useRef(!1);return me(()=>{l.current=!0}),a.useCallback((r,a={})=>{if(d(l.current,pe),!l.current)return;if("number"==typeof r)return void n.go(r);let s=j(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:D([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}a.createContext(null);function ye(e,{relative:t}={}){let{matches:n}=a.useContext(se),{pathname:r}=de(),o=JSON.stringify(F(n));return a.useMemo(()=>j(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function ge(e,t,n){h(he(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(ie),{matches:o}=a.useContext(se),i=o[o.length-1],l=i?i.params:{},s=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route;{let e=c&&c.path||"";Oe(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,m=de();if(t){let e="string"==typeof t?y(t):t;h("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=m;let f=p.pathname||"/",g=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):w(e,{pathname:g});d(c||null!=v,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),d(null==v||void 0!==v[v.length-1].route.element||void 0!==v[v.length-1].route.Component||void 0!==v[v.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=xe(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:D([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:D([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&b?a.createElement(le.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},b):b}function ve(){let e=Te(),t=z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,l)}var we=a.createElement(ve,null),be=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ce}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new J(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(se.Provider,{value:this.props.routeContext},a.createElement(ue.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Re,{error:e},t):t}};be.contextType=te;var Ee=new WeakMap;function Re({children:e,error:t}){let{basename:n}=a.useContext(ie);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ce}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Ee.get(t);if(r)throw r;let o=q(e.location,n),i=o.absoluteURL||o.to;if(Z(i))throw new Error("Invalid redirect location");if(K&&!Ee.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Ee.set(t,n),n}window.location.href=i}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function Se({routeContext:e,match:t,children:n}){let r=a.useContext(Q);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(se.Provider,{value:e},n)}function xe(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);h(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,s=-1;if(n&&r){l=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(l=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let u=n?.onError,c=r&&u?(e,t)=>{u(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Y(r.matches),errorInfo:t})}:void 0;return o.reduceRight((e,n,u)=>{let h,d=!1,p=null,m=null;r&&(h=i&&n.route.id?i[n.route.id]:void 0,p=n.route.errorElement||we,l&&(s<0&&0===u?(Oe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===u&&(d=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,u+1)),y=()=>{let t;return t=h?p:d?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Se,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?a.createElement(be,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):y()},null)}function Ce(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $e(e){let t=a.useContext(Q);return h(t,Ce(e)),t}function ke(e){let t=a.useContext(ee);return h(t,Ce(e)),t}function Le(e){let t=function(e){let t=a.useContext(se);return h(t,Ce(e)),t}(e),n=t.matches[t.matches.length-1];return h(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Te(){let e=a.useContext(ue),t=ke("useRouteError"),n=Le("useRouteError");return void 0!==e?e:t.errors?.[n]}var Pe={};function Oe(e,t,n){t||Pe[e]||(Pe[e]=!0,d(!1,n))}var Me={};function Ne(e,t){e||Me[t]||(Me[t]=!0,console.warn(t))}(r||(r=n.t(a,2))).useOptimistic;a.memo(_e);function _e({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return ge(e,void 0,{manifest:t,state:r,isStatic:a,onError:o,future:n})}function Ae(e){h(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Fe({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,useTransitions:l}){h(!he(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=a.useMemo(()=>({basename:s,navigator:o,static:i,useTransitions:l,future:{}}),[s,o,i,l]);"string"==typeof n&&(n=y(n));let{pathname:c="/",search:p="",hash:m="",state:f=null,key:g="default",mask:v}=n,w=a.useMemo(()=>{let e=M(c,s);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g,mask:v},navigationType:r}},[s,c,p,m,f,g,r,v]);return d(null!=w,`<Router basename="${s}"> is not able to match the URL "${c}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==w?null:a.createElement(ie.Provider,{value:u},a.createElement(le.Provider,{children:t,value:w}))}function je({children:e,location:t}){return ge(We(e),t)}a.Component;function We(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,We(e.props.children,o));h(e.type===Ae,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),h(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=We(e.props.children,o)),n.push(i)}),n}var De="get",Ue="application/x-www-form-urlencoded";function He(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Be(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var Ie=null;var Je=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return null==e||Je.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ue}"`),null)}function Ye(e,t){let n,r,a,o,i;if(He(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?M(i,t):null,n=e.getAttribute("method")||De,a=ze(e.getAttribute("enctype"))||Ue,o=new FormData(e)}else if(function(e){return He(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return He(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?M(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||De,a=ze(e.getAttribute("formenctype"))||ze(i.getAttribute("enctype"))||Ue,o=new FormData(i,e),!function(){if(null===Ie)try{new FormData(document.createElement("form"),0),Ie=!1}catch(e){Ie=!0}return Ie}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(He(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=De,r=null,a=Ue,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ke(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function qe(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===M(a.pathname,t)?a.pathname=`${U(t)}/_root.${r}`:a.pathname=`${U(a.pathname)}.${r}`,a}async function Ve(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Xe(e){return null!=e&&"string"==typeof e.page}function Ge(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ze(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Qe(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function et(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!Xe(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(o)||(n.add(o),e.push({key:o,link:a})),e},[])}function tt(e,t){return"lazy"===e.mode&&!0===t}function nt(){let e=a.useContext(Q);return Ke(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rt(){let e=a.useContext(ee);return Ke(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var at=a.createContext(void 0);function ot(){let e=a.useContext(at);return Ke(e,"You must render this element inside a <HydratedRouter> element"),e}function it(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function lt(e,t,n){if(n&&!dt)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}at.displayName="FrameworkContext";function st({page:e,...t}){let n=ne(),{nonce:r}=ot(),{router:o}=nt(),i=a.useMemo(()=>w(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(null==t.nonce&&r&&(t={...t,nonce:r}),n?a.createElement(ct,{page:e,matches:i,...t}):a.createElement(ht,{page:e,matches:i,...t})):null}function ut(e){let{manifest:t,routeModules:n}=ot(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return async function(e,t,n){return et((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ve(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ge).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function ct({page:e,matches:t,...n}){let r=de(),{future:o}=ot(),{basename:i}=nt(),l=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=qe(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,l=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:l.push(e.route.id);return a&&l.length>0&&n.searchParams.set("_routes",l.join(",")),[n.pathname+n.search]},[i,o.v8_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,l.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function ht({page:e,matches:t,...n}){let r=de(),{future:o,manifest:i,routeModules:l}=ot(),{basename:s}=nt(),{loaderData:u,matches:c}=rt(),h=a.useMemo(()=>Ze(e,t,c,i,r,"data"),[e,t,c,i,r]),d=a.useMemo(()=>Ze(e,t,c,i,r,"assets"),[e,t,c,i,r]),p=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in u&&l[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=qe(e,s,o.v8_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,o.v8_trailingSlashAwareDataRequests,u,r,i,h,t,e,l]),m=a.useMemo(()=>Qe(d,i),[d,i]),f=ut(d);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}var dt=!1;function pt(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:l,nonce:s}=ot(),{router:u,static:c,staticContext:h}=nt(),{matches:d}=rt(),p=ne(),m=tt(i,l);null==e.nonce&&s&&(e={...e,nonce:s}),o&&(o.didRenderScripts=!0);let f=lt(d,null,r);a.useEffect(()=>{dt=!0},[]);let y=a.useMemo(()=>{if(p)return null;let r=h?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${m?"":`import ${JSON.stringify(t.url)}`};\n${f.map((e,n)=>{let r=`route${n}`,a=t.routes[e.route.id];Ke(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:l,hydrateFallbackModule:s,module:u}=a,c=[...o?[{module:o,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...l?[{module:l,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${m?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),a=n.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push(`/${a.join("/")}`),a.pop();o.forEach(e=>{let t=b(n.routes,e,n.basename||"/",!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let i=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,u),null,2)};`:""}\n window.__reactRouterRouteModules = {${f.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),g=dt||p?[]:[...new Set(t.entry.imports.concat(Qe(f,t,{includeHydrateFallback:!0})))],v="object"==typeof t.sri?t.sri:{};return Ne(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),dt||p?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,m?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],nonce:e.nonce,suppressHydrationWarning:!0})),y)}function mt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;function ft({error:e,isOutsideRemixApp:t}){let{nonce:n}=ot();console.error(e);let r,o=a.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(z(e))return a.createElement(yt,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a.createElement(yt,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function yt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=ot();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(pt,null):null)))}var gt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{gt&&(window.__reactRouterVersion="7.18.0")}catch(e){}function vt({basename:e,children:t,useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=c({window:r,v5Compat:!0}));let i=o.current,[l,s]=a.useState({action:i.action,location:i.location}),u=a.useCallback(e=>{!1===n?s(e):a.startTransition(()=>s(e))},[n]);return a.useLayoutEffect(()=>i.listen(u),[i,u]),a.createElement(Fe,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var wt=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:l,mask:s,state:u,target:c,to:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...g},v){let{basename:w,navigator:b,useTransitions:E}=a.useContext(ie),R="string"==typeof d&&o.test(d),S=q(d,w),x=function(e,{relative:t}={}){h(he(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(ie),{hash:o,pathname:i,search:l}=ye(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:D([n,i])),r.createHref({pathname:s,search:l,hash:o})}(d=S.to,{relative:r}),C=de(),$=null;if(s){let e=j(s,[],C.mask?C.mask.pathname:"/",!0);"/"!==w&&(e.pathname="/"===e.pathname?w:D([w,e.pathname])),$=b.createHref(e)}let[k,L,T]=function(e,t){let n=a.useContext(at),[r,o]=a.useState(!1),[i,l]=a.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:h,onTouchStart:d}=t,p=a.useRef(null);a.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},f=()=>{o(!1),l(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:it(s,m),onBlur:it(u,f),onMouseEnter:it(c,m),onMouseLeave:it(h,f),onTouchStart:it(d,m)}]:[!1,p,{}]}(n,g),P=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:u,useTransitions:c}={}){let h=fe(),d=de(),p=ye(e,{relative:l});return a.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:f(d)===f(p),y=()=>h(e,{replace:t,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:u});c?a.startTransition(()=>y()):y()}},[d,h,p,n,r,o,t,e,i,l,s,u,c])}(d,{replace:l,mask:s,state:u,target:c,preventScrollReset:p,relative:r,viewTransition:m,defaultShouldRevalidate:y,useTransitions:E});let O=!(S.isExternal||i),M=a.createElement("a",{...g,...T,href:(O?$:void 0)||S.absoluteURL||x,onClick:O?function(t){e&&e(t),t.defaultPrevented||P(t)}:e,ref:mt(v,L),target:c,"data-discover":R||"render"!==t?void 0:"true"});return k&&!R?a.createElement(a.Fragment,null,M,a.createElement(st,{page:x})):M});wt.displayName="Link";var bt=a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:l,children:s,...u},c){let d=ye(i,{relative:u.relative}),p=de(),m=a.useContext(ee),{navigator:f,basename:y}=a.useContext(ie),g=null!=m&&function(e,{relative:t}={}){let n=a.useContext(re);h(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=St("useViewTransitionState"),o=ye(e,{relative:t});if(!n.isTransitioning)return!1;let i=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=L(o.pathname,l)||null!=L(o.pathname,i)}(d)&&!0===l,v=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,w=p.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(w=w.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&y&&(b=M(b,y)||b);const E="/"!==v&&v.endsWith("/")?v.length-1:v.length;let R,S=w===v||!r&&w.startsWith(v)&&"/"===w.charAt(E),x=null!=b&&(b===v||!r&&b.startsWith(v)&&"/"===b.charAt(v.length)),C={isActive:S,isPending:x,isTransitioning:g},$=S?e:void 0;R="function"==typeof n?n(C):[n,S?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof o?o(C):o;return a.createElement(wt,{...u,"aria-current":$,className:R,ref:c,style:k,to:i,viewTransition:l},"function"==typeof s?s(C):s)});bt.displayName="NavLink";var Et=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=De,action:u,onSubmit:c,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...g},v)=>{let{useTransitions:w}=a.useContext(ie),b=$t(),E=function(e,{relative:t}={}){let{basename:n}=a.useContext(ie),r=a.useContext(se);h(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ye(e||".",{relative:t})},l=de();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:D([n,i.pathname]));return f(i)}(u,{relative:d}),R="get"===s.toLowerCase()?"get":"post",S="string"==typeof u&&o.test(u);return a.createElement("form",{ref:v,method:R,action:E,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||s,u=()=>b(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:l,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y});w&&!1!==n?a.startTransition(()=>u()):u()},...g,"data-discover":S||"render"!==e?void 0:"true"})});function Rt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function St(e){let t=a.useContext(Q);return h(t,Rt(e)),t}function xt(e){d("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(Be(e)),n=a.useRef(!1),r=de(),o=a.useMemo(()=>function(e,t){let n=Be(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),i=fe(),l=a.useCallback((e,t)=>{const r=Be("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)},[i,o]);return[o,l]}Et.displayName="Form";var Ct=0;function $t(){let{router:e}=St("useSubmit"),{basename:t}=a.useContext(ie),n=Le("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:l,encType:s,formData:u,body:c}=Ye(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++Ct)}__`;await r(e,n,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||l,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||l,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}}}]);
|
|
1
|
+
/*! For license information please see npm.react-router.2b16d221233fc84c4261.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[3825],{52671(e,t,n){let r;n.d(t,{BV:()=>je,Kd:()=>vt,N_:()=>wt,Zp:()=>fe,k2:()=>bt,ok:()=>xt,qh:()=>Ae,zy:()=>de});var a=n(96540),o=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,i=/^[\\/]{2}/;function l(e,t){return t+e.replace(/\\/g,"/")}var s="popstate";function u(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function c(e={}){return g(function(e,t){let n=t.state?.masked,{pathname:r,search:a,hash:o}=n||e.location;return m("",{pathname:r,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:f(t)},null,e)}function h(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?y(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:a}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function y(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l="POP",c=null,h=d();function d(){return(i.state||{idx:null}).idx}function f(){l="POP";let e=d(),t=null==e?null:e-h;h=e,c&&c({action:l,location:g.location,delta:t})}function y(e){return v(a,e)}null==h&&(h=0,i.replaceState({...i.state,idx:h},""));let g={get action(){return l},get location(){return e(a,i)},listen(e){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(s,f),c=e,()=>{a.removeEventListener(s,f),c=null}},createHref:e=>t(a,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=u(e)?e:m(g.location,e,t);n&&n(r,e),h=d()+1;let s=p(r,h),f=g.createHref(r.mask||r);try{i.pushState(s,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&c&&c({action:l,location:g.location,delta:1})},replace:function(e,t){l="REPLACE";let r=u(e)?e:m(g.location,e,t);n&&n(r,e),h=d();let a=p(r,h),s=g.createHref(r.mask||r);i.replaceState(a,"",s),o&&c&&c({action:l,location:g.location,delta:0})},go:e=>i.go(e)};return g}function v(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),h(r,"No window.location.(origin|href) available to create URL");let a="string"==typeof t?t:f(t);return a=a.replace(/ $/,"%20"),!n&&i.test(a)&&(a=r+a),new URL(a,r)}new WeakMap;function w(e,t,n="/"){return b(e,t,n,!1)}function b(e,t,n,r,a){let o=M(("string"==typeof t?y(t):t).pathname||"/",n);if(null==o)return null;let i=a??E(e),l=null,s=O(o);for(let e=0;null==l&&e<i.length;++e)l=k(i[e],s,r);return l}function E(e){let t=R(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function R(e,t=[],n=[],r="",a=!1){let o=(e,o,i=a,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;h(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=D([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(h(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),R(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:$(u,e.index),routesMeta:c.map((e,t)=>{let[n,r]=P(e.relativePath,e.caseSensitive,t===c.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of S(e.path))o(e,t,!0,n);else o(e,t)}),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=S(r.join("/")),l=[];return l.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var x=/^:[\w-]+$/,C=e=>"*"===e;function $(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=-2),t&&(r+=2),n.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),r)}function k(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c={path:l.relativePath,caseSensitive:l.caseSensitive,end:s},h=l.matcher&&l.compiledParams?T(c,u,l.matcher,l.compiledParams):L(c,u),d=l.route;if(!h&&s&&n&&!r[r.length-1].route.index&&(h=L({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!h)return null;Object.assign(a,h.params),i.push({params:a,pathname:D([o,h.pathname]),pathnameBase:H(D([o,h.pathnameBase])),route:d}),"/"!==h.pathnameBase&&(o=D([o,h.pathnameBase]))}return i}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=P(e.path,e.caseSensitive,e.end);return T(e,t,n,r)}function T(e,t,n,r){let a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=l[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function P(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function O(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function N(e,t){let n=U(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function _(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function F(e){let t=A(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function j(e,t,n,r=!1){let a;"string"==typeof e?a=y(e):(a={...e},h(!a.pathname||!a.pathname.includes("?"),_("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),_("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),_("#","search","hash",a)));let o,i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?y(e):e;return r?(r=W(r),n=r.startsWith("/")?N(r.substring(1),"/"):N(r,t)):n=t,{pathname:n,search:B(a),hash:I(o)}}(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var W=e=>e.replace(/[\\/]{2,}/g,"/"),D=e=>W(e.join("/")),U=e=>e.replace(/\/+$/,""),H=e=>U(e).replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var J=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Y(e){let t=e.map(e=>e.route.path).filter(Boolean);return D(t)||"/"}var K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function q(e,t){let n=e;if("string"!=typeof n||!o.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(K)try{let e=new URL(window.location.href),r=i.test(n)?new URL(l(n,e.protocol)):new URL(n),o=M(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(e){d(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var V=["POST","PUT","PATCH","DELETE"],X=(new Set(V),["GET",...V]);new Set(X),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var G=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Z(e){try{return G.includes(new URL(e).protocol)}catch{return!1}}var Q=a.createContext(null);Q.displayName="DataRouter";var ee=a.createContext(null);ee.displayName="DataRouterState";var te=a.createContext(!1);function ne(){return a.useContext(te)}var re=a.createContext({isTransitioning:!1});re.displayName="ViewTransition";var ae=a.createContext(new Map);ae.displayName="Fetchers";var oe=a.createContext(null);oe.displayName="Await";var ie=a.createContext(null);ie.displayName="Navigation";var le=a.createContext(null);le.displayName="Location";var se=a.createContext({outlet:null,matches:[],isDataRoute:!1});se.displayName="Route";var ue=a.createContext(null);ue.displayName="RouteError";var ce="REACT_ROUTER_ERROR";function he(){return null!=a.useContext(le)}function de(){return h(he(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(le).location}var pe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function me(e){a.useContext(ie).static||a.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=a.useContext(se);return e?function(){let{router:e}=$e("useNavigate"),t=Le("useNavigate"),n=a.useRef(!1);return me(()=>{n.current=!0}),a.useCallback(async(r,a={})=>{d(n.current,pe),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}():function(){h(he(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Q),{basename:t,navigator:n}=a.useContext(ie),{matches:r}=a.useContext(se),{pathname:o}=de(),i=JSON.stringify(F(r)),l=a.useRef(!1);return me(()=>{l.current=!0}),a.useCallback((r,a={})=>{if(d(l.current,pe),!l.current)return;if("number"==typeof r)return void n.go(r);let s=j(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:D([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}a.createContext(null);function ye(e,{relative:t}={}){let{matches:n}=a.useContext(se),{pathname:r}=de(),o=JSON.stringify(F(n));return a.useMemo(()=>j(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function ge(e,t,n){h(he(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(ie),{matches:o}=a.useContext(se),i=o[o.length-1],l=i?i.params:{},s=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route;{let e=c&&c.path||"";Oe(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,m=de();if(t){let e="string"==typeof t?y(t):t;h("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=m;let f=p.pathname||"/",g=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):w(e,{pathname:g});d(c||null!=v,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),d(null==v||void 0!==v[v.length-1].route.element||void 0!==v[v.length-1].route.Component||void 0!==v[v.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=xe(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:D([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:D([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&b?a.createElement(le.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},b):b}function ve(){let e=Te(),t=z(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,l)}var we=a.createElement(ve,null),be=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ce}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new J(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(se.Provider,{value:this.props.routeContext},a.createElement(ue.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Re,{error:e},t):t}};be.contextType=te;var Ee=new WeakMap;function Re({children:e,error:t}){let{basename:n}=a.useContext(ie);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ce}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Ee.get(t);if(r)throw r;let o=q(e.location,n),i=o.absoluteURL||o.to;if(Z(i))throw new Error("Invalid redirect location");if(K&&!Ee.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Ee.set(t,n),n}window.location.href=i}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function Se({routeContext:e,match:t,children:n}){let r=a.useContext(Q);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(se.Provider,{value:e},n)}function xe(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);h(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,s=-1;if(n&&r){l=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(l=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let u=n?.onError,c=r&&u?(e,t)=>{u(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Y(r.matches),errorInfo:t})}:void 0;return o.reduceRight((e,n,u)=>{let h,d=!1,p=null,m=null;r&&(h=i&&n.route.id?i[n.route.id]:void 0,p=n.route.errorElement||we,l&&(s<0&&0===u?(Oe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===u&&(d=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,u+1)),y=()=>{let t;return t=h?p:d?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Se,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?a.createElement(be,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):y()},null)}function Ce(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $e(e){let t=a.useContext(Q);return h(t,Ce(e)),t}function ke(e){let t=a.useContext(ee);return h(t,Ce(e)),t}function Le(e){let t=function(e){let t=a.useContext(se);return h(t,Ce(e)),t}(e),n=t.matches[t.matches.length-1];return h(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Te(){let e=a.useContext(ue),t=ke("useRouteError"),n=Le("useRouteError");return void 0!==e?e:t.errors?.[n]}var Pe={};function Oe(e,t,n){t||Pe[e]||(Pe[e]=!0,d(!1,n))}var Me={};function Ne(e,t){e||Me[t]||(Me[t]=!0,console.warn(t))}(r||(r=n.t(a,2))).useOptimistic;a.memo(_e);function _e({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return ge(e,void 0,{manifest:t,state:r,isStatic:a,onError:o,future:n})}function Ae(e){h(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Fe({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,useTransitions:l}){h(!he(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=a.useMemo(()=>({basename:s,navigator:o,static:i,useTransitions:l,future:{}}),[s,o,i,l]);"string"==typeof n&&(n=y(n));let{pathname:c="/",search:p="",hash:m="",state:f=null,key:g="default",mask:v}=n,w=a.useMemo(()=>{let e=M(c,s);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g,mask:v},navigationType:r}},[s,c,p,m,f,g,r,v]);return d(null!=w,`<Router basename="${s}"> is not able to match the URL "${c}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==w?null:a.createElement(ie.Provider,{value:u},a.createElement(le.Provider,{children:t,value:w}))}function je({children:e,location:t}){return ge(We(e),t)}a.Component;function We(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,We(e.props.children,o));h(e.type===Ae,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),h(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=We(e.props.children,o)),n.push(i)}),n}var De="get",Ue="application/x-www-form-urlencoded";function He(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Be(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var Ie=null;var Je=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return null==e||Je.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ue}"`),null)}function Ye(e,t){let n,r,a,o,i;if(He(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?M(i,t):null,n=e.getAttribute("method")||De,a=ze(e.getAttribute("enctype"))||Ue,o=new FormData(e)}else if(function(e){return He(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return He(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?M(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||De,a=ze(e.getAttribute("formenctype"))||ze(i.getAttribute("enctype"))||Ue,o=new FormData(i,e),!function(){if(null===Ie)try{new FormData(document.createElement("form"),0),Ie=!1}catch(e){Ie=!0}return Ie}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(He(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=De,r=null,a=Ue,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ke(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function qe(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===M(a.pathname,t)?a.pathname=`${U(t)}/_root.${r}`:a.pathname=`${U(a.pathname)}.${r}`,a}async function Ve(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Xe(e){return null!=e&&"string"==typeof e.page}function Ge(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ze(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Qe(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function et(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!Xe(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(o)||(n.add(o),e.push({key:o,link:a})),e},[])}function tt(e,t){return"lazy"===e.mode&&!0===t}function nt(){let e=a.useContext(Q);return Ke(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rt(){let e=a.useContext(ee);return Ke(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var at=a.createContext(void 0);function ot(){let e=a.useContext(at);return Ke(e,"You must render this element inside a <HydratedRouter> element"),e}function it(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function lt(e,t,n){if(n&&!dt)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}at.displayName="FrameworkContext";function st({page:e,...t}){let n=ne(),{nonce:r}=ot(),{router:o}=nt(),i=a.useMemo(()=>w(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(null==t.nonce&&r&&(t={...t,nonce:r}),n?a.createElement(ct,{page:e,matches:i,...t}):a.createElement(ht,{page:e,matches:i,...t})):null}function ut(e){let{manifest:t,routeModules:n}=ot(),[r,o]=a.useState([]);return a.useEffect(()=>{let r=!1;return async function(e,t,n){return et((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ve(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ge).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function ct({page:e,matches:t,...n}){let r=de(),{future:o}=ot(),{basename:i}=nt(),l=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=qe(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,l=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:l.push(e.route.id);return a&&l.length>0&&n.searchParams.set("_routes",l.join(",")),[n.pathname+n.search]},[i,o.v8_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,l.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function ht({page:e,matches:t,...n}){let r=de(),{future:o,manifest:i,routeModules:l}=ot(),{basename:s}=nt(),{loaderData:u,matches:c}=rt(),h=a.useMemo(()=>Ze(e,t,c,i,r,"data"),[e,t,c,i,r]),d=a.useMemo(()=>Ze(e,t,c,i,r,"assets"),[e,t,c,i,r]),p=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in u&&l[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),0===n.size)return[];let c=qe(e,s,o.v8_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&c.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[c.pathname+c.search]},[s,o.v8_trailingSlashAwareDataRequests,u,r,i,h,t,e,l]),m=a.useMemo(()=>Qe(d,i),[d,i]),f=ut(d);return a.createElement(a.Fragment,null,p.map(e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}var dt=!1;function pt(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:l,nonce:s}=ot(),{router:u,static:c,staticContext:h}=nt(),{matches:d}=rt(),p=ne(),m=tt(i,l);null==e.nonce&&s&&(e={...e,nonce:s}),o&&(o.didRenderScripts=!0);let f=lt(d,null,r);a.useEffect(()=>{dt=!0},[]);let y=a.useMemo(()=>{if(p)return null;let r=h?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${m?"":`import ${JSON.stringify(t.url)}`};\n${f.map((e,n)=>{let r=`route${n}`,a=t.routes[e.route.id];Ke(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:l,hydrateFallbackModule:s,module:u}=a,c=[...o?[{module:o,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...l?[{module:l,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${m?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),a=n.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push(`/${a.join("/")}`),a.pop();o.forEach(e=>{let t=b(n.routes,e,n.basename||"/",!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let i=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,u),null,2)};`:""}\n window.__reactRouterRouteModules = {${f.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),g=dt||p?[]:[...new Set(t.entry.imports.concat(Qe(f,t,{includeHydrateFallback:!0})))],v="object"==typeof t.sri?t.sri:{};return Ne(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),dt||p?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,m?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],nonce:e.nonce,suppressHydrationWarning:!0})),y)}function mt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}a.Component;function ft({error:e,isOutsideRemixApp:t}){let{nonce:n}=ot();console.error(e);let r,o=a.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(z(e))return a.createElement(yt,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return a.createElement(yt,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function yt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=ot();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(pt,null):null)))}var gt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{gt&&(window.__reactRouterVersion="7.18.0")}catch(e){}function vt({basename:e,children:t,useTransitions:n,window:r}){let o=a.useRef();null==o.current&&(o.current=c({window:r,v5Compat:!0}));let i=o.current,[l,s]=a.useState({action:i.action,location:i.location}),u=a.useCallback(e=>{!1===n?s(e):a.startTransition(()=>s(e))},[n]);return a.useLayoutEffect(()=>i.listen(u),[i,u]),a.createElement(Fe,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var wt=a.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:l,mask:s,state:u,target:c,to:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...g},v){let{basename:w,navigator:b,useTransitions:E}=a.useContext(ie),R="string"==typeof d&&o.test(d),S=q(d,w),x=function(e,{relative:t}={}){h(he(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(ie),{hash:o,pathname:i,search:l}=ye(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:D([n,i])),r.createHref({pathname:s,search:l,hash:o})}(d=S.to,{relative:r}),C=de(),$=null;if(s){let e=j(s,[],C.mask?C.mask.pathname:"/",!0);"/"!==w&&(e.pathname="/"===e.pathname?w:D([w,e.pathname])),$=b.createHref(e)}let[k,L,T]=function(e,t){let n=a.useContext(at),[r,o]=a.useState(!1),[i,l]=a.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:h,onTouchStart:d}=t,p=a.useRef(null);a.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},f=()=>{o(!1),l(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:it(s,m),onBlur:it(u,f),onMouseEnter:it(c,m),onMouseLeave:it(h,f),onTouchStart:it(d,m)}]:[!1,p,{}]}(n,g),P=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:u,useTransitions:c}={}){let h=fe(),d=de(),p=ye(e,{relative:l});return a.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:f(d)===f(p),y=()=>h(e,{replace:t,mask:r,state:o,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:u});c?a.startTransition(()=>y()):y()}},[d,h,p,n,r,o,t,e,i,l,s,u,c])}(d,{replace:l,mask:s,state:u,target:c,preventScrollReset:p,relative:r,viewTransition:m,defaultShouldRevalidate:y,useTransitions:E});let O=!(S.isExternal||i),M=a.createElement("a",{...g,...T,href:(O?$:void 0)||S.absoluteURL||x,onClick:O?function(t){e&&e(t),t.defaultPrevented||P(t)}:e,ref:mt(v,L),target:c,"data-discover":R||"render"!==t?void 0:"true"});return k&&!R?a.createElement(a.Fragment,null,M,a.createElement(st,{page:x})):M});wt.displayName="Link";var bt=a.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:l,children:s,...u},c){let d=ye(i,{relative:u.relative}),p=de(),m=a.useContext(ee),{navigator:f,basename:y}=a.useContext(ie),g=null!=m&&function(e,{relative:t}={}){let n=a.useContext(re);h(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=St("useViewTransitionState"),o=ye(e,{relative:t});if(!n.isTransitioning)return!1;let i=M(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=M(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=L(o.pathname,l)||null!=L(o.pathname,i)}(d)&&!0===l,v=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,w=p.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(w=w.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&y&&(b=M(b,y)||b);const E="/"!==v&&v.endsWith("/")?v.length-1:v.length;let R,S=w===v||!r&&w.startsWith(v)&&"/"===w.charAt(E),x=null!=b&&(b===v||!r&&b.startsWith(v)&&"/"===b.charAt(v.length)),C={isActive:S,isPending:x,isTransitioning:g},$=S?e:void 0;R="function"==typeof n?n(C):[n,S?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof o?o(C):o;return a.createElement(wt,{...u,"aria-current":$,className:R,ref:c,style:k,to:i,viewTransition:l},"function"==typeof s?s(C):s)});bt.displayName="NavLink";var Et=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=De,action:u,onSubmit:c,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y,...g},v)=>{let{useTransitions:w}=a.useContext(ie),b=$t(),E=function(e,{relative:t}={}){let{basename:n}=a.useContext(ie),r=a.useContext(se);h(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ye(e||".",{relative:t})},l=de();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:D([n,i.pathname]));return f(i)}(u,{relative:d}),R="get"===s.toLowerCase()?"get":"post",S="string"==typeof u&&o.test(u);return a.createElement("form",{ref:v,method:R,action:E,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||s,u=()=>b(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:l,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:y});w&&!1!==n?a.startTransition(()=>u()):u()},...g,"data-discover":S||"render"!==e?void 0:"true"})});function Rt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function St(e){let t=a.useContext(Q);return h(t,Rt(e)),t}function xt(e){d("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(Be(e)),n=a.useRef(!1),r=de(),o=a.useMemo(()=>function(e,t){let n=Be(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),i=fe(),l=a.useCallback((e,t)=>{const r=Be("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)},[i,o]);return[o,l]}Et.displayName="Form";var Ct=0;function $t(){let{router:e}=St("useSubmit"),{basename:t}=a.useContext(ie),n=Le("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback(async(e,a={})=>{let{action:i,method:l,encType:s,formData:u,body:c}=Ye(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++Ct)}__`;await r(e,n,a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||l,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:c,formMethod:a.method||l,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}}}]);
|