UNPKG

@dtu-olp-2024/video-player-nocobase

Version:

A NocoBase plugin for Video Player integration, supporting stream video. Built for the DTU GreenHope project.

27 lines (24 loc) 162 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ (function(V,O){typeof exports=="object"&&typeof module!="undefined"?O(exports,require("@nocobase/client"),require("@formily/react"),require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","@formily/react","react/jsx-runtime","react"],O):(V=typeof globalThis!="undefined"?globalThis:V||self,O(V["@dtu-olp-2024/video-player-nocobase"]={},V["@nocobase/client"],V["@formily/react"],V.jsxRuntime,V.react))})(this,function(V,O,N,xt,nt){"use strict";var Kt=Object.defineProperty,Gt=Object.defineProperties;var Xt=Object.getOwnPropertyDescriptors;var Et=Object.getOwnPropertySymbols;var Zt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable;var Mt=(V,O,N)=>O in V?Kt(V,O,{enumerable:!0,configurable:!0,writable:!0,value:N}):V[O]=N,Y=(V,O)=>{for(var N in O||(O={}))Zt.call(O,N)&&Mt(V,N,O[N]);if(Et)for(var N of Et(O))Qt.call(O,N)&&Mt(V,N,O[N]);return V},B=(V,O)=>Gt(V,Xt(O));var q=(V,O,N)=>new Promise((xt,nt)=>{var wt=G=>{try{st(N.next(G))}catch(lt){nt(lt)}},K=G=>{try{st(N.throw(G))}catch(lt){nt(lt)}},st=G=>G.done?xt(G.value):Promise.resolve(G.value).then(wt,K);st((N=N.apply(V,O)).next())});const wt="Video Player",K="VideoPlayer",st={name:"url",type:"actionModal",useComponentProps(){var a,m;const _=N.useFieldSchema(),{deepMerge:et}=O.useDesignable();return{title:"Edit url",schema:{type:"object",title:"Edit url",properties:{url:{title:"url",type:"number",default:(m=(a=_["x-decorator-props"])==null?void 0:a[K])==null?void 0:m.url,"x-decorator":"FormItem","x-component":"Input"}}},onSubmit({url:i}){var e;et({"x-uid":_["x-uid"],"x-decorator-props":B(Y({},_["x-decorator-props"]),{[K]:B(Y({},(e=_["x-decorator-props"])==null?void 0:e[K]),{url:i})})})}}}},G=new O.SchemaSettings({name:`blockSettings:${K}`,items:[{type:"remove",name:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}},st]});function lt(){var et,a;return(a=(et=N.useFieldSchema().parent)==null?void 0:et["x-decorator-props"])==null?void 0:a[K]}const Ft={type:"void","x-component":"FormItem","x-decorator":"DataBlockProvider","x-decorator-props":{[K]:{},dataSource:"main",collection:"smart_contracts",action:"list"},"x-settings":G.name,"x-toolbar":"BlockSchemaToolbar",properties:{[K]:{type:"void","x-component":"VideoPlayer","x-use-component-props":"useCodeBlockProps"}}},at={type:"item",name:K,icon:"FileOutlined",useComponentProps(){const{insert:_}=O.useSchemaInitializer();return{title:wt,componentType:"VideoPlayer",onClick:()=>{_(Ft)}}}};var St=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ht(_){return _&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_}function It(_){throw new Error('Could not dynamically require "'+_+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jt={exports:{}};jt.exports,function(_,et){/*! * artplayer.js v5.2.1 * Github: https://github.com/zhw2590582/ArtPlayer * (c) 2017-2024 Harvey Zack * Released under the MIT License. */(function(a,m,i,e,t){var p=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof St!="undefined"?St:{},r=typeof p[e]=="function"&&p[e],o=r.cache||{},n=typeof It=="function"&&It.bind(_);function s(u,f){if(!o[u]){if(!a[u]){var d=typeof p[e]=="function"&&p[e];if(!f&&d)return d(u,!0);if(r)return r(u,!0);if(n&&typeof u=="string")return n(u);var g=Error("Cannot find module '"+u+"'");throw g.code="MODULE_NOT_FOUND",g}h.resolve=function(v){var b=a[u][1][v];return b!=null?b:v},h.cache={};var y=o[u]=new s.Module(u);a[u][0].call(y.exports,h,y,y.exports,this)}return o[u].exports;function h(v){var b=h.resolve(v);return b===!1?{}:s(b)}}s.isParcelRequire=!0,s.Module=function(u){this.id=u,this.bundle=s,this.exports={}},s.modules=a,s.cache=o,s.parent=r,s.register=function(u,f){a[u]=[function(d,g){g.exports=f},{}]},Object.defineProperty(s,"root",{get:function(){return p[e]}}),p[e]=s;for(var c=0;c<m.length;c++)s(m[c]);{var l=s(i);_.exports=l}})({"5lTcX":[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(i);var t=a("bundle-text:./style/index.less"),p=e.interopDefault(t),r=a("option-validator"),o=e.interopDefault(r),n=a("./utils/emitter"),s=e.interopDefault(n),c=a("./utils"),l=a("./scheme"),u=e.interopDefault(l),f=a("./config"),d=e.interopDefault(f),g=a("./template"),y=e.interopDefault(g),h=a("./i18n"),v=e.interopDefault(h),b=a("./player"),S=e.interopDefault(b),C=a("./control"),x=e.interopDefault(C),w=a("./contextmenu"),E=e.interopDefault(w),T=a("./info"),I=e.interopDefault(T),k=a("./subtitle"),j=e.interopDefault(k),$=a("./events"),M=e.interopDefault($),H=a("./hotkey"),P=e.interopDefault(H),F=a("./layer"),z=e.interopDefault(F),L=a("./loading"),R=e.interopDefault(L),W=a("./notice"),U=e.interopDefault(W),Q=a("./mask"),rt=e.interopDefault(Q),ct=a("./icons"),pt=e.interopDefault(ct),ut=a("./setting"),dt=e.interopDefault(ut),ft=a("./storage"),ht=e.interopDefault(ft),mt=a("./plugins"),gt=e.interopDefault(mt);let vt=0,J=[];class D extends s.default{constructor(X,ot){super(),this.id=++vt;let it=c.mergeDeep(D.option,X);if(it.container=X.container,this.option=(0,o.default)(it,u.default),this.isLock=!1,this.isReady=!1,this.isFocus=!1,this.isInput=!1,this.isRotate=!1,this.isDestroy=!1,this.template=new y.default(this),this.events=new M.default(this),this.storage=new ht.default(this),this.icons=new pt.default(this),this.i18n=new v.default(this),this.notice=new U.default(this),this.player=new S.default(this),this.layers=new z.default(this),this.controls=new x.default(this),this.contextmenu=new E.default(this),this.subtitle=new j.default(this),this.info=new I.default(this),this.loading=new R.default(this),this.hotkey=new P.default(this),this.mask=new rt.default(this),this.setting=new dt.default(this),this.plugins=new gt.default(this),typeof ot=="function"&&this.on("ready",()=>ot.call(this,this)),D.DEBUG){let tt=Z=>console.log(`[ART.${this.id}] -> ${Z}`);tt("Version@"+D.version),tt("Env@"+D.env),tt("Build@"+D.build);for(let Z=0;Z<d.default.events.length;Z++)this.on("video:"+d.default.events[Z],yt=>tt("Event@"+yt.type))}J.push(this)}static get instances(){return J}static get version(){return"5.2.1"}static get env(){return"production"}static get build(){return"2024-10-26 15:26:30"}static get config(){return d.default}static get utils(){return c}static get scheme(){return u.default}static get Emitter(){return s.default}static get validator(){return o.default}static get kindOf(){return o.default.kindOf}static get html(){return y.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,proxy:void 0,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0,scale:1},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:X=>X},moreVideoAttr:{controls:!1,preload:c.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(X=!0){this.events.destroy(),this.template.destroy(X),J.splice(J.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}i.default=D,D.STYLE=p.default,D.DEBUG=!1,D.CONTEXTMENU=!0,D.NOTICE_TIME=2e3,D.SETTING_WIDTH=250,D.SETTING_ITEM_WIDTH=200,D.SETTING_ITEM_HEIGHT=35,D.RESIZE_TIME=200,D.SCROLL_TIME=200,D.SCROLL_GAP=50,D.AUTO_PLAYBACK_MAX=10,D.AUTO_PLAYBACK_MIN=5,D.AUTO_PLAYBACK_TIMEOUT=3e3,D.RECONNECT_TIME_MAX=5,D.RECONNECT_SLEEP_TIME=1e3,D.CONTROL_HIDE_TIME=3e3,D.DBCLICK_TIME=300,D.DBCLICK_FULLSCREEN=!0,D.MOBILE_DBCLICK_PLAY=!0,D.MOBILE_CLICK_PLAY=!1,D.AUTO_ORIENTATION_TIME=200,D.INFO_LOOP_TIME=1e3,D.FAST_FORWARD_VALUE=3,D.FAST_FORWARD_TIME=1e3,D.TOUCH_MOVE_RATIO=.5,D.VOLUME_STEP=.1,D.SEEK_STEP=5,D.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],D.ASPECT_RATIO=["default","4:3","16:9"],D.FLIP=["normal","horizontal","vertical"],D.FULLSCREEN_WEB_IN_BODY=!1,D.LOG_VERSION=!0,D.USE_RAF=!1,c.isBrowser&&(window.Artplayer=D,c.setStyleText("artplayer-style",p.default),setTimeout(()=>{D.LOG_VERSION&&console.log(`%c ArtPlayer %c ${D.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"0016T","option-validator":"bAWi2","./utils/emitter":"66mFZ","./utils":"71aH7","./scheme":"AKEiO","./config":"lyjeQ","./template":"X13Zf","./i18n":"3jKkj","./player":"a90nx","./control":"8Z0Uf","./contextmenu":"2KYsr","./info":"02ajl","./subtitle":"eSWto","./events":"jo4S1","./hotkey":"6NoFy","./layer":"6G6hZ","./loading":"3dsEe","./notice":"dWGTw","./mask":"5POkG","./icons":"6OeNg","./setting":"3eYNH","./storage":"2aaJe","./plugins":"8MTUM","@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],"0016T":[function(a,m,i){m.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#ffffff40;--art-hover-color:#ffffff40;--art-loaded-color:#ffffff40;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#000000b3;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{zoom:1;text-align:left;user-select:none;box-sizing:border-box;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;direction:ltr;outline:0;width:100%;height:100%;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{vertical-align:top;max-width:100%}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.art-poster{z-index:11;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;width:100%;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;pointer-events:none;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;opacity:0;pointer-events:none;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;width:100%;height:100%;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;width:100%;height:50%;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;background-color:var(--art-hover-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;background-color:var(--art-loaded-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;background-color:var(--art-theme);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;pointer-events:auto;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);width:100%;height:100%;position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{pointer-events:none;width:100%;height:100%}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{flex:1;justify-content:center;align-items:center;height:100%;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;width:100%;height:100%;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{cursor:pointer;flex:1;justify-content:center;width:100%;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;width:2px;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;background-color:var(--art-theme);width:100%;height:100%;position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;padding:var(--art-padding);pointer-events:none;width:100%;height:auto;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{flex-shrink:0;justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{justify-content:center;align-items:center;min-width:32px;height:24px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{appearance:none;background-color:#fff3;outline:none;width:80px;height:3px}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{text-align:right;width:100px}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{text-overflow:ellipsis;white-space:nowrap;user-select:all;width:250px;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;width:320px;height:180px;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;width:100%;height:100%;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-droging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{fill:var(--art-theme);width:15px;height:15px}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{justify-content:center;display:flex;position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{flex-shrink:0;justify-content:center;align-items:center;width:100%;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],bAWi2:[function(a,m,i){var e;e=function(){function t(l){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(l)}var p=Object.prototype.toString,r=function(l){if(l===void 0)return"undefined";if(l===null)return"null";var u=t(l);if(u==="boolean")return"boolean";if(u==="string")return"string";if(u==="number")return"number";if(u==="symbol")return"symbol";if(u==="function")return o(l)==="GeneratorFunction"?"generatorfunction":"function";if(Array.isArray?Array.isArray(l):l instanceof Array)return"array";if(l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l))return"buffer";if(function(f){try{if(typeof f.length=="number"&&typeof f.callee=="function")return!0}catch(d){if(d.message.indexOf("callee")!==-1)return!0}return!1}(l))return"arguments";if(l instanceof Date||typeof l.toDateString=="function"&&typeof l.getDate=="function"&&typeof l.setDate=="function")return"date";if(l instanceof Error||typeof l.message=="string"&&l.constructor&&typeof l.constructor.stackTraceLimit=="number")return"error";if(l instanceof RegExp||typeof l.flags=="string"&&typeof l.ignoreCase=="boolean"&&typeof l.multiline=="boolean"&&typeof l.global=="boolean")return"regexp";switch(o(l)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(typeof l.throw=="function"&&typeof l.return=="function"&&typeof l.next=="function")return"generator";switch(u=p.call(l)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")};function o(l){return l.constructor?l.constructor.name:null}function n(l,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:["option"];return s(l,u,f),c(l,u,f),function(d,g,y){var h=r(g),v=r(d);if(h==="object"){if(v!=="object")throw Error("[Type Error]: '".concat(y.join("."),"' require 'object' type, but got '").concat(v,"'"));Object.keys(g).forEach(function(b){var S=d[b],C=g[b],x=y.slice();x.push(b),s(S,C,x),c(S,C,x),n(S,C,x)})}if(h==="array"){if(v!=="array")throw Error("[Type Error]: '".concat(y.join("."),"' require 'array' type, but got '").concat(v,"'"));d.forEach(function(b,S){var C=d[S],x=g[S]||g[0],w=y.slice();w.push(S),s(C,x,w),c(C,x,w),n(C,x,w)})}}(l,u,f),l}function s(l,u,f){if(r(u)==="string"){var d=r(l);if(u[0]==="?"&&(u=u.slice(1)+"|undefined"),!(-1<u.indexOf("|")?u.split("|").map(function(g){return g.toLowerCase().trim()}).filter(Boolean).some(function(g){return d===g}):u.toLowerCase().trim()===d))throw Error("[Type Error]: '".concat(f.join("."),"' require '").concat(u,"' type, but got '").concat(d,"'"))}}function c(l,u,f){if(r(u)==="function"){var d=u(l,r(l),f);if(d!==!0){var g=r(d);throw g==="string"?Error(d):g==="error"?d:Error("[Validator Error]: The scheme for '".concat(f.join("."),"' validator require return true, but got '").concat(d,"'"))}}}return n.kindOf=r,n},m.exports=e()},{}],"66mFZ":[function(a,m,i){a("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(i),i.default=class{on(e,t,p){let r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:p}),this}once(e,t,p){let r=this;function o(...n){r.off(e,o),t.apply(p,n)}return o._=t,this.on(e,o,p)}emit(e,...t){let p=((this.e||(this.e={}))[e]||[]).slice();for(let r=0;r<p.length;r+=1)p[r].fn.apply(p[r].ctx,t);return this}off(e,t){let p=this.e||(this.e={}),r=p[e],o=[];if(r&&t)for(let n=0,s=r.length;n<s;n+=1)r[n].fn!==t&&r[n].fn._!==t&&o.push(r[n]);return o.length?p[e]=o:delete p[e],this}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],"9pCYc":[function(a,m,i){i.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},i.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.exportAll=function(e,t){return Object.keys(e).forEach(function(p){p==="default"||p==="__esModule"||Object.prototype.hasOwnProperty.call(t,p)||Object.defineProperty(t,p,{enumerable:!0,get:function(){return e[p]}})}),t},i.export=function(e,t,p){Object.defineProperty(e,t,{enumerable:!0,get:p})}},{}],"71aH7":[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(i);var t=a("./dom");e.exportAll(t,i);var p=a("./error");e.exportAll(p,i);var r=a("./subtitle");e.exportAll(r,i);var o=a("./file");e.exportAll(o,i);var n=a("./property");e.exportAll(n,i);var s=a("./time");e.exportAll(s,i);var c=a("./format");e.exportAll(c,i);var l=a("./compatibility");e.exportAll(l,i)},{"./dom":"bSNiV","./error":"hwmZz","./subtitle":"inzwq","./file":"6b7Ip","./property":"5NSdr","./time":"epmNy","./format":"gapRl","./compatibility":"6ZTr6","@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],bSNiV:[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(i),e.export(i,"query",()=>p),e.export(i,"queryAll",()=>r),e.export(i,"addClass",()=>o),e.export(i,"removeClass",()=>n),e.export(i,"hasClass",()=>s),e.export(i,"append",()=>c),e.export(i,"remove",()=>l),e.export(i,"setStyle",()=>u),e.export(i,"setStyles",()=>f),e.export(i,"getStyle",()=>d),e.export(i,"sublings",()=>g),e.export(i,"inverseClass",()=>y),e.export(i,"tooltip",()=>h),e.export(i,"isInViewport",()=>v),e.export(i,"includeFromEvent",()=>b),e.export(i,"replaceElement",()=>S),e.export(i,"createElement",()=>C),e.export(i,"getIcon",()=>x),e.export(i,"setStyleText",()=>w),e.export(i,"supportsFlex",()=>E),e.export(i,"getRect",()=>T),e.export(i,"loadImg",()=>I);var t=a("./compatibility");function p(k,j=document){return j.querySelector(k)}function r(k,j=document){return Array.from(j.querySelectorAll(k))}function o(k,j){return k.classList.add(j)}function n(k,j){return k.classList.remove(j)}function s(k,j){return k.classList.contains(j)}function c(k,j){return j instanceof Element?k.appendChild(j):k.insertAdjacentHTML("beforeend",String(j)),k.lastElementChild||k.lastChild}function l(k){return k.parentNode.removeChild(k)}function u(k,j,$){return k.style[j]=$,k}function f(k,j){for(let $ in j)u(k,$,j[$]);return k}function d(k,j,$=!0){let M=window.getComputedStyle(k,null).getPropertyValue(j);return $?parseFloat(M):M}function g(k){return Array.from(k.parentElement.children).filter(j=>j!==k)}function y(k,j){g(k).forEach($=>n($,j)),o(k,j)}function h(k,j,$="top"){t.isMobile||(k.setAttribute("aria-label",j),o(k,"hint--rounded"),o(k,`hint--${$}`))}function v(k,j=0){let $=k.getBoundingClientRect(),M=window.innerHeight||document.documentElement.clientHeight,H=window.innerWidth||document.documentElement.clientWidth,P=$.top-j<=M&&$.top+$.height+j>=0,F=$.left-j<=H+j&&$.left+$.width+j>=0;return P&&F}function b(k,j){return k.composedPath&&k.composedPath().indexOf(j)>-1}function S(k,j){return j.parentNode.replaceChild(k,j),k}function C(k){return document.createElement(k)}function x(k="",j=""){let $=C("i");return o($,"art-icon"),o($,`art-icon-${k}`),c($,j),$}function w(k,j){let $=document.getElementById(k);if($)$.textContent=j;else{let M=C("style");M.id=k,M.textContent=j,document.head.appendChild(M)}}function E(){let k=document.createElement("div");return k.style.display="flex",k.style.display==="flex"}function T(k){return k.getBoundingClientRect()}function I(k,j){return new Promise(($,M)=>{let H=new Image;H.crossOrigin="Anonymous",H.onload=function(){if(j&&j!==1){let P=document.createElement("canvas"),F=P.getContext("2d");P.width=H.width*j,P.height=H.height*j,F.drawImage(H,0,0,P.width,P.height),P.toBlob(z=>{let L=URL.createObjectURL(z),R=new Image;R.onload=function(){$(R)},R.onerror=function(){URL.revokeObjectURL(L),M(Error(`Image load failed: ${k}`))},R.src=L})}else $(H)},H.onerror=function(){M(Error(`Image load failed: ${k}`))},H.src=k})}},{"./compatibility":"6ZTr6","@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],"6ZTr6":[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(i),e.export(i,"userAgent",()=>t),e.export(i,"isSafari",()=>p),e.export(i,"isWechat",()=>r),e.export(i,"isIE",()=>o),e.export(i,"isAndroid",()=>n),e.export(i,"isIOS",()=>s),e.export(i,"isIOS13",()=>c),e.export(i,"isMobile",()=>l),e.export(i,"isBrowser",()=>u);let t=typeof navigator!="undefined"?navigator.userAgent:"",p=/^((?!chrome|android).)*safari/i.test(t),r=/MicroMessenger/i.test(t),o=/MSIE|Trident/i.test(t),n=/android/i.test(t),s=/iPad|iPhone|iPod/i.test(t)&&!window.MSStream,c=s||t.includes("Macintosh")&&navigator.maxTouchPoints>=1,l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||c,u=typeof window!="undefined"},{"@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],hwmZz:[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(i),e.export(i,"ArtPlayerError",()=>t),e.export(i,"errorHandle",()=>p);class t extends Error{constructor(o,n){super(o),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n||this.constructor),this.name="ArtPlayerError"}}function p(r,o){if(!r)throw new t(o);return r}},{"@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],inzwq:[function(a,m,i){var e=a("@parcel/transformer-js/src/esmodule-helpers.js");function t(o){return`WEBVTT \r \r `.concat(o.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(n,s,c)=>{let l=c.slice(0,3);return c.length===1&&(l=c+"00"),c.length===2&&(l=c+"0"),`${s},${l}`}).replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat(`\r \r `))}function p(o){return URL.createObjectURL(new Blob([o],{type:"text/vtt"}))}function r(o){let n=RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function s(c=""){return c.split(/[:.]/).map((l,u,f)=>{if(u===f.length-1){if(l.length===1)return`.${l}00`;if(l.length===2)return`.${l}0`}else if(l.length===1)return(u===0?"0":":0")+l;return u===0?l:u===f.length-1?`.${l}`:`:${l}`}).join("")}return`WEBVTT `+o.split(/\r?\n/).map(c=>{let l=c.match(n);return l?{start:s(l[1].trim()),end:s(l[2].trim()),text:l[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,` `).trim().split(/\r?\n/).map(u=>u.trim()).join(` `)}:null}).filter(c=>c).map((c,l)=>c?l+1+` ${c.start} --> ${c.end} ${c.text}`:"").filter(c=>c.trim()).join(` `)}e.defineInteropFlag(i),e.export(i,"srtToVtt",()=>t),e.export(i,"vttToBlob",()=>p),e.export(i,"assToVtt",()=>r)},{"@parcel/transformer-js