classicy 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/173.index.js +2 -0
- package/173.index.js.LICENSE.txt +25 -0
- package/262.index.js +2 -0
- package/262.index.js.LICENSE.txt +11 -0
- package/303.index.js +2 -0
- package/303.index.js.LICENSE.txt +1 -0
- package/340.index.js +2 -0
- package/340.index.js.LICENSE.txt +11 -0
- package/353.index.js +1 -0
- package/394.index.js +1 -0
- package/395.index.js +2 -0
- package/395.index.js.LICENSE.txt +11 -0
- package/42.index.js +2 -0
- package/42.index.js.LICENSE.txt +11 -0
- package/446.index.js +2 -0
- package/446.index.js.LICENSE.txt +11 -0
- package/723.index.js +73 -0
- package/723.index.js.LICENSE.txt +7 -0
- package/771.index.js +2 -0
- package/771.index.js.LICENSE.txt +11 -0
- package/85.index.js +2 -0
- package/85.index.js.LICENSE.txt +11 -0
- package/index.js +1 -1
- package/index.js.LICENSE.txt +11 -0
- package/package.json +2 -2
package/771.index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 771.index.js.LICENSE.txt */
|
|
2
|
+
export const __webpack_id__=771;export const __webpack_ids__=[771];export const __webpack_modules__={3653:(t,e,i)=>{i.r(e),i.d(e,{default:()=>g});var n=i(6540);const s=/open\.spotify\.com\/(\w+)\/(\w+)/i;function o(t,e={}){return`\n <style>\n :host {\n display: inline-block;\n min-width: 160px;\n min-height: 80px;\n position: relative;\n }\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n :host(:not([controls])) {\n display: none !important;\n }\n </style>\n <iframe${function(t){let e="";for(const i in t){const n=t[i];e+=""===n?` ${i}`:` ${i}="${n}"`}return e}({src:r(t,e),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"})}></iframe>\n `}function r(t,e){var i,n,o;if(!t.src)return;const r=t.src.match(s),a=r&&r[1],d=r&&r[2],l={t:null==(i=e.config)?void 0:i.startAt,theme:"dark"===(null==(n=e.config)?void 0:n.theme)?"0":null};return`https://open.spotify.com/embed/${a}/${d}${(null==(o=e.config)?void 0:o.preferVideo)?"/video":""}?${function(t){return String(new URLSearchParams(function(t){let e={};for(let i in t){let n=t[i];!0===n||""===n?e[i]=1:!1===n?e[i]=0:null!=n&&(e[i]=n)}return e}(t)))}(l)}`}class a extends(globalThis.HTMLElement??class{}){static getTemplateHTML=o;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new u;#t;#e;#i;#n=!1;#s=!1;#o=!0;#r=0;#a=NaN;#d=!1;#l=null;constructor(){super(),this.#u("config")}async load(){var t,e,i;if(this.#t)return;this.#e&&(this.loadComplete=new u),this.#e=!0,await(this.#t=Promise.resolve()),this.#t=null,this.#n=!1,this.#s=!1,this.#r=0,this.#a=NaN,this.#d=!1,this.dispatchEvent(new Event("emptied"));let n=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const s={t:null==(t=this.config)?void 0:t.startAt,theme:"dark"===(null==(e=this.config)?void 0:e.theme)?"0":null,preferVideo:null==(i=this.config)?void 0:i.preferVideo};if(this.#i)this.api=n,this.api.iframeElement.src=r(d(this.attributes),this);else{this.#i=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=o(d(this.attributes),this));let t=this.shadowRoot.querySelector("iframe");const e=await async function(t,e,i){return l[t]?l[t]:e&&self[e]?Promise.resolve(self[e]):l[t]=new Promise(function(e,n){const s=document.createElement("script");s.src=t;const o=t=>e(t);i&&(self[i]=o),s.onload=()=>!1,s.onerror=n,document.head.append(s)})}("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(i=>e.createController(t,s,i)),this.api.iframeElement=t,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",t=>this.#s&&this.#o&&(t.data.isBuffering||!t.data.isPaused)?(this.#s=!1,void(this.currentTime=1)):(t.data.duration/1e3!==this.#a&&(this.#s=!1,this.#a=t.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),t.data.position/1e3!==this.#r&&(this.#d=!1,this.#s=!1,this.#r=t.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),this.#n||this.#o||!t.data.isPaused?!this.#o||!t.data.isBuffering&&t.data.isPaused?this.#n&&!t.data.isPaused?(this.#n=!1,void this.dispatchEvent(new Event("playing"))):!this.paused&&!this.seeking&&!this.#s&&Math.ceil(this.currentTime)>=this.duration?(this.#s=!0,this.loop?void(this.currentTime=1):void(this.continuous||(this.pause(),this.dispatchEvent(new Event("ended"))))):void 0:(this.#o=!1,this.dispatchEvent(new Event("play")),this.#n=t.data.isBuffering,void(this.#n?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing")))):(this.#o=!0,void this.dispatchEvent(new Event("pause")))))}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,e,i){e!==i&&("src"!==t||this.load())}async play(){var t;return this.#o=!1,this.#n=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,null==(t=this.api)?void 0:t.resume()}async pause(){var t;return await this.loadComplete,null==(t=this.api)?void 0:t.pause()}get config(){return this.#l}set config(t){this.#l=t}get paused(){return this.#o??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#d}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",Boolean(t))}get currentTime(){return this.#r}set currentTime(t){if(this.currentTime==t)return;this.#d=!0;let e=this.#r;this.#r=t,this.dispatchEvent(new Event("timeupdate")),this.#r=e,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.seek(t)})}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#u(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}}function d(t){let e={};for(let i of t)e[i.name]=i.value;return e}const l={};class u extends Promise{constructor(t=()=>{}){let e,i;super((n,s)=>{t(n,s),e=n,i=s}),this.resolve=e,this.reject=i}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",a);var c=a,h=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),p={className:"class",htmlFor:"for"};function f(t){return t.toLowerCase()}function m(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t||"object"==typeof t&&null!==t?void 0:t}function v(t,e,i){var n;t[e]=i,null==i&&e in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&t.removeAttribute(e)}var g=function({react:t,tagName:e,elementClass:i,events:n,displayName:s,defaultProps:o,toAttributeName:r=f,toAttributeValue:a=m}){const d=Number.parseInt(t.version)>=19,l=t.forwardRef((s,l)=>{var u,c;const f=t.useRef(null),g=t.useRef(new Map),w={},E={},y={},T={};for(const[t,e]of Object.entries(s)){if(h.has(t)){y[t]=e;continue}const n=r(p[t]??t);if(t in i.prototype&&!(t in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(c=i.observedAttributes)?void 0:c.some(t=>t===n))){T[t]=e;continue}if(t.startsWith("on")){w[t]=e;continue}const s=a(e);if(n&&null!=s&&(E[n]=String(s),d||(y[n]=s)),n&&d){const t=m(e);y[n]=s!==t?s:e}}if("undefined"!=typeof window){for(const e in w){const i=w[e],s=e.endsWith("Capture"),o=((null==n?void 0:n[e])??e.slice(2).toLowerCase()).slice(0,s?-7:void 0);t.useLayoutEffect(()=>{const t=null==f?void 0:f.current;if(t&&"function"==typeof i)return t.addEventListener(o,i,s),()=>{t.removeEventListener(o,i,s)}},[null==f?void 0:f.current,i])}t.useLayoutEffect(()=>{if(null===f.current)return;const t=new Map;for(const e in T)v(f.current,e,T[e]),g.current.delete(e),t.set(e,T[e]);for(const[t,e]of g.current)v(f.current,t,void 0);g.current=t})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:e,delegatesFocus:n}=i.shadowRootOptions,o=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(E,s)}});y.children=[o,y.children]}return t.createElement(e,{...o,...y,ref:t.useCallback(t=>{f.current=t,"function"==typeof l?l(t):null!==l&&(l.current=t)},[l])})});return l.displayName=s??i.name,l}({react:n,tagName:"spotify-audio",elementClass:c,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":f(t)})}};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
ce-la-react/dist/ce-la-react.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*
|
|
9
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
10
|
+
*)
|
|
11
|
+
*/
|
package/85.index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 85.index.js.LICENSE.txt */
|
|
2
|
+
export const __webpack_id__=85;export const __webpack_ids__=[85];export const __webpack_modules__={3188:(e,t,o)=>{o.r(t),o.d(t,{default:()=>w});var n=o(6540);const s=/tiktok\.com\/(?:@[^/]+\/video\/)?(\d+)(?:\/([\w-]+))?/,i={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},r={[i.INIT]:"emptied",[i.PAUSED]:"pause",[i.ENDED]:"ended",[i.PLAYING]:"play",[i.BUFFERING]:"waiting"};function a(e,t={}){const o={src:l(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(o["data-config"]=JSON.stringify(t.config)),`\n <style>\n :host {\n display:inline-block;\n min-width: 300px;\n min-height: 150px;\n position: relative;\n }\n iframe {\n position:absolute;\n top:0;\n left:0;\n width:100%;\n height:100%;\n border:0;\n }\n </style>\n <iframe ${function(e){let t="";for(const o in e){const n=e[o];t+=""===n?` ${d(o)}`:` ${d(o)}="${d(`${n}`)}"`}return t}(o)} title="TikTok video"></iframe>\n `}function l(e,t={}){if(!e.src)return;const o=e.src.match(s);return`https://www.tiktok.com/player/v1/${o&&o[1]}?${function(e){return String(new URLSearchParams(function(e){let t={};for(let o in e){let n=e[o];!0===n||""===n?t[o]=1:!1===n?t[o]=0:null!=n&&(t[o]=n)}return t}(e)))}({controls:""===e.controls?null:0,autoplay:e.autoplay,muted:e.muted,loop:e.loop,rel:0,...t.config})}`}class u extends(globalThis.HTMLElement??class{}){static getTemplateHTML=a;static shadowRootOptions={mode:"open"};static get observedAttributes(){return["src","controls","loop","autoplay","muted"]}loadComplete=new c;#e;#t;#o=!1;#n=0;#s=!0;#i=null;#r=100;#a=0;#l;constructor(){super(),this.#u("config")}async load(){if(this.#e)return;this.shadowRoot||this.attachShadow(u.shadowRootOptions);const e=!this.#t;if(this.#t&&(this.loadComplete=new c),this.#t=!0,await(this.#e=Promise.resolve()),this.#e=null,this.#n=0,this.#o=!1,this.#s=!0,!this.src)return this.shadowRoot.innerHTML="",void globalThis.removeEventListener("message",this.#c);let t=this.shadowRoot.querySelector("iframe");const o=function(e){let t={};for(let o of e)t[o.name]=o.value;return t}(this.attributes);e&&t&&(this.#i=JSON.parse(t.getAttribute("data-config")||"{}")),(null==t?void 0:t.src)&&t.src===l(o,this)||(this.shadowRoot.innerHTML=a(o,this),t=this.shadowRoot.querySelector("iframe")),this.#l=t,globalThis.addEventListener("message",this.#c)}async attributeChangedCallback(e,t,o){if(t!==o)switch(e){case"muted":await this.loadComplete,this.muted=null!=o;break;case"autoplay":case"controls":case"loop":case"src":return void this.load()}}get config(){return this.#i}set config(e){this.#i=e}#c=e=>{const t=e.data;if(null==t?void 0:t["x-tiktok-player"])switch(t.type){case"onPlayerReady":this.loadComplete.resolve();break;case"onStateChange":{this.#s=[i.INIT,i.PAUSED,i.ENDED].includes(t.value);const e=r[t.value];e&&this.dispatchEvent(new Event(e));break}case"onCurrentTime":this.#n=t.value.currentTime,this.#a=t.value.duration,this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("timeupdate"));break;case"onVolumeChange":this.#r=t.value,this.dispatchEvent(new Event("volumechange"));break;case"onMute":this.#o=!!t.value,this.#r=t.value?0:this.#r,this.dispatchEvent(new Event("volumechange"));break;case"onError":this.dispatchEvent(new Event("error"));break;default:console.warn("Unhandled TikTok player message:",t)}};#d(e,t){var o;if(!(null==(o=this.#l)?void 0:o.contentWindow))return;const n={"x-tiktok-player":!0,type:e,...void 0!==t?{value:t}:{}};this.#l.contentWindow.postMessage(n,"*")}async play(){await this.loadComplete,this.#d("play")}async pause(){await this.loadComplete,this.#d("pause")}async#h(e){await this.loadComplete,this.#d("seekTo",Number(e))}async#p(){await this.loadComplete,this.#d("mute")}async#m(){await this.loadComplete,this.#d("unMute")}get volume(){return this.#r/100}set volume(e){console.warn("Volume control is not supported for TikTok videos.")}get currentTime(){return this.#n}set currentTime(e){this.#h(e)}get muted(){return this.#o}set muted(e){this.#o=e,e?this.#p():this.#m()}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get paused(){return this.#s}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e??"")}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}}class c extends Promise{constructor(e=()=>{}){let t,o;super((n,s)=>{e(n,s),t=n,o=s}),this.resolve=t,this.reject=o}}function d(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}globalThis.customElements&&!globalThis.customElements.get("tiktok-video")&&globalThis.customElements.define("tiktok-video",u);var h=u,p=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),m={className:"class",htmlFor:"for"};function f(e){return e.toLowerCase()}function v(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function g(e,t,o){var n;e[t]=o,null==o&&t in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&e.removeAttribute(t)}var w=function({react:e,tagName:t,elementClass:o,events:n,displayName:s,defaultProps:i,toAttributeName:r=f,toAttributeValue:a=v}){const l=Number.parseInt(e.version)>=19,u=e.forwardRef((s,u)=>{var c,d;const h=e.useRef(null),f=e.useRef(new Map),w={},y={},b={},T={};for(const[e,t]of Object.entries(s)){if(p.has(e)){b[e]=t;continue}const n=r(m[e]??e);if(e in o.prototype&&!(e in((null==(c=globalThis.HTMLElement)?void 0:c.prototype)??{}))&&!(null==(d=o.observedAttributes)?void 0:d.some(e=>e===n))){T[e]=t;continue}if(e.startsWith("on")){w[e]=t;continue}const s=a(t);if(n&&null!=s&&(y[n]=String(s),l||(b[n]=s)),n&&l){const e=v(t);b[n]=s!==e?s:t}}if("undefined"!=typeof window){for(const t in w){const o=w[t],s=t.endsWith("Capture"),i=((null==n?void 0:n[t])??t.slice(2).toLowerCase()).slice(0,s?-7:void 0);e.useLayoutEffect(()=>{const e=null==h?void 0:h.current;if(e&&"function"==typeof o)return e.addEventListener(i,o,s),()=>{e.removeEventListener(i,o,s)}},[null==h?void 0:h.current,o])}e.useLayoutEffect(()=>{if(null===h.current)return;const e=new Map;for(const t in T)g(h.current,t,T[t]),f.current.delete(t),e.set(t,T[t]);for(const[e,t]of f.current)g(h.current,e,void 0);f.current=e})}if("undefined"==typeof window&&(null==o?void 0:o.getTemplateHTML)&&(null==o?void 0:o.shadowRootOptions)){const{mode:t,delegatesFocus:n}=o.shadowRootOptions,i=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(y,s)}});b.children=[i,b.children]}return e.createElement(t,{...i,...b,ref:e.useCallback(e=>{h.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},[u])})});return u.displayName=s??o.name,u}({react:n,tagName:"tiktok-video",elementClass:h,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":f(e)})}};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
ce-la-react/dist/ce-la-react.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*
|
|
9
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
10
|
+
*)
|
|
11
|
+
*/
|