1165 lines
2.0 MiB
JavaScript
1165 lines
2.0 MiB
JavaScript
|
|
/*
|
||
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
|
|
*/
|
||
|
|
|
||
|
|
"use strict";var yke=Object.create;var gC=Object.defineProperty;var vke=Object.getOwnPropertyDescriptor;var bke=Object.getOwnPropertyNames;var xke=Object.getPrototypeOf,wke=Object.prototype.hasOwnProperty;var IU=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),AU=t=>{throw TypeError(t)};var yt=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ln=(t,e)=>{for(var r in e)gC(t,r,{get:e[r],enumerable:!0})},PU=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bke(e))!wke.call(t,i)&&i!==r&&gC(t,i,{get:()=>e[i],enumerable:!(n=vke(e,i))||n.enumerable});return t};var Z=(t,e,r)=>(r=t!=null?yke(xke(t)):{},PU(e||!t||!t.__esModule?gC(r,"default",{value:t,enumerable:!0}):r,t)),RU=t=>PU(gC({},"__esModule",{value:!0}),t);var J=(t,e,r)=>{if(e!=null){typeof e!="object"&&typeof e!="function"&&AU("Object expected");var n,i;r&&(n=e[IU("asyncDispose")]),n===void 0&&(n=e[IU("dispose")],r&&(i=n)),typeof n!="function"&&AU("Object not disposable"),i&&(n=function(){try{i.call(this)}catch(s){return Promise.reject(s)}}),t.push([r,n,e])}else r&&t.push([r]);return e},ee=(t,e,r)=>{var n=typeof SuppressedError=="function"?SuppressedError:function(a,o,l,c){return c=Error(l),c.name="SuppressedError",c.error=a,c.suppressed=o,c},i=a=>e=r?new n(a,e,"An error was suppressed during disposal"):(r=!0,a),s=a=>{for(;a=t.pop();)try{var o=a[1]&&a[1].call(a[2]);if(a[0])return Promise.resolve(o).then(s,l=>(i(l),s()))}catch(l){i(l)}if(r)throw e};return s()};var ar=L((g_,LU)=>{"use strict";var nb=function(t){return t&&t.Math===Math&&t};LU.exports=nb(typeof globalThis=="object"&&globalThis)||nb(typeof window=="object"&&window)||nb(typeof self=="object"&&self)||nb(typeof global=="object"&&global)||nb(typeof g_=="object"&&g_)||function(){return this}()||Function("return this")()});var di=L((_et,MU)=>{"use strict";MU.exports=function(t){try{return!!t()}catch{return!0}}});var ms=L((Oet,_U)=>{"use strict";var kke=di();_U.exports=!kke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ib=L((Det,OU)=>{"use strict";var Ske=di();OU.exports=!Ske(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var Ni=L((Net,DU)=>{"use strict";var Cke=ib(),yC=Function.prototype.call;DU.exports=Cke?yC.bind(yC):function(){return yC.apply(yC,arguments)}});var BU=L(jU=>{"use strict";var NU={}.propertyIsEnumerable,FU=Object.getOwnPropertyDescriptor,Tke=FU&&!NU.call({1:2},1);jU.f=Tke?function(e){var r=FU(this,e);return!!r&&r.enumerable}:NU});var sb=L((jet,VU)=>{"use strict";VU.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var cn=L((Bet,zU)=>{"use strict";var $U=ib(),UU=Function.prototype,y_=UU.call,Eke=$U&&UU.bind.bind(y_,y_);zU.exports=$U?Eke:function(t){return function(){return y_.apply(t,arguments)}}});var ab=L((Vet,HU)=>{"use strict";var qU=cn(),Ike=qU({}.toString),Ake=qU("".slice);HU.exports=function(t){return Ake(Ike(t),8,-1)}});var WU=L(($et,GU)=>{"use strict";var Pke=cn(),Rke=di(),Lke=ab(),v_=Object,Mke=Pke("".split);GU.exports=Rke(function(){return!v_("z").propertyIsEnumerable(0)})?function(t){return Lke(t)==="String"?Mke(t,""):v_(t)}:v_});var qh=L((Uet,KU)=>{"use strict";KU.exports=function(t){return t==null}});var Hh=L((zet,YU)=>{"use strict";var _ke=qh(),Oke=TypeError;YU.exports=function(t){if(_ke(t))throw new Oke("Can't call method on "+t);return t}});var ob=L((qet,XU)=>{"use strict";var Dke=WU(),Nke=Hh();XU.exports=function(t){return Dke(Nke(t))}});var Pr=L((Het,QU)=>{"use strict";var b_=typeof document=="object"&&document.all;QU.exports=typeof b_>"u"&&b_!==void 0?function(t){return typeof t=="function"||t===b_}:function(t){return typeof t=="function"}});var Ha=L((Get,ZU)=>{"use strict";var Fke=Pr();ZU.exports=function(t){return typeof t=="object"?t!==null:Fke(t)}});var Js=L((Wet,JU)=>{"use strict";var x_=ar(),jke=Pr(),Bke=function(t){return jke(t)?t:void 0};JU.exports=function(t,e){return arguments.length<2?Bke(x_[t]):x_[t]&&x_[t][e]}});var lb=L((Ket,ez)=>{"use strict";var Vke=cn();ez.exports=Vk
|
||
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var YK=L(()=>{"use strict";var rRe=ta(),Pb=cn(),nRe=OK(),iRe=fi(),qK=$K().start,sRe=zK(),aRe=Array,HK=RegExp.escape,GK=Pb("".charAt),o6=Pb("".charCodeAt),oRe=Pb(1.1.toString),lRe=Pb([].join),KK=/^[0-9a-z]/i,cRe=/^[$()*+./?[\\\]^{|}]/,uRe=RegExp("^[!\"#%&',\\-:;<=>@`~"+sRe+"]"),s6=Pb(KK.exec),WK={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},a6=function(t){var e=oRe(o6(t,0),16);return e.length<3?"\\x"+qK(e,2,"0"):"\\u"+qK(e,4,"0")},dRe=!HK||HK("ab")!=="\\x61b";rRe({target:"RegExp",stat:!0,forced:dRe},{escape:function(e){nRe(e);for(var r=e.length,n=aRe(r),i=0;i<r;i++){var s=GK(e,i);if(i===0&&s6(KK,s))n[i]=a6(s);else if(iRe(WK,s))n[i]="\\"+WK[s];else if(s6(cRe,s))n[i]="\\"+s;else if(s6(uRe,s))n[i]=a6(s);else{var a=o6(s,0);(a&63488)!==55296?n[i]=s:a>=56320||i+1>=r||(o6(e,i+1)&64512)!==56320?n[i]=a6(s):(n[i]=s,n[++i]=GK(e,i))}}return lRe(n,"")}})});var QK=L((Nnt,XK)=>{"use strict";YK();var fRe=tT();XK.exports=fRe.RegExp.escape});var JK=L((Fnt,ZK)=>{"use strict";var pRe=QK();ZK.exports=pRe});var vY=L(hT=>{"use strict";var zRe=Symbol.for("react.transitional.element"),qRe=Symbol.for("react.fragment");function yY(t,e,r){var n=null;if(r!==void 0&&(n=""+r),e.key!==void 0&&(n=""+e.key),"key"in e){r={};for(var i in e)i!=="key"&&(r[i]=e[i])}else r=e;return e=r.ref,{$$typeof:zRe,type:t,key:n,ref:e!==void 0?e:null,props:r}}hT.Fragment=qRe;hT.jsx=yY;hT.jsxs=yY});var Ge=L((Znt,bY)=>{"use strict";bY.exports=vY()});var LY=L(Xe=>{"use strict";var p6=Symbol.for("react.transitional.element"),HRe=Symbol.for("react.portal"),GRe=Symbol.for("react.fragment"),WRe=Symbol.for("react.strict_mode"),KRe=Symbol.for("react.profiler"),YRe=Symbol.for("react.consumer"),XRe=Symbol.for("react.context"),QRe=Symbol.for("react.forward_ref"),ZRe=Symbol.for("react.suspense"),JRe=Symbol.for("react.memo"),TY=Symbol.for("react.lazy"),xY=Symbol.iterator;function eLe(t){return t===null||typeof t!="object"?null:(t=xY&&t[xY]||t["@@iterator"],typeof t=="function"?t:null)}var EY={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IY=Object.assign,AY={};function om(t,e,r){this.props=t,this.context=e,this.refs=AY,this.updater=r||EY}om.prototype.isReactComponent={};om.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};om.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function PY(){}PY.prototype=om.prototype;function h6(t,e,r){this.props=t,this.context=e,this.refs=AY,this.updater=r||EY}var m6=h6.prototype=new PY;m6.constructor=h6;IY(m6,om.prototype);m6.isPureReactComponent=!0;var wY=Array.isArray,or={H:null,A:null,T:null,S:null,V:null},RY=Object.prototype.hasOwnProperty;function g6(t,e,r,n,i,s){return r=s.ref,{$$typeof:p6,type:t,key:e,ref:r!==void 0?r:null,props:s}}function tLe(t,e){return g6(t.type,e,void 0,void 0,void 0,t.props)}function y6(t){return typeof t=="object"&&t!==null&&t.$$typeof===p6}function rLe(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var kY=/\/+/g;function f6(t,e){return typeof t=="object"&&t!==null&&t.key!=null?rLe(""+t.key):e.toString(36)}function SY(){}function nLe(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(SY,SY):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function am(t,e,r,n,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case p6:case HRe:a=!0;break;case TY:return
|
||
|
|
`:"")+e;else if(e.includes(GOe)){let n=this.q(e,r);n&&(this.c=new oc(n[0],n[1],n[2].join(" ")),this.c.id=this.n,this.e=ag.Cue)}this.n=e}q(e,r){return super.q(e.replace(HOe,"."),r)}}});var aN={};ln(aN,{ParseErrorBuilder:()=>KOe});var KOe,oN=yt(()=>{vx();KOe={r(){return new Hi({code:va.BadSignature,reason:"missing WEBVTT file header",line:1})},s(t,e){return new Hi({code:va.BadTimestamp,reason:`cue start timestamp \`${t}\` is invalid on line ${e}`,line:e})},t(t,e){return new Hi({code:va.BadTimestamp,reason:`cue end timestamp \`${t}\` is invalid on line ${e}`,line:e})},u(t,e,r){return new Hi({code:va.BadTimestamp,reason:`cue end timestamp \`${e}\` is greater than start \`${t}\` on line ${r}`,line:r})},y(t,e,r){return new Hi({code:va.BadSettingValue,reason:`invalid value for cue setting \`${t}\` on line ${r} (value: ${e})`,line:r})},x(t,e,r){return new Hi({code:va.UnknownSetting,reason:`unknown cue setting \`${t}\` on line ${r} (value: ${e})`,line:r})},w(t,e,r){return new Hi({code:va.BadSettingValue,reason:`invalid value for region setting \`${t}\` on line ${r} (value: ${e})`,line:r})},v(t,e,r){return new Hi({code:va.UnknownSetting,reason:`unknown region setting \`${t}\` on line ${r} (value: ${e})`,line:r})},T(t,e){return new Hi({code:va.BadFormat,reason:`format missing for \`${t}\` block on line ${e}`,line:e})}}});var dJ={};ln(dJ,{SSAParser:()=>FE,default:()=>YOe});function cN(t){let e=parseInt(t.replace("&H",""),16);if(e>=0){let n=(e>>24&255^255)/255,i=e>>16&255,s=e>>8&255;return"rgba("+[e&255,s,i,n].join(",")+")"}return null}function uN(t,e,r){let n=Math.ceil(2*Math.PI*t),i="";for(let s=0;s<n;s++){let a=2*Math.PI*s/n;i+=t*Math.cos(a)+"px "+e*Math.sin(a)+"px 0 "+r+(s==n-1?"":",")}return i}function YOe(){return new FE}var DE,aJ,oJ,NE,lJ,cJ,uJ,lN,FE,fJ=yt(()=>{vx();DE=/^Format:[\s\t]*/,aJ=/^Style:[\s\t]*/,oJ=/^Dialogue:[\s\t]*/,NE=/[\s\t]*,[\s\t]*/,lJ=/\{[^}]+\}/g,cJ=/\\N/g,uJ=/^\[(.*)[\s\t]?Styles\]$/,lN=/^\[(.*)[\s\t]?Events\]$/,FE=class{h;O=0;c=null;l=[];m=[];N=null;f;P={};async init(e){this.h=e,e.errors&&(this.f=(await Promise.resolve().then(()=>(oN(),aN))).ParseErrorBuilder)}parse(e,r){if(this.O)switch(this.O){case 1:if(e==="")this.O=0;else if(aJ.test(e))if(this.N){let n=e.replace(aJ,"").split(NE);this.S(n)}else this.g(this.f?.T("Style",r));else DE.test(e)?this.N=e.replace(DE,"").split(NE):lN.test(e)&&(this.N=null,this.O=2);break;case 2:if(e==="")this.Q();else if(oJ.test(e))if(this.Q(),this.N){let n=e.replace(oJ,"").split(NE),i=this.U(n,r);i&&(this.c=i)}else this.g(this.f?.T("Dialogue",r));else this.c?this.c.text+=`
|
||
|
|
`+e.replace(lJ,"").replace(cJ,`
|
||
|
|
`):DE.test(e)?this.N=e.replace(DE,"").split(NE):uJ.test(e)?(this.N=null,this.O=1):lN.test(e)&&(this.N=null)}else e===""||(uJ.test(e)?(this.N=null,this.O=1):lN.test(e)&&(this.N=null,this.O=2))}done(){return{metadata:{},cues:this.l,regions:[],errors:this.m}}Q(){this.c&&(this.l.push(this.c),this.h.onCue?.(this.c),this.c=null)}S(e){let r="Default",n={},i,s="center",a="bottom",o,l=1.2,c,u,d=3,f=[];for(let p=0;p<this.N.length;p++){let h=this.N[p],m=e[p];switch(h){case"Name":r=m;break;case"Fontname":n["font-family"]=m;break;case"Fontsize":n["font-size"]=`calc(${m} / var(--overlay-height))`;break;case"PrimaryColour":let v=cN(m);v&&(n["--cue-color"]=v);break;case"BorderStyle":d=parseInt(m,10);break;case"BackColour":u=cN(m);break;case"OutlineColour":let b=cN(m);b&&(c=b);break;case"Bold":parseInt(m)&&(n["font-weight"]="bold");break;case"Italic":parseInt(m)&&(n["font-style"]="italic");break;case"Underline":parseInt(m)&&(n["text-decoration"]="underline");break;case"StrikeOut":parseInt(m)&&(n["text-decoration"]="line-through");break;case"Spacing":n["letter-spacing"]=m+"px";break;case"AlphaLevel":n.opacity=parseFloat(m);break;case"ScaleX":f.push(`scaleX(${parseFloat(m)/100})`);break;case"ScaleY":f.push(`scaleY(${parseFloat(m)/100})`);break;case"Angle":f.push(`rotate(${m}deg)`);break;case"Shadow":l=parseInt(m,10)*1.2;break;case"MarginL":n["--cue-width"]="auto",n["--cue-left"]=parseFloat(m)+"px";break;case"MarginR":n["--cue-width"]="auto",n["--cue-right"]=parseFloat(m)+"px";break;case"MarginV":o=parseFloat(m);break;case"Outline":i=parseInt(m,10);break;case"Alignment":let y=parseInt(m,10);switch(y>=4&&(a=y>=7?"top":"center"),y%3){case 1:s="start";break;case 2:s="center";break;case 3:s="end";break}}}if(n.R=a,n["--cue-white-space"]="normal",n["--cue-line-height"]="normal",n["--cue-text-align"]=s,a==="center"?(n["--cue-top"]="50%",f.push("translateY(-50%)")):n[`--cue-${a}`]=(o||0)+"px",d===1&&(n["--cue-padding-y"]="0"),(d===1||u)&&(n["--cue-bg-color"]=d===1?"none":u),d===3&&c&&(n["--cue-outline"]=`${i}px solid ${c}`),d===1&&typeof i=="number"){let p=u??"#000";n["--cue-text-shadow"]=[c&&uN(i*1.2,l*1.2,c),c?uN(i*(i/2),l*(i/2),p):uN(i,l,p)].filter(Boolean).join(", ")}f.length&&(n["--cue-transform"]=f.join(" ")),this.P[r]=n}U(e,r){let n=this.V(e),i=this.q(n.Start,n.End,r);if(!i)return;let s=new oc(i[0],i[1],""),a={...this.P[n.Style]||{}},o=n.Name?`<v ${n.Name}>`:"",l=a.R,c=n.MarginL&&parseFloat(n.MarginL),u=n.MarginR&&parseFloat(n.MarginR),d=n.MarginV&&parseFloat(n.MarginV);return c&&(a["--cue-width"]="auto",a["--cue-left"]=c+"px"),u&&(a["--cue-width"]="auto",a["--cue-right"]=u+"px"),d&&l!=="center"&&(a[`--cue-${l}`]=d+"px"),s.text=o+e.slice(this.N.length-1).join(", ").replace(lJ,"").replace(cJ,`
|
||
|
|
`),delete a.R,Object.keys(a).length&&(s.style=a),s}V(e){let r={};for(let n=0;n<this.N.length;n++)r[this.N[n]]=e[n];return r}q(e,r,n){let i=lc(e),s=lc(r);if(i!==null&&s!==null&&s>i)return[i,s];i===null&&this.g(this.f?.s(e,n)),s===null&&this.g(this.f?.t(r,n)),i!=null&&s!==null&&s>i&&this.g(this.f?.u(i,s,n))}g(e){if(e){if(this.m.push(e),this.h.strict)throw this.h.cancel(),e;this.h.onError?.(e)}}}});async function vJ(t,e){let r=new ReadableStream({start(n){let i=t.split(yJ);for(let s of i)n.enqueue(s);n.close()}});return $E(r,e)}async function $E(t,e){let r=e?.type??"vtt",n;if(typeof r=="string")switch(r){case"srt":n=(await Promise.resolve().then(()=>(sJ(),iJ))).default;break;case"ssa":case"ass":n=(await Promise.resolve().then(()=>(fJ(),dJ))).default;break;default:n=(await Promise.resolve().then(function(){return p6e})).default}else n=r;let i,s=t.getReader(),a=n(),o=!!e?.strict||!!e?.errors;await a.init({strict:!1,...e,errors:o,type:r,cancel(){s.cancel(),i=a.done(!0)}});let l=1;for(;;){let{value:c,done:u}=await s.read();if(u){a.parse("",l),i=a.done(!1);break}a.parse(c,l),l++}return i}async function bJ(t,e){let r=await t;if(!r.ok||!r.body)return{metadata:{},cues:[],regions:[],errors:[void 0]};let n=r.headers.get("content-type")||"",i=n.match(/text\/(.*?)(?:;|$)/)?.[1],s=n.match(/charset=(.*?)(?:;|$)/)?.[1];return hN(r.body,{type:i,encoding:s,...e})}async function hN(t,{encoding:e="utf-8",...r}={}){let n=t.pipeThrough(new fN(e));return $E(n,r)}function ZOe(t){let e=parseInt(t,10);return Number.isNaN(e)?null:e}function xx(t){let e=parseInt(t.replace(QOe,""),10);return!Number.isNaN(e)&&e>=0&&e<=100?e:null}function hJ(t){if(!t.includes(pJ))return null;let[e,r]=t.split(pJ).map(xx);return e!==null&&r!==null?[e,r]:null}function JOe(t){let e=parseFloat(t);return Number.isNaN(e)?null:e}function lc(t){let e=t.match(d6e);if(!e)return null;let r=e[1]?parseInt(e[1],10):0,n=parseInt(e[2],10),i=parseInt(e[3],10),s=e[4]?parseInt(e[4].padEnd(3,"0"),10):0,a=r*3600+n*60+i+s/1e3;return r<0||n<0||i<0||s<0||n>59||i>59?null:a}function f6e(){return new og}function gN(t){let e="",r=1,n=[],i=[],s;for(let c=0;c<t.text.length;c++){let u=t.text[c];switch(r){case 1:u==="<"?(l(),r=2):e+=u;break;case 2:switch(u){case`
|
||
|
|
`:case" ":case" ":a(),r=4;break;case".":a(),r=3;break;case"/":r=5;break;case">":a(),r=1;break;default:!e&&h6e.test(u)&&(r=6),e+=u;break}break;case 3:switch(u){case" ":case" ":case`
|
||
|
|
`:o(),s&&s.class?.trim(),r=4;break;case".":o();break;case">":o(),s&&s.class?.trim(),r=1;break;default:e+=u}break;case 4:u===">"?(e=e.replace(m6e," "),s?.type==="v"?s.voice=dN(e):s?.type==="lang"&&(s.lang=dN(e)),e="",r=1):e+=u;break;case 5:u===">"&&(e="",s=i.pop(),r=1);break;case 6:if(u===">"){let d=lc(e);d!==null&&d>=t.startTime&&d<=t.endTime&&(e="timestamp",a(),s.time=d),e="",r=1}else e+=u;break}}function a(){if(b6e.has(e)){let c=s;s=x6e(e),c?(i[i.length-1]!==c&&i.push(c),c.children.push(s)):n.push(s)}e="",r=1}function o(){if(s&&e){let c=e.replace("bg_","");v6e.has(c)?s[e.startsWith("bg_")?"bgColor":"color"]=c:s.class=s.class?s.class+" "+e:e}e=""}function l(){if(!e)return;let c={type:"text",data:dN(e)};s?s.children.push(c):n.push(c),e=""}return r===1&&l(),n}function x6e(t){return{tagName:xJ[t],type:t,children:[]}}function dN(t){return t.replace(y6e,e=>g6e[e]||"'")}function bi(t,e,r){t.style.setProperty(`--${e}`,r+"")}function Lu(t,e,r=!0){t.setAttribute(`data-${e}`,r===!0?"":r+"")}function jE(t,e){t.setAttribute("data-part",e)}function w6e(t){return parseFloat(getComputedStyle(t).lineHeight)||0}function wJ(t){if(mN)throw Error("[media-captions] called `createVTTCueTemplate` on the server - use `renderVTTCueString`");let e=document.createElement("template");return e.innerHTML=UE(t),{cue:t,content:e.content}}function UE(t,e=0){return zE(gN(t),e)}function zE(t,e=0){let r,n="";for(let i of t)if(i.type==="text")n+=i.data;else{let s=i.type==="timestamp";r={},r.class=i.class,r.title=i.type==="v"&&i.voice,r.lang=i.type==="lang"&&i.lang,r["data-part"]=i.type==="v"&&"voice",s&&(r["data-part"]="timed",r["data-time"]=i.time,r["data-future"]=i.time>e,r["data-past"]=i.time<e),r.style=`${i.color?`color: ${i.color};`:""}${i.bgColor?`background-color: ${i.bgColor};`:""}`;let a=Object.entries(r).filter(o=>o[1]).map(o=>`${o[0]}="${o[1]===!0?"":o[1]}"`).join(" ");n+=`<${i.tagName}${a?" "+a:""}>${zE(i.children)}</${i.tagName}>`}return n}function yN(t,e){if(!mN)for(let r of t.querySelectorAll('[data-part="timed"]')){let n=Number(r.getAttribute("data-time"));Number.isNaN(n)||(n>e?Lu(r,"future"):r.removeAttribute("data-future"),n<e?Lu(r,"past"):r.removeAttribute("data-past"))}}function k6e(t,e){let r=null,n;function i(){s(),t(...n),n=void 0}function s(){clearTimeout(r),r=null}function a(){n=[].slice.call(arguments),s(),r=setTimeout(i,e)}return a}function vN(t){return t instanceof HTMLElement?{top:t.offsetTop,width:t.clientWidth,height:t.clientHeight,left:t.offsetLeft,right:t.offsetLeft+t.clientWidth,bottom:t.offsetTop+t.clientHeight}:{...t}}function BE(t,e,r){switch(e){case"+x":t.left+=r,t.right+=r;break;case"-x":t.left-=r,t.right-=r;break;case"+y":t.top+=r,t.bottom+=r;break;case"-y":t.top-=r,t.bottom-=r;break}}function S6e(t,e){return t.left<=e.right&&t.right>=e.left&&t.top<=e.bottom&&t.bottom>=e.top}function C6e(t,e){for(let r=0;r<e.length;r++)if(S6e(t,e[r]))return e[r];return null}function gJ(t,e){return e.top>=0&&e.bottom<=t.height&&e.left>=0&&e.right<=t.width}function T6e(t,e,r){switch(r){case"+x":return e.left<0;case"-x":return e.right>t.width;case"+y":return e.top<0;case"-y":return e.bottom>t.height}}function E6e(t,e){let r=Math.max(0,Math.min(t.width,e.right)-Math.max(0,e.left)),n=Math.max(0,Math.min(t.height,e.bottom)-Math.max(0,e.top));return r*n/(t.height*t.width)}function bN(t,e){return{top:e.top/t.height,left:e.left/t.width,right:(t.width-e.right)/t.width,bottom:(t.height-e.bottom)/t.height}}function kJ(t,e){return e.top=e.top*t.height,e.left=e.left*t.width,e.right=t.width-e.right*t.width,e.bottom=t.height-e.bottom*t.height,e}function CJ(t,e,r,n){let i=bN(e,r);for(let s of SJ)bi(t,`${n}-${s}`,i[s]*100+"%")}function TJ(t,e,r,n){let i=1,s,a={...e};for(let o=0;o<n.length;o++){for(;T6e(t,e,n[o])||gJ(t,e)&&C6e(e,r);)BE(e,n[o],1);if(gJ(t,e))return e;let l=E6e(t,e);i>l&&(s={...e},i=l),e={...a}}return s||a}function I6e(t,e,r,n){let i=r.firstElementChild,s=R6e(e),a,o=[];if(r[Mu]||(r[Mu]=A6e(t,r)),a=kJ(t,{...r[Mu]}),r[wx])o=[r[wx]==="top"?"+y":"-y","+x","-x"];else if(e.snapToLines){let l;switch(e.vertical){case"":o=["+y","-y"],l="height";b
|
||
|
|
`:"")+e}break;case 3:this.p(e.split(bx),r);break}else if(e.startsWith(n6e))this.e=4;else if(e.startsWith(i6e))this.e=3,this.d=new Sx,this.p(e.replace(s6e,"").split(bx),r);else if(e.includes(a6e)){let n=this.q(e,r);n&&(this.c=new oc(n[0],n[1],""),this.c.id=this.n,this.o(n[2],r)),this.e=2}else r===1&&this.k(e,r);this.n=e}done(){return{metadata:this.i,cues:this.l,regions:Object.values(this.j),errors:this.m}}k(e,r){if(r>1){if(lg.test(e)){let[n,i]=e.split(lg);n&&(this.i[n]=(i||"").replace(bx,""))}}else e.startsWith(e6e)?this.e=1:this.g(this.f?.r())}q(e,r){let[n,i=""]=e.split(o6e),[s,...a]=i.split(bx),o=lc(n),l=lc(s);if(o!==null&&l!==null&&l>o)return[o,l,a];o===null&&this.g(this.f?.s(n,r)),l===null&&this.g(this.f?.t(s,r)),o!=null&&l!==null&&l>o&&this.g(this.f?.u(o,l,r))}p(e,r){let n;for(let i=0;i<e.length;i++)if(lg.test(e[i])){n=!1;let[s,a]=e[i].split(lg);switch(s){case"id":this.d.id=a;break;case"width":let o=xx(a);o!==null?this.d.width=o:n=!0;break;case"lines":let l=ZOe(a);l!==null?this.d.lines=l:n=!0;break;case"regionanchor":let c=hJ(a);c!==null?(this.d.regionAnchorX=c[0],this.d.regionAnchorY=c[1]):n=!0;break;case"viewportanchor":let u=hJ(a);u!==null?(this.d.viewportAnchorX=u[0],this.d.viewportAnchorY=u[1]):n=!0;break;case"scroll":a==="up"?this.d.scroll="up":n=!0;break;default:this.g(this.f?.v(s,a,r))}n&&this.g(this.f?.w(s,a,r))}}o(e,r){let n;for(let i=0;i<e.length;i++)if(n=!1,lg.test(e[i])){let[s,a]=e[i].split(lg);switch(s){case"region":let o=this.j[a];o&&(this.c.region=o);break;case"vertical":a==="lr"||a==="rl"?(this.c.vertical=a,this.c.region=null):n=!0;break;case"line":let[l,c]=a.split(mJ);if(l.includes(t6e)){let h=xx(l);h!==null?(this.c.line=h,this.c.snapToLines=!1):n=!0}else{let h=JOe(l);h!==null?this.c.line=h:n=!0}c6e.test(c)?this.c.lineAlign=c:c&&(n=!0),this.c.line!=="auto"&&(this.c.region=null);break;case"position":let[u,d]=a.split(mJ),f=xx(u);f!==null?this.c.position=f:n=!0,d&&u6e.test(d)?this.c.positionAlign=d:d&&(n=!0);break;case"size":let p=xx(a);p!==null?(this.c.size=p,p<100&&(this.c.region=null)):n=!0;break;case"align":l6e.test(a)?this.c.align=a:n=!0;break;default:this.g(this.f?.x(s,a,r))}n&&this.g(this.f?.y(s,a,r))}}g(e){if(e){if(this.m.push(e),this.h.strict)throw this.h.cancel(),e;this.h.onError?.(e)}}};p6e=Object.freeze({__proto__:null,VTTBlock:ag,VTTParser:og,default:f6e,parseVTTTimestamp:lc}),h6e=/[0-9]/,m6e=/[\s\t]+/,xJ={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span",timestamp:"span"},g6e={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\xA0","‎":"\u200E","‏":"\u200F"},y6e=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,v6e=new Set(["white","lime","cyan","red","yellow","magenta","blue","black"]),b6e=new Set(Object.keys(xJ));Mu=Symbol(0);SJ=["top","left","right","bottom"];wx=Symbol(0);_6e=["-y","+y","-x","+x"];VE=class{overlay;z;A=0;C="ltr";B=[];D=!1;E;j=new Map;l=new Map;get dir(){return this.C}set dir(e){this.C=e,Lu(this.overlay,"dir",e)}get currentTime(){return this.A}set currentTime(e){this.A=e,this.update()}constructor(e,r){this.overlay=e,this.dir=r?.dir??"ltr",e.setAttribute("translate","yes"),e.setAttribute("aria-live","off"),e.setAttribute("aria-atomic","true"),jE(e,"captions"),this.G(),this.E=new ResizeObserver(this.I.bind(this)),this.E.observe(e)}changeTrack({regions:e,cues:r}){this.reset(),this.J(e);for(let n of r)this.l.set(n,null);this.update()}addCue(e){this.l.set(e,null),this.update()}removeCue(e){this.l.delete(e),this.update()}update(e=!1){this.H(e)}reset(){this.l.clear(),this.j.clear(),this.B=[],this.overlay.textContent=""}destroy(){this.reset(),this.E.disconnect()}I(){this.D=!0,this.K()}K=k6e(()=>{this.D=!1,this.G();for(let e of this.j.values())e[Mu]=null;for(let e of this.l.values())e&&(e[Mu]=null);this.H(!0)},50);G(){this.z=vN(this.overlay),bi(this.overlay,"overlay-width",this.z.width+"px"),bi(this.overlay,"overlay-height",this.z.height+"px")}H(e=!1){if(!this.l.size||this.D)return;let r,n=[...this.l.keys()].filter(s=>this.A>=s.startTime&&this.A<=s.endTime).sort((s,a)=>s.startTime!==a.startTime?s.startTime-a.startTime:s.endTime-a.endTime)
|
||
|
|
`)[1].trim():null}function KDe(t){let e=t.split(`
|
||
|
|
`);for(let r of e)if(r.startsWith("#EXT-X-TARGETDURATION")){let n=parseFloat(r.split(":")[1]);if(!isNaN(n))return n}return-1}function XJ(t){return(Lr(t)?t:[t]).map(e=>me(e)?{src:e,type:QJ(e)}:{...e,type:QJ(e.src,e.type)})}function QJ(t,e){return me(e)&&e.length?e:me(t)&&x4.has(t)?x4.get(t):!e&&bp({src:t,type:""})?"application/x-mpegurl":!e&&N2({src:t,type:""})?"application/dash+xml":!me(t)||t.startsWith("blob:")?"video/object":t.includes("youtube")||t.includes("youtu.be")?"video/youtube":t.includes("vimeo")&&!t.includes("progressive_redirect")&&!t.includes(".m3u8")?"video/vimeo":"?"}function ZJ(t,e){return t?.src===e?.src&&t?.type===e?.type}function JJ(t,e,r){let n=e-t,i=r-t;return n>0?i/n:0}function ZDe(t,e,r,n){return lF(t,Rn(r,YN(n)),e)}function JDe(t,e,r,n){let i=lF(0,r,1),s=e-t,a=s*i,o=a/n,l=n*Math.round(o);return t+l}function Oee(t,{clamp:e,offset:r,orientation:n}){let i=getComputedStyle(t),s=parseFloat(i.width),a=parseFloat(i.height),o={top:null,right:null,bottom:null,left:null};if(o[n==="horizontal"?"bottom":"left"]=`calc(100% + var(--media-slider-preview-offset, ${r}px))`,n==="horizontal"){let l=s/2;if(!e)o.left=`calc(var(--slider-pointer) - ${l}px)`;else{let c=`max(0px, calc(var(--slider-pointer) - ${l}px))`,u=`calc(100% - ${s}px)`;o.left=`min(${c}, ${u})`}}else{let l=a/2;if(!e)o.bottom=`calc(var(--slider-pointer) - ${l}px)`;else{let c=`max(${l}px, calc(var(--slider-pointer) - ${l}px))`,u=`calc(100% - ${a}px)`;o.bottom=`min(${c}, ${u})`}}Object.assign(t.style,o)}function rNe(t,e){let r=XD(t,e);for(let{el:n,top:i,left:s}of r)n.scroll({top:i,left:s,behavior:e.behavior})}function nNe(t,e={}){rNe(t,{scrollMode:"if-needed",block:"center",inline:"center",...e})}function fNe(t){return er.isValidElement(t)&&t.type===dNe}function pNe(t,e){let r={...e};for(let n in e){let i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{s(...o),i(...o)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function Fee(t){return t?.$$PROVIDER_TYPE==="REMOTION"}function Ew(t,e){let r=tc(Bu);return Ut((e?.current?.$state||r||mNe)[t])}function Wi(t,e){let r=tc(Nu);return Ut((e?.current?.$state||r||jee)[t])}function j2(t){let e=tc(Nu);return KD(t?.current?t.current.$state:e||jee)}var er,le,Y6e,Mx,ree,cg,JE,Xt,uee,dee,fee,pee,hee,mee,gee,yee,_x,Z6e,J6e,eDe,tDe,rDe,nDe,iDe,Re,Kn,sDe,Nu,xee,aDe,Cw,gp,e2,oDe,lDe,cDe,uDe,dDe,fDe,pDe,hDe,mDe,Ce,jx,Ox,t2,r2,XN,QN,i2,s2,bDe,xDe,Qr,a2,dc,Ree,Dx,SDe,UJ,ZN,CDe,o2,l2,JN,c2,Bx,u2,pg,d2,QE,f2,p2,e4,LDe,t4,nl,r4,n4,Ex,i4,Ix,s4,a4,o4,l4,c4,ug,_De,ODe,u4,d4,jDe,f4,BDe,h2,m2,g2,UN,VDe,$De,y2,p4,h4,v2,m4,g4,HDe,y4,v4,KJ,b4,b2,Es,x2,Dt,x4,w4,k4,w2,YDe,S4,C4,T4,k2,mp,XDe,E4,I4,A4,Mn,S2,QDe,P4,R4,L4,M4,_4,O4,D4,N4,F4,Bu,C2,dF,Fx,qN,j4,hg,Gi,yp,uc,XE,T2,E2,B4,I2,eNe,A2,tNe,V4,$4,U4,z4,q4,P2,R2,F2,il,iNe,sNe,H4,aNe,oNe,Tw,lNe,Du,$x,cNe,G4,HN,W4,K4,Ux,L2,Dee,M2,uNe,Y4,X4,Q4,Z4,J4,vp,_2,zx,qx,Hx,O2,Gx,Wx,Kx,Yx,Xx,Qx,Zx,Jx,ew,tw,rw,nw,mg,iw,sw,aw,ow,lw,cw,uw,dw,fw,pw,hw,mw,gw,yw,vw,bw,xw,ww,D2,gg,kw,Nee,eF,dNe,hNe,ke,eee,mNe,tee,jee,ba=yt(()=>{"use client";er=Z(Ee(),1);ux();lo();co();QD();nJ();le=typeof document>"u",Y6e=le?"":navigator?.userAgent.toLowerCase()||"",Mx=!le&&/iphone|ipad|ipod|ios|crios|fxios/i.test(Y6e),ree=!le&&/(iphone|ipod)/gi.test(navigator?.platform||""),cg=!le&&!!window.chrome,JE=!le&&(!!window.safari||Mx);Xt=class{#e;get length(){return this.#e.length}constructor(e,r){Lr(e)?this.#e=e:!Jt(e)&&!Jt(r)?this.#e=[[e,r]]:this.#e=[]}start(e){return this.#e[e][0]??1/0}end(e){return this.#e[e][1]??1/0}};uee=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\?)/i,dee=new Set(["audio/mpeg","audio/ogg","audio/3gp","audio/mp3","audio/webm","audio/flac","audio/m4a","audio/m4b","audio/mp4a","audio/mp4"]),fee=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,pee=new Set(["video/mp4","video/webm","video/3gp","video/ogg","video/avi","video/mpeg"]),hee=/\.(m3u8)($|\?)/i,mee=/\.(mpd)($|\?)/i,gee=new Set(["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","appli
|
||
|
|
`:"")+e;else if(e.includes(T7e)){let n=this.o(e,r);n&&(this.a=new Ku(n[0],n[1],n[2].join(" ")),this.a.id=this.l,this.c=Dg.Cue)}this.l=e}o(e,r){return super.o(e.replace(C7e,"."),r)}}});var r8={};ln(r8,{ParseErrorBuilder:()=>I7e});var I7e,n8=yt(()=>{b1();I7e={p(){return new Ns({code:yo.BadSignature,reason:"missing WEBVTT file header",line:1})},q(t,e){return new Ns({code:yo.BadTimestamp,reason:`cue start timestamp \`${t}\` is invalid on line ${e}`,line:e})},r(t,e){return new Ns({code:yo.BadTimestamp,reason:`cue end timestamp \`${t}\` is invalid on line ${e}`,line:e})},s(t,e,r){return new Ns({code:yo.BadTimestamp,reason:`cue end timestamp \`${e}\` is greater than start \`${t}\` on line ${r}`,line:r})},w(t,e,r){return new Ns({code:yo.BadSettingValue,reason:`invalid value for cue setting \`${t}\` on line ${r} (value: ${e})`,line:r})},v(t,e,r){return new Ns({code:yo.UnknownSetting,reason:`unknown cue setting \`${t}\` on line ${r} (value: ${e})`,line:r})},u(t,e,r){return new Ns({code:yo.BadSettingValue,reason:`invalid value for region setting \`${t}\` on line ${r} (value: ${e})`,line:r})},t(t,e,r){return new Ns({code:yo.UnknownSetting,reason:`unknown region setting \`${t}\` on line ${r} (value: ${e})`,line:r})},T(t,e){return new Ns({code:yo.BadFormat,reason:`format missing for \`${t}\` block on line ${e}`,line:e})}}});var _se={};ln(_se,{SSAParser:()=>sA,default:()=>A7e});function s8(t){let e=parseInt(t.replace("&H",""),16);if(e>=0){let n=(e>>24&255^255)/255,i=e>>16&255,s=e>>8&255;return"rgba("+[e&255,s,i,n].join(",")+")"}return null}function a8(t,e,r){let n=Math.ceil(2*Math.PI*t),i="";for(let s=0;s<n;s++){let a=2*Math.PI*s/n;i+=t*Math.cos(a)+"px "+e*Math.sin(a)+"px 0 "+r+(s==n-1?"":",")}return i}function A7e(){return new sA}var nA,Ase,Pse,iA,Rse,Lse,Mse,i8,sA,Ose=yt(()=>{b1();nA=/^Format:[\s\t]*/,Ase=/^Style:[\s\t]*/,Pse=/^Dialogue:[\s\t]*/,iA=/[\s\t]*,[\s\t]*/,Rse=/\{[^}]+\}/g,Lse=/\\N/g,Mse=/^\[(.*)[\s\t]?Styles\]$/,i8=/^\[(.*)[\s\t]?Events\]$/,sA=class{f;O=0;a=null;j=[];k=[];N=null;d;P={};async init(e){this.f=e,e.errors&&(this.d=(await Promise.resolve().then(()=>(n8(),r8))).ParseErrorBuilder)}parse(e,r){if(this.O)switch(this.O){case 1:if(e==="")this.O=0;else if(Ase.test(e))if(this.N){let n=e.replace(Ase,"").split(iA);this.S(n)}else this.e(this.d?.T("Style",r));else nA.test(e)?this.N=e.replace(nA,"").split(iA):i8.test(e)&&(this.N=null,this.O=2);break;case 2:if(e==="")this.Q();else if(Pse.test(e))if(this.Q(),this.N){let n=e.replace(Pse,"").split(iA),i=this.U(n,r);i&&(this.a=i)}else this.e(this.d?.T("Dialogue",r));else this.a?this.a.text+=`
|
||
|
|
`+e.replace(Rse,"").replace(Lse,`
|
||
|
|
`):nA.test(e)?this.N=e.replace(nA,"").split(iA):Mse.test(e)?(this.N=null,this.O=1):i8.test(e)&&(this.N=null)}else e===""||(Mse.test(e)?(this.N=null,this.O=1):i8.test(e)&&(this.N=null,this.O=2))}done(){return{metadata:{},cues:this.j,regions:[],errors:this.k}}Q(){this.a&&(this.j.push(this.a),this.f.onCue?.(this.a),this.a=null)}S(e){let r="Default",n={},i,s="center",a="bottom",o,l=1.2,c,u,d=3,f=[];for(let p=0;p<this.N.length;p++){let h=this.N[p],m=e[p];switch(h){case"Name":r=m;break;case"Fontname":n["font-family"]=m;break;case"Fontsize":n["font-size"]=`calc(${m} / var(--overlay-height))`;break;case"PrimaryColour":let v=s8(m);v&&(n["--cue-color"]=v);break;case"BorderStyle":d=parseInt(m,10);break;case"BackColour":u=s8(m);break;case"OutlineColour":let b=s8(m);b&&(c=b);break;case"Bold":parseInt(m)&&(n["font-weight"]="bold");break;case"Italic":parseInt(m)&&(n["font-style"]="italic");break;case"Underline":parseInt(m)&&(n["text-decoration"]="underline");break;case"StrikeOut":parseInt(m)&&(n["text-decoration"]="line-through");break;case"Spacing":n["letter-spacing"]=m+"px";break;case"AlphaLevel":n.opacity=parseFloat(m);break;case"ScaleX":f.push(`scaleX(${parseFloat(m)/100})`);break;case"ScaleY":f.push(`scaleY(${parseFloat(m)/100})`);break;case"Angle":f.push(`rotate(${m}deg)`);break;case"Shadow":l=parseInt(m,10)*1.2;break;case"MarginL":n["--cue-width"]="auto",n["--cue-left"]=parseFloat(m)+"px";break;case"MarginR":n["--cue-width"]="auto",n["--cue-right"]=parseFloat(m)+"px";break;case"MarginV":o=parseFloat(m);break;case"Outline":i=parseInt(m,10);break;case"Alignment":let y=parseInt(m,10);switch(y>=4&&(a=y>=7?"top":"center"),y%3){case 1:s="start";break;case 2:s="center";break;case 3:s="end";break}}}if(n.R=a,n["--cue-white-space"]="normal",n["--cue-line-height"]="normal",n["--cue-text-align"]=s,a==="center"?(n["--cue-top"]="50%",f.push("translateY(-50%)")):n[`--cue-${a}`]=(o||0)+"px",d===1&&(n["--cue-padding-y"]="0"),(d===1||u)&&(n["--cue-bg-color"]=d===1?"none":u),d===3&&c&&(n["--cue-outline"]=`${i}px solid ${c}`),d===1&&typeof i=="number"){let p=u??"#000";n["--cue-text-shadow"]=[c&&a8(i*1.2,l*1.2,c),c?a8(i*(i/2),l*(i/2),p):a8(i,l,p)].filter(Boolean).join(", ")}f.length&&(n["--cue-transform"]=f.join(" ")),this.P[r]=n}U(e,r){let n=this.V(e),i=this.o(n.Start,n.End,r);if(!i)return;let s=new Ku(i[0],i[1],""),a={...this.P[n.Style]||{}},o=n.Name?`<v ${n.Name}>`:"",l=a.R,c=n.MarginL&&parseFloat(n.MarginL),u=n.MarginR&&parseFloat(n.MarginR),d=n.MarginV&&parseFloat(n.MarginV);return c&&(a["--cue-width"]="auto",a["--cue-left"]=c+"px"),u&&(a["--cue-width"]="auto",a["--cue-right"]=u+"px"),d&&l!=="center"&&(a[`--cue-${l}`]=d+"px"),s.text=o+e.slice(this.N.length-1).join(", ").replace(Rse,"").replace(Lse,`
|
||
|
|
`),delete a.R,Object.keys(a).length&&(s.style=a),s}V(e){let r={};for(let n=0;n<this.N.length;n++)r[this.N[n]]=e[n];return r}o(e,r,n){let i=Yu(e),s=Yu(r);if(i!==null&&s!==null&&s>i)return[i,s];i===null&&this.e(this.d?.q(e,n)),s===null&&this.e(this.d?.r(r,n)),i!=null&&s!==null&&s>i&&this.e(this.d?.s(i,s,n))}e(e){if(e){if(this.k.push(e),this.f.strict)throw this.f.cancel(),e;this.f.onError?.(e)}}}});async function l8(t,e){let r=new ReadableStream({start(n){let i=t.split(P7e);for(let s of i)n.enqueue(s);n.close()}});return jse(r,e)}async function jse(t,e){let r=e?.type??"vtt",n;if(typeof r=="string")switch(r){case"srt":n=(await Promise.resolve().then(()=>(Ise(),Ese))).default;break;case"ssa":case"ass":n=(await Promise.resolve().then(()=>(Ose(),_se))).default;break;default:n=(await Promise.resolve().then(function(){return W7e})).default}else n=r;let i,s=t.getReader(),a=n(),o=!!e?.strict||!!e?.errors;await a.init({strict:!1,...e,errors:o,type:r,cancel(){s.cancel(),i=a.done(!0)}});let l=1;for(;;){let{value:c,done:u}=await s.read();if(u){a.parse("",l),i=a.done(!1);break}a.parse(c,l),l++}return i}function M7e(t){let e=parseInt(t,10);return Number.isNaN(e)?null:e}function w1(t){let e=parseInt(t.replace(L7e,""),10);return!Number.isNaN(e)&&e>=0&&e<=100?e:null}function Nse(t){if(!t.includes(Dse))return null;let[e,r]=t.split(Dse).map(w1);return e!==null&&r!==null?[e,r]:null}function _7e(t){let e=parseFloat(t);return Number.isNaN(e)?null:e}function Yu(t){let e=t.match(H7e);if(!e)return null;let r=e[1]?parseInt(e[1],10):0,n=parseInt(e[2],10),i=parseInt(e[3],10),s=e[4]?parseInt(e[4].padEnd(3,"0"),10):0,a=r*3600+n*60+i+s/1e3;return r<0||n<0||i<0||s<0||n>59||i>59?null:a}function G7e(){return new Ng}function c8(t){let e="",r=1,n=[],i=[],s;for(let c=0;c<t.text.length;c++){let u=t.text[c];switch(r){case 1:u==="<"?(l(),r=2):e+=u;break;case 2:switch(u){case`
|
||
|
|
`:case" ":case" ":a(),r=4;break;case".":a(),r=3;break;case"/":r=5;break;case">":a(),r=1;break;default:!e&&K7e.test(u)&&(r=6),e+=u;break}break;case 3:switch(u){case" ":case" ":case`
|
||
|
|
`:o(),s&&s.class?.trim(),r=4;break;case".":o();break;case">":o(),s&&s.class?.trim(),r=1;break;default:e+=u}break;case 4:u===">"?(e=e.replace(Y7e," "),s?.type==="v"?s.voice=o8(e):s?.type==="lang"&&(s.lang=o8(e)),e="",r=1):e+=u;break;case 5:u===">"&&(e="",s=i.pop(),r=1);break;case 6:if(u===">"){let d=Yu(e);d!==null&&d>=t.startTime&&d<=t.endTime&&(e="timestamp",a(),s.time=d),e="",r=1}else e+=u;break}}function a(){if(J7e.has(e)){let c=s;s=eje(e),c?(i[i.length-1]!==c&&i.push(c),c.children.push(s)):n.push(s)}e="",r=1}function o(){if(s&&e){let c=e.replace("bg_","");Z7e.has(c)?s[e.startsWith("bg_")?"bgColor":"color"]=c:s.class=s.class?s.class+" "+e:e}e=""}function l(){if(!e)return;let c={type:"text",data:o8(e)};s?s.children.push(c):n.push(c),e=""}return r===1&&l(),n}function eje(t){return{tagName:Bse[t],type:t,children:[]}}function o8(t){return t.replace(Q7e,e=>X7e[e]||"'")}var yo,Ns,P7e,R7e,Ku,aA,Dse,L7e,O7e,Fse,D7e,Fg,N7e,F7e,j7e,B7e,x1,V7e,$7e,U7e,z7e,q7e,H7e,Dg,Ng,W7e,K7e,Y7e,Bse,X7e,Q7e,Z7e,J7e,kkt,Skt,b1=yt(()=>{yo={LoadFail:0,BadSignature:1,BadTimestamp:2,BadSettingValue:3,BadFormat:4,UnknownSetting:5},Ns=class extends Error{code;line;constructor(e){super(e.reason),this.code=e.code,this.line=e.line}},P7e=/\r?\n|\r/gm;R7e=window.VTTCue,Ku=class extends R7e{region=null;vertical="";snapToLines=!0;line="auto";lineAlign="start";position="auto";positionAlign="auto";size=100;align="center";style},aA=class{id="";width=100;lines=3;regionAnchorX=0;regionAnchorY=100;viewportAnchorX=0;viewportAnchorY=100;scroll=""},Dse=",",L7e="%";O7e="WEBVTT",Fse=",",D7e="%",Fg=/[:=]/,N7e=/^[\s\t]*(region|vertical|line|position|size|align)[:=]/,F7e="NOTE",j7e="REGION",B7e=/^REGION:?[\s\t]+/,x1=/[\s\t]+/,V7e="-->",$7e=/[\s\t]*-->[\s\t]+/,U7e=/start|center|end|left|right/,z7e=/start|center|end/,q7e=/line-(?:left|right)|center|auto/,H7e=/^(?:(\d{1,2}):)?(\d{2}):(\d{2})(?:\.(\d{1,3}))?$/,Dg=(t=>(t[t.None=0]="None",t[t.Header=1]="Header",t[t.Cue=2]="Cue",t[t.Region=3]="Region",t[t.Note=4]="Note",t))(Dg||{}),Ng=class{f;c=0;g={};h={};j=[];a=null;b=null;k=[];d;l="";async init(e){this.f=e,e.strict&&(this.c=1),e.errors&&(this.d=(await Promise.resolve().then(()=>(n8(),r8))).ParseErrorBuilder)}parse(e,r){if(e==="")this.a?(this.j.push(this.a),this.f.onCue?.(this.a),this.a=null):this.b?(this.h[this.b.id]=this.b,this.f.onRegion?.(this.b),this.b=null):this.c===1&&(this.i(e,r),this.f.onHeaderMetadata?.(this.g)),this.c=0;else if(this.c)switch(this.c){case 1:this.i(e,r);break;case 2:if(this.a){let n=this.a.text.length>0;!n&&N7e.test(e)?this.m(e.split(x1),r):this.a.text+=(n?`
|
||
|
|
`:"")+e}break;case 3:this.n(e.split(x1),r);break}else if(e.startsWith(F7e))this.c=4;else if(e.startsWith(j7e))this.c=3,this.b=new aA,this.n(e.replace(B7e,"").split(x1),r);else if(e.includes(V7e)){let n=this.o(e,r);n&&(this.a=new Ku(n[0],n[1],""),this.a.id=this.l,this.m(n[2],r)),this.c=2}else r===1&&this.i(e,r);this.l=e}done(){return{metadata:this.g,cues:this.j,regions:Object.values(this.h),errors:this.k}}i(e,r){if(r>1){if(Fg.test(e)){let[n,i]=e.split(Fg);n&&(this.g[n]=(i||"").replace(x1,""))}}else e.startsWith(O7e)?this.c=1:this.e(this.d?.p())}o(e,r){let[n,i=""]=e.split($7e),[s,...a]=i.split(x1),o=Yu(n),l=Yu(s);if(o!==null&&l!==null&&l>o)return[o,l,a];o===null&&this.e(this.d?.q(n,r)),l===null&&this.e(this.d?.r(s,r)),o!=null&&l!==null&&l>o&&this.e(this.d?.s(o,l,r))}n(e,r){let n;for(let i=0;i<e.length;i++)if(Fg.test(e[i])){n=!1;let[s,a]=e[i].split(Fg);switch(s){case"id":this.b.id=a;break;case"width":let o=w1(a);o!==null?this.b.width=o:n=!0;break;case"lines":let l=M7e(a);l!==null?this.b.lines=l:n=!0;break;case"regionanchor":let c=Nse(a);c!==null?(this.b.regionAnchorX=c[0],this.b.regionAnchorY=c[1]):n=!0;break;case"viewportanchor":let u=Nse(a);u!==null?(this.b.viewportAnchorX=u[0],this.b.viewportAnchorY=u[1]):n=!0;break;case"scroll":a==="up"?this.b.scroll="up":n=!0;break;default:this.e(this.d?.t(s,a,r))}n&&this.e(this.d?.u(s,a,r))}}m(e,r){let n;for(let i=0;i<e.length;i++)if(n=!1,Fg.test(e[i])){let[s,a]=e[i].split(Fg);switch(s){case"region":let o=this.h[a];o&&(this.a.region=o);break;case"vertical":a==="lr"||a==="rl"?(this.a.vertical=a,this.a.region=null):n=!0;break;case"line":let[l,c]=a.split(Fse);if(l.includes(D7e)){let h=w1(l);h!==null?(this.a.line=h,this.a.snapToLines=!1):n=!0}else{let h=_7e(l);h!==null?this.a.line=h:n=!0}z7e.test(c)?this.a.lineAlign=c:c&&(n=!0),this.a.line!=="auto"&&(this.a.region=null);break;case"position":let[u,d]=a.split(Fse),f=w1(u);f!==null?this.a.position=f:n=!0,d&&q7e.test(d)?this.a.positionAlign=d:d&&(n=!0);break;case"size":let p=w1(a);p!==null?(this.a.size=p,p<100&&(this.a.region=null)):n=!0;break;case"align":U7e.test(a)?this.a.align=a:n=!0;break;default:this.e(this.d?.v(s,a,r))}n&&this.e(this.d?.w(s,a,r))}}e(e){if(e){if(this.k.push(e),this.f.strict)throw this.f.cancel(),e;this.f.onError?.(e)}}};W7e=Object.freeze({__proto__:null,VTTBlock:Dg,VTTParser:Ng,default:G7e,parseVTTTimestamp:Yu}),K7e=/[0-9]/,Y7e=/[\s\t]+/,Bse={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span",timestamp:"span"},X7e={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\xA0","‎":"\u200E","‏":"\u200F"},Q7e=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,Z7e=new Set(["white","lime","cyan","red","yellow","magenta","blue","black"]),J7e=new Set(Object.keys(Bse));kkt=Symbol(0),Skt=Symbol(0)});var Mue=L(cr=>{"use strict";function Y9(t,e){var r=t.length;t.push(e);e:for(;0<r;){var n=r-1>>>1,i=t[n];if(0<bP(i,e))t[n]=e,t[r]=i,r=n;else break e}}function xl(t){return t.length===0?null:t[0]}function wP(t){if(t.length===0)return null;var e=t[0],r=t.pop();if(r!==e){t[0]=r;e:for(var n=0,i=t.length,s=i>>>1;n<s;){var a=2*(n+1)-1,o=t[a],l=a+1,c=t[l];if(0>bP(o,r))l<i&&0>bP(c,o)?(t[n]=c,t[l]=r,n=l):(t[n]=o,t[a]=r,n=a);else if(l<i&&0>bP(c,r))t[n]=c,t[l]=r,n=l;else break e}}return e}function bP(t,e){var r=t.sortIndex-e.sortIndex;return r!==0?r:t.id-e.id}cr.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Sue=performance,cr.unstable_now=function(){return Sue.now()}):(G9=Date,Cue=G9.now(),cr.unstable_now=function(){return G9.now()-Cue});var Sue,G9,Cue,Pc=[],md=[],eHe=1,Pa=null,ri=3,X9=!1,X1=!1,Q1=!1,Q9=!1,Iue=typeof setTimeout=="function"?setTimeout:null,Aue=typeof clearTimeout=="function"?clearTimeout:null,Tue=typeof setImmediate<"u"?setImmediate:null;function xP(t){for(var e=xl(md);e!==null;){if(e.callback===null)wP(md);else if(e.startTime<=t)wP(md),e.sortIndex=e.expirationTime,Y9(Pc,e);else break;e=xl(md)}}function Z9(t){if(Q1=!1,xP(t),!X1)if(xl(Pc)!==null)X1=!0,fy||(fy=!0,dy());else{var e=xl(md);e!==null&&J9(Z9,e.startTime-t)}}var fy=!1,Z1=-1,Pue=5,Rue=-1;function Lue(
|
||
|
|
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
|
|
`+r7+t+Vue}var n7=!1;function i7(t,e){if(!t||n7)return"";n7=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(t,[],d)}else{try{d.call()}catch(p){f=p}t.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=t())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),a=s[0],o=s[1];if(a&&o){var l=a.split(`
|
||
|
|
`),c=o.split(`
|
||
|
|
`);for(i=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(n===l.length||i===c.length)for(n=l.length-1,i=c.length-1;1<=n&&0<=i&&l[n]!==c[i];)i--;for(;1<=n&&0<=i;n--,i--)if(l[n]!==c[i]){if(n!==1||i!==1)do if(n--,i--,0>i||l[n]!==c[i]){var u=`
|
||
|
|
`+l[n].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),u}while(1<=n&&0<=i);break}}}finally{n7=!1,Error.prepareStackTrace=r}return(r=t?t.displayName||t.name:"")?gy(r):""}function SHe(t){switch(t.tag){case 26:case 27:case 5:return gy(t.type);case 16:return gy("Lazy");case 13:return gy("Suspense");case 19:return gy("SuspenseList");case 0:case 15:return i7(t.type,!1);case 11:return i7(t.type.render,!1);case 1:return i7(t.type,!0);case 31:return gy("Activity");default:return""}}function $ue(t){try{var e="";do e+=SHe(t),t=t.return;while(t);return e}catch(r){return`
|
||
|
|
Error generating stack: `+r.message+`
|
||
|
|
`+r.stack}}function La(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function vfe(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function CHe(t){var e=vfe(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function rR(t){t._valueTracker||(t._valueTracker=CHe(t))}function bfe(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=vfe(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function nR(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var THe=/[\n"\\]/g;function Oa(t){return t.replace(THe,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function V7(t,e,r,n,i,s,a,o){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+La(e)):t.value!==""+La(e)&&(t.value=""+La(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?$7(t,a,La(e)):r!=null?$7(t,a,La(r)):n!=null&&t.removeAttribute("value"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+La(o):t.removeAttribute("name")}function xfe(t,e,r,n,i,s,a,o){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||r!=null){if(!(s!=="submit"&&s!=="reset"||e!=null))return;r=r!=null?""+La(r):"",e=e!=null?""+La(e):r,o||e===t.value||(t.value=e),t.defaultValue=e}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=o?t.checked:!!n,t.defaultChecked=!!n,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a)}function $7(t,e,r){e==="number"&&nR(t.ownerDocument)===t||t.defaultValue===""+r||(t.defaultValue=""+r)}function My(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+La(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function wfe(t,e,r){if(e!=null&&(e=""+La(e),e!==t.value&&(t.value=e),r==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=r!=null?""+La(r):""}function kfe(t,e,r,n){if(e==null){if(n!=null){if(r!=null)throw Error(X(92));if(lk(n)){if(1<n.length)throw Error(X(93));n=n[0]}r=n}r==null&&(r=""),e=r}r=La(e),t.defaultValue=r,n=t.textContent,n===r&&n!==""&&n!==null&&(t.value=n)}function $y(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var EHe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan ms
|
||
|
|
`).replace(YGe,"")}function She(t,e){return e=$de(e),$de(t)===e}function $R(){}function Nt(t,e,r,n,i,s){switch(r){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||$y(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&$y(t,""+n);break;case"className":TP(t,"class",n);break;case"tabIndex":TP(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":TP(t,r,n);break;case"style":Sfe(t,n,s);break;case"data":if(e!=="object"){TP(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||r!=="href")){t.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(r);break}n=VP(""+n),t.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(r==="formAction"?(e!=="input"&&Nt(t,e,"name",i.name,i,null),Nt(t,e,"formEncType",i.formEncType,i,null),Nt(t,e,"formMethod",i.formMethod,i,null),Nt(t,e,"formTarget",i.formTarget,i,null)):(Nt(t,e,"encType",i.encType,i,null),Nt(t,e,"method",i.method,i,null),Nt(t,e,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(r);break}n=VP(""+n),t.setAttribute(r,n);break;case"onClick":n!=null&&(t.onclick=$R);break;case"onScroll":n!=null&&rt("scroll",t);break;case"onScrollEnd":n!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(X(61));if(r=n.__html,r!=null){if(i.children!=null)throw Error(X(60));t.innerHTML=r}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}r=VP(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,""+n):t.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,""):t.removeAttribute(r);break;case"capture":case"download":n===!0?t.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(r,n):t.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(r,n):t.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(r):t.setAttribute(r,n);break;case"popover":rt("beforetoggle",t),rt("toggle",t),BP(t,"popover",n);break;case"xlinkActuate":Rc(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Rc(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Rc(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Rc(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Rc(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Rc(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Rc(t,"http://www.w3.org/XML/199
|
||
|
|
padding-top: var(--size-4-3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.vtt-editor {
|
||
|
|
/* padding-bottom: var(--size-4-8); */
|
||
|
|
padding-left: var(--size-4-3);
|
||
|
|
padding-right: var(--size-4-3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.vtt-editor-search {
|
||
|
|
padding-left: var(--size-4-3);
|
||
|
|
padding-right: var(--size-4-3);
|
||
|
|
}
|
||
|
|
`;var mY=`/*! tailwindcss v4.0.14 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs--line-height:calc(1/.75);--text-sm--line-height:calc(1.25/.875);--text-base--line-height: 1.5 ;--text-lg--line-height:calc(1.75/1.125);--text-xl--line-height:calc(1.75/1.25);--text-3xl--line-height: 1.2 ;--text-4xl--line-height:calc(2.5/2.25);--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-xl:var(--radius-xl,calc(var(--mx-radius) + 4px));--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:initial;font-variation-settings:initial;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:initial;font-variation-settings:initial;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;h
|
||
|
|
`;var gY=`:root,
|
||
|
|
:host {
|
||
|
|
--mx-radius: 0.625rem;
|
||
|
|
--mx-background: oklch(1 0 0);
|
||
|
|
--mx-foreground: oklch(0.145 0 0);
|
||
|
|
--mx-card: oklch(1 0 0);
|
||
|
|
--mx-card-foreground: oklch(0.145 0 0);
|
||
|
|
--mx-popover: oklch(1 0 0);
|
||
|
|
--mx-popover-foreground: oklch(0.145 0 0);
|
||
|
|
--mx-primary: oklch(0.205 0 0);
|
||
|
|
--mx-primary-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-secondary: oklch(0.97 0 0);
|
||
|
|
--mx-secondary-foreground: oklch(0.205 0 0);
|
||
|
|
--mx-muted: oklch(0.97 0 0);
|
||
|
|
--mx-muted-foreground: oklch(0.556 0 0);
|
||
|
|
--mx-accent: oklch(0.97 0 0);
|
||
|
|
--mx-accent-foreground: oklch(0.205 0 0);
|
||
|
|
--mx-destructive: oklch(0.577 0.245 27.325);
|
||
|
|
--mx-success: oklch(62.7% 0.194 149.214);
|
||
|
|
--mx-warning: oklch(64.6% 0.222 41.116);
|
||
|
|
--mx-border: oklch(0.922 0 0);
|
||
|
|
--mx-input: oklch(0.922 0 0);
|
||
|
|
--mx-ring: oklch(0.708 0 0);
|
||
|
|
--mx-chart-1: oklch(0.646 0.222 41.116);
|
||
|
|
--mx-chart-2: oklch(0.6 0.118 184.704);
|
||
|
|
--mx-chart-3: oklch(0.398 0.07 227.392);
|
||
|
|
--mx-chart-4: oklch(0.828 0.189 84.429);
|
||
|
|
--mx-chart-5: oklch(0.769 0.188 70.08);
|
||
|
|
--mx-sidebar: oklch(0.985 0 0);
|
||
|
|
--mx-sidebar-foreground: oklch(0.145 0 0);
|
||
|
|
--mx-sidebar-primary: oklch(0.205 0 0);
|
||
|
|
--mx-sidebar-primary-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-sidebar-accent: oklch(0.97 0 0);
|
||
|
|
--mx-sidebar-accent-foreground: oklch(0.205 0 0);
|
||
|
|
--mx-sidebar-border: oklch(0.922 0 0);
|
||
|
|
--mx-sidebar-ring: oklch(0.708 0 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
.dark,
|
||
|
|
:host[class~="dark"],
|
||
|
|
:root[class~="dark"] {
|
||
|
|
--mx-background: oklch(0.145 0 0);
|
||
|
|
--mx-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-card: oklch(0.205 0 0);
|
||
|
|
--mx-card-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-popover: oklch(0.205 0 0);
|
||
|
|
--mx-popover-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-primary: oklch(0.922 0 0);
|
||
|
|
--mx-primary-foreground: oklch(0.205 0 0);
|
||
|
|
--mx-secondary: oklch(0.269 0 0);
|
||
|
|
--mx-secondary-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-muted: oklch(0.269 0 0);
|
||
|
|
--mx-muted-foreground: oklch(0.708 0 0);
|
||
|
|
--mx-accent: oklch(0.269 0 0);
|
||
|
|
--mx-accent-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-destructive: oklch(0.704 0.191 22.216);
|
||
|
|
--mx-border: oklch(1 0 0 / 10%);
|
||
|
|
--mx-input: oklch(1 0 0 / 15%);
|
||
|
|
--mx-ring: oklch(0.556 0 0);
|
||
|
|
--mx-chart-1: oklch(0.488 0.243 264.376);
|
||
|
|
--mx-chart-2: oklch(0.696 0.17 162.48);
|
||
|
|
--mx-chart-3: oklch(0.769 0.188 70.08);
|
||
|
|
--mx-chart-4: oklch(0.627 0.265 303.9);
|
||
|
|
--mx-chart-5: oklch(0.645 0.246 16.439);
|
||
|
|
--mx-sidebar: oklch(0.205 0 0);
|
||
|
|
--mx-sidebar-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-sidebar-primary: oklch(0.488 0.243 264.376);
|
||
|
|
--mx-sidebar-primary-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-sidebar-accent: oklch(0.269 0 0);
|
||
|
|
--mx-sidebar-accent-foreground: oklch(0.985 0 0);
|
||
|
|
--mx-sidebar-border: oklch(1 0 0 / 10%);
|
||
|
|
--mx-sidebar-ring: oklch(0.556 0 0);
|
||
|
|
}
|
||
|
|
`;var vT=Z(Ge(),1);var Yr=Z(Ee(),1);var aLe=Z(Ee(),1);function _Y(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function OY(...t){return e=>{let r=!1,n=t.map(i=>{let s=_Y(i,e);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){let s=n[i];typeof s=="function"?s():_Y(t[i],null)}}}}var lm=Z(Ge(),1),b6=Yr.forwardRef((t,e)=>{let{children:r,...n}=t,i=Yr.Children.toArray(r),s=i.find(lLe);if(s){let a=s.props.children,o=i.map(l=>l===s?Yr.Children.count(a)>1?Yr.Children.only(null):Yr.isValidElement(a)?a.props.children:null:l);return(0,lm.jsx)(v6,{...n,ref:e,children:Yr.isValidElement(a)?Yr.cloneElement(a,void 0,o):null})}return(0,lm.jsx)(v6,{...n,ref:e,children:r})});b6.displayName="Slot";var v6=Yr.forwardRef((t,e)=>{let{children:r,...n}=t;if(Yr.isValidElement(r)){let i=uLe(r),s=cLe(n,r.props);return r.type!==Yr.Fragment&&(s.ref=e?OY(e,i):i),Yr.cloneElement(r,s)}return Yr.Children.count(r)>1?Yr.Children.only(null):null});v6.displayName="SlotClone";var oLe=({children:t})=>(0,lm.jsx)(lm.Fragment,{children:t});function lLe(t){return Yr.isValidElement(t)&&t.type===oLe}function cLe(t,e){let r={...e};for(let n in e){let i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...o)=>{s(...o),i(...o)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}function uLe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Lf=Z(Ee(),1),VY=Z(Rf(),1);var cm=Z(Ee(),1);function yT(t){let e=(0,cm.useRef)(void 0),r=(0,cm.useCallback)(n=>{let i=t.map(s=>{if(s!=null){if(typeof s=="function"){let a=s,o=a(n);return typeof o=="function"?o:()=>{a(null)}}return s.current=n,()=>{s.current=null}}});return()=>{for(let s of i)s?.()}},t);return(0,cm.useMemo)(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}var BY=Z(Ee(),1),x6=(0,BY.createContext)(null);function hLe({root:t,children:e=null}){return(0,VY.createPortal)(e,t)}function w6({mode:t="open",delegatesFocus:e=!1,styleSheets:r=[],children:n,ref:i,asChild:s,...a}){let o=(0,Lf.useRef)(null),l=yT([o,i]),[c,u]=(0,Lf.useState)(null),d=`node_${t}${e}`,f=s?b6:"div";return(0,Lf.useLayoutEffect)(()=>{if(!o.current||o.current.shadowRoot)return;let p=null;p=o.current.attachShadow({mode:t,delegatesFocus:e}),u(p)},[t,e]),(0,Lf.useLayoutEffect)(()=>{c&&(c.adoptedStyleSheets=r)},[c,r]),(0,vT.jsx)(f,{ref:l,...a,children:(0,vT.jsx)(x6.Provider,{value:c,children:c&&(0,vT.jsx)(hLe,{root:c,children:n})})},d)}var $Y=Z(Ee(),1),UY=Z(Ge(),1),k6=new WeakMap;async function bT(t=window){let e=t.document;if(k6.has(e))return k6.get(e);let r=Promise.all([S6(mY,t),S6(gY,t),S6(hY,t)]);return k6.set(e,r),await r}async function S6(t,e){let{CSSStyleSheet:r}=e,n=new r;return await n.replace(t),n}function Mf(t){let[e,r]=(0,$Y.useState)([]);return(0,UY.jsx)(w6,{ref:n=>{n&&(n.onWindowMigrated(i=>{bT(i).then(r)}),bT(n.win).then(r))},styleSheets:e,...t})}function Br(t,e){return t instanceof Promise?mLe(t,e):gLe(t,e)}function mLe(t,e){let{promise:r,reject:n}=Promise.withResolvers(),i=()=>n(e.reason);return e.aborted&&i(),e.addEventListener("abort",i,{once:!0}),Promise.race([r,t]).finally(()=>{e.removeEventListener("abort",i)})}async function*gLe(t,e){e.throwIfAborted();let{promise:r,reject:n}=Promise.withResolvers(),i=()=>n(e.reason);e.addEventListener("abort",i,{once:!0});let s=t[Symbol.asyncIterator]();try{for(;;){let a=Promise.race([r,s.next()]);a.catch(()=>{e.removeEventListener("abort",i)});let{done:o,value:l}=await a;if(o)return e.removeEventListener("abort",i),(await s.return?.(l))?.value;yield l}}catch(a){throw await s.return?.(),a}}var qY;qY=Symbol.asyncIterator;var zY=class{#e=0;#t=[];#r=[];#n=Promise.withResolvers();add(e){++this.#e,this.#i(e[Symbol.asyncIterator]())}async#i(e){try{let{value:r,done:n}=await e.next();n?--this.#e:this.#t.push({iterator:e,value:r})}catch(r){this.#r.push(r
|
||
|
|
addEventListener("message", (e) => {
|
||
|
|
if (e.data.event === "start") {
|
||
|
|
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
|
||
|
|
}
|
||
|
|
});`,ym=class{constructor(e,r){var n;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=hX,this.params={},this.timeout=PT,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=qLe,this.conn=null,this.sendBuffer=[],this.serializer=new Ub,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let a;return s?a=s:typeof fetch>"u"?a=(...o)=>Promise.resolve().then(()=>(mu(),_f)).then(({default:l})=>l(...o)):a=fetch,(...o)=>a(...o)},this.endPoint=`${e}/${AT.websocket}`,this.httpEndpoint=RT(e),r?.transport?this.transport=r.transport:this.transport=null,r?.params&&(this.params=r.params),r?.headers&&(this.headers=Object.assign(Object.assign({},this.headers),r.headers)),r?.timeout&&(this.timeout=r.timeout),r?.logger&&(this.logger=r.logger),r?.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);let i=(n=r?.params)===null||n===void 0?void 0:n.apikey;if(i&&(this.accessTokenValue=i,this.apiKey=i),this.reconnectAfterMs=r?.reconnectAfterMs?r.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=r?.encode?r.encode:(s,a)=>a(JSON.stringify(s)),this.decode=r?.decode?r.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new Df(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(r?.fetch),r?.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=r?.worker||!1,this.workerUrl=r?.workerUrl}this.accessToken=r?.accessToken||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(HLe){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new H6(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),Promise.resolve().then(()=>Z(bX())).then(({default:e})=>{this.conn=new e(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:mX}))}disconnect(e,r){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,r??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(e){let r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){let e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Of.connecting:return gu.Connecting;case Of.open:return gu.Open;case Of.closing:return gu.Closing;default:return gu.Closed}}isConnected(){return this.connectionState()===gu.Open}channel(e,r={config:{}}){let n=new gm(`realtime:${e}`,r,this);return this.channels.push(n),n}push(e){let{topic:r,event:n,payload:i,ref:s}=e,a=()=>{this.encode(e,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${r} ${n} (${s})`,i),this.isConnected()?a():this.sendBuffer.push(a)}async setAuth(e=null){let r=e||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(r){let n=null;try{n=JSON.parse(atob(r.split(".")[1]))}catch{}if(n&&n.exp&&!(Math.floor(Date.now()/1e3)-n.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${n.exp}`);this.accessTokenValue=r,this.channels.forEach(i=>{r&&i.updateJoinPayload({access_token:r}),i.joinedOnce&&i._isJoined()&&i._push(ys.access_token,{access_token:r})})}}async sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(e=this.conn)===null||e===void 0||e.close(gX,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"
|
||
|
|
`,eD=class extends Error{constructor(e){super(e),Object.defineProperty(this,"message",{enumerable:!1,value:e}),Object.defineProperty(this,"name",{enumerable:!1,value:this.constructor.name}),"captureStackTrace"in Error?Error.captureStackTrace(this,this.constructor):Object.defineProperty(this,"stack",{enumerable:!1,value:Error(e).stack,writable:!0,configurable:!0})}},s0=class extends eD{},Em=class t extends s0{constructor(e,r,n,i){super(`${e}: expected ${r} to be ${n}, but got ${i}.`)}static assert(e,r,n,i,s){if(!e)throw new t(r,n,i,s);return e}},Tm=class extends s0{constructor(e,r,n){let i=e.toString(),s=r.map(({name:l})=>l.toString());s.push(i);let a=s.join(" -> "),o=`Could not resolve '${i}'.`;n&&(o+=` ${n}`),o+=sQ+sQ,o+=`Resolution path: ${a}`,super(o)}},tD=class extends s0{constructor(e,r){let i=`Could not register '${e.toString()}'.`;r&&(i+=` ${r}`),super(i)}},Kf={PROXY:"PROXY",CLASSIC:"CLASSIC"},qn={SINGLETON:"SINGLETON",TRANSIENT:"TRANSIENT",SCOPED:"SCOPED"};function v3e(t,e){return t===qn.SINGLETON&&e!==qn.SINGLETON||t===qn.SCOPED&&e===qn.TRANSIENT}function cQ(t){let e=t.length,r=0,n="EOF",i="",s=0,a=0,o=0;return{next:l,done:m};function l(v=0){return s=v,c(),h()}function c(){for(i="",n="EOF";;){if(r>=e)return n="EOF";let v=t.charAt(r);if(aQ(v)){r++;continue}switch(v){case"(":return r++,a++,n=v;case")":return r++,o++,n=v;case"*":return r++,n=v;case",":return r++,n=v;case"=":return r++,(s&1)===0&&d(),n=v;case"/":{r++;let b=t.charAt(r);b==="/"&&(f(y=>y===`
|
||
|
|
`,!0),r++),b==="*"&&(f(y=>{let x=t.charAt(r+1);return y==="*"&&x==="/"},!0),r++);break}default:if(k3e(v))return u(),n;r++}}}function u(){let v=t.charAt(r),b=++r;for(;S3e(t.charAt(r));)r++;return i=""+v+t.substring(b,r),n=i==="function"||i==="class"?i:"ident",n!=="ident"&&(i=""),i}function d(){f(v=>{let b=a===o+1;return v===","&&b?!0:v==="("?(a++,!1):!!(v===")"&&(o++,b))})}function f(v,b=!1){for(;r<t.length;){let y=t.charAt(r);if(v(y))return;if(!b){if(aQ(y)){r++;continue}if(b3e(y)){p();continue}}r++}}function p(){let v=t.charAt(r);for(r++;r<t.length;){let b=t.charAt(r),y=t.charAt(r-1);if(b===v&&y!=="\\"){r++;return}v==="`"&&t.charAt(r+1)==="$"&&t.charAt(r+2)==="{"&&(r=r+2,f(C=>C==="}")),r++}}function h(){return i?{value:i,type:n}:{type:n}}function m(){return n==="EOF"}}function aQ(t){switch(t){case"\r":case`
|
||
|
|
`:case" ":return!0}return!1}function b3e(t){switch(t){case"'":case'"':case"`":return!0}return!1}var x3e=/^[_$a-zA-Z\xA0-\uFFFF]$/,w3e=/^[?._$a-zA-Z0-9\xA0-\uFFFF]$/;function k3e(t){return x3e.test(t)}function S3e(t){return w3e.test(t)}function C3e(t,e){let r=t;return typeof r=="string"||typeof r=="symbol"?{[t]:e}:r}function T3e(t){return t[t.length-1]}function E3e(t){if(typeof t!="function")return!1;let e=cQ(t.toString()),r=e.next();if(r.type==="class")return!0;let n=e.next();return!!(r.type==="function"&&n.value&&n.value[0]===n.value[0].toUpperCase())}function uQ(t){return typeof t=="function"}function I3e(t){return Array.from(new Set(t))}function A3e(t){let{next:e,done:r}=cQ(t),n=[],i=null;for(l();!r();)switch(i.type){case"class":{if(!a())return null;break}case"function":{let u=l();(u.type==="ident"||u.type==="*")&&l();break}case"(":s();break;case")":return n;case"ident":{let u={name:i.value,optional:!1};if(i.value==="async"){let d=l();if(d&&d.type!=="=")break}return n.push(u),n}default:throw c()}return n;function s(){let u={name:"",optional:!1};for(;!r();)switch(l(),i.type){case"ident":u.name=i.value;break;case"=":u.optional=!0;break;case",":n.push(u),u={name:"",optional:!1};break;case")":u.name&&n.push(u);return;default:throw c()}}function a(){for(;!r();){if(o()){if(l(1),i.type!=="(")continue;return!0}l(1)}return!1}function o(){return i.type==="ident"&&i.value==="constructor"}function l(u=0){return i=e(u),i}function c(){return new SyntaxError(`Parsing parameter list, did not expect ${i.type} token${i.value?` (${i.value})`:""}`)}}var dQ=Symbol("Awilix Resolver Config");function Yf(t){return{resolve:()=>t,isLeakSafe:!0}}function qT(t,e){if(!uQ(t))throw new Em("asFunction","fn","function",t);let r={lifetime:qn.TRANSIENT};e=fQ(r,e,t[dQ]);let i={resolve:hQ(t),...e};return rD(i0(i))}function Vi(t,e){if(!uQ(t))throw new Em("asClass","Type","class",t);let r={lifetime:qn.TRANSIENT};e=fQ(r,e,t[dQ]);let i=hQ(function(...a){return Reflect.construct(t,a)},t);return rD(i0({...e,resolve:i}))}function i0(t){function e(i){return i0({...this,lifetime:i})}function r(i){return i0({...this,injectionMode:i})}function n(i){return i0({...this,injector:i})}return pQ(t,{setLifetime:e,inject:n,transient:n0(e,qn.TRANSIENT),scoped:n0(e,qn.SCOPED),singleton:n0(e,qn.SINGLETON),setInjectionMode:r,proxy:n0(r,Kf.PROXY),classic:n0(r,Kf.CLASSIC)})}function rD(t){function e(r){return rD({...this,dispose:r})}return pQ(t,{disposer:e})}function n0(t,e){return function(){return t.call(this,e)}}function fQ(t,...e){return Object.assign({},t,...e)}function pQ(t,e){return{...t,...e}}function P3e(t,e){return function(n,i){return n in e?e[n]:t.resolve(n,i)}}function R3e(t,e){let r=e(t),n=I3e([...Reflect.ownKeys(t.cradle),...Reflect.ownKeys(r)]);return new Proxy({},{get(s,a){return a===Symbol.iterator?function*(){for(let l in t.cradle)yield l;for(let l in r)yield l}:a in r?r[a]:t.resolve(a)},ownKeys(){return n},getOwnPropertyDescriptor(s,a){if(n.indexOf(a)>-1)return{enumerable:!0,configurable:!0}}})}function hQ(t,e){e||(e=t);let r=mQ(e);return function(i){if((this.injectionMode||i.options.injectionMode||Kf.PROXY)!==Kf.CLASSIC){let a=this.injector?R3e(i,this.injector):i.cradle;return t(a)}if(r.length>0){let a=this.injector?P3e(i,this.injector(i)):i.resolve,o=r.map(l=>a(l.name,{allowUnregistered:l.optional}));return t(...o)}return t()}}function mQ(t){let e=A3e(t.toString());if(!e){let r=Object.getPrototypeOf(t);return typeof r=="function"&&r!==Function.prototype?mQ(r):[]}return e}var oQ=Symbol("familyTree"),lQ=Symbol("rollUpRegistrations"),L3e="AwilixContainerCradle";function nD(t={}){return gQ(t)}function gQ(t,e,r){t={injectionMode:Kf.PROXY,strict:!1,...t};let n=r??[],i={},s=new Proxy({},{get:(w,C)=>v(C),set:(w,C)=>{throw new Error(`Attempted setting property "${C}" on container cradle - this is not allowed.`)},ownKeys(){return Array.from(s)},getOwnPropertyDescriptor(w,C){let O=u();if(Object.getOwnPropertyDescriptor(O,C))return{enumerable:!0,configurable:!0}}}),a={options:t,cradle:s,inspect:c,cache:new Map,loadModules:()=>{throw new Error("loadModules is not suppo
|
||
|
|
`)}};Tp.empty=new Tp(!0);var CF=class{constructor(e,r){this.string=e,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function Pte(t){let e=[];do e.push(L4e(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function L4e(t){let e=[];do e.push(M4e(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function M4e(t){let e=D4e(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=_4e(t,e);else break;return e}function pte(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function _4e(t,e){let r=pte(t),n=r;return t.eat(",")&&(t.next!="}"?n=pte(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}function O4e(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let i=[];for(let s in r){let a=r[s];a.isInGroup(e)&&i.push(a)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function D4e(t){if(t.eat("(")){let e=Pte(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=O4e(t,t.next).map(r=>(t.inline==null?t.inline=r.isInline:t.inline!=r.isInline&&t.err("Mixing inline and block content"),{type:"name",value:r}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function N4e(t){let e=[[]];return i(s(t,0),r()),e;function r(){return e.push([])-1}function n(a,o,l){let c={term:l,to:o};return e[a].push(c),c}function i(a,o){a.forEach(l=>l.to=o)}function s(a,o){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(s(c,o)),[]);if(a.type=="seq")for(let l=0;;l++){let c=s(a.exprs[l],o);if(l==a.exprs.length-1)return c;i(c,o=r())}else if(a.type=="star"){let l=r();return n(o,l),i(s(a.expr,l),l),[n(l)]}else if(a.type=="plus"){let l=r();return i(s(a.expr,o),l),i(s(a.expr,l),l),[n(l)]}else{if(a.type=="opt")return[n(o)].concat(s(a.expr,o));if(a.type=="range"){let l=o;for(let c=0;c<a.min;c++){let u=r();i(s(a.expr,l),u),l=u}if(a.max==-1)i(s(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=r();n(l,u),i(s(a.expr,l),u),l=u}return[n(l)]}else{if(a.type=="name")return[n(o,void 0,a.value)];throw new Error("Unknown expr type")}}}}function Rte(t,e){return e-t}function hte(t,e){let r=[];return n(e),r.sort(Rte);function n(i){let s=t[i];if(s.length==1&&!s[0].term)return n(s[0].to);r.push(i);for(let a=0;a<s.length;a++){let{term:o,to:l}=s[a];!o&&r.indexOf(l)==-1&&n(l)}}}function F4e(t){let e=Object.create(null);return r(hte(t,0));function r(n){let i=[];n.forEach(a=>{t[a].forEach(({term:o,to:l})=>{if(!o)return;let c;for(let u=0;u<i.length;u++)i[u][0]==o&&(c=i[u][1]);hte(t,l).forEach(u=>{c||i.push([o,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[n.join(",")]=new Tp(n.indexOf(t.length-1)>-1);for(let a=0;a<i.length;a++){let o=i[a][1].sort(Rte);s.next.push({type:i[a][0],next:e[o.join(",")]||r(o)})}return s}}function j4e(t,e){for(let r=0,n=[t];r<n.length;r++){let i=n[r],s=!i.validEnd,a=[];for(let o=0;o<i.next.length;o++){let{type:l,next:c}=i.next[o];a.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),n.indexOf(c)==-1&&n.push(c)}s&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Lte(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function Mte(t,e){let r=Object.create(null);for(let n in t){let i=e&&e[n];if(i===void 0){let s=t[n];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function _te(t,e,r,n){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${r} of type ${i}`);for(let i in t){let s=t[i];s.valida
|
||
|
|
`);else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=i.content[i.content.length-1],o=e.previousSibling;(!a||o&&o.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),r),this.findInText(e)}else this.findInside(e)}addElement(e,r,n){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;Nte.hasOwnProperty(a)&&this.parser.normalizeLists&&z4e(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));e:if(l?l.ignore:U4e.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,r);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(Dte.hasOwnProperty(a))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,r);break e}let d=l&&l.skip?r:this.readStyles(e,r);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,r);c&&this.addElementByRule(e,l,c,l.consuming===!1?o:void 0)}this.localPreserveWS=i}leafFallback(e,r){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
||
|
|
`),r)}ignoreFallback(e,r){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),r)}readStyles(e,r){let n=e.style;if(n&&n.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],a=n.getPropertyValue(s);if(a)for(let o=void 0;;){let l=this.parser.matchStyle(s,a,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?r=r.filter(c=>!l.clearMark(c)):r=r.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return r}addElementByRule(e,r,n,i){let s,a;if(r.node)if(a=this.parser.schema.nodes[r.node],a.isLeaf)this.insertNode(a.create(r.attrs),n)||this.leafFallback(e,n);else{let l=this.enter(a,r.attrs||null,n,r.preserveWhitespace);l&&(s=!0,n=l)}else{let l=this.parser.schema.marks[r.mark];n=n.concat(l.create(r.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(i)this.addElement(e,n,i);else if(r.getContent)this.findInside(e),r.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,n));else{let l=e;typeof r.contentElement=="string"?l=e.querySelector(r.contentElement):typeof r.contentElement=="function"?l=r.contentElement(e):r.contentElement&&(l=r.contentElement),this.findAround(e,l,!0),this.addAll(l,n),this.findAround(e,l,!1)}s&&this.sync(o)&&this.open--}addAll(e,r,n,i){let s=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=i==null?null:e.childNodes[i];a!=o;a=a.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(a,r);this.findAtPoint(e,s)}findPlace(e,r){let n,i;for(let s=this.open;s>=0;s--){let a=this.nodes[s],o=a.findWrapping(e);if(o&&(!n||n.length>o.length)&&(n=o,i=a,!o.length)||a.solid)break}if(!n)return null;this.sync(i);for(let s=0;s<n.length;s++)r=this.enterInner(n[s],null,r,!1);return r}insertNode(e,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(r=this.enterInner(i,null,r))}let n=this.findPlace(e,r);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=ct.none;for(let a of n.concat(e.marks))(i.type?i.type.allowsMarkType(a.type):vte(a.type,e.type))&&(s=a.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,r,n,i){let s=this.findPlace(e.create(r),n);return s&&(s=this.enterInner(e,r,n,!0,i)),s}enterInner(e,r,n,i=!1,s){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=gte(e,s,a.options);a.options&Dw&&a.content.length==0&&(o|=Dw);let l=ct.none;return n=n.filter(c=>(a.type?a.type.allowsMarkType(c.type):vte(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new vg(e,r,l,i,null,o)),this.open++,n}closeExtra(e=!1){let r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let r=this.open;r>=0;r--){if(this.nodes[r]==e)return this.open=r,!0;this.localPreserveWS&&(this.nodes[r].options|=Fw)}return!1}get currentPos(){this.closeExtra();let e=0;for(let r=this.open;r>=0;r--){let n=this.nodes[r].content;for(let i=n.length-1;i>=0;i--)e+=n[i].nodeSize;r&&e++}return e}findAtPoint(e,r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==r&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)}findAround(e,r,n){if(e!=r&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&r.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&(this.find[r].pos=this.currentPos-(e.nodeValue.length-this.find[r].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let r=e.split("/"),n=this.options.context,i=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),s=-(n?n.depth+1:0)+(
|
||
|
|
`))}})}function tFe(t,e,r){let n=t.resolve(e),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function rFe(t,e,r,n,i){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");r||(r=s.type);let a=r.create(n,null,i||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!r.validContent(s.content))throw new RangeError("Invalid content for node type "+r.name);t.step(new Rs(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new oe(se.from(a),0,0),1,!0))}function hc(t,e,r=1,n){let i=t.resolve(e),s=i.depth-r,a=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=r-2;c>s;c--,u--){let d=i.node(c),f=i.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=n&&n[u+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=n&&n[u]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let o=i.indexAfter(s),l=n&&n[0];return i.node(s).canReplaceWith(o,o,l?l.type:i.node(s+1).type)}function nFe(t,e,r=1,n){let i=t.doc.resolve(e),s=se.empty,a=se.empty;for(let o=i.depth,l=i.depth-r,c=r-1;o>l;o--,c--){s=se.from(i.node(o).copy(s));let u=n&&n[c];a=se.from(u?u.type.create(u.attrs,a):i.node(o).copy(a))}t.step(new Ki(e,e,new oe(s.append(a),r,r),!0))}function OF(t,e){let r=t.resolve(e),n=r.index();return sFe(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function iFe(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let i=0;i<e.childCount;i++){let s=e.child(i),a=s.type==n?t.type.schema.nodes.text:s.type;if(r=r.matchType(a),!r||!t.type.allowsMarks(s.marks))return!1}return r.validEnd}function sFe(t,e){return!!(t&&e&&!t.isLeaf&&iFe(t,e))}function aFe(t,e,r){let n=null,{linebreakReplacement:i}=t.doc.type.schema,s=t.doc.resolve(e-r),a=s.node().type;if(i&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);u&&!d?n=!1:!u&&d&&(n=!0)}let o=t.steps.length;if(n===!1){let u=t.doc.resolve(e+r);qte(t,u.node(),u.before(),o)}a.inlineContent&&_F(t,e+r-1,a,s.node().contentMatchAt(s.index()),n==null);let l=t.mapping.slice(o),c=l.map(e-r);if(t.step(new Ki(c,l.map(e+r,-1),oe.empty,!0)),n===!0){let u=t.doc.resolve(c);zte(t,u.node(),u.before(),t.steps.length)}return t}function oFe(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(n.parentOffset==0)for(let i=n.depth-1;i>=0;i--){let s=n.index(i);if(n.node(i).canReplaceWith(s,s,r))return n.before(i+1);if(s>0)return null}if(n.parentOffset==n.parent.content.size)for(let i=n.depth-1;i>=0;i--){let s=n.indexAfter(i);if(n.node(i).canReplaceWith(s,s,r))return n.after(i+1);if(s<n.node(i).childCount)return null}return null}function uI(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let i=r.content;for(let s=0;s<r.openStart;s++)i=i.firstChild.content;for(let s=1;s<=(r.openStart==0&&r.size?2:1);s++)for(let a=n.depth;a>=0;a--){let o=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,l=n.index(a)+(o>0?1:0),c=n.node(a),u=!1;if(s==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return o==0?n.pos:o<0?n.before(a+1):n.after(a+1)}return null}function Hw(t,e,r=e,n=oe.empty){if(e==r&&!n.size)return null;let i=t.resolve(e),s=t.resolve(r);return Hte(i,s,n)?new Ki(e,r,n):new LF(i,s,n).fit()}function Hte(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}var LF=class{constructor(e,r,n){this.$from=e,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=se.empty;for(let i=0;i<=e.depth;i++){let s=e.node(i);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=se.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustM
|
||
|
|
`),d&&h==p.nodeValue.length)for(let m=p,v;m;m=m.parentNode){if(v=m.nextSibling){v.nodeName=="BR"&&(o=l={node:v.parentNode,offset:On(v)+1});break}let b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{let m=p.childNodes[h-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(go&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(i=!0)}if(!(i||d&&wi)&&Dp(o.node,o.offset,u.anchorNode,u.anchorOffset)&&Dp(l.node,l.offset,u.focusNode,u.focusOffset))return;let f=!1;if((c.extend||e==r)&&!d){c.collapse(o.node,o.offset);try{e!=r&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(e>r){let h=o;o=l,l=h}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,r){for(let n=0,i=0;i<this.children.length;i++){let s=this.children[i],a=n+s.size;if(n==a?e<=a&&r>=n:e<a&&r>n){let o=n+s.border,l=a-s.border;if(e>=o&&r<=l){this.dirty=e==n||r==a?Rp:ure,e==o&&r==l&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=al:s.markDirty(e-o,r-o);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Rp:al}n=a}this.dirty=Rp}markParentsDirty(){let e=1;for(let r=this.parent;r;r=r.parent,e++){let n=e==1?Rp:ure;r.dirty<n&&(r.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}},pI=class extends Np{constructor(e,r,n,i){let s,a=r.type.toDOM;if(typeof a=="function"&&(a=a(n,()=>{if(!s)return i;if(s.parent)return s.parent.posBeforeChild(s)})),!r.type.spec.raw){if(a.nodeType!=1){let o=document.createElement("span");o.appendChild(a),a=o}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=r,this.widget=r,s=this}matchesWidget(e){return this.dirty==Sa&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let r=this.widget.spec.stopEvent;return r?r(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}},KF=class extends Np{constructor(e,r,n,i){super(e,[],r,null),this.textDOM=n,this.text=i}get size(){return this.text.length}localPosFromDOM(e,r){return e!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},Ag=class t extends Np{constructor(e,r,n,i,s){super(e,[],n,i),this.mark=r,this.spec=s}static create(e,r,n,i){let s=i.nodeViews[r.type.name],a=s&&s(r,i,n);return(!a||!a.dom)&&(a=Ps.renderSpec(document,r.type.spec.toDOM(r,n),null,r.attrs)),new t(e,r,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&al||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=al&&this.mark.eq(e)}markDirty(e,r){if(super.markDirty(e,r),this.dirty!=Sa){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=Sa}}slice(e,r,n){let i=t.create(this.parent,this.mark,!0,n),s=this.children,a=this.size;r<a&&(s=ZF(s,r,a,n)),e>0&&(s=ZF(s,0,e,n));for(let o=0;o<s.length;o++)s[o].parent=i;return i.children=s,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},qu=class t extends Np{constructor(e,r,n,i,s,a,o,l,c){super(e,[],s,a),this.node=r,this.outerDeco=n,this.innerDeco=i,this.nodeDOM=o}static create(e,r,n,i,s,a){let o=s.nodeViews[r.type.name],l,c=o&&o(r,s,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},n,i),u=c&&c.dom,d=c&&c.contentDOM;if(r.isText){if(!u)u=document.createTextNode(r.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")
|
||
|
|
|
||
|
|
`);return{dom:l,text:f,slice:e}}function Qre(t,e,r,n,i){let s=i.parent.type.spec.code,a,o;if(!r&&!e)return null;let l=e&&(n||s||!r);if(l){if(t.someProp("transformPastedText",f=>{e=f(e,s||n,t)}),s)return e?new oe(se.from(t.state.schema.text(e.replace(/\r\n?/g,`
|
||
|
|
`))),0,0):oe.empty;let d=t.someProp("clipboardTextParser",f=>f(e,i,n,t));if(d)o=d;else{let f=i.marks(),{schema:p}=t.state,h=Ps.fromSchema(p);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let v=a.appendChild(document.createElement("p"));m&&v.appendChild(h.serializeNode(p.text(m,f)))})}}else t.someProp("transformPastedHTML",d=>{r=d(r,t)}),a=i5e(r),t1&&s5e(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=a.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;a=f}if(o||(o=(t.someProp("clipboardParser")||t.someProp("domParser")||Ep.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!t5e.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)o=a5e(Sre(o,+u[1],+u[2]),u[4]);else if(o=oe.maxOpen(r5e(o.content,i),!0),o.openStart||o.openEnd){let d=0,f=0;for(let p=o.content.firstChild;d<o.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=o.content.lastChild;f<o.openEnd&&!p.type.spec.isolating;f++,p=p.lastChild);o=Sre(o,d,f)}return t.someProp("transformPasted",d=>{o=d(o,t)}),o}var t5e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function r5e(t,e){if(t.childCount<2)return t;for(let r=e.depth;r>=0;r--){let i=e.node(r).contentMatchAt(e.index(r)),s,a=[];if(t.forEach(o=>{if(!a)return;let l=i.findWrapping(o.type),c;if(!l)return a=null;if(c=a.length&&s.length&&Jre(l,s,o,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=ene(a[a.length-1],s.length));let u=Zre(o,l);a.push(u),i=i.matchType(u.type),s=l}}),a)return se.from(a)}return t}function Zre(t,e,r=0){for(let n=e.length-1;n>=r;n--)t=e[n].create(null,se.from(t));return t}function Jre(t,e,r,n,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let s=Jre(t,e,r,n.lastChild,i+1);if(s)return n.copy(n.content.replaceChild(n.childCount-1,s));if(n.contentMatchAt(n.childCount).matchType(i==t.length-1?r.type:t[i+1]))return n.copy(n.content.append(se.from(Zre(r,t,i+1))))}}function ene(t,e){if(e==0)return t;let r=t.content.replaceChild(t.childCount-1,ene(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(se.empty,!0);return t.copy(r.append(n))}function t5(t,e,r,n,i,s){let a=e<0?t.firstChild:t.lastChild,o=a.content;return t.childCount>1&&(s=0),i<n-1&&(o=t5(o,e,r,n,i+1,s)),i>=r&&(o=e<0?a.contentMatchAt(0).fillBefore(o,s<=i).append(o):o.append(a.contentMatchAt(a.childCount).fillBefore(se.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(o))}function Sre(t,e,r){return e<t.openStart&&(t=new oe(t5(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new oe(t5(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}var tne={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Cre=null;function rne(){return Cre||(Cre=document.implementation.createHTMLDocument("title"))}var $F=null;function n5e(t){let e=window.trustedTypes;return e?($F||($F=e.createPolicy("ProseMirrorClipboard",{createHTML:r=>r})),$F.createHTML(t)):t}function i5e(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let r=rne().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),i;if((i=n&&tne[n[1].toLowerCase()])&&(t=i.map(s=>"<"+s+">").join("")+t+i.map(s=>"</"+s+">").reverse().join("")),r.innerHTML=n5e(t),i)for(let s=0;s<i.length;s++)r=r.querySelector(i[s])||r;return r}function s5e(t){let e=t.querySelectorAll(Zn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<e.length;r++){let n=e[r];n.childNodes.length==1&&n.textContent=="\xA0"&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function a5e(t,e){if(!t.size)return t;let r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:i,openStart:s,openEnd:a}=t;for(let o=n.length-2;o>=0;o-=2){let l=r.nodes[n[o]];if(!l||l.hasRequir
|
||
|
|
`).scrollIntoView()),!0)};function E5(t){for(let e=0;e<t.edgeCount;e++){let{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}var C8e=(t,e)=>{let{$head:r,$anchor:n}=t.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),s=r.indexAfter(-1),a=E5(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(e){let o=r.after(),l=t.tr.replaceWith(o,o,a.createAndFill());l.setSelection(Fe.near(l.doc.resolve(o),1)),e(l.scrollIntoView())}return!0},c1=(t,e)=>{let r=t.selection,{$from:n,$to:i}=r;if(r instanceof Xn||n.parent.inlineContent||i.parent.inlineContent)return!1;let s=E5(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let a=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,o=t.tr.insert(a,s.createAndFill());o.setSelection(Ze.create(o.doc,a+1)),e(o.scrollIntoView())}return!0},u1=(t,e)=>{let{$cursor:r}=t.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let s=r.before();if(hc(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let n=r.blockRange(),i=n&&cI(n);return i==null?!1:(e&&e(t.tr.lift(n,i).scrollIntoView()),!0)};function I5(t){return(e,r)=>{let{$from:n,$to:i}=e.selection;if(e.selection instanceof _e&&e.selection.node.isBlock)return!n.parentOffset||!hc(e.doc,n.pos)?!1:(r&&r(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let s=[],a,o,l=!1,c=!1;for(let p=n.depth;;p--)if(n.node(p).isBlock){l=n.end(p)==n.pos+(n.depth-p),c=n.start(p)==n.pos-(n.depth-p),o=E5(n.node(p-1).contentMatchAt(n.indexAfter(p-1)));let m=t&&t(i.parent,l,n);s.unshift(m||(l&&o?{type:o}:null)),a=p;break}else{if(p==1)return!1;s.unshift(null)}let u=e.tr;(e.selection instanceof Ze||e.selection instanceof Xn)&&u.deleteSelection();let d=u.mapping.map(n.pos),f=hc(u.doc,d,s.length,s);if(f||(s[0]=o?{type:o}:null,f=hc(u.doc,d,s.length,s)),u.split(d,s.length,s),!l&&c&&n.node(a).type!=o){let p=u.mapping.map(n.before(a)),h=u.doc.resolve(p);o&&n.node(a-1).canReplaceWith(h.index(),h.index()+1,o)&&u.setNodeMarkup(u.mapping.map(n.before(a)),o)}return r&&r(u.scrollIntoView()),!0}}var T8e=I5();var E8e=(t,e)=>(e&&e(t.tr.setSelection(new Xn(t.doc))),!0);function I8e(t,e,r){let n=e.nodeBefore,i=e.nodeAfter,s=e.index();return!n||!i||!n.type.compatibleContent(i.type)?!1:!n.content.size&&e.parent.canReplace(s-1,s)?(r&&r(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(i.isTextblock||OF(t.doc,e.pos))?!1:(r&&r(t.tr.join(e.pos).scrollIntoView()),!0)}function jne(t,e,r,n){let i=e.nodeBefore,s=e.nodeAfter,a,o,l=i.type.spec.isolating||s.type.spec.isolating;if(!l&&I8e(t,e,r))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(o=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&o.matchType(a[0]||s.type).validEnd){if(r){let p=e.pos+s.nodeSize,h=se.empty;for(let b=a.length-1;b>=0;b--)h=se.from(a[b].create(null,h));h=se.from(i.copy(h));let m=t.tr.step(new Rs(e.pos-1,p,e.pos,p,new oe(h,1,0),a.length,!0)),v=m.doc.resolve(p+2*a.length);v.nodeAfter&&v.nodeAfter.type==i.type&&OF(m.doc,v.pos)&&m.join(v.pos),r(m.scrollIntoView())}return!0}let u=s.type.spec.isolating||n>0&&l?null:Fe.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),f=d&&cI(d);if(f!=null&&f>=e.depth)return r&&r(t.tr.lift(d,f).scrollIntoView()),!0;if(c&&Pg(s,"start",!0)&&Pg(i,"end")){let p=i,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=s,v=1;for(;!m.isTextblock;m=m.firstChild)v++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(r){let b=se.empty;for(let x=h.length-1;x>=0;x--)b=se.from(h[x].copy(b));let y=t.tr.step(new Rs(e.pos-h.length,e.pos+s.nodeSize,e.pos+v,e.pos+s.nodeSize-v,new oe(b,h.length,0),0,!0));r(y.scrollIntoView())}return!0}}return!1}function Bne(t){return function(e,r){let n=e.selection,i=t<0?n.$from:n.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return i.node(s).isTextblock?(r&&r(e.tr.setSelection(Ze.create(e.doc,t<0?i.start(s):i.end(s)))),!0):!1}}var A8e=Bne(-1),P8e=Bne(1);function R8e(t,e,r,n){for(let i=0;i<e.length;i++){let{$from:s,$to:a}=e[i],o=s.depth==0?t.inlineContent&&t.t
|
||
|
|
`:n=="r"?"\r":n=="t"?" ":"\\")}getReplacements(e,r){let n=e.doc.resolve(r.from),i=n.marksAcross(e.doc.resolve(r.to)),s=[],a=se.empty,o=r.from,{match:l}=r,c=l?z9e(l):[[0,r.to-r.from]],u=q9e(this.unquote(this.replace)),d;for(let f of u)if(typeof f=="string")a=a.addToEnd(e.schema.text(f,i));else if(d=c[f.group]){let p=n.depth;for(;p>0&&n.node(p).isInline;)p--;let h=n.start(p)+d[0],m=n.start(p)+d[1];f.copy?a=a.append(e.doc.slice(h,m).content):((a!=se.empty||h>o)&&(s.push({from:o,to:h,insert:new oe(a,0,0)}),a=se.empty),o=m)}return(a!=se.empty||o<r.to)&&s.push({from:o,to:r.to,insert:new oe(a,0,0)}),s}},U9e=new class{findNext(){return null}findPrev(){return null}},W5=class{constructor(e){this.query=e;let r=e.unquote(e.search);e.caseSensitive||(r=r.toLowerCase()),this.string=r}findNext(e,r,n){return Mg(e.doc,r,n,(i,s)=>{let a=Math.max(r,s),o=y1(i).slice(a-s,Math.min(i.content.size,n-s)),l=(this.query.caseSensitive?o:o.toLowerCase()).indexOf(this.string);return l<0?null:{from:a+l,to:a+l+this.string.length,match:null}})}findPrev(e,r,n){return Mg(e.doc,r,n,(i,s)=>{let a=Math.max(s,n),o=y1(i).slice(a-s,Math.min(i.content.size,r-s));this.query.caseSensitive||(o=o.toLowerCase());let l=o.lastIndexOf(this.string);return l<0?null:{from:a+l,to:a+l+this.string.length,match:null}})}},Die="g"+(/x/.unicode==null?"":"u")+(/x/.hasIndices==null?"":"d"),K5=class{constructor(e){this.query=e,this.regexp=new RegExp(e.search,Die+(e.caseSensitive?"":"i"))}findNext(e,r,n){return Mg(e.doc,r,n,(i,s)=>{let a=y1(i).slice(0,Math.min(i.content.size,n-s));this.regexp.lastIndex=r-s;let o=this.regexp.exec(a);return o?{from:s+o.index,to:s+o.index+o[0].length,match:o}:null})}findPrev(e,r,n){return Mg(e.doc,r,n,(i,s)=>{let a=y1(i).slice(0,Math.min(i.content.size,r-s)),o;for(let l=0;;){this.regexp.lastIndex=l;let c=this.regexp.exec(a);if(!c)break;o=c,l=c.index+1}return o?{from:s+o.index,to:s+o.index+o[0].length,match:o}:null})}};function z9e(t){if(t.indices)return t.indices;let e=[[0,t[0].length]];for(let r=1,n=0;r<t.length;r++){let i=t[r]?t[0].indexOf(t[r],n):-1;e.push(i<0?void 0:[i,n=i+t[r].length])}return e}function q9e(t){let e=[],r=-1;function n(i){let s=e.length-1;s>-1&&typeof e[s]=="string"?e[s]+=i:e.push(i)}for(;t.length;){let i=/\$([$&\d+])/.exec(t);if(!i)return n(t),e;if(i.index>0&&n(t.slice(0,i.index+(i[1]=="$"?1:0))),i[1]!="$"){let s=i[1]=="&"?0:+i[1];r>=s?e.push({group:s,copy:!0}):(r=s||1e3,e.push({group:s,copy:!1}))}t=t.slice(i.index+i[0].length)}return e}function H9e(t){try{return new RegExp(t,Die),!0}catch{return!1}}var _ie=new WeakMap;function y1(t){let e=_ie.get(t);if(e)return e;let r="";for(let n=0;n<t.childCount;n++){let i=t.child(n);i.isText?r+=i.text:i.isLeaf?r+="\uFFFC":r+=" "+y1(i)+" "}return _ie.set(t,r),r}function Mg(t,e,r,n,i=0){if(t.inlineContent)return n(t,i);if(!t.isLeaf)if(e>r)for(let s=t.childCount-1,a=i+t.content.size;s>=0&&a>r;s--){let o=t.child(s);if(a-=o.nodeSize,a<e){let l=Mg(o,e,r,n,a+1);if(l!=null)return l}}else for(let s=0,a=i;s<t.childCount&&a<r;s++){let o=t.child(s),l=a;if(a+=o.nodeSize,a>e){let c=Mg(o,e,r,n,l+1);if(c!=null)return c}}return null}function Oie(t,e){let r=t.doc.resolve(e),n=r.nodeBefore,i=r.nodeAfter;return!n||!i||!n.isText||!i.isText?!0:!/\p{L}$/u.test(n.text)||!/^\p{L}/u.test(i.text)}var m1=class{constructor(e,r,n){this.query=e,this.range=r,this.deco=n}};function G5(t,e,r){if(!e.valid)return kr.empty;let n=[],i=t.selection;for(let s=r?r.from:0,a=r?r.to:t.doc.content.size;;){let o=e.findNext(t,s,a);if(!o)break;let l=o.from==i.from&&o.to==i.to?"ProseMirror-active-search-match":"ProseMirror-search-match";n.push(Zr.inline(o.from,o.to,{class:l})),s=o.to}return kr.create(t.doc,n)}var Lg=new ut("search");function Nie(t={}){return new Be({key:Lg,state:{init(e,r){let n=t.initialQuery||new g1({search:""}),i=t.initialRange||null;return new m1(n,i,G5(r,n,i))},apply(e,r,n,i){let s=e.getMeta(Lg);if(s)return new m1(s.query,s.range,G5(i,s.query,s.range));if(e.docChanged||e.selectionSet){let a=r.range;if(a){let o=e.mapping.map(a.from,1),l=e.mapping.map(a.to,-1);a=o<l?{from:o,to:l}:null}r=new m1(r.query,a,G5(i,r.query,a))}re
|
||
|
|
|
||
|
|
`),clipboardSerializer:e,onCopy:r,transformCopied:n}){return Ci(i=>new Be({key:new ut("prosekit-clipboard-serializer"),props:{transformCopied:n,clipboardTextSerializer:(s,a)=>{let o=t(s,a);return r?.(o),o},clipboardSerializer:e?.(i)}}))}function uqe(){return Rg({name:"metaTag",priority:1e3,group:"block",content:"",atom:!0,selectable:!1,draggable:!1,parseDOM:[{tag:"meta[name][content]",getAttrs:t=>{let e=t.getAttribute("name"),r=t.getAttribute("content");return{name:e||"",content:r||""}}}],toDOM:t=>["meta",{name:t.attrs.name,content:t.attrs.content,style:"display: none;"}],attrs:{name:{default:"",validate:"string"},content:{default:"",validate:"string"}}})}var dqe=new Be({key:new ut("webvtt-readonly"),props:{editable:()=>!1}});function fqe(){return Ci(dqe)}var Nn=class t{constructor({hours:e=0,minutes:r=0,seconds:n=0,milliseconds:i=0}={}){if(yA(this,"hours"),yA(this,"minutes"),yA(this,"seconds"),yA(this,"milliseconds"),!Number.isInteger(e)||e<0)throw new Error("Hours must be a non-negative integer");if(!Number.isInteger(r)||r<0||r>59)throw new Error("Minutes must be an integer between 0 and 59");if(!Number.isInteger(n)||n<0||n>59)throw new Error("Seconds must be an integer between 0 and 59");if(!Number.isInteger(i)||i<0||i>999)throw new Error("Milliseconds must be an integer between 0 and 999");this.hours=e,this.minutes=r,this.seconds=n,this.milliseconds=i}static parse(e){if(e instanceof t)return e;if(typeof e!="string")throw new Error("Invalid WebVTT timestamp format");let r=/^(?:(\d{2,}):)?([0-5]\d):([0-5]\d)\.(\d{3})$/,n=e.match(r);if(!n)throw new Error("Invalid WebVTT timestamp format");let[,i,s,a,o]=n,l=i?Number.parseInt(i,10):0,c=Number.parseInt(s,10),u=Number.parseInt(a,10),d=Number.parseInt(o,10);return new t({hours:l,minutes:c,seconds:u,milliseconds:d})}toString(){let e=[this.minutes.toString().padStart(2,"0"),this.seconds.toString().padStart(2,"0")];return this.hours>0&&e.unshift(this.hours.toString().padStart(2,"0")),`${e.join(":")}.${this.milliseconds.toString().padStart(3,"0")}`}toDate(){return new Date(this.hours*3600*1e3+this.minutes*60*1e3+this.seconds*1e3+this.milliseconds)}getTimestamp(){return this.hours*3600+this.minutes*60+this.seconds+this.milliseconds/1e3}static fromTimestamp(e){if(e<0)throw new Error("Seconds must be non-negative");let r=Math.floor(e*1e3),n=Math.floor(r/(3600*1e3)),i=Math.floor(r%(3600*1e3)/(60*1e3)),s=Math.floor(r%(60*1e3)/1e3),a=r%1e3;return new t({hours:n,minutes:i,seconds:s,milliseconds:a})}static fromDate(e){return new t({hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds(),milliseconds:e.getUTCMilliseconds()})}equals(e){return this.hours===e.hours&&this.minutes===e.minutes&&this.seconds===e.seconds&&this.milliseconds===e.milliseconds}compare(e){return this.hours!==e.hours?this.hours<e.hours?-1:1:this.minutes!==e.minutes?this.minutes<e.minutes?-1:1:this.seconds!==e.seconds?this.seconds<e.seconds?-1:1:this.milliseconds!==e.milliseconds?this.milliseconds<e.milliseconds?-1:1:0}isWithinRange(e,r){return this.compare(e)>=0&&this.compare(r)<=0}};function pqe(){return Rg({name:"webvttCue",priority:1e3,group:"block",content:"(inline|top)*",defining:!0,parseDOM:[{tag:"p[data-part='cue']",getAttrs:t=>{let e=t.dataset.id,r=t.dataset.start,n=t.dataset.end;return{id:e,start:Nn.parse(r),end:Nn.parse(n)}}}],toDOM:t=>["p",{"data-part":"cue","data-id":t.attrs.id,"data-start":t.attrs.start.toString(),"data-end":t.attrs.end.toString()},0],attrs:{id:{default:Xr(),validate:"string"},start:{default:Nn.fromTimestamp(0),validate:t=>{Nn.parse(t)}},end:{default:Nn.fromTimestamp(0),validate:t=>{Nn.parse(t)}}}})}var hqe=I5((t,e)=>{if(t.type.name==="webvttCue"){let r=t.attrs;if(!e)return{type:t.type,attrs:{...r}};let n=r.end,i=fse(n.toDate(),1);return{type:t.type,attrs:{...r,start:n,end:Nn.fromDate(i)}}}return null});function mqe(){return Bp({Enter:ol(l1,c1,u1,hqe)})}function*gqe(t){let e=0;for(let r=0;r<t.childCount;r++){let n=t.child(r);if(n.type.name!=="webvttCue")continue;let{start:i,end:s,id:a}=n.attrs;yield[n,{start:i,end:s,id:a,nodePos:e}],e+=n.nodeSize}}function yqe(){return
|
||
|
|
---
|
||
|
|
`);return await i.processFrontMatter(l,c=>{Object.assign(c,n(l.path))}),l}};function IYe(t,e){if(t.type==="file")return`file-${e.slice(0,8)}`;if(t.type==="url:direct"||t.type==="url:hosted")return`url-${e.slice(0,8)}`;je(t)}function EV(t){return{[TV]:t}}var TV=Symbol("mx_hash"),YL=class{parseUrl(e){let r=an(e);if(!r)return null;let n=this.parseHash(r.hash);if(jt(r))return{info:{type:"url:direct",url:nS(r)},hash:n};let i=Sme.parse(r);return i?AYe(i,n):{info:{type:"url:direct",url:nS(r)},hash:n}}parseFile(e){return!e||!Kl(e)?null:{type:"file",file:e}}parseHash(e){return g8(e).props}parseHashFromEphemeralState(e){if(typeof e!="object"||e===null)return null;let r=e;return r[TV]?r[TV]:"subpath"in r&&typeof r.subpath=="string"?this.parseHash(r.subpath):null}};function AYe(t,e){let r=null;if(t.host==="youtube")return t.vid.t?r={start:t.vid.t,end:-1}:(t.vid.start||t.vid.end)&&(r={start:t.vid.start??-1,end:t.vid.end??-1}),r&&!e.tempFragment&&(e.tempFragment=r),{info:{type:"url:hosted",vid:t.vid,url:qd(t.vid)},hash:e};if(t.host==="vimeo")return t.vid.t&&(r={start:t.vid.t,end:-1}),r&&!e.tempFragment&&(e.tempFragment=r),{info:{type:"url:hosted",vid:t.vid,url:qd(t.vid)},hash:e};if(t.host==="baidu-pan")return{info:{type:"url:hosted",vid:t.vid,url:qd(t.vid)},hash:e};if(t.host==="bilibili")return t.vid.type==="short-uri"?null:(t.vid.t&&(r={start:t.vid.t,end:-1}),r&&!e.tempFragment&&(e.tempFragment=r),{info:{type:"url:hosted",vid:t.vid,url:qd(t.vid)},hash:e});if(t.host==="coursera")return{info:{type:"url:hosted",vid:t.vid,url:qd(t.vid)},hash:e};je(t)}var GMt=new TextEncoder;var IV={Base32:new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Base32Hex:new TextEncoder().encode("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Base32Crockford:new TextEncoder().encode("0123456789ABCDEFGHJKMNPQRSTVWXYZ")},AV={Base32:new Uint8Array(128).fill(32),Base32Hex:new Uint8Array(128).fill(32),Base32Crockford:new Uint8Array(128).fill(32)};IV.Base32.forEach((t,e)=>AV.Base32[t]=e);IV.Base32Hex.forEach((t,e)=>AV.Base32Hex[t]=e);IV.Base32Crockford.forEach((t,e)=>AV.Base32Crockford[t]=e);function kS(t,e){let r=t.length;if(t.byteOffset){let n=new Uint8Array(t.buffer);n.set(t),t=n.subarray(0,r)}return t=new Uint8Array(t.buffer.transfer(e)),t.set(t.subarray(0,r),e-r),[t,e-r]}var RYe=new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),LYe=new Uint8Array(128).fill(32);RYe.forEach((t,e)=>LYe[t]=e);var s_t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".split("");var rve={Base64:new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Base64Url:new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")},nve={Base64:new Uint8Array(128).fill(64),Base64Url:new Uint8Array(128).fill(64)};rve.Base64.forEach((t,e)=>nve.Base64[t]=e);rve.Base64Url.forEach((t,e)=>nve.Base64Url[t]=e);function PV(t){return((t+2)/3|0)*4}function RV(t,e,r,n,i){for(e+=2;e<t.length;e+=3){let s=t[e-2]<<16|t[e-1]<<8|t[e];t[r++]=n[s>>18],t[r++]=n[s>>12&63],t[r++]=n[s>>6&63],t[r++]=n[s&63]}switch(e){case t.length+1:{let s=t[e-2]<<16;t[r++]=n[s>>18],t[r++]=n[s>>12&63],t[r++]=i,t[r++]=i;break}case t.length:{let s=t[e-2]<<16|t[e-1]<<8;t[r++]=n[s>>18],t[r++]=n[s>>12&63],t[r++]=n[s>>6&63],t[r++]=i;break}}return r}var _Ye=61,ive=new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),OYe=new Uint8Array(128).fill(64);ive.forEach((t,e)=>OYe[t]=e);function sve(t){typeof t=="string"?t=new TextEncoder().encode(t):t instanceof ArrayBuffer?t=new Uint8Array(t).slice():t=t.slice();let[e,r]=kS(t,PV(t.length));return RV(e,r,0,ive,_Ye),new TextDecoder().decode(e)}var DYe=new TextEncoder().encode("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),NYe=new Uint8Array(128).fill(64);DYe.forEach((t,e)=>NYe[t]=e);var FYe=new TextEncoder().encode("0123456789abcdef"),ave=new Uint8Array(128).fill(16);FYe.forEach((t,e)=>ave[t]=e);new TextEncoder().encode("ABCDEF").forEach((t,e)=>ave[t]=e+10);var jYe=new TextEncoder().encode("0123456789abcdef"),ove=new Uint8Array(128).fill(16);jYe.forEach((t,
|
||
|
|
`).replace(/\r/g,`
|
||
|
|
`).replace(/\n{3,}/g,`
|
||
|
|
|
||
|
|
`).trim();if(r.length<=e)return r;let n=r.substring(0,e),i=n.lastIndexOf(" ");return i>e*.8?`${n.substring(0,i)}...`:`${n}...`}function xbe(t){if(!t||typeof t!="object")return null;let e=["maxres","high","standard","medium","default"];for(let r of e){let n=an(t[r]?.url);if(n)return n}return null}function wbe(t){let e=Pn(C1,t);return e.success?e.output:null}var H3=class{app;youTubeApi;auth;mediaNote;extractor;imageCache;#e;constructor(e){this.app=e.app,this.youTubeApi=e.youTubeApi,this.auth=e.auth,this.mediaNote=e.mediaNote,this.extractor=e.metadataExtractor,this.imageCache=e.imageCache,this.#e=r=>new z3(e,r).requestInput()}supportUpdate(e){return da(e)&&Ao()||this.extractor.canExtractMetadata(e)}async updateImageCache(e,r){let n=r.cover;n instanceof VS&&await this.imageCache.set(e,n.blob)}async#t(e){let r=await this.youTubeApi.getVideoMetadata(e);return{type:"media",control:{aspectRatio:r.aspect_ratio},cover:xbe(r.thumbnails),metadata:{title:r.title||void 0,description:bbe(r.description)||void 0,mediaDate:new Date(r.published_at),creator:r.uploader_name,duration:wbe(r.duration),view_count:r.view_count,like_count:r.like_count,language:r.language||null,tags:vbe(r.tags)}}}async#r(e,r){let n=await this.#t(e),i=q3(n);await this.app.fileManager.processFrontMatter(r,s=>{Object.assign(s,o0(i,["tags"])),p$(s,n.type)})}async#n(e,r){return await gt(this.#r(e,r),{loading:"Fetching YouTube metadata...",success:`YouTube metadata updated successfully: ${r.path}`,error:(n,i)=>{if(i instanceof Lo){new iu(this.auth,{content:"You need to login to get latest YouTube metadata"});return}return`Failed to fetch YouTube metadata: ${n}`}})}async#i(e){var s=[];try{let r=J(s,await this.extractor.getInput(e));if(!r)return null;let[n,i]=await Promise.all([this.extractor.extractFormats(r),r.getMetadataTags()]);return{type:n.type,control:{aspectRatio:n.aspectRatio},cover:this.extractor.extractCover(i),metadata:{duration:n.duration,creator:i.artist,album:i.album,albumArtist:i.albumArtist,trackNumber:i.trackNumber,tracksTotal:i.tracksTotal,discNumber:i.discNumber,discsTotal:i.discsTotal,genre:i.genre,mediaDate:i.date,comment:i.comment}}}catch(a){var o=a,l=!0}finally{ee(s,o,l)}}async#s(e,r){let n=await this.#i(e);if(!n)return;let i=q3(n);await this.app.fileManager.processFrontMatter(r,s=>{Object.assign(s,i),p$(s,n.type)}),await this.updateImageCache(r.path,n)}async#a(e,r){return await gt(this.#s(e,r),{loading:"Fetching file metadata...",success:`File metadata updated successfully: ${r.path}`,error:n=>`Failed to fetch file metadata: ${n}`})}async#o(e){return this.supportUpdate(e)?da(e)?await gt(this.#t(e.vid.vid),{loading:"Fetching YouTube metadata...",error:(r,n)=>{if(n instanceof Lo){new iu(this.auth,{content:"You need to login to fetch YouTube metadata"});return}return`Failed to fetch YouTube metadata: ${r}`},loadingDelay:500,swallowError:!1}):this.extractor.canExtractMetadata(e)?await gt(this.#i(e),{loading:"Fetching file metadata...",error:r=>`Failed to fetch file metadata: ${r}`,loadingDelay:500,swallowError:!1}):null:null}async getFrontmatterFields(e){let r=await this.#o(e);if(!r)return null;let n=r.cover instanceof URL?r.cover.toString():void 0,i=o0(q3({metadata:{...r.metadata,cover:n},control:r.control}),[Do,r.type]);return{fields:r,typeField:r.type,type:r.type!=="media"?r.type:void 0,serialized:i}}async updateMetadata(e){if(!this.supportUpdate(e)){new kbe.Notice("Metadata update not supported for this media.");return}let{note:r}=await this.mediaNote.ensureMediaNote(e);if(da(e))await this.#n(e.vid.vid,r);else if(this.extractor.canExtractMetadata(e))await this.#a(e,r);else throw new Error("Metadata update not supported for this media.")}async editMetadata(e){let{note:r,meta:n}=await this.mediaNote.ensureMediaNote(e),i=await this.#e(n),s=q3(i);await this.app.fileManager.processFrontMatter(r,a=>{Object.assign(a,s),p$(a,i.type)})}};function q3(t){return Hn({...x8(t.metadata),...v8(t.control)},r=>r??void 0)}function p$(t,e){let r=t.video?"video":t.audio?"audio":"media";if(r===e)return;let n=t[r];t[r]=void 0,t[e]=n}var Sbe=Z(CV(),1);var G3=class{app;me
|
||
|
|
- {{TIMESTAMP}} `),"note.template.timestamp-offset":Bt(hr(),0),"note.template.screenshot":Bt(we(),`
|
||
|
|
- !{{SCREENSHOT}} {{TIMESTAMP}} `),"note.template.screenshot-embed":Bt(we(),"{{TITLE}}{{DURATION}}|50"),"note.template.insert-at":Bt(hJe,"after-cursor"),"media-lib.folder-path":Bt(we(),"media-lib"),"cache.cover-image.max-size-mb":Bt(Se(hr(),Qa(1),xs(1e3)),100)});function Rxe(t){let e=t,r=Ja(fM,gJe);if(e.defaultVolume!==void 0&&(r["playback.default-volume"]=e.defaultVolume),e.speedStep!==void 0&&(r["playback.speed-step"]=e.speedStep),e.enableSubtitle!==void 0&&(r["playback.track.default-enabled"]=e.enableSubtitle),e.subtitleFolderPath!==void 0&&(r["playback.track.folder-path"]=e.subtitleFolderPath),e.defaultLanguage!==void 0&&(r["playback.track.default-languages"]=e.defaultLanguage?[e.defaultLanguage]:[]),e.screenshotFormat!==void 0){let n=e.screenshotFormat;ws(Axe,n)&&(r["playback.screenshot.format"]=n)}if(e.screenshotQuality!==void 0&&(r["playback.screenshot.quality"]=e.screenshotQuality),e.screenshotFolderPath!==void 0&&(r["playback.screenshot.folder-path"]=e.screenshotFolderPath),e.loadStrategy!==void 0){let n=e.loadStrategy;ws(Pxe,n)&&(r["note.embed-load-strategy"]=n)}if(e.defaultMxLinkClick?.click!==void 0){let n=e.defaultMxLinkClick.click;ws(dM,n)&&(r["link.click-behavior"]=n)}if(e.defaultMxLinkClick?.alt!==void 0){let n=e.defaultMxLinkClick.alt;ws(dM,n)&&(r["link.altclick-behavior"]=n)}return e.timestampTemplate!==void 0&&(r["note.template.timestamp"]=e.timestampTemplate),e.timestampOffset!==void 0&&(r["note.template.timestamp-offset"]=e.timestampOffset),e.screenshotTemplate!==void 0&&(r["note.template.screenshot"]=e.screenshotTemplate),e.screenshotEmbedTemplate!==void 0&&(r["note.template.screenshot-embed"]=e.screenshotEmbedTemplate),e.insertBefore!==void 0&&(r["note.template.insert-at"]=e.insertBefore?"before-cursor":"after-cursor"),Ja(fM,r)}var Lxe=Zo([p0(),Qo(!1),Pt(["split-horizontal","tab","split","window"])]),yJe=Pt(["image/png","image/jpeg","image/webp"]),vJe=Pt(["before-cursor","after-cursor"]),bJe=Pt(["browser","iframe"]),Mxe=An({__VERSION__:Qo(2),...Qu({"release.previous-version":la(we()),"release.show-release-notes":wr(),"playback.default-volume":vo,"playback.speed-step":Se(hr(),Qa(0),xs(1)),"playback.preserve-pitch":wr(),"playback.track.default-enabled":wr(),"playback.track.folder-path":la(we()),"playback.track.default-languages":Wl(Se(we(),f0(ff,"Invalid language code"))),"playback.screenshot.format":yJe,"playback.screenshot.quality":Se(hr(),Qa(0),xs(1)),"playback.screenshot.folder-path":la(we()),"note.embed.load-strategy":qp,"note.embed.handle-hosted":wr(),"note.embed.handle-direct-url":wr(),"link.click-behavior":Lxe,"link.altclick-behavior":Lxe,"link.handle-hosted":wr(),"link.handle-direct-url":wr(),"link.hosted-prefer":bJe,"note.template.timestamp":we(),"note.template.timestamp-offset":hr(),"note.template.screenshot":we(),"note.template.screenshot-embed":we(),"note.template.insert-at":vJe,"media-lib.folder-path":we(),"cache.cover-image.max-size-mb":Se(hr(),Qa(1),xs(1e3))}).entries}),O$={__VERSION__:2,"release.previous-version":null,"release.show-release-notes":!0,"playback.default-volume":100,"playback.speed-step":.1,"playback.preserve-pitch":!0,"playback.track.default-enabled":!1,"playback.track.folder-path":null,"playback.track.default-languages":[],"playback.screenshot.format":"image/jpeg","playback.screenshot.quality":.8,"playback.screenshot.folder-path":null,"note.embed.load-strategy":"eager","link.click-behavior":"split","link.altclick-behavior":"window","link.handle-hosted":!0,"link.handle-direct-url":!0,"link.hosted-prefer":"browser","note.template.timestamp":`
|
||
|
|
- {{TIMESTAMP}} `,"note.template.timestamp-offset":0,"note.template.screenshot":`
|
||
|
|
- !{{SCREENSHOT}} {{TIMESTAMP}} `,"note.template.screenshot-embed":"{{TITLE}}{{DURATION}}|50","note.template.insert-at":"after-cursor","media-lib.folder-path":"media-lib","cache.cover-image.max-size-mb":100,"note.embed.handle-hosted":!0,"note.embed.handle-direct-url":!0};function _xe(t){return{...O$,...XT(t,e=>e!==void 0)}}function Oxe(t){return Ja(Mxe,t)}function Dxe(){return{...O$,__VERSION__:2}}function Nxe(t){let e=Ja(fM,t),r={__VERSION__:2},n=dD(xJe,s=>{let[a,o]=s,l=e[a],c=O$[o];return l===void 0||Yl(l,c)?[o,void 0]:[o,l]});return Ja(Mxe,{...r,...n})}var xJe={"release.previous-version":"release.previous-version","release.show-release-notes":"release.show-release-notes","playback.default-volume":"playback.default-volume","playback.speed-step":"playback.speed-step","playback.preserve-pitch":"playback.preserve-pitch","playback.track.default-enabled":"playback.track.default-enabled","playback.track.folder-path":"playback.track.folder-path","playback.track.default-languages":"playback.track.default-languages","playback.screenshot.format":"playback.screenshot.format","playback.screenshot.quality":"playback.screenshot.quality","playback.screenshot.folder-path":"playback.screenshot.folder-path","note.embed-load-strategy":"note.embed.load-strategy","link.click-behavior":"link.click-behavior","link.altclick-behavior":"link.altclick-behavior","link.handle-hosted":"link.handle-hosted","link.handle-direct-url":"link.handle-direct-url","link.hosted-prefer":"link.hosted-prefer","note.template.timestamp":"note.template.timestamp","note.template.timestamp-offset":"note.template.timestamp-offset","note.template.screenshot":"note.template.screenshot","note.template.screenshot-embed":"note.template.screenshot-embed","note.template.insert-at":"note.template.insert-at","media-lib.folder-path":"media-lib.folder-path","cache.cover-image.max-size-mb":"cache.cover-image.max-size-mb"};var wJe={1:Rxe,2:Nxe},Fxe=t=>{let e=re(null),r=kJe(t),n=re(null,async(s,a)=>{let{value:o,migrated:l}=await SJe(t);l&&await r(o),a(e,o)});return{atom:re(s=>{let a=s(e);return a?_xe(a):null},(s,a,o)=>{if(o===WQ){a(n);return}let l=s(e);if(l===null)return;let c=typeof o=="function"?o(l):o,u={...l,...c};a(e,u),r(u)}),reload:n}};function kJe(t){let e=!1,r=null;return async function n(i){if(e){r=i;return}e=!0;try{if(await t.saveData(i),r!==null){let s=r;r=null,await n(s)}}finally{e=!1}}}async function SJe(t){let e=Dxe();try{let r=await t.loadData();if(!r)return{value:e,migrated:!1};let n=r,i=n.__VERSION__??0,s=e.__VERSION__;if(i===s)return{value:Oxe(n),migrated:!1};let a={...n};for(let o=i+1;o<=s;o++){let l=wJe[o];if(l)a=l(a);else throw new Error(`No migration function found for version ${o}`)}return{value:a,migrated:!0}}catch(r){return console.error("Failed to load plugin data:",r),{value:e,migrated:!1}}}var QS=class{plugin;settingsAtoms;store=Xf();#e;#t;constructor(e){this.plugin=e.plugin,this.settingsAtoms=Fxe(this.plugin),this.loadSettings(),this.#e=new DisposableStack,this.#t=this.#e.use(new hu)}[Symbol.dispose](){this.#e.dispose()}async loadSettings(){await this.store.set(this.settingsAtoms.reload)}get value(){return this.store.get(this.settingsAtoms.atom)}get loaded(){return this.#r()}async#r(){var i=[];try{let e=J(i,new DisposableStack);let r=this.store.get(this.settingsAtoms.atom);if(r)return r;let n=new Promise(l=>{e.defer(this.store.sub(this.settingsAtoms.atom,()=>{let c=this.store.get(this.settingsAtoms.atom);c&&l(c)}))});return await Br(n,this.#t.signal)}catch(s){var a=s,o=!0}finally{ee(i,a,o)}}set(e,r){this.store.set(this.settingsAtoms.atom,n=>({...n,[e]:r}))}subscribe(e,r){var a=[];try{let n=this.store.get(this.settingsAtoms.atom);let i=n?n[e]:su;let s=J(a,new DisposableStack);s.defer(this.store.sub(this.settingsAtoms.atom,()=>{let u=this.store.get(this.settingsAtoms.atom);if(!u||!(e in u))return;let d=u[e];r(d,i,u),i=d}));return s.move()}catch(o){var l=o,c=!0}finally{ee(a,l,c)}}},su=Symbol("na");var pM=class{app;settings;template;constructor(e){this.app=e.app,this.settings=e.settings,this.template=e.template}async insertTimestamp(e,r,{file:n,editor:i})
|
||
|
|
`).map(u=>u.trim()),c=l.reduce((u,d,f)=>(ff.test(d)||u.push(`Invalid language code at line ${f+1}: ${d}`),u),[]);if(c.length>0){new $o.Notice(c.join(`
|
||
|
|
`));return}r.set(l),new $o.Notice("Languages saved")};let i=new $o.Setting(n).setName("Default languages").setDesc(createFragment(s=>{s.appendText("A list of languages to show subtitles/captions for by default."),s.createEl("br"),s.appendText("Each language code should be on a new line.")})).addTextArea(s=>{s.setValue(r.value.join(`
|
||
|
|
`)),s.inputEl.name="default-languages",s.inputEl.rows=6,s.inputEl.cols=10}).addButton(s=>{s.setTooltip("Save").setIcon("lucide-save"),s.buttonEl.type="submit"});for(n.className=i.settingEl.className;i.settingEl.firstChild;)n.appendChild(i.settingEl.firstChild);i.settingEl.remove()},vet=(t,e)=>{let r=e.settings.optionalString("playback.track.folder-path");new $o.Setting(e.containerEl).setName("Default location for text tracks").setDesc('Where text tracks (subtitles/captions) will be searched for. You can go to "Files and links" to change the default location of new attachments.').addDropdown(n=>n.addOptions({default:"Default location for new attachments",specific:"In the folder specified below"}).setValue(r.value===null?"default":"specific").onChange(i=>{i==="default"?r.set(null):r.set("/")}).then(i=>t.use(r.sub(s=>i.setValue(s===null?"default":"specific"))))),new $o.Setting(e.containerEl).setName("Text track folder path").setDesc("Search for text tracks in this folder.").then(n=>{r.value===null&&(n.settingEl.style.display="none"),n.addText(i=>i.setValue(r.value||"/").onChange(s=>{s===""?(i.setValue("/"),r.set("/")):r.set(s)}).then(s=>t.use(r.sub(a=>{a==null?(s.setValue("/"),n.settingEl.style.display="none"):(s.setValue(a),n.settingEl.style.display="")}))))})};var a_=class extends o_.PluginSettingTab{plugin;settings;auth;#e=null;constructor(e){super(e.app,e.plugin),this.plugin=e.plugin,this.settings=e.settings,this.auth=e.auth}hide(){this.#e?.dispose(),this.containerEl.empty()}display(){this.containerEl.empty();let e=j1e();this.settings.loaded.then(()=>{var i=[];try{let r=J(i,new DisposableStack);let n={containerEl:this.containerEl,settings:new i_({settings:this.settings})};r.use(V1e({...n,service:this.auth}));r.use(W1e(n));r.use(X1e(n));r.use($1e(n));r.use(U1e(n,{enableBrowser:e}));r.use(q1e(n));r.use(G1e(n));new o_.Setting(this.containerEl).setHeading().setName("Screenshot");r.use(B1e(n));r.use(Y1e(n));r.use(H1e(n));this.#e=r.move()}catch(s){var a=s,o=!0}finally{ee(i,a,o)}})}};function Z1e(t){let e=nD({injectionMode:Kf.PROXY,strict:!0});return e.register({plugin:Yf(t),app:Yf(t.app),settings:ot(QS),linkHandler:ot(_L),mediaLib:ot(UL),recorderNote:ot(pL),obsidianProtocol:ot(aM),auth:ot(mL),command:ot(YR),menu:ot(sL),mainPs:ot(gS),hashEditor:ot(AL),workspaceOpen:ot($M),workspaceFind:ot(VM),mediaNote:ot(KL),transcriptLoader:ot(bM),template:ot(hM),templateInsertion:ot(pM),fileService:ot(gL),imageCache:ot(LL),trackInfoParser:ot(mM),trackInfoResolver:ot(yM),trackInfoEncoder:ot(vM),metadataParser:ot($3),metadataUpdater:ot(H3),youTubeApi:ot(oS),textExtractionApi:ot(aS),transcriptSaver:ot(TM),attachement:ot(lL),screenshot:ot(cM),mediaUidMigrator:ot(G3),mediaAttr:ot(VL),mediaParser:ot(YL),newRelease:ot(XS),metadataExtractor:ot(V3),passwordManagerModal:Vi(n_),mediaSwitcherModal:Vi(UM),settingTab:Vi(a_),store:qT(Xf,{lifetime:"SCOPED"})}),t.register(()=>e.dispose().catch(r=>{kt.test(r)||console.error("Failed to dispose container",r)})),e.resolve("settings"),e.resolve("linkHandler"),e.resolve("mediaLib"),e.resolve("recorderNote"),e.resolve("obsidianProtocol"),e.resolve("auth"),e.resolve("command"),e.resolve("menu"),e.resolve("newRelease"),e.resolve("hashEditor"),Q1e.Platform.isDesktopApp&&e.cradle.mainPs.initialize().catch(r=>{console.error("Failed to initialize main process service",r)}),e}var bet="open-media-switcher";function J1e(t){t.plugin.addCommand({id:bet,name:"Open external media",icon:"play",callback:()=>t.mediaSwitcherModal.open()}),t.plugin.addRibbonIcon("square-play","Open external media",()=>t.mediaSwitcherModal.open())}var xet=/^(?<x>\d+)?x(?<y>\d+)$|^(?<xOnly>\d+)$/;function eke(t){let e=Number.parseInt(t,10);return Number.isNaN(e)?-1:e}function tke(t){let e=t?.match(xet)?.groups;if(!e)return null;let r=eke(e.xOnly??e.x??""),n=eke(e.y??"");return[r,n]}function l_(t){let e=t.lastIndexOf("|"),r=null,n=t;return e===-1?(r=tke(t),r&&(n="")):(r=tke(n.substring(e+1)),r&&(n=n.substring(0,e))),{title:n,size:r}}function Qv(t,e){t.classList.contains("dynamic-size")||t.classList.add("dynamic-size");let[r,n]=e??[-1,-1];Number.isNaN
|
||
|
|
/**
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/
|
||
|
|
/**
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.development.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/
|
||
|
|
/*!
|
||
|
|
* Ported and modified from: https://github.com/microsoft/TypeScript-Website/blob/v2/packages/documentation/copy/en/handbook-v1/Unions%20and%20Intersections.md#union-exhaustiveness-checking
|
||
|
|
* licensed as:
|
||
|
|
*
|
||
|
|
* The MIT License (MIT)
|
||
|
|
* Copyright (c) Microsoft Corporation
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||
|
|
* associated documentation files (the "Software"), to deal in the Software without restriction,
|
||
|
|
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
|
|
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
||
|
|
* subject to the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
||
|
|
* portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
||
|
|
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
|
*/
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
react/cjs/react-jsx-runtime.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
react/cjs/react.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* react.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
react-dom/cjs/react-dom.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
scheduler/cjs/scheduler.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
react-dom/cjs/react-dom-client.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* react-dom-client.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
@noble/hashes/utils.js:
|
||
|
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
||
|
|
|
||
|
|
@jsr/std__assert/unstable_never.js:
|
||
|
|
(*!
|
||
|
|
* Ported and modified from: https://github.com/microsoft/TypeScript-Website/blob/v2/packages/documentation/copy/en/handbook-v1/Unions%20and%20Intersections.md#union-exhaustiveness-checking
|
||
|
|
* licensed as:
|
||
|
|
*
|
||
|
|
* The MIT License (MIT)
|
||
|
|
* Copyright (c) Microsoft Corporation
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||
|
|
* associated documentation files (the "Software"), to deal in the Software without restriction,
|
||
|
|
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
|
|
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
||
|
|
* subject to the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
||
|
|
* portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
||
|
|
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/shared/src/utils.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/defaultAttributes.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/Icon.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/createLucideIcon.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/arrow-down.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/arrow-up-right.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/arrow-up.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/audio-waveform.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/blocks.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/book.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/bug.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/camera.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/captions-off.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/captions.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/check.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/chevron-down.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/circle-alert.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/circle-check-big.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/circle-x.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/clock.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/copy.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/download.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/external-link.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/eye-off.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/eye.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/file-plus.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/file-text.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/folder-open.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/gauge.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/globe.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/hash.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/image.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/info.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/languages.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/link.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/loader-circle.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/lock.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/maximize.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/mic.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/minimize.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/music.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/pause.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/pen.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/picture-in-picture-2.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/picture-in-picture.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/pin.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/play.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/plus.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/redo.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/refresh-ccw.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/repeat.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/rocket.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/rotate-ccw.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/save.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/scissors.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/search.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/settings.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/sparkles.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/square-pen.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/square-scissors.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/star.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/test-tube.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/text.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/trash-2.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/undo-2.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/undo.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/upload.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/user.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/video.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/volume-1.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/volume-2.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/volume-x.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/x.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/icons/zap.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
lucide-react/dist/esm/lucide-react.js:
|
||
|
|
(**
|
||
|
|
* @license lucide-react v0.475.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/tags.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/codec.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/codec-data.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/custom-coder.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/packet.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/media-sink.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/input-track.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/isobmff/isobmff-misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/isobmff/isobmff-reader.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/matroska/ebml.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/matroska/matroska-misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/matroska/matroska-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/shared/mp3-misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/id3.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/mp3/mp3-reader.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/mp3/mp3-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/ogg/ogg-misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/ogg/ogg-reader.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/ogg/ogg-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/wave/wave-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/adts/adts-reader.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/adts/adts-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/flac/flac-misc.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/flac/flac-demuxer.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/input-format.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/source.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/input.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/reader.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
|
||
|
|
mediabunny/dist/modules/src/index.js:
|
||
|
|
(*!
|
||
|
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||
|
|
*
|
||
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
*)
|
||
|
|
*/
|
||
|
|
|
||
|
|
/* nosourcemap */
|