@liascript/editor 1.1.43--2.0.1 → 1.1.43--2.1.1
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/CHANGELOG.md +35 -0
- package/dist/Ably.607911cd.js +1 -0
- package/dist/Ably.c7811c13.js +1 -0
- package/dist/Nostr.a4f09542.js +1 -0
- package/dist/Nostr.a7641a38.js +1 -0
- package/dist/Nostr.c6fda72a.js +1 -0
- package/dist/Nostr.da928c49.js +1 -0
- package/dist/index.207f6fbe.js +1 -0
- package/dist/index.236b6f39.js +1 -0
- package/dist/index.77ec564b.js +1 -0
- package/dist/index.7892bde1.css +1 -0
- package/dist/{index.8ef51bd5.js → index.7ab099ae.js} +1 -1
- package/dist/index.7b992841.js +1 -0
- package/dist/index.b841a13b.js +1 -0
- package/dist/index.b86d452b.js +1 -0
- package/dist/{index.45a4dd9b.js → index.c6b0ddb7.js} +1 -1
- package/dist/index.daa27579.js +1 -0
- package/dist/index.e9044607.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +7 -2
- package/dist/Ably.140d23cc.js +0 -1
- package/dist/Ably.9f94dcaa.js +0 -1
- package/dist/Nostr.2b404c26.js +0 -1
- package/dist/Nostr.2c8140ac.js +0 -1
- package/dist/Nostr.329b3a71.js +0 -1
- package/dist/Nostr.d5c9f5db.js +0 -1
- package/dist/index.646a7ae0.js +0 -1
- package/dist/index.6bb82f82.js +0 -1
- package/dist/index.a89e1a4c.js +0 -1
- package/dist/index.b1a8e24f.js +0 -1
- package/dist/index.c18b1883.js +0 -1
- package/dist/index.c76f8851.js +0 -1
- package/dist/index.c7acbc74.css +0 -1
- package/dist/index.cb6253c2.js +0 -1
- package/dist/index.e92af917.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,o,m,i){Object.defineProperty(e,o,{get:m,set:i,enumerable:!0,configurable:!0})}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},m={},i={},a=o.parcelRequirea18f;null==a&&((a=function(e){if(e in m)return m[e].exports;if(e in i){var o=i[e];delete i[e];var a={id:e,exports:{}};return m[e]=a,o.call(a.exports,a,a.exports),a.exports}var c=new Error("Cannot find module '"+e+"'");throw c.code="MODULE_NOT_FOUND",c}).register=function(e,o){i[e]=o},o.parcelRequirea18f=a),a.register("1fvgI",(function(o,m){e(o.exports,"fetchText",(()=>r)),e(o.exports,"extract",(()=>w));var i=a("4pG1E"),c=a("8kr9p");const t=new Map;let s;const d=5e3;async function r(e,o=!0,m=d){try{const o=await fetch(e);if(o.ok)return await o.text()}catch(e){}if(!o)throw new Error(`oembed: could not fetch "${e}"`);const i=await Promise.race([fetch(c.PROXY+encodeURIComponent(e)),new Promise(((e,o)=>setTimeout((()=>o(new Error("oembed: proxy timeout"))),m)))]);return(await i.json()).contents}function w(e,o){e.endsWith("/")&&(e=e.slice(0,-1));const m=e+JSON.stringify(o);return t.has(m)||t.set(m,async function(e){if(!s){s=[];for(const[e,o]of i.endpoints)for(const m of o||[]){const o=m.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");s.push([e,new RegExp(o,"i")])}}const o=e.replace(/^https?:\/\//,""),m=s.find((([,e])=>e.test(o)));return m?"https://"+m[0]:async function(e){try{const o=await r(e,!1),m=(new DOMParser).parseFromString(o,"text/html").querySelector('link[type="application/json+oembed"], link[type="text/json+oembed"]')?.getAttribute("href");return m?new URL(m,e).href:void 0}catch(e){}}(e)}(e).then((m=>{if(!m)throw new Error(`No provider found with given url "${e}"`);return async function(e,o,m){const i=new URL(o.replace(/\{format\}/g,"json"));return i.searchParams.set("format","json"),i.searchParams.set("url",e),m.maxwidth&&i.searchParams.set("maxwidth",""+m.maxwidth),m.maxheight&&i.searchParams.set("maxheight",""+m.maxheight),JSON.parse(await r(i.href))}(e,m,o)}))),t.get(m)}customElements.define("lia-embed",class extends HTMLElement{url_=null;thumbnail_=!1;connected_=!1;dataAttributes={};constructor(){super(),this.div_=document.createElement("div"),this.div_.style.width="inherit",this.div_.style.height="inherit",this.div_.style.display="inline-block",this.attachShadow({mode:"closed"}).appendChild(this.div_)}connectedCallback(){if(this.connected_)return;this.connected_=!0;const e=this.parentElement,o=parseFloat(this.getAttribute("scale")||"0.674");try{const e=this.getAttribute("data-attributes");e&&(this.dataAttributes=JSON.parse(e))}catch(e){console.warn("oembed: Couldn't parse data-attributes")}if(e){const m=parseFloat(window.getComputedStyle(e).paddingLeft);null==this.maxwidth_&&(this.maxwidth_=e.clientWidth-m-30),null==this.maxheight_&&(this.maxheight_=Math.floor(this.maxwidth_*(o||.674))),this.maxheight_>screen.availHeight&&(this.maxheight_=Math.floor(screen.availHeight*(o||.76)))}this.render()}render(){if(!this.connected_||!this.url_)return;const e=this.url_,o=this.thumbnail_,m=this.div_,i={maxwidth:this.maxwidth_,maxheight:this.maxheight_};w(e,i).then((i=>{if(e!==this.url_)return;if(o&&i.thumbnail_url)return void this.show(this.element("img",{src:i.thumbnail_url,style:"width: inherit; height: inherit; object-fit: cover"}));if(i.html)m.innerHTML=i.html;else{if("photo"!==i.type||!i.url)return void this.iframe(e,"inherit");this.show(this.element("img",{src:i.url,style:"width: 100%"}))}const a=m.querySelector("iframe");if(a){a.style.width="100%";const e=parseFloat(i.width)/parseFloat(i.height);e>0&&isFinite(e)&&(a.style.height="auto",a.style.maxHeight=this.style.height.endsWith("px")?"100%":"90vh",a.style.setProperty("aspect-ratio",""+e))}else m.firstElementChild instanceof HTMLElement&&(m.firstElementChild.style.width="100%");this.applyAttributes()})).catch((()=>{e===this.url_&&this.iframe(e,i.maxheight?i.maxheight+"px":"inherit")}))}element(e,o){const m=document.createElement(e);for(const[e,i]of Object.entries(o))m.setAttribute(e,i);return m}show(e){this.div_.innerHTML="",this.div_.appendChild(e)}iframe(e,o){this.show(this.element("iframe",{src:e,style:`width: 100%; height: ${o}`,allowfullscreen:"",loading:"lazy"})),this.applyAttributes()}applyAttributes(){const e=this.div_.querySelector("iframe")||this.div_.firstElementChild;if(e instanceof HTMLElement)for(const[o,m]of Object.entries(this.dataAttributes))"style"===o?e.style.cssText+=m:e.setAttribute(o,m)}get url(){return this.url_}set url(e){this.url_!==e&&(this.url_=e,this.render())}get maxheight(){return this.maxheight_}set maxheight(e){e&&(this.maxheight_=e)}get maxwidth(){return this.maxwidth_}set maxwidth(e){e&&(this.maxwidth_=e)}get thumbnail(){return this.thumbnail_}set thumbnail(e){this.thumbnail_=e}})})),a.register("4pG1E",(function(o,m){e(o.exports,"endpoints",(()=>i));const i=JSON.parse('[["app.1mind.com/oembed",["app.1mind.com/embed/*","app.1mind.com/embed/*/*","app.dev.1mind.com/embed/*","app.dev.1mind.com/embed/*/*"]],["www.23hq.com/23/oembed",["www.23hq.com/*/photo/*"]],["playout.3qsdn.com/oembed",["playout.3qsdn.com/embed/*"]],["api.abraia.me/oembed",["store.abraia.me/*"]],["oembed.acast.com/v1/embed-player",["play.acast.com/s/*"]],["secure.actblue.com/cf/oembed",["secure.actblue.com/donate/*"]],["adilo.bigcommand.com/web/oembed",["adilo.bigcommand.com/watch/*"]],["openapi.afreecatv.com/oembed/embedinfo",["vod.afreecatv.com/player/","v.afree.ca/ST/","vod.afreecatv.com/ST/","vod.afreecatv.com/PLAYER/STATION/","play.afreecatv.com/"]],["viewer.altium.com/shell/oembed",["altium.com/viewer/*"]],["api.altrulabs.com/api/v1/social/oembed",["app.altrulabs.com/*/*?answer_id=*","app.altrulabs.com/player/*"]],["live.amcharts.com/api/oembed",["chart.amcharts.com/*/*"]],["api.amtraker.com/v3/oembed",["amtraker.com/trains/*","amtraker.com/trains/*/*","*.amtraker.com/trains/*","*.amtraker.com/trains/*/*"]],["animatron.com/oembed/json",["www.animatron.com/project/*","animatron.com/project/*"]],["animoto.com/oembeds/create",["animoto.com/play/*"]],["api.anniemusic.app/api/v1/oembed",["anniemusic.app/t/*","anniemusic.app/p/*"]],["us-central1-themerax-cc903.cloudfunctions.net/playgroundApi/oembed",["appforcestudio.com/playground/*"]],["podcasts.apple.com/api/oembed",["podcasts.apple.com/*"]],["storymaps.arcgis.com/oembed",["storymaps.arcgis.com/stories/*"]],["studio.assemblrworld.com/api/oembed",["*.studio.assemblrworld.com/creation/*","studio.assemblrworld.com/creation/*","*.app-edu.assemblrworld.com/Creation/*","app-edu.assemblrworld.com/Creation/*","assemblr.world/*","editor.assemblrworld.com/*","*.assemblrworld.com/creation/*","*.assemblrworld.com/Creation/*","*.studio.assemblrworld.com/creation/*","studio.assemblrworld.com/creation/*","*.app-edu.assemblrworld.com/Creation/*","app-edu.assemblrworld.com/Creation/*","assemblr.world/*","editor.assemblrworld.com/*","*.assemblrworld.com/creation/*","*.assemblrworld.com/Creation/*"]],["api.audio.com/oembed",["audio.com/*","www.audio.com/*","audio.com/*","www.audio.com/*"]],["audioboom.com/publishing/oembed.{format}",["audioboom.com/channels/*","audioboom.com/channel/*","audioboom.com/playlists/*","audioboom.com/podcasts/*","audioboom.com/podcast/*","audioboom.com/posts/*","audioboom.com/episodes/*"]],["audioclip.naver.com/oembed",["audioclip.naver.com/channels/*/clips/*","audioclip.naver.com/audiobooks/*"]],["audiomack.com/oembed",["audiomack.com/*/song/*","audiomack.com/*/album/*","audiomack.com/*/playlist/*"]],["podcasts.audiomeans.fr/services/oembed",["podcasts.audiomeans.fr/*"]],["audiosfx.org/api/oembed",["audiosfx.org/audio/*","audiosfx.org/playlist/*"]],["audius.co/oembed",["audius.co/*"]],["backtracks.fm/oembed",["backtracks.fm/*/*/e/*","backtracks.fm/*/s/*/*","backtracks.fm/*/*/*/*/e/*/*","backtracks.fm/*","backtracks.fm/*"]],["balsamiq.cloud/oembed",["balsamiq.cloud/*"]],["www.beautiful.ai/api/oembed",[]],["api.bitchute.com/oembed/",[]],["blackfire.io/oembed",["blackfire.io/profiles/*/graph","blackfire.io/profiles/compare/*/graph"]],["blogcast.host/oembed",["blogcast.host/embed/*","blogcast.host/embedly/*"]],["embed.bsky.app/oembed",["bsky.app/profile/*/post/*"]],["bookingmood.com/api/oembed",["www.bookingmood.com/embed/*/*"]],["www.bornetube.dk/media/lasync/oembed/",["www.bornetube.dk/media/*","www.bornetube.dk/video/*"]],["api.boxofficebuz.com/v2/oembed",["boxofficebuz.com/embed/video/*"]],["oembed.brightcove.com/",["players.brightcove.net/*/*/index.html?videoId=*","players.brightcove.net/*/*/index.html?playlistId=*","bcove.video/*"]],["budgetpixel.com/oembed",["budgetpixel.com/p/*","budgetpixel.com/sfx/*","budgetpixel.com/background-music/*"]],["www.bumper.com/oembed/bumper",["www.bumper.com/oembed/bumper","www.bumper.com/oembed-s/bumper"]],["video.bunnycdn.com/OEmbed",["player.mediadelivery.net/*","player.mediadelivery.net/*","iframe.mediadelivery.net/*","iframe.mediadelivery.net/*","video.bunnycdn.com/*","video.bunnycdn.com/*"]],["buttondown.email/embed",["buttondown.email/*"]],["cmc.byzart.eu/oembed/",["cmc.byzart.eu/files/*"]],["cacoo.com/oembed.{format}",["cacoo.com/diagrams/*"]],["www.canva.com/_oembed",["www.canva.com/design/*/view"]],["carbon.music/oembed",["carbon.music/*","www.carbon.music/*"]],["carbonvoice.app/api/oembed",["carbonvoice.app/s/*","carbonvoice.app/m/*","carbonvoice.app/c/*"]],["castle.xyz/api/oembed",["castle.xyz/d/*"]],["castmake-ai.com/api/embed",["www.castmake-ai.com/c/*/episodes/*"]],["api.celero.io/api/oembed",["embeds.celero.io/*"]],["view.ceros.com/oembed",["view.ceros.com/*","view.ceros.com/*"]],["chanceindex.com/api/oembed",["chanceindex.com/odds/*"]],["embed.chartblocks.com/1.0/oembed",["public.chartblocks.com/c/*"]],["chroco.ooo/embed",["chroco.ooo/mypage/*","chroco.ooo/story/*"]],["www.circlezeroeight.com/api/oembed",["www.circlezeroeight.com/features/*","www.circlezeroeight.com/news/*","www.circlezeroeight.com/sport/*","www.circlezeroeight.com/style/*","www.circlezeroeight.com/culture/*"]],["www.circuitlab.com/circuit/oembed/",["www.circuitlab.com/circuit/*"]],["api.clipform.io/v1/oembed",["clipform.io/*"]],["www.clipland.com/api/oembed",["www.clipland.com/v/*","www.clipland.com/v/*"]],["clueso.site/api/oembed",["clueso.site/*"]],["api.clyp.it/oembed/",["clyp.it/*","clyp.it/playlist/*"]],["codehs.com/api/sharedprogram/1/oembed/",["codehs.com/editor/share_abacus/*"]],["codepen.io/api/oembed",["codepen.io/*","codepen.io/*"]],["codepoints.net/api/v1/oembed",["codepoints.net/*","codepoints.net/*","www.codepoints.net/*","www.codepoints.net/*"]],["codesandbox.io/oembed",["codesandbox.io/s/*","codesandbox.io/embed/*"]],["www.collegehumor.com/oembed.{format}",["www.collegehumor.com/video/*"]],["coloringmonster.com/oembed",["coloringmonster.com/coloring-page/*","coloringmonster.com/monsterpieces/*"]],["commaful.com/api/oembed/",["commaful.com/play/*"]],["coub.com/api/oembed.{format}",["coub.com/view/*","coub.com/embed/*"]],["crumb.sh/oembed/",["crumb.sh/*"]],["gql.cueup.io/oembed",["cueup.io/user/*/sounds/*"]],["api.curated.co/oembed",["*.curated.co/*"]],["dcalculators.com/oembed",["dcalculators.com/*/*/*/"]],["app.dadan.io/api/video/oembed",["app.dadan.io/*","stage.dadan.io/*"]],["www.dailymotion.com/services/oembed",["www.dailymotion.com/video/*","geo.dailymotion.com/player.html?video=*"]],["api.datawrapper.de/v3/oembed/",["datawrapper.dwcdn.net/*"]],["app.demofly.ai/api/oembed",["app.demofly.ai/s/*","demofly.ai/s/*"]],["embed.deseret.com/",["*.deseret.com/*"]],["backend.deviantart.com/oembed",["*.deviantart.com/art/*","*.deviantart.com/*#/d*","fav.me/*","sta.sh/*","*.deviantart.com/art/*","*.deviantart.com/*/art/*","sta.sh/*","*.deviantart.com/*#/d*"]],["www.ultimedia.com/api/search/oembed",["www.ultimedia.com/central/video/edit/id/*/topic_id/*/","www.ultimedia.com/default/index/videogeneric/id/*/showtitle/1/viewnc/1","www.ultimedia.com/default/index/videogeneric/id/*"]],["www.docdroid.net/api/oembed",["*.docdroid.net/*","*.docdroid.net/*","docdro.id/*","docdro.id/*","*.docdroid.com/*","*.docdroid.com/*"]],["www.docswell.com/service/oembed",["docswell.com/s/*/*","docswell.com/s/*/*","www.docswell.com/s/*/*","www.docswell.com/s/*/*"]],["api.www.documentcloud.org/api/oembed",["www.documentcloud.org/documents/*"]],["dotsub.com/services/oembed",["dotsub.com/view/*"]],["dreambroker.com/channel/oembed",["www.dreambroker.com/channel/*/*"]],["api.d.tube/oembed",["d.tube/v/*"]],["ecency.com/api/oembed",["ecency.com/@*/*","ecency.com/*/@*/*"]],["www.edumedia-sciences.com/oembed.json",[]],["www.edumedia-sciences.com/oembed.xml",[]],["egliseinfo.catholique.fr/api/oembed",["egliseinfo.catholique.fr/*"]],["electiontracker.eu/oembed",["electiontracker.eu/*"]],["elevenlabs.io/next/oembed",["elevenlabs.io/*"]],["www.embases.com/api/oembed",["www.embases.com/e/*"]],["embedery.com/api/oembed",["embedery.com/widget/*"]],["ethfiddle.com/services/oembed/",["ethfiddle.com/*"]],["evt.live/api/oembed",["evt.live/*","evt.live/*/*","live.eventlive.pro/*","live.eventlive.pro/*/*"]],["api.everviz.com/oembed",["app.everviz.com/embed/*","app.everviz.com/embed/*"]],["cdn.everwall.com/hubs/oembed",["cdn.everwall.com/hubs/iframe/*"]],["everypage.co/oembed",["everypage.co/*"]],["graph.facebook.com/v16.0/oembed_post",["www.facebook.com/*/posts/*","www.facebook.com/*/activity/*","www.facebook.com/*/photos/*","www.facebook.com/photo.php?fbid=*","www.facebook.com/photos/*","www.facebook.com/permalink.php?story_fbid=*","www.facebook.com/media/set?set=*","www.facebook.com/questions/*","www.facebook.com/notes/*/*/*"]],["graph.facebook.com/v16.0/oembed_video",["www.facebook.com/*/videos/*","www.facebook.com/video.php?id=*","www.facebook.com/video.php?v=*"]],["graph.facebook.com/v16.0/oembed_page",["www.facebook.com/*"]],["faithlifetv.com/api/oembed",["faithlifetv.com/items/*","faithlifetv.com/items/resource/*/*","faithlifetv.com/media/*","faithlifetv.com/media/assets/*","faithlifetv.com/media/resource/*/*"]],["haus.fazen.co/api/oembed",["haus.fazen.co/embed/music/*"]],["www.figma.com/api/oembed",["www.figma.com/file/*","www.figma.com/design/*","www.figma.com/board/*","www.figma.com/slides/*","www.figma.com/buzz/*","www.figma.com/site/*","www.figma.com/make/*"]],["app.filestage.io/oembed",["app.filestage.io/step/**"]],["www.fireworktv.com/oembed",["*.fireworktv.com/*","*.fireworktv.com/embed/*/v/*"]],["www.fite.tv/oembed",["www.fite.tv/watch/*"]],["flat.io/services/oembed",["flat.io/score/*","*.flat.io/score/*"]],["www.flickr.com/services/oembed/",["*.flickr.com/photos/*","flic.kr/p/*","flic.kr/s/*","*.flickr.com/photos/*","flic.kr/p/*","flic.kr/s/*","*.*.flickr.com/*/*","*.*.flickr.com/*/*"]],["app.flourish.studio/api/v1/oembed",["public.flourish.studio/visualisation/*","public.flourish.studio/story/*"]],["flowhub.org/o/embed",["flowhub.org/f/*","flowhub.org/s/*"]],["forms.form-data.com/api/oembed",["forms.form-data.com/*"]],["fiso.foxsports.com.au/oembed",["fiso.foxsports.com.au/isomorphic-widget/*","fiso.foxsports.com.au/isomorphic-widget/*"]],["framatube.org/services/oembed",["framatube.org/w/*"]],["api.framer.com/web/oembed",["framer.com/share/*","framer.com/embed/*"]],["framerate.tv/api/oembed",["framerate.tv/watch/*"]],["frequencing.com/api/oembed",["frequencing.com/track/*","frequencing.com/post/*","frequencing.com/user/*/playlists/*"]],["fritube.ch/services/oembed",["fritube.ch/v/*"]],["geometryviewer.com/oembed",["geometryviewer.com/v/*","www.geometryviewer.com/v/*"]],["embed.gettyimages.com/oembed",["gty.im/*"]],["gigngo.org/oembed",["gigngo.org/watch/*","gigngo.org/embed/*"]],["giphy.com/services/oembed",["giphy.com/gifs/*","giphy.com/clips/*","gph.is/*","media.giphy.com/media/*/giphy.gif"]],["gloria.tv/oembed/",[]],["embed.gmetri.com/oembed/",["view.gmetri.com/*","*.gmetri.com/*"]],["app.gong.io/oembed",["app.gong.io/call?id=*"]],["www.good-for-job.jp/api/oembed",["www.good-for-job.jp/slides/*"]],["api.grain.com/_/api/oembed",["grain.co/highlight/*","grain.co/share/*","grain.com/share/*"]],["api.gumlet.com/v1/oembed",["gumlet.tv/watch/*","play.gumlet.io/embed/*"]],["gw2fashions.com/fashion/oembed",["gw2fashions.com/fashion/*"]],["api.gyazo.com/api/oembed",["gyazo.com/*"]],["api.hash.ai/oembed",["core.hash.ai/@*"]],["hearthis.at/oembed/?format=json",["hearthis.at/*/*/","hearthis.at/*/set/*/"]],["heyzine.com/api1/oembed",["heyzine.com/flip-book/*","*.hflip.co/*","*.aflip.in/*"]],["player.hihaho.com/services/oembed",["player.hihaho.com/*"]],["www.hippovideo.io/services/oembed",["*.hippovideo.io/*","*.hippovideo.io/*"]],["app.hivo.com.au/api/drupal/oembed",["cdn.hivo.com.au/*","cdn.digital-assets.uq.edu.au/*","cdn.southerndesigngroup.com/*","freedom.hivocdn.com/*","cdn.cockburn.wa.gov.au/*","cdn.somnomed.com/*","cdn.snowtunnel.com/*","cdn.brenclosures.com.au/*"]],["homey.app/api/oembed/flow",["homey.app/f/*","homey.app/*/flow/*"]],["huffduffer.com/oembed",["huffduffer.com/*/*"]],["www.hulu.com/api/oembed.{format}",["www.hulu.com/watch/*"]],["api.icosa.gallery/v1/oembed",["icosa.gallery/view/*"]],["oembed.ideamapper.com/oembed",["oembed.ideamapper.com/*"]],["oembed.idomoo.com/oembed",["*.idomoo.com/*"]],["www.ifixit.com/Embed",["www.ifixit.com/Guide/View/*"]],["www.ifttt.com/oembed/",["ifttt.com/recipes/*"]],["app.ignitevideo.cloud/api/oembed",["*.videocdn.net/player/*","*.euvideocdn.com/player/*"]],["www.iheart.com/oembed",["www.iheart.com/podcast/*/*"]],["qr.imenupro.com/api/oembed",["qr.imenupro.com/*","qr.imenupro.com/*"]],["player.indacolive.com/services/oembed",["player.indacolive.com/player/jwp/clients/*"]],["infogram.com/oembed",["infogram.com/*"]],["infoveave.net/services/oembed/",["*.infoveave.net/E/*","*.infoveave.net/P/*"]],["www.injurymap.com/services/oembed",["www.injurymap.com/exercises/*"]],["www.inoreader.com/oembed/api/",["www.inoreader.com/oembed/"]],["widgets.insighttimer.com/services/oembed",["insighttimer.com/*"]],["graph.facebook.com/v16.0/instagram_oembed",["instagram.com/*/p/*","www.instagram.com/*/p/*","instagram.com/*/p/*","www.instagram.com/*/p/*","instagram.com/p/*","instagr.am/p/*","www.instagram.com/p/*","www.instagr.am/p/*","instagram.com/p/*","instagr.am/p/*","www.instagram.com/p/*","www.instagr.am/p/*","instagram.com/tv/*","instagr.am/tv/*","www.instagram.com/tv/*","www.instagr.am/tv/*","instagram.com/tv/*","instagr.am/tv/*","www.instagram.com/tv/*","www.instagr.am/tv/*","www.instagram.com/reel/*","www.instagram.com/reel/*","instagram.com/reel/*","instagram.com/reel/*","instagr.am/reel/*","instagr.am/reel/*"]],["www.insticator.com/oembed",["ppa.insticator.com/embed-unit/*"]],["issuu.com/oembed",["issuu.com/*/docs/*"]],["samay.itabtechinfosys.com/oembed/",["samay.itabtechinfosys.com/*"]],["api.jawafdehi.org/oembed/",["jawafdehi.org/case/*"]],["api.jovian.com/oembed.json",["jovian.ml/*","jovian.ml/viewer*","*.jovian.ml/*","jovian.ai/*","jovian.ai/viewer*","*.jovian.ai/*","jovian.com/*","jovian.com/viewer*","*.jovian.com/*"]],["play.juntos.live/api/oembed",["play.juntos.live/solo/*","play.juntos.live/host/quiz/*"]],["www.justspin.cc/api/oembed",["www.justspin.cc/workouts/*"]],["keystonepractice.co/api/oembed",["keystonepractice.co/tools/*","keystonepractice.co/embed/*"]],["www.kickstarter.com/services/oembed",["www.kickstarter.com/projects/*"]],["halaman.email/service/oembed",["halaman.email/form/*","aplikasi.kirim.email/form/*"]],["kommodo.ai/api/oembed",["kommodo.ai/recordings/*","kommodo.ai/guides/*"]],["kubit.ai/services/oembed",["kubit.ai/*","*.kubit.ai/*"]],["kurozora.app/oembed",["kurozora.app/episodes/*","kurozora.app/songs/*"]],["api.landofassets.com/oembed",["landofassets.com/*","landofassets.com/*/assets","landofassets.com/*/assets/*","landofassets.com/*/assets/*/embed"]],["laude.org/api/oembed",["laude.org/impact/*","laude.org/im/*"]],["learningapps.org/oembed.php",["learningapps.org/*"]],["pod.univ-lille.fr/video/oembed",["pod.univ-lille.fr/video/*"]],["place.line.me/oembed",["place.line.me/businesses/*"]],["api.linkstackz.com/oembed",["linkstackz.com/irf/*","linkstackz.com/post/*"]],["livecodes.io/oembed",["livecodes.io/","livecodes.io/?*","*.livecodes.io/","*.livecodes.io/?*"]],["livid.com/oembed",["livid.com/watch/*"]],["www.loom.com/v1/oembed",["loom.com/i/*","loom.com/share/*"]],["embed.lottiefiles.com/oembed",["lottiefiles.com/*","*.lottiefiles.com/*","*.lottie.host/*","lottie.host/*"]],["app.ludus.one/oembed",["app.ludus.one/*"]],["admin.lumiere.is/api/services/oembed",["*.lumiere.is/v/*"]],["api.marbellawire.com/oembed",["marbellawire.com/*"]],["marimo.app/oembed",["marimo.app/*"]],["my.matterport.com/api/v1/models/oembed/",[]],["mdstrm.com/oembed",["mdstrm.com/embed/*","mdstrm.com/live-stream/*","mdstrm.com/image/*"]],["medienarchiv.zhdk.ch/oembed.{format}",["medienarchiv.zhdk.ch/entries/*","zhdk.medienarchiv.ch/entries/*"]],["web.microsoftstream.com/oembed",["*.microsoftstream.com/video/*","*.microsoftstream.com/channel/*"]],["mirame360.com/api/oembed/",["mirame360.com/embed/*","mirame360.com/embed/tour/*","mirame360.com/video/url/*","mirame360.com/tour/*","mirame360.com/user/*/media/*"]],["miro.com/api/v1/oembed",["miro.com/app/board/*"]],["miro.com/video-player/oembed",["miro.com/video-player/*"]],["www.mixcloud.com/oembed/",["www.mixcloud.com/*/*/","www.mixcloud.com/*/*/"]],["mixpanel.com/api/app/embed/oembed/",["mixpanel.com/*","*.mixpanel.com/*"]],["musicboxmaniacs.com/embed/",["musicboxmaniacs.com/explore/melody/*"]],["mybeweeg.com/services/oembed",["mybeweeg.com/w/*"]],["api.mysqlexplain.com/v2/oembed.json",["mysqlexplain.com/explain/*","embed.mysqlexplain.com/explain/*"]],["namchey.com/api/oembed",["namchey.com/embeds/*"]],["www.nanoo.tv/services/oembed",["*.nanoo.tv/link/*","nanoo.tv/link/*","*.nanoo.pro/link/*","nanoo.pro/link/*","*.nanoo.tv/link/*","nanoo.tv/link/*","*.nanoo.pro/link/*","nanoo.pro/link/*","media.zhdk.ch/signatur/*","new.media.zhdk.ch/signatur/*","media.zhdk.ch/signatur/*","new.media.zhdk.ch/signatur/*"]],["api.nb.no/catalog/v1/oembed",["www.nb.no/items/*"]],["naturalatlas.com/oembed.{format}",["naturalatlas.com/*","naturalatlas.com/*/*","naturalatlas.com/*/*/*","naturalatlas.com/*/*/*/*"]],["m.naver.com/shorts/oEmbed",["naver.me/*","m.naver.com/shorts/*"]],["ndla.no/oembed",["ndla.no/*","ndla.no/article/*","ndla.no/audio/*","ndla.no/concept/*","ndla.no/image/*","ndla.no/video/*"]],["nebula.tv/api/oembed",["nebula.tv/videos/*"]],["beta.nebula.tv/api/oembed",["beta.nebula.tv/videos/*"]],["cloud.needle.tools/oembed",["cloud.needle.tools/-/assets/*/file","cloud.needle.tools/view?file=*","*.needle.run/*"]],["api.neetorecord.com/api/v1/oembed",["*.neetorecord.com/watch/*"]],["www.nfb.ca/remote/services/oembed/",["*.nfb.ca/film/*"]],["nouncify.com/api/oembed",["nouncify.com/i/*","nouncify.com/brand/*","nouncify.com/e/*","sandbox.nouncify.com/i/*","sandbox.nouncify.com/brand/*","sandbox.nouncify.com/e/*"]],["api.observablehq.com/oembed",["observablehq.com/@*/*","observablehq.com/d/*","observablehq.com/embed/*"]],["www.odds.com.au/api/oembed/",["www.odds.com.au/*","odds.com.au/*"]],["song.link/oembed",["song.link/*","album.link/*","artist.link/*","playlist.link/*","pods.link/*","mylink.page/*","odesli.co/*"]],["odysee.com/$/oembed",["odysee.com/*/*","odysee.com/*"]],["official.fm/services/oembed.{format}",["official.fm/tracks/*","official.fm/playlists/*"]],["omniscope.me/_global_/oembed/json",["omniscope.me/*"]],["omny.fm/oembed",["omny.fm/shows/*"]],["orbitvu.co/service/oembed",["orbitvu.co/001/*/ov3601/view","orbitvu.co/001/*/ov3601/*/view","orbitvu.co/001/*/ov3602/*/view","orbitvu.co/001/*/2/orbittour/*/view","orbitvu.co/001/*/1/2/orbittour/*/view","orbitvu.co/001/*/ov3601/view","orbitvu.co/001/*/ov3601/*/view","orbitvu.co/001/*/ov3602/*/view","orbitvu.co/001/*/2/orbittour/*/view","orbitvu.co/001/*/1/2/orbittour/*/view"]],["origits.net/oembed",["origits.com/v/*"]],["origits.com/oembed",["origits.com/v/*"]],["embed.orizn.app/api/oembed",["embed.orizn.app/frame/*","embed.orizn.app/widgets/*"]],["outplayed.tv/oembed",["outplayed.tv/media/*"]],["overflow.io/services/oembed",["overflow.io/s/*","overflow.io/embed/*"]],["padlet.com/oembed/",["padlet.com/*"]],["api-v2.pandavideo.com.br/oembed",["*.tv.pandavideo.com.br/embed/?v=*","*.tv.pandavideo.com.br/*/playlist.m3u8","dashboard.pandavideo.com.br/#/videos/*"]],["app.parler.com/oembed",["app.parler.com/post/*","app.parler.com/b/*"]],["app.parta.io/core/oembed",["app.parta.io/core/embed/*","*.parta.io/core/embed/*"]],["www.pastery.net/oembed",["pastery.net/*","pastery.net/*","www.pastery.net/*","www.pastery.net/*"]],["peertube.tv/services/oembed",["peertube.tv/w/*"]],["tools.pinpoll.com/oembed",["tools.pinpoll.com/embed/*"]],["www.pinterest.com/oembed.json",["www.pinterest.com/*"]],["player.pitchhub.com/en/public/oembed",["player.pitchhub.com/en/public/player/*"]],["store.pixdor.com/oembed",["store.pixdor.com/place-marker-widget/*/show","store.pixdor.com/map/*/show"]],["plinth.it/model-viewer/oembed",["plinth.it/model-viewer/*/*"]],["app.plusdocs.com/oembed",["app.plusdocs.com/*/snapshots/*","app.plusdocs.com/*/pages/edit/*","app.plusdocs.com/*/pages/share/*"]],["api.podbean.com/v1/oembed",["*.podbean.com/e/*","*.podbean.com/e/*"]],["polldaddy.com/oembed/",["*.polldaddy.com/s/*","*.polldaddy.com/poll/*","*.polldaddy.com/ratings/*"]],["api.portfolium.com/oembed",["portfolium.com/entry/*"]],["prezi.com/v/oembed",["prezi.com/v/*","*.prezi.com/v/*"]],["puzzel.org/api/oembed",["puzzel.org/*/*/play?p=*","puzzel.org/*/*/embed?p=*"]],["www.pyzia.app/api/oembed",["www.pyzia.app/dashboard?*","pyzia.app/dashboard?*","www.pyzia.app/embed/chart?*","pyzia.app/embed/chart?*"]],["qtpi.gg/fashion/oembed",["qtpi.gg/fashion/*"]],["web.quartr.com/api/oembed",["quartr.com/*","web.quartr.com/*"]],["quellensuche.de/api/oembed",["quellensuche.de/*"]],["www.quiz.biz/api/oembed",["www.quiz.biz/quizz-*.html"]],["www.quizz.biz/api/oembed",["www.quizz.biz/quizz-*.html"]],["animatron.com/oembed",["www.rcvis.com/v/*","www.rcvis.com/visualize=*","www.rcvis.com/ve/*","www.rcvis.com/visualizeEmbedded=*"]],["www.reddit.com/oembed",["reddit.com/r/*/comments/*/*","www.reddit.com/r/*/comments/*/*"]],["redlof-medien.de/wp-json/oembed/1.0/embed",["redlof-medien.de/*","www.redlof-medien.de/*"]],["api.wexcreator.com/oembed/",["show.wexcreator.com/*","showroom.redlof-medien.de/*"]],["publisher.releasewire.com/oembed/",["rwire.com/*"]],["replit.com/data/oembed",["repl.it/@*/*","replit.com/@*/*"]],["www.reverbnation.com/oembed",["www.reverbnation.com/*","www.reverbnation.com/*/songs/*"]],["risky.biz/oembed",["risky.biz/*"]],["roosterteeth.com/oembed",["roosterteeth.com/*"]],["rumble.com/api/Media/oembed.{format}",["rumble.com/*","rumble.com/shorts/*"]],["api.rushes.cc/oembed",["www.rushes.cc/video/*","www.rushes.cc/embed/*","rushes.cc/video/*","rushes.cc/embed/*"]],["app2.sagenverse.com/oembed",["app2.sagenverse.com/embed/*"]],["octopus.saooti.com/oembed",["octopus.saooti.com/main/pub/podcast/*"]],["www.satcat.com/api/sats/oembed",["www.satcat.com/sats/*"]],["api.satoplayer.com/players/oembed",["api.satoplayer.com/players/embed/*"]],["sbedit.net/oembed/",["sbedit.net/*"]],["app.scibly.com/api/oembed",["app.scibly.com/public/courses/*","app.scibly.com/embed/courses/*","app.scibly.com/en/public/courses/*","app.scibly.com/en/embed/courses/*","app.scibly.com/de/public/courses/*","app.scibly.com/de/embed/courses/*"]],["api.screen9.com/oembed",["console.screen9.com/*","*.screen9.tv/*"]],["api.screencast.com/external/oembed",["www.screencast.com/*"]],["www.screenr.com/api/oembed.{format}",["www.screenr.com/*/"]],["scribblemaps.com/api/services/oembed.{format}",["www.scribblemaps.com/maps/view/*","www.scribblemaps.com/maps/view/*","scribblemaps.com/maps/view/*","scribblemaps.com/maps/view/*"]],["www.scribd.com/services/oembed/",["www.scribd.com/doc/*"]],["embed.sendtonews.com/services/oembed",["embed.sendtonews.com/oembed/*"]],["shared-file-kappa.vercel.app/file/api/oembed",["shared-file-kappa.vercel.app/file/*"]],["shoudio.com/api/oembed",["shoudio.com/*","shoud.io/*"]],["api.getshow.io/oembed.{format}",["app.getshow.io/iframe/*","*.getshow.io/share/*"]],["showtheway.io/oembed",["showtheway.io/to/*"]],["simplecast.com/oembed",["simplecast.com/s/*"]],["graphql.sketch.cloud/embed/oembed",["www.sketch.com/s/*","www.sketch.com/preview/*"]],["sketchfab.com/oembed",["sketchfab.com/*models/*","sketchfab.com/*models/*","sketchfab.com/*/folders/*"]],["skhema.com/api/oembed",["skhema.com/embed/e/*","skhema.com/embed/c/*"]],["www.skoletube.dk/media/lasync/oembed/",["www.skoletube.dk/media/*","www.skoletube.dk/video/*","www.studietube.dk/media/*","www.studietube.dk/video/*"]],["slidesfly.com/api/oembed",["slidesfly.xyz/d/*"]],["www.slideshare.net/api/oembed/2",["www.slideshare.net/*/*","www.slideshare.net/*/*","fr.slideshare.net/*/*","fr.slideshare.net/*/*","de.slideshare.net/*/*","de.slideshare.net/*/*","es.slideshare.net/*/*","es.slideshare.net/*/*","pt.slideshare.net/*/*","pt.slideshare.net/*/*"]],["smashnotes.com/services/oembed",["smashnotes.com/p/*","smashnotes.com/p/*/e/*-smashnotes.com/p/*/e/*/s/*"]],["api.smugmug.com/services/oembed/",["*.smugmug.com/*","*.smugmug.com/*"]],["www.socialexplorer.com/services/oembed/",["www.socialexplorer.com/*/explore","www.socialexplorer.com/*/view","www.socialexplorer.com/*/edit","www.socialexplorer.com/*/embed"]],["openapi.sooplive.com/oembed/embedinfo",["vod.sooplive.com/player/","v.afree.ca/ST/","vod.sooplive.com/ST/","vod.sooplive.com/PLAYER/STATION/","play.sooplive.com/"]],["soundcloud.com/oembed",["soundcloud.com/*","soundcloud.com/*","on.soundcloud.com/*","soundcloud.app.goog.gl/*"]],["speakerdeck.com/oembed.json",["speakerdeck.com/*/*","speakerdeck.com/*/*"]],["open.spotify.com/oembed",["open.spotify.com/*","spotify:*","spotify.link/*"]],["api.spotlightr.com/getOEmbed",["*.spotlightr.com/watch/*","*.spotlightr.com/publish/*","*.cdn.spotlightr.com/watch/*","*.cdn.spotlightr.com/publish/*"]],["api.spreaker.com/oembed",["*.spreaker.com/*","*.spreaker.com/*"]],["sproutvideo.com/oembed.{format}",["sproutvideo.com/videos/*","*.vids.io/videos/*"]],["api.spyke.social/embed/oembed",["spyke.social/p/*","spyke.social/u/*","spyke.social/g/*","spyke.social/c/*","spyke.social/p/*","spyke.social/u/*","spyke.social/g/*","spyke.social/c/*","www.spyke.social/p/*","www.spyke.social/u/*","www.spyke.social/g/*","www.spyke.social/c/*","www.spyke.social/p/*","www.spyke.social/u/*","www.spyke.social/g/*","www.spyke.social/c/*"]],["purl.stanford.edu/embed.{format}",["purl.stanford.edu/*"]],["www.stem.fm/oembed",["stem.fm/session/*","www.stem.fm/session/*","stem.fm/s/*","www.stem.fm/s/*"]],["api.streamable.com/oembed.json",["streamable.com/*","streamable.com/*"]],["streamio.com/api/v1/oembed",["s3m.io/*","23m.io/*"]],["oembed.streetartcities.com/oembed",["streetartcities.com/markers/*"]],["www.sudomemo.net/oembed",["www.sudomemo.net/watch/*","www.sudomemo.net/watch/*","archive.sudomemo.net/watch/*","archive.sudomemo.net/watch/*","flipnot.es/*","flipnot.es/*"]],["supercut.ai/oembed",["supercut.ai/share/*"]],["www.sutori.com/api/oembed",["www.sutori.com/story/*"]],["sway.com/api/v1.0/oembed",["sway.com/*","www.sway.com/*"]],["sway.office.com/api/v1.0/oembed",["sway.office.com/*"]],["synthcamp.net/api/oembed",["synthcamp.net/r/*"]],["69jr5v75rc.execute-api.eu-west-1.amazonaws.com/prod/v2/oembed",["share.synthesia.io/*"]],["techpostcast.com/oembed/",["techpostcast.com/headline-topic-programs/*"]],["www.ted.com/services/v1/oembed.{format}",["ted.com/talks/*","ted.com/talks/*","www.ted.com/talks/*","www.ted.com/talks/*","embed.ted.com/talks/*"]],["tegula.io/api/oembed/",["tegula.io/m/*","www.tegula.io/m/*","tegula.io/c/*","www.tegula.io/c/*","tegula.io/cat.html?model=*","www.tegula.io/cat.html?model=*"]],["www.tella.tv/api/oembed",["www.tella.tv/video/*","tella.video/*"]],["rest-prod.tenet.textexpander.com/oembed",["rest-prod.tenet.textexpander.com/share/*"]],["hubspot-media-bridge.thedamconsultants.com/oembed/",["hubspot-media-bridge.thedamconsultants.com/*"]],["www.nytimes.com/svc/oembed/json/",["www.nytimes.com/svc/oembed","nytimes.com/*","*.nytimes.com/*"]],["theysaidso.com/extensions/oembed/",["theysaidso.com/image/*"]],["www.tickcounter.com/oembed",["www.tickcounter.com/widget/*","www.tickcounter.com/countdown/*","www.tickcounter.com/countup/*","www.tickcounter.com/ticker/*","www.tickcounter.com/clock/*","www.tickcounter.com/worldclock/*","www.tickcounter.com/embed/*","www.tickcounter.com/full/*","www.tickcounter.com/widget/*","www.tickcounter.com/countdown/*","www.tickcounter.com/countup/*","www.tickcounter.com/ticker/*","www.tickcounter.com/clock/*","www.tickcounter.com/worldclock/*","www.tickcounter.com/embed/*","www.tickcounter.com/full/*"]],["www.tiktok.com/oembed",["www.tiktok.com/*","www.tiktok.com/*/video/*"]],["tksn.me/api/oembed/",["tksn.me/*","*.tksn.me/*"]],["tlexdr.com/oembed",["tlexdr.com/episode/*"]],["tonicaudio.com/oembed",["tonicaudio.com/take/*","tonicaudio.com/song/*","tnic.io/song/*","tnic.io/take/*"]],["widget.toornament.com/oembed",["www.toornament.com/tournaments/*/information","www.toornament.com/tournaments/*/registration/","www.toornament.com/tournaments/*/matches/schedule","www.toornament.com/tournaments/*/stages/*/"]],["www.topy.se/oembed/",["www.topy.se/image/*"]],["app-test.totango.com/oembed",["app-test.totango.com/*"]],["trackspace.upitup.com/oembed",["trackspace.upitup.com/*"]],["trinitymedia.ai/services/oembed",["trinitymedia.ai/player/*","trinitymedia.ai/player/*/*","trinitymedia.ai/player/*/*/*"]],["trycli.com/api/oembed",["trycli.com/e/*","trycli.com/*/*"]],["www.tumblr.com/oembed/1.0",["*.tumblr.com/post/*"]],["tuvelia.com/oembed",["tuvelia.com/embed/*","www.tuvelia.com/embed/*"]],["www.tuxx.be/services/oembed",["www.tuxx.be/*"]],["play.tvcf.co.kr/rest/oembed",["play.tvcf.co.kr/*","*.tvcf.co.kr/*"]],["twinmotion.unrealengine.com/oembed",["twinmotion.unrealengine.com/presentation/*","twinmotion.unrealengine.com/panorama/*"]],["publish.twitter.com/oembed",["twitter.com/*","twitter.com/*/status/*","*.twitter.com/*/status/*"]],["play.typecast.ai/oembed",["play.typecast.ai/s/*","play.typecast.ai/e/*","play.typecast.ai/*"]],["typlog.com/oembed",[]],["u-poll.com/oembed",["u-poll.com/p/*"]],["uapod.univ-antilles.fr/oembed",["uapod.univ-antilles.fr/video/*"]],["map.cam.ac.uk/oembed/",["map.cam.ac.uk/*"]],["mediatheque.univ-paris1.fr/oembed",["mediatheque.univ-paris1.fr/video/*"]],["pod.u-pec.fr/oembed",["pod.u-pec.fr/video/*"]],["www.ustream.tv/oembed",["*.ustream.tv/*","*.ustream.com/*"]],["app.ustudio.com/api/v2/oembed",["*.ustudio.com/embed/*","*.ustudio.com/embed/*/*"]],["vectree.io/api/oembed",["vectree.io/c/*","vectree.io/c/*"]],["www.vevo.com/oembed",["www.vevo.com/*","www.vevo.com/*"]],["videfit.com/oembed",["videfit.com/videos/*"]],["videobot.com/embed/oembed",["videobot.com/embed/*"]],["www.vidlink.it/api/oembed",["vidlink.it/videos/*","www.vidlink.it/videos/*"]],["vidmount.com/oembed",["vidmount.com/*"]],["api.vidyard.com/dashboard/v1.1/oembed",["*.vidyard.com/*","*.vidyard.com/*","*.hubs.vidyard.com/*","*.hubs.vidyard.com/*"]],["vimeo.com/api/oembed.{format}",["vimeo.com/*","vimeo.com/album/*/video/*","vimeo.com/channels/*/*","vimeo.com/groups/*/videos/*","vimeo.com/ondemand/*/*","player.vimeo.com/video/*","vimeo.com/event/*/*"]],["play.viostream.com/oembed",["share.viostream.com/*"]],["www.viously.com/oembed",["www.viously.com/*/*"]],["vizdom.dev/api/v1/oembed",["vizdom.dev/link/*"]],["vizzlo.com/oembed",["vizzlo.com/d/*","vizzlo.com/share/*","vizzlo.com/embed/*"]],["eu.vizzlo.com/oembed",["eu.vizzlo.com/d/*","eu.vizzlo.com/share/*","eu.vizzlo.com/embed/*"]],["vlipsy.com/oembed",["vlipsy.com/*"]],["www.vlive.tv/oembed",["www.vlive.tv/video/*"]],["embed.vouchfor.com/v1/oembed",["*.vouchfor.com/*"]],["data.voxsnap.com/oembed",["article.voxsnap.com/*/*"]],["watchpeoplefight.com/api/oembed",["watchpeoplefight.com/watch/*"]],["embed.wave.video/oembed",["watch.wave.video/*","embed.wave.video/*"]],["www.web3isgoinggreat.com/api/oembed",["www.web3isgoinggreat.com/?id=*","www.web3isgoinggreat.com/single/*","www.web3isgoinggreat.com/embed/*"]],["play.wecandeo.com/oembed/",["play.wecandeo.com/video/v/*"]],["www.wewtalk.com/api/oembed",["www.wewtalk.com/voice/*","wewtalk.com/voice/*"]],["whimsical.com/api/oembed",["whimsical.com/*","whimsical.com/*/*"]],["api.whyp.it/api/oembed",["whyp.it/tracks/*","whyp.it/collections/*","www.whyp.it/tracks/*","www.whyp.it/collections/*"]],["www.wikitolica.com/oembed",["www.wikitolica.com/*/*/"]],["fast.wistia.com/oembed.{format}",["fast.wistia.com/embed/iframe/*","fast.wistia.com/embed/playlists/*","*.wistia.com/medias/*","*.wistia.com/s/*"]],["app.wizer.me/api/oembed.{format}",["*.wizer.me/learn/*","*.wizer.me/preview/*"]],["wokwi.com/api/oembed",["wokwi.com/share/*"]],["www.wolframcloud.com/oembed",["*.wolframcloud.com/*"]],["public-api.wordpress.com/oembed/",["wordpress.com/*","wordpress.com/*","*.wordpress.com/*","*.wordpress.com/*","*.*.wordpress.com/*","*.*.wordpress.com/*","wp.me/*","wp.me/*"]],["wppaste.com/api/oembed",["wppaste.com/p/*"]],["publish.x.com/oembed",["x.com/*","x.com/*/status/*","*.x.com/*/status/*"]],["www.youtube.com/oembed",["*.youtube.com/watch*","*.youtube.com/v/*","youtu.be/*","*.youtube.com/playlist?list=*","youtube.com/playlist?list=*","*.youtube.com/shorts*","youtube.com/shorts*","*.youtube.com/embed/*","*.youtube.com/live*","youtube.com/live*"]],["www.yumpu.com/services/oembed",["www.yumpu.com/*/document/view/*/*"]],["app.zeplin.io/embed",["app.zeplin.io/project/*/screen/*","app.zeplin.io/project/*/screen/*/version/*","app.zeplin.io/project/*/styleguide/components?coid=*","app.zeplin.io/styleguide/*/components?coid=*"]],["app.zingsoft.com/oembed",["app.zingsoft.com/embed/*","app.zingsoft.com/view/*"]],["api.znipe.tv/v3/oembed/",["*.znipe.tv/*"]],["srv2.zoomable.ca/oembed",["srv2.zoomable.ca/viewer.php*"]]]')})),a("1fvgI");
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script src="./index.8890ab2e.js"></script><script defer type="module" src="./index.
|
|
1
|
+
<!DOCTYPE html><html><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script src="./index.8890ab2e.js"></script><script defer type="module" src="./index.daa27579.js"></script><script defer src="./index.77ec564b.js" nomodule></script><script defer type="module" src="./index.e9044607.js"></script><script defer src="./index.7b992841.js" nomodule></script><script defer type="module" src="./index.207f6fbe.js"></script><script defer src="./index.b841a13b.js" nomodule></script><script defer type="module" src="./index.b86d452b.js"></script><script defer src="./index.236b6f39.js" nomodule></script><script defer type="module" src="./index.c6b0ddb7.js"></script><script defer src="./index.7ab099ae.js" nomodule></script><script defer type="module" src="./index.ff48c76f.js"></script><script defer src="./index.ecd8f2b1.js" nomodule></script><script defer type="module" src="./index.6d17c2da.js"></script><script defer src="./index.931d5a80.js" nomodule></script><script defer type="module" src="./index.aa26d311.js"></script><script defer src="./index.4ae92b65.js" nomodule></script><script defer type="module" src="./index.9ecf099d.js"></script><script defer src="./index.638c2ff6.js" nomodule></script><link rel="icon shortcut" sizes="192x192" href="./up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="./up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="./logo.8a716d9b.png"><link rel="icon" href="./logo.8a716d9b.png" type="image/png"><style>.lds-dual-ring{width:150px;height:150px;display:inline-block}.lds-dual-ring:after{content:" ";width:128px;height:128px;border:5px solid #000;border-color:#000 #0000;border-radius:50%;margin:1px;animation:1.2s linear infinite lds-dual-ring;display:block}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}</style><link rel="stylesheet" href="./index.7892bde1.css"><link rel="stylesheet" href="./index.2a418dd8.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liascript/editor",
|
|
3
|
-
"version": "1.1.43--2.
|
|
3
|
+
"version": "1.1.43--2.1.1",
|
|
4
4
|
"author": "André Dietrich",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"description": "An extended Markdown interpreter for the creation of interactive online courses.",
|
|
@@ -128,5 +128,10 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@dragdroptouch/drag-drop-touch": "^2.0.3",
|
|
130
130
|
"pako": "^2.1.0"
|
|
131
|
+
},
|
|
132
|
+
"allowScripts": {
|
|
133
|
+
"elm@0.19.1-6": true,
|
|
134
|
+
"msgpackr-extract@3.0.2": true,
|
|
135
|
+
"lmdb": true
|
|
131
136
|
}
|
|
132
|
-
}
|
|
137
|
+
}
|
package/dist/Ably.140d23cc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){function e(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}var t=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequirea18f;t.register("bJyy2",(function(s,n){e(s.exports,"Sync",(function(){return a}));var i=t("9Xb5B"),o=t("3kYiM"),r=t("4nLZ9"),h=t("duJo0"),c=t("6LsB2");class a extends i.Sync{persistent=!1;syncFallbackTimer=null;destroy(){null!==this.syncFallbackTimer&&(clearTimeout(this.syncFallbackTimer),this.syncFallbackTimer=null),super.destroy(),this.provider?.disconnect()}async connect(e){super.connect(e),this.apiKey=e.config?.apiKey||void 0,this.persistent=e.config?.persistent||!1;const t=[];window.Ably||t.push("https://cdn.ably.com/lib/ably.min-2.js"),this.persistent&&!window.AblyLiveObjectsPlugin&&t.push("https://cdn.ably.com/lib/liveobjects.umd.min-2.js"),this.password&&!window.SimpleCrypto&&t.push(c.Crypto.url),0===t.length?this.init(!0):this.load(t,this)}init(e,t){if(!this.apiKey)return this.sendDisconnectError("You have to provide a valid API key");const s=this.uniqueID();if(e&&window.Ably&&s){this.password&&c.Crypto.init(this.password),this.transport=new(0,o.AblyTransport)({Realtime:window.Ably.Realtime,LiveObjects:this.persistent?window.AblyLiveObjectsPlugin:void 0,debug:!!window.LIA?.debug}),this.provider=new(0,r.GenericProvider)(this.db.doc,(0,h.wrapTransport)(this.transport,this.password,4)),this.db.setAwareness(this.provider.awareness,this.name);let e=!1;const t=()=>{e||(e=!0,null!==this.syncFallbackTimer&&(clearTimeout(this.syncFallbackTimer),this.syncFallbackTimer=null),this.sendConnect())};this.provider.on("synced",(e=>{console.log("Ably: document synchronized",e.synced),t()})),this.provider.on("status",(e=>{const s=e.state;console.log(`Ably status: ${s}`),"connected"===s?this.syncFallbackTimer=setTimeout((()=>{console.log("Ably: sync fallback, proceeding as first peer"),t()}),2e3):"disconnected"===s&&console.warn("Ably: disconnected")})),this.provider.connect({room:s,apiKey:this.apiKey,persistent:this.persistent,doc:this.persistent?this.db.doc:void 0,waitFor:this.persistReady,...this.password?{password:this.password}:{}})}else{let e="Ably unknown error";t?e="Could not load resource: "+t:window.Ably||(e="Could not load Ably SDK"),this.sendDisconnectError(e)}}}})),t.register("3kYiM",(function(s,n){e(s.exports,"AblyTransport",(function(){return d}));var i=t("j3EDv"),o=t("jmfTU");const r=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let s=t;for(let e=0;e<8;e++)s=1&s?3988292384^s>>>1:s>>>1;e[t]=s}return e})();function h(e){const t=function(e){let t=4294967295;for(let s=0;s<e.length;s++)t=t>>>8^r[255&(t^e[s])];return(4294967295^t)>>>0}(e),s=new Uint8Array(4+e.length);return s[0]=t>>>24&255,s[1]=t>>>16&255,s[2]=t>>>8&255,s[3]=255&t,s.set(e,4),s}function c(e){const t=atob(e),s=new Uint8Array(t.length);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return s}function a(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}const l="yjs-update",u=55e3;class d{constructor(e){this.client=null,this.channel=null,this.clientId="",this.channelName="",this._isConnected=!1,this.debug=!1,this.messageBuffer=[],this.chunkBuffer=new Map,this.persistentMode=!1,this.persistDoc=null,this.persistDebounceMs=2e3,this.isWritingSnapshot=!1,this.savePending=!1,this.snapshotLoaded=!1,this.liveRoot=null,this.opts=e}get isConnected(){return this._isConnected}async connect(e){if(this.debug=e.debug??this.opts.debug??!1,!e.apiKey&&!e.authUrl)throw new Error("AblyTransport: apiKey or authUrl is required");if(!e.room)throw new Error("AblyTransport: room name is required");if(this.persistentMode=e.persistent??!1,this.persistDoc=e.doc??null,this.persistDebounceMs=e.persistDebounceMs??2e3,this.persistentMode&&!this.persistDoc)throw new Error("AblyTransport: a Y.Doc must be provided via config.doc when persistent is true");if(this.persistentMode&&!this.opts.LiveObjects)throw new Error('AblyTransport: the "LiveObjects" plugin class must be provided via constructor options when persistent is true. import { LiveObjects } from "ably/liveobjects"; new AblyTransport({ Realtime, LiveObjects })');this.clientId=a(),this.channelName=e.password?`${e.room}-${await async function(e){const t=(new TextEncoder).encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,16)}(e.password)}`:e.room;const t={clientId:this.clientId,echoMessages:this.persistentMode};e.apiKey&&(t.key=e.apiKey),e.authUrl&&(t.authUrl=e.authUrl),e.authMethod&&(t.authMethod=e.authMethod),this.persistentMode&&(t.plugins={LiveObjects:this.opts.LiveObjects}),this.log("Connecting as",this.clientId,"to channel",this.channelName),this.client=new this.opts.Realtime(t),this.channel=this.persistentMode?this.client.channels.get(this.channelName,{modes:["PUBLISH","SUBSCRIBE","PRESENCE","PRESENCE_SUBSCRIBE","OBJECT_PUBLISH","OBJECT_SUBSCRIBE"]}):this.client.channels.get(this.channelName),await new Promise(((e,t)=>{const s=setTimeout((()=>{t(new Error("Ably connection timeout"))}),1e4);this.client.connection.once("connected",(()=>{clearTimeout(s),this._isConnected=!0,this.log("Connected to Ably"),e()})),this.client.connection.on("failed",(e=>{clearTimeout(s),t(new Error(`Ably connection failed: ${e?.reason?.message??"unknown error"}`))})),this.client.connection.on("suspended",(()=>{this.log("Connection suspended"),this._isConnected=!1})),this.client.connection.on("disconnected",(()=>{this.log("Connection disconnected"),this._isConnected=!1}))})),await this.channel.subscribe((e=>{e.clientId!==this.clientId&&this.handleMessage(e.data,e.clientId)})),await this.channel.presence.enter(),await this.channel.presence.subscribe("leave",(e=>{const t=e?.clientId;"string"==typeof t&&t!==this.clientId&&(this.log("Peer left:",t),this._peerDisconnectCallback?.(t))})),this.snapshotLoaded=!1,this.persistentMode&&(this.liveRoot=await this.channel.object.get(),this.loadSnapshot())}async disconnect(){if(this.log("Disconnecting..."),this.persistTimer&&(clearTimeout(this.persistTimer),this.persistTimer=void 0),this.persistentMode&&this.persistDoc)try{await this.saveSnapshot()}catch(e){this.log("Error flushing snapshot on disconnect:",e)}if(this.channel){try{await this.channel.presence.leave()}catch(e){this.log("Error leaving presence:",e)}this.channel.unsubscribe(),this.channel=null}this.client&&(this.client.close(),this.client=null),this._isConnected=!1,this.messageCallback=void 0,this.messageBuffer=[],this.chunkBuffer.clear(),this.persistentMode=!1,this.persistDoc=null,this.snapshotLoaded=!1,this.liveRoot=null}send(e){if(!this.channel||!this._isConnected)return void this.log("Cannot send: not connected");const t=function(e){return e.length>=4?e.subarray(4):e}(e),s=function(e){let t="";for(let s=0;s<e.length;s+=8192){const n=e.subarray(s,Math.min(s+8192,e.length));t+=String.fromCharCode(...n)}return btoa(t)}(t);s.length>u?this.sendChunked(s,t.length):this.channel.publish(l,s).catch((e=>{this.log("Publish error:",e)})),this.persistentMode&&1!==this.peekMessageType(e)&&this.queuePersist()}peekMessageType(e){return e.length<5?-1:e[4]}onMessage(e){if(this.messageCallback=e,this.messageBuffer.length>0){for(const{data:t,from:s}of this.messageBuffer)e(t,s);this.messageBuffer=[]}return()=>{this.messageCallback=void 0}}async getPresence(){if(!this.channel||!this._isConnected)return[];try{return(await this.channel.presence.get()).map((e=>e.clientId)).filter((e=>e!==this.clientId))}catch(e){return this.log("Error getting presence:",e),[]}}queuePersist(){this.persistTimer&&clearTimeout(this.persistTimer),this.persistTimer=setTimeout((()=>this.saveSnapshot()),this.persistDebounceMs)}async saveSnapshot(){if(this.persistDoc&&this.persistentMode&&this.liveRoot)if(this.snapshotLoaded)if(this.isWritingSnapshot)this.savePending=!0;else{this.isWritingSnapshot=!0,this.savePending=!1;try{const e=i.createEncoder();i.writeVarUint(e,0),o.writeSyncStep2(e,this.persistDoc);const t=i.toUint8Array(e),s=[];for(let e=0;e<t.length;e+=u){const n=Math.min(e+u,t.length);s.push(t.buffer.slice(t.byteOffset+e,t.byteOffset+n))}await Promise.all(s.map(((e,t)=>this.liveRoot.set(`snapshot-${t}`,e)))),await this.liveRoot.set("snapshot-count",s.length),this.log("Snapshot saved",t.length,"bytes in",s.length,"chunk(s)")}catch(e){this.log("Error saving snapshot:",e.message),console.warn("AblyTransport: Failed to save snapshot. Will retry later.",e),this.savePending=!0}finally{this.isWritingSnapshot=!1,this.savePending&&setTimeout((()=>this.saveSnapshot()),1e3)}}else this.persistTimer=setTimeout((()=>this.saveSnapshot()),100)}async loadSnapshot(){if(this.liveRoot)try{const e=this.liveRoot.get("snapshot-count").value();if(!e)return void this.log("No snapshot found in LiveObjects");const t=[];for(let s=0;s<e;s++){const e=this.liveRoot.get(`snapshot-${s}`).value();if(!e)return void this.log(`Missing chunk ${s}, cannot reassemble snapshot`);t.push(new Uint8Array(e))}const s=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(s);let i=0;for(const e of t)n.set(e,i),i+=e.length;n.length>0&&(this.deliver(h(n)),this.log("Loaded snapshot:",n.length,"bytes"))}catch(e){this.log("Error loading snapshot:",e),console.warn("AblyTransport: Failed to load snapshot:",e)}finally{this.snapshotLoaded=!0}}sendChunked(e,t){const s=a(),n=[];for(let t=0;t<e.length;t+=u)n.push(e.slice(t,t+u));this.log(`Splitting ${t} bytes into ${n.length} chunks (id: ${s.slice(0,8)}...)`),n.forEach(((e,t)=>{const i={chunked:!0,id:s,index:t,total:n.length,data:e};this.channel.publish(l,i).catch((e=>{this.log(`Failed to send chunk ${t+1}:`,e)}))}))}handleChunkedMessage(e,t){const{id:s,index:n,total:i,data:o}=e;this.chunkBuffer.has(s)||this.chunkBuffer.set(s,new Map);const r=this.chunkBuffer.get(s);if(r.set(n,o),r.size!==i)return;let a="";for(let e=0;e<i;e++){const t=r.get(e);if(!t)return this.log(`Missing chunk ${e}, cannot reassemble message ${s}`),void this.chunkBuffer.delete(s);a+=t}this.chunkBuffer.delete(s);try{const e=c(a);this.deliver(h(e),t)}catch(e){this.log("Error reassembling chunked message:",e)}}handleMessage(e,t){try{if(e&&"object"==typeof e&&e.chunked)return void this.handleChunkedMessage(e,t);if("string"!=typeof e)return;const s=c(e);this.deliver(h(s),t)}catch(e){this.log("Error handling message:",e)}}deliver(e,t){this.messageCallback?this.messageCallback(e,t):this.messageBuffer.push({data:e,from:t})}onPeerDisconnect(e){return this._peerDisconnectCallback=e,()=>{this._peerDisconnectCallback=void 0}}log(...e){this.debug&&console.log("[AblyTransport]",...e)}}})),t.register("5Cbw2",(function(e,t){var s,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function h(e){if(s===setTimeout)return setTimeout(e,0);if((s===o||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:o}catch(e){s=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var c,a=[],l=!1,u=-1;function d(){l&&c&&(l=!1,c.length?a=c.concat(a):u=-1,a.length&&p())}function p(){if(!l){var e=h(d);l=!0;for(var t=a.length;t;){for(c=a,a=[];++u<t;)c&&c[u].run();u=-1,t=a.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)t[s-1]=arguments[s];a.push(new f(e,t)),1!==a.length||l||h(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}))}();
|
package/dist/Ably.9f94dcaa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t,s,n){Object.defineProperty(e,t,{get:s,set:n,enumerable:!0,configurable:!0})}var t=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequirea18f;t.register("eKRCL",(function(s,n){e(s.exports,"Sync",(()=>c));var i=t("bQEo7"),o=t("7HEQb"),r=t("6frWy"),h=t("3MQ2P"),a=t("kPRWr");class c extends i.Sync{persistent=!1;syncFallbackTimer=null;destroy(){null!==this.syncFallbackTimer&&(clearTimeout(this.syncFallbackTimer),this.syncFallbackTimer=null),super.destroy(),this.provider?.disconnect()}async connect(e){super.connect(e),this.apiKey=e.config?.apiKey||void 0,this.persistent=e.config?.persistent||!1;const t=[];window.Ably||t.push("https://cdn.ably.com/lib/ably.min-2.js"),this.persistent&&!window.AblyLiveObjectsPlugin&&t.push("https://cdn.ably.com/lib/liveobjects.umd.min-2.js"),this.password&&!window.SimpleCrypto&&t.push(a.Crypto.url),0===t.length?this.init(!0):this.load(t,this)}init(e,t){if(!this.apiKey)return this.sendDisconnectError("You have to provide a valid API key");const s=this.uniqueID();if(e&&window.Ably&&s){this.password&&a.Crypto.init(this.password),this.transport=new(0,o.AblyTransport)({Realtime:window.Ably.Realtime,LiveObjects:this.persistent?window.AblyLiveObjectsPlugin:void 0,debug:!!window.LIA?.debug}),this.provider=new(0,r.GenericProvider)(this.db.doc,(0,h.wrapTransport)(this.transport,this.password,4)),this.db.setAwareness(this.provider.awareness,this.name);let e=!1;const t=()=>{e||(e=!0,null!==this.syncFallbackTimer&&(clearTimeout(this.syncFallbackTimer),this.syncFallbackTimer=null),this.sendConnect())};this.provider.on("synced",(e=>{console.log("Ably: document synchronized",e.synced),t()})),this.provider.on("status",(e=>{const s=e.state;console.log(`Ably status: ${s}`),"connected"===s?this.syncFallbackTimer=setTimeout((()=>{console.log("Ably: sync fallback, proceeding as first peer"),t()}),2e3):"disconnected"===s&&console.warn("Ably: disconnected")})),this.provider.connect({room:s,apiKey:this.apiKey,persistent:this.persistent,doc:this.persistent?this.db.doc:void 0,waitFor:this.persistReady,...this.password?{password:this.password}:{}})}else{let e="Ably unknown error";t?e="Could not load resource: "+t:window.Ably||(e="Could not load Ably SDK"),this.sendDisconnectError(e)}}}})),t.register("7HEQb",(function(s,n){e(s.exports,"AblyTransport",(()=>d));var i=t("7BTJz"),o=t("kRCFI");const r=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let s=t;for(let e=0;e<8;e++)s=1&s?3988292384^s>>>1:s>>>1;e[t]=s}return e})();function h(e){const t=function(e){let t=4294967295;for(let s=0;s<e.length;s++)t=t>>>8^r[255&(t^e[s])];return(4294967295^t)>>>0}(e),s=new Uint8Array(4+e.length);return s[0]=t>>>24&255,s[1]=t>>>16&255,s[2]=t>>>8&255,s[3]=255&t,s.set(e,4),s}function a(e){const t=atob(e),s=new Uint8Array(t.length);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return s}function c(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}const l="yjs-update",u=55e3;class d{constructor(e){this.client=null,this.channel=null,this.clientId="",this.channelName="",this._isConnected=!1,this.debug=!1,this.messageBuffer=[],this.chunkBuffer=new Map,this.persistentMode=!1,this.persistDoc=null,this.persistDebounceMs=2e3,this.isWritingSnapshot=!1,this.savePending=!1,this.snapshotLoaded=!1,this.liveRoot=null,this.opts=e}get isConnected(){return this._isConnected}async connect(e){if(this.debug=e.debug??this.opts.debug??!1,!e.apiKey&&!e.authUrl)throw new Error("AblyTransport: apiKey or authUrl is required");if(!e.room)throw new Error("AblyTransport: room name is required");if(this.persistentMode=e.persistent??!1,this.persistDoc=e.doc??null,this.persistDebounceMs=e.persistDebounceMs??2e3,this.persistentMode&&!this.persistDoc)throw new Error("AblyTransport: a Y.Doc must be provided via config.doc when persistent is true");if(this.persistentMode&&!this.opts.LiveObjects)throw new Error('AblyTransport: the "LiveObjects" plugin class must be provided via constructor options when persistent is true. import { LiveObjects } from "ably/liveobjects"; new AblyTransport({ Realtime, LiveObjects })');this.clientId=c(),this.channelName=e.password?`${e.room}-${await async function(e){const t=(new TextEncoder).encode(e),s=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(s)).map((e=>e.toString(16).padStart(2,"0"))).join("").substring(0,16)}(e.password)}`:e.room;const t={clientId:this.clientId,echoMessages:this.persistentMode};e.apiKey&&(t.key=e.apiKey),e.authUrl&&(t.authUrl=e.authUrl),e.authMethod&&(t.authMethod=e.authMethod),this.persistentMode&&(t.plugins={LiveObjects:this.opts.LiveObjects}),this.log("Connecting as",this.clientId,"to channel",this.channelName),this.client=new this.opts.Realtime(t),this.channel=this.persistentMode?this.client.channels.get(this.channelName,{modes:["PUBLISH","SUBSCRIBE","PRESENCE","PRESENCE_SUBSCRIBE","OBJECT_PUBLISH","OBJECT_SUBSCRIBE"]}):this.client.channels.get(this.channelName),await new Promise(((e,t)=>{const s=setTimeout((()=>{t(new Error("Ably connection timeout"))}),1e4);this.client.connection.once("connected",(()=>{clearTimeout(s),this._isConnected=!0,this.log("Connected to Ably"),e()})),this.client.connection.on("failed",(e=>{clearTimeout(s),t(new Error(`Ably connection failed: ${e?.reason?.message??"unknown error"}`))})),this.client.connection.on("suspended",(()=>{this.log("Connection suspended"),this._isConnected=!1})),this.client.connection.on("disconnected",(()=>{this.log("Connection disconnected"),this._isConnected=!1}))})),await this.channel.subscribe((e=>{e.clientId!==this.clientId&&this.handleMessage(e.data,e.clientId)})),await this.channel.presence.enter(),await this.channel.presence.subscribe("leave",(e=>{const t=e?.clientId;"string"==typeof t&&t!==this.clientId&&(this.log("Peer left:",t),this._peerDisconnectCallback?.(t))})),this.snapshotLoaded=!1,this.persistentMode&&(this.liveRoot=await this.channel.object.get(),this.loadSnapshot())}async disconnect(){if(this.log("Disconnecting..."),this.persistTimer&&(clearTimeout(this.persistTimer),this.persistTimer=void 0),this.persistentMode&&this.persistDoc)try{await this.saveSnapshot()}catch(e){this.log("Error flushing snapshot on disconnect:",e)}if(this.channel){try{await this.channel.presence.leave()}catch(e){this.log("Error leaving presence:",e)}this.channel.unsubscribe(),this.channel=null}this.client&&(this.client.close(),this.client=null),this._isConnected=!1,this.messageCallback=void 0,this.messageBuffer=[],this.chunkBuffer.clear(),this.persistentMode=!1,this.persistDoc=null,this.snapshotLoaded=!1,this.liveRoot=null}send(e){if(!this.channel||!this._isConnected)return void this.log("Cannot send: not connected");const t=function(e){return e.length>=4?e.subarray(4):e}(e),s=function(e){let t="";for(let s=0;s<e.length;s+=8192){const n=e.subarray(s,Math.min(s+8192,e.length));t+=String.fromCharCode(...n)}return btoa(t)}(t);s.length>u?this.sendChunked(s,t.length):this.channel.publish(l,s).catch((e=>{this.log("Publish error:",e)})),this.persistentMode&&1!==this.peekMessageType(e)&&this.queuePersist()}peekMessageType(e){return e.length<5?-1:e[4]}onMessage(e){if(this.messageCallback=e,this.messageBuffer.length>0){for(const{data:t,from:s}of this.messageBuffer)e(t,s);this.messageBuffer=[]}return()=>{this.messageCallback=void 0}}async getPresence(){if(!this.channel||!this._isConnected)return[];try{return(await this.channel.presence.get()).map((e=>e.clientId)).filter((e=>e!==this.clientId))}catch(e){return this.log("Error getting presence:",e),[]}}queuePersist(){this.persistTimer&&clearTimeout(this.persistTimer),this.persistTimer=setTimeout((()=>this.saveSnapshot()),this.persistDebounceMs)}async saveSnapshot(){if(this.persistDoc&&this.persistentMode&&this.liveRoot)if(this.snapshotLoaded)if(this.isWritingSnapshot)this.savePending=!0;else{this.isWritingSnapshot=!0,this.savePending=!1;try{const e=i.createEncoder();i.writeVarUint(e,0),o.writeSyncStep2(e,this.persistDoc);const t=i.toUint8Array(e),s=[];for(let e=0;e<t.length;e+=u){const n=Math.min(e+u,t.length);s.push(t.buffer.slice(t.byteOffset+e,t.byteOffset+n))}await Promise.all(s.map(((e,t)=>this.liveRoot.set(`snapshot-${t}`,e)))),await this.liveRoot.set("snapshot-count",s.length),this.log("Snapshot saved",t.length,"bytes in",s.length,"chunk(s)")}catch(e){this.log("Error saving snapshot:",e.message),console.warn("AblyTransport: Failed to save snapshot. Will retry later.",e),this.savePending=!0}finally{this.isWritingSnapshot=!1,this.savePending&&setTimeout((()=>this.saveSnapshot()),1e3)}}else this.persistTimer=setTimeout((()=>this.saveSnapshot()),100)}async loadSnapshot(){if(this.liveRoot)try{const e=this.liveRoot.get("snapshot-count").value();if(!e)return void this.log("No snapshot found in LiveObjects");const t=[];for(let s=0;s<e;s++){const e=this.liveRoot.get(`snapshot-${s}`).value();if(!e)return void this.log(`Missing chunk ${s}, cannot reassemble snapshot`);t.push(new Uint8Array(e))}const s=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(s);let i=0;for(const e of t)n.set(e,i),i+=e.length;n.length>0&&(this.deliver(h(n)),this.log("Loaded snapshot:",n.length,"bytes"))}catch(e){this.log("Error loading snapshot:",e),console.warn("AblyTransport: Failed to load snapshot:",e)}finally{this.snapshotLoaded=!0}}sendChunked(e,t){const s=c(),n=[];for(let t=0;t<e.length;t+=u)n.push(e.slice(t,t+u));this.log(`Splitting ${t} bytes into ${n.length} chunks (id: ${s.slice(0,8)}...)`),n.forEach(((e,t)=>{const i={chunked:!0,id:s,index:t,total:n.length,data:e};this.channel.publish(l,i).catch((e=>{this.log(`Failed to send chunk ${t+1}:`,e)}))}))}handleChunkedMessage(e,t){const{id:s,index:n,total:i,data:o}=e;this.chunkBuffer.has(s)||this.chunkBuffer.set(s,new Map);const r=this.chunkBuffer.get(s);if(r.set(n,o),r.size!==i)return;let c="";for(let e=0;e<i;e++){const t=r.get(e);if(!t)return this.log(`Missing chunk ${e}, cannot reassemble message ${s}`),void this.chunkBuffer.delete(s);c+=t}this.chunkBuffer.delete(s);try{const e=a(c);this.deliver(h(e),t)}catch(e){this.log("Error reassembling chunked message:",e)}}handleMessage(e,t){try{if(e&&"object"==typeof e&&e.chunked)return void this.handleChunkedMessage(e,t);if("string"!=typeof e)return;const s=a(e);this.deliver(h(s),t)}catch(e){this.log("Error handling message:",e)}}deliver(e,t){this.messageCallback?this.messageCallback(e,t):this.messageBuffer.push({data:e,from:t})}onPeerDisconnect(e){return this._peerDisconnectCallback=e,()=>{this._peerDisconnectCallback=void 0}}log(...e){this.debug&&console.log("[AblyTransport]",...e)}}})),t.register("b3MRX",(function(e,t){var s,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function h(e){if(s===setTimeout)return setTimeout(e,0);if((s===o||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:o}catch(e){s=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var a,c=[],l=!1,u=-1;function d(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=h(d);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)t[s-1]=arguments[s];c.push(new f(e,t)),1!==c.length||l||h(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}));
|