Raw Source
TagoDR / Manga OnlineViewer

// ==UserScript==
// @name          Manga OnlineViewer
// @author        Tago
// @updateURL     https://github.com/TagoDR/MangaOnlineViewer/raw/master/dist/Manga_OnlineViewer.meta.js
// @downloadURL   https://github.com/TagoDR/MangaOnlineViewer/raw/master/dist/Manga_OnlineViewer.user.js
// @supportURL    https://github.com/TagoDR/MangaOnlineViewer/issues
// @namespace     https://github.com/TagoDR
// @description   Shows all pages at once in online view for these sites: Asura Scans, Batoto, BilibiliComics, Comick, Comix.to, Dynasty-Scans, Flame Comics, Ikigai Mangas - EltaNews, Ikigai Mangas - Ajaco, Kagane, KuManga, LeerCapitulo, LHTranslation, Local Files, M440, MangaBuddy, MangaDex, MangaFox, MangaHere, Mangago, MangaHub, MangaKakalot, NeloManga, MangaNato, NatoManga, MangaBats, MangaBall, MangaOni, MangaPark, MangaReader, MangaToons, MangaTown, ManhwaWeb, MangaGeko.com, MangaGeko.cc, NineAnime, OlympusBiblioteca, QiManhwa, ReadComicsOnline, ReaperScans, TuMangaOnline, WebNovel, WebToons, WeebCentral, WeebDex, Vortex Scans, ZeroScans, MangaStream WordPress Plugin, Realm Oasis, Voids-Scans, Luminous Scans, Shimada Scans, Night Scans, Manhwa-Freak, OzulScansEn, CypherScans, MangaGalaxy, LuaScans, Drake Scans, Rizzfables, NovatoScans, TresDaos, Lectormiau, NTRGod, Threedaos, FoOlSlide, Kireicake, Madara WordPress Plugin, MangaHaus, Isekai Scan, Comic Kiba, Zinmanga, mangatx, Toonily, Mngazuki, JaiminisBox, DisasterScans, ManhuaPlus, TopManhua, NovelMic, Reset-Scans, LeviatanScans, Dragon Tea, SetsuScans, ToonGod, Hades Scans
// @version       2026.04.07.build-2128
// @license       MIT
// @icon          https://cdn-icons-png.flaticon.com/32/2281/2281832.png
// @run-at        document-end
// @grant         unsafeWindow
// @grant         GM_getValue
// @grant         GM_setValue
// @grant         GM_listValues
// @grant         GM_deleteValue
// @grant         GM_xmlhttpRequest
// @grant         GM_addValueChangeListener
// @noframes      on
// @connect       *
// @require       https://cdn.jsdelivr.net/npm/colorjs.io@0.6.1/dist/color.global.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/jszip/3.9.1/jszip.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js
// @require       https://cdn.jsdelivr.net/npm/lodash@4.17.23/lodash.min.js
// @require       https://cdn.jsdelivr.net/npm/hotkeys-js@4.0.2/dist/hotkeys-js.min.js
// @require       https://cdn.jsdelivr.net/npm/bowser@2.14.1/bundled.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/blob-util/2.0.2/blob-util.min.js
// @require       https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js
// @require       https://cdn.jsdelivr.net/npm/toolcool-range-slider@4.0.28/dist/toolcool-range-slider.min.js
// @require       https://cdn.jsdelivr.net/npm/toolcool-range-slider@4.0.28/dist/plugins/tcrs-generated-labels.min.js
// @require       https://cdn.jsdelivr.net/npm/toolcool-range-slider@4.0.28/dist/plugins/tcrs-marks.min.js
// @include       /https?:\/\/(www.)?(asurascans|asuracomics).(com|net)\/.+/
// @include       /https?:\/\/(?:www\.)?(?:fto|jto|hto|dto|mto|wto|bato|battwo|batotwo|comiko|batocomic|readtoto|zbato|xbato|mangatoto)\.(?:to|com|net|org)\/(chapter|title).*/
// @include       /https?:\/\/(www\.)?(bilibilicomics).net\/episode\/.+/
// @include       /https?:\/\/(www\.)?comick.io\/.+/
// @include       /https?:\/\/comix\.to\/(title|comic)\/.+\/.+/
// @include       /https?:\/\/(www\.)?dynasty-scans.com\/chapters\/.+/
// @include       /https?:\/\/(www.)?(flamecomics).(xyz)\/series\/.+/
// @include       /https?:\/\/(visorikigai|visualikigai).(ajaco|eltanews|foodib|jobswu).(com|net|site)\/capitulo\/\d+/
// @include       /https:\/\/(www\.)?kagane\.org\/series\/.+\/reader\/.+/
// @include       /https?:\/\/(www\.)?kumanga.com\/manga\/leer\/.+/
// @include       /https?:\/\/(www.)?leercapitulo.co\/leer\/.+/
// @include       /https?:\/\/(www\.)?lhtranslation.net\/read.+/
// @include       /(file:\/\/\/.+(index)?.html)/
// @include       /https?:\/\/(www\.)?m440.in\/manga\/.+\/.+\/\d+/
// @include       /https?:\/\/(www\.)?mangabuddy.com\/.+\/chapter.+/
// @include       /https?:\/\/(www\.)?mangadex.org/
// @include       /https?:\/\/(www\.)?(fanfox.net|mangahere.cc)\/manga\/.+\/.+\//
// @include       /https?:\/\/(www\.)?mangago.me\/.*\/.*\/.*/
// @include       /https?:\/\/(www\.)?(mangahub).io\/chapter\/.+\/.+/
// @include       /https?:\/\/(www\.)?(read|chap)?(nelomanga|mangakakalot|natomanga|manganato|mangabats|mangakakalove).(com|gg|net).*\/(chapter|manga)\/.+\/.+/
// @include       /https?:\/\/mangaball\.net\/chapter-detail\/.+/
// @include       /https?:\/\/(www\.)?manga-oni.com\/lector\/.+\/\d+\/cascada/
// @include       /https?:\/\/(www\.)?(mangapark|mpark|comicpark|readpark|parkmanga).(com|me|org|net|io|to)\/title\/.+\/.+/
// @include       /https?:\/\/(www\.)?mangareader.to\/read\/.+\/.+\/.+/
// @include       /https?:\/\/.*mangatoon.mobi\/.+\/watch\/.+/
// @include       /https?:\/\/www\.mangatown\.com\/manga\/.+\/.+\//
// @include       /https?:\/\/(www\.)?manhwaweb.com\/leer\/.+/
// @include       /https?:\/\/(www\.)?mgeko.(com|cc)?\/reader\/.*/
// @include       /https?:\/\/(www\.)?nineanime.com\/chapter\/.+/
// @include       /https?:\/\/(www\.)?olympusbiblioteca.com\/capitulo\/\d+\/.+/
// @include       /https?:\/\/qimanhwa\.com\/series\/[^/]+\/chapter-.+/
// @include       /https?:\/\/(www\.)?readcomicsonline.ru\/comic\/.*\/\d*/
// @include       /https?:\/\/(www\.)?reaperscans\.com\/series\/.+\/chapter.+/
// @include       /https?:\/\/(www\.)?(.+).com\/(viewer|news)\/.+\/(paginated|cascade)/
// @include       /https?:\/\/(www\.)?webnovel.com\/comic\/.+/
// @include       /https?:\/\/(www\.)?webtoons.com\/.+viewer.+/
// @include       /https?:\/\/(www\.)?(weebcentral).com\/chapters\/.+/
// @include       /https?:\/\/(www\.)?weebdex\.org\/.+/
// @include       /https?:\/\/(www.)?(vortexscans).(org)\/.+/
// @include       /https?:\/\/(www\.)?zscans.com\/comics\/.+/
// @include       /https?:\/\/[^/]*(scans?|comic|realm|rizz|hivetoon|tresdaos|zonamiau|ntrgod|threedaos)[^/]*\/.+/
// @include       /^(?!.*jaiminisbox).*\/read\/.+/
// @include       /https?:\/\/.+\/(manga|series|manhua|comic|ch|novel|webtoon|tmo)\/.+\/.+/
// @exclude       /https?:\/\/(www\.)?tsumino.com\/.+/
// @exclude       /https?:\/\/(www\.)?pururin.io\/.+/
// ==/UserScript==
(function(){var Yf=Object.create,Hi=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,Jf=Object.getOwnPropertyNames,Qf=Object.getPrototypeOf,e2=Object.prototype.hasOwnProperty,yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tu=(e,t)=>{let r={};for(var i in e)Hi(r,i,{get:e[i],enumerable:!0});return t||Hi(r,Symbol.toStringTag,{value:"Module"}),r},t2=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Jf(t),s=0,l=a.length,h;s<l;s++)h=a[s],!e2.call(e,h)&&h!==r&&Hi(e,h,{get:(u=>t[u]).bind(null,h),enumerable:!(i=Xf(t,h))||i.enumerable});return e},Fi=(e,t,r)=>(r=e!=null?Yf(Qf(e)):{},t2(t||!e||!e.__esModule?Hi(r,"default",{value:e,enumerable:!0}):r,e)),n2=yn(((e,t)=>{(function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i():typeof define=="function"&&define.amd?define([],i):typeof e=="object"?e.bowser=i():r.bowser=i()})(e,(function(){return(function(r){var i={};function a(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return r[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=r,a.c=i,a.d=function(s,l,h){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:h})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(1&l&&(s=a(s)),8&l||4&l&&typeof s=="object"&&s&&s.__esModule)return s;var h=Object.create(null);if(a.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:s}),2&l&&typeof s!="string")for(var u in s)a.d(h,u,function(f){return s[f]}.bind(null,u));return h},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s=90)})({17:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s=a(18);i.default=(function(){function l(){}return l.getFirstMatch=function(h,u){var f=u.match(h);return f&&f.length>0&&f[1]||""},l.getSecondMatch=function(h,u){var f=u.match(h);return f&&f.length>1&&f[2]||""},l.matchAndReturnConst=function(h,u,f){if(h.test(u))return f},l.getWindowsVersionName=function(h){switch(h){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},l.getMacOSVersionName=function(h){var u=h.split(".").splice(0,2).map((function(w){return parseInt(w,10)||0}));u.push(0);var f=u[0],p=u[1];if(f===10)switch(p){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(f){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},l.getAndroidVersionName=function(h){var u=h.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));if(u.push(0),!(u[0]===1&&u[1]<5))return u[0]===1&&u[1]<6?"Cupcake":u[0]===1&&u[1]>=6?"Donut":u[0]===2&&u[1]<2?"Eclair":u[0]===2&&u[1]===2?"Froyo":u[0]===2&&u[1]>2?"Gingerbread":u[0]===3?"Honeycomb":u[0]===4&&u[1]<1?"Ice Cream Sandwich":u[0]===4&&u[1]<4?"Jelly Bean":u[0]===4&&u[1]>=4?"KitKat":u[0]===5?"Lollipop":u[0]===6?"Marshmallow":u[0]===7?"Nougat":u[0]===8?"Oreo":u[0]===9?"Pie":void 0},l.getVersionPrecision=function(h){return h.split(".").length},l.compareVersions=function(h,u,f){f===void 0&&(f=!1);var p=l.getVersionPrecision(h),w=l.getVersionPrecision(u),b=Math.max(p,w),v=0,m=l.map([h,u],(function(E){var y=b-l.getVersionPrecision(E),A=E+new Array(y+1).join(".0");return l.map(A.split("."),(function(x){return new Array(20-x.length).join("0")+x})).reverse()}));for(f&&(v=b-Math.min(p,w)),b-=1;b>=v;){if(m[0][b]>m[1][b])return 1;if(m[0][b]===m[1][b]){if(b===v)return 0;b-=1}else if(m[0][b]<m[1][b])return-1}},l.map=function(h,u){var f,p=[];if(Array.prototype.map)return Array.prototype.map.call(h,u);for(f=0;f<h.length;f+=1)p.push(u(h[f]));return p},l.find=function(h,u){var f,p;if(Array.prototype.find)return Array.prototype.find.call(h,u);for(f=0,p=h.length;f<p;f+=1){var w=h[f];if(u(w,f))return w}},l.assign=function(h){for(var u,f,p=h,w=arguments.length,b=new Array(w>1?w-1:0),v=1;v<w;v++)b[v-1]=arguments[v];if(Object.assign)return Object.assign.apply(Object,[h].concat(b));var m=function(){var E=b[u];typeof E=="object"&&E!==null&&Object.keys(E).forEach((function(y){p[y]=E[y]}))};for(u=0,f=b.length;u<f;u+=1)m();return h},l.getBrowserAlias=function(h){return s.BROWSER_ALIASES_MAP[h]},l.getBrowserTypeByAlias=function(h){return s.BROWSER_MAP[h]||""},l})(),r.exports=i.default},18:function(r,i,a){"use strict";i.__esModule=!0,i.ENGINE_MAP=i.OS_MAP=i.PLATFORMS_MAP=i.BROWSER_MAP=i.BROWSER_ALIASES_MAP=void 0,i.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},i.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},i.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},i.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},i.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(91))&&s.__esModule?s:{default:s},h=a(18);function u(f,p){for(var w=0;w<p.length;w++){var b=p[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}i.default=(function(){function f(){}var p,w,b;return f.getParser=function(v,m,E){if(m===void 0&&(m=!1),E===void 0&&(E=null),typeof v!="string")throw new Error("UserAgent should be a string");return new l.default(v,m,E)},f.parse=function(v,m){return m===void 0&&(m=null),new l.default(v,m).getResult()},p=f,b=[{key:"BROWSER_MAP",get:function(){return h.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return h.ENGINE_MAP}},{key:"OS_MAP",get:function(){return h.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return h.PLATFORMS_MAP}}],(w=null)&&u(p.prototype,w),b&&u(p,b),f})(),r.exports=i.default},91:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s=p(a(92)),l=p(a(93)),h=p(a(94)),u=p(a(95)),f=p(a(17));function p(w){return w&&w.__esModule?w:{default:w}}i.default=(function(){function w(v,m,E){if(m===void 0&&(m=!1),E===void 0&&(E=null),v==null||v==="")throw new Error("UserAgent parameter can't be empty");this._ua=v;var y=!1;typeof m=="boolean"?(y=m,this._hints=E):this._hints=m!=null&&typeof m=="object"?m:null,this.parsedResult={},y!==!0&&this.parse()}var b=w.prototype;return b.getHints=function(){return this._hints},b.hasBrand=function(v){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var m=v.toLowerCase();return this._hints.brands.some((function(E){return E.brand&&E.brand.toLowerCase()===m}))},b.getBrandVersion=function(v){if(this._hints&&Array.isArray(this._hints.brands)){var m=v.toLowerCase(),E=this._hints.brands.find((function(y){return y.brand&&y.brand.toLowerCase()===m}));return E?E.version:void 0}},b.getUA=function(){return this._ua},b.test=function(v){return v.test(this._ua)},b.parseBrowser=function(){var v=this;this.parsedResult.browser={};var m=f.default.find(s.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.browser=m.describe(this.getUA(),this)),this.parsedResult.browser},b.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},b.getBrowserName=function(v){return v?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},b.getBrowserVersion=function(){return this.getBrowser().version},b.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},b.parseOS=function(){var v=this;this.parsedResult.os={};var m=f.default.find(l.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.os=m.describe(this.getUA())),this.parsedResult.os},b.getOSName=function(v){var m=this.getOS().name;return v?String(m).toLowerCase()||"":m||""},b.getOSVersion=function(){return this.getOS().version},b.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},b.getPlatformType=function(v){v===void 0&&(v=!1);var m=this.getPlatform().type;return v?String(m).toLowerCase()||"":m||""},b.parsePlatform=function(){var v=this;this.parsedResult.platform={};var m=f.default.find(h.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.platform=m.describe(this.getUA())),this.parsedResult.platform},b.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},b.getEngineName=function(v){return v?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},b.parseEngine=function(){var v=this;this.parsedResult.engine={};var m=f.default.find(u.default,(function(E){if(typeof E.test=="function")return E.test(v);if(Array.isArray(E.test))return E.test.some((function(y){return v.test(y)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.engine=m.describe(this.getUA())),this.parsedResult.engine},b.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},b.getResult=function(){return f.default.assign({},this.parsedResult)},b.satisfies=function(v){var m=this,E={},y=0,A={},x=0;if(Object.keys(v).forEach((function(ge){var _e=v[ge];typeof _e=="string"?(A[ge]=_e,x+=1):typeof _e=="object"&&(E[ge]=_e,y+=1)})),y>0){var L=Object.keys(E),T=f.default.find(L,(function(ge){return m.isOS(ge)}));if(T){var z=this.satisfies(E[T]);if(z!==void 0)return z}var K=f.default.find(L,(function(ge){return m.isPlatform(ge)}));if(K){var q=this.satisfies(E[K]);if(q!==void 0)return q}}if(x>0){var oe=Object.keys(A),W=f.default.find(oe,(function(ge){return m.isBrowser(ge,!0)}));if(W!==void 0)return this.compareVersion(A[W])}},b.isBrowser=function(v,m){m===void 0&&(m=!1);var E=this.getBrowserName().toLowerCase(),y=v.toLowerCase(),A=f.default.getBrowserTypeByAlias(y);return m&&A&&(y=A.toLowerCase()),y===E},b.compareVersion=function(v){var m=[0],E=v,y=!1,A=this.getBrowserVersion();if(typeof A=="string")return v[0]===">"||v[0]==="<"?(E=v.substr(1),v[1]==="="?(y=!0,E=v.substr(2)):m=[],v[0]===">"?m.push(1):m.push(-1)):v[0]==="="?E=v.substr(1):v[0]==="~"&&(y=!0,E=v.substr(1)),m.indexOf(f.default.compareVersions(A,E,y))>-1},b.isOS=function(v){return this.getOSName(!0)===String(v).toLowerCase()},b.isPlatform=function(v){return this.getPlatformType(!0)===String(v).toLowerCase()},b.isEngine=function(v){return this.getEngineName(!0)===String(v).toLowerCase()},b.is=function(v,m){return m===void 0&&(m=!1),this.isBrowser(v,m)||this.isOS(v)||this.isPlatform(v)},b.some=function(v){var m=this;return v===void 0&&(v=[]),v.some((function(E){return m.is(E)}))},w})(),r.exports=i.default},92:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=/version\/(\d+(\.?_?\d+)+)/i;i.default=[{test:[/gptbot/i],describe:function(u){var f={name:"GPTBot"},p=l.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/chatgpt-user/i],describe:function(u){var f={name:"ChatGPT-User"},p=l.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/oai-searchbot/i],describe:function(u){var f={name:"OAI-SearchBot"},p=l.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(u){var f={name:"ClaudeBot"},p=l.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(u){var f={name:"Omgilibot"},p=l.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/diffbot/i],describe:function(u){var f={name:"Diffbot"},p=l.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/perplexitybot/i],describe:function(u){var f={name:"PerplexityBot"},p=l.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/perplexity-user/i],describe:function(u){var f={name:"Perplexity-User"},p=l.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/youbot/i],describe:function(u){var f={name:"YouBot"},p=l.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-webindexer/i],describe:function(u){var f={name:"Meta-WebIndexer"},p=l.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalads/i],describe:function(u){var f={name:"Meta-ExternalAds"},p=l.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalagent/i],describe:function(u){var f={name:"Meta-ExternalAgent"},p=l.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/meta-externalfetcher/i],describe:function(u){var f={name:"Meta-ExternalFetcher"},p=l.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/googlebot/i],describe:function(u){var f={name:"Googlebot"},p=l.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/linespider/i],describe:function(u){var f={name:"Linespider"},p=l.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/amazonbot/i],describe:function(u){var f={name:"AmazonBot"},p=l.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/bingbot/i],describe:function(u){var f={name:"BingCrawler"},p=l.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/baiduspider/i],describe:function(u){var f={name:"BaiduSpider"},p=l.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/duckduckbot/i],describe:function(u){var f={name:"DuckDuckBot"},p=l.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/ia_archiver/i],describe:function(u){var f={name:"InternetArchiveCrawler"},p=l.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(u){var f={name:"SlackBot"},p=l.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(u){var f={name:"Opera"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/opr\/|opios/i],describe:function(u){var f={name:"Opera"},p=l.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/SamsungBrowser/i],describe:function(u){var f={name:"Samsung Internet for Android"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/Whale/i],describe:function(u){var f={name:"NAVER Whale Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/PaleMoon/i],describe:function(u){var f={name:"Pale Moon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/MZBrowser/i],describe:function(u){var f={name:"MZ Browser"},p=l.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/focus/i],describe:function(u){var f={name:"Focus"},p=l.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/swing/i],describe:function(u){var f={name:"Swing"},p=l.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/coast/i],describe:function(u){var f={name:"Opera Coast"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(u){var f={name:"Opera Touch"},p=l.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/yabrowser/i],describe:function(u){var f={name:"Yandex Browser"},p=l.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/ucbrowser/i],describe:function(u){var f={name:"UC Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/Maxthon|mxios/i],describe:function(u){var f={name:"Maxthon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/epiphany/i],describe:function(u){var f={name:"Epiphany"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/puffin/i],describe:function(u){var f={name:"Puffin"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sleipnir/i],describe:function(u){var f={name:"Sleipnir"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/k-meleon/i],describe:function(u){var f={name:"K-Meleon"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/micromessenger/i],describe:function(u){var f={name:"WeChat"},p=l.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/qqbrowser/i],describe:function(u){var f={name:/qqbrowserlite/i.test(u)?"QQ Browser Lite":"QQ Browser"},p=l.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/msie|trident/i],describe:function(u){var f={name:"Internet Explorer"},p=l.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/\sedg\//i],describe:function(u){var f={name:"Microsoft Edge"},p=l.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/edg([ea]|ios)/i],describe:function(u){var f={name:"Microsoft Edge"},p=l.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/vivaldi/i],describe:function(u){var f={name:"Vivaldi"},p=l.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/seamonkey/i],describe:function(u){var f={name:"SeaMonkey"},p=l.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sailfish/i],describe:function(u){var f={name:"Sailfish"},p=l.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,u);return p&&(f.version=p),f}},{test:[/silk/i],describe:function(u){var f={name:"Amazon Silk"},p=l.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/phantom/i],describe:function(u){var f={name:"PhantomJS"},p=l.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/slimerjs/i],describe:function(u){var f={name:"SlimerJS"},p=l.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(u){var f={name:"BlackBerry"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/(web|hpw)[o0]s/i],describe:function(u){var f={name:"WebOS Browser"},p=l.default.getFirstMatch(h,u)||l.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/bada/i],describe:function(u){var f={name:"Bada"},p=l.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/tizen/i],describe:function(u){var f={name:"Tizen"},p=l.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/qupzilla/i],describe:function(u){var f={name:"QupZilla"},p=l.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/librewolf/i],describe:function(u){var f={name:"LibreWolf"},p=l.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/firefox|iceweasel|fxios/i],describe:function(u){var f={name:"Firefox"},p=l.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/electron/i],describe:function(u){var f={name:"Electron"},p=l.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(u){var f={name:"Sogou Browser"},p=l.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,u),w=l.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,u),b=l.default.getFirstMatch(/se ([\d.]+)x/i,u),v=p||w||b;return v&&(f.version=v),f}},{test:[/MiuiBrowser/i],describe:function(u){var f={name:"Miui"},p=l.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){return!!u.hasBrand("DuckDuckGo")||u.test(/\sDdg\/[\d.]+$/i)},describe:function(u,f){var p={name:"DuckDuckGo"};if(f){var w=f.getBrandVersion("DuckDuckGo");if(w)return p.version=w,p}var b=l.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,u);return b&&(p.version=b),p}},{test:function(u){return u.hasBrand("Brave")},describe:function(u,f){var p={name:"Brave"};if(f){var w=f.getBrandVersion("Brave");if(w)return p.version=w,p}return p}},{test:[/chromium/i],describe:function(u){var f={name:"Chromium"},p=l.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,u)||l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/chrome|crios|crmo/i],describe:function(u){var f={name:"Chrome"},p=l.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/GSA/i],describe:function(u){var f={name:"Google Search"},p=l.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){var f=!u.test(/like android/i),p=u.test(/android/i);return f&&p},describe:function(u){var f={name:"Android Browser"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/playstation 4/i],describe:function(u){var f={name:"PlayStation 4"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/safari|applewebkit/i],describe:function(u){var f={name:"Safari"},p=l.default.getFirstMatch(h,u);return p&&(f.version=p),f}},{test:[/.*/i],describe:function(u){var f=u.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:l.default.getFirstMatch(f,u),version:l.default.getSecondMatch(f,u)}}}],r.exports=i.default},93:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:[/Roku\/DVP/],describe:function(u){var f=l.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,u);return{name:h.OS_MAP.Roku,version:f}}},{test:[/windows phone/i],describe:function(u){var f=l.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.WindowsPhone,version:f}}},{test:[/windows /i],describe:function(u){var f=l.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,u),p=l.default.getWindowsVersionName(f);return{name:h.OS_MAP.Windows,version:f,versionName:p}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(u){var f={name:h.OS_MAP.iOS},p=l.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,u);return p&&(f.version=p),f}},{test:[/macintosh/i],describe:function(u){var f=l.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,u).replace(/[_\s]/g,"."),p=l.default.getMacOSVersionName(f),w={name:h.OS_MAP.MacOS,version:f};return p&&(w.versionName=p),w}},{test:[/(ipod|iphone|ipad)/i],describe:function(u){var f=l.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,u).replace(/[_\s]/g,".");return{name:h.OS_MAP.iOS,version:f}}},{test:[/OpenHarmony/i],describe:function(u){var f=l.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.HarmonyOS,version:f}}},{test:function(u){var f=!u.test(/like android/i),p=u.test(/android/i);return f&&p},describe:function(u){var f=l.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,u),p=l.default.getAndroidVersionName(f),w={name:h.OS_MAP.Android,version:f};return p&&(w.versionName=p),w}},{test:[/(web|hpw)[o0]s/i],describe:function(u){var f=l.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,u),p={name:h.OS_MAP.WebOS};return f&&f.length&&(p.version=f),p}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(u){var f=l.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,u)||l.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,u)||l.default.getFirstMatch(/\bbb(\d+)/i,u);return{name:h.OS_MAP.BlackBerry,version:f}}},{test:[/bada/i],describe:function(u){var f=l.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.Bada,version:f}}},{test:[/tizen/i],describe:function(u){var f=l.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.Tizen,version:f}}},{test:[/linux/i],describe:function(){return{name:h.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:h.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(u){var f=l.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,u);return{name:h.OS_MAP.PlayStation4,version:f}}}],r.exports=i.default},94:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:[/googlebot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:h.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(u){var f=l.default.getFirstMatch(/(can-l01)/i,u)&&"Nova",p={type:h.PLATFORMS_MAP.mobile,vendor:"Huawei"};return f&&(p.model=f),p}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(u){var f=u.test(/ipod|iphone/i),p=u.test(/like (ipod|iphone)/i);return f&&!p},describe:function(u){var f=l.default.getFirstMatch(/(ipod|iphone)/i,u);return{type:h.PLATFORMS_MAP.mobile,vendor:"Apple",model:f}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(u){var f=l.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,u),p={type:h.PLATFORMS_MAP.mobile,vendor:"Nokia"};return f&&(p.model=f),p}},{test:[/[^-]mobi/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(u){return u.getBrowserName(!0)==="blackberry"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(u){return u.getBrowserName(!0)==="bada"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(u){return u.getBrowserName()==="windows phone"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(u){var f=Number(String(u.getOSVersion()).split(".")[0]);return u.getOSName(!0)==="android"&&f>=3},describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(u){return u.getOSName(!0)==="android"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(u){return u.getOSName(!0)==="macos"},describe:function(){return{type:h.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(u){return u.getOSName(!0)==="windows"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(u){return u.getOSName(!0)==="linux"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(u){return u.getOSName(!0)==="playstation 4"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(u){return u.getOSName(!0)==="roku"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}}],r.exports=i.default},95:function(r,i,a){"use strict";i.__esModule=!0,i.default=void 0;var s,l=(s=a(17))&&s.__esModule?s:{default:s},h=a(18);i.default=[{test:function(u){return u.getBrowserName(!0)==="microsoft edge"},describe:function(u){if(/\sedg\//i.test(u))return{name:h.ENGINE_MAP.Blink};var f=l.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,u);return{name:h.ENGINE_MAP.EdgeHTML,version:f}}},{test:[/trident/i],describe:function(u){var f={name:h.ENGINE_MAP.Trident},p=l.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){return u.test(/presto/i)},describe:function(u){var f={name:h.ENGINE_MAP.Presto},p=l.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:function(u){var f=u.test(/gecko/i),p=u.test(/like gecko/i);return f&&!p},describe:function(u){var f={name:h.ENGINE_MAP.Gecko},p=l.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:h.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(u){var f={name:h.ENGINE_MAP.WebKit},p=l.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,u);return p&&(f.version=p),f}}],r.exports=i.default}})}))})),nu=Fi(n2(),1);function r2(e,t){typeof unsafeWindow<"u"&&(unsafeWindow[e]=t),typeof window<"u"&&(window[e]=t)}function Me(...e){return console.log("MangaOnlineViewer-main-min: ",...e),e}function kn(...e){return["dev","development"].includes("main-min")&&console.info("MangaOnlineViewer: ",...e),e}function ru(e){typeof GM_deleteValue<"u"?GM_deleteValue(e):kn("Fake Removing: ",e)}var As=typeof GM_info<"u"?GM_info:{scriptHandler:"Console",script:{name:"Debug",version:"Testing"}};function o2(e,t){return typeof GM_getValue<"u"?GM_getValue(e,t):(kn("Fake Getting: ",e," = ",t),t)}function ou(e,t){const r=o2(e,t);if(typeof r=="string"&&r.trim()!=="")try{return JSON.parse(r)}catch(i){return Me("Failed to parse JSON from storage",e,i),t}return r}function i2(e){return ou("settings",e)}function a2(e){return ou(window.location.hostname,e)}function iu(e,t){return typeof GM_setValue<"u"?(GM_setValue(e,t),Me("Setting: ",e," = ",t),t.toString()):(kn("Fake Setting: ",e," = ",t),String(t))}function s2(e){return iu("settings",e)}function au(e){return iu(window.location.hostname,e)}function l2(){const e=nu.default.getParser(window.navigator.userAgent).getBrowser();return`${e.name} ${e.version}`}function c2(){return As.scriptHandler??"Greasemonkey"}var Vo=()=>{const e=nu.default.getParser(window.navigator.userAgent).getPlatformType(!0);return e==="mobile"||window.matchMedia("screen and (max-width: 600px)").matches?"mobile":e==="tablet"||window.matchMedia("screen and (max-width: 992px)").matches?"tablet":"desktop"},u2=()=>Vo()==="mobile"||Vo()==="tablet",Ss=()=>window.location.protocol==="file:"||window.location.pathname.endsWith("Manga_Local_Viewer.html"),su=(e,t="settings")=>{if(typeof GM_addValueChangeListener<"u")try{return GM_addValueChangeListener(t,(r,i,a,s)=>{s&&e(a)})}catch(r){Me("Failed to add settings listener",r)}},d2=yn(((e,t)=>{(function(){var r,i="4.18.1",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",h="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,w="__lodash_placeholder__",b=1,v=2,m=4,E=1,y=2,A=1,x=2,L=4,T=8,z=16,K=32,q=64,oe=128,W=256,ge=512,_e=30,P="...",X=800,S=16,Q=1,Ie=2,ue=3,Ce=1/0,ie=9007199254740991,xe=17976931348623157e292,U=NaN,G=4294967295,Ae=G-1,me=G>>>1,fe=[["ary",oe],["bind",A],["bindKey",x],["curry",T],["curryRight",z],["flip",ge],["partial",K],["partialRight",q],["rearg",W]],je="[object Arguments]",pt="[object Array]",Ue="[object AsyncFunction]",Ge="[object Boolean]",dt="[object Date]",gt="[object DOMException]",Zt="[object Error]",Ht="[object Function]",_="[object GeneratorFunction]",J="[object Map]",Z="[object Number]",O="[object Null]",C="[object Object]",N="[object Promise]",ae="[object Proxy]",se="[object RegExp]",H="[object Set]",de="[object String]",ve="[object Symbol]",he="[object Undefined]",Ee="[object WeakMap]",et="[object WeakSet]",We="[object ArrayBuffer]",Ct="[object DataView]",nr="[object Float32Array]",Qt="[object Float64Array]",rr="[object Int8Array]",at="[object Int16Array]",Ar="[object Int32Array]",Xr="[object Uint8Array]",gn="[object Uint8ClampedArray]",To="[object Uint16Array]",Ai="[object Uint32Array]",Hl=/\b__p \+= '';/g,Fl=/\b(__p \+=) '' \+/g,Da=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sr=/&(?:amp|lt|gt|quot|#39);/g,Jr=/[&<>"']/g,K9=RegExp(Sr.source),Y9=RegExp(Jr.source),X9=/<%-([\s\S]+?)%>/g,J9=/<%([\s\S]+?)%>/g,mh=/<%=([\s\S]+?)%>/g,Q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e7=/^\w*$/,t7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gl=/[\\^$.*+?()[\]{}|]/g,n7=RegExp(Gl.source),Wl=/^\s+/,r7=/\s/,o7=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i7=/\{\n\/\* \[wrapped with (.+)\] \*/,a7=/,? & /,s7=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vh=/[()=,{}\[\]\/\s]/,l7=/\\(\\)?/g,c7=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bh=/\w*$/,u7=/^[-+]0x[0-9a-f]+$/i,d7=/^0b[01]+$/i,h7=/^\[object .+?Constructor\]$/,f7=/^0o[0-7]+$/i,p7=/^(?:0|[1-9]\d*)$/,g7=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,za=/($^)/,m7=/['\n\r\u2028\u2029\\]/g,Na="\\ud800-\\udfff",wh="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_h="\\u2700-\\u27bf",yh="a-z\\xdf-\\xf6\\xf8-\\xff",v7="\\xac\\xb1\\xd7\\xf7",b7="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",w7="\\u2000-\\u206f",_7=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kh="A-Z\\xc0-\\xd6\\xd8-\\xde",Eh="\\ufe0e\\ufe0f",Ah=v7+b7+w7+_7,Ul="['’]",y7="["+Na+"]",Sh="["+Ah+"]",Ba="["+wh+"]",Mh="\\d+",k7="["+_h+"]",xh="["+yh+"]",Ih="[^"+Na+Ah+Mh+_h+yh+kh+"]",Vl="\\ud83c[\\udffb-\\udfff]",E7="(?:"+Ba+"|"+Vl+")",Ch="[^"+Na+"]",Zl="(?:\\ud83c[\\udde6-\\uddff]){2}",ql="[\\ud800-\\udbff][\\udc00-\\udfff]",Lo="["+kh+"]",Oh="\\u200d",Th="(?:"+xh+"|"+Ih+")",A7="(?:"+Lo+"|"+Ih+")",Lh="(?:"+Ul+"(?:d|ll|m|re|s|t|ve))?",Rh="(?:"+Ul+"(?:D|LL|M|RE|S|T|VE))?",Ph=E7+"?",$h="["+Eh+"]?",S7="(?:"+Oh+"(?:"+[Ch,Zl,ql].join("|")+")"+$h+Ph+")*",M7="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x7="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dh=$h+Ph+S7,I7="(?:"+[k7,Zl,ql].join("|")+")"+Dh,C7="(?:"+[Ch+Ba+"?",Ba,Zl,ql,y7].join("|")+")",O7=RegExp(Ul,"g"),T7=RegExp(Ba,"g"),jl=RegExp(Vl+"(?="+Vl+")|"+C7+Dh,"g"),L7=RegExp([Lo+"?"+xh+"+"+Lh+"(?="+[Sh,Lo,"$"].join("|")+")",A7+"+"+Rh+"(?="+[Sh,Lo+Th,"$"].join("|")+")",Lo+"?"+Th+"+"+Lh,Lo+"+"+Rh,x7,M7,Mh,I7].join("|"),"g"),R7=RegExp("["+Oh+Na+wh+Eh+"]"),P7=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$7=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D7=-1,st={};st[nr]=st[Qt]=st[rr]=st[at]=st[Ar]=st[Xr]=st[gn]=st[To]=st[Ai]=!0,st[je]=st[pt]=st[We]=st[Ge]=st[Ct]=st[dt]=st[Zt]=st[Ht]=st[J]=st[Z]=st[C]=st[se]=st[H]=st[de]=st[Ee]=!1;var ot={};ot[je]=ot[pt]=ot[We]=ot[Ct]=ot[Ge]=ot[dt]=ot[nr]=ot[Qt]=ot[rr]=ot[at]=ot[Ar]=ot[J]=ot[Z]=ot[C]=ot[se]=ot[H]=ot[de]=ot[ve]=ot[Xr]=ot[gn]=ot[To]=ot[Ai]=!0,ot[Zt]=ot[Ht]=ot[Ee]=!1;var z7={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},N7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},B7={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},H7={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},F7=parseFloat,G7=parseInt,zh=typeof global=="object"&&global&&global.Object===Object&&global,W7=typeof self=="object"&&self&&self.Object===Object&&self,Rt=zh||W7||Function("return this")(),Kl=typeof e=="object"&&e&&!e.nodeType&&e,Qr=Kl&&typeof t=="object"&&t&&!t.nodeType&&t,Nh=Qr&&Qr.exports===Kl,Yl=Nh&&zh.process,xn=(function(){try{var D=Qr&&Qr.require&&Qr.require("util").types;return D||Yl&&Yl.binding&&Yl.binding("util")}catch{}})(),Bh=xn&&xn.isArrayBuffer,Hh=xn&&xn.isDate,Fh=xn&&xn.isMap,Gh=xn&&xn.isRegExp,Wh=xn&&xn.isSet,Uh=xn&&xn.isTypedArray;function mn(D,ee,V){switch(V.length){case 0:return D.call(ee);case 1:return D.call(ee,V[0]);case 2:return D.call(ee,V[0],V[1]);case 3:return D.call(ee,V[0],V[1],V[2])}return D.apply(ee,V)}function U7(D,ee,V,we){for(var $e=-1,Ye=D==null?0:D.length;++$e<Ye;){var Ot=D[$e];ee(we,Ot,V(Ot),D)}return we}function vn(D,ee){for(var V=-1,we=D==null?0:D.length;++V<we&&ee(D[V],V,D)!==!1;);return D}function V7(D,ee){for(var V=D==null?0:D.length;V--&&ee(D[V],V,D)!==!1;);return D}function Vh(D,ee){for(var V=-1,we=D==null?0:D.length;++V<we;)if(!ee(D[V],V,D))return!1;return!0}function Mr(D,ee){for(var V=-1,we=D==null?0:D.length,$e=0,Ye=[];++V<we;){var Ot=D[V];ee(Ot,V,D)&&(Ye[$e++]=Ot)}return Ye}function Ha(D,ee){return!!(D!=null&&D.length)&&Ro(D,ee,0)>-1}function Xl(D,ee,V){for(var we=-1,$e=D==null?0:D.length;++we<$e;)if(V(ee,D[we]))return!0;return!1}function ht(D,ee){for(var V=-1,we=D==null?0:D.length,$e=Array(we);++V<we;)$e[V]=ee(D[V],V,D);return $e}function xr(D,ee){for(var V=-1,we=ee.length,$e=D.length;++V<we;)D[$e+V]=ee[V];return D}function Jl(D,ee,V,we){var $e=-1,Ye=D==null?0:D.length;for(we&&Ye&&(V=D[++$e]);++$e<Ye;)V=ee(V,D[$e],$e,D);return V}function Z7(D,ee,V,we){var $e=D==null?0:D.length;for(we&&$e&&(V=D[--$e]);$e--;)V=ee(V,D[$e],$e,D);return V}function Ql(D,ee){for(var V=-1,we=D==null?0:D.length;++V<we;)if(ee(D[V],V,D))return!0;return!1}var q7=ec("length");function j7(D){return D.split("")}function K7(D){return D.match(s7)||[]}function Zh(D,ee,V){var we;return V(D,function($e,Ye,Ot){if(ee($e,Ye,Ot))return we=Ye,!1}),we}function Fa(D,ee,V,we){for(var $e=D.length,Ye=V+(we?1:-1);we?Ye--:++Ye<$e;)if(ee(D[Ye],Ye,D))return Ye;return-1}function Ro(D,ee,V){return ee===ee?sw(D,ee,V):Fa(D,qh,V)}function Y7(D,ee,V,we){for(var $e=V-1,Ye=D.length;++$e<Ye;)if(we(D[$e],ee))return $e;return-1}function qh(D){return D!==D}function jh(D,ee){var V=D==null?0:D.length;return V?nc(D,ee)/V:U}function ec(D){return function(ee){return ee==null?r:ee[D]}}function tc(D){return function(ee){return D==null?r:D[ee]}}function Kh(D,ee,V,we,$e){return $e(D,function(Ye,Ot,tt){V=we?(we=!1,Ye):ee(V,Ye,Ot,tt)}),V}function X7(D,ee){var V=D.length;for(D.sort(ee);V--;)D[V]=D[V].value;return D}function nc(D,ee){for(var V,we=-1,$e=D.length;++we<$e;){var Ye=ee(D[we]);Ye!==r&&(V=V===r?Ye:V+Ye)}return V}function rc(D,ee){for(var V=-1,we=Array(D);++V<D;)we[V]=ee(V);return we}function J7(D,ee){return ht(ee,function(V){return[V,D[V]]})}function Yh(D){return D&&D.slice(0,e1(D)+1).replace(Wl,"")}function bn(D){return function(ee){return D(ee)}}function oc(D,ee){return ht(ee,function(V){return D[V]})}function Si(D,ee){return D.has(ee)}function Xh(D,ee){for(var V=-1,we=D.length;++V<we&&Ro(ee,D[V],0)>-1;);return V}function Jh(D,ee){for(var V=D.length;V--&&Ro(ee,D[V],0)>-1;);return V}function Q7(D,ee){for(var V=D.length,we=0;V--;)D[V]===ee&&++we;return we}var ew=tc(z7),tw=tc(N7);function nw(D){return"\\"+H7[D]}function rw(D,ee){return D==null?r:D[ee]}function Po(D){return R7.test(D)}function ow(D){return P7.test(D)}function iw(D){for(var ee,V=[];!(ee=D.next()).done;)V.push(ee.value);return V}function ic(D){var ee=-1,V=Array(D.size);return D.forEach(function(we,$e){V[++ee]=[$e,we]}),V}function Qh(D,ee){return function(V){return D(ee(V))}}function Ir(D,ee){for(var V=-1,we=D.length,$e=0,Ye=[];++V<we;){var Ot=D[V];(Ot===ee||Ot===w)&&(D[V]=w,Ye[$e++]=V)}return Ye}function Ga(D){var ee=-1,V=Array(D.size);return D.forEach(function(we){V[++ee]=we}),V}function aw(D){var ee=-1,V=Array(D.size);return D.forEach(function(we){V[++ee]=[we,we]}),V}function sw(D,ee,V){for(var we=V-1,$e=D.length;++we<$e;)if(D[we]===ee)return we;return-1}function lw(D,ee,V){for(var we=V+1;we--;)if(D[we]===ee)return we;return we}function $o(D){return Po(D)?uw(D):q7(D)}function Nn(D){return Po(D)?dw(D):j7(D)}function e1(D){for(var ee=D.length;ee--&&r7.test(D.charAt(ee)););return ee}var cw=tc(B7);function uw(D){for(var ee=jl.lastIndex=0;jl.test(D);)++ee;return ee}function dw(D){return D.match(jl)||[]}function hw(D){return D.match(L7)||[]}var Cr=(function D(ee){ee=ee==null?Rt:Cr.defaults(Rt.Object(),ee,Cr.pick(Rt,$7));var V=ee.Array,we=ee.Date,$e=ee.Error,Ye=ee.Function,Ot=ee.Math,tt=ee.Object,ac=ee.RegExp,fw=ee.String,In=ee.TypeError,Wa=V.prototype,pw=Ye.prototype,Do=tt.prototype,Ua=ee["__core-js_shared__"],Va=pw.toString,Xe=Do.hasOwnProperty,gw=0,t1=(function(){var n=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),Za=Do.toString,mw=Va.call(tt),vw=Rt._,bw=ac("^"+Va.call(Xe).replace(Gl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qa=Nh?ee.Buffer:r,Or=ee.Symbol,ja=ee.Uint8Array,n1=qa?qa.allocUnsafe:r,Ka=Qh(tt.getPrototypeOf,tt),r1=tt.create,o1=Do.propertyIsEnumerable,Ya=Wa.splice,i1=Or?Or.isConcatSpreadable:r,Mi=Or?Or.iterator:r,eo=Or?Or.toStringTag:r,Xa=(function(){try{var n=io(tt,"defineProperty");return n({},"",{}),n}catch{}})(),ww=ee.clearTimeout!==Rt.clearTimeout&&ee.clearTimeout,_w=we&&we.now!==Rt.Date.now&&we.now,yw=ee.setTimeout!==Rt.setTimeout&&ee.setTimeout,Ja=Ot.ceil,Qa=Ot.floor,sc=tt.getOwnPropertySymbols,kw=qa?qa.isBuffer:r,a1=ee.isFinite,Ew=Wa.join,Aw=Qh(tt.keys,tt),Tt=Ot.max,Ft=Ot.min,Sw=we.now,Mw=ee.parseInt,s1=Ot.random,xw=Wa.reverse,lc=io(ee,"DataView"),xi=io(ee,"Map"),cc=io(ee,"Promise"),zo=io(ee,"Set"),Ii=io(ee,"WeakMap"),Ci=io(tt,"create"),es=Ii&&new Ii,No={},Iw=ao(lc),Cw=ao(xi),Ow=ao(cc),Tw=ao(zo),Lw=ao(Ii),ts=Or?Or.prototype:r,Oi=ts?ts.valueOf:r,l1=ts?ts.toString:r;function M(n){if(bt(n)&&!He(n)&&!(n instanceof Ze)){if(n instanceof Cn)return n;if(Xe.call(n,"__wrapped__"))return uf(n)}return new Cn(n)}var Bo=(function(){function n(){}return function(o){if(!mt(o))return{};if(r1)return r1(o);n.prototype=o;var c=new n;return n.prototype=r,c}})();function ns(){}function Cn(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}M.templateSettings={escape:X9,evaluate:J9,interpolate:mh,variable:"",imports:{_:M}},M.prototype=ns.prototype,M.prototype.constructor=M,Cn.prototype=Bo(ns.prototype),Cn.prototype.constructor=Cn;function Ze(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Rw(){var n=new Ze(this.__wrapped__);return n.__actions__=en(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=en(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=en(this.__views__),n}function Pw(){if(this.__filtered__){var n=new Ze(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function $w(){var n=this.__wrapped__.value(),o=this.__dir__,c=He(n),g=o<0,k=c?n.length:0,I=q8(0,k,this.__views__),R=I.start,$=I.end,B=$-R,re=g?$:R-1,te=this.__iteratees__,ce=te.length,be=0,ye=Ft(B,this.__takeCount__);if(!c||!g&&k==B&&ye==B)return L1(n,this.__actions__);var Oe=[];e:for(;B--&&be<ye;){re+=o;for(var ze=-1,Te=n[re];++ze<ce;){var nt=te[ze],qe=nt.iteratee,Kt=nt.type,Xn=qe(Te);if(Kt==Ie)Te=Xn;else if(!Xn){if(Kt==Q)continue e;break e}}Oe[be++]=Te}return Oe}Ze.prototype=Bo(ns.prototype),Ze.prototype.constructor=Ze;function to(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function Dw(){this.__data__=Ci?Ci(null):{},this.size=0}function zw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Nw(n){var o=this.__data__;if(Ci){var c=o[n];return c===f?r:c}return Xe.call(o,n)?o[n]:r}function Bw(n){var o=this.__data__;return Ci?o[n]!==r:Xe.call(o,n)}function Hw(n,o){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=Ci&&o===r?f:o,this}to.prototype.clear=Dw,to.prototype.delete=zw,to.prototype.get=Nw,to.prototype.has=Bw,to.prototype.set=Hw;function or(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function Fw(){this.__data__=[],this.size=0}function Gw(n){var o=this.__data__,c=rs(o,n);return c<0?!1:(c==o.length-1?o.pop():Ya.call(o,c,1),--this.size,!0)}function Ww(n){var o=this.__data__,c=rs(o,n);return c<0?r:o[c][1]}function Uw(n){return rs(this.__data__,n)>-1}function Vw(n,o){var c=this.__data__,g=rs(c,n);return g<0?(++this.size,c.push([n,o])):c[g][1]=o,this}or.prototype.clear=Fw,or.prototype.delete=Gw,or.prototype.get=Ww,or.prototype.has=Uw,or.prototype.set=Vw;function ir(n){var o=-1,c=n==null?0:n.length;for(this.clear();++o<c;){var g=n[o];this.set(g[0],g[1])}}function Zw(){this.size=0,this.__data__={hash:new to,map:new(xi||or),string:new to}}function qw(n){var o=gs(this,n).delete(n);return this.size-=o?1:0,o}function jw(n){return gs(this,n).get(n)}function Kw(n){return gs(this,n).has(n)}function Yw(n,o){var c=gs(this,n),g=c.size;return c.set(n,o),this.size+=c.size==g?0:1,this}ir.prototype.clear=Zw,ir.prototype.delete=qw,ir.prototype.get=jw,ir.prototype.has=Kw,ir.prototype.set=Yw;function no(n){var o=-1,c=n==null?0:n.length;for(this.__data__=new ir;++o<c;)this.add(n[o])}function Xw(n){return this.__data__.set(n,f),this}function Jw(n){return this.__data__.has(n)}no.prototype.add=no.prototype.push=Xw,no.prototype.has=Jw;function Bn(n){this.size=(this.__data__=new or(n)).size}function Qw(){this.__data__=new or,this.size=0}function e8(n){var o=this.__data__,c=o.delete(n);return this.size=o.size,c}function t8(n){return this.__data__.get(n)}function n8(n){return this.__data__.has(n)}function r8(n,o){var c=this.__data__;if(c instanceof or){var g=c.__data__;if(!xi||g.length<a-1)return g.push([n,o]),this.size=++c.size,this;c=this.__data__=new ir(g)}return c.set(n,o),this.size=c.size,this}Bn.prototype.clear=Qw,Bn.prototype.delete=e8,Bn.prototype.get=t8,Bn.prototype.has=n8,Bn.prototype.set=r8;function c1(n,o){var c=He(n),g=!c&&so(n),k=!c&&!g&&$r(n),I=!c&&!g&&!k&&Wo(n),R=c||g||k||I,$=R?rc(n.length,fw):[],B=$.length;for(var re in n)(o||Xe.call(n,re))&&!(R&&(re=="length"||k&&(re=="offset"||re=="parent")||I&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||lr(re,B)))&&$.push(re);return $}function u1(n){var o=n.length;return o?n[_c(0,o-1)]:r}function o8(n,o){return ms(en(n),ro(o,0,n.length))}function i8(n){return ms(en(n))}function uc(n,o,c){(c!==r&&!Fn(n[o],c)||c===r&&!(o in n))&&jn(n,o,c)}function Ti(n,o,c){var g=n[o];(!(Xe.call(n,o)&&Fn(g,c))||c===r&&!(o in n))&&jn(n,o,c)}function rs(n,o){for(var c=n.length;c--;)if(Fn(n[c][0],o))return c;return-1}function a8(n,o,c,g){return Tr(n,function(k,I,R){o(g,k,c(k),R)}),g}function d1(n,o){return n&&Yn(o,Pt(o),n)}function s8(n,o){return n&&Yn(o,nn(o),n)}function jn(n,o,c){o=="__proto__"&&Xa?Xa(n,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):n[o]=c}function dc(n,o){for(var c=-1,g=o.length,k=V(g),I=n==null;++c<g;)k[c]=I?r:Zc(n,o[c]);return k}function ro(n,o,c){return n===n&&(c!==r&&(n=n<=c?n:c),o!==r&&(n=n>=o?n:o)),n}function On(n,o,c,g,k,I){var R,$=o&b,B=o&v,re=o&m;if(c&&(R=k?c(n,g,k,I):c(n)),R!==r)return R;if(!mt(n))return n;var te=He(n);if(te){if(R=K8(n),!$)return en(n,R)}else{var ce=Gt(n),be=ce==Ht||ce==_;if($r(n))return $1(n,$);if(ce==C||ce==je||be&&!k){if(R=B||be?{}:ef(n),!$)return B?N8(n,s8(R,n)):z8(n,d1(R,n))}else{if(!ot[ce])return k?n:{};R=Y8(n,ce,$)}}I||(I=new Bn);var ye=I.get(n);if(ye)return ye;I.set(n,R),Of(n)?n.forEach(function(ze){R.add(On(ze,o,c,ze,n,I))}):If(n)&&n.forEach(function(ze,Te){R.set(Te,On(ze,o,c,Te,n,I))});var Oe=te?r:(re?B?Tc:Oc:B?nn:Pt)(n);return vn(Oe||n,function(ze,Te){Oe&&(Te=ze,ze=n[Te]),Ti(R,Te,On(ze,o,c,Te,n,I))}),R}function l8(n){var o=Pt(n);return function(c){return h1(c,n,o)}}function h1(n,o,c){var g=c.length;if(n==null)return!g;for(n=tt(n);g--;){var k=c[g],I=o[k],R=n[k];if(R===r&&!(k in n)||!I(R))return!1}return!0}function f1(n,o,c){if(typeof n!="function")throw new In(l);return Ni(function(){n.apply(r,c)},o)}function Li(n,o,c,g){var k=-1,I=Ha,R=!0,$=n.length,B=[],re=o.length;if(!$)return B;c&&(o=ht(o,bn(c))),g?(I=Xl,R=!1):o.length>=a&&(I=Si,R=!1,o=new no(o));e:for(;++k<$;){var te=n[k],ce=c==null?te:c(te);if(te=g||te!==0?te:0,R&&ce===ce){for(var be=re;be--;)if(o[be]===ce)continue e;B.push(te)}else I(o,ce,g)||B.push(te)}return B}var Tr=H1(Kn),p1=H1(fc,!0);function c8(n,o){var c=!0;return Tr(n,function(g,k,I){return c=!!o(g,k,I),c}),c}function os(n,o,c){for(var g=-1,k=n.length;++g<k;){var I=n[g],R=o(I);if(R!=null&&($===r?R===R&&!_n(R):c(R,$)))var $=R,B=I}return B}function u8(n,o,c,g){var k=n.length;for(c=Fe(c),c<0&&(c=-c>k?0:k+c),g=g===r||g>k?k:Fe(g),g<0&&(g+=k),g=c>g?0:Lf(g);c<g;)n[c++]=o;return n}function g1(n,o){var c=[];return Tr(n,function(g,k,I){o(g,k,I)&&c.push(g)}),c}function Nt(n,o,c,g,k){var I=-1,R=n.length;for(c||(c=J8),k||(k=[]);++I<R;){var $=n[I];o>0&&c($)?o>1?Nt($,o-1,c,g,k):xr(k,$):g||(k[k.length]=$)}return k}var hc=F1(),m1=F1(!0);function Kn(n,o){return n&&hc(n,o,Pt)}function fc(n,o){return n&&m1(n,o,Pt)}function is(n,o){return Mr(o,function(c){return cr(n[c])})}function oo(n,o){o=Rr(o,n);for(var c=0,g=o.length;n!=null&&c<g;)n=n[Hn(o[c++])];return c&&c==g?n:r}function v1(n,o,c){var g=o(n);return He(n)?g:xr(g,c(n))}function qt(n){return n==null?n===r?he:O:eo&&eo in tt(n)?Z8(n):i_(n)}function pc(n,o){return n>o}function d8(n,o){return n!=null&&Xe.call(n,o)}function h8(n,o){return n!=null&&o in tt(n)}function f8(n,o,c){return n>=Ft(o,c)&&n<Tt(o,c)}function gc(n,o,c){for(var g=c?Xl:Ha,k=n[0].length,I=n.length,R=I,$=V(I),B=1/0,re=[];R--;){var te=n[R];R&&o&&(te=ht(te,bn(o))),B=Ft(te.length,B),$[R]=!c&&(o||k>=120&&te.length>=120)?new no(R&&te):r}te=n[0];var ce=-1,be=$[0];e:for(;++ce<k&&re.length<B;){var ye=te[ce],Oe=o?o(ye):ye;if(ye=c||ye!==0?ye:0,!(be?Si(be,Oe):g(re,Oe,c))){for(R=I;--R;){var ze=$[R];if(!(ze?Si(ze,Oe):g(n[R],Oe,c)))continue e}be&&be.push(Oe),re.push(ye)}}return re}function p8(n,o,c,g){return Kn(n,function(k,I,R){o(g,c(k),I,R)}),g}function Ri(n,o,c){o=Rr(o,n),n=of(n,o);var g=n==null?n:n[Hn(Ln(o))];return g==null?r:mn(g,n,c)}function b1(n){return bt(n)&&qt(n)==je}function g8(n){return bt(n)&&qt(n)==We}function m8(n){return bt(n)&&qt(n)==dt}function Pi(n,o,c,g,k){return n===o?!0:n==null||o==null||!bt(n)&&!bt(o)?n!==n&&o!==o:v8(n,o,c,g,Pi,k)}function v8(n,o,c,g,k,I){var R=He(n),$=He(o),B=R?pt:Gt(n),re=$?pt:Gt(o);B=B==je?C:B,re=re==je?C:re;var te=B==C,ce=re==C,be=B==re;if(be&&$r(n)){if(!$r(o))return!1;R=!0,te=!1}if(be&&!te)return I||(I=new Bn),R||Wo(n)?X1(n,o,c,g,k,I):U8(n,o,B,c,g,k,I);if(!(c&E)){var ye=te&&Xe.call(n,"__wrapped__"),Oe=ce&&Xe.call(o,"__wrapped__");if(ye||Oe){var ze=ye?n.value():n,Te=Oe?o.value():o;return I||(I=new Bn),k(ze,Te,c,g,I)}}return be?(I||(I=new Bn),V8(n,o,c,g,k,I)):!1}function b8(n){return bt(n)&&Gt(n)==J}function mc(n,o,c,g){var k=c.length,I=k,R=!g;if(n==null)return!I;for(n=tt(n);k--;){var $=c[k];if(R&&$[2]?$[1]!==n[$[0]]:!($[0]in n))return!1}for(;++k<I;){$=c[k];var B=$[0],re=n[B],te=$[1];if(R&&$[2]){if(re===r&&!(B in n))return!1}else{var ce=new Bn;if(g)var be=g(re,te,B,n,o,ce);if(!(be===r?Pi(te,re,E|y,g,ce):be))return!1}}return!0}function w1(n){return!mt(n)||e_(n)?!1:(cr(n)?bw:h7).test(ao(n))}function w8(n){return bt(n)&&qt(n)==se}function _8(n){return bt(n)&&Gt(n)==H}function y8(n){return bt(n)&&ks(n.length)&&!!st[qt(n)]}function _1(n){return typeof n=="function"?n:n==null?rn:typeof n=="object"?He(n)?E1(n[0],n[1]):k1(n):Uf(n)}function vc(n){if(!zi(n))return Aw(n);var o=[];for(var c in tt(n))Xe.call(n,c)&&c!="constructor"&&o.push(c);return o}function k8(n){if(!mt(n))return o_(n);var o=zi(n),c=[];for(var g in n)g=="constructor"&&(o||!Xe.call(n,g))||c.push(g);return c}function bc(n,o){return n<o}function y1(n,o){var c=-1,g=tn(n)?V(n.length):[];return Tr(n,function(k,I,R){g[++c]=o(k,I,R)}),g}function k1(n){var o=Rc(n);return o.length==1&&o[0][2]?nf(o[0][0],o[0][1]):function(c){return c===n||mc(c,n,o)}}function E1(n,o){return $c(n)&&tf(o)?nf(Hn(n),o):function(c){var g=Zc(c,n);return g===r&&g===o?qc(c,n):Pi(o,g,E|y)}}function as(n,o,c,g,k){n!==o&&hc(o,function(I,R){if(k||(k=new Bn),mt(I))E8(n,o,R,c,as,g,k);else{var $=g?g(zc(n,R),I,R+"",n,o,k):r;$===r&&($=I),uc(n,R,$)}},nn)}function E8(n,o,c,g,k,I,R){var $=zc(n,c),B=zc(o,c),re=R.get(B);if(re){uc(n,c,re);return}var te=I?I($,B,c+"",n,o,R):r,ce=te===r;if(ce){var be=He(B),ye=!be&&$r(B),Oe=!be&&!ye&&Wo(B);te=B,be||ye||Oe?He($)?te=$:wt($)?te=en($):ye?(ce=!1,te=$1(B,!0)):Oe?(ce=!1,te=D1(B,!0)):te=[]:Bi(B)||so(B)?(te=$,so($)?te=Rf($):(!mt($)||cr($))&&(te=ef(B))):ce=!1}ce&&(R.set(B,te),k(te,B,g,I,R),R.delete(B)),uc(n,c,te)}function A1(n,o){var c=n.length;if(c)return o+=o<0?c:0,lr(o,c)?n[o]:r}function S1(n,o,c){o.length?o=ht(o,function(k){return He(k)?function(I){return oo(I,k.length===1?k[0]:k)}:k}):o=[rn];var g=-1;return o=ht(o,bn(Le())),X7(y1(n,function(k,I,R){return{criteria:ht(o,function($){return $(k)}),index:++g,value:k}}),function(k,I){return D8(k,I,c)})}function A8(n,o){return M1(n,o,function(c,g){return qc(n,g)})}function M1(n,o,c){for(var g=-1,k=o.length,I={};++g<k;){var R=o[g],$=oo(n,R);c($,R)&&$i(I,Rr(R,n),$)}return I}function S8(n){return function(o){return oo(o,n)}}function wc(n,o,c,g){var k=g?Y7:Ro,I=-1,R=o.length,$=n;for(n===o&&(o=en(o)),c&&($=ht(n,bn(c)));++I<R;)for(var B=0,re=o[I],te=c?c(re):re;(B=k($,te,B,g))>-1;)$!==n&&Ya.call($,B,1),Ya.call(n,B,1);return n}function x1(n,o){for(var c=n?o.length:0,g=c-1;c--;){var k=o[c];if(c==g||k!==I){var I=k;lr(k)?Ya.call(n,k,1):Ec(n,k)}}return n}function _c(n,o){return n+Qa(s1()*(o-n+1))}function M8(n,o,c,g){for(var k=-1,I=Tt(Ja((o-n)/(c||1)),0),R=V(I);I--;)R[g?I:++k]=n,n+=c;return R}function yc(n,o){var c="";if(!n||o<1||o>ie)return c;do o%2&&(c+=n),o=Qa(o/2),o&&(n+=n);while(o);return c}function Ve(n,o){return Nc(rf(n,o,rn),n+"")}function x8(n){return u1(Uo(n))}function I8(n,o){var c=Uo(n);return ms(c,ro(o,0,c.length))}function $i(n,o,c,g){if(!mt(n))return n;o=Rr(o,n);for(var k=-1,I=o.length,R=I-1,$=n;$!=null&&++k<I;){var B=Hn(o[k]),re=c;if(B==="__proto__"||B==="constructor"||B==="prototype")return n;if(k!=R){var te=$[B];re=g?g(te,B,$):r,re===r&&(re=mt(te)?te:lr(o[k+1])?[]:{})}Ti($,B,re),$=$[B]}return n}var I1=es?function(n,o){return es.set(n,o),n}:rn,C8=Xa?function(n,o){return Xa(n,"toString",{configurable:!0,enumerable:!1,value:Kc(o),writable:!0})}:rn;function O8(n){return ms(Uo(n))}function Tn(n,o,c){var g=-1,k=n.length;o<0&&(o=-o>k?0:k+o),c=c>k?k:c,c<0&&(c+=k),k=o>c?0:c-o>>>0,o>>>=0;for(var I=V(k);++g<k;)I[g]=n[g+o];return I}function T8(n,o){var c;return Tr(n,function(g,k,I){return c=o(g,k,I),!c}),!!c}function ss(n,o,c){var g=0,k=n==null?g:n.length;if(typeof o=="number"&&o===o&&k<=me){for(;g<k;){var I=g+k>>>1,R=n[I];R!==null&&!_n(R)&&(c?R<=o:R<o)?g=I+1:k=I}return k}return kc(n,o,rn,c)}function kc(n,o,c,g){var k=0,I=n==null?0:n.length;if(I===0)return 0;o=c(o);for(var R=o!==o,$=o===null,B=_n(o),re=o===r;k<I;){var te=Qa((k+I)/2),ce=c(n[te]),be=ce!==r,ye=ce===null,Oe=ce===ce,ze=_n(ce);if(R)var Te=g||Oe;else re?Te=Oe&&(g||be):$?Te=Oe&&be&&(g||!ye):B?Te=Oe&&be&&!ye&&(g||!ze):ye||ze?Te=!1:Te=g?ce<=o:ce<o;Te?k=te+1:I=te}return Ft(I,Ae)}function C1(n,o){for(var c=-1,g=n.length,k=0,I=[];++c<g;){var R=n[c],$=o?o(R):R;if(!c||!Fn($,B)){var B=$;I[k++]=R===0?0:R}}return I}function O1(n){return typeof n=="number"?n:_n(n)?U:+n}function wn(n){if(typeof n=="string")return n;if(He(n))return ht(n,wn)+"";if(_n(n))return l1?l1.call(n):"";var o=n+"";return o=="0"&&1/n==-Ce?"-0":o}function Lr(n,o,c){var g=-1,k=Ha,I=n.length,R=!0,$=[],B=$;if(c)R=!1,k=Xl;else if(I>=a){var re=o?null:G8(n);if(re)return Ga(re);R=!1,k=Si,B=new no}else B=o?[]:$;e:for(;++g<I;){var te=n[g],ce=o?o(te):te;if(te=c||te!==0?te:0,R&&ce===ce){for(var be=B.length;be--;)if(B[be]===ce)continue e;o&&B.push(ce),$.push(te)}else k(B,ce,c)||(B!==$&&B.push(ce),$.push(te))}return $}function Ec(n,o){o=Rr(o,n);var c=-1,g=o.length;if(!g)return!0;for(;++c<g;){var k=Hn(o[c]);if(k==="__proto__"&&!Xe.call(n,"__proto__")||(k==="constructor"||k==="prototype")&&c<g-1)return!1}var I=of(n,o);return I==null||delete I[Hn(Ln(o))]}function T1(n,o,c,g){return $i(n,o,c(oo(n,o)),g)}function ls(n,o,c,g){for(var k=n.length,I=g?k:-1;(g?I--:++I<k)&&o(n[I],I,n););return c?Tn(n,g?0:I,g?I+1:k):Tn(n,g?I+1:0,g?k:I)}function L1(n,o){var c=n;return c instanceof Ze&&(c=c.value()),Jl(o,function(g,k){return k.func.apply(k.thisArg,xr([g],k.args))},c)}function Ac(n,o,c){var g=n.length;if(g<2)return g?Lr(n[0]):[];for(var k=-1,I=V(g);++k<g;)for(var R=n[k],$=-1;++$<g;)$!=k&&(I[k]=Li(I[k]||R,n[$],o,c));return Lr(Nt(I,1),o,c)}function R1(n,o,c){for(var g=-1,k=n.length,I=o.length,R={};++g<k;){var $=g<I?o[g]:r;c(R,n[g],$)}return R}function Sc(n){return wt(n)?n:[]}function Mc(n){return typeof n=="function"?n:rn}function Rr(n,o){return He(n)?n:$c(n,o)?[n]:cf(Je(n))}var L8=Ve;function Pr(n,o,c){var g=n.length;return c=c===r?g:c,!o&&c>=g?n:Tn(n,o,c)}var P1=ww||function(n){return Rt.clearTimeout(n)};function $1(n,o){if(o)return n.slice();var c=n.length,g=n1?n1(c):new n.constructor(c);return n.copy(g),g}function xc(n){var o=new n.constructor(n.byteLength);return new ja(o).set(new ja(n)),o}function R8(n,o){var c=o?xc(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.byteLength)}function P8(n){var o=new n.constructor(n.source,bh.exec(n));return o.lastIndex=n.lastIndex,o}function $8(n){return Oi?tt(Oi.call(n)):{}}function D1(n,o){var c=o?xc(n.buffer):n.buffer;return new n.constructor(c,n.byteOffset,n.length)}function z1(n,o){if(n!==o){var c=n!==r,g=n===null,k=n===n,I=_n(n),R=o!==r,$=o===null,B=o===o,re=_n(o);if(!$&&!re&&!I&&n>o||I&&R&&B&&!$&&!re||g&&R&&B||!c&&B||!k)return 1;if(!g&&!I&&!re&&n<o||re&&c&&k&&!g&&!I||$&&c&&k||!R&&k||!B)return-1}return 0}function D8(n,o,c){for(var g=-1,k=n.criteria,I=o.criteria,R=k.length,$=c.length;++g<R;){var B=z1(k[g],I[g]);if(B)return g>=$?B:B*(c[g]=="desc"?-1:1)}return n.index-o.index}function N1(n,o,c,g){for(var k=-1,I=n.length,R=c.length,$=-1,B=o.length,re=Tt(I-R,0),te=V(B+re),ce=!g;++$<B;)te[$]=o[$];for(;++k<R;)(ce||k<I)&&(te[c[k]]=n[k]);for(;re--;)te[$++]=n[k++];return te}function B1(n,o,c,g){for(var k=-1,I=n.length,R=-1,$=c.length,B=-1,re=o.length,te=Tt(I-$,0),ce=V(te+re),be=!g;++k<te;)ce[k]=n[k];for(var ye=k;++B<re;)ce[ye+B]=o[B];for(;++R<$;)(be||k<I)&&(ce[ye+c[R]]=n[k++]);return ce}function en(n,o){var c=-1,g=n.length;for(o||(o=V(g));++c<g;)o[c]=n[c];return o}function Yn(n,o,c,g){var k=!c;c||(c={});for(var I=-1,R=o.length;++I<R;){var $=o[I],B=g?g(c[$],n[$],$,c,n):r;B===r&&(B=n[$]),k?jn(c,$,B):Ti(c,$,B)}return c}function z8(n,o){return Yn(n,Pc(n),o)}function N8(n,o){return Yn(n,J1(n),o)}function cs(n,o){return function(c,g){var k=He(c)?U7:a8,I=o?o():{};return k(c,n,Le(g,2),I)}}function Ho(n){return Ve(function(o,c){var g=-1,k=c.length,I=k>1?c[k-1]:r,R=k>2?c[2]:r;for(I=n.length>3&&typeof I=="function"?(k--,I):r,R&&jt(c[0],c[1],R)&&(I=k<3?r:I,k=1),o=tt(o);++g<k;){var $=c[g];$&&n(o,$,g,I)}return o})}function H1(n,o){return function(c,g){if(c==null)return c;if(!tn(c))return n(c,g);for(var k=c.length,I=o?k:-1,R=tt(c);(o?I--:++I<k)&&g(R[I],I,R)!==!1;);return c}}function F1(n){return function(o,c,g){for(var k=-1,I=tt(o),R=g(o),$=R.length;$--;){var B=R[n?$:++k];if(c(I[B],B,I)===!1)break}return o}}function B8(n,o,c){var g=o&A,k=Di(n);function I(){return(this&&this!==Rt&&this instanceof I?k:n).apply(g?c:this,arguments)}return I}function G1(n){return function(o){o=Je(o);var c=Po(o)?Nn(o):r,g=c?c[0]:o.charAt(0),k=c?Pr(c,1).join(""):o.slice(1);return g[n]()+k}}function Fo(n){return function(o){return Jl(Gf(Ff(o).replace(O7,"")),n,"")}}function Di(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var c=Bo(n.prototype),g=n.apply(c,o);return mt(g)?g:c}}function H8(n,o,c){var g=Di(n);function k(){for(var I=arguments.length,R=V(I),$=I,B=Go(k);$--;)R[$]=arguments[$];var re=I<3&&R[0]!==B&&R[I-1]!==B?[]:Ir(R,B);return I-=re.length,I<c?q1(n,o,us,k.placeholder,r,R,re,r,r,c-I):mn(this&&this!==Rt&&this instanceof k?g:n,this,R)}return k}function W1(n){return function(o,c,g){var k=tt(o);if(!tn(o)){var I=Le(c,3);o=Pt(o),c=function($){return I(k[$],$,k)}}var R=n(o,c,g);return R>-1?k[I?o[R]:R]:r}}function U1(n){return sr(function(o){var c=o.length,g=c,k=Cn.prototype.thru;for(n&&o.reverse();g--;){var I=o[g];if(typeof I!="function")throw new In(l);if(k&&!R&&ps(I)=="wrapper")var R=new Cn([],!0)}for(g=R?g:c;++g<c;){I=o[g];var $=ps(I),B=$=="wrapper"?Lc(I):r;B&&Dc(B[0])&&B[1]==(oe|T|K|W)&&!B[4].length&&B[9]==1?R=R[ps(B[0])].apply(R,B[3]):R=I.length==1&&Dc(I)?R[$]():R.thru(I)}return function(){var re=arguments,te=re[0];if(R&&re.length==1&&He(te))return R.plant(te).value();for(var ce=0,be=c?o[ce].apply(this,re):te;++ce<c;)be=o[ce].call(this,be);return be}})}function us(n,o,c,g,k,I,R,$,B,re){var te=o&oe,ce=o&A,be=o&x,ye=o&(T|z),Oe=o&ge,ze=be?r:Di(n);function Te(){for(var nt=arguments.length,qe=V(nt),Kt=nt;Kt--;)qe[Kt]=arguments[Kt];if(ye)var Xn=Go(Te),Dr=Q7(qe,Xn);if(g&&(qe=N1(qe,g,k,ye)),I&&(qe=B1(qe,I,R,ye)),nt-=Dr,ye&&nt<re){var _t=Ir(qe,Xn);return q1(n,o,us,Te.placeholder,c,qe,_t,$,B,re-nt)}var Gn=ce?c:this,dr=be?Gn[n]:n;return nt=qe.length,$?qe=a_(qe,$):Oe&&nt>1&&qe.reverse(),te&&B<nt&&(qe.length=B),this&&this!==Rt&&this instanceof Te&&(dr=ze||Di(dr)),dr.apply(Gn,qe)}return Te}function V1(n,o){return function(c,g){return p8(c,n,o(g),{})}}function ds(n,o){return function(c,g){var k;if(c===r&&g===r)return o;if(c!==r&&(k=c),g!==r){if(k===r)return g;typeof c=="string"||typeof g=="string"?(c=wn(c),g=wn(g)):(c=O1(c),g=O1(g)),k=n(c,g)}return k}}function Ic(n){return sr(function(o){return o=ht(o,bn(Le())),Ve(function(c){var g=this;return n(o,function(k){return mn(k,g,c)})})})}function hs(n,o){o=o===r?" ":wn(o);var c=o.length;if(c<2)return c?yc(o,n):o;var g=yc(o,Ja(n/$o(o)));return Po(o)?Pr(Nn(g),0,n).join(""):g.slice(0,n)}function F8(n,o,c,g){var k=o&A,I=Di(n);function R(){for(var $=-1,B=arguments.length,re=-1,te=g.length,ce=V(te+B),be=this&&this!==Rt&&this instanceof R?I:n;++re<te;)ce[re]=g[re];for(;B--;)ce[re++]=arguments[++$];return mn(be,k?c:this,ce)}return R}function Z1(n){return function(o,c,g){return g&&typeof g!="number"&&jt(o,c,g)&&(c=g=r),o=ur(o),c===r?(c=o,o=0):c=ur(c),g=g===r?o<c?1:-1:ur(g),M8(o,c,g,n)}}function fs(n){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=Rn(o),c=Rn(c)),n(o,c)}}function q1(n,o,c,g,k,I,R,$,B,re){var te=o&T,ce=te?R:r,be=te?r:R,ye=te?I:r,Oe=te?r:I;o|=te?K:q,o&=~(te?q:K),o&L||(o&=~(A|x));var ze=[n,o,k,ye,ce,Oe,be,$,B,re],Te=c.apply(r,ze);return Dc(n)&&af(Te,ze),Te.placeholder=g,sf(Te,n,o)}function Cc(n){var o=Ot[n];return function(c,g){if(c=Rn(c),g=g==null?0:Ft(Fe(g),292),g&&a1(c)){var k=(Je(c)+"e").split("e");return k=(Je(o(k[0]+"e"+(+k[1]+g)))+"e").split("e"),+(k[0]+"e"+(+k[1]-g))}return o(c)}}var G8=zo&&1/Ga(new zo([,-0]))[1]==Ce?function(n){return new zo(n)}:Jc;function j1(n){return function(o){var c=Gt(o);return c==J?ic(o):c==H?aw(o):J7(o,n(o))}}function ar(n,o,c,g,k,I,R,$){var B=o&x;if(!B&&typeof n!="function")throw new In(l);var re=g?g.length:0;if(re||(o&=~(K|q),g=k=r),R=R===r?R:Tt(Fe(R),0),$=$===r?$:Fe($),re-=k?k.length:0,o&q){var te=g,ce=k;g=k=r}var be=B?r:Lc(n),ye=[n,o,c,g,k,te,ce,I,R,$];if(be&&r_(ye,be),n=ye[0],o=ye[1],c=ye[2],g=ye[3],k=ye[4],$=ye[9]=ye[9]===r?B?0:n.length:Tt(ye[9]-re,0),!$&&o&(T|z)&&(o&=~(T|z)),!o||o==A)var Oe=B8(n,o,c);else o==T||o==z?Oe=H8(n,o,$):(o==K||o==(A|K))&&!k.length?Oe=F8(n,o,c,g):Oe=us.apply(r,ye);return sf((be?I1:af)(Oe,ye),n,o)}function K1(n,o,c,g){return n===r||Fn(n,Do[c])&&!Xe.call(g,c)?o:n}function Y1(n,o,c,g,k,I){return mt(n)&&mt(o)&&(I.set(o,n),as(n,o,r,Y1,I),I.delete(o)),n}function W8(n){return Bi(n)?r:n}function X1(n,o,c,g,k,I){var R=c&E,$=n.length,B=o.length;if($!=B&&!(R&&B>$))return!1;var re=I.get(n),te=I.get(o);if(re&&te)return re==o&&te==n;var ce=-1,be=!0,ye=c&y?new no:r;for(I.set(n,o),I.set(o,n);++ce<$;){var Oe=n[ce],ze=o[ce];if(g)var Te=R?g(ze,Oe,ce,o,n,I):g(Oe,ze,ce,n,o,I);if(Te!==r){if(Te)continue;be=!1;break}if(ye){if(!Ql(o,function(nt,qe){if(!Si(ye,qe)&&(Oe===nt||k(Oe,nt,c,g,I)))return ye.push(qe)})){be=!1;break}}else if(!(Oe===ze||k(Oe,ze,c,g,I))){be=!1;break}}return I.delete(n),I.delete(o),be}function U8(n,o,c,g,k,I,R){switch(c){case Ct:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case We:return!(n.byteLength!=o.byteLength||!I(new ja(n),new ja(o)));case Ge:case dt:case Z:return Fn(+n,+o);case Zt:return n.name==o.name&&n.message==o.message;case se:case de:return n==o+"";case J:var $=ic;case H:var B=g&E;if($||($=Ga),n.size!=o.size&&!B)return!1;var re=R.get(n);if(re)return re==o;g|=y,R.set(n,o);var te=X1($(n),$(o),g,k,I,R);return R.delete(n),te;case ve:if(Oi)return Oi.call(n)==Oi.call(o)}return!1}function V8(n,o,c,g,k,I){var R=c&E,$=Oc(n),B=$.length;if(B!=Oc(o).length&&!R)return!1;for(var re=B;re--;){var te=$[re];if(!(R?te in o:Xe.call(o,te)))return!1}var ce=I.get(n),be=I.get(o);if(ce&&be)return ce==o&&be==n;var ye=!0;I.set(n,o),I.set(o,n);for(var Oe=R;++re<B;){te=$[re];var ze=n[te],Te=o[te];if(g)var nt=R?g(Te,ze,te,o,n,I):g(ze,Te,te,n,o,I);if(!(nt===r?ze===Te||k(ze,Te,c,g,I):nt)){ye=!1;break}Oe||(Oe=te=="constructor")}if(ye&&!Oe){var qe=n.constructor,Kt=o.constructor;qe!=Kt&&"constructor"in n&&"constructor"in o&&!(typeof qe=="function"&&qe instanceof qe&&typeof Kt=="function"&&Kt instanceof Kt)&&(ye=!1)}return I.delete(n),I.delete(o),ye}function sr(n){return Nc(rf(n,r,ff),n+"")}function Oc(n){return v1(n,Pt,Pc)}function Tc(n){return v1(n,nn,J1)}var Lc=es?function(n){return es.get(n)}:Jc;function ps(n){for(var o=n.name+"",c=No[o],g=Xe.call(No,o)?c.length:0;g--;){var k=c[g],I=k.func;if(I==null||I==n)return k.name}return o}function Go(n){return(Xe.call(M,"placeholder")?M:n).placeholder}function Le(){var n=M.iteratee||Yc;return n=n===Yc?_1:n,arguments.length?n(arguments[0],arguments[1]):n}function gs(n,o){var c=n.__data__;return Q8(o)?c[typeof o=="string"?"string":"hash"]:c.map}function Rc(n){for(var o=Pt(n),c=o.length;c--;){var g=o[c],k=n[g];o[c]=[g,k,tf(k)]}return o}function io(n,o){var c=rw(n,o);return w1(c)?c:r}function Z8(n){var o=Xe.call(n,eo),c=n[eo];try{n[eo]=r;var g=!0}catch{}var k=Za.call(n);return g&&(o?n[eo]=c:delete n[eo]),k}var Pc=sc?function(n){return n==null?[]:(n=tt(n),Mr(sc(n),function(o){return o1.call(n,o)}))}:Qc,J1=sc?function(n){for(var o=[];n;)xr(o,Pc(n)),n=Ka(n);return o}:Qc,Gt=qt;(lc&&Gt(new lc(new ArrayBuffer(1)))!=Ct||xi&&Gt(new xi)!=J||cc&&Gt(cc.resolve())!=N||zo&&Gt(new zo)!=H||Ii&&Gt(new Ii)!=Ee)&&(Gt=function(n){var o=qt(n),c=o==C?n.constructor:r,g=c?ao(c):"";if(g)switch(g){case Iw:return Ct;case Cw:return J;case Ow:return N;case Tw:return H;case Lw:return Ee}return o});function q8(n,o,c){for(var g=-1,k=c.length;++g<k;){var I=c[g],R=I.size;switch(I.type){case"drop":n+=R;break;case"dropRight":o-=R;break;case"take":o=Ft(o,n+R);break;case"takeRight":n=Tt(n,o-R);break}}return{start:n,end:o}}function j8(n){var o=n.match(i7);return o?o[1].split(a7):[]}function Q1(n,o,c){o=Rr(o,n);for(var g=-1,k=o.length,I=!1;++g<k;){var R=Hn(o[g]);if(!(I=n!=null&&c(n,R)))break;n=n[R]}return I||++g!=k?I:(k=n==null?0:n.length,!!k&&ks(k)&&lr(R,k)&&(He(n)||so(n)))}function K8(n){var o=n.length,c=new n.constructor(o);return o&&typeof n[0]=="string"&&Xe.call(n,"index")&&(c.index=n.index,c.input=n.input),c}function ef(n){return typeof n.constructor=="function"&&!zi(n)?Bo(Ka(n)):{}}function Y8(n,o,c){var g=n.constructor;switch(o){case We:return xc(n);case Ge:case dt:return new g(+n);case Ct:return R8(n,c);case nr:case Qt:case rr:case at:case Ar:case Xr:case gn:case To:case Ai:return D1(n,c);case J:return new g;case Z:case de:return new g(n);case se:return P8(n);case H:return new g;case ve:return $8(n)}}function X8(n,o){var c=o.length;if(!c)return n;var g=c-1;return o[g]=(c>1?"& ":"")+o[g],o=o.join(c>2?", ":" "),n.replace(o7,`{
/* [wrapped with `+o+`] */
`)}function J8(n){return He(n)||so(n)||!!(i1&&n&&n[i1])}function lr(n,o){var c=typeof n;return o=o??ie,!!o&&(c=="number"||c!="symbol"&&p7.test(n))&&n>-1&&n%1==0&&n<o}function jt(n,o,c){if(!mt(c))return!1;var g=typeof o;return(g=="number"?tn(c)&&lr(o,c.length):g=="string"&&o in c)?Fn(c[o],n):!1}function $c(n,o){if(He(n))return!1;var c=typeof n;return c=="number"||c=="symbol"||c=="boolean"||n==null||_n(n)?!0:e7.test(n)||!Q9.test(n)||o!=null&&n in tt(o)}function Q8(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Dc(n){var o=ps(n),c=M[o];if(typeof c!="function"||!(o in Ze.prototype))return!1;if(n===c)return!0;var g=Lc(c);return!!g&&n===g[0]}function e_(n){return!!t1&&t1 in n}var t_=Ua?cr:eu;function zi(n){var o=n&&n.constructor;return n===(typeof o=="function"&&o.prototype||Do)}function tf(n){return n===n&&!mt(n)}function nf(n,o){return function(c){return c==null?!1:c[n]===o&&(o!==r||n in tt(c))}}function n_(n){var o=_s(n,function(g){return c.size===p&&c.clear(),g}),c=o.cache;return o}function r_(n,o){var c=n[1],g=o[1],k=c|g,I=k<(A|x|oe),R=g==oe&&c==T||g==oe&&c==W&&n[7].length<=o[8]||g==(oe|W)&&o[7].length<=o[8]&&c==T;if(!(I||R))return n;g&A&&(n[2]=o[2],k|=c&A?0:L);var $=o[3];if($){var B=n[3];n[3]=B?N1(B,$,o[4]):$,n[4]=B?Ir(n[3],w):o[4]}return $=o[5],$&&(B=n[5],n[5]=B?B1(B,$,o[6]):$,n[6]=B?Ir(n[5],w):o[6]),$=o[7],$&&(n[7]=$),g&oe&&(n[8]=n[8]==null?o[8]:Ft(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=k,n}function o_(n){var o=[];if(n!=null)for(var c in tt(n))o.push(c);return o}function i_(n){return Za.call(n)}function rf(n,o,c){return o=Tt(o===r?n.length-1:o,0),function(){for(var g=arguments,k=-1,I=Tt(g.length-o,0),R=V(I);++k<I;)R[k]=g[o+k];k=-1;for(var $=V(o+1);++k<o;)$[k]=g[k];return $[o]=c(R),mn(n,this,$)}}function of(n,o){return o.length<2?n:oo(n,Tn(o,0,-1))}function a_(n,o){for(var c=n.length,g=Ft(o.length,c),k=en(n);g--;){var I=o[g];n[g]=lr(I,c)?k[I]:r}return n}function zc(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var af=lf(I1),Ni=yw||function(n,o){return Rt.setTimeout(n,o)},Nc=lf(C8);function sf(n,o,c){var g=o+"";return Nc(n,X8(g,s_(j8(g),c)))}function lf(n){var o=0,c=0;return function(){var g=Sw(),k=S-(g-c);if(c=g,k>0){if(++o>=X)return arguments[0]}else o=0;return n.apply(r,arguments)}}function ms(n,o){var c=-1,g=n.length,k=g-1;for(o=o===r?g:o;++c<o;){var I=_c(c,k),R=n[I];n[I]=n[c],n[c]=R}return n.length=o,n}var cf=n_(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(t7,function(c,g,k,I){o.push(k?I.replace(l7,"$1"):g||c)}),o});function Hn(n){if(typeof n=="string"||_n(n))return n;var o=n+"";return o=="0"&&1/n==-Ce?"-0":o}function ao(n){if(n!=null){try{return Va.call(n)}catch{}try{return n+""}catch{}}return""}function s_(n,o){return vn(fe,function(c){var g="_."+c[0];o&c[1]&&!Ha(n,g)&&n.push(g)}),n.sort()}function uf(n){if(n instanceof Ze)return n.clone();var o=new Cn(n.__wrapped__,n.__chain__);return o.__actions__=en(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function l_(n,o,c){(c?jt(n,o,c):o===r)?o=1:o=Tt(Fe(o),0);var g=n==null?0:n.length;if(!g||o<1)return[];for(var k=0,I=0,R=V(Ja(g/o));k<g;)R[I++]=Tn(n,k,k+=o);return R}function c_(n){for(var o=-1,c=n==null?0:n.length,g=0,k=[];++o<c;){var I=n[o];I&&(k[g++]=I)}return k}function u_(){var n=arguments.length;if(!n)return[];for(var o=V(n-1),c=arguments[0],g=n;g--;)o[g-1]=arguments[g];return xr(He(c)?en(c):[c],Nt(o,1))}var d_=Ve(function(n,o){return wt(n)?Li(n,Nt(o,1,wt,!0)):[]}),h_=Ve(function(n,o){var c=Ln(o);return wt(c)&&(c=r),wt(n)?Li(n,Nt(o,1,wt,!0),Le(c,2)):[]}),f_=Ve(function(n,o){var c=Ln(o);return wt(c)&&(c=r),wt(n)?Li(n,Nt(o,1,wt,!0),r,c):[]});function p_(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Fe(o),Tn(n,o<0?0:o,g)):[]}function g_(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Fe(o),o=g-o,Tn(n,0,o<0?0:o)):[]}function m_(n,o){return n&&n.length?ls(n,Le(o,3),!0,!0):[]}function v_(n,o){return n&&n.length?ls(n,Le(o,3),!0):[]}function b_(n,o,c,g){var k=n==null?0:n.length;return k?(c&&typeof c!="number"&&jt(n,o,c)&&(c=0,g=k),u8(n,o,c,g)):[]}function df(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var k=c==null?0:Fe(c);return k<0&&(k=Tt(g+k,0)),Fa(n,Le(o,3),k)}function hf(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var k=g-1;return c!==r&&(k=Fe(c),k=c<0?Tt(g+k,0):Ft(k,g-1)),Fa(n,Le(o,3),k,!0)}function ff(n){return n!=null&&n.length?Nt(n,1):[]}function w_(n){return n!=null&&n.length?Nt(n,Ce):[]}function __(n,o){return n!=null&&n.length?(o=o===r?1:Fe(o),Nt(n,o)):[]}function y_(n){for(var o=-1,c=n==null?0:n.length,g={};++o<c;){var k=n[o];jn(g,k[0],k[1])}return g}function pf(n){return n&&n.length?n[0]:r}function k_(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var k=c==null?0:Fe(c);return k<0&&(k=Tt(g+k,0)),Ro(n,o,k)}function E_(n){return n!=null&&n.length?Tn(n,0,-1):[]}var A_=Ve(function(n){var o=ht(n,Sc);return o.length&&o[0]===n[0]?gc(o):[]}),S_=Ve(function(n){var o=Ln(n),c=ht(n,Sc);return o===Ln(c)?o=r:c.pop(),c.length&&c[0]===n[0]?gc(c,Le(o,2)):[]}),M_=Ve(function(n){var o=Ln(n),c=ht(n,Sc);return o=typeof o=="function"?o:r,o&&c.pop(),c.length&&c[0]===n[0]?gc(c,r,o):[]});function x_(n,o){return n==null?"":Ew.call(n,o)}function Ln(n){var o=n==null?0:n.length;return o?n[o-1]:r}function I_(n,o,c){var g=n==null?0:n.length;if(!g)return-1;var k=g;return c!==r&&(k=Fe(c),k=k<0?Tt(g+k,0):Ft(k,g-1)),o===o?lw(n,o,k):Fa(n,qh,k,!0)}function C_(n,o){return n&&n.length?A1(n,Fe(o)):r}var O_=Ve(gf);function gf(n,o){return n&&n.length&&o&&o.length?wc(n,o):n}function T_(n,o,c){return n&&n.length&&o&&o.length?wc(n,o,Le(c,2)):n}function L_(n,o,c){return n&&n.length&&o&&o.length?wc(n,o,r,c):n}var R_=sr(function(n,o){var c=n==null?0:n.length,g=dc(n,o);return x1(n,ht(o,function(k){return lr(k,c)?+k:k}).sort(z1)),g});function P_(n,o){var c=[];if(!(n&&n.length))return c;var g=-1,k=[],I=n.length;for(o=Le(o,3);++g<I;){var R=n[g];o(R,g,n)&&(c.push(R),k.push(g))}return x1(n,k),c}function Bc(n){return n==null?n:xw.call(n)}function $_(n,o,c){var g=n==null?0:n.length;return g?(c&&typeof c!="number"&&jt(n,o,c)?(o=0,c=g):(o=o==null?0:Fe(o),c=c===r?g:Fe(c)),Tn(n,o,c)):[]}function D_(n,o){return ss(n,o)}function z_(n,o,c){return kc(n,o,Le(c,2))}function N_(n,o){var c=n==null?0:n.length;if(c){var g=ss(n,o);if(g<c&&Fn(n[g],o))return g}return-1}function B_(n,o){return ss(n,o,!0)}function H_(n,o,c){return kc(n,o,Le(c,2),!0)}function F_(n,o){if(n!=null&&n.length){var c=ss(n,o,!0)-1;if(Fn(n[c],o))return c}return-1}function G_(n){return n&&n.length?C1(n):[]}function W_(n,o){return n&&n.length?C1(n,Le(o,2)):[]}function U_(n){var o=n==null?0:n.length;return o?Tn(n,1,o):[]}function V_(n,o,c){return n&&n.length?(o=c||o===r?1:Fe(o),Tn(n,0,o<0?0:o)):[]}function Z_(n,o,c){var g=n==null?0:n.length;return g?(o=c||o===r?1:Fe(o),o=g-o,Tn(n,o<0?0:o,g)):[]}function q_(n,o){return n&&n.length?ls(n,Le(o,3),!1,!0):[]}function j_(n,o){return n&&n.length?ls(n,Le(o,3)):[]}var K_=Ve(function(n){return Lr(Nt(n,1,wt,!0))}),Y_=Ve(function(n){var o=Ln(n);return wt(o)&&(o=r),Lr(Nt(n,1,wt,!0),Le(o,2))}),X_=Ve(function(n){var o=Ln(n);return o=typeof o=="function"?o:r,Lr(Nt(n,1,wt,!0),r,o)});function J_(n){return n&&n.length?Lr(n):[]}function Q_(n,o){return n&&n.length?Lr(n,Le(o,2)):[]}function ey(n,o){return o=typeof o=="function"?o:r,n&&n.length?Lr(n,r,o):[]}function Hc(n){if(!(n&&n.length))return[];var o=0;return n=Mr(n,function(c){if(wt(c))return o=Tt(c.length,o),!0}),rc(o,function(c){return ht(n,ec(c))})}function mf(n,o){if(!(n&&n.length))return[];var c=Hc(n);return o==null?c:ht(c,function(g){return mn(o,r,g)})}var ty=Ve(function(n,o){return wt(n)?Li(n,o):[]}),ny=Ve(function(n){return Ac(Mr(n,wt))}),ry=Ve(function(n){var o=Ln(n);return wt(o)&&(o=r),Ac(Mr(n,wt),Le(o,2))}),oy=Ve(function(n){var o=Ln(n);return o=typeof o=="function"?o:r,Ac(Mr(n,wt),r,o)}),iy=Ve(Hc);function ay(n,o){return R1(n||[],o||[],Ti)}function sy(n,o){return R1(n||[],o||[],$i)}var ly=Ve(function(n){var o=n.length,c=o>1?n[o-1]:r;return c=typeof c=="function"?(n.pop(),c):r,mf(n,c)});function vf(n){var o=M(n);return o.__chain__=!0,o}function cy(n,o){return o(n),n}function vs(n,o){return o(n)}var uy=sr(function(n){var o=n.length,c=o?n[0]:0,g=this.__wrapped__,k=function(I){return dc(I,n)};return o>1||this.__actions__.length||!(g instanceof Ze)||!lr(c)?this.thru(k):(g=g.slice(c,+c+(o?1:0)),g.__actions__.push({func:vs,args:[k],thisArg:r}),new Cn(g,this.__chain__).thru(function(I){return o&&!I.length&&I.push(r),I}))});function dy(){return vf(this)}function hy(){return new Cn(this.value(),this.__chain__)}function fy(){this.__values__===r&&(this.__values__=Tf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?r:this.__values__[this.__index__++]}}function py(){return this}function gy(n){for(var o,c=this;c instanceof ns;){var g=uf(c);g.__index__=0,g.__values__=r,o?k.__wrapped__=g:o=g;var k=g;c=c.__wrapped__}return k.__wrapped__=n,o}function my(){var n=this.__wrapped__;if(n instanceof Ze){var o=n;return this.__actions__.length&&(o=new Ze(this)),o=o.reverse(),o.__actions__.push({func:vs,args:[Bc],thisArg:r}),new Cn(o,this.__chain__)}return this.thru(Bc)}function vy(){return L1(this.__wrapped__,this.__actions__)}var by=cs(function(n,o,c){Xe.call(n,c)?++n[c]:jn(n,c,1)});function wy(n,o,c){var g=He(n)?Vh:c8;return c&&jt(n,o,c)&&(o=r),g(n,Le(o,3))}function _y(n,o){return(He(n)?Mr:g1)(n,Le(o,3))}var yy=W1(df),ky=W1(hf);function Ey(n,o){return Nt(bs(n,o),1)}function Ay(n,o){return Nt(bs(n,o),Ce)}function Sy(n,o,c){return c=c===r?1:Fe(c),Nt(bs(n,o),c)}function bf(n,o){return(He(n)?vn:Tr)(n,Le(o,3))}function wf(n,o){return(He(n)?V7:p1)(n,Le(o,3))}var My=cs(function(n,o,c){Xe.call(n,c)?n[c].push(o):jn(n,c,[o])});function xy(n,o,c,g){n=tn(n)?n:Uo(n),c=c&&!g?Fe(c):0;var k=n.length;return c<0&&(c=Tt(k+c,0)),Es(n)?c<=k&&n.indexOf(o,c)>-1:!!k&&Ro(n,o,c)>-1}var Iy=Ve(function(n,o,c){var g=-1,k=typeof o=="function",I=tn(n)?V(n.length):[];return Tr(n,function(R){I[++g]=k?mn(o,R,c):Ri(R,o,c)}),I}),Cy=cs(function(n,o,c){jn(n,c,o)});function bs(n,o){return(He(n)?ht:y1)(n,Le(o,3))}function Oy(n,o,c,g){return n==null?[]:(He(o)||(o=o==null?[]:[o]),c=g?r:c,He(c)||(c=c==null?[]:[c]),S1(n,o,c))}var Ty=cs(function(n,o,c){n[c?0:1].push(o)},function(){return[[],[]]});function Ly(n,o,c){var g=He(n)?Jl:Kh,k=arguments.length<3;return g(n,Le(o,4),c,k,Tr)}function Ry(n,o,c){var g=He(n)?Z7:Kh,k=arguments.length<3;return g(n,Le(o,4),c,k,p1)}function Py(n,o){return(He(n)?Mr:g1)(n,ys(Le(o,3)))}function $y(n){return(He(n)?u1:x8)(n)}function Dy(n,o,c){return(c?jt(n,o,c):o===r)?o=1:o=Fe(o),(He(n)?o8:I8)(n,o)}function zy(n){return(He(n)?i8:O8)(n)}function Ny(n){if(n==null)return 0;if(tn(n))return Es(n)?$o(n):n.length;var o=Gt(n);return o==J||o==H?n.size:vc(n).length}function By(n,o,c){var g=He(n)?Ql:T8;return c&&jt(n,o,c)&&(o=r),g(n,Le(o,3))}var Hy=Ve(function(n,o){if(n==null)return[];var c=o.length;return c>1&&jt(n,o[0],o[1])?o=[]:c>2&&jt(o[0],o[1],o[2])&&(o=[o[0]]),S1(n,Nt(o,1),[])}),ws=_w||function(){return Rt.Date.now()};function Fy(n,o){if(typeof o!="function")throw new In(l);return n=Fe(n),function(){if(--n<1)return o.apply(this,arguments)}}function _f(n,o,c){return o=c?r:o,o=n&&o==null?n.length:o,ar(n,oe,r,r,r,r,o)}function yf(n,o){var c;if(typeof o!="function")throw new In(l);return n=Fe(n),function(){return--n>0&&(c=o.apply(this,arguments)),n<=1&&(o=r),c}}var Fc=Ve(function(n,o,c){var g=A;if(c.length){var k=Ir(c,Go(Fc));g|=K}return ar(n,g,o,c,k)}),kf=Ve(function(n,o,c){var g=A|x;if(c.length){var k=Ir(c,Go(kf));g|=K}return ar(o,g,n,c,k)});function Ef(n,o,c){o=c?r:o;var g=ar(n,T,r,r,r,r,r,o);return g.placeholder=Ef.placeholder,g}function Af(n,o,c){o=c?r:o;var g=ar(n,z,r,r,r,r,r,o);return g.placeholder=Af.placeholder,g}function Sf(n,o,c){var g,k,I,R,$,B,re=0,te=!1,ce=!1,be=!0;if(typeof n!="function")throw new In(l);o=Rn(o)||0,mt(c)&&(te=!!c.leading,ce="maxWait"in c,I=ce?Tt(Rn(c.maxWait)||0,o):I,be="trailing"in c?!!c.trailing:be);function ye(_t){var Gn=g,dr=k;return g=k=r,re=_t,R=n.apply(dr,Gn),R}function Oe(_t){return re=_t,$=Ni(nt,o),te?ye(_t):R}function ze(_t){var Gn=_t-B,dr=_t-re,Vf=o-Gn;return ce?Ft(Vf,I-dr):Vf}function Te(_t){var Gn=_t-B,dr=_t-re;return B===r||Gn>=o||Gn<0||ce&&dr>=I}function nt(){var _t=ws();if(Te(_t))return qe(_t);$=Ni(nt,ze(_t))}function qe(_t){return $=r,be&&g?ye(_t):(g=k=r,R)}function Kt(){$!==r&&P1($),re=0,g=B=k=$=r}function Xn(){return $===r?R:qe(ws())}function Dr(){var _t=ws(),Gn=Te(_t);if(g=arguments,k=this,B=_t,Gn){if($===r)return Oe(B);if(ce)return P1($),$=Ni(nt,o),ye(B)}return $===r&&($=Ni(nt,o)),R}return Dr.cancel=Kt,Dr.flush=Xn,Dr}var Gy=Ve(function(n,o){return f1(n,1,o)}),Wy=Ve(function(n,o,c){return f1(n,Rn(o)||0,c)});function Uy(n){return ar(n,ge)}function _s(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new In(l);var c=function(){var g=arguments,k=o?o.apply(this,g):g[0],I=c.cache;if(I.has(k))return I.get(k);var R=n.apply(this,g);return c.cache=I.set(k,R)||I,R};return c.cache=new(_s.Cache||ir),c}_s.Cache=ir;function ys(n){if(typeof n!="function")throw new In(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function Vy(n){return yf(2,n)}var Zy=L8(function(n,o){o=o.length==1&&He(o[0])?ht(o[0],bn(Le())):ht(Nt(o,1),bn(Le()));var c=o.length;return Ve(function(g){for(var k=-1,I=Ft(g.length,c);++k<I;)g[k]=o[k].call(this,g[k]);return mn(n,this,g)})}),Gc=Ve(function(n,o){return ar(n,K,r,o,Ir(o,Go(Gc)))}),Mf=Ve(function(n,o){return ar(n,q,r,o,Ir(o,Go(Mf)))}),qy=sr(function(n,o){return ar(n,W,r,r,r,o)});function jy(n,o){if(typeof n!="function")throw new In(l);return o=o===r?o:Fe(o),Ve(n,o)}function Ky(n,o){if(typeof n!="function")throw new In(l);return o=o==null?0:Tt(Fe(o),0),Ve(function(c){var g=c[o],k=Pr(c,0,o);return g&&xr(k,g),mn(n,this,k)})}function Yy(n,o,c){var g=!0,k=!0;if(typeof n!="function")throw new In(l);return mt(c)&&(g="leading"in c?!!c.leading:g,k="trailing"in c?!!c.trailing:k),Sf(n,o,{leading:g,maxWait:o,trailing:k})}function Xy(n){return _f(n,1)}function Jy(n,o){return Gc(Mc(o),n)}function Qy(){if(!arguments.length)return[];var n=arguments[0];return He(n)?n:[n]}function ek(n){return On(n,m)}function tk(n,o){return o=typeof o=="function"?o:r,On(n,m,o)}function nk(n){return On(n,b|m)}function rk(n,o){return o=typeof o=="function"?o:r,On(n,b|m,o)}function ok(n,o){return o==null||h1(n,o,Pt(o))}function Fn(n,o){return n===o||n!==n&&o!==o}var ik=fs(pc),ak=fs(function(n,o){return n>=o}),so=b1((function(){return arguments})())?b1:function(n){return bt(n)&&Xe.call(n,"callee")&&!o1.call(n,"callee")},He=V.isArray,sk=Bh?bn(Bh):g8;function tn(n){return n!=null&&ks(n.length)&&!cr(n)}function wt(n){return bt(n)&&tn(n)}function lk(n){return n===!0||n===!1||bt(n)&&qt(n)==Ge}var $r=kw||eu,ck=Hh?bn(Hh):m8;function uk(n){return bt(n)&&n.nodeType===1&&!Bi(n)}function dk(n){if(n==null)return!0;if(tn(n)&&(He(n)||typeof n=="string"||typeof n.splice=="function"||$r(n)||Wo(n)||so(n)))return!n.length;var o=Gt(n);if(o==J||o==H)return!n.size;if(zi(n))return!vc(n).length;for(var c in n)if(Xe.call(n,c))return!1;return!0}function hk(n,o){return Pi(n,o)}function fk(n,o,c){c=typeof c=="function"?c:r;var g=c?c(n,o):r;return g===r?Pi(n,o,r,c):!!g}function Wc(n){if(!bt(n))return!1;var o=qt(n);return o==Zt||o==gt||typeof n.message=="string"&&typeof n.name=="string"&&!Bi(n)}function pk(n){return typeof n=="number"&&a1(n)}function cr(n){if(!mt(n))return!1;var o=qt(n);return o==Ht||o==_||o==Ue||o==ae}function xf(n){return typeof n=="number"&&n==Fe(n)}function ks(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ie}function mt(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function bt(n){return n!=null&&typeof n=="object"}var If=Fh?bn(Fh):b8;function gk(n,o){return n===o||mc(n,o,Rc(o))}function mk(n,o,c){return c=typeof c=="function"?c:r,mc(n,o,Rc(o),c)}function vk(n){return Cf(n)&&n!=+n}function bk(n){if(t_(n))throw new $e(s);return w1(n)}function wk(n){return n===null}function _k(n){return n==null}function Cf(n){return typeof n=="number"||bt(n)&&qt(n)==Z}function Bi(n){if(!bt(n)||qt(n)!=C)return!1;var o=Ka(n);if(o===null)return!0;var c=Xe.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&Va.call(c)==mw}var Uc=Gh?bn(Gh):w8;function yk(n){return xf(n)&&n>=-ie&&n<=ie}var Of=Wh?bn(Wh):_8;function Es(n){return typeof n=="string"||!He(n)&&bt(n)&&qt(n)==de}function _n(n){return typeof n=="symbol"||bt(n)&&qt(n)==ve}var Wo=Uh?bn(Uh):y8;function kk(n){return n===r}function Ek(n){return bt(n)&&Gt(n)==Ee}function Ak(n){return bt(n)&&qt(n)==et}var Sk=fs(bc),Mk=fs(function(n,o){return n<=o});function Tf(n){if(!n)return[];if(tn(n))return Es(n)?Nn(n):en(n);if(Mi&&n[Mi])return iw(n[Mi]());var o=Gt(n);return(o==J?ic:o==H?Ga:Uo)(n)}function ur(n){return n?(n=Rn(n),n===Ce||n===-Ce?(n<0?-1:1)*xe:n===n?n:0):n===0?n:0}function Fe(n){var o=ur(n),c=o%1;return o===o?c?o-c:o:0}function Lf(n){return n?ro(Fe(n),0,G):0}function Rn(n){if(typeof n=="number")return n;if(_n(n))return U;if(mt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=mt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Yh(n);var c=d7.test(n);return c||f7.test(n)?G7(n.slice(2),c?2:8):u7.test(n)?U:+n}function Rf(n){return Yn(n,nn(n))}function xk(n){return n?ro(Fe(n),-ie,ie):n===0?n:0}function Je(n){return n==null?"":wn(n)}var Ik=Ho(function(n,o){if(zi(o)||tn(o)){Yn(o,Pt(o),n);return}for(var c in o)Xe.call(o,c)&&Ti(n,c,o[c])}),Pf=Ho(function(n,o){Yn(o,nn(o),n)}),$f=Ho(function(n,o,c,g){Yn(o,nn(o),n,g)}),Vc=Ho(function(n,o,c,g){Yn(o,Pt(o),n,g)}),Ck=sr(dc);function Ok(n,o){var c=Bo(n);return o==null?c:d1(c,o)}var Tk=Ve(function(n,o){n=tt(n);var c=-1,g=o.length,k=g>2?o[2]:r;for(k&&jt(o[0],o[1],k)&&(g=1);++c<g;)for(var I=o[c],R=nn(I),$=-1,B=R.length;++$<B;){var re=R[$],te=n[re];(te===r||Fn(te,Do[re])&&!Xe.call(n,re))&&(n[re]=I[re])}return n}),Lk=Ve(function(n){return n.push(r,Y1),mn(Df,r,n)});function Rk(n,o){return Zh(n,Le(o,3),Kn)}function Pk(n,o){return Zh(n,Le(o,3),fc)}function $k(n,o){return n==null?n:hc(n,Le(o,3),nn)}function Dk(n,o){return n==null?n:m1(n,Le(o,3),nn)}function zk(n,o){return n&&Kn(n,Le(o,3))}function Nk(n,o){return n&&fc(n,Le(o,3))}function Bk(n){return n==null?[]:is(n,Pt(n))}function Hk(n){return n==null?[]:is(n,nn(n))}function Zc(n,o,c){var g=n==null?r:oo(n,o);return g===r?c:g}function Fk(n,o){return n!=null&&Q1(n,o,d8)}function qc(n,o){return n!=null&&Q1(n,o,h8)}var Gk=V1(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=Za.call(o)),n[o]=c},Kc(rn)),Wk=V1(function(n,o,c){o!=null&&typeof o.toString!="function"&&(o=Za.call(o)),Xe.call(n,o)?n[o].push(c):n[o]=[c]},Le),Uk=Ve(Ri);function Pt(n){return tn(n)?c1(n):vc(n)}function nn(n){return tn(n)?c1(n,!0):k8(n)}function Vk(n,o){var c={};return o=Le(o,3),Kn(n,function(g,k,I){jn(c,o(g,k,I),g)}),c}function Zk(n,o){var c={};return o=Le(o,3),Kn(n,function(g,k,I){jn(c,k,o(g,k,I))}),c}var qk=Ho(function(n,o,c){as(n,o,c)}),Df=Ho(function(n,o,c,g){as(n,o,c,g)}),jk=sr(function(n,o){var c={};if(n==null)return c;var g=!1;o=ht(o,function(I){return I=Rr(I,n),g||(g=I.length>1),I}),Yn(n,Tc(n),c),g&&(c=On(c,b|v|m,W8));for(var k=o.length;k--;)Ec(c,o[k]);return c});function Kk(n,o){return zf(n,ys(Le(o)))}var Yk=sr(function(n,o){return n==null?{}:A8(n,o)});function zf(n,o){if(n==null)return{};var c=ht(Tc(n),function(g){return[g]});return o=Le(o),M1(n,c,function(g,k){return o(g,k[0])})}function Xk(n,o,c){o=Rr(o,n);var g=-1,k=o.length;for(k||(k=1,n=r);++g<k;){var I=n==null?r:n[Hn(o[g])];I===r&&(g=k,I=c),n=cr(I)?I.call(n):I}return n}function Jk(n,o,c){return n==null?n:$i(n,o,c)}function Qk(n,o,c,g){return g=typeof g=="function"?g:r,n==null?n:$i(n,o,c,g)}var Nf=j1(Pt),Bf=j1(nn);function eE(n,o,c){var g=He(n),k=g||$r(n)||Wo(n);if(o=Le(o,4),c==null){var I=n&&n.constructor;k?c=g?new I:[]:mt(n)?c=cr(I)?Bo(Ka(n)):{}:c={}}return(k?vn:Kn)(n,function(R,$,B){return o(c,R,$,B)}),c}function tE(n,o){return n==null?!0:Ec(n,o)}function nE(n,o,c){return n==null?n:T1(n,o,Mc(c))}function rE(n,o,c,g){return g=typeof g=="function"?g:r,n==null?n:T1(n,o,Mc(c),g)}function Uo(n){return n==null?[]:oc(n,Pt(n))}function oE(n){return n==null?[]:oc(n,nn(n))}function iE(n,o,c){return c===r&&(c=o,o=r),c!==r&&(c=Rn(c),c=c===c?c:0),o!==r&&(o=Rn(o),o=o===o?o:0),ro(Rn(n),o,c)}function aE(n,o,c){return o=ur(o),c===r?(c=o,o=0):c=ur(c),n=Rn(n),f8(n,o,c)}function sE(n,o,c){if(c&&typeof c!="boolean"&&jt(n,o,c)&&(o=c=r),c===r&&(typeof o=="boolean"?(c=o,o=r):typeof n=="boolean"&&(c=n,n=r)),n===r&&o===r?(n=0,o=1):(n=ur(n),o===r?(o=n,n=0):o=ur(o)),n>o){var g=n;n=o,o=g}if(c||n%1||o%1){var k=s1();return Ft(n+k*(o-n+F7("1e-"+((k+"").length-1))),o)}return _c(n,o)}var lE=Fo(function(n,o,c){return o=o.toLowerCase(),n+(c?Hf(o):o)});function Hf(n){return jc(Je(n).toLowerCase())}function Ff(n){return n=Je(n),n&&n.replace(g7,ew).replace(T7,"")}function cE(n,o,c){n=Je(n),o=wn(o);var g=n.length;c=c===r?g:ro(Fe(c),0,g);var k=c;return c-=o.length,c>=0&&n.slice(c,k)==o}function uE(n){return n=Je(n),n&&Y9.test(n)?n.replace(Jr,tw):n}function dE(n){return n=Je(n),n&&n7.test(n)?n.replace(Gl,"\\$&"):n}var hE=Fo(function(n,o,c){return n+(c?"-":"")+o.toLowerCase()}),fE=Fo(function(n,o,c){return n+(c?" ":"")+o.toLowerCase()}),pE=G1("toLowerCase");function gE(n,o,c){n=Je(n),o=Fe(o);var g=o?$o(n):0;if(!o||g>=o)return n;var k=(o-g)/2;return hs(Qa(k),c)+n+hs(Ja(k),c)}function mE(n,o,c){n=Je(n),o=Fe(o);var g=o?$o(n):0;return o&&g<o?n+hs(o-g,c):n}function vE(n,o,c){n=Je(n),o=Fe(o);var g=o?$o(n):0;return o&&g<o?hs(o-g,c)+n:n}function bE(n,o,c){return c||o==null?o=0:o&&(o=+o),Mw(Je(n).replace(Wl,""),o||0)}function wE(n,o,c){return(c?jt(n,o,c):o===r)?o=1:o=Fe(o),yc(Je(n),o)}function _E(){var n=arguments,o=Je(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var yE=Fo(function(n,o,c){return n+(c?"_":"")+o.toLowerCase()});function kE(n,o,c){return c&&typeof c!="number"&&jt(n,o,c)&&(o=c=r),c=c===r?G:c>>>0,c?(n=Je(n),n&&(typeof o=="string"||o!=null&&!Uc(o))&&(o=wn(o),!o&&Po(n))?Pr(Nn(n),0,c):n.split(o,c)):[]}var EE=Fo(function(n,o,c){return n+(c?" ":"")+jc(o)});function AE(n,o,c){return n=Je(n),c=c==null?0:ro(Fe(c),0,n.length),o=wn(o),n.slice(c,c+o.length)==o}function SE(n,o,c){var g=M.templateSettings;c&&jt(n,o,c)&&(o=r),n=Je(n),o=Vc({},o,g,K1);var k=Vc({},o.imports,g.imports,K1),I=Pt(k),R=oc(k,I);vn(I,function(Te){if(vh.test(Te))throw new $e(u)});var $,B,re=0,te=o.interpolate||za,ce="__p += '",be=ac((o.escape||za).source+"|"+te.source+"|"+(te===mh?c7:za).source+"|"+(o.evaluate||za).source+"|$","g"),ye="//# sourceURL="+(Xe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D7+"]")+`
`;n.replace(be,function(Te,nt,qe,Kt,Xn,Dr){return qe||(qe=Kt),ce+=n.slice(re,Dr).replace(m7,nw),nt&&($=!0,ce+=`' +
__e(`+nt+`) +
'`),Xn&&(B=!0,ce+=`';
`+Xn+`;
__p += '`),qe&&(ce+=`' +
((__t = (`+qe+`)) == null ? '' : __t) +
'`),re=Dr+Te.length,Te}),ce+=`';
`;var Oe=Xe.call(o,"variable")&&o.variable;if(!Oe)ce=`with (obj) {
`+ce+`
}
`;else if(vh.test(Oe))throw new $e(h);ce=(B?ce.replace(Hl,""):ce).replace(Fl,"$1").replace(Da,"$1;"),ce="function("+(Oe||"obj")+`) {
`+(Oe?"":`obj || (obj = {});
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ce+`return __p
}`;var ze=Wf(function(){return Ye(I,ye+"return "+ce).apply(r,R)});if(ze.source=ce,Wc(ze))throw ze;return ze}function ME(n){return Je(n).toLowerCase()}function xE(n){return Je(n).toUpperCase()}function IE(n,o,c){if(n=Je(n),n&&(c||o===r))return Yh(n);if(!n||!(o=wn(o)))return n;var g=Nn(n),k=Nn(o);return Pr(g,Xh(g,k),Jh(g,k)+1).join("")}function CE(n,o,c){if(n=Je(n),n&&(c||o===r))return n.slice(0,e1(n)+1);if(!n||!(o=wn(o)))return n;var g=Nn(n);return Pr(g,0,Jh(g,Nn(o))+1).join("")}function OE(n,o,c){if(n=Je(n),n&&(c||o===r))return n.replace(Wl,"");if(!n||!(o=wn(o)))return n;var g=Nn(n);return Pr(g,Xh(g,Nn(o))).join("")}function TE(n,o){var c=_e,g=P;if(mt(o)){var k="separator"in o?o.separator:k;c="length"in o?Fe(o.length):c,g="omission"in o?wn(o.omission):g}n=Je(n);var I=n.length;if(Po(n)){var R=Nn(n);I=R.length}if(c>=I)return n;var $=c-$o(g);if($<1)return g;var B=R?Pr(R,0,$).join(""):n.slice(0,$);if(k===r)return B+g;if(R&&($+=B.length-$),Uc(k)){if(n.slice($).search(k)){var re,te=B;for(k.global||(k=ac(k.source,Je(bh.exec(k))+"g")),k.lastIndex=0;re=k.exec(te);)var ce=re.index;B=B.slice(0,ce===r?$:ce)}}else if(n.indexOf(wn(k),$)!=$){var be=B.lastIndexOf(k);be>-1&&(B=B.slice(0,be))}return B+g}function LE(n){return n=Je(n),n&&K9.test(n)?n.replace(Sr,cw):n}var RE=Fo(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),jc=G1("toUpperCase");function Gf(n,o,c){return n=Je(n),o=c?r:o,o===r?ow(n)?hw(n):K7(n):n.match(o)||[]}var Wf=Ve(function(n,o){try{return mn(n,r,o)}catch(c){return Wc(c)?c:new $e(c)}}),PE=sr(function(n,o){return vn(o,function(c){c=Hn(c),jn(n,c,Fc(n[c],n))}),n});function $E(n){var o=n==null?0:n.length,c=Le();return n=o?ht(n,function(g){if(typeof g[1]!="function")throw new In(l);return[c(g[0]),g[1]]}):[],Ve(function(g){for(var k=-1;++k<o;){var I=n[k];if(mn(I[0],this,g))return mn(I[1],this,g)}})}function DE(n){return l8(On(n,b))}function Kc(n){return function(){return n}}function zE(n,o){return n==null||n!==n?o:n}var NE=U1(),BE=U1(!0);function rn(n){return n}function Yc(n){return _1(typeof n=="function"?n:On(n,b))}function HE(n){return k1(On(n,b))}function FE(n,o){return E1(n,On(o,b))}var GE=Ve(function(n,o){return function(c){return Ri(c,n,o)}}),WE=Ve(function(n,o){return function(c){return Ri(n,c,o)}});function Xc(n,o,c){var g=Pt(o),k=is(o,g);c==null&&!(mt(o)&&(k.length||!g.length))&&(c=o,o=n,n=this,k=is(o,Pt(o)));var I=!(mt(c)&&"chain"in c)||!!c.chain,R=cr(n);return vn(k,function($){var B=o[$];n[$]=B,R&&(n.prototype[$]=function(){var re=this.__chain__;if(I||re){var te=n(this.__wrapped__);return(te.__actions__=en(this.__actions__)).push({func:B,args:arguments,thisArg:n}),te.__chain__=re,te}return B.apply(n,xr([this.value()],arguments))})}),n}function UE(){return Rt._===this&&(Rt._=vw),this}function Jc(){}function VE(n){return n=Fe(n),Ve(function(o){return A1(o,n)})}var ZE=Ic(ht),qE=Ic(Vh),jE=Ic(Ql);function Uf(n){return $c(n)?ec(Hn(n)):S8(n)}function KE(n){return function(o){return n==null?r:oo(n,o)}}var YE=Z1(),XE=Z1(!0);function Qc(){return[]}function eu(){return!1}function JE(){return{}}function QE(){return""}function eA(){return!0}function tA(n,o){if(n=Fe(n),n<1||n>ie)return[];var c=G,g=Ft(n,G);o=Le(o),n-=G;for(var k=rc(g,o);++c<n;)o(c);return k}function nA(n){return He(n)?ht(n,Hn):_n(n)?[n]:en(cf(Je(n)))}function rA(n){var o=++gw;return Je(n)+o}var oA=ds(function(n,o){return n+o},0),iA=Cc("ceil"),aA=ds(function(n,o){return n/o},1),sA=Cc("floor");function lA(n){return n&&n.length?os(n,rn,pc):r}function cA(n,o){return n&&n.length?os(n,Le(o,2),pc):r}function uA(n){return jh(n,rn)}function dA(n,o){return jh(n,Le(o,2))}function hA(n){return n&&n.length?os(n,rn,bc):r}function fA(n,o){return n&&n.length?os(n,Le(o,2),bc):r}var pA=ds(function(n,o){return n*o},1),gA=Cc("round"),mA=ds(function(n,o){return n-o},0);function vA(n){return n&&n.length?nc(n,rn):0}function bA(n,o){return n&&n.length?nc(n,Le(o,2)):0}return M.after=Fy,M.ary=_f,M.assign=Ik,M.assignIn=Pf,M.assignInWith=$f,M.assignWith=Vc,M.at=Ck,M.before=yf,M.bind=Fc,M.bindAll=PE,M.bindKey=kf,M.castArray=Qy,M.chain=vf,M.chunk=l_,M.compact=c_,M.concat=u_,M.cond=$E,M.conforms=DE,M.constant=Kc,M.countBy=by,M.create=Ok,M.curry=Ef,M.curryRight=Af,M.debounce=Sf,M.defaults=Tk,M.defaultsDeep=Lk,M.defer=Gy,M.delay=Wy,M.difference=d_,M.differenceBy=h_,M.differenceWith=f_,M.drop=p_,M.dropRight=g_,M.dropRightWhile=m_,M.dropWhile=v_,M.fill=b_,M.filter=_y,M.flatMap=Ey,M.flatMapDeep=Ay,M.flatMapDepth=Sy,M.flatten=ff,M.flattenDeep=w_,M.flattenDepth=__,M.flip=Uy,M.flow=NE,M.flowRight=BE,M.fromPairs=y_,M.functions=Bk,M.functionsIn=Hk,M.groupBy=My,M.initial=E_,M.intersection=A_,M.intersectionBy=S_,M.intersectionWith=M_,M.invert=Gk,M.invertBy=Wk,M.invokeMap=Iy,M.iteratee=Yc,M.keyBy=Cy,M.keys=Pt,M.keysIn=nn,M.map=bs,M.mapKeys=Vk,M.mapValues=Zk,M.matches=HE,M.matchesProperty=FE,M.memoize=_s,M.merge=qk,M.mergeWith=Df,M.method=GE,M.methodOf=WE,M.mixin=Xc,M.negate=ys,M.nthArg=VE,M.omit=jk,M.omitBy=Kk,M.once=Vy,M.orderBy=Oy,M.over=ZE,M.overArgs=Zy,M.overEvery=qE,M.overSome=jE,M.partial=Gc,M.partialRight=Mf,M.partition=Ty,M.pick=Yk,M.pickBy=zf,M.property=Uf,M.propertyOf=KE,M.pull=O_,M.pullAll=gf,M.pullAllBy=T_,M.pullAllWith=L_,M.pullAt=R_,M.range=YE,M.rangeRight=XE,M.rearg=qy,M.reject=Py,M.remove=P_,M.rest=jy,M.reverse=Bc,M.sampleSize=Dy,M.set=Jk,M.setWith=Qk,M.shuffle=zy,M.slice=$_,M.sortBy=Hy,M.sortedUniq=G_,M.sortedUniqBy=W_,M.split=kE,M.spread=Ky,M.tail=U_,M.take=V_,M.takeRight=Z_,M.takeRightWhile=q_,M.takeWhile=j_,M.tap=cy,M.throttle=Yy,M.thru=vs,M.toArray=Tf,M.toPairs=Nf,M.toPairsIn=Bf,M.toPath=nA,M.toPlainObject=Rf,M.transform=eE,M.unary=Xy,M.union=K_,M.unionBy=Y_,M.unionWith=X_,M.uniq=J_,M.uniqBy=Q_,M.uniqWith=ey,M.unset=tE,M.unzip=Hc,M.unzipWith=mf,M.update=nE,M.updateWith=rE,M.values=Uo,M.valuesIn=oE,M.without=ty,M.words=Gf,M.wrap=Jy,M.xor=ny,M.xorBy=ry,M.xorWith=oy,M.zip=iy,M.zipObject=ay,M.zipObjectDeep=sy,M.zipWith=ly,M.entries=Nf,M.entriesIn=Bf,M.extend=Pf,M.extendWith=$f,Xc(M,M),M.add=oA,M.attempt=Wf,M.camelCase=lE,M.capitalize=Hf,M.ceil=iA,M.clamp=iE,M.clone=ek,M.cloneDeep=nk,M.cloneDeepWith=rk,M.cloneWith=tk,M.conformsTo=ok,M.deburr=Ff,M.defaultTo=zE,M.divide=aA,M.endsWith=cE,M.eq=Fn,M.escape=uE,M.escapeRegExp=dE,M.every=wy,M.find=yy,M.findIndex=df,M.findKey=Rk,M.findLast=ky,M.findLastIndex=hf,M.findLastKey=Pk,M.floor=sA,M.forEach=bf,M.forEachRight=wf,M.forIn=$k,M.forInRight=Dk,M.forOwn=zk,M.forOwnRight=Nk,M.get=Zc,M.gt=ik,M.gte=ak,M.has=Fk,M.hasIn=qc,M.head=pf,M.identity=rn,M.includes=xy,M.indexOf=k_,M.inRange=aE,M.invoke=Uk,M.isArguments=so,M.isArray=He,M.isArrayBuffer=sk,M.isArrayLike=tn,M.isArrayLikeObject=wt,M.isBoolean=lk,M.isBuffer=$r,M.isDate=ck,M.isElement=uk,M.isEmpty=dk,M.isEqual=hk,M.isEqualWith=fk,M.isError=Wc,M.isFinite=pk,M.isFunction=cr,M.isInteger=xf,M.isLength=ks,M.isMap=If,M.isMatch=gk,M.isMatchWith=mk,M.isNaN=vk,M.isNative=bk,M.isNil=_k,M.isNull=wk,M.isNumber=Cf,M.isObject=mt,M.isObjectLike=bt,M.isPlainObject=Bi,M.isRegExp=Uc,M.isSafeInteger=yk,M.isSet=Of,M.isString=Es,M.isSymbol=_n,M.isTypedArray=Wo,M.isUndefined=kk,M.isWeakMap=Ek,M.isWeakSet=Ak,M.join=x_,M.kebabCase=hE,M.last=Ln,M.lastIndexOf=I_,M.lowerCase=fE,M.lowerFirst=pE,M.lt=Sk,M.lte=Mk,M.max=lA,M.maxBy=cA,M.mean=uA,M.meanBy=dA,M.min=hA,M.minBy=fA,M.stubArray=Qc,M.stubFalse=eu,M.stubObject=JE,M.stubString=QE,M.stubTrue=eA,M.multiply=pA,M.nth=C_,M.noConflict=UE,M.noop=Jc,M.now=ws,M.pad=gE,M.padEnd=mE,M.padStart=vE,M.parseInt=bE,M.random=sE,M.reduce=Ly,M.reduceRight=Ry,M.repeat=wE,M.replace=_E,M.result=Xk,M.round=gA,M.runInContext=D,M.sample=$y,M.size=Ny,M.snakeCase=yE,M.some=By,M.sortedIndex=D_,M.sortedIndexBy=z_,M.sortedIndexOf=N_,M.sortedLastIndex=B_,M.sortedLastIndexBy=H_,M.sortedLastIndexOf=F_,M.startCase=EE,M.startsWith=AE,M.subtract=mA,M.sum=vA,M.sumBy=bA,M.template=SE,M.times=tA,M.toFinite=ur,M.toInteger=Fe,M.toLength=Lf,M.toLower=ME,M.toNumber=Rn,M.toSafeInteger=xk,M.toString=Je,M.toUpper=xE,M.trim=IE,M.trimEnd=CE,M.trimStart=OE,M.truncate=TE,M.unescape=LE,M.uniqueId=rA,M.upperCase=RE,M.upperFirst=jc,M.each=bf,M.eachRight=wf,M.first=pf,Xc(M,(function(){var n={};return Kn(M,function(o,c){Xe.call(M.prototype,c)||(n[c]=o)}),n})(),{chain:!1}),M.VERSION=i,vn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){M[n].placeholder=M}),vn(["drop","take"],function(n,o){Ze.prototype[n]=function(c){c=c===r?1:Tt(Fe(c),0);var g=this.__filtered__&&!o?new Ze(this):this.clone();return g.__filtered__?g.__takeCount__=Ft(c,g.__takeCount__):g.__views__.push({size:Ft(c,G),type:n+(g.__dir__<0?"Right":"")}),g},Ze.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),vn(["filter","map","takeWhile"],function(n,o){var c=o+1,g=c==Q||c==ue;Ze.prototype[n]=function(k){var I=this.clone();return I.__iteratees__.push({iteratee:Le(k,3),type:c}),I.__filtered__=I.__filtered__||g,I}}),vn(["head","last"],function(n,o){var c="take"+(o?"Right":"");Ze.prototype[n]=function(){return this[c](1).value()[0]}}),vn(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");Ze.prototype[n]=function(){return this.__filtered__?new Ze(this):this[c](1)}}),Ze.prototype.compact=function(){return this.filter(rn)},Ze.prototype.find=function(n){return this.filter(n).head()},Ze.prototype.findLast=function(n){return this.reverse().find(n)},Ze.prototype.invokeMap=Ve(function(n,o){return typeof n=="function"?new Ze(this):this.map(function(c){return Ri(c,n,o)})}),Ze.prototype.reject=function(n){return this.filter(ys(Le(n)))},Ze.prototype.slice=function(n,o){n=Fe(n);var c=this;return c.__filtered__&&(n>0||o<0)?new Ze(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==r&&(o=Fe(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},Ze.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ze.prototype.toArray=function(){return this.take(G)},Kn(Ze.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),g=/^(?:head|last)$/.test(o),k=M[g?"take"+(o=="last"?"Right":""):o],I=g||/^find/.test(o);k&&(M.prototype[o]=function(){var R=this.__wrapped__,$=g?[1]:arguments,B=R instanceof Ze,re=$[0],te=B||He(R),ce=function(nt){var qe=k.apply(M,xr([nt],$));return g&&be?qe[0]:qe};te&&c&&typeof re=="function"&&re.length!=1&&(B=te=!1);var be=this.__chain__,ye=!!this.__actions__.length,Oe=I&&!be,ze=B&&!ye;if(!I&&te){R=ze?R:new Ze(this);var Te=n.apply(R,$);return Te.__actions__.push({func:vs,args:[ce],thisArg:r}),new Cn(Te,be)}return Oe&&ze?n.apply(this,$):(Te=this.thru(ce),Oe?g?Te.value()[0]:Te.value():Te)})}),vn(["pop","push","shift","sort","splice","unshift"],function(n){var o=Wa[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",g=/^(?:pop|shift)$/.test(n);M.prototype[n]=function(){var k=arguments;if(g&&!this.__chain__){var I=this.value();return o.apply(He(I)?I:[],k)}return this[c](function(R){return o.apply(He(R)?R:[],k)})}}),Kn(Ze.prototype,function(n,o){var c=M[o];if(c){var g=c.name+"";Xe.call(No,g)||(No[g]=[]),No[g].push({name:o,func:c})}}),No[us(r,x).name]=[{name:"wrapper",func:r}],Ze.prototype.clone=Rw,Ze.prototype.reverse=Pw,Ze.prototype.value=$w,M.prototype.at=uy,M.prototype.chain=dy,M.prototype.commit=hy,M.prototype.next=fy,M.prototype.plant=gy,M.prototype.reverse=my,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=vy,M.prototype.first=M.prototype.head,Mi&&(M.prototype[Mi]=py),M})();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Rt._=Cr,define(function(){return Cr})):Qr?((Qr.exports=Cr)._=Cr,Kl._=Cr):Rt._=Cr}).call(e)})),Se=Fi(d2(),1);function Ms(e){return Se.default.isEmpty(e)||Se.default.isNil(e)}function En(e){return Ms(e)||e===!1||e===0}function h2(e,t=document.body){return new Promise(r=>{const i=document.querySelector(e);if(i){r(i);return}const a=new MutationObserver(()=>{const s=document.querySelector(e);s&&(r(s),a.disconnect())});a.observe(t,{childList:!0,subtree:!0,attributes:!0})})}function xs(e,t=250){return new Promise(r=>{const i=setInterval(()=>{e()&&(clearInterval(i),r(!0))},t)})}function f2(e,t,r=document.body){return new Promise(i=>{const a=r.querySelector(e);if(a?.getAttribute(t)){i(a.getAttribute(t)??"");return}const s=new MutationObserver(()=>{const l=r.querySelector(e);l?.getAttribute(t)&&(i(l.getAttribute(t)??""),s.disconnect())});s.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[t]})})}function p2(e,t=document.body){return new Promise(r=>{if(!En(unsafeWindow[e])){r(unsafeWindow[e]);return}const i=new MutationObserver(()=>{En(unsafeWindow[e])||(r(unsafeWindow[e]),i.disconnect())});i.observe(t,{childList:!0,subtree:!0,attributes:!0})})}async function Zo(e,t,r,i){e!==void 0&&(Me(r),Me(i,await t(e)))}async function g2(e){await Zo(e.waitAttr,t=>f2(t?.[0],t?.[1]),`Waiting for Attribute ${e.waitAttr?.[1]} of ${e.waitAttr?.[0]}`,`Found Attribute ${e.waitAttr?.[1]} of ${e.waitAttr?.[0]} =`),await Zo(e.waitEle,h2,`Waiting for Element ${e.waitEle}`,"Found Element"),await Zo(e.waitVar,p2,`Waiting for Variable ${e.waitVar}`,"Found Variable"),await Zo(e.waitFunc,xs,`Waiting to pass Function check ${e.waitFunc}`,"Found Function check"),await Zo(e.waitTime,t=>new Promise(r=>setTimeout(r,t)),`Waiting for ${e.waitTime} milliseconds`,"Continuing after timer")}var Pn=[],hr=0,Gi=4,Wi=0,lu=e=>{let t=[],r={get(){return r.lc||r.listen(()=>{})(),r.value},init:e,lc:0,listen(i){return r.lc=t.push(i),()=>{for(let s=hr+Gi;s<Pn.length;)Pn[s]===i?Pn.splice(s,Gi):s+=Gi;let a=t.indexOf(i);~a&&(t.splice(a,1),--r.lc||r.off())}},notify(i,a){Wi++;let s=!Pn.length;for(let l of t)Pn.push(l,r.value,i,a);if(s){for(hr=0;hr<Pn.length;hr+=Gi)Pn[hr](Pn[hr+1],Pn[hr+2],Pn[hr+3]);Pn.length=0}},off(){},set(i){let a=r.value;a!==i&&(r.value=i,r.notify(a))},subscribe(i){let a=r.listen(i);return i(r.value),a},value:e};return r},m2=5,Ui=6,Vi=10,v2=(e,t,r,i)=>(e.events=e.events||{},e.events[r+Vi]||(e.events[r+Vi]=i(a=>{e.events[r].reduceRight((s,l)=>(l(s),s),{shared:{},...a})})),e.events[r]=e.events[r]||[],e.events[r].push(t),()=>{let a=e.events[r],s=a.indexOf(t);a.splice(s,1),a.length||(delete e.events[r],e.events[r+Vi](),delete e.events[r+Vi])}),b2=1e3,w2=(e,t)=>v2(e,i=>{let a=t(i);a&&e.events[Ui].push(a)},m2,i=>{let a=e.listen;e.listen=(...l)=>(!e.lc&&!e.active&&(e.active=!0,i()),a(...l));let s=e.off;return e.events[Ui]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let l of e.events[Ui])l();e.events[Ui]=[]}},b2)},()=>{e.listen=a,e.off=s}}),_2=(e,t,r)=>{Array.isArray(e)||(e=[e]);let i,a,s=()=>{if(a===Wi)return;a=Wi;let p=e.map(w=>w.get());if(!i||p.some((w,b)=>w!==i[b])){i=p;let w=t(...p);w&&w.then&&w.t?w.then(b=>{i===p&&l.set(b)}):(l.set(w),a=Wi)}},l=lu(void 0),h=l.get;l.get=()=>(s(),h());let u,f=r?()=>{clearTimeout(u),u=setTimeout(s)}:s;return w2(l,()=>{let p=e.map(w=>w.listen(f));return s(),()=>{for(let w of p)w()}}),l},y2=(e,t)=>_2(e,t),cu=(e={})=>{let t=lu(e);return t.setKey=function(r,i){let a=t.value;typeof i>"u"&&r in t.value?(t.value={...t.value},delete t.value[r],t.notify(a,r)):t.value[r]!==i&&(t.value={...t.value,[r]:i},t.notify(a,r))},t},Is=globalThis,uu=e=>e,Zi=Is.trustedTypes,du=Zi?Zi.createPolicy("lit-html",{createHTML:e=>e}):void 0,Cs="$lit$",Jn=`lit$${Math.random().toFixed(9).slice(2)}$`,Os="?"+Jn,k2=`<${Os}>`,zr=document,qo=()=>zr.createComment(""),jo=e=>e===null||typeof e!="object"&&typeof e!="function",Ts=Array.isArray,hu=e=>Ts(e)||typeof e?.[Symbol.iterator]=="function",Ls=`[ 	
\f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fu=/-->/g,pu=/>/g,Nr=RegExp(`>|${Ls}(?:([^\\s"'>=/]+)(${Ls}*=${Ls}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),gu=/'/g,mu=/"/g,vu=/^(?:script|style|textarea|title)$/i,Rs=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),le=Rs(1),wA=Rs(2),_A=Rs(3),Qn=Symbol.for("lit-noChange"),Ne=Symbol.for("lit-nothing"),bu=new WeakMap,Br=zr.createTreeWalker(zr,129);function wu(e,t){if(!Ts(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return du!==void 0?du.createHTML(t):t}var _u=(e,t)=>{const r=e.length-1,i=[];let a,s=t===2?"<svg>":t===3?"<math>":"",l=Ko;for(let h=0;h<r;h++){const u=e[h];let f,p,w=-1,b=0;for(;b<u.length&&(l.lastIndex=b,p=l.exec(u),p!==null);)b=l.lastIndex,l===Ko?p[1]==="!--"?l=fu:p[1]!==void 0?l=pu:p[2]!==void 0?(vu.test(p[2])&&(a=RegExp("</"+p[2],"g")),l=Nr):p[3]!==void 0&&(l=Nr):l===Nr?p[0]===">"?(l=a??Ko,w=-1):p[1]===void 0?w=-2:(w=l.lastIndex-p[2].length,f=p[1],l=p[3]===void 0?Nr:p[3]==='"'?mu:gu):l===mu||l===gu?l=Nr:l===fu||l===pu?l=Ko:(l=Nr,a=void 0);const v=l===Nr&&e[h+1].startsWith("/>")?" ":"";s+=l===Ko?u+k2:w>=0?(i.push(f),u.slice(0,w)+Cs+u.slice(w)+Jn+v):u+Jn+(w===-2?h:v)}return[wu(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Ps=class Zf{constructor({strings:t,_$litType$:r},i){let a;this.parts=[];let s=0,l=0;const h=t.length-1,u=this.parts,[f,p]=_u(t,r);if(this.el=Zf.createElement(f,i),Br.currentNode=this.el.content,r===2||r===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=Br.nextNode())!==null&&u.length<h;){if(a.nodeType===1){if(a.hasAttributes())for(const w of a.getAttributeNames())if(w.endsWith(Cs)){const b=p[l++],v=a.getAttribute(w).split(Jn),m=/([.?@])?(.*)/.exec(b);u.push({type:1,index:s,name:m[2],strings:v,ctor:m[1]==="."?ku:m[1]==="?"?Eu:m[1]==="@"?Au:Yo}),a.removeAttribute(w)}else w.startsWith(Jn)&&(u.push({type:6,index:s}),a.removeAttribute(w));if(vu.test(a.tagName)){const w=a.textContent.split(Jn),b=w.length-1;if(b>0){a.textContent=Zi?Zi.emptyScript:"";for(let v=0;v<b;v++)a.append(w[v],qo()),Br.nextNode(),u.push({type:2,index:++s});a.append(w[b],qo())}}}else if(a.nodeType===8)if(a.data===Os)u.push({type:2,index:s});else{let w=-1;for(;(w=a.data.indexOf(Jn,w+1))!==-1;)u.push({type:7,index:s}),w+=Jn.length-1}s++}}static createElement(t,r){const i=zr.createElement("template");return i.innerHTML=t,i}};function Hr(e,t,r=e,i){if(t===Qn)return t;let a=i!==void 0?r._$Co?.[i]:r._$Cl;const s=jo(t)?void 0:t._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(e),a._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=a:r._$Cl=a),a!==void 0&&(t=Hr(e,a._$AS(e,t.values),a,i)),t}var yu=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,i=(e?.creationScope??zr).importNode(t,!0);Br.currentNode=i;let a=Br.nextNode(),s=0,l=0,h=r[0];for(;h!==void 0;){if(s===h.index){let u;h.type===2?u=new qi(a,a.nextSibling,this,e):h.type===1?u=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(u=new Su(a,this,e)),this._$AV.push(u),h=r[++l]}s!==h?.index&&(a=Br.nextNode(),s++)}return Br.currentNode=zr,i}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},qi=class qf{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,a){this.type=2,this._$AH=Ne,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Hr(this,t,r),jo(t)?t===Ne||t==null||t===""?(this._$AH!==Ne&&this._$AR(),this._$AH=Ne):t!==this._$AH&&t!==Qn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ne&&jo(this._$AH)?this._$AA.nextSibling.data=t:this.T(zr.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:i}=t,a=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ps.createElement(wu(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===a)this._$AH.p(r);else{const s=new yu(a,this),l=s.u(this.options);s.p(r),this.T(l),this._$AH=s}}_$AC(t){let r=bu.get(t.strings);return r===void 0&&bu.set(t.strings,r=new Ps(t)),r}k(t){Ts(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,a=0;for(const s of t)a===r.length?r.push(i=new qf(this.O(qo()),this.O(qo()),this,this.options)):i=r[a],i._$AI(s),a++;a<r.length&&(this._$AR(i&&i._$AB.nextSibling,a),r.length=a)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){const i=uu(t).nextSibling;uu(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Yo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,a){this.type=1,this._$AH=Ne,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ne}_$AI(e,t=this,r,i){const a=this.strings;let s=!1;if(a===void 0)e=Hr(this,e,t,0),s=!jo(e)||e!==this._$AH&&e!==Qn,s&&(this._$AH=e);else{const l=e;let h,u;for(e=a[0],h=0;h<a.length-1;h++)u=Hr(this,l[r+h],t,h),u===Qn&&(u=this._$AH[h]),s||=!jo(u)||u!==this._$AH[h],u===Ne?e=Ne:e!==Ne&&(e+=(u??"")+a[h+1]),this._$AH[h]=u}s&&!i&&this.j(e)}j(e){e===Ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ku=class extends Yo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ne?void 0:e}},Eu=class extends Yo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ne)}},Au=class extends Yo{constructor(e,t,r,i,a){super(e,t,r,i,a),this.type=5}_$AI(e,t=this){if((e=Hr(this,e,t,0)??Ne)===Qn)return;const r=this._$AH,i=e===Ne&&r!==Ne||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==Ne&&(r===Ne||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Su=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Hr(this,e)}},E2={M:Cs,P:Jn,A:Os,C:1,L:_u,R:yu,D:hu,V:Hr,I:qi,H:Yo,N:Eu,U:Au,B:ku,F:Su},A2=Is.litHtmlPolyfillSupport;A2?.(Ps,qi),(Is.litHtmlVersions??=[]).push("3.3.2");var S2=(e,t,r)=>{const i=r?.renderBefore??t;let a=i._$litPart$;if(a===void 0){const s=r?.renderBefore??null;i._$litPart$=a=new qi(t.insertBefore(qo(),s),s,void 0,r??{})}return a._$AI(e),a},{I:M2}=E2,Mu=e=>e,yA=e=>e===null||typeof e!="object"&&typeof e!="function",kA={HTML:1,SVG:2,MATHML:3},EA=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,AA=e=>e?._$litType$?.h!=null,SA=e=>e?._$litDirective$!==void 0,MA=e=>e?._$litDirective$,x2=e=>e.strings===void 0,xu=()=>document.createComment(""),xA=(e,t,r)=>{const i=e._$AA.parentNode,a=t===void 0?e._$AB:t._$AA;if(r===void 0)r=new M2(i.insertBefore(xu(),a),i.insertBefore(xu(),a),e,e.options);else{const s=r._$AB.nextSibling,l=r._$AM,h=l!==e;if(h){let u;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(u=e._$AU)!==l._$AU&&r._$AP(u)}if(s!==a||h){let u=r._$AA;for(;u!==s;){const f=Mu(u).nextSibling;Mu(i).insertBefore(u,a),u=f}}}return r},IA=(e,t,r=e)=>(e._$AI(t,r),e),I2={},CA=(e,t=I2)=>e._$AH=t,OA=e=>e._$AH,TA=e=>{e._$AR(),e._$AA.remove()},LA=e=>{e._$AR()},ji={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xo=e=>(...t)=>({_$litDirective$:e,values:t}),Ki=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Jo=(e,t)=>{const r=e._$AN;if(r===void 0)return!1;for(const i of r)i._$AO?.(t,!1),Jo(i,t);return!0},Yi=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},Iu=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),T2(t)}};function C2(e){this._$AN!==void 0?(Yi(this),this._$AM=e,Iu(this)):this._$AM=e}function O2(e,t=!1,r=0){const i=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(t)if(Array.isArray(i))for(let s=r;s<i.length;s++)Jo(i[s],!1),Yi(i[s]);else i!=null&&(Jo(i,!1),Yi(i));else Jo(this,e)}var T2=e=>{e.type==ji.CHILD&&(e._$AP??=O2,e._$AQ??=C2)},L2=class extends Ki{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Iu(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Jo(this,e),Yi(this))}setValue(e){if(x2(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}},$s=()=>new R2,R2=class{},Ds=new WeakMap,zs=Xo(class extends L2{render(e){return Ne}update(e,[t]){const r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Ne}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let r=Ds.get(t);r===void 0&&(r=new WeakMap,Ds.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return typeof this.G=="function"?Ds.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),P2={ID:"de_DE",NAME:"Deutsch",STARTING:"Starte Manga OnlineViewer",RESUME:"Fortsetzen ab Seite ",WAITING:"Bitte warten, 3 Sekunden...",CHOOSE_BEGINNING:"Wähle die Startseite:",BUTTON_START:"Manga OnlineViewer starten",SETTINGS:"Einstellungen",LANGUAGE:"Sprache",COLOR_SCHEME:"Farbschema",THEME:"Design",THEME_COLOR:"Farbe",THEME_HUE:"Farbton",THEME_SHADE:"Schattierung",DEFAULT_LOAD_MODE:"Standard-Lademodus",LOAD_MODE_NORMAL:"Normal (3 Sek. warten)",LOAD_MODE_ALWAYS:"Immer (sofort)",LOAD_MODE_NEVER:"Nie (manuell)",LOAD_SPEED:"Ladegeschwindigkeit",DEFAULT_ZOOM:"Standard-Zoom (zwischen 5 und 200)",DEFAULT_ZOOM_MODE:"Standard-Zoommodus",MINIMUM_ZOOM:"Minimaler Zoom relativ zur Bildschirmbreite (zwischen 30 und 100)",ZOOM_STEP:"Zoom-Schrittgröße (zwischen 5 und 50)",DEFAULT_VIEW_MODE:"Standard-Ansichtsmodus",VIEW_MODE_VERTICAL:"Vertikal",VIEW_MODE_LEFT:"Horizontal - Links nach Rechts",VIEW_MODE_RIGHT:"Horizontal - Rechts nach Links",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Buch - Links nach Rechts",VIEW_MODE_MANGA:"Manga - Rechts nach Links",VIEW_MODE_GALLERY:"Galerie",FIT_WIDTH_OVERSIZED:"Breite anpassen bei Übergröße",SHOW_THUMBNAILS:"Miniaturansichten anzeigen",HIDE_CONTROLS:"Seitensteuerung immer ausblenden",HEADER_TYPE:"Kopfbereichstyp ändern",HEADER_HOVER:"Hover",HEADER_SCROLL:"Scrollen",HEADER_CLICK:"Klicken",HEADER_FIXED:"Fixiert",HEADER_SIMPLE:"Einfach",BUTTON_DOWNLOAD:"Herunterladen",DOWNLOAD_ZIP:"Zip-Datei herunterladen",DOWNLOAD_IMAGES:"Bilder automatisch als Zip herunterladen",DOWNLOAD_PROGRESS:"Herunterladen: ##num## von ##total##",GENERATING_ZIP:"Zip-Datei wird erstellt...",DOWNLOAD_INCOMPLETE:"Download unvollständig",DOWNLOAD_INCOMPLETE_MESSAGE:"Einige Seiten konnten nicht heruntergeladen werden und wurden übersprungen. Eine Liste der fehlgeschlagenen Seiten wurde der ZIP-Datei hinzugefügt.",BUTTON_NEXT:"Weiter",NEXT_CHAPTER:"Nächstes Kapitel",BUTTON_PREVIOUS:"Zurück",PREVIOUS_CHAPTER:"Vorheriges Kapitel",BOOKMARKS:"Lesezeichen",BOOKMARK:"Lesezeichen",BOOKMARK_REMOVED:"Lesezeichen entfernt",BOOKMARK_SAVED:"Lesezeichen gespeichert",BOOKMARK_MESSAGE:"Beim nächsten Öffnen dieses Kapitels wird ab fortgesetzt: Seite ##num## (Nur EINMAL pro Lesezeichen)",KEYBINDINGS:"Tastenkürzel",EDIT_KEYBINDS:"Tastenkürzel bearbeiten",SAVE_KEYBINDS:"Tastenkürzel speichern",BUTTON_EDIT:"Bearbeiten",BUTTON_SAVE:"Speichern",KEYBIND_RULES:`
    <h3>Unterstützte Tasten</h3>
    Erlaubte Modifikatoren: shift, option, alt, ctrl, control, command. <br/>
    Spezielle Tasten: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Beispiele: <kbd>a</kbd>, <kbd>ctrl+a</kbd>, <kbd>shift+a</kbd>, <kbd>num_2</kbd>, <kbd>2</kbd>
  `,ATTENTION:"Achtung",WARNING:"Warnung",BUTTON_RESET_SETTINGS:"Einstellungen zurücksetzen(Reset Settings)",SETTINGS_RESET:"Die Einstellungen wurden zurückgesetzt, bitte Seite neu laden",LANGUAGE_CHANGED:"Die Sprache wurde geändert, bitte Seite neu laden",AUTO_DOWNLOAD:"Beim nächsten Laden eines Kapitels wirst du automatisch gefragt, ob du speichern möchtest",LAZY_LOAD:"Lazy Load ist mit Zip-Download nicht kompatibel, mit dieser Einstellung kannst du nicht herunterladen.<br/> Empfehlung: <span style='color:red;font-weight:bold'>Miniaturansichten deaktivieren</span> um Bandbreite/Speicher zu sparen.",LAZY_LOAD_IMAGES_ENABLE:"Lazy Load Bilder aktivieren",LAZY_LOAD_IMAGES:"Lazy Start ab Seite (zwischen 5 und 100)",RETURN_CHAPTER_LIST:"Zur Kapitelübersicht zurückkehren",PAGES_LOADED:"Seiten geladen",GO_TO_PAGE:"Gehe zu Seite",ENLARGE:"Vergrößern",RESTORE:"Wiederherstellen",REDUCE:"Wiederherstellen",FIT_WIDTH:"Breite anpassen",FIT_HEIGHT:"Höhe anpassen",PERCENT:"Prozent",TOGGLE_CONTROLS:"Seitensteuerung umschalten",ZOOM_IN:"Hineinzoomen",ZOOM_OUT:"Herauszoomen",ZOOM_RESET:"Zoom zurücksetzen",ZOOM_WIDTH:"Auf Breite zoomen",ZOOM_HEIGHT:"Auf Höhe zoomen",HIDE:"Ausblenden",RELOAD:"Neu laden",SLOWLY:"Langsam",NORMAL:"Normal",FAST:"Schnell",EXTREME:"Extrem",ALL_PAGES:"Alle Seiten",SPEED_WARNING:"Ladegeschwindigkeit zu hoch",SPEED_WARNING_MESSAGE:"Diese Geschwindigkeit wird nicht empfohlen.<br/> Sie kann einige Server überlasten oder deine IP als DDoS-Angreifer markieren.<br/> Bitte mit Vorsicht verwenden!",SCROLL_UP:"Nach oben scrollen",SCROLL_DOWN:"Nach unten scrollen",CLOSE:"Schließen",CANCEL:"Abbrechen",LIST_EMPTY:"Liste leer",SCROLL_START:"Auto-Scroll umschalten",INCREASE_SPEED:"Scrollgeschwindigkeit erhöhen",DECREASE_SPEED:"Scrollgeschwindigkeit verringern",AUTO_SCROLL_HEIGHT:"Auto-Scroll-Geschwindigkeit in Pixel",VERTICAL_SEPARATOR:"Vertikale Trenner anzeigen",END:"Ende",SCOPE:"Bereich",GLOBAL:"Global",GENERAL:"Allgemein",LOADING:"Lädt",ZOOM:"Zoom",OTHERS:"Sonstiges",NAVBAR_TYPE:"Navigationsleistentyp ändern",NAVBAR_BOTTOM:"Unten",NAVBAR_LEFT:"Links",NAVBAR_RIGHT:"Rechts",NAVBAR_DISABLED:"Deaktiviert",PAGINATION_TYPE:"Paginierungstyp",PAGINATION_DISABLED:"Deaktiviert",PAGINATION_SLIDER:"Schieberegler",PAGINATION_ARROWS:"Seitenpfeile",PAGINATION_BOTH:"Beides",FILE_MENU:"Hauptmenü",VIEW_MENU:"Menü „Ansicht“",ZOOM_MENU:"Zoom-Menü",DOUBLE_PAGE:"Doppelseite umschalten",CHOOSE_FILE:"Datei auswählen",NO_FILES_SELECTED:"Keine Dateien ausgewählt"},$2={ID:"en_US",NAME:"English (US)",STARTING:"Starting Manga OnlineViewer",RESUME:"Resuming reading from Page ",WAITING:"Please wait, 3 seconds...",CHOOSE_BEGINNING:"Choose the Page to start from:",BUTTON_START:"Start Manga OnlineViewer",SETTINGS:"Settings",LANGUAGE:"Language",COLOR_SCHEME:"Color Scheme",THEME:"Theme",THEME_COLOR:"Color",THEME_HUE:"Color Hue",THEME_SHADE:"Color Shade",DEFAULT_LOAD_MODE:"Default Load Mode",LOAD_MODE_NORMAL:"Normal(Wait 3 sec)",LOAD_MODE_ALWAYS:"Always(Immediately)",LOAD_MODE_NEVER:"Never(Manually)",LOAD_SPEED:"Load Speed",DEFAULT_ZOOM:"Default Zoom (between 5 and 200)",DEFAULT_ZOOM_MODE:"Default Zoom Mode",MINIMUM_ZOOM:"Minimum Zoom relative to the width of screen (between 30 and 100)",ZOOM_STEP:"Zoom Change Step (between 5 and 50)",DEFAULT_VIEW_MODE:"Default View Mode",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Left to Right",VIEW_MODE_RIGHT:"Horizontal - Right to Left",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Book - Left to Right",VIEW_MODE_MANGA:"Manga - Right to Left",VIEW_MODE_GALLERY:"Gallery",FIT_WIDTH_OVERSIZED:"Fit Width if Oversized",SHOW_THUMBNAILS:"Show Thumbnails",HIDE_CONTROLS:"Always Hide Page Controls",HEADER_TYPE:"Change Header Type",HEADER_HOVER:"Hover",HEADER_SCROLL:"Scroll",HEADER_CLICK:"Click",HEADER_FIXED:"Fixed",HEADER_SIMPLE:"Simple",BUTTON_DOWNLOAD:"Download",DOWNLOAD_ZIP:"Download Zip file",DOWNLOAD_IMAGES:"Download Images as Zip Automatically",DOWNLOAD_PROGRESS:"Downloading: ##num## of ##total##",GENERATING_ZIP:"Generating Zip file...",DOWNLOAD_INCOMPLETE:"Download Incomplete",DOWNLOAD_INCOMPLETE_MESSAGE:"Some pages failed to download and were skipped. A list of failed pages has been added to the ZIP file.",BUTTON_NEXT:"Next",NEXT_CHAPTER:"Next Chapter",BUTTON_PREVIOUS:"Previous",PREVIOUS_CHAPTER:"Previous Chapter",BOOKMARKS:"Bookmarks",BOOKMARK:"Bookmark",BOOKMARK_REMOVED:"Bookmark Removed",BOOKMARK_SAVED:"Bookmark Saved",BOOKMARK_MESSAGE:"Next time you open this chapter it will resume from: Page ##num## (Only ONCE per Bookmark)",KEYBINDINGS:"Keybindings",EDIT_KEYBINDS:"Edit KeyBindings",SAVE_KEYBINDS:"Save KeyBindings",BUTTON_EDIT:"Edit",BUTTON_SAVE:"Save",KEYBIND_RULES:`
    <h3>Supported Keys</h3>
    Allowed modifiers: shift, option, alt, ctrl, control, command. <br/>
    Special keys: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Examples: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Attention",WARNING:"Warning",BUTTON_RESET_SETTINGS:"Reset Settings",SETTINGS_RESET:"Settings have been reset, reload the page to take effect",LANGUAGE_CHANGED:"Language has been changed, reload the page to take effect",AUTO_DOWNLOAD:"Next time a chapter finish loading you will be prompted to save automatically",LAZY_LOAD:"Lazy load is incompatible with zip download, you will not be able to download with this setting ON.<br/> Suggestion: <span style='color:red;font-weight:bold'>Disable Thumbnails</span> to save Bandwidth/Memory.",LAZY_LOAD_IMAGES_ENABLE:"Enable Lazy Load Images",LAZY_LOAD_IMAGES:"Lazy Start From Page (between 5 and 100)",RETURN_CHAPTER_LIST:"Return to Chapter List",PAGES_LOADED:"Pages Loaded",GO_TO_PAGE:"Go to Page",ENLARGE:"Enlarge",RESTORE:"Restore",REDUCE:"Reduce",FIT_WIDTH:"Fit Width",FIT_HEIGHT:"Fit Height",PERCENT:"Percent",TOGGLE_CONTROLS:"Toggle page controls",ZOOM_IN:"Zoom In",ZOOM_OUT:"Zoom Out",ZOOM_RESET:"Zoom Reset",ZOOM_WIDTH:"Zoom to Width",ZOOM_HEIGHT:"Zoom to Height",HIDE:"Hide",RELOAD:"Reload",SLOWLY:"Slowly",NORMAL:"Normal",FAST:"Fast",EXTREME:"Extreme",ALL_PAGES:"All Pages",SPEED_WARNING:"Loading Speed too High",SPEED_WARNING_MESSAGE:"This speed is not recommended.<br/> It may hurt some servers or get your IP marked as DDoS attacker.<br/> Please use with caution!",SCROLL_UP:"Scroll Up",SCROLL_DOWN:"Scroll Down",CLOSE:"Close",CANCEL:"Cancel",LIST_EMPTY:"List Empty",SCROLL_START:"Toggle Auto Scroll",INCREASE_SPEED:"Increase Scroll Speed",DECREASE_SPEED:"Decrease Scroll Speed",AUTO_SCROLL_HEIGHT:"Auto Scroll Speed in Pixels",VERTICAL_SEPARATOR:"Show Vertical Separators",END:"End",SCOPE:"Scope",GLOBAL:"Global",GENERAL:"General",LOADING:"Loading",ZOOM:"Zoom",OTHERS:"Others",NAVBAR_TYPE:"Change Navbar Type",NAVBAR_BOTTOM:"Bottom",NAVBAR_LEFT:"Left",NAVBAR_RIGHT:"Right",NAVBAR_DISABLED:"Disabled",PAGINATION_TYPE:"Pagination Type",PAGINATION_DISABLED:"Disabled",PAGINATION_SLIDER:"Slider",PAGINATION_ARROWS:"Side Arrows",PAGINATION_BOTH:"Both",FILE_MENU:"Main Menu",VIEW_MENU:"View Menu",ZOOM_MENU:"Zoom Menu",DOUBLE_PAGE:"Toggle Double Page",CHOOSE_FILE:"Choose File",NO_FILES_SELECTED:"No files selected"},D2={ID:"es_ES",NAME:"Español (ES)",STARTING:"Iniciando Manga OnlineViewer",RESUME:"Continuando lectura desde la Página ",WAITING:"Por favor espere, 3 segundos...",CHOOSE_BEGINNING:"Elija la página en la que comenzar:",BUTTON_START:"Iniciar Manga OnlineViewer",SETTINGS:"Ajustes",LANGUAGE:"Idioma",COLOR_SCHEME:"Esquema de color",THEME:"Tema",THEME_COLOR:"Color",THEME_HUE:"Matiz del color",THEME_SHADE:"Saturación del color",DEFAULT_LOAD_MODE:"Modo de carga por defecto",LOAD_MODE_NORMAL:"Normal (Espera 3s)",LOAD_MODE_ALWAYS:"Siempre (Inmediatamente)",LOAD_MODE_NEVER:"Nunca (Manualmente)",LOAD_SPEED:"Velocidad carga",DEFAULT_ZOOM:"Zoom por defecto (entre 5 y 200)",DEFAULT_ZOOM_MODE:"Modo de zoom por defecto",MINIMUM_ZOOM:"Zoom mínimo relativo al ancho de la pantalla",ZOOM_STEP:"Paso entre cambios de zoom (entre 5 y 50)",DEFAULT_VIEW_MODE:"Modo de visualización por defecto",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Izquierda a derecha",VIEW_MODE_RIGHT:"Horizontal - Derecha a izquierda",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Libro - Izquierda a derecha",VIEW_MODE_MANGA:"Manga - Derecha a izquierda",VIEW_MODE_GALLERY:"Galería",FIT_WIDTH_OVERSIZED:"Ajustar ancho si es demasiado grande",SHOW_THUMBNAILS:"Mostrar miniaturas",HIDE_CONTROLS:"Ocultar siempre la barra de controles",HEADER_TYPE:"Cambiar tipo de cabecera",HEADER_HOVER:"Pasar por encima",HEADER_SCROLL:"Desplazamiento",HEADER_CLICK:"Hacer click",HEADER_FIXED:"Fijo",HEADER_SIMPLE:"Sencillo",BUTTON_DOWNLOAD:"Descargar",DOWNLOAD_ZIP:"Descargar fichero Zip",DOWNLOAD_IMAGES:"Autodescargar imágenes como Zip",DOWNLOAD_PROGRESS:"Descargando: ##num## de ##total##",GENERATING_ZIP:"Generando archivo Zip...",DOWNLOAD_INCOMPLETE:"Descarga Incompleta",DOWNLOAD_INCOMPLETE_MESSAGE:"Algunas páginas no se pudieron descargar y se saltaron. Se ha añadido una lista de páginas fallidas al archivo ZIP.",BUTTON_NEXT:"Siguiente",NEXT_CHAPTER:"Siguiente capítulo",BUTTON_PREVIOUS:"Anterior",PREVIOUS_CHAPTER:"Capítulo anterior",BOOKMARKS:"Marcadores",BOOKMARK:"Marcador",BOOKMARK_REMOVED:"Marcador eliminado",BOOKMARK_SAVED:"Marcador guardado",BOOKMARK_MESSAGE:"La próxima vez que abra este capítulo, continuará desde la página ##num## (Sólo UNA VEZ por Marcador)",KEYBINDINGS:"Atajos de teclado",EDIT_KEYBINDS:"Editar atajos",SAVE_KEYBINDS:"Guardar atajos",BUTTON_EDIT:"Editar",BUTTON_SAVE:"Guardar",KEYBIND_RULES:`
    <h3>Teclas soportadas</h3>
    Modificadores permitidos: shift, option, alt, ctrl, control, command. <br/>
    Teclas especiales: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Ejemplos: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Atención",WARNING:"Alerta",BUTTON_RESET_SETTINGS:"Reiniciar ajustes(Reset Settings)",SETTINGS_RESET:"Se han restablecido los ajustes, vuelve a cargar la página para que surta efecto",LANGUAGE_CHANGED:"Se ha cambiado el idioma, vuelve a cargar la página para que surta efecto",AUTO_DOWNLOAD:"La próxima vez que termine de cargarse un capítulo, se le pedirá que guarde automáticamente",LAZY_LOAD:"La carga diferida es incompatible con la descarga zip, no podrá descargar con este ajuste activado.<br/> Sugerencia: <span style='color:red;font-weight:bold'>Desactivar miniaturas</span> para ahorrar Ancho de banda/Memoria.",LAZY_LOAD_IMAGES_ENABLE:"Habilitar carga de imágenes diferida",LAZY_LOAD_IMAGES:"Empezar carga diferida a partir de la página (entre 5 y 100)",RETURN_CHAPTER_LIST:"Regresar a la lista de capítulos",PAGES_LOADED:"Páginas cargadas",GO_TO_PAGE:"Ir a página",ENLARGE:"Agrandar",RESTORE:"Restaurar",REDUCE:"Reducir",FIT_WIDTH:"Ajustar al ancho",FIT_HEIGHT:"Ajustar al alto",PERCENT:"Porcentual",TOGGLE_CONTROLS:"Alternar controles de página",ZOOM_IN:"Acercar",ZOOM_OUT:"Alejar",ZOOM_RESET:"Restablecer zoom",ZOOM_WIDTH:"Zoom al ancho",ZOOM_HEIGHT:"Zoom al alto",HIDE:"Ocultar",RELOAD:"Recargar",SLOWLY:"Lento",NORMAL:"Normal",FAST:"Rápido",EXTREME:"Extremo",ALL_PAGES:"Todas las páginas",SPEED_WARNING:"Velocidad de carga muy alta",SPEED_WARNING_MESSAGE:"No se recomienda esta velocidad.<br/> Puede dañar algunos servidores o marcar su IP como atacante DDoS.<br/> ¡Utilícelo con precaución!",SCROLL_UP:"Desplazar arriba",SCROLL_DOWN:"Desplazarse hacia abajo",CLOSE:"Cerrar",CANCEL:"Cancelar",LIST_EMPTY:"Lista vacía",SCROLL_START:"Alternar desplazamiento automático",INCREASE_SPEED:"Aumentar la velocidad de desplazamiento",DECREASE_SPEED:"Disminuir la velocidad de desplazamiento",AUTO_SCROLL_HEIGHT:"Velocidad de desplazamiento automático en píxeles",VERTICAL_SEPARATOR:"Mostrar separadores verticales",END:"Fin",SCOPE:"Alcance",GLOBAL:"Global",GENERAL:"General",LOADING:"Carga",ZOOM:"Zoom",OTHERS:"Otros",NAVBAR_TYPE:"Cambiar el tipo de barra de navegación",NAVBAR_BOTTOM:"Abajo",NAVBAR_LEFT:"Izquierda",NAVBAR_RIGHT:"Derecha",NAVBAR_DISABLED:"Desactivado",PAGINATION_TYPE:"Tipo de paginación",PAGINATION_DISABLED:"Desactivado",PAGINATION_SLIDER:"Control deslizante",PAGINATION_ARROWS:"Flechas laterales",PAGINATION_BOTH:"Ambos",FILE_MENU:"Menú principal",VIEW_MENU:"Ver menú",ZOOM_MENU:"Menú Zoom",DOUBLE_PAGE:"Alternar Página Doble",CHOOSE_FILE:"Elegir archivo",NO_FILES_SELECTED:"No se han seleccionado archivos"},z2={ID:"fr_FR",NAME:"Français (FR)",STARTING:"Démarrage Manga OnlineViewer",RESUME:"Reprise de la lecture à partir de la Page ",WAITING:"Veuillez patienter, 3 secondes...",CHOOSE_BEGINNING:"Choisissez la page par laquelle commencer :",BUTTON_START:"Démarrer Manga OnlineViewer",SETTINGS:"Paramètres",LANGUAGE:"Langue",COLOR_SCHEME:"Palette de couleurs",THEME:"Thème",THEME_COLOR:"Couleur",THEME_HUE:"Teinte de couleur",THEME_SHADE:"Nuance de couleur",DEFAULT_LOAD_MODE:"Mode de chargement par défaut",LOAD_MODE_NORMAL:"Normal (attendre 3 s)",LOAD_MODE_ALWAYS:"Toujours (immédiatement)",LOAD_MODE_NEVER:"Jamais (manuellement)",LOAD_SPEED:"Vitesse de chargement",DEFAULT_ZOOM:"Zoom par défaut (entre 5 et 200)",DEFAULT_ZOOM_MODE:"Mode de zoom par défaut",MINIMUM_ZOOM:"Zoom minimum par rapport à la largeur de l'écran (entre 30 et 100)",ZOOM_STEP:"Pas de changement de zoom (entre 5 et 50)",DEFAULT_VIEW_MODE:"Mode d'affichage par défaut",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - De gauche à droite",VIEW_MODE_RIGHT:"Horizontal - De droite à gauche",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Livre - De gauche à droite",VIEW_MODE_MANGA:"Manga - De droite à gauche",VIEW_MODE_GALLERY:"Galerie",FIT_WIDTH_OVERSIZED:"Ajuster à la largeur si surdimensionné",SHOW_THUMBNAILS:"Afficher les vignettes",HIDE_CONTROLS:"Toujours masquer les contrôles de page",HEADER_TYPE:"Changer le type d'en-tête",HEADER_HOVER:"Survol",HEADER_SCROLL:"Défilement",HEADER_CLICK:"Clic",HEADER_FIXED:"Fixe",HEADER_SIMPLE:"Simple",BUTTON_DOWNLOAD:"Télécharger",DOWNLOAD_ZIP:"Télécharger le fichier Zip",DOWNLOAD_IMAGES:"Télécharger les images en Zip automatiquement",DOWNLOAD_PROGRESS:"Téléchargement : ##num## sur ##total##",GENERATING_ZIP:"Génération du fichier Zip...",DOWNLOAD_INCOMPLETE:"Téléchargement incomplet",DOWNLOAD_INCOMPLETE_MESSAGE:"Certaines pages n'ont pas pu être téléchargées et ont été ignorées. Une liste des pages concernées a été ajoutée au fichier ZIP.",BUTTON_NEXT:"Suivant",NEXT_CHAPTER:"Chapitre suivant",BUTTON_PREVIOUS:"Précédent",PREVIOUS_CHAPTER:"Chapitre précédent",BOOKMARKS:"Favoris",BOOKMARK:"Favori",BOOKMARK_REMOVED:"Favori supprimé",BOOKMARK_SAVED:"Favori enregistré",BOOKMARK_MESSAGE:"La prochaine fois que vous ouvrirez ce chapitre, il reprendra à partir de: Page ##num## (Seulement UNE FOIS par favori)",KEYBINDINGS:"Raccourcis clavier",EDIT_KEYBINDS:"Modifier les raccourcis clavier",SAVE_KEYBINDS:"Enregistrer les raccourcis clavier",BUTTON_EDIT:"Modifier",BUTTON_SAVE:"Enregistrer",KEYBIND_RULES:`
    <h3>Touches prises en charge</h3>
    Modificateurs autorisés : shift, option, alt, ctrl, control, command. <br/>
    Touches spéciales : backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide. <br/>
    Exemples : <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Attention",WARNING:"Avertissement",BUTTON_RESET_SETTINGS:"Réinitialiser les paramètres",SETTINGS_RESET:"Les paramètres ont été réinitialisés, rechargez la page pour prendre effet",LANGUAGE_CHANGED:"La langue a été modifiée, rechargez la page pour prendre effet",AUTO_DOWNLOAD:"La prochaine fois qu'un chapitre finira de se charger, il vous sera proposé de l'enregistrer automatiquement",LAZY_LOAD:"Le chargement paresseux est incompatible avec le téléchargement zip, vous ne pourrez pas télécharger avec ce paramètre activé.<br/> Suggestion : <span style='color:red;font-weight:bold'>Désactivez les vignettes</span> pour économiser de la bande passante/mémoire.",LAZY_LOAD_IMAGES_ENABLE:"Activer le chargement paresseux des images",LAZY_LOAD_IMAGES:"Début du chargement paresseux à partir de la page (entre 5 et 100)",RETURN_CHAPTER_LIST:"Retour à la liste des chapitres",PAGES_LOADED:"Pages chargées",GO_TO_PAGE:"Aller à la page",ENLARGE:"Agrandir",RESTORE:"Restaurer",REDUCE:"Réduire",FIT_WIDTH:"Ajuster à la largeur",FIT_HEIGHT:"Ajuster à la hauteur",PERCENT:"Pourcentage",TOGGLE_CONTROLS:"Basculer les contrôles de page",ZOOM_IN:"Zoom avant",ZOOM_OUT:"Zoom arrière",ZOOM_RESET:"Réinitialiser le zoom",ZOOM_WIDTH:"Zoomer à la largeur",ZOOM_HEIGHT:"Zoomer à la hauteur",HIDE:"Masquer",RELOAD:"Recharger",SLOWLY:"Lentement",NORMAL:"Normal",FAST:"Rapide",EXTREME:"Extrême",ALL_PAGES:"Toutes les pages",SPEED_WARNING:"Vitesse de chargement trop élevée",SPEED_WARNING_MESSAGE:"Cette vitesse n'est pas recommandée.<br/> Elle peut nuire à certains serveurs ou marquer votre IP comme un attaquant DDoS.<br/> Veuillez l'utiliser avec prudence !",SCROLL_UP:"Faire défiler vers le haut",SCROLL_DOWN:"Faire défiler vers le bas",CLOSE:"Fermer",CANCEL:"Annuler",LIST_EMPTY:"Liste vide",SCROLL_START:"Basculer le défilement automatique",INCREASE_SPEED:"Augmenter la vitesse de défilement",DECREASE_SPEED:"Diminuer la vitesse de défilement",AUTO_SCROLL_HEIGHT:"Vitesse de défilement automatique en pixels",VERTICAL_SEPARATOR:"Afficher les séparateurs verticaux",END:"Fin",SCOPE:"Portée",GLOBAL:"Global",GENERAL:"Général",LOADING:"Chargement",ZOOM:"Zoom",OTHERS:"Autres",NAVBAR_TYPE:"Changer le type de barre de navigation",NAVBAR_BOTTOM:"Bas",NAVBAR_LEFT:"Gauche",NAVBAR_RIGHT:"Droite",NAVBAR_DISABLED:"Désactivé",PAGINATION_TYPE:"Type de pagination",PAGINATION_DISABLED:"Désactivé",PAGINATION_SLIDER:"Curseur",PAGINATION_ARROWS:"Flèches latérales",PAGINATION_BOTH:"Les deux",FILE_MENU:"Menu principal",VIEW_MENU:"Menu Affichage",ZOOM_MENU:"Menu Zoom",DOUBLE_PAGE:"Basculer Double Page",CHOOSE_FILE:"Choisir un fichier",NO_FILES_SELECTED:"Aucun fichier sélectionné"},N2={ID:"pt_BR",NAME:"Portugues (Brasil)",STARTING:"Iniciando Manga OnlineViewer",RESUME:"Continuando leitura na Pagina ",WAITING:"Por Favor espere, 3 segundos...",CHOOSE_BEGINNING:"Escolha a pagina de onde começar:",BUTTON_START:"Iniciar Manga OnlineViewer",SETTINGS:"Configurações",LANGUAGE:"Idioma",COLOR_SCHEME:"Esquema de Color",THEME:"Tema",THEME_COLOR:"Cor",THEME_HUE:"Tom da Cor",THEME_SHADE:"Saturação da Cor",DEFAULT_LOAD_MODE:"Forma de Carregamento Padrão",LOAD_MODE_NORMAL:"Normal(Esperando 3 sec)",LOAD_MODE_ALWAYS:"Sempre(Imediatamente)",LOAD_MODE_NEVER:"Nunca(Manualmente)",LOAD_SPEED:"Velocidade de Carregamento",DEFAULT_ZOOM:"Zoom padrão (entre 5 e 200)",DEFAULT_ZOOM_MODE:"Modo de Zoom padrão",MINIMUM_ZOOM:"Zoom minimo, relativo ao tamanho da tela (entre 30 e 100)",ZOOM_STEP:"Precisão da Mudança do Zoom (entre 5 e 50)",DEFAULT_VIEW_MODE:"Modo de Visualização Padrão",VIEW_MODE_VERTICAL:"Vertical",VIEW_MODE_LEFT:"Horizontal - Esquerda para Direita",VIEW_MODE_RIGHT:"Horizontal - Direita para Esquerda",VIEW_MODE_WEBCOMIC:"WebComic",VIEW_MODE_BOOK:"Livro - Esquerda para Direita",VIEW_MODE_MANGA:"Mangá - Direita para Esquerda",VIEW_MODE_GALLERY:"Galeria",FIT_WIDTH_OVERSIZED:"Encher a tela se grande demais",SHOW_THUMBNAILS:"Mostra Miniaturas",HIDE_CONTROLS:"Sempre esconder controles das paginas",HEADER_TYPE:"Mudar Tipo de Cabeçalho",HEADER_HOVER:"Passar por perto",HEADER_SCROLL:"Rolagem do Mouse",HEADER_CLICK:"Click",HEADER_FIXED:"Fixo",HEADER_SIMPLE:"Simples",BUTTON_DOWNLOAD:"Download",DOWNLOAD_ZIP:"Baixar arquivo Zip",DOWNLOAD_IMAGES:"Download das Imagens como Zip Automaticamente",DOWNLOAD_PROGRESS:"Baixando: ##num## de ##total##",GENERATING_ZIP:"Gerando arquivo Zip...",DOWNLOAD_INCOMPLETE:"Download Incompleto",DOWNLOAD_INCOMPLETE_MESSAGE:"Algumas páginas falharam ao baixar e foram puladas. Uma lista de páginas que falharam foi adicionada ao arquivo ZIP.",BUTTON_NEXT:"Proximo",NEXT_CHAPTER:"Proximo Capitulo",BUTTON_PREVIOUS:"Anterior",PREVIOUS_CHAPTER:"Capitulo Anterior",BOOKMARKS:"Marca paginas",BOOKMARK:"Marcar pagina",BOOKMARK_REMOVED:"Marca pagina Removido",BOOKMARK_SAVED:"Marca pagina Salvo",BOOKMARK_MESSAGE:"Proxima vez que abrir este capitulo continuará a partir da Pagina ##num## (Apenas UMA VEZ por marca pagina)",KEYBINDINGS:"Atalhos",EDIT_KEYBINDS:"Editar Atalhos",SAVE_KEYBINDS:"Salvar Atalhos",BUTTON_EDIT:"Editar",BUTTON_SAVE:"Salvar",KEYBIND_RULES:`
    <h3>Teclas Suportadas</h3>
    Modificadores permitidos: shift, option, alt, ctrl, control, command. <br/>
    Teclas Especiais: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide.<br/>
    Exemplos: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"Atenção",WARNING:"Alerta",BUTTON_RESET_SETTINGS:"Limpar Configurações(Reset Settings)",SETTINGS_RESET:"Configurações foram limpas, recarregue o site para efetivar a alteração",LANGUAGE_CHANGED:"Idioma foi alterado, recarregue o site para efetivar a alteração",AUTO_DOWNLOAD:"Proxima vez que abrir um capitulo download iniciara automaticamente",LAZY_LOAD:"Carregamento preguiçoso não é compativel com download de zip, não conseguira com essa configuração ativa.<br/> Sugestão: <span style='color:red;font-weight:bold'>Desative Miniaturas</span> para economizar memoria e cota de internet.",LAZY_LOAD_IMAGES_ENABLE:"Ativar Carregamento de imagens preguiçoso",LAZY_LOAD_IMAGES:"Carregamento de paginas preguiçoso começa a partir de (entre 5 e 100)",RETURN_CHAPTER_LIST:"Voltar a lista de Capitulos",PAGES_LOADED:"Paginas Carregadas",GO_TO_PAGE:"Pular para",ENLARGE:"Aumentar",RESTORE:"Restaurar",REDUCE:"Diminuir",FIT_WIDTH:"Preencher Largura",FIT_HEIGHT:"Preencher Altura ",PERCENT:"Percentual",TOGGLE_CONTROLS:"Mostar controles de pagina",ZOOM_IN:"Mais Zoom",ZOOM_OUT:"Menos Zoom",ZOOM_RESET:"Resetar Zoom",ZOOM_WIDTH:"Zoom para Largura",ZOOM_HEIGHT:"Zoom para Altura",HIDE:"Esconder",RELOAD:"Recarregar",SLOWLY:"Devagar",NORMAL:"Normal",FAST:"Rapido",EXTREME:"Extremo",ALL_PAGES:"Todas as Paginas",SPEED_WARNING:"Velocidade de Carregamento muito alta",SPEED_WARNING_MESSAGE:"Essa velocidade não é recomendada.<br/> Ela pode derrubar um servidor or marcar voce como um ataque hacker de DDoS.<br/> Use com cuidado!",SCROLL_UP:"Subir Pagina",SCROLL_DOWN:"Descer Pagina",CLOSE:"Fechar",CANCEL:"Cancelar",LIST_EMPTY:"Lista Vazia",SCROLL_START:"Ativar Rolagem Automatica",INCREASE_SPEED:"Aumentar Valocidade da Rolagem",DECREASE_SPEED:"Diminuir Valocidade da Rolagem",AUTO_SCROLL_HEIGHT:"Velocidade da Rolagem Automatica em Pixels",VERTICAL_SEPARATOR:"Mostrar Separadores Verticais",END:"Fin",SCOPE:"Escopo",GLOBAL:"Global",GENERAL:"Geral",LOADING:"Carregamento",ZOOM:"Zoom",OTHERS:"Outros",NAVBAR_TYPE:"Mudar barra de navegação",NAVBAR_BOTTOM:"Embaixo",NAVBAR_LEFT:"Esquerda",NAVBAR_RIGHT:"Direita",NAVBAR_DISABLED:"Desativado",PAGINATION_TYPE:"Tipo de Paginação",PAGINATION_DISABLED:"Desativado",PAGINATION_SLIDER:"Controle deslizante",PAGINATION_ARROWS:"Setas Laterais",PAGINATION_BOTH:"Ambos",FILE_MENU:"Menu Principal",VIEW_MENU:"Menu de Visualizações",ZOOM_MENU:"Menu de Zoom",DOUBLE_PAGE:"Alternar Página Dupla",CHOOSE_FILE:"Escolher arquivo",NO_FILES_SELECTED:"Nenhum arquivo selecionado"},B2={ID:"zh_CN",NAME:"中文 (简体)",STARTING:"正在启动 Manga OnlineViewer",RESUME:"从页面继续阅读 ",WAITING:"请等待3秒钟...",CHOOSE_BEGINNING:"选择要开始的页数:",BUTTON_START:"启动Manga OnlineViewer",SETTINGS:"设置",LANGUAGE:"语言",COLOR_SCHEME:"配色方案",THEME:"主题",THEME_COLOR:"颜色",THEME_HUE:"色相",THEME_SHADE:"色度",DEFAULT_LOAD_MODE:"默认加载模式",LOAD_MODE_NORMAL:"等待模式(等待3秒自动加载 )",LOAD_MODE_ALWAYS:"自动模式(无需等待)",LOAD_MODE_NEVER:"手动模式(点击启动)",LOAD_SPEED:"加载速度",DEFAULT_ZOOM:"默认缩放 (最小 5 最大 200)",DEFAULT_ZOOM_MODE:"默认缩放模式",MINIMUM_ZOOM:"相对于屏幕宽度的最小缩放 (最小 30 最大 100)",ZOOM_STEP:"缩放级别 (最小 5 最大 50)",DEFAULT_VIEW_MODE:"默认视图模式",VIEW_MODE_VERTICAL:"垂直有缝",VIEW_MODE_LEFT:"横向 - 从左到右",VIEW_MODE_RIGHT:"横向 - 从右到左",VIEW_MODE_WEBCOMIC:"垂直无缝",VIEW_MODE_BOOK:"书籍 - 从左到右",VIEW_MODE_MANGA:"漫画 - 从右到左",VIEW_MODE_GALLERY:"图库",FIT_WIDTH_OVERSIZED:"如果尺寸过大、则适合宽度",SHOW_THUMBNAILS:"显示缩略图",HIDE_CONTROLS:"始终隐藏页面控件",HEADER_TYPE:"更改标题显示方式",HEADER_HOVER:"悬停",HEADER_SCROLL:"滚动",HEADER_CLICK:"点击",HEADER_FIXED:"固定",HEADER_SIMPLE:"简单",BUTTON_DOWNLOAD:"下载",DOWNLOAD_ZIP:"下载压缩文件",DOWNLOAD_IMAGES:"自动将图片下载成ZIP",DOWNLOAD_PROGRESS:"正在下载:第 ##num## 页,共 ##total## 页",GENERATING_ZIP:"正在生成 Zip 文件...",DOWNLOAD_INCOMPLETE:"下载不完整",DOWNLOAD_INCOMPLETE_MESSAGE:"部分页面下载失败并已跳过。失败页面列表已添加到 ZIP 文件中。",BUTTON_NEXT:"下一页",NEXT_CHAPTER:"下一章",BUTTON_PREVIOUS:"上一页",PREVIOUS_CHAPTER:"上一章",BOOKMARKS:"书签",BOOKMARK:"Bookmark",BOOKMARK_REMOVED:"删除书签",BOOKMARK_SAVED:"保存书签",BOOKMARK_MESSAGE:"下次打开本章时,将从: 页码 ##num## (仅一次 每个书签)",KEYBINDINGS:"快捷键",EDIT_KEYBINDS:"编辑键绑定",SAVE_KEYBINDS:"保存键绑定",BUTTON_EDIT:"编辑",BUTTON_SAVE:"救",KEYBIND_RULES:`
    <h3>支持的密钥</h3>
    允许的修饰符: shift, option, alt, ctrl, control, command. <br/>
    特殊键: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete, f1 - f19, num_0 - num_9, num_multiply, num_add, num_enter, num_subtract, num_decimal, num_divide.<br/>
    例子: <kbd>a</kbd>, <kbd>ctrl+a</kbd> , <kbd>shift+a</kbd> , <kbd>num_2</kbd> , <kbd>2</kbd>
  `,ATTENTION:"注意",WARNING:"警告",BUTTON_RESET_SETTINGS:"重置设置(Reset Settings)",SETTINGS_RESET:"设置已重置、重新加载页面才能生效",LANGUAGE_CHANGED:"语言已更改、重新加载页面才能生效",AUTO_DOWNLOAD:"下次章节加载完成时、系统将提示您自动保存",LAZY_LOAD:"延迟加载与zip下载不兼容、您将无法使用此设置下载.<br/> 建议: <span style='color:red;font-weight:bold'>禁用缩略图</span> 以节省流量和内存.",LAZY_LOAD_IMAGES_ENABLE:"启用延迟加载图像",LAZY_LOAD_IMAGES:"惰性加载从页面 (最小 5 最大 100)",RETURN_CHAPTER_LIST:"返回章节列表",PAGES_LOADED:"已加载的页数",GO_TO_PAGE:"转到页数",ENLARGE:"放大",RESTORE:"还原",REDUCE:"缩小",FIT_WIDTH:"适合宽度",FIT_HEIGHT:"适合高度",PERCENT:"百分之",TOGGLE_CONTROLS:"显示隐藏页面控件",ZOOM_IN:"放大",ZOOM_OUT:"缩小",ZOOM_RESET:"还原",ZOOM_WIDTH:"适合宽度",ZOOM_HEIGHT:"适合高度",HIDE:"显示隐藏页面控件",RELOAD:"重新加载",SLOWLY:"慢速",NORMAL:"正常",FAST:"快速",EXTREME:"极端",ALL_PAGES:"所有页面",SPEED_WARNING:"加载速度过高",SPEED_WARNING_MESSAGE:"不建议使用此速度.<br/>它可能会伤害某些服务器或将您的 IP 标记为 DDoS 攻击者.<br/>请谨慎使用!",SCROLL_UP:"向上滚动",SCROLL_DOWN:"向下滚动",CLOSE:"关闭",CANCEL:"取消",LIST_EMPTY:"没有收藏书签",SCROLL_START:"切换自动滚动",INCREASE_SPEED:"增加滚动速度",DECREASE_SPEED:"降低滚动速度",AUTO_SCROLL_HEIGHT:"自动滚动速度(以像素为单位)",VERTICAL_SEPARATOR:"显示垂直分隔符",END:"结尾",SCOPE:"范围",GLOBAL:"全球",GENERAL:"常规",LOADING:"装载",ZOOM:"缩放",OTHERS:"别人",NAVBAR_TYPE:"更改导航栏类型",NAVBAR_BOTTOM:"底部",NAVBAR_LEFT:"左边",NAVBAR_RIGHT:"正确的",NAVBAR_DISABLED:"已禁用",PAGINATION_TYPE:"分页类型",PAGINATION_DISABLED:"已禁用",PAGINATION_SLIDER:"滑块",PAGINATION_ARROWS:"侧边箭头",PAGINATION_BOTH:"两者",FILE_MENU:"主菜单",VIEW_MENU:"查看菜单",ZOOM_MENU:"缩放菜单",DOUBLE_PAGE:"切换双页",CHOOSE_FILE:"选择文件",NO_FILES_SELECTED:"未选择任何文件"},lo=[$2,D2,N2,B2,P2,z2];function Cu(e){return"listImages"in e&&!En(e.listImages)}function Ou(e){return"listPages"in e&&!En(e.listPages)}function H2(e){return"bruteForce"in e&&!En(e.bruteForce)}var De=(function(e){return e.ENGLISH="English",e.SPANISH="Spanish",e.PORTUGUESE="Portuguese",e.CHINESE="Chinese",e.RAW="Raw",e})({}),Be=(function(e){return e.MANGA="manga",e.COMIC="comic",e.HENTAI="hentai",e})({});function F2(e,t){return t in e}var Xi=globalThis,Ns=Xi.ShadowRoot&&(Xi.ShadyCSS===void 0||Xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bs=Symbol(),Tu=new WeakMap,Lu=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Bs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ns&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Tu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Tu.set(t,e))}return e}toString(){return this.cssText}},Wt=e=>new Lu(typeof e=="string"?e:e+"",void 0,Bs),Lt=(e,...t)=>new Lu(e.length===1?e[0]:t.reduce((r,i,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]),e,Bs),G2=(e,t)=>{if(Ns)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),a=Xi.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=r.cssText,e.appendChild(i)}},Ru=Ns?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return Wt(r)})(e):e,{is:W2,defineProperty:U2,getOwnPropertyDescriptor:V2,getOwnPropertyNames:Z2,getOwnPropertySymbols:q2,getPrototypeOf:j2}=Object,Ji=globalThis,Pu=Ji.trustedTypes,K2=Pu?Pu.emptyScript:"",Y2=Ji.reactiveElementPolyfillSupport,Qo=(e,t)=>e,Qi={toAttribute(e,t){switch(t){case Boolean:e=e?K2:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Hs=(e,t)=>!W2(e,t),$u={attribute:!0,type:String,converter:Qi,reflect:!1,useDefault:!1,hasChanged:Hs};Symbol.metadata??=Symbol("metadata"),Ji.litPropertyMetadata??=new WeakMap;var co=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$u){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&U2(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){const{get:i,set:a}=V2(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){const l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??$u}static _$Ei(){if(this.hasOwnProperty(Qo("elementProperties")))return;const e=j2(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Qo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qo("properties"))){const t=this.properties,r=[...Z2(t),...q2(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(Ru(i))}else e!==void 0&&t.push(Ru(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return G2(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const a=(r.converter?.toAttribute!==void 0?r.converter:Qi).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const a=r.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Qi;this._$Em=i;const l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,r,i=!1,a){if(e!==void 0){const s=this.constructor;if(i===!1&&(a=this[e]),r??=s.getPropertyOptions(e),!((r.hasChanged??Hs)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:a},s){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,a]of r){const{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};co.elementStyles=[],co.shadowRootOptions={mode:"open"},co[Qo("elementProperties")]=new Map,co[Qo("finalized")]=new Map,Y2?.({ReactiveElement:co}),(Ji.reactiveElementVersions??=[]).push("2.1.2");var Fs=globalThis,Qe=class extends co{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=S2(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qn}};Qe._$litElement$=!0,Qe.finalized=!0,Fs.litElementHydrateSupport?.({LitElement:Qe});var X2=Fs.litElementPolyfillSupport;X2?.({LitElement:Qe}),(Fs.litElementVersions??=[]).push("4.2.2");var lt=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},J2={attribute:!0,type:String,converter:Qi,reflect:!1,hasChanged:Hs},Q2=(e=J2,t,r)=>{const{kind:i,metadata:a}=r;let s=globalThis.litPropertyMetadata.get(a);if(s===void 0&&globalThis.litPropertyMetadata.set(a,s=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),s.set(r.name,e),i==="accessor"){const{name:l}=r;return{set(h){const u=t.get.call(this);t.set.call(this,h),this.requestUpdate(l,u,e,!0,h)},init(h){return h!==void 0&&this.C(l,void 0,e,h),h}}}if(i==="setter"){const{name:l}=r;return function(h){const u=this[l];t.call(this,h),this.requestUpdate(l,u,e,!0,h)}}throw Error("Unsupported decorator location: "+i)};function ne(e){return(t,r)=>typeof r=="object"?Q2(e,t,r):((i,a,s)=>{const l=a.hasOwnProperty(s);return a.constructor.createProperty(s,i),l?Object.getOwnPropertyDescriptor(a,s):void 0})(e,t,r)}function an(e){return ne({...e,state:!0,attribute:!1})}var Du=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function Fr(e,t){return(r,i,a)=>{const s=l=>l.renderRoot?.querySelector(e)??null;if(t){const{get:l,set:h}=typeof i=="object"?r:a??(()=>{const u=Symbol();return{get(){return this[u]},set(f){this[u]=f}}})();return Du(r,i,{get(){let u=l.call(this);return u===void 0&&(u=s(this),(u!==null||this.hasUpdated)&&h.call(this,u)),u}})}return Du(r,i,{get(){return s(this)}})}}var St=Xo(class extends Ki{constructor(e){if(super(e),e.type!==ji.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}const r=e.element.classList;for(const i of this.st)i in t||(r.remove(i),this.st.delete(i));for(const i in t){const a=!!t[i];a===this.st.has(i)||this.nt?.has(i)||(a?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Qn}}),ea=class extends Ki{constructor(e){if(super(e),this.it=Ne,e.type!==ji.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ne||e==null)return this._t=void 0,this.it=e;if(e===Qn)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ea.directiveName="unsafeHTML",ea.resultType=1;var zu=Xo(ea),Gs=class extends ea{};Gs.directiveName="unsafeSVG",Gs.resultType=2;var Nu=Xo(Gs);function Bu(e){if(e.startsWith("Icon")&&!e.includes("-")&&!e.includes("_"))return e;const t=e.startsWith("Icon")?e.substring(4):e;return`Icon${Se.default.upperFirst(Se.default.camelCase(t))}`}var ep=".icon-tabler-file-download>:nth-child(n+4){color:gold}.icon-tabler-arrow-autofit-width>:nth-child(n+3),.icon-tabler-arrow-autofit-height>:nth-child(n+3){color:#ff0}.icon-tabler-zoom-in-area>:nth-child(2),.icon-tabler-zoom-in-area>:nth-child(3){color:#0f0}.icon-tabler-zoom-out-area>:nth-child(2){color:red}.icon-tabler-zoom-pan>:nth-child(n+4){color:#96f}.icon-tabler-arrow-autofit-down>:nth-child(n+3),.icon-tabler-arrow-autofit-left>:nth-child(n+3),.icon-tabler-arrow-autofit-right>:nth-child(n+3){color:#28ffbf}.icon-tabler-spacing-vertical>:nth-child(4),.icon-tabler-spacing-horizontal>:nth-child(4){color:#f0f}.icon-tabler-list-numbers>:nth-child(n+5){color:#e48900}.icon-tabler-bookmarks>:nth-child(n+2),.icon-tabler-bookmark>:nth-child(2),.icon-tabler-bookmark-off>:nth-child(2){color:orange}.icon-tabler-bookmark-off>:nth-child(3),.icon-tabler-eye-off>:nth-child(4){color:red}.icon-tabler-zoom-cancel>:nth-child(3),.icon-tabler-zoom-cancel>:nth-child(4){color:#96f}.icon-tabler-zoom-in>:nth-child(3),.icon-tabler-zoom-in>:nth-child(4){color:#0f0}.icon-tabler-zoom-out>:nth-child(3){color:red}.icon-tabler-refresh>:nth-child(n+2){color:#0ff}.icon-tabler-photo>:nth-child(n+2),.icon-tabler-photo-off>:nth-child(n+2){color:silver}.icon-tabler-photo-off>:nth-child(6){color:orange}.icon-tabler-message>:nth-child(2),.icon-tabler-message>:nth-child(3),.icon-tabler-book-arrow-left>:nth-child(7),.icon-tabler-book-arrow-left>:nth-child(8),.icon-tabler-book-arrow-right>:nth-child(7),.icon-tabler-book-arrow-right>:nth-child(8),.icon-tabler-books-return>:nth-child(8),.icon-tabler-books-return>:nth-child(9){color:#adff2f}.icon-tabler-file-percent>:nth-child(2),.icon-tabler-file-percent>:nth-child(5),.icon-tabler-file-percent>:nth-child(6){color:#ff0}.icon-tabler-settings-off>:nth-child(4),.icon-tabler-book-off>:nth-child(7){color:red}",tp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-adjustments-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 6l8 0"/><path d="M16 6l4 0"/><path d="M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 12l2 0"/><path d="M10 12l10 0"/><path d="M17 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M4 18l11 0"/><path d="M19 18l1 0"/></svg>',np='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-alert-circle"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/><path d="M12 8v4"/><path d="M12 16h.01"/></svg>',rp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-api-book"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M17.001 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',op='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h8"/><path d="M18 4v17"/><path d="M15 18l3 3l3 -3"/></svg>',ip='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-height" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h6"/><path d="M18 14v7"/><path d="M18 3v7"/><path d="M15 18l3 3l3 -3"/><path d="M15 6l3 -3l3 3"/></svg>',ap='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v8"/><path d="M20 18h-17"/><path d="M6 15l-3 3l3 3"/></svg>',sp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 12v-6a2 2 0 0 0 -2 -2h-12a2 2 0 0 0 -2 2v8"/><path d="M4 18h17"/><path d="M18 15l3 3l-3 3"/></svg>',lp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-autofit-width" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v6"/><path d="M10 18h-7"/><path d="M21 18h-7"/><path d="M6 15l-3 3l3 3"/><path d="M18 15l3 3l-3 3"/></svg>',cp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-big-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 15h-8v3.586a1 1 0 0 1 -1.707 .707l-6.586 -6.586a1 1 0 0 1 0 -1.414l6.586 -6.586a1 1 0 0 1 1.707 .707v3.586h8a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1z"/></svg>',up='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-big-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 9h8v-3.586a1 1 0 0 1 1.707 -.707l6.586 6.586a1 1 0 0 1 0 1.414l-6.586 6.586a1 1 0 0 1 -1.707 -.707v-3.586h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z"/></svg>',dp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 8l-4 4l4 4"/><path d="M17 8l4 4l-4 4"/><path d="M3 12l18 0"/></svg>',hp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-left-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M21 17l-18 0"/><path d="M6 10l-3 -3l3 -3"/><path d="M3 7l18 0"/><path d="M18 20l3 -3l-3 -3"/></svg>',fp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-move"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3"/><path d="M15 12h6"/><path d="M6 9l-3 3l3 3"/><path d="M3 12h6"/><path d="M9 18l3 3l3 -3"/><path d="M12 15v6"/><path d="M15 6l-3 -3l-3 3"/><path d="M12 3v6"/></svg>',pp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-move-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 18l3 3l3 -3"/><path d="M12 15v6"/><path d="M15 6l-3 -3l-3 3"/><path d="M12 3v6"/></svg>',gp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-arrows-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 7l4 -4l4 4"/><path d="M8 17l4 4l4 -4"/><path d="M12 3l0 18"/></svg>',mp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6l0 13"/><path d="M12 6l0 13"/><path d="M21 6l0 13"/></svg>',vp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-arrow-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M16 19h6"/><path d="M19 16l-3 3l3 3"/></svg>',bp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-arrow-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 1.006 -.5"/><path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v13"/><path d="M21 6v6"/><path d="M16 19h6"/><path d="M19 16l3 3l-3 3"/></svg>',wp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 5.899 -1.096"/><path d="M3 6a9 9 0 0 1 2.114 -.884m3.8 -.21c1.07 .17 2.116 .534 3.086 1.094a9 9 0 0 1 9 0"/><path d="M3 6v13"/><path d="M12 6v2m0 4v7"/><path d="M21 6v11"/><path d="M3 3l18 18"/></svg>',_p='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-book-upload"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 20h-8a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5"/><path d="M11 16h-5a2 2 0 0 0 -2 2"/><path d="M15 16l3 -3l3 3"/><path d="M18 13v9"/></svg>',yp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmark" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 7v14l-6 -4l-6 4v-14a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4z"/></svg>',kp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmark-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7.708 3.721a3.982 3.982 0 0 1 2.292 -.721h4a4 4 0 0 1 4 4v7m0 4v3l-6 -4l-6 4v-14c0 -.308 .035 -.609 .1 -.897"/><path d="M3 3l18 18"/></svg>',Ep='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bookmarks" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v11l-5 -3l-5 3v-11a3 3 0 0 1 3 -3h4a3 3 0 0 1 3 3z"/><path d="M11 3h5a3 3 0 0 1 3 3v11"/></svg>',Ap='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-books-return"><defs><mask id="arrow-mask"><rect width="24" height="24" fill="white"/><rect x="15" y="15" width="8" height="8" fill="black"/></mask></defs><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -14"/><path d="M9 5a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -14"/><path d="M5 8h4"/><path d="M9 16h4"/><g mask="url(#arrow-mask)"><path d="M13.803 4.56l2.184 -.53c.562 -.135 1.133 .19 1.282 .732l3.695 13.418a1.02 1.02 0 0 1 -.634 1.219l-.133 .041l-2.184 .53c-.562 .135 -1.133 -.19 -1.282 -.732l-3.695 -13.418a1.02 1.02 0 0 1 .634 -1.219l.133 -.041"/><path d="M14 9l4 -1"/><path d="M16 16l3.923 -.98"/></g><path d="M16 19h6"/><path d="M19 16l-3 3l3 3"/></svg>',Sp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-box-align-top"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 10.005h16v-5a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v5z"/><path d="M4 15.005v-.01"/><path d="M4 20.005v-.01"/><path d="M9 20.005v-.01"/><path d="M15 20.005v-.01"/><path d="M20 20.005v-.01"/><path d="M20 15.005v-.01"/></svg>',Mp='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><g><g><path d="m427.508 512h-343.02c-5.69 0-10.302-4.612-10.302-10.302v-491.396c0-5.69 4.612-10.302 10.302-10.302h343.02c5.69 0 10.302 4.612 10.302 10.302v491.396c-.001 5.69-4.613 10.302-10.302 10.302z" fill="#f2eff2"/></g></g><path d="m427.512 0h-41.238c5.687 0 10.302 4.615 10.302 10.302v41.156l-18.039 71.714 18.039 81.268v46.358l-18.039 45.164 18.039 24.847v46.358l-10.302 61.227 10.302 32.149v41.156c0 5.687-4.615 10.302-10.302 10.302h41.238c5.687 0 10.302-4.615 10.302-10.302v-491.397c0-5.687-4.615-10.302-10.302-10.302z" fill="#e1dde1"/><g><path d="m243.51 273.63-47.48 104.08-80.61-10.85v-315.4c0-2.85 2.31-5.15 5.15-5.15h30.86c2.13 0 4.03 1.29 4.8 3.27z" fill="#3ad1e0"/><path d="m243.51 273.63-16.68 36.56-101.52-260.61c-.76-1.95-2.64-3.25-4.74-3.27h30.86c2.13 0 4.03 1.29 4.8 3.27z" fill="#22c7db"/><path d="m310.81 465.69h-190.24c-2.84 0-5.15-2.3-5.15-5.15v-93.68c25.18-34.92 65.99-57.81 112.19-58.37l-16.07 35.21 74.5 39.08 29.56 75.9c1.32 3.37-1.17 7.01-4.79 7.01z" fill="#fb33a8"/><path d="m310.81 465.69h-30.92c3.61 0 6.11-3.64 4.79-7.01l-12.92-33.17c-1.92 4.55-2.88 9.61-2.61 14.91.01.13.01.25.01.38 0 5.92-7.39 8.87-11.45 4.36-6.77-7.49-16.03-11.24-25.29-11.24s-18.54 3.75-25.29 11.24c-1.36 1.52-3.11 2.19-4.83 2.19-3.48 0-6.84-2.78-6.62-6.93.03-.59.04-1.18.04-1.77 0-19.36-16.23-34.99-35.81-33.99-.12.01-.24.01-.37.01-5.92 0-8.87-7.4-4.37-11.46 7.49-6.76 11.24-16.03 11.24-25.29s-3.75-18.52-11.24-25.29c-1.51-1.36-2.18-3.1-2.18-4.81 0-3.48 2.78-6.84 6.92-6.64.6.04 1.19.05 1.77.05 12.81 0 23.98-7.11 29.79-17.57l34.29-1.12-14.22 31.16 74.5 39.08 29.56 75.9c1.32 3.37-1.17 7.01-4.79 7.01z" fill="#fb33a8"/><path d="m396.58 51.46v152.98c0 2.84-2.31 5.15-5.15 5.15h-32l-40.41-29.31-40.41 29.31h-17.82c-2.12 0-4.03-1.3-4.8-3.28l-59.6-152.98c-1.32-3.38 1.18-7.02 4.79-7.02h190.25c2.84 0 5.15 2.3 5.15 5.15z" fill="#fcb44d"/><path d="m396.576 51.457v152.982c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-152.982c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843.001 5.151 2.308 5.151 5.151z" fill="#fb9927"/><g><path d="m359.428 181.065v28.526h-80.818v-28.526c0-22.324 18.1-40.414 40.414-40.414 11.157 0 21.263 4.522 28.567 11.837 7.314 7.314 11.837 17.409 11.837 28.577z" fill="#ae6ad8"/><path d="m359.43 181.065v28.526h-29.237v-28.526c0-11.167-4.522-21.263-11.837-28.577-3.935-3.935-8.674-7.067-13.949-9.107 4.533-1.762 9.467-2.73 14.618-2.73 11.157 0 21.263 4.522 28.567 11.837 7.316 7.314 11.838 17.409 11.838 28.577z" fill="#975bbb"/><g><g><circle cx="319.023" cy="121.497" fill="#f2eff2" r="26.224"/></g></g></g><path d="m396.576 250.798v70.011c0 2.845-2.306 5.151-5.151 5.151h-85.311c-2.123 0-4.029-1.303-4.8-3.281l-27.273-70.011c-1.316-3.377 1.175-7.021 4.8-7.021h112.585c2.844 0 5.15 2.306 5.15 5.151z" fill="#23f1a8"/><path d="m396.576 250.798v70.011c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-70.011c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843 0 5.151 2.307 5.151 5.151z" fill="#27e19d"/><path d="m324.179 362.016h67.246c2.845 0 5.151 2.306 5.151 5.151v93.376c0 2.845-2.306 5.151-5.151 5.151h-30.866c-2.123 0-4.029-1.303-4.799-3.281l-36.38-93.376c-1.316-3.377 1.175-7.021 4.799-7.021z" fill="#23f1a8"/><path d="m396.576 367.167v93.376c0 2.843-2.308 5.151-5.151 5.151h-30.927c2.843 0 5.151-2.308 5.151-5.151v-93.376c0-2.843-2.308-5.151-5.151-5.151h30.927c2.843 0 5.151 2.308 5.151 5.151z" fill="#27e19d"/></g><g><path d="m269.153 413.978c.01.124.01.247.01.371 0 5.924-7.397 8.87-11.456 4.368-6.768-7.489-16.03-11.239-25.291-11.239s-18.533 3.75-25.291 11.239c-1.36 1.514-3.101 2.184-4.821 2.184-3.482 0-6.84-2.782-6.624-6.923.031-.597.041-1.185.041-1.772 0-19.367-16.236-34.995-35.809-33.996-.124.01-.247.01-.371.01-5.924 0-8.87-7.397-4.368-11.456 7.489-6.758 11.239-16.03 11.239-25.291s-3.75-18.523-11.239-25.291c-1.514-1.36-2.184-3.101-2.184-4.811 0-3.482 2.782-6.84 6.923-6.634.597.031 1.185.041 1.772.041 19.367 0 34.995-16.236 33.996-35.799-.01-.124-.01-.247-.01-.371 0-5.934 7.397-8.87 11.456-4.378 6.758 7.489 16.03 11.239 25.291 11.239 3.76 0 7.51-.618 11.095-1.844l42.526 109.158c-10.591 6.183-17.565 17.916-16.885 31.195z" fill="#fdef63"/><path d="m268.516 417.19c.406-.839.648-1.79.648-2.841 0-.123 0-.247-.01-.371-.68-13.279 6.294-25.013 16.885-31.194l-42.526-109.158c-3.585 1.226-7.335 1.844-11.095 1.844-7.992 0-15.988-2.799-22.374-8.378z" fill="#f3d730"/></g><g><g><path d="m229.374 349.967c-4.267 0-7.726-3.459-7.726-7.726v-29.272c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v29.272c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g><g><path d="m229.374 377.711c-4.267 0-7.726-3.459-7.726-7.726v-2.061c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v2.061c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g></g><g><g><path d="m258.185 86.361h-18.228c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h18.228c4.267 0 7.726 3.459 7.726 7.726 0 4.266-3.459 7.726-7.726 7.726z" fill="#f2eff2"/></g><g><path d="m266.269 111.168h-18.229c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h18.228c4.267 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.725 7.726z" fill="#f2eff2"/></g></g></g></svg>',xp=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve" width="512" height="512"><g><g><g><path style="fill: #f2eff2" d="M422.485,504.5H89.515c-5.523,0-10-4.477-10-10v-477c0-5.523,4.477-10,10-10h332.971&#10;&#9;&#9;&#9;&#9;c5.523,0,10,4.477,10,10v477C432.485,500.023,428.008,504.5,422.485,504.5z"/></g></g><g><g><path style="fill: #e1dde1" d="M432.49,17.5v477c0,5.52-4.48,10-10,10h-40.03c5.52,0,10-4.48,10-10v-477c0-5.52-4.48-10-10-10&#10;&#9;&#9;&#9;&#9;h40.03C428.01,7.5,432.49,11.98,432.49,17.5z"/></g></g><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M334.56,7.5H89.515c-5.523,0-10,4.477-10,10v477c0,5.523,4.477,10,10,10h332.971c5.523,0,10-4.477,10-10v-477&#10;&#9;&#9;&#9;c0-5.523-4.477-10-10-10h-54.763"/></g><g><path style="fill: #3ad1e0" d="M313.86,452.74L159.16,55.63c-0.75-1.92-2.6-3.18-4.66-3.18h-29.96c-2.76,0-5,2.24-5,5v397.1&#10;&#9;&#9;&#9;c0,2.76,2.24,5,5,5h184.67C312.72,459.55,315.14,456.01,313.86,452.74z"/><path style="fill: #22c7db" d="M309.21,459.55h-30.02c3.51,0,5.93-3.54,4.65-6.81L129.14,55.63c-0.74-1.9-2.56-3.16-4.6-3.18&#10;&#9;&#9;&#9;h29.96c2.06,0,3.91,1.26,4.66,3.18l154.7,397.11C315.14,456.01,312.72,459.55,309.21,459.55z"/><path style="fill: #fb33a8" d="M258.193,309.845c-9.05-1.894-18.424-2.909-28.037-2.909c-45.55,0-85.862,22.354-110.616,56.676&#10;&#9;&#9;&#9;v90.938c0,2.76,2.24,5,5,5h184.67c3.51,0,5.93-3.54,4.65-6.81L258.193,309.845z"/><path style="fill: #ee2d9a" d="M193.362,311.966c-5.64,10.161-16.48,17.055-28.912,17.055c-0.57,0-1.14-0.01-1.72-0.04&#10;&#9;&#9;&#9;c-4.02-0.2-6.72,3.06-6.72,6.44c0,1.66,0.65,3.35,2.12,4.67c7.27,6.57,10.91,15.56,10.91,24.55s-3.64,17.99-10.91,24.55&#10;&#9;&#9;&#9;c-4.37,3.94-1.51,11.12,4.24,11.12c0.12,0,0.24,0,0.36-0.01c19-0.97,34.76,14.2,34.76,33c0,0.57-0.01,1.14-0.04,1.72&#10;&#9;&#9;&#9;c-0.21,4.02,3.05,6.72,6.43,6.72c1.67,0,3.36-0.65,4.68-2.12c6.56-7.27,15.56-10.91,24.55-10.91c8.99,0,17.98,3.64,24.55,10.91&#10;&#9;&#9;&#9;c3.94,4.37,11.12,1.51,11.12-4.24c0-0.12,0-0.24-0.01-0.36c-0.264-5.151,0.666-10.058,2.527-14.479l12.543,32.197&#10;&#9;&#9;&#9;c1.28,3.27-1.14,6.81-4.65,6.81h30.02c3.51,0,5.93-3.54,4.65-6.81l-55.667-142.895L193.362,311.966z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M230.156,306.937c-45.55,0-85.862,22.354-110.616,56.676"/><path style="fill: #fcb44d" d="M392.46,57.45v148.5c0,2.76-2.24,5-5,5H260.65c-2.06,0-3.91-1.26-4.66-3.18l-57.85-148.5&#10;&#9;&#9;&#9;c-1.28-3.28,1.14-6.82,4.65-6.82h184.67C390.22,52.45,392.46,54.69,392.46,57.45z"/><path style="fill: #fb9927" d="M392.46,57.45v148.5c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5V57.45c0-2.76-2.24-5-5-5h30.021&#10;&#9;&#9;&#9;C390.22,52.45,392.46,54.69,392.46,57.45z"/><g><path style="fill: #ae6ad8" d="M356.4,183.26v27.69h-78.45v-27.69c0-21.67,17.57-39.23,39.23-39.23&#10;&#9;&#9;&#9;&#9;c10.83,0,20.64,4.39,27.73,11.49C352.01,162.62,356.4,172.42,356.4,183.26z"/><path style="fill: #975bbb" d="M356.402,183.26v27.69h-28.38v-27.69c0-10.84-4.39-20.64-11.49-27.74&#10;&#9;&#9;&#9;&#9;c-3.82-3.82-8.42-6.86-13.54-8.84c4.4-1.71,9.19-2.65,14.19-2.65c10.83,0,20.64,4.39,27.73,11.49&#10;&#9;&#9;&#9;&#9;C352.012,162.62,356.402,172.42,356.402,183.26z"/><path style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " d="&#10;&#9;&#9;&#9;&#9;M277.95,210.95v-27.69c0-21.67,17.57-39.23,39.23-39.23c10.83,0,20.64,4.39,27.73,11.49c7.1,7.1,11.49,16.9,11.49,27.74v27.69"/><g><circle style="fill: #f2eff2" cx="317.179" cy="125.438" r="25.456"/><circle style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
            " cx="317.179" cy="125.438" r="25.456"/></g></g><path style="fill: #23f1a8" d="M392.46,250.95v67.96c0,2.761-2.239,5-5,5h-82.812c-2.061,0-3.911-1.265-4.659-3.185l-26.474-67.96&#10;&#9;&#9;&#9;c-1.277-3.278,1.141-6.815,4.659-6.815H387.46C390.221,245.95,392.46,248.189,392.46,250.95z"/><path style="fill: #27e19d" d="M392.46,250.95v67.96c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5v-67.96c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.021C390.22,245.95,392.46,248.19,392.46,250.95z"/><path style="fill: #23f1a8" d="M322.184,358.91h65.276c2.761,0,5,2.239,5,5v90.64c0,2.761-2.239,5-5,5h-29.962&#10;&#9;&#9;&#9;c-2.061,0-3.911-1.265-4.659-3.185l-35.314-90.64C316.248,362.447,318.666,358.91,322.184,358.91z"/><path style="fill: #27e19d" d="M392.46,363.91v90.64c0,2.76-2.24,5-5,5h-30.021c2.76,0,5-2.24,5-5v-90.64c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.021C390.22,358.91,392.46,361.15,392.46,363.91z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M119.54,242.003V454.55c0,2.761,2.239,5,5,5h184.666c3.518,0,5.936-3.537,4.659-6.815l-154.704-397.1&#10;&#9;&#9;&#9;c-0.748-1.92-2.598-3.185-4.659-3.185H124.54c-2.761,0-5,2.239-5,5v151.391"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M392.46,57.45v148.5c0,2.761-2.239,5-5,5H260.648c-2.061,0-3.911-1.265-4.659-3.185l-57.854-148.5&#10;&#9;&#9;&#9;c-1.277-3.278,1.141-6.815,4.659-6.815H387.46C390.221,52.45,392.46,54.689,392.46,57.45z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M306.627,245.95h-28.454c-3.518,0-5.936,3.537-4.659,6.815l26.474,67.96c0.748,1.92,2.598,3.185,4.659,3.185h82.812&#10;&#9;&#9;&#9;c2.761,0,5-2.239,5-5v-67.96c0-2.761-2.239-5-5-5h-47.67"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M322.184,358.91h65.276c2.761,0,5,2.239,5,5v90.64c0,2.761-2.239,5-5,5h-29.962c-2.061,0-3.911-1.265-4.659-3.185l-35.314-90.64&#10;&#9;&#9;&#9;C316.248,362.447,318.666,358.91,322.184,358.91z"/></g><g><path style="fill: #fdef63" d="M268.77,409.35c0.01,0.12,0.01,0.24,0.01,0.36c0,5.75-7.18,8.61-11.12,4.24&#10;&#9;&#9;&#9;c-6.57-7.27-15.56-10.91-24.55-10.91c-8.99,0-17.99,3.64-24.55,10.91c-1.32,1.47-3.01,2.12-4.68,2.12c-3.38,0-6.64-2.7-6.43-6.72&#10;&#9;&#9;&#9;c0.03-0.58,0.04-1.15,0.04-1.72c0-18.8-15.76-33.97-34.76-33c-0.12,0.01-0.24,0.01-0.36,0.01c-5.75,0-8.61-7.18-4.24-11.12&#10;&#9;&#9;&#9;c7.27-6.56,10.91-15.56,10.91-24.55s-3.64-17.98-10.91-24.55c-1.47-1.32-2.12-3.01-2.12-4.67c0-3.38,2.7-6.64,6.72-6.44&#10;&#9;&#9;&#9;c0.58,0.03,1.15,0.04,1.72,0.04c18.8,0,33.97-15.76,33-34.75c-0.01-0.12-0.01-0.24-0.01-0.36c0-5.76,7.18-8.61,11.12-4.25&#10;&#9;&#9;&#9;c6.56,7.27,15.56,10.91,24.55,10.91c3.65,0,7.29-0.6,10.77-1.79l41.28,105.96C274.88,385.07,268.11,396.46,268.77,409.35z"/><path style="fill: #f3d730" d="M268.151,412.468c0.394-0.814,0.629-1.738,0.629-2.758c0-0.12,0-0.24-0.01-0.36&#10;&#9;&#9;&#9;c-0.66-12.89,6.11-24.28,16.39-30.28l-41.28-105.96c-3.48,1.19-7.12,1.79-10.77,1.79c-7.758,0-15.52-2.717-21.718-8.132&#10;&#9;&#9;&#9;L268.151,412.468z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M268.77,409.35c0.01,0.12,0.01,0.24,0.01,0.36c0,5.75-7.18,8.61-11.12,4.24c-6.57-7.27-15.56-10.91-24.55-10.91&#10;&#9;&#9;&#9;c-8.99,0-17.99,3.64-24.55,10.91c-1.32,1.47-3.01,2.12-4.68,2.12c-3.38,0-6.64-2.7-6.43-6.72c0.03-0.58,0.04-1.15,0.04-1.72&#10;&#9;&#9;&#9;c0-18.8-15.76-33.97-34.76-33c-0.12,0.01-0.24,0.01-0.36,0.01c-5.75,0-8.61-7.18-4.24-11.12c7.27-6.56,10.91-15.56,10.91-24.55&#10;&#9;&#9;&#9;s-3.64-17.98-10.91-24.55c-1.47-1.32-2.12-3.01-2.12-4.67c0-3.38,2.7-6.64,6.72-6.44c0.58,0.03,1.15,0.04,1.72,0.04&#10;&#9;&#9;&#9;c18.8,0,33.97-15.76,33-34.75c-0.01-0.12-0.01-0.24-0.01-0.36c0-5.76,7.18-8.61,11.12-4.25c6.56,7.27,15.56,10.91,24.55,10.91&#10;&#9;&#9;&#9;c3.65,0,7.29-0.6,10.77-1.79l41.28,105.96C274.88,385.07,268.11,396.46,268.77,409.35z"/></g><g><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="230.156" y1="339.714" x2="230.156" y2="311.299"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="230.156" y1="364.644" x2="230.156" y2="366.646"/></g><g><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="240.429" y1="83.83" x2="258.124" y2="83.83"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="248.276" y1="107.911" x2="265.97" y2="107.911"/></g></g></svg>`,Ip=`<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" id="svg3390" xml:space="preserve" width="682.66669" height="682.66669" viewBox="0 0 682.66669 682.66669" xmlns="http://www.w3.org/2000/svg"><defs id="defs3394"><clipPath clipPathUnits="userSpaceOnUse" id="clipPath3404"><path d="M 0,512 H 512 V 0 H 0 Z" id="path3402"/></clipPath></defs><g id="g3396" transform="matrix(1.3333333,0,0,-1.3333333,0,682.66667)"><g id="g3398"><g id="g3400" clip-path="url(#clipPath3404)"><g id="g3406" transform="translate(451.7344)"><path d="m 0,0 h -391.469 c -11.379,0 -20.603,9.225 -20.603,20.604 v 470.792 c 0,11.379 9.224,20.604 20.603,20.604 L 0,512 c 11.379,0 20.604,-9.225 20.604,-20.604 V 20.604 C 20.604,9.225 11.379,0 0,0" style="fill: #efe6e6; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3408"/></g><g id="g3410" transform="translate(472.3376,41.2072)"><path d="m 0,0 c -216.202,0 -391.468,175.266 -391.468,391.468 v 79.325 h -20.604 c -11.379,0 -20.604,-9.225 -20.604,-20.604 V -20.604 c 0,-11.379 9.225,-20.603 20.604,-20.603 H -20.603 C -9.224,-41.207 0,-31.983 0,-20.604 Z" style="fill: #e2d7d7; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3412"/></g><g id="g3414" transform="translate(235.3964,198.1382)"><path d="M 0,0 H 195.734 V 272.655 H 82.414 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3416"/></g><g id="g3418" transform="translate(235.3964,198.1382)"><path d="M 0,0 H 195.734 V 272.655 H 82.414 Z" style="fill: #5ad6ff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3420"/></g><g id="g3422" transform="translate(80.8692,198.1382)"><path d="m 0,0 h 113.32 l 82.414,272.655 H 0 Z" style="fill: #f4e74d; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3424"/></g><g id="g3426" transform="translate(80.8692,432.6757)"><path d="M 0,0 V -234.537 H 78.01 C 29.021,-169.169 0,-87.974 0,0" style="fill: #eedb00; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3428"/></g><path d="M 431.131,41.207 H 80.869 v 115.724 h 350.262 z" style="fill: #b18cd9; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3430"/><g id="g3432" transform="translate(194.475,156.931)"><path d="m 0,0 h -113.606 v -115.724 h 350.262 v 2.149 C 144.487,-103.933 61.838,-62.31 0,0" style="fill: #996acc; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3434"/></g><g id="g3436" transform="translate(213.2632,94.3332)"><path d="m 0,0 c 0,-10.991 -11.188,-19.901 -24.99,-19.901 -13.801,0 -24.989,8.91 -24.989,19.901 0,10.991 11.188,19.9 24.989,19.9 C -11.188,19.9 0,10.991 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3438"/></g><g id="g3440" transform="translate(298.7368,94.3332)"><path d="m 0,0 c 0,-10.991 11.188,-19.901 24.99,-19.901 13.801,0 24.989,8.91 24.989,19.901 0,10.991 -11.188,19.9 -24.989,19.9 C 11.188,19.9 0,10.991 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3442"/></g><g id="g3444" transform="translate(202.8374,123.7057)"><path d="M 0,0 V -10.216" style="
              fill: none;
              stroke: #3d4751;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path3446"/></g><g id="g3448" transform="translate(309.1625,123.7057)"><path d="M 0,0 V -10.216" style="
              fill: none;
              stroke: #3d4751;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path3450"/></g><g id="g3452" transform="translate(241.984,113.7942)"><path d="m 0,0 c 3.408,-3.911 8.421,-6.385 14.016,-6.385 5.595,0 10.608,2.474 14.016,6.385" style="
              fill: none;
              stroke: #3d4751;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path3454"/></g><g id="g3456" transform="translate(150.0629,447.8862)"><path d="m 0,0 33.436,22.907 h -102.63 v -161.294 l 21.382,72.58 59.96,-46.151 -25.363,71.287 75.636,-2.093 z" style="fill: #fd5c6f; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3458"/></g><g id="g3460" transform="translate(80.8692,432.6757)"><path d="m 0,0 v -123.177 l 10.122,34.358 C 3.502,-60.282 0,-30.55 0,0" style="fill: #f6334c; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3462"/></g><g id="g3464" transform="translate(431.1308,271.141)"><path d="m 0,0 -57.698,-44.41 24.406,68.598 -72.782,-2.014 60.066,41.15 -60.066,41.151 72.782,-2.014 -24.406,68.597 L 0,126.649 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path3466"/></g></g></g></g></svg>`,Cp=`<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" id="svg5007" xml:space="preserve" width="682.66669" height="682.66669" viewBox="0 0 682.66669 682.66669" xmlns="http://www.w3.org/2000/svg"><defs id="defs5011"><clipPath clipPathUnits="userSpaceOnUse" id="clipPath5021"><path d="M 0,512 H 512 V 0 H 0 Z" id="path5019"/></clipPath></defs><g id="g5013" transform="matrix(1.3333333,0,0,-1.3333333,0,682.66667)"><g id="g5015"><g id="g5017" clip-path="url(#clipPath5021)"><g id="g5023" transform="translate(446,7.5)"><path d="m 0,0 h -380 c -11.046,0 -20,8.954 -20,20 v 457 c 0,11.046 8.954,20 20,20 H 0 c 11.046,0 20,-8.954 20,-20 V 20 C 20,8.954 11.046,0 0,0" style="fill: #efe6e6; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5025"/></g><g id="g5027" transform="translate(465.9996,47.5)"><path d="m 0,0 c -209.868,0 -380,170.132 -380,380 v 77 h -20 c -11.045,0 -20,-8.954 -20,-20 V -20 c 0,-11.046 8.955,-20 20,-20 h 380 c 11.046,0 20,8.954 20,20 z" style="fill: #e2d7d7; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5029"/></g><g id="g5031" transform="translate(236,199.8333)"><path d="M 0,0 H 190 V 264.667 H 80 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5033"/></g><g id="g5035" transform="translate(236,199.8333)"><path d="M 0,0 H 190 V 264.667 H 80 Z" style="fill: #5ad6ff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5037"/></g><g id="g5039" transform="translate(86,199.8333)"><path d="m 0,0 h 110 l 80,264.667 H 0 Z" style="fill: #f4e74d; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5041"/></g><g id="g5043" transform="translate(86,427.4996)"><path d="M 0,0 V -227.666 H 75.725 C 28.171,-164.213 0,-85.397 0,0" style="fill: #eedb00; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5045"/></g><path d="M 426,47.5 H 86 v 112.333 h 340 z" style="fill: #b18cd9; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5047"/><g id="g5049" transform="translate(196.2775,159.8334)"><path d="m 0,0 h -110.278 v -112.333 h 340 v 2.085 C 140.254,-100.888 60.026,-60.484 0,0" style="fill: #996acc; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5051"/></g><g id="g5053" transform="translate(214.5152,99.0695)"><path d="m 0,0 c 0,-10.669 -10.861,-19.318 -24.258,-19.318 -13.397,0 -24.257,8.649 -24.257,19.318 0,10.669 10.86,19.317 24.257,19.317 C -10.861,19.317 0,10.669 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5055"/></g><g id="g5057" transform="translate(297.4848,99.0695)"><path d="m 0,0 c 0,-10.669 10.861,-19.318 24.258,-19.318 13.397,0 24.257,8.649 24.257,19.318 0,10.669 -10.86,19.317 -24.257,19.317 C 10.861,19.317 0,10.669 0,0" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5059"/></g><g id="g5061" transform="translate(204.3949,127.5815)"><path d="M 0,0 V -9.916" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5063"/></g><g id="g5065" transform="translate(307.605,127.5815)"><path d="M 0,0 V -9.916" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5067"/></g><g id="g5069" transform="translate(242.3946,117.9604)"><path d="m 0,0 c 3.308,-3.796 8.175,-6.198 13.605,-6.198 5.431,0 10.298,2.402 13.606,6.198" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5071"/></g><g id="g5073" transform="translate(153.1665,442.2645)"><path d="m 0,0 32.456,22.235 h -99.623 v -156.568 l 20.756,70.454 58.203,-44.799 -24.62,69.199 73.42,-2.032 z" style="fill: #fd5c6f; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5075"/></g><g id="g5077" transform="translate(86,427.4996)"><path d="m 0,0 v -119.568 l 9.825,33.351 C 3.399,-58.516 0,-29.655 0,0" style="fill: #f6334c; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5079"/></g><g id="g5081" transform="translate(426,270.6974)"><path d="m 0,0 -56.008,-43.108 23.692,66.587 -70.65,-1.955 58.306,39.945 -58.306,39.945 70.65,-1.955 -23.692,66.588 L 0,122.939 Z" style="fill: #ffffff; fill-opacity: 1; fill-rule: nonzero; stroke: none" id="path5083"/></g><g id="g5085" transform="translate(446,7.5)"><path d="m 0,0 h -380 c -11.046,0 -20,8.954 -20,20 v 457 c 0,11.046 8.954,20 20,20 H 0 c 11.046,0 20,-8.954 20,-20 V 20 C 20,8.954 11.046,0 0,0 Z" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5087"/></g><g id="g5089" transform="translate(426,346.167)"><path d="m 0,0 v 118.333 h -110 l -80,-264.667 H 0 V -28" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5091"/></g><g id="g5093" transform="translate(86,199.8333)"><path d="m 0,0 h 110 l 80,264.667 H 0 Z" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5095"/></g><g id="g5097" transform="translate(154.0172,159.8334)"><path d="m 0,0 h 271.983 v -112.333 h -340 V 0 H -28" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5099"/></g><g id="g5101" transform="translate(86,307.9314)"><path d="m 0,0 20.756,70.454 58.203,-44.799 -24.62,69.199 73.419,-2.032 -60.591,41.511 32.455,22.236" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5103"/></g><g id="g5105" transform="translate(426,270.6974)"><path d="m 0,0 -56.008,-43.108 23.692,66.587 -70.65,-1.955 58.306,39.945 -58.306,39.945 70.65,-1.955 -23.692,66.588 L 0,122.939" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
              stroke-dasharray: none;
              stroke-opacity: 1;
            " id="path5107"/></g></g></g></g></svg>`,Op='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><g><g><path d="m427.508 512h-343.02c-5.69 0-10.302-4.612-10.302-10.302v-491.396c0-5.69 4.612-10.302 10.302-10.302h343.02c5.69 0 10.302 4.612 10.302 10.302v491.396c-.001 5.69-4.613 10.302-10.302 10.302z" fill="#f2eff2"/></g></g><path d="m427.512 0h-41.238c5.687 0 10.302 4.615 10.302 10.302v36.12l-18.016 49.462 18.016 36.952v51.701l-13.787 87.003 13.787 55.974v51.669l-18.016 52.406 18.016 34.008v36.1c0 5.687-4.615 10.302-10.302 10.302h41.238c5.687 0 10.302-4.615 10.302-10.302v-491.395c0-5.687-4.615-10.302-10.302-10.302z" fill="#e1dde1"/><path d="m396.6 46.36v86.52c0 2.85-2.31 5.15-5.15 5.15h-110.11l-22.53-48.41 22.53-48.41h110.11c2.84 0 5.15 2.3 5.15 5.15z" fill="#3ad1e0"/><path d="m396.599 46.358v86.525c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#20bfd5"/><path d="m281.34 41.207h-39.904c-2.845 0-5.151 2.306-5.151 5.151v86.525c0 2.845 2.306 5.151 5.151 5.151h39.904z" fill="#23f1a8"/><path d="m304.73 470.79h-77.71l-39.22-20.29-39.23 20.29h-28.03c-2.84 0-5.15-2.3-5.15-5.15v-86.52c0-2.85 2.31-5.15 5.15-5.15h128.92c1.76 0 3.4.89 4.34 2.37l55.27 86.53c2.19 3.43-.27 7.92-4.34 7.92z" fill="#23f1a8"/><g><path d="m227.019 443.104v27.689h-78.446v-27.689c0-21.669 17.569-39.228 39.228-39.228 10.83 0 20.639 4.39 27.729 11.489 7.099 7.1 11.489 16.899 11.489 27.739z" fill="#ae6ad8"/><path d="m227.021 443.101v27.691h-29.061v-27.691c0-10.838-4.389-20.634-11.486-27.732-3.729-3.74-8.211-6.727-13.207-8.715 4.492-1.793 9.406-2.782 14.536-2.782 10.827 0 20.635 4.389 27.732 11.497 7.097 7.098 11.486 16.895 11.486 27.732z" fill="#975bbb"/></g><path d="m304.728 470.793h-30.926c4.069 0 6.531-4.492 4.347-7.922l-55.269-86.525c-.948-1.483-2.586-2.38-4.347-2.38h30.926c1.762 0 3.4.896 4.347 2.38l55.269 86.525c2.184 3.43-.278 7.922-4.347 7.922z" fill="#27e19d"/><path d="m391.448 373.966h-81.106c-4.068 0-6.531 4.495-4.341 7.924l55.269 86.525c.946 1.482 2.583 2.378 4.341 2.378h25.837c2.845 0 5.151-2.306 5.151-5.151v-86.525c0-2.845-2.306-5.151-5.151-5.151z" fill="#ae6ad8"/><path d="m396.599 379.117v86.525c0 2.843-2.308 5.151-5.151 5.151h-25.837c-.907 0-1.772-.237-2.534-.68 1.556-.886 2.596-2.555 2.596-4.471v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#975bbb"/><g><path d="m195.602 46.358v86.525c0 2.845-2.306 5.151-5.151 5.151h-69.91c-2.845 0-5.151-2.306-5.151-5.151v-86.525c0-2.845 2.306-5.151 5.151-5.151h69.91c2.845 0 5.151 2.306 5.151 5.151z" fill="#3ad1e0"/><path d="m195.6 46.358v86.525c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-86.525c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#20bfd5"/></g><g><path d="m396.6 184.39v143.22c0 2.84-2.31 5.15-5.15 5.15h-30.93l-104.53-27.53-104.52 27.53h-30.93c-2.84 0-5.15-2.31-5.15-5.15v-143.22c0-2.84 2.31-5.15 5.15-5.15h47.77l87.68 16.15 87.69-16.15h47.77c2.84 0 5.15 2.31 5.15 5.15z" fill="#fb54b6"/></g><path d="m151.473 332.759c0-57.729 46.798-104.527 104.527-104.527s104.527 46.798 104.527 104.527z" fill="#fb9927"/><path d="m360.522 332.759h-35.397c0-51.694-37.519-94.612-86.824-103.028 5.748-.979 11.662-1.494 17.699-1.494 57.731 0 104.522 46.79 104.522 104.522z" fill="#f98824"/><g><path d="m396.599 184.392v143.216c0 2.843-2.308 5.151-5.151 5.151h-30.926c2.843 0 5.151-2.308 5.151-5.151v-143.216c0-2.843-2.308-5.151-5.151-5.151h30.926c2.844 0 5.151 2.308 5.151 5.151z" fill="#fb33a8"/></g><g><g><path d="m345.43 247.027c-.144 0-.299 0-.453-.01-24.024-1.226-43.947 17.946-43.947 41.722 0 .721.021 1.442.051 2.174.268 5.079-3.853 8.489-8.128 8.489-2.112 0-4.244-.814-5.913-2.678-8.293-9.189-19.676-13.794-31.039-13.794s-22.746 4.605-31.039 13.794c-1.669 1.865-3.801 2.678-5.913 2.678-4.275 0-8.396-3.41-8.128-8.489.031-.731.041-1.453.041-2.174 0-23.777-19.924-42.948-43.937-41.722-.155.01-.309.01-.464.01-7.263 0-10.879-9.076-5.357-14.062 9.189-8.293 13.794-19.666 13.794-31.039 0-7.912-2.225-15.813-6.686-22.685h175.378c-4.461 6.871-6.686 14.773-6.686 22.685 0 11.373 4.605 22.746 13.794 31.039 5.521 4.986 1.905 14.062-5.368 14.062z" fill="#fdef63"/><g><g id="XMLID_00000127012381744132405410000009872483291948348836_"><path d="m280.138 231.696c-4.268 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v.107c0 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g><g id="XMLID_00000080918978500845250090000017315552773041050031_"><path d="m256 231.696c-4.267 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726 4.268 0 7.726 3.459 7.726 7.726v.107c0 4.267-3.458 7.726-7.726 7.726z" fill="#554e55"/></g><g id="XMLID_00000140711681861242238370000008769002181148908969_"><path d="m231.862 231.696c-4.267 0-7.726-3.459-7.726-7.726v-.107c0-4.267 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v.107c.001 4.267-3.459 7.726-7.726 7.726z" fill="#554e55"/></g></g><path d="m345.43 247.037c-.155 0-.299 0-.443-.021-24.034-1.226-43.948 17.956-43.948 41.722 0 .721.01 1.432.052 2.174.258 5.079-3.863 8.499-8.128 8.499-2.122 0-4.255-.824-5.924-2.689-6.954-7.685-16.05-12.167-25.507-13.423 29.968-14.804 50.582-45.678 50.582-81.364 0-7.84-.999-15.442-2.864-22.695h34.429c-4.45 6.871-6.676 14.783-6.676 22.685 0 11.373 4.605 22.757 13.784 31.05 5.532 4.966 1.926 14.062-5.357 14.062z" fill="#f3d730"/></g></g><g><g><g><circle cx="187.8" cy="385.284" fill="#d8b2ec" r="25.455"/></g></g></g><g><g id="XMLID_00000028301319025648580530000009457246182494066313_"><path d="m316.443 111.45c-4.258 0-7.714-3.445-7.726-7.705-.012-4.267 3.438-7.736 7.705-7.747l41.222-.114h.021c4.258 0 7.714 3.445 7.726 7.705.012 4.267-3.438 7.736-7.705 7.747l-41.222.114c-.007 0-.014 0-.021 0z" fill="#f2eff2"/></g><g><path d="m357.665 83.243h-21.761c-4.268 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h21.761c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#f2eff2"/></g></g></g></svg>',Tp=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve" width="512" height="512"><g><g><g><path style="fill: #f2eff2" d="M422.485,504.5H89.515c-5.523,0-10-4.477-10-10v-477c0-5.523,4.477-10,10-10h332.971&#10;&#9;&#9;&#9;&#9;c5.523,0,10,4.477,10,10v477C432.485,500.023,428.008,504.5,422.485,504.5z"/></g></g><g><g><path style="fill: #e1dde1" d="M432.49,17.5v477c0,5.52-4.48,10-10,10h-40.03c5.52,0,10-4.48,10-10v-477c0-5.52-4.48-10-10-10&#10;&#9;&#9;&#9;&#9;h40.03C428.01,7.5,432.49,11.98,432.49,17.5z"/></g></g><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M158.639,7.5H89.515c-5.523,0-10,4.477-10,10v477c0,5.523,4.477,10,10,10h332.971c5.523,0,10-4.477,10-10v-477&#10;&#9;&#9;&#9;c0-5.523-4.477-10-10-10H191.801"/></g><path style="fill: #3ad1e0" d="M392.482,52.5v83.99c0,2.761-2.239,5-5,5H241.866c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5&#10;&#9;&#9;h145.617C390.244,47.5,392.482,49.739,392.482,52.5z"/><path style="fill: #20bfd5" d="M392.482,52.5v83.99c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V52.5c0-2.76-2.24-5-5-5h30.02&#10;&#9;&#9;C390.242,47.5,392.482,49.74,392.482,52.5z"/><path style="fill: #26d192" d="M280.6,47.5h-38.735c-2.761,0-5,2.239-5,5v83.99c0,2.761,2.239,5,5,5H280.6V47.5z"/><line style="
        fill: none;
        stroke: #000000;
        stroke-width: 15;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-miterlimit: 10;
      " x1="280.6" y1="141.49" x2="280.6" y2="47.5"/><path style="fill: #23f1a8" d="M124.512,370.51h125.143c1.706,0,3.295,0.87,4.214,2.308l53.65,83.99&#10;&#9;&#9;c2.126,3.328-0.264,7.692-4.214,7.692H124.512c-2.761,0-5-2.239-5-5v-83.99C119.512,372.749,121.751,370.51,124.512,370.51z"/><g><path style="fill: #ae6ad8" d="M227.87,437.622V464.5h-76.148v-26.878c0-21.034,17.054-38.079,38.079-38.079&#10;&#9;&#9;&#9;c10.512,0,20.034,4.261,26.916,11.153C223.609,417.588,227.87,427.1,227.87,437.622z"/><path style="fill: #975bbb" d="M227.872,437.62v26.88h-28.21v-26.88c0-10.52-4.26-20.03-11.15-26.92&#10;&#9;&#9;&#9;c-3.62-3.63-7.97-6.53-12.82-8.46c4.36-1.74,9.13-2.7,14.11-2.7c10.51,0,20.03,4.26,26.92,11.16&#10;&#9;&#9;&#9;C223.612,417.59,227.872,427.1,227.872,437.62z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M151.722,464.5v-26.878c0-21.034,17.054-38.079,38.079-38.079c10.512,0,20.034,4.261,26.916,11.153&#10;&#9;&#9;&#9;c6.892,6.892,11.153,16.404,11.153,26.926V464.5"/></g><path style="fill: #27e19d" d="M303.302,464.5h-30.02c3.95,0,6.34-4.36,4.22-7.69l-53.65-83.99c-0.92-1.44-2.51-2.31-4.22-2.31&#10;&#9;&#9;h30.02c1.71,0,3.3,0.87,4.22,2.31l53.65,83.99C309.642,460.14,307.252,464.5,303.302,464.5z"/><path style="fill: #ae6ad8" d="M387.482,370.51h-78.73c-3.949,0-6.34,4.363-4.214,7.692l53.65,83.99&#10;&#9;&#9;c0.919,1.438,2.507,2.308,4.214,2.308h25.08c2.761,0,5-2.239,5-5v-83.99C392.482,372.749,390.244,370.51,387.482,370.51z"/><path style="fill: #975bbb" d="M392.482,375.51v83.99c0,2.76-2.24,5-5,5h-25.08c-0.88,0-1.72-0.23-2.46-0.66&#10;&#9;&#9;c1.51-0.86,2.52-2.48,2.52-4.34v-83.99c0-2.76-2.24-5-5-5h30.02C390.242,370.51,392.482,372.75,392.482,375.51z"/><path style="
        fill: none;
        stroke: #000000;
        stroke-width: 15;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-miterlimit: 10;
      " d="&#10;&#9;&#9;M392.482,52.5v83.99c0,2.761-2.239,5-5,5H241.866c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5h145.617&#10;&#9;&#9;C390.244,47.5,392.482,49.739,392.482,52.5z"/><g><path style="fill: #3ad1e0" d="M197.374,52.5v83.99c0,2.761-2.239,5-5,5h-67.862c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5&#10;&#9;&#9;&#9;h67.862C195.135,47.5,197.374,49.739,197.374,52.5z"/><path style="fill: #20bfd5" d="M197.372,52.5v83.99c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V52.5c0-2.76-2.24-5-5-5h30.02&#10;&#9;&#9;&#9;C195.132,47.5,197.372,49.74,197.372,52.5z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M197.374,52.5v83.99c0,2.761-2.239,5-5,5h-67.862c-2.761,0-5-2.239-5-5V52.5c0-2.761,2.239-5,5-5h67.862&#10;&#9;&#9;&#9;C195.135,47.5,197.374,49.739,197.374,52.5z"/></g><g><path style="fill: #fb54b6" d="M124.512,181.49h262.97c2.761,0,5,2.239,5,5v139.02c0,2.761-2.239,5-5,5h-262.97&#10;&#9;&#9;&#9;c-2.761,0-5-2.239-5-5V186.49C119.512,183.729,121.751,181.49,124.512,181.49z"/></g><path style="fill: #fb9927" d="M154.537,330.51c0-56.038,45.427-101.465,101.465-101.465s101.465,45.427,101.465,101.465H154.537z"/><path style="fill: #f98824" d="M357.462,330.51h-34.36c0-50.18-36.42-91.84-84.28-100.01c5.58-0.95,11.32-1.45,17.18-1.45&#10;&#9;&#9;C312.042,229.05,357.462,274.47,357.462,330.51z"/><path style="
        fill: none;
        stroke: #000000;
        stroke-width: 15;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-miterlimit: 10;
      " d="&#10;&#9;&#9;M154.537,330.51c0-56.038,45.427-101.465,101.465-101.465s101.465,45.427,101.465,101.465"/><g><path style="fill: #fb33a8" d="M392.482,186.49v139.02c0,2.76-2.24,5-5,5h-30.02c2.76,0,5-2.24,5-5V186.49c0-2.76-2.24-5-5-5&#10;&#9;&#9;&#9;h30.02C390.242,181.49,392.482,183.73,392.482,186.49z"/></g><g><g><path style="fill: #fdef63" d="M342.812,247.29c-0.14,0-0.29,0-0.44-0.01c-23.32-1.19-42.66,17.42-42.66,40.5&#10;&#9;&#9;&#9;&#9;c0,0.7,0.02,1.4,0.05,2.11c0.26,4.93-3.74,8.24-7.89,8.24c-2.05,0-4.12-0.79-5.74-2.6c-8.05-8.92-19.1-13.39-30.13-13.39&#10;&#9;&#9;&#9;&#9;s-22.08,4.47-30.13,13.39c-1.62,1.81-3.69,2.6-5.74,2.6c-4.15,0-8.15-3.31-7.89-8.24c0.03-0.71,0.04-1.41,0.04-2.11&#10;&#9;&#9;&#9;&#9;c0-23.08-19.34-41.69-42.65-40.5c-0.15,0.01-0.3,0.01-0.45,0.01c-7.05,0-10.56-8.81-5.2-13.65c8.92-8.05,13.39-19.09,13.39-30.13&#10;&#9;&#9;&#9;&#9;c0-7.68-2.16-15.35-6.49-22.02h170.24c-4.33,6.67-6.49,14.34-6.49,22.02c0,11.04,4.47,22.08,13.39,30.13&#10;&#9;&#9;&#9;&#9;C353.382,238.48,349.872,247.29,342.812,247.29z"/><g><line id="XMLID_00000127012381744132405410000009872483291948348836_" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
            " x1="279.433" y1="224.908" x2="279.433" y2="224.805"/><line id="XMLID_00000080918978500845250090000017315552773041050031_" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
            " x1="256.002" y1="224.908" x2="256.002" y2="224.805"/><line id="XMLID_00000140711681861242238370000008769002181148908969_" style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
            " x1="232.572" y1="224.908" x2="232.572" y2="224.805"/></g><path style="fill: #f3d730" d="M342.812,247.3c-0.15,0-0.29,0-0.43-0.02c-23.33-1.19-42.66,17.43-42.66,40.5&#10;&#9;&#9;&#9;&#9;c0,0.7,0.01,1.39,0.05,2.11c0.25,4.93-3.75,8.25-7.89,8.25c-2.06,0-4.13-0.8-5.75-2.61c-6.75-7.46-15.58-11.81-24.76-13.03&#10;&#9;&#9;&#9;&#9;c29.09-14.37,49.1-44.34,49.1-78.98c0-7.61-0.97-14.99-2.78-22.03h33.42c-4.32,6.67-6.48,14.35-6.48,22.02&#10;&#9;&#9;&#9;&#9;c0,11.04,4.47,22.09,13.38,30.14C353.382,238.47,349.882,247.3,342.812,247.3z"/></g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M341.122,181.49c-4.33,6.67-6.49,14.34-6.49,22.02c0,11.04,4.47,22.08,13.39,30.13c5.36,4.84,1.85,13.65-5.21,13.65&#10;&#9;&#9;&#9;c-0.14,0-0.29,0-0.44-0.01c-23.32-1.19-42.66,17.42-42.66,40.5c0,0.7,0.02,1.4,0.05,2.11c0.26,4.93-3.74,8.24-7.89,8.24&#10;&#9;&#9;&#9;c-2.05,0-4.12-0.79-5.74-2.6c-8.05-8.92-19.1-13.39-30.13-13.39s-22.08,4.47-30.13,13.39c-1.62,1.81-3.69,2.6-5.74,2.6&#10;&#9;&#9;&#9;c-4.15,0-8.15-3.31-7.89-8.24c0.03-0.71,0.04-1.41,0.04-2.11c0-23.08-19.34-41.69-42.65-40.5c-0.15,0.01-0.3,0.01-0.45,0.01&#10;&#9;&#9;&#9;c-7.05,0-10.56-8.81-5.2-13.65c8.92-8.05,13.39-19.09,13.39-30.13c0-7.68-2.16-15.35-6.49-22.02"/></g><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M208.726,181.49h-84.213c-2.761,0-5,2.239-5,5v139.02c0,2.761,2.239,5,5,5h262.97c2.761,0,5-2.239,5-5V186.49c0-2.761-2.239-5-5-5&#10;&#9;&#9;&#9;H241.888"/></g><path style="
        fill: none;
        stroke: #000000;
        stroke-width: 15;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-miterlimit: 10;
      " d="&#10;&#9;&#9;M124.512,370.51h125.143c1.706,0,3.295,0.87,4.214,2.308l53.65,83.99c2.126,3.328-0.264,7.692-4.214,7.692H124.512&#10;&#9;&#9;c-2.761,0-5-2.239-5-5v-83.99C119.512,372.749,121.751,370.51,124.512,370.51z"/><path style="
        fill: none;
        stroke: #000000;
        stroke-width: 15;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-miterlimit: 10;
      " d="&#10;&#9;&#9;M392.482,397.976V375.51c0-2.761-2.239-5-5-5h-78.73c-3.949,0-6.34,4.363-4.214,7.692l53.65,83.99&#10;&#9;&#9;c0.919,1.438,2.507,2.308,4.214,2.308h25.08c2.761,0,5-2.239,5-5v-28.362"/><g><g><g><circle style="fill: #d8b2ec" cx="189.8" cy="381.497" r="24.709"/><circle style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-linejoin: round;
              stroke-miterlimit: 10;
            " cx="189.8" cy="381.497" r="24.709"/></g></g></g><g><line id="XMLID_00000028301319025648580530000009457246182494066313_" style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="314.674" y1="108.185" x2="354.689" y2="108.075"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="333.566" y1="80.805" x2="354.689" y2="80.805"/></g></g></svg>`,Lp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-category" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h6v6h-6z"/><path d="M14 4h6v6h-6z"/><path d="M4 14h6v6h-6z"/><path d="M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/></svg>',Rp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10"/></svg>',Pp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-left"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6"/></svg>',$p='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6"/></svg>',Dp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-circle-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M9 12l2 2l4 -4"/></svg>',zp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-circle-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M10 10l4 4m0 -4l-4 4"/></svg>',Np='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-device-floppy" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"/><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M14 4l0 4l-6 0l0 -4"/></svg>',Bp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>',Hp='<svg id="Capa_1" enable-background="new 0 0 512 512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><g><g><path d="m369.32 512h-226.64c-45.516 0-82.414-36.898-82.414-82.414v-347.172c0-45.516 36.898-82.414 82.414-82.414h226.64c45.516 0 82.414 36.898 82.414 82.414v347.171c0 45.517-36.898 82.415-82.414 82.415z" fill="#636978"/></g><g><path d="m225.095 450.189v-388.378c0-34.137 27.673-61.811 61.81-61.811h-144.225c-45.516 0-82.414 36.898-82.414 82.414v347.171c0 45.516 36.898 82.414 82.414 82.414h144.225c-34.137.001-61.81-27.673-61.81-61.81z" fill="#555a66"/></g><g><path d="m369.32 61.811h-226.64c-11.379 0-20.604 9.225-20.604 20.604v336.869c0 11.379 9.225 20.604 20.604 20.604h226.64c11.379 0 20.604-9.225 20.604-20.604v-336.87c0-11.379-9.225-20.603-20.604-20.603z" fill="#96e8ff"/></g><g><path d="m122.076 82.414v336.869c0 11.379 9.225 20.604 20.604 20.604h82.414v-378.076h-82.414c-11.379 0-20.604 9.224-20.604 20.603z" fill="#80dbff"/></g><g><path d="m256 111.277c-27.66-8.24-55.124-9.125-82.742-2.655-5.835 1.367-9.975 6.555-9.975 12.548v95.771c0 6.566 6.064 11.463 12.479 10.063 23.872-5.21 47.636-4.921 71.52.866 5.731 1.389 11.704 1.389 17.435 0 23.884-5.788 47.648-6.077 71.52-.866 6.415 1.4 12.479-3.497 12.479-10.063 0-40.343 0-55.429 0-95.771 0-5.993-4.139-11.181-9.975-12.548-27.617-6.471-55.081-5.585-82.741 2.655z" fill="#fff"/></g><g><path d="m173.258 108.622c-5.835 1.367-9.975 6.555-9.975 12.548v95.771c0 6.566 6.064 11.463 12.479 10.063 23.872-5.21 47.636-4.921 71.52.866 2.866.694 5.791 1.041 8.717 1.041v-117.634c-27.659-8.24-55.123-9.126-82.741-2.655z" fill="#f5fafc"/></g><g><path d="m205.037 104.432c-10.584.315-21.171 1.704-31.781 4.19-5.834 1.367-9.973 6.56-9.973 12.552v95.761c0 6.547 6.037 11.478 12.432 10.08 23.888-5.221 47.667-4.935 71.567.856 2.866.694 8.717 1.042 8.717 1.042 0-13.231-13.741-21.854-26.952-27.087-14.54-5.759-24.011-19.905-24.011-35.544v-61.85z" fill="#e1f1fa"/></g><g><g><path d="m338.414 289.266h-164.829c-4.142 0-7.5-3.357-7.5-7.5s3.358-7.5 7.5-7.5h164.829c4.143 0 7.5 3.357 7.5 7.5s-3.357 7.5-7.5 7.5z" fill="#19cffc"/></g><g><path d="m338.414 330.473h-164.829c-4.142 0-7.5-3.357-7.5-7.5s3.358-7.5 7.5-7.5h164.829c4.143 0 7.5 3.357 7.5 7.5s-3.357 7.5-7.5 7.5z" fill="#19cffc"/></g><g><g><path d="m191.667 385.134c-4.142 0-7.5-3.357-7.5-7.5v-12.362c0-4.143 3.358-7.5 7.5-7.5s7.5 3.357 7.5 7.5v12.362c0 4.142-3.358 7.5-7.5 7.5z" fill="#495560"/></g><g><path d="m320.333 385.134c-4.143 0-7.5-3.357-7.5-7.5v-12.362c0-4.143 3.357-7.5 7.5-7.5s7.5 3.357 7.5 7.5v12.362c0 4.142-3.357 7.5-7.5 7.5z" fill="#495560"/></g><g><path d="m256 392.493c-8.668 0-16.911-3.754-22.615-10.3-2.721-3.123-2.396-7.86.727-10.582 3.122-2.721 7.86-2.396 10.582.727 2.855 3.276 6.976 5.155 11.307 5.155s8.452-1.879 11.307-5.155c2.723-3.122 7.457-3.447 10.582-.727 3.122 2.722 3.448 7.459.727 10.582-5.706 6.546-13.949 10.3-22.617 10.3z" fill="#495560"/></g></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',Fp=`<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background: new 0 0 512 512" xml:space="preserve"><g><path style="fill: #636978" d="M366,504.5H146c-44.183,0-80-35.817-80-80v-337c0-44.183,35.817-80,80-80h220&#10;&#9;&#9;c44.183,0,80,35.817,80,80v337C446,468.683,410.183,504.5,366,504.5z"/><path style="fill: #555a66" d="M226,444.5v-377c0-33.137,26.863-60,60-60H146c-44.183,0-80,35.817-80,80v337&#10;&#9;&#9;c0,44.183,35.817,80,80,80h140C252.863,504.5,226,477.637,226,444.5z"/><path style="fill: #96e8ff" d="M366,67.5H146c-11.046,0-20,8.954-20,20v327c0,11.046,8.954,20,20,20h220c11.046,0,20-8.954,20-20&#10;&#9;&#9;v-327C386,76.454,377.046,67.5,366,67.5z"/><path style="fill: #80dbff" d="M126,87.5v327c0,11.046,8.954,20,20,20h80v-367h-80C134.954,67.5,126,76.454,126,87.5z"/><path style="fill: #ffffff" d="M256,115.517c-26.85-7.998-53.509-8.858-80.318-2.577c-5.664,1.327-9.682,6.363-9.682,12.18&#10;&#9;&#9;c0,39.161,0,53.805,0,92.965c0,6.374,5.886,11.128,12.113,9.768c23.172-5.058,46.241-4.777,69.425,0.841&#10;&#9;&#9;c5.563,1.348,11.361,1.348,16.924,0c23.184-5.618,46.252-5.898,69.425-0.841c6.227,1.359,12.113-3.395,12.113-9.768&#10;&#9;&#9;c0-39.161,0-53.805,0-92.965c0-5.818-4.018-10.853-9.682-12.18C309.509,106.659,282.85,107.518,256,115.517z"/><path style="fill: #f5fafc" d="M175.682,112.94c-5.664,1.327-9.682,6.363-9.682,12.18c0,39.161,0,53.805,0,92.965&#10;&#9;&#9;c0,6.374,5.886,11.128,12.113,9.769c23.172-5.058,46.241-4.777,69.425,0.841c2.782,0.674,5.622,1.011,8.462,1.011V115.517&#10;&#9;&#9;C229.15,107.518,202.491,106.659,175.682,112.94z"/><path style="fill: #e1f1fa" d="M206.53,108.873c-10.274,0.306-20.551,1.654-30.85,4.067c-5.663,1.327-9.681,6.368-9.681,12.184&#10;&#9;&#9;c0,39.155,0,53.801,0,92.955c0,6.355,5.86,11.141,12.068,9.785c23.188-5.068,46.271-4.791,69.47,0.831&#10;&#9;&#9;c2.782,0.674,8.462,1.011,8.462,1.011c0-12.844-13.338-21.214-26.163-26.293c-14.114-5.59-23.307-19.322-23.307-34.502V108.873z"/><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M366,504.5H146c-44.183,0-80-35.817-80-80v-337c0-44.183,35.817-80,80-80h220c44.183,0,80,35.817,80,80v337&#10;&#9;&#9;&#9;C446,468.683,410.183,504.5,366,504.5z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M126,398.01v16.49c0,11.046,8.954,20,20,20h220c11.046,0,20-8.954,20-20v-327c0-11.046-8.954-20-20-20H146&#10;&#9;&#9;&#9;c-11.046,0-20,8.954-20,20v280.51"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="176" y1="281.01" x2="336" y2="281.01"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="176" y1="321.01" x2="336" y2="321.01"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M286.144,109.53c-10.033,0.992-20.075,2.987-30.144,5.986c-26.85-7.998-53.509-8.858-80.318-2.577&#10;&#9;&#9;&#9;c-5.664,1.327-9.682,6.363-9.682,12.18c0,39.161,0,53.805,0,92.965c0,6.374,5.886,11.128,12.113,9.768&#10;&#9;&#9;&#9;c23.172-5.058,46.241-4.777,69.425,0.841c5.563,1.348,11.361,1.348,16.924,0c23.184-5.618,46.252-5.898,69.425-0.841&#10;&#9;&#9;&#9;c6.227,1.359,12.113-3.395,12.113-9.768c0-39.161,0-53.805,0-92.965c0-5.818-4.018-10.853-9.682-12.18&#10;&#9;&#9;&#9;c-6.702-1.57-13.395-2.694-20.084-3.372"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="256" y1="115.517" x2="256" y2="229.706"/><g><line style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " x1="193.551" y1="362.07" x2="193.551" y2="374.07"/><line style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " x1="318.449" y1="362.07" x2="318.449" y2="374.07"/><path style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " d="&#10;&#9;&#9;&#9;&#9;M239.536,373.713c4.003,4.594,9.892,7.501,16.464,7.501c6.572,0,12.461-2.907,16.464-7.501"/></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>`,Gp='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m449.945 61.818v388.363c0 34.144-27.684 61.818-61.818 61.818h-264.254c-34.134 0-61.818-27.674-61.818-61.818v-388.363c0-34.144 27.684-61.818 61.818-61.818h264.253c34.135 0 61.819 27.674 61.819 61.818z" fill="#808fa4"/><path d="m188.464 512h-64.59c-34.134 0-61.818-27.674-61.818-61.818v-388.364c-.001-34.144 27.683-61.818 61.817-61.818h50.341c-7.367 6.574-15.218 18.092-15.218 37.359v423.909c.001 0-.215 30.24 29.468 50.732z" fill="#64768e"/><path d="m418.912 61.942v147.509l-194.274 13.033 77.912-191.451h85.453c17.072 0 30.909 13.837 30.909 30.909z" fill="#c5ced6"/><path d="m271.516 31.033-46.878 191.451-65.641-6.501-65.909-6.532 20.843-140.421 45.365-37.997z" fill="#abb6c4"/><path d="m159.296 31.033c-.196 2.009-.299 4.121-.299 6.326v178.624l-65.909-6.532v-147.509c0-17.072 13.837-30.909 30.909-30.909z" fill="#9ca9ba"/><path d="m313.676 222.484-18.885 196.428h-135.794l-51.732-35.968-14.177-142.46 65.909-5.379z" fill="#c5ced6"/><path d="m93.088 240.484 65.909-5.378v183.807h-35c-17.072 0-30.909-13.837-30.909-30.909z" fill="#abb6c4"/><path d="m418.912 240.484v147.519c0 17.072-13.837 30.909-30.909 30.909h-62.19l-12.137-196.428z" fill="#64768e"/><path d="m287.487 480.971h-62.974c-8.317 0-15.059-6.742-15.059-15.059v-.913c0-8.317 6.742-15.059 15.059-15.059h62.974c8.317 0 15.059 6.742 15.059 15.059v.913c0 8.316-6.743 15.059-15.059 15.059z" fill="#64768e"/><path d="m418.912 209.451v31.033h-77.644c-8.531 0-15.455 6.924-15.455 15.455v162.974h-31.022v-162.975c0-8.531-6.923-15.455-15.455-15.455h-120.34l-13.147-13.27 13.147-17.763h44.138c6.718 0 12.673-4.348 14.723-10.746l53.658-167.672h31.033l-50.65 158.255c-3.183 9.974 4.255 20.163 14.723 20.163h152.291z" fill="#e8ecf9"/><path d="m93.088 209.451h65.909v31.033h-65.909z" fill="#d7ddf5"/><g><g><path d="m129.509 332.474c-4.268 0-7.727-3.459-7.727-7.727v-12.364c0-4.268 3.459-7.727 7.727-7.727s7.727 3.459 7.727 7.727v12.364c0 4.268-3.459 7.727-7.727 7.727z" fill="#495560"/></g><g><path d="m258.191 332.474c-4.268 0-7.727-3.459-7.727-7.727v-12.364c0-4.268 3.459-7.727 7.727-7.727s7.727 3.459 7.727 7.727v12.364c.001 4.268-3.458 7.727-7.727 7.727z" fill="#495560"/></g><path d="m223.825 324.391c-4.268 0-7.727 3.459-7.727 7.727 0 3.952-3.215 7.167-7.166 7.167-3.952 0-7.167-3.215-7.167-7.167 0-4.268-3.459-7.727-7.727-7.727s-7.727 3.459-7.727 7.727c0 3.952-3.215 7.167-7.166 7.167-3.952 0-7.167-3.215-7.167-7.167 0-4.268-3.459-7.727-7.727-7.727s-7.727 3.459-7.727 7.727c0 12.473 10.148 22.621 22.621 22.621 5.7 0 10.911-2.124 14.894-5.616 3.982 3.492 9.193 5.616 14.894 5.616 12.473 0 22.62-10.148 22.62-22.621-.001-4.268-3.46-7.727-7.728-7.727z" fill="#495560"/></g></g></svg>',Wp=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 511.941 511.941" style="enable-background: new 0 0 511.941 511.941" xml:space="preserve" width="512" height="512"><g><g><path style="fill: #808fa4" d="M444.211,67.5v376.94c0,33.14-26.87,60-60,60H127.73c-33.13,0-60-26.86-60-60V67.5&#10;&#9;&#9;&#9;c0-33.14,26.87-60,60-60h256.48C417.341,7.5,444.211,34.361,444.211,67.5z"/><path style="fill: #64768e" d="M190.421,504.44h-62.69c-33.13,0-60-26.86-60-60V67.5c0-33.14,26.87-60,60-60h48.86&#10;&#9;&#9;&#9;c-7.15,6.38-14.77,17.56-14.77,36.26v411.44C161.821,455.201,161.611,484.551,190.421,504.44z"/><path style="fill: #c5ced6" d="M414.091,67.62v143.17l-188.56,12.65l75.62-185.82h82.94&#10;&#9;&#9;&#9;C400.661,37.62,414.091,51.051,414.091,67.62z"/><polygon style="fill: #abb6c4" points="271.031,37.62 225.531,223.44 161.821,217.131 97.85,210.79 118.08,74.5 162.111,37.62 &#9;&#9;&#10;&#9;&#9;&#9;"/><path style="fill: #9ca9ba" d="M162.111,37.62c-0.19,1.95-0.29,4-0.29,6.14v173.37l-63.97-6.34V67.62c0-16.57,13.43-30,30-30&#10;&#9;&#9;&#9;H162.111z"/><polygon style="fill: #c5ced6" points="311.951,223.44 293.62,414.091 161.821,414.091 111.611,379.181 97.85,240.911 &#10;&#9;&#9;&#9;161.821,235.69 &#9;&#9;"/><path style="fill: #abb6c4" d="M97.85,240.911l63.97-5.22v178.4h-33.97c-16.57,0-30-13.43-30-30V240.911z"/><path style="fill: #64768e" d="M414.091,240.911v143.18c0,16.57-13.43,30-30,30h-60.36l-11.78-190.65L414.091,240.911z"/><path style="fill: #64768e" d="M286.088,474.324h-60.235c-8.317,0-15.059-6.742-15.059-15.059v0&#10;&#9;&#9;&#9;c0-8.317,6.742-15.059,15.059-15.059h60.235c8.317,0,15.059,6.742,15.059,15.059v0&#10;&#9;&#9;&#9;C301.147,467.581,294.405,474.324,286.088,474.324z"/><path style="fill: #e8ecf9" d="M414.091,210.79v30.12h-75.36c-8.28,0-15,6.72-15,15v158.18h-30.11v-158.18c0-8.28-6.72-15-15-15&#10;&#9;&#9;&#9;h-116.8l-12.76-12.88l12.76-17.24h42.84c6.52,0,12.3-4.22,14.29-10.43l52.08-162.74h30.12l-49.16,153.6&#10;&#9;&#9;&#9;c-3.09,9.68,4.13,19.57,14.29,19.57H414.091z"/><rect x="97.85" y="210.79" style="fill: #d7ddf5" width="63.97" height="30.12"/></g><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M384.206,504.441H127.735c-33.137,0-60-26.863-60-60V67.5c0-33.137,26.863-60,60-60h256.471c33.137,0,60,26.863,60,60v376.941&#10;&#9;&#9;&#9;C444.206,477.578,417.343,504.441,384.206,504.441z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M384.088,414.088H127.853c-16.569,0-30-13.431-30-30V67.618c0-16.569,13.431-30,30-30h256.235c16.569,0,30,13.431,30,30v316.471&#10;&#9;&#9;&#9;C414.088,400.657,400.657,414.088,384.088,414.088z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M286.088,474.324h-60.235c-8.317,0-15.059-6.742-15.059-15.059c0-8.317,6.742-15.059,15.059-15.059h60.235&#10;&#9;&#9;&#9;c8.317,0,15.059,6.742,15.059,15.059C301.147,467.581,294.405,474.324,286.088,474.324z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M100.85,210.79h103.811c6.523,0,12.298-4.215,14.286-10.428L270.56,39.09"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M293.62,410.091v-154.18c0-8.284-6.716-15-15-15H100.85"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M411.091,240.911h-72.36c-8.284,0-15,6.716-15,15v154.18"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M300.616,39.291l-48.622,151.927c-3.098,9.679,4.124,19.572,14.286,19.572h144.81"/><g><line style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " x1="133.2" y1="310.695" x2="133.2" y2="322.695"/><line style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " x1="258.098" y1="310.695" x2="258.098" y2="322.695"/><g><path style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-miterlimit: 10;
            " d="M195.831,329.85&#10;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456s-14.456-6.472-14.456-14.456"/><path style="
              fill: none;
              stroke: #000000;
              stroke-width: 15;
              stroke-linecap: round;
              stroke-miterlimit: 10;
            " d="M224.742,329.85&#10;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456s-14.456-6.472-14.456-14.456"/></g></g></g></g></svg>`,Up='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-external-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"/><path d="M11 13l9 -9"/><path d="M15 4h5v5"/></svg>',Vp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-eye" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',Zp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-eye-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>',qp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-download" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/><path d="M12 17v-6"/><path d="M9.5 14.5l2.5 2.5l2.5 -2.5"/></svg>',jp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file-percent"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 17l4 -4"/><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/><path d="M10 13h.01"/><path d="M14 17h.01"/></svg>',Kp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-folder-open"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2" /></svg>',Yp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-hand-click"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5"/><path d="M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"/><path d="M14 10.5a1.5 1.5 0 0 1 3 0v1.5"/><path d="M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"/><path d="M5 3l-1 -1"/><path d="M4 7h-1"/><path d="M14 3l1 -1"/><path d="M15 6h1"/></svg>',Xp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-help"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M12 17l0 .01"/><path d="M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"/></svg>',Jp='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-info-circle"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/><path d="M12 9h.01"/><path d="M11 12h1v4h1"/></svg>',Qp='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-keyboard" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M2 6m0 2a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2z"/><path d="M6 10l0 .01"/><path d="M10 10l0 .01"/><path d="M14 10l0 .01"/><path d="M18 10l0 .01"/><path d="M6 14l0 .01"/><path d="M18 14l0 .01"/><path d="M10 14l4 .01"/></svg>',eg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-bottombar"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M4 15l16 0"/></svg>',tg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-bottombar-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M4 15h1"/><path d="M19 15h1"/><path d="M9 15h1"/><path d="M14 15h1"/></svg>',ng='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-dashboard"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1" /><path d="M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1" /><path d="M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1" /><path d="M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1" /></svg>',rg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M9 4l0 16"/></svg>',og='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M9 4v1"/><path d="M9 9v1"/><path d="M9 14v1"/><path d="M9 19v1"/></svg>',ig='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/><path d="M15 4l0 16"/></svg>',ag='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-inactive"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"/><path d="M15 4v1"/><path d="M15 9v1"/><path d="M15 14v1"/><path d="M15 19v1"/></svg>',sg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-list-numbers" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M11 6h9"/><path d="M11 12h9"/><path d="M12 18h8"/><path d="M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"/><path d="M6 10v-6l-2 2"/></svg>',lg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-loader-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3a9 9 0 1 0 9 9"/></svg>',cg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-location-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 18l-2 -4l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5l-3.14 8.697"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',ug='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-menu-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6l16 0"/><path d="M4 12l16 0"/><path d="M4 18l16 0"/></svg>',dg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-menu-deep"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6h16"/><path d="M7 12h13"/><path d="M10 18h10"/></svg>',hg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 9h8"/><path d="M8 13h6"/><path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"/></svg>',fg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-moon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"/></svg>',pg='<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m449.945 61.818v388.363c0 34.144-27.684 61.818-61.818 61.818h-264.253c-34.134 0-61.818-27.674-61.818-61.818v-388.363c-.001-34.144 27.684-61.818 61.818-61.818h264.253c34.133 0 61.818 27.674 61.818 61.818z" fill="#e8ecf9"/><path d="m207.555 512h-83.681c-34.134 0-61.818-27.674-61.818-61.818v-388.364c-.001-34.144 27.684-61.818 61.818-61.818h79.993c-11.292 3.421-26.809 12.446-26.809 36.256v436.87c0 26.479 19.854 35.783 30.497 38.874z" fill="#d7ddf5"/><path d="m403.396 62.004v139.751c0 8.541-6.924 15.455-15.455 15.455h-210.883l-51.556-21.729v-124.699l51.556-24.233h210.883c8.531 0 15.455 6.913 15.455 15.455z" fill="#c5ced6"/><path d="m177.058 46.549v170.66h-52.999c-8.531 0-15.455-6.913-15.455-15.455v-139.75c0-8.541 6.924-15.455 15.455-15.455z" fill="#abb6c4"/><path d="m217.209 279.213v8.036l-40.151 41.769-8.809 9.17-59.644 4.307 12.333-53.195 56.121-25.541h24.696c8.541-.001 15.454 6.923 15.454 15.454z" fill="#c5ced6"/><path d="m124.059 263.758h52.999v65.26l-8.809 9.17-59.644 4.307v-63.281c-.001-8.532 6.923-15.456 15.454-15.456z" fill="#abb6c4"/><path d="m217.209 334.365v60.407l-40.151 43.438-4.204 4.543-64.25-8.634 8.573-21.379-8.573-26.551 50.743-51.824z" fill="#c5ced6"/><path d="m177.058 334.365v103.845l-4.204 4.543-64.25-8.634v-47.93l50.743-51.824z" fill="#abb6c4"/><path d="m217.209 287.249v47.116c-2.823 1.731-5.121 4.368-6.388 7.696-2.359 6.182-8.253 9.984-14.496 9.984-1.844 0-3.719-.33-5.543-1.03-.546-.206-1.092-.381-1.638-.525-1.298-.34-2.596-.505-3.895-.505-2.916 0-5.749.824-8.191 2.339l-11.045-14.888 11.045-32.29c1.03.165 2.061.433 3.07.824.587.227 1.175.412 1.772.556 1.247.319 2.514.474 3.771.474 6.244 0 12.137-3.802 14.496-9.984.082-.206.165-.412.258-.608 2.493-5.821 8.191-9.376 14.239-9.376.845.001 1.69.073 2.545.217z" fill="#808fa4"/><path d="m177.058 305.146v47.178c-2.782 1.731-5.049 4.348-6.305 7.645-.196.505-.402.989-.649 1.453-2.669 5.316-8.108 8.521-13.847 8.521-.309 0-.618-.01-.927-.031-1.535-.093-3.091-.412-4.605-.999-1.824-.701-3.699-1.03-5.543-1.03-6.244 0-12.137 3.802-14.496 9.984s-8.242 9.984-14.496 9.984c-1.834 0-3.709-.33-5.533-1.03-.68-.258-1.36-.474-2.05-.628v-43.695c5.038-1.02 9.458-4.523 11.426-9.674 2.359-6.182 8.253-9.984 14.496-9.984 1.844 0 3.709.33 5.533 1.03 1.824.701 3.709 1.03 5.553 1.03 1.113 0 2.226-.124 3.297-.361 2.895-.629 5.574-2.081 7.686-4.193 1.494-1.494 2.699-3.318 3.503-5.419 2.359-6.182 8.242-9.984 14.496-9.984.813-.003 1.637.058 2.461.203z" fill="#64768e"/><path d="m217.209 394.772v55.224c0 8.541-6.913 15.455-15.455 15.455h-24.696l-15.516-24.284 15.516-28.426c1.885-1.618 3.4-3.719 4.348-6.202 2.359-6.172 8.253-9.973 14.496-9.973 1.844 0 3.719.33 5.543 1.03 1.824.701 3.689 1.03 5.533 1.03 1.175 0 2.349-.134 3.472-.402h.01c2.494-.578 4.822-1.762 6.749-3.452z" fill="#808fa4"/><path d="m166.91 416.522c3.74 0 7.346-1.36 10.148-3.781v52.71h-52.999c-8.531 0-15.455-6.913-15.455-15.455v-15.877c3.802-1.968 8.397-2.37 12.704-.721 1.824.701 3.699 1.03 5.543 1.03 6.244 0 12.137-3.802 14.496-9.984s8.242-9.984 14.496-9.984c1.834 0 3.709.33 5.533 1.03 1.824.702 3.7 1.032 5.534 1.032z" fill="#64768e"/><path d="m403.396 351.612v98.384c0 8.541-6.924 15.455-15.455 15.455h-69.051l-55.132-93.686v-92.552c0-8.531 6.924-15.455 15.455-15.455h62.91z" fill="#808fa4"/><path d="m380.121 333.572-61.231 131.879h-39.677c-8.531 0-15.455-6.913-15.455-15.455v-78.231l77.572-53.699z" fill="#abb6c4"/><path d="m403.396 279.213v72.4c-7.058 3.359-14.95 5.234-23.275 5.234-3.534 0-6.996-.34-10.344-.989-17.34-3.338-31.744-14.929-38.956-30.518-3.215-6.924-5.007-14.651-5.007-22.79 0-15.197 6.244-28.941 16.31-38.791h45.818c8.53-.001 15.454 6.923 15.454 15.454z" fill="#c5ced6"/><g><g><ellipse cx="172.744" cy="147.233" fill="#fff" rx="30.72" ry="24.464"/><ellipse cx="339.256" cy="147.233" fill="#fff" rx="30.72" ry="24.464"/><path d="m285.787 117.781c-4.268 0-7.727 3.46-7.727 7.727 0 3.952-3.215 7.166-7.166 7.166s-7.166-3.215-7.166-7.166c0-4.268-3.46-7.727-7.727-7.727-4.268 0-7.727 3.46-7.727 7.727 0 3.952-3.215 7.166-7.166 7.166-3.952 0-7.166-3.215-7.166-7.166 0-4.268-3.46-7.727-7.727-7.727-4.268 0-7.727 3.46-7.727 7.727 0 12.473 10.148 22.621 22.621 22.621 5.701 0 10.911-2.124 14.894-5.616 3.982 3.492 9.193 5.616 14.894 5.616 12.473 0 22.621-10.148 22.621-22.621-.003-4.267-3.463-7.727-7.731-7.727z" fill="#495560"/></g><g><path d="m206.795 121.062c-4.268 0-7.727-3.46-7.727-7.727 0-3.559-2.896-6.454-6.455-6.454s-6.455 2.895-6.455 6.454c0 4.268-3.46 7.727-7.727 7.727-4.268 0-7.727-3.46-7.727-7.727 0-12.081 9.829-21.909 21.91-21.909s21.91 9.828 21.91 21.909c-.001 4.267-3.461 7.727-7.729 7.727z" fill="#495560"/></g><g><path d="m333.569 121.062c-4.268 0-7.727-3.46-7.727-7.727 0-3.559-2.896-6.454-6.455-6.454s-6.455 2.895-6.455 6.454c0 4.268-3.46 7.727-7.727 7.727-4.268 0-7.727-3.46-7.727-7.727 0-12.081 9.829-21.909 21.91-21.909s21.91 9.828 21.91 21.909c-.001 4.267-3.461 7.727-7.729 7.727z" fill="#495560"/></g></g></g></svg>',gg=`<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 511.94 511.94" style="enable-background: new 0 0 511.94 511.94" xml:space="preserve" width="512" height="512"><g><g><path style="fill: #e8ecf9" d="M444.21,67.5v376.94c0,33.14-26.87,60-60,60H127.73c-33.13,0-60-26.86-60-60V67.5&#10;&#9;&#9;&#9;c0-33.14,26.87-60,60-60h256.48C417.34,7.5,444.21,34.36,444.21,67.5z"/><path style="fill: #d7ddf5" d="M208.95,504.44h-81.22c-33.13,0-60-26.86-60-60V67.5c0-33.14,26.87-60,60-60h77.64&#10;&#9;&#9;&#9;c-10.96,3.32-26.02,12.08-26.02,35.19v424.02C179.35,492.41,198.62,501.44,208.95,504.44z"/><path style="fill: #c5ced6" d="M399.03,67.68v135.64c0,8.29-6.72,15-15,15H179.35l-50.04-21.09V76.2l50.04-23.52h204.68&#10;&#9;&#9;&#9;C392.31,52.68,399.03,59.39,399.03,67.68z"/><path style="fill: #abb6c4" d="M179.35,52.68v165.64h-51.44c-8.28,0-15-6.71-15-15V67.68c0-8.29,6.72-15,15-15H179.35z"/><path style="fill: #c5ced6" d="M218.32,278.5v7.8l-38.97,40.54l-8.55,8.9l-57.89,4.18l11.97-51.63l54.47-24.79h23.97&#10;&#9;&#9;&#9;C211.61,263.5,218.32,270.22,218.32,278.5z"/><path style="fill: #abb6c4" d="M127.91,263.5h51.44v63.34l-8.55,8.9l-57.89,4.18V278.5C112.91,270.22,119.63,263.5,127.91,263.5z"/><polygon style="fill: #c5ced6" points="218.32,332.03 218.32,390.66 179.35,432.82 175.27,437.23 112.91,428.85 121.23,408.1 &#10;&#9;&#9;&#9;112.91,382.33 162.16,332.03 &#9;&#9;"/><polygon style="fill: #abb6c4" points="179.35,332.03 179.35,432.82 175.27,437.23 112.91,428.85 112.91,382.33 162.16,332.03 &#9;&#9;&#10;&#9;&#9;&#9;"/><path style="fill: #808fa4" d="M218.32,286.3v45.73c-2.74,1.68-4.97,4.24-6.2,7.47c-2.29,6-8.01,9.69-14.07,9.69&#10;&#9;&#9;&#9;c-1.79,0-3.61-0.32-5.38-1c-0.53-0.2-1.06-0.37-1.59-0.51c-1.26-0.33-2.52-0.49-3.78-0.49c-2.83,0-5.58,0.8-7.95,2.27&#10;&#9;&#9;&#9;l-10.72-14.45l10.72-31.34c1,0.16,2,0.42,2.98,0.8c0.57,0.22,1.14,0.4,1.72,0.54c1.21,0.31,2.44,0.46,3.66,0.46&#10;&#9;&#9;&#9;c6.06,0,11.78-3.69,14.07-9.69c0.08-0.2,0.16-0.4,0.25-0.59c2.42-5.65,7.95-9.1,13.82-9.1&#10;&#9;&#9;&#9;C216.67,286.09,217.49,286.16,218.32,286.3z"/><path style="fill: #64768e" d="M179.35,303.67v45.79c-2.7,1.68-4.9,4.22-6.12,7.42c-0.19,0.49-0.39,0.96-0.63,1.41&#10;&#9;&#9;&#9;c-2.59,5.16-7.87,8.27-13.44,8.27c-0.3,0-0.6-0.01-0.9-0.03c-1.49-0.09-3-0.4-4.47-0.97c-1.77-0.68-3.59-1-5.38-1&#10;&#9;&#9;&#9;c-6.06,0-11.78,3.69-14.07,9.69s-8,9.69-14.07,9.69c-1.78,0-3.6-0.32-5.37-1c-0.66-0.25-1.32-0.46-1.99-0.61v-42.41&#10;&#9;&#9;&#9;c4.89-0.99,9.18-4.39,11.09-9.39c2.29-6,8.01-9.69,14.07-9.69c1.79,0,3.6,0.32,5.37,1c1.77,0.68,3.6,1,5.39,1&#10;&#9;&#9;&#9;c1.08,0,2.16-0.12,3.2-0.35c2.81-0.61,5.41-2.02,7.46-4.07c1.45-1.45,2.62-3.22,3.4-5.26c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;C177.75,303.47,178.55,303.53,179.35,303.67z"/><path style="fill: #808fa4" d="M218.32,390.66v53.6c0,8.29-6.71,15-15,15h-23.97l-15.06-23.57l15.06-27.59&#10;&#9;&#9;&#9;c1.83-1.57,3.3-3.61,4.22-6.02c2.29-5.99,8.01-9.68,14.07-9.68c1.79,0,3.61,0.32,5.38,1c1.77,0.68,3.58,1,5.37,1&#10;&#9;&#9;&#9;c1.14,0,2.28-0.13,3.37-0.39h0.01C214.19,393.45,216.45,392.3,218.32,390.66z"/><path style="fill: #64768e" d="M169.5,411.77c3.63,0,7.13-1.32,9.85-3.67v51.16h-51.44c-8.28,0-15-6.71-15-15v-15.41&#10;&#9;&#9;&#9;c3.69-1.91,8.15-2.3,12.33-0.7c1.77,0.68,3.59,1,5.38,1c6.06,0,11.78-3.69,14.07-9.69c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;c1.78,0,3.6,0.32,5.37,1C165.9,411.45,167.72,411.77,169.5,411.77z"/><path style="fill: #808fa4" d="M399.03,348.77v95.49c0,8.29-6.72,15-15,15h-67.02l-53.51-90.93V278.5c0-8.28,6.72-15,15-15h61.06&#10;&#9;&#9;&#9;L399.03,348.77z"/><path style="fill: #abb6c4" d="M376.44,331.26l-59.43,128H278.5c-8.28,0-15-6.71-15-15v-75.93l75.29-52.12L376.44,331.26z"/><path style="fill: #c5ced6" d="M399.03,278.5v70.27c-6.85,3.26-14.51,5.08-22.59,5.08c-3.43,0-6.79-0.33-10.04-0.96&#10;&#9;&#9;&#9;c-16.83-3.24-30.81-14.49-37.81-29.62c-3.12-6.72-4.86-14.22-4.86-22.12c0-14.75,6.06-28.09,15.83-37.65h44.47&#10;&#9;&#9;&#9;C392.31,263.5,399.03,270.22,399.03,278.5z"/><g><g><ellipse style="fill: #ffffff" cx="175.162" cy="150.402" rx="29.816" ry="23.744"/><ellipse style="fill: #ffffff" cx="336.778" cy="150.402" rx="29.816" ry="23.744"/></g></g></g><g><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M67.73,402.54v41.9c0,33.14,26.87,60,60,60h256.48c33.13,0,60-26.86,60-60V67.5c0-33.14-26.87-60-60-60H127.73&#10;&#9;&#9;&#9;c-33.13,0-60,26.86-60,60v300.04"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M359,52.68h25.03c8.28,0,15,6.71,15,15v135.64c0,8.29-6.72,15-15,15H127.91c-8.28,0-15-6.71-15-15V67.68c0-8.29,6.72-15,15-15H324&#10;&#9;&#9;&#9;"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M203.323,459.264h-75.412c-8.284,0-15-6.716-15-15V278.499c0-8.284,6.716-15,15-15h75.412c8.284,0,15,6.716,15,15v165.765&#10;&#9;&#9;&#9;C218.323,452.548,211.607,459.264,203.323,459.264z"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M399.03,278.5v165.76c0,8.29-6.72,15-15,15H278.5c-8.28,0-15-6.71-15-15V278.5c0-8.28,6.72-15,15-15h105.53&#10;&#9;&#9;&#9;C392.31,263.5,399.03,270.22,399.03,278.5z"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="264.641" y1="367.54" x2="327.14" y2="324.275"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="335.24" y1="420" x2="317.58" y2="458.04"/><line style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " x1="365.42" y1="354.99" x2="349.98" y2="388.25"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M337.07,266.11c-14.481,16.226-16.955,38.907-8.48,57.16c12.198,26.365,43.179,37.557,69.06,26.13"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M114.09,339.63c4.39-1.26,8.16-4.51,9.91-9.1c2.29-6,8.01-9.69,14.07-9.69c4.907,0,5.826,2,10.76,2&#10;&#9;&#9;&#9;c6.016,0,11.752-3.643,14.06-9.68c2.29-6,8-9.69,14.07-9.69c3.551,0,5.135,1.068,7.09,1.54c7.171,1.837,14.948-1.942,17.73-9.23&#10;&#9;&#9;&#9;c2.653-6.632,8.993-10.222,15.36-9.63"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M114.09,382.66c0.973,0.288,2.952,1.28,6.18,1.28c6.07,0,11.78-3.69,14.07-9.69c2.29-6,8.01-9.69,14.07-9.69&#10;&#9;&#9;&#9;c4.605,0,5.534,1.709,9.85,1.97c6.213,0.414,12.476-3.218,14.97-9.65c2.891-7.576,11.422-11.716,19.44-8.69&#10;&#9;&#9;&#9;c7.75,2.977,16.481-0.911,19.45-8.69c1.05-2.75,2.82-5.02,5.02-6.66"/><path style="
          fill: none;
          stroke: #000000;
          stroke-width: 15;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-miterlimit: 10;
        " d="&#10;&#9;&#9;&#9;M114.09,428.31c3.44-1.43,7.41-1.59,11.15-0.16c7.75,2.977,16.481-0.911,19.45-8.69c2.29-6,8-9.69,14.07-9.69&#10;&#9;&#9;&#9;c4.886,0,5.854,2,10.74,2c6.07,0,11.78-3.69,14.07-9.69c2.29-5.99,8.01-9.68,14.07-9.68c4.907,0,5.856,2,10.75,2&#10;&#9;&#9;&#9;c3.118,0,6.213-0.998,8.75-2.81"/><g><g><g><path style="
                fill: none;
                stroke: #000000;
                stroke-width: 15;
                stroke-linecap: round;
                stroke-miterlimit: 10;
              " d="M255.97,129.317&#10;&#9;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456c-7.984,0-14.456-6.472-14.456-14.456"/><path style="
                fill: none;
                stroke: #000000;
                stroke-width: 15;
                stroke-linecap: round;
                stroke-miterlimit: 10;
              " d="M284.881,129.317&#10;&#9;&#9;&#9;&#9;&#9;&#9;c0,7.984-6.472,14.456-14.456,14.456c-7.984,0-14.456-6.472-14.456-14.456"/></g></g><path style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " d="&#10;&#9;&#9;&#9;&#9;M208.213,117.501c0-7.602-6.163-13.765-13.765-13.765c-7.602,0-13.765,6.163-13.765,13.765"/><path style="
            fill: none;
            stroke: #000000;
            stroke-width: 15;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
          " d="&#10;&#9;&#9;&#9;&#9;M303.727,117.501c0-7.602,6.163-13.765,13.765-13.765c7.602,0,13.765,6.163,13.765,13.765"/></g></g></g></svg>`,mg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-palette" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25"/><path d="M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>',vg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-pencil" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"/><path d="M13.5 6.5l4 4"/></svg>',bg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-pencil-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"/><path d="M13.5 6.5l4 4"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',wg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 8h.01"/><path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"/><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"/><path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"/></svg>',_g='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo-off" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 8h.01"/><path d="M7 3h11a3 3 0 0 1 3 3v11m-.856 3.099a2.991 2.991 0 0 1 -2.144 .901h-12a3 3 0 0 1 -3 -3v-12c0 -.845 .349 -1.608 .91 -2.153"/><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"/><path d="M16.33 12.338c.574 -.054 1.155 .166 1.67 .662l3 3"/><path d="M3 3l18 18" color="orange"/></svg>',yg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-pin"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4"/><path d="M9 15l-4.5 4.5"/><path d="M14.5 4l5.5 5.5"/></svg>',kg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-pause" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"/><path d="M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"/></svg>',Eg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-player-play" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 4v16l13 -8z"/></svg>',Ag='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-refresh" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"/><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',Sg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"/><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"/></svg>',Mg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-settings-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9.451 5.437c.418 -.218 .75 -.609 .874 -1.12c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35c-.486 .118 -.894 .44 -1.123 .878m-.188 3.803c-.517 .523 -1.349 .734 -2.125 .262a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.472 -.774 -.262 -1.604 .259 -2.121"/><path d="M9.889 9.869a3 3 0 1 0 4.226 4.26m.592 -3.424a3.012 3.012 0 0 0 -1.419 -1.415"/><path d="M3 3l18 18"/></svg>',xg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-spacing-horizontal"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 20h-2a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h2"/><path d="M4 20h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"/><path d="M12 8v8"/></svg>',Ig='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-spacing-vertical" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 20v-2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2"/><path d="M4 4v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"/><path d="M16 12h-8"/></svg>',Cg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sun" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"/></svg>',Og='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-trash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 7l16 0"/><path d="M10 11l0 6"/><path d="M14 11l0 6"/><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"/><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"/></svg>',Tg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-world-cog"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M21 12a9 9 0 1 0 -8.979 9"/><path d="M3.6 9h16.8"/><path d="M3.6 15h8.9"/><path d="M11.5 3a17 17 0 0 0 0 18"/><path d="M12.5 3a16.992 16.992 0 0 1 2.522 10.376"/><path d="M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M19.001 15.5v1.5"/><path d="M19.001 21v1.5"/><path d="M22.032 17.25l-1.299 .75"/><path d="M17.27 20l-1.3 .75"/><path d="M15.97 17.25l1.3 .75"/><path d="M20.733 20l1.3 .75"/></svg>',Lg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12"/><path d="M6 6l12 12"/></svg>',Rg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-zoom"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>',Pg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-cancel" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M8 8l4 4"/><path d="M12 8l-4 4"/><path d="M21 21l-6 -6"/></svg>',$g='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-in" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M7 10l6 0"/><path d="M10 7l0 6"/><path d="M21 21l-6 -6"/></svg>',Dg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-in-area" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 13v4"/><path d="M13 15h4"/><path d="M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"/><path d="M22 22l-3 -3"/><path d="M6 18h-1a2 2 0 0 1 -2 -2v-1"/><path d="M3 11v-1"/><path d="M3 6v-1a2 2 0 0 1 2 -2h1"/><path d="M10 3h1"/><path d="M15 3h1a2 2 0 0 1 2 2v1"/></svg>',zg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-out" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M7 10l6 0"/><path d="M21 21l-6 -6"/></svg>',Ng='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-out-area" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M13 15h4"/><path d="M15 15m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"/><path d="M22 22l-3 -3"/><path d="M6 18h-1a2 2 0 0 1 -2 -2v-1"/><path d="M3 11v-1"/><path d="M3 6v-1a2 2 0 0 1 2 -2h1"/><path d="M10 3h1"/><path d="M15 3h1a2 2 0 0 1 2 2v1"/></svg>',Bg='<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-zoom-pan" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/><path d="M17 17l-2.5 -2.5"/><path d="M10 5l2 -2l2 2"/><path d="M19 10l2 2l-2 2"/><path d="M5 10l-2 2l2 2"/><path d="M10 19l2 2l2 -2"/></svg>',Hg=tu({IconAdjustmentsHorizontal:()=>tp,IconAlertCircle:()=>np,IconApiBook:()=>rp,IconArrowAutofitDown:()=>op,IconArrowAutofitHeight:()=>ip,IconArrowAutofitLeft:()=>ap,IconArrowAutofitRight:()=>sp,IconArrowAutofitWidth:()=>lp,IconArrowBigLeft:()=>cp,IconArrowBigRight:()=>up,IconArrowsHorizontal:()=>dp,IconArrowsLeftRight:()=>hp,IconArrowsMove:()=>fp,IconArrowsMoveVertical:()=>pp,IconArrowsVertical:()=>gp,IconBook:()=>mp,IconBookArrowLeft:()=>vp,IconBookArrowRight:()=>bp,IconBookOff:()=>wp,IconBookUpload:()=>_p,IconBookmark:()=>yp,IconBookmarkOff:()=>kp,IconBookmarks:()=>Ep,IconBooksReturn:()=>Ap,IconBoxAlignTop:()=>Sp,IconCategory:()=>Lp,IconCheck:()=>Rp,IconChevronLeft:()=>Pp,IconChevronRight:()=>$p,IconCircleCheck:()=>Dp,IconCircleX:()=>zp,IconComic1:()=>xp,IconComic1Flat:()=>Mp,IconComic2:()=>Cp,IconComic2Flat:()=>Ip,IconComic3:()=>Tp,IconComic3Flat:()=>Op,IconDeviceFloppy:()=>Np,IconDotsVertical:()=>Bp,IconEReader1:()=>Fp,IconEReader1Flat:()=>Hp,IconEReader2:()=>Wp,IconEReader2Flat:()=>Gp,IconExternalLink:()=>Up,IconEye:()=>Vp,IconEyeOff:()=>Zp,IconFileDownload:()=>qp,IconFilePercent:()=>jp,IconFolderOpen:()=>Kp,IconHandClick:()=>Yp,IconHelp:()=>Xp,IconInfoCircle:()=>Jp,IconKeyboard:()=>Qp,IconLayoutBottombar:()=>eg,IconLayoutBottombarInactive:()=>tg,IconLayoutDashboard:()=>ng,IconLayoutSidebar:()=>rg,IconLayoutSidebarInactive:()=>og,IconLayoutSidebarRight:()=>ig,IconLayoutSidebarRightInactive:()=>ag,IconListNumbers:()=>sg,IconLoader2:()=>lg,IconLocationCog:()=>cg,IconMenu2:()=>ug,IconMenuDeep:()=>dg,IconMessage:()=>hg,IconMoon:()=>fg,IconPage:()=>gg,IconPageFlat:()=>pg,IconPalette:()=>mg,IconPencil:()=>vg,IconPencilCog:()=>bg,IconPhoto:()=>wg,IconPhotoOff:()=>_g,IconPin:()=>yg,IconPlayerPause:()=>kg,IconPlayerPlay:()=>Eg,IconRefresh:()=>Ag,IconSettings:()=>Sg,IconSettingsOff:()=>Mg,IconSpacingHorizontal:()=>xg,IconSpacingVertical:()=>Ig,IconSun:()=>Cg,IconTrash:()=>Og,IconWorldCog:()=>Tg,IconX:()=>Lg,IconZoom:()=>Rg,IconZoomCancel:()=>Pg,IconZoomIn:()=>$g,IconZoomInArea:()=>Dg,IconZoomOut:()=>zg,IconZoomOutArea:()=>Ng,IconZoomPan:()=>Bg}),Ws=tu({IconAdjustmentsHorizontal:()=>qg,IconAlertCircle:()=>ym,IconApiBook:()=>jg,IconArrowAutofitDown:()=>Xg,IconArrowAutofitHeight:()=>Jg,IconArrowAutofitLeft:()=>Qg,IconArrowAutofitRight:()=>em,IconArrowAutofitWidth:()=>tm,IconArrowBigLeft:()=>nm,IconArrowBigRight:()=>rm,IconArrowsHorizontal:()=>Kg,IconArrowsLeftRight:()=>Yg,IconArrowsMove:()=>om,IconArrowsMoveVertical:()=>im,IconArrowsVertical:()=>am,IconBook:()=>sm,IconBookArrowLeft:()=>cm,IconBookArrowRight:()=>um,IconBookOff:()=>lm,IconBookUpload:()=>hm,IconBookmark:()=>fm,IconBookmarkOff:()=>pm,IconBookmarks:()=>gm,IconBooksReturn:()=>dm,IconBoxAlignTop:()=>mm,IconCategory:()=>vm,IconCheck:()=>bm,IconChevronLeft:()=>wm,IconChevronRight:()=>_m,IconCircleCheck:()=>km,IconCircleX:()=>Em,IconComic1:()=>Mm,IconComic1Flat:()=>xm,IconComic2:()=>Im,IconComic2Flat:()=>Cm,IconComic3:()=>Om,IconComic3Flat:()=>Tm,IconDeviceFloppy:()=>Lm,IconDotsVertical:()=>Rm,IconEReader1:()=>Pm,IconEReader1Flat:()=>$m,IconEReader2:()=>Dm,IconEReader2Flat:()=>zm,IconExternalLink:()=>Nm,IconEye:()=>Bm,IconEyeOff:()=>Hm,IconFileDownload:()=>Fm,IconFilePercent:()=>Gm,IconFolderOpen:()=>Wm,IconHandClick:()=>Um,IconHelp:()=>Am,IconInfoCircle:()=>Sm,IconKeyboard:()=>Vm,IconLayoutBottombar:()=>qm,IconLayoutBottombarInactive:()=>jm,IconLayoutDashboard:()=>Zm,IconLayoutSidebar:()=>Km,IconLayoutSidebarInactive:()=>Ym,IconLayoutSidebarRight:()=>Xm,IconLayoutSidebarRightInactive:()=>Jm,IconListNumbers:()=>Qm,IconLoader2:()=>e5,IconLocationCog:()=>t5,IconMenu2:()=>n5,IconMenuDeep:()=>r5,IconMessage:()=>o5,IconMoon:()=>i5,IconPage:()=>a5,IconPageFlat:()=>s5,IconPalette:()=>l5,IconPencil:()=>c5,IconPencilCog:()=>u5,IconPhoto:()=>Us,IconPhotoOff:()=>Vs,IconPin:()=>d5,IconPlayerPause:()=>h5,IconPlayerPlay:()=>f5,IconRefresh:()=>p5,IconSettings:()=>g5,IconSettingsOff:()=>m5,IconSpacingHorizontal:()=>v5,IconSpacingVertical:()=>b5,IconSun:()=>w5,IconTrash:()=>_5,IconWorldCog:()=>y5,IconX:()=>k5,IconZoom:()=>E5,IconZoomCancel:()=>A5,IconZoomIn:()=>S5,IconZoomInArea:()=>M5,IconZoomOut:()=>x5,IconZoomOutArea:()=>I5,IconZoomPan:()=>C5});function Fg(e){return[...e.matchAll(/([^{}]+)\s*\{([^}]+)\}/g)].map(t=>{const r=t[1].trim(),i=t[2],a=/color:\s*([^;]+)/.exec(i);if(a){const s=a[1].trim();return{selectors:r.split(",").map(l=>l.trim().replace(/\s\s+/g," ")),color:s}}return null}).filter(t=>t!==null)}var Gg=Fg(ep),ta=new Map;for(const e of Gg)for(const t of e.selectors){const r=t.match(/^\s*\.([^ ]+)\s*(.*)$/);if(!r)continue;const[,i,a]=r;let s=a.trim();s.startsWith(">")&&(s=s.substring(1).trim()),s===""&&(s="*"),ta.has(i)||ta.set(i,[]),ta.get(i)?.push({subSelector:s,color:e.color})}var Wg=new DOMParser,Ug=new XMLSerializer;function Vg(e,t){const r=ta.get(t);if(!r?.length)return e;const i=Wg.parseFromString(e,"image/svg+xml").documentElement;if(i.querySelector("parsererror"))return console.error(`Error parsing SVG for ${t}`),e;for(const{subSelector:a,color:s}of r)try{i.querySelectorAll(a).forEach(l=>{l.setAttribute("stroke",s)})}catch(l){console.error(`Invalid selector "${a}" for ${t}`,l)}return Ug.serializeToString(i)}var Zg=Se.default.mapValues(Hg,(e,t)=>Vg(e,`icon-tabler-${Se.default.kebabCase(t.replace(/^Icon/,""))}`)),{IconAdjustmentsHorizontal:qg,IconApiBook:jg,IconArrowsHorizontal:Kg,IconArrowsLeftRight:Yg,IconArrowAutofitDown:Xg,IconArrowAutofitHeight:Jg,IconArrowAutofitLeft:Qg,IconArrowAutofitRight:em,IconArrowAutofitWidth:tm,IconArrowBigLeft:nm,IconArrowBigRight:rm,IconArrowsMove:om,IconArrowsMoveVertical:im,IconArrowsVertical:am,IconBook:sm,IconBookOff:lm,IconBookArrowLeft:cm,IconBookArrowRight:um,IconBooksReturn:dm,IconBookUpload:hm,IconBookmark:fm,IconBookmarkOff:pm,IconBookmarks:gm,IconBoxAlignTop:mm,IconCategory:vm,IconCheck:bm,IconChevronLeft:wm,IconChevronRight:_m,IconAlertCircle:ym,IconCircleCheck:km,IconCircleX:Em,IconHelp:Am,IconInfoCircle:Sm,IconComic1:Mm,IconComic1Flat:xm,IconComic2:Im,IconComic2Flat:Cm,IconComic3:Om,IconComic3Flat:Tm,IconDeviceFloppy:Lm,IconDotsVertical:Rm,IconEReader1:Pm,IconEReader1Flat:$m,IconEReader2:Dm,IconEReader2Flat:zm,IconExternalLink:Nm,IconEye:Bm,IconEyeOff:Hm,IconFileDownload:Fm,IconFilePercent:Gm,IconFolderOpen:Wm,IconHandClick:Um,IconKeyboard:Vm,IconLayoutDashboard:Zm,IconLayoutBottombar:qm,IconLayoutBottombarInactive:jm,IconLayoutSidebar:Km,IconLayoutSidebarInactive:Ym,IconLayoutSidebarRight:Xm,IconLayoutSidebarRightInactive:Jm,IconListNumbers:Qm,IconLoader2:e5,IconLocationCog:t5,IconMenu2:n5,IconMenuDeep:r5,IconMessage:o5,IconMoon:i5,IconPage:a5,IconPageFlat:s5,IconPalette:l5,IconPencil:c5,IconPencilCog:u5,IconPhoto:Us,IconPhotoOff:Vs,IconPin:d5,IconPlayerPause:h5,IconPlayerPlay:f5,IconRefresh:p5,IconSettings:g5,IconSettingsOff:m5,IconSpacingHorizontal:v5,IconSpacingVertical:b5,IconSun:w5,IconTrash:_5,IconWorldCog:y5,IconX:k5,IconZoom:E5,IconZoomCancel:A5,IconZoomIn:S5,IconZoomInArea:M5,IconZoomOut:x5,IconZoomOutArea:I5,IconZoomPan:C5}=Zg;function F(e,t,r,i){var a=arguments.length,s=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var h=e.length-1;h>=0;h--)(l=e[h])&&(s=(a<3?l(s):a>3?l(t,r,s):l(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}var Gr=class extends Qe{constructor(...t){super(...t),this.name="",this.variant="regular",this.family="classic",this.label="",this.size=""}static{this.styles=Lt`
    :host {
      --mov-icon-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      vertical-align: middle;
      line-height: 1;
    }
    :host([hidden]) {
      display: none;
    }
    svg {
      width: var(--mov-icon-size, 1rem);
      height: var(--mov-icon-size, 1rem);
      display: block;
      color: inherit; /* This will inherit from the host element */
    }
  `}updated(t){super.updated(t),t.has("name")&&(Ws[Bu(this.name)]?(this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-load",{bubbles:!0,composed:!0}))):(this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-error",{bubbles:!0,composed:!0}))))}render(){const t=Ws[Bu(this.name)];if(!t)return Ne;const r=this.size?`--mov-icon-size: ${this.size};`:"";return le`<span
      role=${this.label?"img":Ne}
      aria-label=${this.label||Ne}
      aria-hidden=${this.label?Ne:"true"}
      style=${r}
      >${Nu(t)}</span
    >`}};F([ne({type:String})],Gr.prototype,"name",void 0),F([ne({type:String,reflect:!0})],Gr.prototype,"variant",void 0),F([ne({type:String,reflect:!0})],Gr.prototype,"family",void 0),F([ne({type:String})],Gr.prototype,"label",void 0),F([ne({type:String})],Gr.prototype,"size",void 0),Gr=F([lt("mov-icon")],Gr);var Hu=(e,...t)=>t.length===0?e[0]:String.raw({raw:e},...t),uo=Hu,Fu=Hu;function O5(e,t){const r=document.createElement("style");return r.id=e,r.appendChild(document.createTextNode(t)),r}function Gu(e,t){document.querySelector(`#${e}`)||(document.head??document.querySelector("head")).appendChild(O5(e,t))}function T5(e){document.querySelectorAll(`style[id="${e}"]`).forEach(t=>{t.remove()})}function L5(e,t){T5(e),Gu(e,t)}function R5(e,t){return uo`
    <style id="${e}">
      ${t}
    </style>
  `}var na=".mov-toast-stack{z-index:2000;pointer-events:none;flex-direction:column;gap:.5rem;width:350px;max-width:100vw;max-height:100vh;padding:1rem;display:flex;position:fixed;overflow:hidden}.mov-toast-stack-top-start{top:0;left:0}.mov-toast-stack-top-center{align-items:center;top:0;left:50%;transform:translate(-50%)}.mov-toast-stack-top-end{top:0;right:0}.mov-toast-stack-bottom-start{flex-direction:column-reverse;bottom:0;left:0}.mov-toast-stack-bottom-center{flex-direction:column-reverse;align-items:center;bottom:0;left:50%;transform:translate(-50%)}.mov-toast-stack-bottom-end{flex-direction:column-reverse;bottom:0;right:0}:host{width:100%;display:block}.mov-toast{pointer-events:auto;background-color:var(--theme-background-color);color:var(--theme-text-color);border:1px solid var(--theme-border-color);opacity:0;visibility:hidden;border-radius:.5rem;flex-direction:column;width:100%;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s cubic-bezier(.4,0,.2,1);display:flex;overflow:hidden;box-shadow:0 4px 12px #00000026}:host([placement$=-end]) .mov-toast{transform:translate(110%)}:host([placement$=-start]) .mov-toast{transform:translate(-110%)}:host([placement=top-center]) .mov-toast{transform:translateY(-110%)}:host([placement=bottom-center]) .mov-toast{transform:translateY(110%)}:host([open]) .mov-toast{opacity:1;visibility:visible;transform:translate(0)}.mov-toast-body{align-items:flex-start;gap:.75rem;padding:.75rem 1rem;display:flex}.mov-toast-icon{flex-shrink:0;justify-content:center;align-items:center;margin-top:.125rem;font-size:1.25rem;display:flex}.mov-toast-icon mov-icon{--mov-icon-size:1.25rem}.mov-toast-content{flex-direction:column;flex-grow:1;gap:.125rem;display:flex}.mov-toast-title{font-size:.875rem;font-weight:600;line-height:1.25}.mov-toast-description{opacity:.8;font-size:.8125rem;line-height:1.4}.mov-toast-close{cursor:pointer;color:inherit;opacity:.5;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;margin-right:-.25rem;padding:.25rem;transition:opacity .2s;display:flex}.mov-toast-close:hover{opacity:1}.mov-toast-variant-primary .mov-toast-icon{color:var(--mov-color-fill-loud)}.mov-toast-variant-success .mov-toast-icon{color:#28a745}.mov-toast-variant-warning .mov-toast-icon{color:#ffc107}.mov-toast-variant-danger .mov-toast-icon{color:#dc3545}.mov-toast-variant-neutral .mov-toast-icon{color:var(--theme-text-color)}.mov-toast-variant-primary{border-left:4px solid var(--mov-color-fill-loud)}.mov-toast-variant-success{border-left:4px solid #28a745}.mov-toast-variant-warning{border-left:4px solid #ffc107}.mov-toast-variant-danger{border-left:4px solid #dc3545}.mov-toast-variant-neutral{border-left:4px solid var(--theme-border-color)}",Un=class extends Qe{constructor(...t){super(...t),this.open=!1,this.variant="primary",this.duration=3e3,this.closable=!1,this.title="",this.description="",this.placement="bottom-end"}static{this.styles=[Wt(na)]}async show(){if(!this.open)return await this.updateComplete,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),this.open=!0,this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration)),new Promise(t=>{setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0})),t()},300)})}async hide(){if(this.open)return window.clearTimeout(this.autoHideTimeout),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.open=!1,new Promise(t=>{setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0})),this.remove(),t()},300)})}handleCloseClick(){this.hide()}getDefaultIcon(){if(this.icon)return this.icon;switch(this.variant){case"success":return"IconCircleCheck";case"warning":return"IconAlertCircle";case"danger":return"IconCircleX";default:return"IconInfoCircle"}}render(){return le`
      <div
        part="base"
        class=${St({"mov-toast":!0,[`mov-toast-variant-${this.variant}`]:!0})}
        role="alert"
        aria-live="assertive"
        aria-atomic="true"
        aria-hidden=${this.open?"false":"true"}
      >
        <div class="mov-toast-body" part="body">
          <div class="mov-toast-icon" part="icon">
            <slot name="icon">
              <mov-icon name=${this.getDefaultIcon()}></mov-icon>
            </slot>
          </div>

          <div class="mov-toast-content" part="content">
            ${this.title?le`<div class="mov-toast-title" part="title">${this.title}</div>`:""}
            <div class="mov-toast-description" part="description">
              <slot>${this.description}</slot>
            </div>
          </div>

          <slot name="action"></slot>

          ${this.closable?le`
                <button
                  type="button"
                  class="mov-toast-close"
                  part="close-button"
                  @click=${this.handleCloseClick}
                  aria-label="Close"
                >
                  <mov-icon name="IconX"></mov-icon>
                </button>
              `:""}
        </div>
      </div>
    `}};F([ne({type:Boolean,reflect:!0})],Un.prototype,"open",void 0),F([ne({reflect:!0})],Un.prototype,"variant",void 0),F([ne({type:Number})],Un.prototype,"duration",void 0),F([ne({type:Boolean})],Un.prototype,"closable",void 0),F([ne()],Un.prototype,"title",void 0),F([ne()],Un.prototype,"description",void 0),F([ne()],Un.prototype,"icon",void 0),F([ne({reflect:!0})],Un.prototype,"placement",void 0),Un=F([lt("mov-toast")],Un);var sn=e=>{const t=e.placement||"bottom-end",r=`mov-toast-stack-${t}`;let i=document.querySelector(`.mov-toast-stack.${r}`);const a=na.indexOf(":host");Gu("mov-toast-stack-styles",a>-1?na.substring(0,a).trim():na),i||(i=document.createElement("div"),i.className=`mov-toast-stack ${r}`,document.body.appendChild(i));const s=document.createElement("mov-toast");let l=e.variant||"primary";return l==="info"&&(l="primary"),l==="error"&&(l="danger"),s.variant=l,s.title=e.title||"",s.description=e.description||e.message||"",s.duration=e.duration??3e3,s.closable=e.closable??!0,s.placement=t,e.icon&&(s.icon=e.icon),i.appendChild(s),requestAnimationFrame(()=>{s.show()}),s};sn.info=e=>sn({...e,variant:"primary"}),sn.success=e=>sn({...e,variant:"success"}),sn.warning=e=>sn({...e,variant:"warning"}),sn.error=e=>sn({...e,variant:"danger"});var ei=(e,t)=>{const r=(i,a)=>Se.default.transform(i,(s,l,h)=>{Se.default.isEqual(l,a[h])||(Se.default.isObject(l)&&Se.default.isObject(a[h])&&!Se.default.isArray(l)?s[h]=r(l,a[h]):s[h]=l)});return r(e,t)},P5={bookmarks:[],colorScheme:"dark",downloadZip:!1,enabled:!1,fitWidthIfOversize:!0,header:"scroll",hidePageControls:!1,lazyLoadImages:!1,lazyStart:50,loadMode:"wait",locale:"en_US",maxReload:5,minZoom:30,navbar:"bottom",pagination:"disabled",scrollHeight:25,theme:"#29487D",loadSpeed:"Extreme",viewMode:"WebComic",zoomMode:"percent",zoomStep:30,zoomValue:100,keybinds:{SCROLL_UP:["up","W","num_8"],SCROLL_DOWN:["down","S","num_2"],NEXT_CHAPTER:["right","/","D","num_6"],PREVIOUS_CHAPTER:["left",";","A","num_4"],RETURN_CHAPTER_LIST:["backspace","del","num_decimal"],ENLARGE:["-","num_add","E"],REDUCE:["=","num_subtract","Q"],RESTORE:["9","num_divide","R"],FIT_WIDTH:["0","num_multiply","F"],FIT_HEIGHT:["H","num_0"],SETTINGS:["num_divide","num_5","X"],VIEW_MODE_WEBCOMIC:["C"],VIEW_MODE_VERTICAL:["V"],VIEW_MODE_LEFT:["N"],VIEW_MODE_RIGHT:["B"],VIEW_MODE_GALLERY:["G"],SCROLL_START:["space"],INCREASE_SPEED:["."],DECREASE_SPEED:[","]}},$5={lazyLoadImages:!0,fitWidthIfOversize:!0,navbar:"disabled",viewMode:"WebComic",header:"scroll",hidePageControls:!0,pagination:"disabled"},D5={loadSpeed:"All",lazyLoadImages:!1,downloadZip:!1,theme:"oklch(44.6% 0.043 257.281)"};function $n(e=!0){const t={...P5,theme:e?"#29487D":"#004526"};let r=u2()?Se.default.defaultsDeep($5,t):t;return Ss()&&(r=Se.default.defaultsDeep(D5,r)),r}function z5(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const r=s=>`${s.url}-${s.date}`,i=[...e].sort((s,l)=>r(s).localeCompare(r(l))),a=[...t].sort((s,l)=>r(s).localeCompare(r(l)));return Se.default.isEqual(i,a)}}function N5(e,t){if(e&&typeof e=="object"&&t&&typeof t=="object"){const r=e,i=t,a=Se.default.keys(r).sort((l,h)=>l.localeCompare(h)),s=Se.default.keys(i).sort((l,h)=>l.localeCompare(h));if(!Se.default.isEqual(a,s))return!1;for(const l of a){const h=r[l]?[...r[l]].sort((f,p)=>f.localeCompare(p)):[],u=i[l]?[...i[l]].sort((f,p)=>f.localeCompare(p)):[];if(!Se.default.isEqual(h,u))return!1}return!0}}function Wu(e,t,r){if(r==="bookmarks")return z5(e,t);if(r==="keybinds")return N5(e,t)}function ra(e,t,r){if(e===t)return!1;if(r){const i={[r]:e},a={[r]:t};return!Se.default.isEqualWith(i,a,Wu)}return!Se.default.isEqualWith(e,t,Wu)}var Yt=Se.default.defaultsDeep(i2($n()),$n()),Xt=Se.default.defaultsDeep(a2($n(!1)),$n(!1)),Wr=()=>Xt?.enabled===!0,Zs=e=>Wr()&&!["locale","bookmarks","keybinds"].includes(e),Mt=cu(Wr()?{...Xt,locale:Yt.locale,keybinds:Yt.keybinds,bookmarks:Yt.bookmarks}:Yt),ho=y2(Mt,e=>lo.find(t=>t.ID===e.locale)??lo[1]),Jt=cu({autoScroll:!1,chapter:$s(),currentPage:0,device:Vo(),manga:void 0,panel:"none",scrollToPage:void 0});function Ur(e){if(e){const t=Zs(e)?Xt[e]:Yt[e],r=Mt.get()?.[e];ra(r,t,e)&&(Mt.setKey(e,t),Me("Refreshed Settings",e,t));return}for(const t in Mt.get()){const r=Mt.get()[t],i=Zs(t)?Xt[t]:Yt[t];ra(r,i)&&Mt.setKey(t,i)}Me("Refreshed All Settings")}function B5(e){const t=Se.default.defaultsDeep(e,$n()),r=Yt?ei(t,Yt):t;if(!En(r)){Me("Imported Global Settings",r),Yt=t;for(const i in r)Ur(i)}}su(Se.default.debounce(B5,300),"settings");function H5(e){const t=Se.default.defaultsDeep(e,$n(!1)),r=Xt?ei(t,Xt):t;if(!En(r)){Me("Imported Local Settings",r),Xt=t;for(const i in r)Ur(i)}}su(Se.default.debounce(H5,300),location.hostname);function Y(e){return Mt.get()?.[e]}function fo(e,t){const r=Mt.get()?.[e];ra(r,t,e)&&Mt.setKey(e,t)}function yt(e,t){ra(Y(e),t,e)&&(Mt.setKey(e,t),Zs(e)?(Xt[e]=t,au(ei(Xt,$n(!1)))):(Yt[e]=t,s2(ei(Yt,$n()))))}function ti(e,t){fo(e,t(Y(e)))}function pe(e){return Jt.get()[e]}function Pe(e,t){const r=Jt.get()[e];Se.default.isEqual(r,t)||Jt.setKey(e,t)}function Uu(e,t){const r=Jt.get()[e],i=t(r);Se.default.isEqual(r,i)||Jt.setKey(e,i)}function Dn(e,t){Uu("images",r=>({...r,[e]:{...r?.[e],...t(r?.[e]??{})}}))}function j(e){const t=lo.find(r=>r.ID===Y("locale"))??lo[1];return F2(t,e)?t?.[e]??lo[1]?.[e]:`##MISSING_STRING_${e}##`}function Vu(e=!1){return Xt.enabled=e,au(ei(Xt,$n(!1))),Me("Local Settings ",e?"Enabled":"Disabled"),sn.info({title:"Changed Settings to",description:Wr()?"Local":"Global",duration:2e3}),Wr()}function F5(){Wr()?(ru(location.hostname),Xt=$n(!1),Vu(!1)):(ru("settings"),Yt=$n(),Ur()),Me("Settings Reset")}function po(e=location.href){return Y("bookmarks").find(t=>t.url===e)?.page}function G5(e=null){kn("Current Settings (Local:",Wr(),") ",e?Mt.get()[e]:Mt.get(),`
Global Settings`,e?Yt[e]:Yt,`
Local Settings`,e?Xt[e]:Xt,`
AppState`,Jt.get())}r2("MOVSettings",G5);var W5=(e,t,r)=>{if(r&&!["bookmarks","zoomValue"].includes(r)){const i=t[r],a=e[r];sn.info({title:`${r} Changed`,description:`from ${JSON.stringify(i)} to ${JSON.stringify(a)}`,duration:2e3})}};Mt.listen(Se.default.debounce(W5,300));var ln=e=>e??Ne,U5=":host{--mov-font-size-scale:1;--mov-font-size-m:calc(1rem * var(--mov-font-size-scale));--mov-font-size-s:round(calc(var(--mov-font-size-m) / 1.125), 1px);--mov-font-size-l:round(calc(var(--mov-font-size-m) * 1.125 * 1.125), 1px);--mov-border-width-s:.0625rem;--mov-border-radius-m:.375rem;--mov-border-radius-pill:9999px;--mov-transition-fast:75ms;--mov-font-weight-action:500;--mov-focus-ring:solid .1875rem var(--mov-color-fill-loud);--mov-focus-ring-offset:.0625rem;--mov-line-height-condensed:1.2;--mov-form-control-padding-block:.75em;--mov-form-control-padding-inline:1em;--mov-form-control-height:round(calc(2 * var(--mov-form-control-padding-block) + 1em * var(--mov-line-height-condensed)), 1px);display:inline-block}:host([size=small]){font-size:var(--mov-font-size-s)}:host([size=medium]){font-size:var(--mov-font-size-m)}:host([size=large]){font-size:var(--mov-font-size-l)}.button{box-sizing:border-box;user-select:none;white-space:nowrap;vertical-align:middle;transition-property:background,border,box-shadow,color;transition-duration:var(--mov-transition-fast);cursor:pointer;padding:0 var(--mov-form-control-padding-inline);font-family:inherit;font-size:inherit;font-weight:var(--mov-font-weight-action);line-height:calc(var(--mov-form-control-height) - var(--mov-border-width-s) * 2);height:var(--mov-form-control-height);border-radius:var(--mov-border-radius-m);border-style:solid;border-width:var(--mov-border-width-s);background-color:var(--mov-color-fill-loud);color:var(--mov-color-on-loud);border-color:#0000;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}:host([appearance~=plain]){& .button{color:var(--mov-color-on-quiet);background-color:#0000;border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-quiet);background-color:var(--mov-color-fill-quiet)}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-quiet);background-color:color-mix(in oklab, var(--mov-color-fill-quiet), var(--mov-color-mix-active))}}:host([appearance~=outlined]){& .button{color:var(--mov-color-on-quiet);border-color:var(--mov-color-border-loud);background-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-quiet);background-color:var(--mov-color-fill-quiet)}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-quiet);background-color:color-mix(in oklab, var(--mov-color-fill-quiet), var(--mov-color-mix-active))}}:host([appearance~=filled]){& .button{color:var(--mov-color-on-normal);background-color:var(--mov-color-fill-normal);border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{color:var(--mov-color-on-normal);background-color:color-mix(in oklab, var(--mov-color-fill-normal), var(--mov-color-mix-hover))}}& .button:not(.disabled):not(.loading):active{color:var(--mov-color-on-normal);background-color:color-mix(in oklab, var(--mov-color-fill-normal), var(--mov-color-mix-active))}}:host([appearance~=filled][appearance~=outlined]) .button{border-color:var(--mov-color-border-normal)}:host([appearance~=accent]){& .button{color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);border-color:#0000}@media (hover:hover){& .button:not(.disabled):not(.loading):hover{background-color:color-mix(in oklab, var(--mov-color-fill-loud), var(--mov-color-mix-hover))}}& .button:not(.disabled):not(.loading):active{background-color:color-mix(in oklab, var(--mov-color-fill-loud), var(--mov-color-mix-active))}}.button:focus{outline:none}.button:focus-visible{outline:var(--mov-focus-ring);outline-offset:var(--mov-focus-ring-offset)}.button.disabled{opacity:.5;cursor:not-allowed}.button.disabled *{pointer-events:none}.button.is-icon-button{outline-offset:2px;width:var(--mov-form-control-height);aspect-ratio:1}:host([pill]) .button{border-radius:var(--mov-border-radius-pill)}.start,.end{pointer-events:none;flex:none;align-items:center;display:flex}.label{display:inline-block}.is-icon-button .label{display:flex}mov-icon[part~=caret]{align-self:center;align-items:center;display:flex}mov-icon[part~=caret]::part(svg){width:.875em;height:.875em}.loading{cursor:wait;position:relative}.loading .start,.loading .label,.loading .end,.loading .caret{visibility:hidden}.spinner{--indicator-color:currentColor;--track-color:color-mix(in oklab, currentColor, transparent 90%);border:2px solid var(--track-color);border-top-color:var(--indicator-color);border-radius:50%;width:1em;height:1em;font-size:1em;animation:1s linear infinite spin;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}@keyframes spin{to{transform:rotate(360deg)}}slot[name=start]::slotted(*){margin-inline-end:.75em}slot[name=end]::slotted(*),.button:not(.visually-hidden-label) [part~=caret]{margin-inline-start:.75em}",ct=class extends Qe{constructor(...t){super(...t),this.isIconButton=!1,this.hasLabel=!1,this.hasStart=!1,this.hasEnd=!1,this.title="",this.appearance="accent",this.variant="brand",this.size="medium",this.withCaret=!1,this.disabled=!1,this.loading=!1,this.pill=!1,this.type="button"}static{this.styles=[Wt(U5)]}handleClick(t){(this.disabled||this.loading)&&(t.preventDefault(),t.stopPropagation())}click(){this.button?.click()}focus(t){this.button?.focus(t)}blur(){this.button?.blur()}render(){const t=!!this.href,r={button:!0,"with-caret":this.withCaret,disabled:this.disabled,loading:this.loading,pill:this.pill,"has-label":this.hasLabel,"has-start":this.hasStart,"has-end":this.hasEnd,"is-icon-button":this.isIconButton},i=le`
      <slot
        name="start"
        @slotchange=${this.handleLabelSlotChange}
        part="start"
        class="start"
      ></slot>
      <slot
        @slotchange=${this.handleLabelSlotChange}
        part="label"
        class="label"
      ></slot>
      <slot
        name="end"
        @slotchange=${this.handleLabelSlotChange}
        part="end"
        class="end"
      ></slot>
      ${this.withCaret?le`<mov-icon
            part="caret"
            class="caret"
            name="IconChevronRight"
            style="transform: rotate(90deg)"
          ></mov-icon>`:""}
      ${this.loading?le`<span
            part="spinner"
            class="spinner"
          ></span>`:""}
    `;return t?le`
        <a
          part="base"
          class=${St(r)}
          href=${ln(this.href)}
          target=${ln(this.target)}
          title=${ln(this.title)}
          role="button"
          aria-disabled=${this.disabled?"true":"false"}
          tabindex=${this.disabled?"-1":"0"}
          download=${ln(this.download)}
          @click=${this.handleClick}
        >
          ${i}
        </a>
      `:le`
        <button
          part="base"
          class=${St(r)}
          ?disabled=${this.disabled||this.loading}
          type=${ln(this.type)}
          title=${ln(this.title)}
          name=${ln(this.name)}
          value=${ln(this.value)}
          aria-disabled=${this.disabled?"true":"false"}
          tabindex=${this.disabled?"-1":"0"}
        >
          ${i}
        </button>
      `}handleLabelSlotChange(){const t=this.labelSlot?.assignedNodes({flatten:!0})??[],r=t.filter(l=>l.nodeType===Node.ELEMENT_NODE),i=t.filter(l=>l.nodeType===Node.TEXT_NODE&&l.textContent?.trim()!==""),a=l=>["wa-icon","mov-icon","svg"].includes(l.localName),s=r.some(a);this.isIconButton=i.length===0&&s}};F([Fr(".button")],ct.prototype,"button",void 0),F([Fr("slot:not([name])")],ct.prototype,"labelSlot",void 0),F([an()],ct.prototype,"isIconButton",void 0),F([an()],ct.prototype,"hasLabel",void 0),F([an()],ct.prototype,"hasStart",void 0),F([an()],ct.prototype,"hasEnd",void 0),F([ne()],ct.prototype,"title",void 0),F([ne({reflect:!0})],ct.prototype,"appearance",void 0),F([ne({reflect:!0})],ct.prototype,"variant",void 0),F([ne({reflect:!0})],ct.prototype,"size",void 0),F([ne({attribute:"with-caret",type:Boolean,reflect:!0})],ct.prototype,"withCaret",void 0),F([ne({type:Boolean,reflect:!0})],ct.prototype,"disabled",void 0),F([ne({type:Boolean,reflect:!0})],ct.prototype,"loading",void 0),F([ne({type:Boolean,reflect:!0})],ct.prototype,"pill",void 0),F([ne()],ct.prototype,"type",void 0),F([ne({reflect:!0})],ct.prototype,"name",void 0),F([ne({reflect:!0})],ct.prototype,"value",void 0),F([ne({reflect:!0})],ct.prototype,"href",void 0),F([ne()],ct.prototype,"target",void 0),F([ne({reflect:!0})],ct.prototype,"rel",void 0),F([ne()],ct.prototype,"download",void 0),F([ne({reflect:!0})],ct.prototype,"form",void 0),ct=F([lt("mov-button")],ct);var An=class extends Qe{constructor(...t){super(...t),this.mode="burger",this.active=!1,this.label="",this.icon="",this.activeIcon="",this.appearance="accent",this.size="medium",this.disabled=!1,this.loading=!1}static{this.styles=Lt`
    :host {
      display: inline-flex;
      vertical-align: middle;
      --burger-size: 1.25rem;
      --burger-line-height: 2px;
      --burger-line-color: currentColor;
      --burger-transition-duration: 0.3s;
    }

    /* Base button styling */
    mov-button {
      position: relative;
    }

    /* Single icon modes - simple rotation in place */
    .single-icon-mode mov-icon {
      transition: transform 0.3s ease;
      display: block;
    }

    .chevron-icon {
      transform: rotate(0deg);
    }

    :host([active]) .chevron-icon {
      transform: rotate(90deg);
    }

    .expand-icon {
      transform: rotate(0deg);
    }

    :host([active]) .expand-icon {
      transform: rotate(180deg);
    }

    /* Two icon modes - positioned for smooth swap */
    .two-icon-mode {
      position: relative;
    }

    .two-icon-mode mov-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition:
        opacity 0.25s ease,
        transform 0.3s ease;
    }

    /* Default state: inactive visible, active hidden */
    .inactive-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .active-icon {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    /* Active state: inactive hidden, active visible */
    :host([active]) .inactive-icon {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    :host([active]) .active-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    /* Play-pause uses single icon swap without positioning issues */
    .play-pause-icon {
      transition: opacity 0.2s ease;
      display: block;
    }

    /* Burger Mode Styling */
    .burger-mode {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: var(--burger-size);
      height: var(--burger-size);
      position: relative;
    }

    .burger-line {
      width: 100%;
      height: var(--burger-line-height);
      background-color: var(--burger-line-color);
      border-radius: var(--burger-line-height);
      transition: transform var(--burger-transition-duration) ease,
                  opacity var(--burger-transition-duration) ease;
      position: absolute;
    }

    .burger-line:nth-child(1) { transform: translateY(-6px); }
    .burger-line:nth-child(2) { transform: translateY(0); }
    .burger-line:nth-child(3) { transform: translateY(6px); }

    :host([active]) .burger-line:nth-child(1) {
      transform: translateY(0) rotate(45deg);
    }

    :host([active]) .burger-line:nth-child(2) {
      opacity: 0;
      transform: translateX(4px);
    }

    :host([active]) .burger-line:nth-child(3) {
      transform: translateY(0) rotate(-45deg);
    }

    /* Size adjustments for burger */
    :host([size="small"]) { --burger-size: 1rem; }
    :host([size="large"]) { --burger-size: 1.5rem; }

    /* Simple click feedback without disrupting layout */
    mov-button:active {
      transform: scale(0.96);
    }

    /* Loading state */
    :host([loading]) mov-icon {
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Hover effects */
    mov-button:hover:not(:disabled) {
      filter: brightness(1.05);
    }

    /* Focus visible enhancement */
    mov-button:focus-visible {
      outline: 2px solid var(--mov-color-fill-loud, currentColor);
      outline-offset: 2px;
    }

    /* Ensure proper centering for all modes */
    mov-button.single-icon-mode {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Fix icon sizing consistency */
    mov-icon {
      flex-shrink: 0;
    }
  `}connectedCallback(){super.connectedCallback(),this.label||(this.label=this._getDefaultLabel())}render(){const t=this.active?this.activeLabel??this.label:this.label,r={"two-icon-mode":["custom","theme"].includes(this.mode),"single-icon-mode":["chevron","expand","play-pause"].includes(this.mode),"burger-mode-active":this.mode==="burger"};return le`
      <mov-button
        @click=${this._onClick}
        .appearance=${ln(this.appearance)}
        .size=${ln(this.size)}
        ?disabled=${ln(this.disabled)}
        ?loading=${ln(this.loading)}
        .title=${ln(this.title)}
        class=${St(r)}
        title=${t}
        aria-label=${t}
        aria-pressed=${this.active?"true":"false"}
        icon-only
      >
        ${this._renderIcons()}
      </mov-button>
    `}_getDefaultLabel(){switch(this.mode){case"burger":return"Toggle menu";case"chevron":return"Toggle expand";case"theme":return"Toggle theme";case"play-pause":return"Toggle play";case"expand":return"Toggle expand";case"custom":return"Toggle";default:return"Toggle"}}_getIcons(){switch(this.mode){case"chevron":return{inactive:"chevron-right",active:"chevron-right"};case"theme":return{inactive:"moon",active:"sun"};case"play-pause":return{inactive:"player-play",active:"player-pause"};case"expand":return{inactive:"arrow-autofit-down",active:"arrow-autofit-down"};case"custom":return{inactive:this.icon,active:this.activeIcon};default:return{inactive:"",active:""}}}_renderIcons(){if(this.mode==="burger")return le`
        <div class="burger-mode">
          <div class="burger-line"></div>
          <div class="burger-line"></div>
          <div class="burger-line"></div>
        </div>
      `;const t=this._getIcons();return t.inactive?this.mode==="chevron"?le`<mov-icon
        class="chevron-icon"
        name=${t.inactive}
      ></mov-icon>`:this.mode==="expand"?le`<mov-icon
        class="expand-icon"
        name=${t.inactive}
      ></mov-icon>`:this.mode==="play-pause"?le`<mov-icon
        class="play-pause-icon"
        name=${this.active?t.active:t.inactive}
      ></mov-icon>`:le`
      <mov-icon
        class="inactive-icon"
        name=${t.inactive}
      ></mov-icon>
      <mov-icon
        class="active-icon"
        name=${t.active}
      ></mov-icon>
    `:Ne}_onClick(){if(this.disabled||this.loading)return;const t=this.active;this.active=!this.active,this.dispatchEvent(new CustomEvent("toggle",{detail:{value:this.active,oldValue:t,mode:this.mode},bubbles:!0,composed:!0}))}toggle(){this._onClick()}setActive(t){this.active=t}};F([ne({type:String})],An.prototype,"mode",void 0),F([ne({type:Boolean,reflect:!0})],An.prototype,"active",void 0),F([ne({type:String})],An.prototype,"label",void 0),F([ne({type:String})],An.prototype,"activeLabel",void 0),F([ne({type:String})],An.prototype,"icon",void 0),F([ne({type:String})],An.prototype,"activeIcon",void 0),F([ne({type:String,reflect:!0})],An.prototype,"appearance",void 0),F([ne({type:String,reflect:!0})],An.prototype,"size",void 0),F([ne({type:Boolean})],An.prototype,"disabled",void 0),F([ne({type:Boolean,reflect:!0})],An.prototype,"loading",void 0),An=F([lt("toggle-button")],An);var Zu="important",V5=" !"+Zu,Vn=Xo(class extends Ki{constructor(e){if(super(e),e.type!==ji.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]??(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(const i in t){const a=t[i];if(a!=null){this.ft.add(i);const s=typeof a=="string"&&a.endsWith(V5);i.includes("-")||s?r.setProperty(i,s?a.slice(0,-11):a,s?Zu:""):r[i]=a}}return Qn}});function ni(e,t){let r=e.length,i,a,s=!1,l=!1;Array.isArray(e[0])?i=e:(i=[e],r=i.length,s=!0),Array.isArray(t[0])?a=t:(a=t.length>0?t.map(p=>[p]):[[]],l=!0);let h=a[0].length,u=a[0].map((p,w)=>a.map(b=>b[w])),f=i.map(p=>u.map(w=>{let b=0;if(!Array.isArray(p)){for(let v of w)b+=p*v;return b}for(let v=0;v<p.length;v++)b+=p[v]*(w[v]||0);return b}));return r===1&&s&&(f=f[0]),h===1&&l?r===1&&s?f[0]:f.map(p=>p[0]):f}function qs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function vt(e,t,r=[0,0,0]){const i=qs(e,t[0]),a=qs(e,t[1]),s=qs(e,t[2]);return r[0]=i,r[1]=a,r[2]=s,r}function go(e){return fr(e)==="string"}function fr(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function js(e,{precision:t=16,unit:r}){return Ke(e)?"none":(e=+Ks(e,t),e+(r??""))}function Ke(e){return e===null}function kt(e){return Ke(e)?0:e}function Ks(e,t){if(e===0)return 0;let r=~~e,i=0;r&&t&&(i=~~Math.log10(Math.abs(r))+1);const a=10**(t-i);return Math.floor(e*a+.5)/a}function ri(e,t,r){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*r}function qu(e,t,r){return(r-e)/(t-e)}function Ys(e,t,r){return!e||!t||e===t||e[0]===t[0]&&e[1]===t[1]||isNaN(r)||r===null?r:ri(t[0],t[1],qu(e[0],e[1],r))}function oa(e,t,r){return Math.max(Math.min(r,t),e)}function ia(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function Et(e,t){return ia(Math.abs(e)**t,e)}function Xs(e,t){return t===0?0:e/t}function ju(e,t,r=0,i=e.length){for(;r<i;){const a=r+i>>1;e[a]<t?r=a+1:i=a}return r}function mo(e,t){if(e instanceof t)return!0;const r=t.name;for(;e;){const i=Object.getPrototypeOf(e),a=i?.constructor?.name;if(a===r)return!0;if(!a||a==="Object")return!1;e=i}return!1}var Z5=Object.freeze({__proto__:null,bisectLeft:ju,clamp:oa,copySign:ia,interpolate:ri,interpolateInv:qu,isInstance:mo,isNone:Ke,isString:go,mapRange:Ys,multiplyMatrices:ni,multiply_v3_m3x3:vt,serializeNumber:js,skipNone:kt,spow:Et,toPrecision:Ks,type:fr,zdiv:Xs}),q5=class{add(e,t,r){if(typeof arguments[0]!="string"){for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1]);return}(Array.isArray(e)?e:[e]).forEach(function(i){this[i]=this[i]||[],t&&this[i][r?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(r){r.call(t&&t.context?t.context:t,t)})}},pr=new q5,cn={gamut_mapping:"css",precision:5,deltaE:"76",verbose:"production".toLowerCase()!=="test",warn:function(t){this.verbose&&globalThis?.console?.warn?.(t)}},Ku=class{type;coordMeta;coordRange;range;constructor(e,t){if(typeof e=="object"&&(this.coordMeta=e),t&&(this.coordMeta=t,this.coordRange=t.range??t.refRange),typeof e=="string"){let r=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!r)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=r.groups.type;let{min:i,max:a}=r.groups;(i||a)&&(this.range=[+i,+a])}}get computedRange(){return this.range?this.range:this.type==="<percentage>"?this.percentageRange():this.type==="<angle>"?[0,360]:null}get unit(){return this.type==="<percentage>"?"%":this.type==="<angle>"?"deg":""}resolve(e){if(this.type==="<angle>")return e;let t=this.computedRange,r=this.coordRange;return this.type==="<percentage>"&&(r??=this.percentageRange()),Ys(t,r,e)}serialize(e,t){let r=this.type==="<percentage>"?this.percentageRange(100):this.computedRange,i=this.unit;return e=Ys(this.coordRange,r,e),js(e,{unit:i,precision:t})}toString(){let e=this.type;if(this.range){let[t="",r=""]=this.range;e+=`[${t},${r}]`}return e}percentageRange(e=1){let t;return this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?t=[0,1]:t=[-1,1],[t[0]*e,t[1]*e]}static get(e,t){return mo(e,this)?e:new this(e,t)}},Js=Symbol("instance"),Yu=class jf{type;name;spaceCoords;coords;id;alpha;constructor(t,r=t.space){t[Js]=this,this.type="function",this.name="color",Object.assign(this,t),this.space=r,this.type!=="custom"&&(this.spaceCoords=Object.values(r.coords),this.coords||(this.coords=this.spaceCoords.map(i=>{let a=["<number>","<percentage>"];return i.type==="angle"&&a.push("<angle>"),a})),this.coords=this.coords.map((i,a)=>{let s=this.spaceCoords[a];return typeof i=="string"&&(i=i.trim().split(/\s*\|\s*/)),i.map(l=>Ku.get(l,s))}))}serializeCoords(t,r,i){return i=t.map((a,s)=>Ku.get(i?.[s]??this.coords[s][0],this.spaceCoords[s])),t.map((a,s)=>i[s].serialize(a,r))}coerceCoords(t,r){return Object.entries(this.space.coords).map(([i,a],s)=>{let l=t[s];if(Ke(l)||isNaN(l))return l;let h=r[s],u=this.coords[s].find(f=>f.type==h);if(!u){let f=a.name||i;throw new TypeError(`${h??l?.raw??l} not allowed for ${f} in ${this.name}()`)}return l=u.resolve(l),u.range&&(r[s]=u.toString()),l})}canSerialize(){return this.type==="function"||this.serialize}parse(t){return null}static get(t,...r){return!t||mo(t,this)?t:t[Js]?t[Js]:new jf(t,...r)}},Ut={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function Qs(e){return Array.isArray(e)?e:Ut[e]}function aa(e,t,r,i={}){if(e=Qs(e),t=Qs(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${!e&&!t?"/":""}${t?"":"to"}`);if(e===t)return r;let a={W1:e,W2:t,XYZ:r,options:i};if(pr.run("chromatic-adaptation-start",a),a.M||(a.W1===Ut.D65&&a.W2===Ut.D50?a.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:a.W1===Ut.D50&&a.W2===Ut.D65&&(a.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),pr.run("chromatic-adaptation-end",a),a.M)return vt(a.XYZ,a.M);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}function Xu(e,t){let r={str:String(e)?.trim(),options:t};if(pr.run("parse-start",r),r.color)return r.color;r.parsed=K5(r.str);let i,a=r.options?r.options.parseMeta??r.options.meta:null;if(r.parsed){let s=r.parsed.name,l,h,u=r.parsed.args,f=u.map((b,v)=>r.parsed.argMeta[v]?.type);if(s==="color"){let b=u.shift();f.shift();let v=b.startsWith("--")?b.substring(2):`--${b}`,m=[b,v];if(l=ke.findFormat({name:s,id:m,type:"function"}),!l){let E,y=b in ke.registry?b:v;if(y in ke.registry){let A=ke.registry[y].formats?.color?.id;A&&(E=`Did you mean ${e.replace("color("+b,"color("+A)}?`)}throw new TypeError(`Cannot parse ${r.str}. `+(E??"Missing a plugin?"))}h=l.space,l.id.startsWith("--")&&!b.startsWith("--")&&cn.warn(`${h.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${l.id}) instead of color(${b}).`),b.startsWith("--")&&!l.id.startsWith("--")&&cn.warn(`${h.name} is a standard space and supported in the CSS spec. Use color(${l.id}) instead of prefixed color(${b}).`)}else l=ke.findFormat({name:s,type:"function"}),h=l.space;a&&Object.assign(a,{format:l,formatId:l.name,types:f,commas:r.parsed.commas});let p=1;r.parsed.lastAlpha&&(p=r.parsed.args.pop(),a&&(a.alphaType=f.pop()));let w=l.coords.length;if(u.length!==w)throw new TypeError(`Expected ${w} coordinates for ${h.id} in ${r.str}), got ${u.length}`);u=l.coerceCoords(u,f),i={spaceId:h.id,coords:u,alpha:p}}else e:for(let s of ke.all)for(let l in s.formats){let h=s.formats[l];if(h.type!=="custom"||h.test&&!h.test(r.str))continue;let u=s.getFormat(h),f=u.parse(r.str);if(f){a&&Object.assign(a,{format:u,formatId:l}),i=f;break e}}if(!i)throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`);return i.alpha=Ke(i.alpha)?i.alpha:i.alpha===void 0?1:oa(0,i.alpha,1),i}var Ju={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},sa={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(Ju).join("|")})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g};function j5(e){let t={},r=e.match(sa.unitValue)?.[0],i=t.raw=e;return r?(t.type=r==="%"?"<percentage>":"<angle>",t.unit=r,t.unitless=Number(i.slice(0,-r.length)),i=t.unitless*Ju[r]):sa.number.test(i)?(i=Number(i),t.type="<number>"):i==="none"?i=null:i==="NaN"||i==="calc(NaN)"?(i=NaN,t.type="<number>"):t.type="<ident>",{value:i,meta:t}}function K5(e){if(!e)return;e=e.trim();let t=e.match(sa.function);if(t){let r=[],i=[],a=!1,s=t[1].toLowerCase(),l=t[2].replace(sa.singleArgument,(h,u)=>{let{value:f,meta:p}=j5(u);return(h.startsWith("/")||s!=="color"&&r.length===3)&&(a=!0),r.push(f),i.push(p),""});return{name:s,args:r,argMeta:i,lastAlpha:a,commas:l.includes(","),rawName:t[1],rawArgs:t[2]}}}function Re(e,t){if(Array.isArray(e))return e.map(i=>Re(i,t));if(!e)throw new TypeError("Empty color reference");go(e)&&(e=Xu(e,t));let r=e.space||e.spaceId;return typeof r=="string"&&(e.space=ke.get(r)),e.alpha===void 0&&(e.alpha=1),e}var Y5=75e-6,ke=class Wn{constructor(t){this.id=t.id,this.name=t.name,this.base=t.base?Wn.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let r=t.coords??this.base.coords;for(let i in r)"name"in r[i]||(r[i].name=i);this.coords=r,this.white=Qs(t.white??this.base.white??"D65"),this.formats=t.formats??{};for(let i in this.formats){let a=this.formats[i];a.type||="function",a.name||=i}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace==="self"?this:Wn.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(i,a)=>!0),this.referred=t.referred,Object.defineProperty(this,"path",{value:X5(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),pr.run("colorspace-init-end",this)}inGamut(t,{epsilon:r=Y5}={}){if(!this.equals(this.gamutSpace))return t=this.to(this.gamutSpace,t),this.gamutSpace.inGamut(t,{epsilon:r});let i=Object.values(this.coords);return t.every((a,s)=>{let l=i[s];if(l.type!=="angle"&&l.range){if(Ke(a))return!0;let[h,u]=l.range;return(h===void 0||a>=h-r)&&(u===void 0||a<=u+r)}return!0})}get isUnbounded(){return Object.values(this.coords).every(t=>!("range"in t))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let t in this.coords)if(this.coords[t].type==="angle")return!0;return!1}getFormat(t){if(!t)return null;t==="default"?t=Object.values(this.formats)[0]:typeof t=="string"&&(t=this.formats[t]);let r=Yu.get(t,this);return r!==t&&t.name in this.formats&&(this.formats[t.name]=r),r}equals(t){return t?this===t||this.id===t||this.id===t.id:!1}to(t,r){if(arguments.length===1){const h=Re(t);[t,r]=[h.space,h.coords]}if(t=Wn.get(t),this.equals(t))return r;r=r.map(h=>Ke(h)?0:h);let i=this.path,a=t.path,s,l;for(let h=0;h<i.length&&i[h].equals(a[h]);h++)s=i[h],l=h;if(!s)throw new Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let h=i.length-1;h>l;h--)r=i[h].toBase(r);for(let h=l+1;h<a.length;h++)r=a[h].fromBase(r);return r}from(t,r){if(arguments.length===1){const i=Re(t);[t,r]=[i.space,i.coords]}return t=Wn.get(t),t.to(this,r)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let t=[];for(let r in this.coords){let i=this.coords[r],a=i.range||i.refRange;t.push(a?.min??0)}return t}static registry={};static get all(){return[...new Set(Object.values(Wn.registry))]}static register(t,r){if(arguments.length===1&&(r=arguments[0],t=r.id),r=this.get(r),this.registry[t]&&this.registry[t]!==r)throw new Error(`Duplicate color space registration: '${t}'`);if(this.registry[t]=r,arguments.length===1&&r.aliases)for(let i of r.aliases)this.register(i,r);return r}static get(t,...r){if(!t||mo(t,this))return t;if(fr(t)==="string"){let i=Wn.registry[t.toLowerCase()];if(!i)throw new TypeError(`No color space found with id = "${t}"`);return i}if(r.length)return Wn.get(...r);throw new TypeError(`${t} is not a valid color space`)}static findFormat(t,r=Wn.all){if(!t)return null;typeof t=="string"&&(t={name:t});for(let i of r)for(let[a,s]of Object.entries(i.formats)){s.name??=a,s.type??="function";let l=(!t.name||s.name===t.name)&&(!t.type||s.type===t.type);if(t.id){let h=s.ids||[s.id],u=Array.isArray(t.id)?t.id:[t.id];l&&=u.some(f=>h.includes(f))}if(l){let h=Yu.get(s,i);return h!==s&&(i.formats[s.name]=h),h}}return null}static resolveCoord(t,r){let i=fr(t),a,s;if(i==="string"?t.includes(".")?[a,s]=t.split("."):[a,s]=[,t]:Array.isArray(t)?[a,s]=t:(a=t.space,s=t.coordId),a=Wn.get(a),a||(a=r),!a)throw new TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(i=fr(s),i==="number"||i==="string"&&s>=0){let u=Object.entries(a.coords)[s];if(u)return{space:a,id:u[0],index:s,...u[1]}}a=Wn.get(a);let l=s.toLowerCase(),h=0;for(let u in a.coords){let f=a.coords[u];if(u.toLowerCase()===l||f.name?.toLowerCase()===l)return{space:a,id:u,index:h,...f};h++}throw new TypeError(`No "${s}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}};function X5(e){let t=[e];for(let r=e;r=r.base;)t.push(r);return t}var $t=new ke({id:"xyz-d65",name:"XYZ D65",coords:{x:{refRange:[0,1],name:"X"},y:{refRange:[0,1],name:"Y"},z:{refRange:[0,1],name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]}),Bt=class extends ke{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=$t),e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let r=vt(t,e.toXYZ_M);return this.white!==this.base.white&&(r=aa(this.white,this.base.white,r)),r},e.fromBase??=t=>(t=aa(this.base.white,this.white,t),vt(t,e.fromXYZ_M))),e.referred??="display",super(e)}};function Qu(e,t={}){if(Array.isArray(e))return e.map(u=>Qu(u,t));let{cssProperty:r="background-color",element:i,...a}=t,s=null;try{return Re(e,a)}catch(u){s=u}let{CSS:l,getComputedStyle:h}=globalThis;if(go(e)&&i&&l&&h&&l.supports(r,e)){let u=i.style[r];e!==u&&(i.style[r]=e);let f=h(i).getPropertyValue(r);if(e!==u&&(i.style[r]=u),f!==e)try{return Re(f,a)}catch(p){s=p}else s={message:"Color value is a valid CSS color, but it could not be resolved :("}}return t.errorMeta&&(t.errorMeta.error=s),null}function oi(e,t){e=Re(e);let r=ke.get(t,t?.space),i=t?.precision,a;return!r||e.space.equals(r)?a=e.coords.slice():a=r.from(e),i===void 0?a:a.map(s=>Ks(s,i))}function un(e,t){if(e=Re(e),t==="alpha")return e.alpha??1;let{space:r,index:i}=ke.resolveCoord(t,e.space);return oi(e,r)[i]}function el(e,t,r,i){return e=Re(e),Array.isArray(t)&&([t,r,i]=[e.space,t,r]),t=ke.get(t),e.coords=t===e.space?r.slice():t.to(e.space,r),i!==void 0&&(e.alpha=i),e}el.returns="color";function er(e,t,r){if(e=Re(e),arguments.length===2&&fr(arguments[1])==="object"){let i=arguments[1];for(let a in i)er(e,a,i[a])}else if(typeof r=="function"&&(r=r(un(e,t))),t==="alpha")e.alpha=r;else{let{space:i,index:a}=ke.resolveCoord(t,e.space),s=oi(e,i);s[a]=r,el(e,i,s)}return e}er.returns="color";var tl=new ke({id:"xyz-d50",name:"XYZ D50",white:"D50",base:$t,fromBase:e=>aa($t.white,"D50",e),toBase:e=>aa("D50",$t.white,e)}),J5=216/24389,ed=24/116,la=24389/27,nl=Ut.D50,dn=new ke({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:nl,base:tl,fromBase(e){let t=e.map((r,i)=>r/nl[i]).map(r=>r>J5?Math.cbrt(r):(la*r+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let[t,r,i]=e,a=[];return a[1]=(t+16)/116,a[0]=r/500+a[1],a[2]=a[1]-i/200,[a[0]>ed?Math.pow(a[0],3):(116*a[0]-16)/la,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/la,a[2]>ed?Math.pow(a[2],3):(116*a[2]-16)/la].map((s,l)=>s*nl[l])},formats:{lab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function Sn(e){return typeof e!="number"?e:(e%360+360)%360}function td(e,t){let[r,i]=t,a=Ke(r),s=Ke(i);if(a&&s)return[r,i];if(a?r=i:s&&(i=r),e==="raw")return t;r=Sn(r),i=Sn(i);let l=i-r;return e==="increasing"?l<0&&(i+=360):e==="decreasing"?l>0&&(r+=360):e==="longer"?-180<l&&l<180&&(l>0?r+=360:i+=360):e==="shorter"&&(l>180?r+=360:l<-180&&(i+=360)),[r,i]}var hn=new ke({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:dn,fromBase(e){if(this.ε===void 0){let l=Object.values(this.base.coords)[1].refRange;this.ε=(l[1]-l[0])/1e5}let[t,r,i]=e,a=Math.abs(r)<this.ε&&Math.abs(i)<this.ε,s=a?null:Sn(Math.atan2(i,r)*180/Math.PI);return[t,a?0:Math.sqrt(r**2+i**2),s]},toBase(e){let[t,r,i]=e,a=null,s=null;return Ke(i)||(r=r<0?0:r,a=r*Math.cos(i*Math.PI/180),s=r*Math.sin(i*Math.PI/180)),[t,a,s]},formats:{lch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}}),nd=25**7,ca=Math.PI,rd=180/ca,vo=ca/180;function od(e){const t=e*e;return t*t*t*e}function id(e,t,{kL:r=1,kC:i=1,kH:a=1}={}){[e,t]=Re([e,t]);let[s,l,h]=dn.from(e),u=hn.from(dn,[s,l,h])[1],[f,p,w]=dn.from(t),b=hn.from(dn,[f,p,w])[1];u<0&&(u=0),b<0&&(b=0);let v=od((u+b)/2),m=.5*(1-Math.sqrt(v/(v+nd))),E=(1+m)*l,y=(1+m)*p,A=Math.sqrt(E**2+h**2),x=Math.sqrt(y**2+w**2),L=E===0&&h===0?0:Math.atan2(h,E),T=y===0&&w===0?0:Math.atan2(w,y);L<0&&(L+=2*ca),T<0&&(T+=2*ca),L*=rd,T*=rd;let z=f-s,K=x-A,q=T-L,oe=L+T,W=Math.abs(q),ge;A*x===0?ge=0:W<=180?ge=q:q>180?ge=q-360:q<-180?ge=q+360:cn.warn("the unthinkable has happened");let _e=2*Math.sqrt(x*A)*Math.sin(ge*vo/2),P=(s+f)/2,X=(A+x)/2,S=od(X),Q;A*x===0?Q=oe:W<=180?Q=oe/2:oe<360?Q=(oe+360)/2:Q=(oe-360)/2;let Ie=(P-50)**2,ue=1+.015*Ie/Math.sqrt(20+Ie),Ce=1+.045*X,ie=1;ie-=.17*Math.cos((Q-30)*vo),ie+=.24*Math.cos(2*Q*vo),ie+=.32*Math.cos((3*Q+6)*vo),ie-=.2*Math.cos((4*Q-63)*vo);let xe=1+.015*X*ie,U=30*Math.exp(-1*((Q-275)/25)**2),G=2*Math.sqrt(S/(S+nd)),Ae=-1*Math.sin(2*U*vo)*G,me=(z/(r*ue))**2;return me+=(K/(i*Ce))**2,me+=(_e/(a*xe))**2,me+=Ae*(K/(i*Ce))*(_e/(a*xe)),Math.sqrt(me)}var Q5=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],ev=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],tv=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],gr=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],zn=new ke({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:$t,fromBase(e){let t=vt(e,Q5);return t[0]=Math.cbrt(t[0]),t[1]=Math.cbrt(t[1]),t[2]=Math.cbrt(t[2]),vt(t,tv,t)},toBase(e){let t=vt(e,gr);return t[0]=t[0]**3,t[1]=t[1]**3,t[2]=t[2]**3,vt(t,ev,t)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function rl(e,t){[e,t]=Re([e,t]);let[r,i,a]=zn.from(e),[s,l,h]=zn.from(t),u=r-s,f=i-l,p=a-h;return Math.sqrt(u**2+f**2+p**2)}var nv=75e-6;function Vr(e,t,{epsilon:r=nv}={}){e=Re(e),t||(t=e.space),t=ke.get(t);let i=e.coords;return t!==e.space&&(i=t.from(e)),t.inGamut(i,{epsilon:r})}function bo(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function ad(e,t,r="lab"){r=ke.get(r);let i=r.from(e),a=r.from(t);return Math.sqrt(i.reduce((s,l,h)=>{let u=a[h];return Ke(l)||Ke(u)?s:s+(u-l)**2},0))}function rv(e,t){return ad(e,t,"lab")}var sd=Math.PI/180;function ov(e,t,{l:r=2,c:i=1}={}){[e,t]=Re([e,t]);let[a,s,l]=dn.from(e),[,h,u]=hn.from(dn,[a,s,l]),[f,p,w]=dn.from(t),b=hn.from(dn,[f,p,w])[1];h<0&&(h=0),b<0&&(b=0);let v=a-f,m=h-b,E=s-p,y=l-w,A=E**2+y**2-m**2,x=.511;a>=16&&(x=.040975*a/(1+.01765*a));let L=.0638*h/(1+.0131*h)+.638,T;Ke(u)&&(u=0),u>=164&&u<=345?T=.56+Math.abs(.2*Math.cos((u+168)*sd)):T=.36+Math.abs(.4*Math.cos((u+35)*sd));let z=Math.pow(h,4),K=Math.sqrt(z/(z+1900)),q=L*(K*T+1-K),oe=(v/(r*x))**2;return oe+=(m/(i*L))**2,oe+=A/q**2,Math.sqrt(oe)}var ld=203,ol=new ke({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:$t,fromBase(e){return e.map(t=>t*ld)},toBase(e){return e.map(t=>t/ld)}}),ua=1.15,da=.66,cd=2610/2**14,iv=2**14/2610,ud=3424/2**12,dd=2413/2**7,hd=2392/2**7,av=1.7*2523/2**5,fd=2**5/(1.7*2523),ha=-.56,il=16295499532821565e-27,sv=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],lv=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],cv=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],uv=[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]],pd=new ke({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:ol,fromBase(e){let[t,r,i]=e,[a,s,l]=vt(vt([ua*t-(ua-1)*i,da*r-(da-1)*t,i],sv).map(function(h){return Et((ud+dd*Et(h/1e4,cd))/(1+hd*Et(h/1e4,cd)),av)}),cv);return[(1+ha)*a/(1+ha*a)-il,s,l]},toBase(e){let[t,r,i]=e,[a,s,l]=vt(vt([(t+il)/(1+ha-ha*(t+il)),r,i],uv).map(function(u){return 1e4*Et((ud-Et(u,fd))/(hd*Et(u,fd)-dd),iv)}),lv),h=(a+(ua-1)*l)/ua;return[h,(s+(da-1)*h)/da,l]},formats:{jzazbz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}}),al=new ke({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,.26],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:pd,fromBase:hn.fromBase,toBase:hn.toBase,formats:{jzczhz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}});function dv(e,t){[e,t]=Re([e,t]);let[r,i,a]=al.from(e),[s,l,h]=al.from(t),u=r-s,f=i-l;Ke(a)&&Ke(h)?(a=0,h=0):Ke(a)?a=h:Ke(h)&&(h=a);let p=a-h,w=2*Math.sqrt(i*l)*Math.sin(p/2*(Math.PI/180));return Math.sqrt(u**2+f**2+w**2)}var gd=3424/4096,md=2413/128,vd=2392/128,bd=2610/16384,hv=2523/32,fv=16384/2610,wd=32/2523,pv=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],gv=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],mv=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],vv=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]],sl=new ke({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:ol,fromBase(e){return bv(vt(e,pv))},toBase(e){return vt(wv(e),vv)},formats:{ictcp:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function bv(e){return vt(e.map(function(t){return((gd+md*(t/1e4)**bd)/(1+vd*(t/1e4)**bd))**hv}),gv)}function wv(e){return vt(e,mv).map(function(t){return 1e4*(Math.max(t**wd-gd,0)/(md-vd*t**wd))**fv})}function _v(e,t){[e,t]=Re([e,t]);let[r,i,a]=sl.from(e),[s,l,h]=sl.from(t);return 720*Math.sqrt((r-s)**2+.25*(i-l)**2+(a-h)**2)}function yv(e,t){[e,t]=Re([e,t]);let r=2,[i,a,s]=zn.from(e),[l,h,u]=zn.from(t),f=i-l,p=r*(a-h),w=r*(s-u);return Math.sqrt(f**2+p**2+w**2)}var kv=Ut.D65,_d=.42,yd=1/_d,ll=2*Math.PI,kd=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],Ev=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],Av=[[460,451,288],[460,-891,-261],[460,-220,-6300]],Sv={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},Zr={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Mv=180/Math.PI,Ed=Math.PI/180;function Ad(e,t){return e.map(r=>{const i=Et(t*Math.abs(r)*.01,_d);return 400*ia(i,r)/(i+27.13)})}function xv(e,t){const r=100/t*27.13**yd;return e.map(i=>{const a=Math.abs(i);return ia(r*Et(a/(400-a),yd),i)})}function Iv(e){let t=Sn(e);t<=Zr.h[0]&&(t+=360);const r=ju(Zr.h,t)-1,[i,a]=Zr.h.slice(r,r+2),[s,l]=Zr.e.slice(r,r+2),h=Zr.H[r],u=(t-i)/s;return h+100*u/(u+(a-t)/l)}function Cv(e){let t=(e%400+400)%400;const r=Math.floor(.01*t);t=t%100;const[i,a]=Zr.h.slice(r,r+2),[s,l]=Zr.e.slice(r,r+2);return Sn((t*(l*i-s*a)-100*i*l)/(t*(l-s)-100*l))}function Sd(e,t,r,i,a){const s={};s.discounting=a,s.refWhite=e,s.surround=i;const l=e.map(m=>m*100);s.la=t,s.yb=r;const h=l[1],u=vt(l,kd);let f=Sv[s.surround];const p=f[0];s.c=f[1],s.nc=f[2];const w=(1/(5*s.la+1))**4;s.fl=w*s.la+.1*(1-w)*(1-w)*Math.cbrt(5*s.la),s.flRoot=s.fl**.25,s.n=s.yb/h,s.z=1.48+Math.sqrt(s.n),s.nbb=.725*s.n**-.2,s.ncb=s.nbb;const b=Math.max(Math.min(p*(1-1/3.6*Math.exp((-s.la-42)/92)),1),0);s.dRgb=u.map(m=>ri(1,h/m,b)),s.dRgbInv=s.dRgb.map(m=>1/m);const v=Ad(u.map((m,E)=>m*s.dRgb[E]),s.fl);return s.aW=s.nbb*(2*v[0]+v[1]+.05*v[2]),s}var Md=Sd(kv,64/Math.PI*.2,20,"average",!1);function cl(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(e.h!==void 0^e.H!==void 0))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(e.J===0||e.Q===0)return[0,0,0];let r=0;e.h!==void 0?r=Sn(e.h)*Ed:r=Cv(e.H)*Ed;const i=Math.cos(r),a=Math.sin(r);let s=0;e.J!==void 0?s=Et(e.J,1/2)*.1:e.Q!==void 0&&(s=.25*t.c*e.Q/((t.aW+4)*t.flRoot));let l=0;e.C!==void 0?l=e.C/s:e.M!==void 0?l=e.M/t.flRoot/s:e.s!==void 0&&(l=4e-4*e.s**2*(t.aW+4)/t.c);const h=Et(l*Math.pow(1.64-Math.pow(.29,t.n),-.73),10/9),u=.25*(Math.cos(r+2)+3.8),f=t.aW*Et(s,2/t.c/t.z),p=5e4/13*t.nc*t.ncb*u,w=f/t.nbb,b=23*(w+.305)*Xs(h,23*p+h*(11*i+108*a));return vt(xv(vt([w,b*i,b*a],Av).map(v=>v*1/1403),t.fl).map((v,m)=>v*t.dRgbInv[m]),Ev).map(v=>v/100)}function xd(e,t){const r=Ad(vt(e.map(E=>E*100),kd).map((E,y)=>E*t.dRgb[y]),t.fl),i=r[0]+(-12*r[1]+r[2])/11,a=(r[0]+r[1]-2*r[2])/9,s=(Math.atan2(a,i)%ll+ll)%ll,l=.25*(Math.cos(s+2)+3.8),h=Et(5e4/13*t.nc*t.ncb*Xs(l*Math.sqrt(i**2+a**2),r[0]+r[1]+1.05*r[2]+.305),.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),u=Et(t.nbb*(2*r[0]+r[1]+.05*r[2])/t.aW,.5*t.c*t.z),f=100*Et(u,2),p=4/t.c*u*(t.aW+4)*t.flRoot,w=h*u,b=w*t.flRoot,v=Sn(s*Mv),m=Iv(v);return{J:f,C:w,h:v,s:50*Et(t.c*h/(t.aW+4),1/2),Q:p,M:b,H:m}}var Ov=new ke({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:$t,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);const t=xd(e,Md),r=Math.abs(t.M)<this.ε;return[t.J,r?0:t.M,r?null:t.h]},toBase(e){return cl({J:e[0],M:e[1],h:e[2]},Md)}}),Tv=Ut.D65,Lv=216/24389,Id=24389/27;function Rv(e){return 116*(e>Lv?Math.cbrt(e):(Id*e+16)/116)-16}function ul(e){return e>8?Math.pow((e+16)/116,3):e/Id}function Pv(e,t){let[r,i,a]=e,s=[],l=0;if(a===0)return[0,0,0];let h=ul(a);a>0?l=.00379058511492914*a**2+.608983189401032*a+.9155088574762233:l=9514440756550361e-21*a**2+.08693057439788597*a-21.928975842194614;const u=2e-12,f=15;let p=0,w=1/0;for(;p<=f;){s=cl({J:l,C:i,h:r},t);const b=Math.abs(s[1]-h);if(b<w){if(b<=u)return s;w=b}l=l-(s[1]-h)*l/(2*s[1]),p+=1}return cl({J:l,C:i,h:r},t)}function $v(e,t){const r=Rv(e[1]);if(r===0)return[0,0,0];const i=xd(e,dl);return[Sn(i.h),i.C,r]}var dl=Sd(Tv,200/Math.PI*ul(50),ul(50)*100,"average",!1),ii=new ke({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:$t,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=$v(e);return t[1]<this.ε&&(t[1]=0,t[0]=null),t},toBase(e){return Pv(e,dl)},formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Dv=Math.PI/180,Cd=[1,.007,.0228];function Od(e){e[1]<0&&(e=ii.fromBase(ii.toBase(e)));const t=Math.log(Math.max(1+Cd[2]*e[1]*dl.flRoot,1))/Cd[2],r=e[0]*Dv,i=t*Math.cos(r),a=t*Math.sin(r);return[e[2],i,a]}function zv(e,t){[e,t]=Re([e,t]);let[r,i,a]=Od(ii.from(e)),[s,l,h]=Od(ii.from(t));return Math.sqrt((r-s)**2+(i-l)**2+(a-h)**2)}var wo={deltaE76:rv,deltaECMC:ov,deltaE2000:id,deltaEJz:dv,deltaEITP:_v,deltaEOK:rl,deltaEOK2:yv,deltaEHCT:zv};function Nv(e){return Math.max(parseFloat(`1e${(e?Math.floor(Math.log10(Math.abs(e))):0)-2}`),1e-6)}var Td={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function mr(e,{method:t=cn.gamut_mapping,space:r=void 0,deltaEMethod:i="",jnd:a=2,blackWhiteClamp:s=void 0}={}){if(e=Re(e),go(arguments[1])?r=arguments[1]:r||(r=e.space),r=ke.get(r),Vr(e,r,{epsilon:0}))return e;let l;if(t==="css")l=Bv(e,{space:r});else{if(t!=="clip"&&!Vr(e,r)){Object.prototype.hasOwnProperty.call(Td,t)&&({method:t,jnd:a,deltaEMethod:i,blackWhiteClamp:s}=Td[t]);let h=id;if(i!==""){for(let f in wo)if("deltae"+i.toLowerCase()===f.toLowerCase()){h=wo[f];break}}a===0&&(a=1e-16);let u=mr(rt(e,r),{method:"clip",space:r});if(h(e,u)>a){if(s&&Object.keys(s).length===3){let A=ke.resolveCoord(s.channel),x=un(rt(e,A.space),A.id);if(Ke(x)&&(x=0),x>=s.max)return rt({space:"xyz-d65",coords:Ut.D65},e.space);if(x<=s.min)return rt({space:"xyz-d65",coords:[0,0,0]},e.space)}let f=ke.resolveCoord(t),p=f.space,w=f.id,b=rt(e,p);b.coords.forEach((A,x)=>{Ke(A)&&(b.coords[x]=0)});let v=(f.range||f.refRange)[0],m=Nv(a),E=v,y=un(b,w);for(;y-E>m;){let A=bo(b);A=mr(A,{space:r,method:"clip"}),h(b,A)-a<m?E=un(b,w):y=un(b,w),er(b,w,(E+y)/2)}l=rt(b,r)}else l=u}else l=rt(e,r);if(t==="clip"||!Vr(l,r,{epsilon:0})){let h=Object.values(r.coords).map(u=>u.range||[]);l.coords=l.coords.map((u,f)=>{let[p,w]=h[f];return p!==void 0&&(u=Math.max(p,u)),w!==void 0&&(u=Math.min(u,w)),u})}}return r!==e.space&&(l=rt(l,e.space)),e.coords=l.coords,e}mr.returns="color";var Ld={WHITE:{space:zn,coords:[1,0,0],alpha:1},BLACK:{space:zn,coords:[0,0,0],alpha:1}};function Bv(e,{space:t}={}){e=Re(e),t||(t=e.space),t=ke.get(t);const a=ke.get("oklch");if(t.isUnbounded)return rt(e,t);const s=rt(e,a);let l=s.coords[0];if(l>=1){const m=rt(Ld.WHITE,t);return m.alpha=e.alpha,rt(m,t)}if(l<=0){const m=rt(Ld.BLACK,t);return m.alpha=e.alpha,rt(m,t)}if(Vr(s,t,{epsilon:0}))return rt(s,t);function h(m){const E=rt(m,t),y=Object.values(t.coords);return E.coords=E.coords.map((A,x)=>{if("range"in y[x]){const[L,T]=y[x].range;return oa(L,A,T)}return A}),E}let u=0,f=s.coords[1],p=!0,w=bo(s),b=h(w),v=rl(b,w);if(v<.02)return b;for(;f-u>1e-4;){const m=(u+f)/2;if(w.coords[1]=m,p&&Vr(w,t,{epsilon:0}))u=m;else if(b=h(w),v=rl(b,w),v<.02){if(.02-v<1e-4)break;p=!1,u=m}else f=m}return b}function rt(e,t,{inGamut:r}={}){e=Re(e),t=ke.get(t);let i=t.from(e),a={space:t,coords:i,alpha:e.alpha};return r&&(a=mr(a,r===!0?void 0:r)),a}rt.returns="color";function ai(e,t={}){let{precision:r=cn.precision,format:i,inGamut:a=!0,coords:s,alpha:l,commas:h}=t,u,f=Re(e),p=i,w=f.parseMeta;w&&!i&&(w.format.canSerialize()&&(i=w.format,p=w.formatId),s??=w.types,l??=w.alphaType,h??=w.commas),p&&(i=f.space.getFormat(i)??ke.findFormat(p)),i||(i=f.space.getFormat("default")??ke.DEFAULT_FORMAT,p=i.name),i&&i.space&&i.space!==f.space&&(f=rt(f,i.space));let b=f.coords.slice();if(a||=i.toGamut,a&&!Vr(f)&&(b=mr(bo(f),a===!0?void 0:a).coords),i.type==="custom")if(i.serialize)u=i.serialize(b,f.alpha,t);else throw new TypeError(`format ${p} can only be used to parse colors, not for serialization`);else{let v=i.name||"color",m=i.serializeCoords(b,r,s);if(v==="color"){let L=i.id||i.ids?.[0]||f.space.cssId||f.space.id;m.unshift(L)}let E=f.alpha;l!==void 0&&typeof l!="object"&&(l=typeof l=="string"?{type:l}:{include:l});let y=l?.type??"<number>",A=l?.include===!0||i.alpha===!0||l?.include!==!1&&i.alpha!==!1&&E<1,x="";if(h??=i.commas,A){if(r!==null){let L;y==="<percentage>"&&(L="%",E*=100),E=js(E,{precision:r,unit:L})}x=`${h?",":" /"} ${E}`}u=`${v}(${m.join(h?", ":" ")}${x})`}return u}var si=new Bt({id:"rec2020-linear",cssId:"--rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],fromXYZ_M:[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]]}),Rd=new Bt({id:"rec2020",name:"REC.2020",base:si,toBase(e){return e.map(function(t){let r=t<0?-1:1,i=t*r;return r*Math.pow(i,2.4)})},fromBase(e){return e.map(function(t){let r=t<0?-1:1,i=t*r;return r*Math.pow(i,1/2.4)})}}),Pd=new Bt({id:"p3-linear",cssId:"display-p3-linear",name:"Linear P3",white:"D65",toXYZ_M:[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],fromXYZ_M:[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]]}),Hv=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],xt=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]],$d=new Bt({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Hv,fromXYZ_M:xt}),Dd={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]},zd=Array(3).fill("<percentage> | <number>[0, 255]"),Nd=Array(3).fill("<number>[0, 255]"),qr=new Bt({id:"srgb",name:"sRGB",base:$d,fromBase:e=>e.map(t=>{let r=t<0?-1:1,i=t*r;return i>.0031308?r*(1.055*i**(1/2.4)-.055):12.92*t}),toBase:e=>e.map(t=>{let r=t<0?-1:1,i=t*r;return i<=.04045?t/12.92:r*((i+.055)/1.055)**2.4}),formats:{rgb:{coords:zd},rgb_number:{name:"rgb",commas:!0,coords:Nd,alpha:!1},color:{},rgba:{coords:zd,commas:!0,alpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Nd},hex:{type:"custom",toGamut:!0,test:e=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,r=>{t.push(parseInt(r,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:r=!0,alpha:i}={})=>{(i!==!1&&t<1||i===!0)&&e.push(t),e=e.map(s=>Math.round(s*255));let a=r&&e.every(s=>s%17===0);return"#"+e.map(s=>a?(s/17).toString(16):s.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:"srgb",coords:null,alpha:1};if(e==="transparent"?(t.coords=Dd.black,t.alpha=0):t.coords=Dd[e],t.coords)return t}}}}),Bd=new Bt({id:"p3",cssId:"display-p3",name:"P3",base:Pd,fromBase:qr.fromBase,toBase:qr.toBase});cn.display_space=qr;var Fv;if(typeof CSS<"u"&&CSS.supports)for(let e of[dn,Rd,Bd]){let t=ai({space:e,coords:e.getMinCoords(),alpha:1});if(CSS.supports("color",t)){cn.display_space=e;break}}function Gv(e,{space:t=cn.display_space,...r}={}){e=Re(e);let i=ai(e,r);if(typeof CSS>"u"||CSS.supports("color",i)||!cn.display_space)i=new String(i),i.color=e;else{let a=e;if((e.coords.some(Ke)||Ke(e.alpha))&&!(Fv??=CSS.supports("color","hsl(none 50% 50%)"))&&(a=bo(e),a.coords=a.coords.map(kt),a.alpha=kt(a.alpha),i=ai(a,r),CSS.supports("color",i)))return i=new String(i),i.color=a,i;a=rt(a,t),i=new String(ai(a,r)),i.color=a}return i}function Wv(e,t,{space:r,hue:i="shorter"}={}){e=Re(e),r||=e.space,r=ke.get(r);let a=Object.values(r.coords);[e,t]=[e,t].map(f=>rt(f,r));let[s,l]=[e,t].map(f=>f.coords),h=s.map((f,p)=>{let w=a[p],b=l[p];return w.type==="angle"&&([f,b]=td(i,[f,b])),Hd(f,b)}),u=Hd(e.alpha,t.alpha);return{space:r,coords:h,alpha:u}}function Hd(e,t){return Ke(e)||Ke(t)?e===t?null:0:e-t}function Uv(e,t){return e=Re(e),t=Re(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((r,i)=>r===t.coords[i])}function vr(e){return un(e,[$t,"y"])}function Fd(e,t){er(e,[$t,"y"],t)}function Vv(e){Object.defineProperty(e.prototype,"luminance",{get(){return vr(this)},set(t){Fd(this,t)}})}var Zv=Object.freeze({__proto__:null,getLuminance:vr,register:Vv,setLuminance:Fd});function qv(e,t){e=Re(e),t=Re(t);let r=Math.max(vr(e),0),i=Math.max(vr(t),0);return i>r&&([r,i]=[i,r]),(r+.05)/(i+.05)}var jv=.56,Kv=.57,Yv=.62,Xv=.65,Gd=.022,Jv=1.414,Qv=.1,e4=5e-4,t4=1.14,Wd=.027,n4=1.14;function Ud(e){return e>=Gd?e:e+(Gd-e)**Jv}function _o(e){return(e<0?-1:1)*Math.pow(Math.abs(e),2.4)}function r4(e,t){t=Re(t),e=Re(e);let r,i,a,s,l,h;t=rt(t,"srgb"),[s,l,h]=t.coords.map(v=>Ke(v)?0:v);let u=_o(s)*.2126729+_o(l)*.7151522+_o(h)*.072175;e=rt(e,"srgb"),[s,l,h]=e.coords.map(v=>Ke(v)?0:v);let f=_o(s)*.2126729+_o(l)*.7151522+_o(h)*.072175,p=Ud(u),w=Ud(f),b=w>p;return Math.abs(w-p)<e4?i=0:b?(r=w**jv-p**Kv,i=r*t4):(r=w**Xv-p**Yv,i=r*n4),Math.abs(i)<Qv?a=0:i>0?a=i-Wd:a=i+Wd,a*100}function o4(e,t){e=Re(e),t=Re(t);let r=Math.max(vr(e),0),i=Math.max(vr(t),0);i>r&&([r,i]=[i,r]);let a=r+i;return a===0?0:(r-i)/a}var i4=5e4;function a4(e,t){e=Re(e),t=Re(t);let r=Math.max(vr(e),0),i=Math.max(vr(t),0);return i>r&&([r,i]=[i,r]),i===0?i4:(r-i)/i}function s4(e,t){e=Re(e),t=Re(t);let r=un(e,[dn,"l"]),i=un(t,[dn,"l"]);return Math.abs(r-i)}var l4=216/24389,Vd=24/116,fa=24389/27,hl=Ut.D65,fl=new ke({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:hl,base:$t,fromBase(e){let t=e.map((r,i)=>r/hl[i]).map(r=>r>l4?Math.cbrt(r):(fa*r+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>Vd?Math.pow(t[0],3):(116*t[0]-16)/fa,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/fa,t[2]>Vd?Math.pow(t[2],3):(116*t[2]-16)/fa].map((r,i)=>r*hl[i])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <percentage>"]}}}),pl=Math.pow(5,.5)*.5+.5;function c4(e,t){e=Re(e),t=Re(t);let r=un(e,[fl,"l"]),i=un(t,[fl,"l"]),a=Math.abs(Math.pow(r,pl)-Math.pow(i,pl)),s=Math.pow(a,1/pl)*Math.SQRT2-40;return s<7.5?0:s}var pa=Object.freeze({__proto__:null,contrastAPCA:r4,contrastDeltaPhi:c4,contrastLstar:s4,contrastMichelson:o4,contrastWCAG21:qv,contrastWeber:a4});function u4(e,t,r){go(r)&&(r={algorithm:r});let{algorithm:i,...a}=r||{};if(!i){let s=Object.keys(pa).map(l=>l.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${s}`)}e=Re(e),t=Re(t);for(let s in pa)if("contrast"+i.toLowerCase()===s.toLowerCase())return pa[s](e,t,a);throw new TypeError(`Unknown contrast algorithm: ${i}`)}function ga(e){let[t,r,i]=oi(e,$t),a=t+15*r+3*i;return[4*t/a,9*r/a]}function Zd(e){let[t,r,i]=oi(e,$t),a=t+r+i;return[t/a,r/a]}function d4(e){Object.defineProperty(e.prototype,"uv",{get(){return ga(this)}}),Object.defineProperty(e.prototype,"xy",{get(){return Zd(this)}})}var h4=Object.freeze({__proto__:null,register:d4,uv:ga,xy:Zd});function li(e,t,r={}){go(r)&&(r={method:r});let{method:i=cn.deltaE,...a}=r;for(let s in wo)if("deltae"+i.toLowerCase()===s.toLowerCase())return wo[s](e,t,a);throw new TypeError(`Unknown deltaE method: ${i}`)}function qd(e,t=.25){return er(e,[ke.get("oklch","lch"),"l"],r=>r*(1+t))}function jd(e,t=.25){return er(e,[ke.get("oklch","lch"),"l"],r=>r*(1-t))}qd.returns="color",jd.returns="color";var f4=Object.freeze({__proto__:null,darken:jd,lighten:qd});function Kd(e,t,r,i={}){return[e,t]=[Re(e),Re(t)],fr(r)==="object"&&([r,i]=[.5,r]),ci(e,t,i)(r??.5)}function Yd(e,t,r={}){let i;gl(e)&&([i,r]=[e,t],[e,t]=i.rangeArgs.colors);let{maxDeltaE:a,deltaEMethod:s,steps:l=2,maxSteps:h=1e3,...u}=r;i||([e,t]=[Re(e),Re(t)],i=ci(e,t,u));let f=li(e,t),p=a>0?Math.max(l,Math.ceil(f/a)+1):l,w=[];if(h!==void 0&&(p=Math.min(p,h)),p===1)w=[{p:.5,color:i(.5)}];else{let b=1/(p-1);w=Array.from({length:p},(v,m)=>{let E=m*b;return{p:E,color:i(E)}})}if(a>0){let b=w.reduce((v,m,E)=>{if(E===0)return 0;let y=li(m.color,w[E-1].color,s);return Math.max(v,y)},0);for(;b>a;){b=0;for(let v=1;v<w.length&&w.length<h;v++){let m=w[v-1],E=w[v],y=(E.p+m.p)/2,A=i(y);b=Math.max(b,li(A,m.color),li(A,E.color)),w.splice(v,0,{p:y,color:i(y)}),v++}}}return w=w.map(b=>b.color),w}function ci(e,t,r={}){if(gl(e)){let[u,f]=[e,t];return ci(...u.rangeArgs.colors,{...u.rangeArgs.options,...f})}let{space:i,outputSpace:a,progression:s,premultiplied:l}=r;e=Re(e),t=Re(t),e=bo(e),t=bo(t);let h={colors:[e,t],options:r};if(i?i=ke.get(i):i=ke.registry[cn.interpolationSpace]||e.space,a=a?ke.get(a):i,e=rt(e,i),t=rt(t,i),e=mr(e),t=mr(t),i.coords.h&&i.coords.h.type==="angle"){let u=r.hue=r.hue||"shorter",f=[i,"h"],[p,w]=[un(e,f),un(t,f)];Ke(p)&&!Ke(w)?p=w:Ke(w)&&!Ke(p)&&(w=p),[p,w]=td(u,[p,w]),er(e,f,p),er(t,f,w)}return l&&(e.coords=e.coords.map(u=>u*e.alpha),t.coords=t.coords.map(u=>u*t.alpha)),Object.assign(u=>{u=s?s(u):u;let f=e.coords.map((b,v)=>{let m=t.coords[v];return ri(b,m,u)}),p=ri(e.alpha,t.alpha,u),w={space:i,coords:f,alpha:p};return l&&(w.coords=w.coords.map(b=>b/p)),a!==i&&(w=rt(w,a)),w},{rangeArgs:h})}function gl(e){return fr(e)==="function"&&!!e.rangeArgs}cn.interpolationSpace="lab";function p4(e){e.defineFunction("mix",Kd,{returns:"color"}),e.defineFunction("range",ci,{returns:"function<color>"}),e.defineFunction("steps",Yd,{returns:"array<color>"})}var g4=Object.freeze({__proto__:null,isRange:gl,mix:Kd,range:ci,register:p4,steps:Yd}),m4=new ke({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:qr,fromBase:e=>{let t=Math.max(...e),r=Math.min(...e),[i,a,s]=e,[l,h,u]=[null,0,(r+t)/2],f=t-r;if(f!==0){switch(h=u===0||u===1?0:(t-u)/Math.min(u,1-u),t){case i:l=(a-s)/f+(a<s?6:0);break;case a:l=(s-i)/f+2;break;case s:l=(i-a)/f+4}l=l*60}return h<0&&(l+=180,h=Math.abs(h)),l>=360&&(l-=360),[l,h*100,u*100]},toBase:e=>{let[t,r,i]=e;t=t%360,t<0&&(t+=360),r/=100,i/=100;function a(s){let l=(s+t/30)%12,h=r*Math.min(i,1-i);return i-h*Math.max(-1,Math.min(l-3,9-l,1))}return[a(0),a(8),a(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]},hsla:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"],commas:!0,alpha:!0}}}),Xd=new ke({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:qr,fromBase(e){let t=Math.max(...e),r=Math.min(...e),[i,a,s]=e,[l,h,u]=[null,0,t],f=t-r;if(f!==0){switch(t){case i:l=(a-s)/f+(a<s?6:0);break;case a:l=(s-i)/f+2;break;case s:l=(i-a)/f+4}l=l*60}return u&&(h=f/u),l>=360&&(l-=360),[l,h*100,u*100]},toBase(e){let[t,r,i]=e;t=t%360,t<0&&(t+=360),r/=100,i/=100;function a(s){let l=(s+t/60)%6;return i-i*r*Math.max(0,Math.min(l,4-l,1))}return[a(5),a(3),a(1)]},formats:{color:{id:"--hsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),v4=new ke({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Xd,fromBase(e){let[t,r,i]=e;return[t,i*(100-r)/100,100-i]},toBase(e){let[t,r,i]=e;r/=100,i/=100;let a=r+i;if(a>=1)return[t,0,r/a*100];let s=1-i;return[t,(s===0?0:1-r/s)*100,s*100]},formats:{hwb:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Jd=new Bt({id:"a98rgb-linear",cssId:"--a98-rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],fromXYZ_M:[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]]}),b4=new Bt({id:"a98rgb",cssId:"a98-rgb",name:"Adobe® 98 RGB compatible",base:Jd,toBase:e=>e.map(t=>Math.pow(Math.abs(t),563/256)*Math.sign(t)),fromBase:e=>e.map(t=>Math.pow(Math.abs(t),256/563)*Math.sign(t))}),Qd=new Bt({id:"prophoto-linear",cssId:"--prophoto-rgb-linear",name:"Linear ProPhoto",white:"D50",base:tl,toXYZ_M:[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],fromXYZ_M:[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]]}),w4=1/512,_4=16/512,y4=new Bt({id:"prophoto",cssId:"prophoto-rgb",name:"ProPhoto",base:Qd,toBase(e){return e.map(t=>{let r=t<0?-1:1,i=t*r;return i<_4?t/16:r*i**1.8})},fromBase(e){return e.map(t=>{let r=t<0?-1:1,i=t*r;return i>=w4?r*i**(1/1.8):16*t})}}),ma=1.09929682680944,e0=.018053968510807,k4=new Bt({id:"--rec2020-oetf",name:"REC.2020_Scene_Referred",base:si,referred:"scene",toBase(e){return e.map(function(t){let r=t<0?-1:1,i=t*r;return i<e0*4.5?t/4.5:r*Math.pow((i+ma-1)/ma,1/.45)})},fromBase(e){return e.map(function(t){let r=t<0?-1:1,i=t*r;return i>=e0?r*(ma*Math.pow(i,.45)-(ma-1)):4.5*t})}}),E4=new ke({id:"oklch",name:"OkLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:zn,fromBase:hn.fromBase,toBase:hn.toBase,formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}}),yo=2*Math.PI,va=[[4.076741636075958,-3.307711539258063,.2309699031821043],[-1.2684379732850315,2.609757349287688,-.341319376002657],[-.0041960761386756,-.7034186179359362,1.7076146940746117]],ba=[[[-1.8817031,-.80936501],[1.19086277,1.76576728,.59662641,.75515197,.56771245]],[[1.8144408,-1.19445267],[.73956515,-.45954404,.08285427,.12541073,-.14503204]],[[.13110758,1.81333971],[1.35733652,-.00915799,-1.1513021,-.50559606,.00692167]]],ml=Number.MAX_VALUE,ui=.206,vl=.03,di=(1+ui)/(1+vl);function Dt(e,t){let r=e.length;if(r!==t.length)throw new Error(`Vectors of size ${r} and ${t.length} are not aligned`);let i=0;return e.forEach((a,s)=>{i+=a*t[s]}),i}function hi(e){return .5*(di*e-ui+Math.sqrt((di*e-ui)*(di*e-ui)+4*vl*di*e))}function ko(e){return(e**2+ui*e)/(di*(e+vl))}function bl(e){let[t,r]=e;return[r/t,r/(1-t)]}function A4(e,t){return[.11516993+1/(7.4477897+4.1590124*t+e*(-2.19557347+1.75198401*t+e*(-2.13704948-10.02301043*t+e*(-4.24894561+5.38770819*t+4.69891013*e)))),.11239642+1/(1.6132032-.68124379*t+e*(.40370612+.90148123*t+e*(-.27087943+.6122399*t+e*(.00299215-.45399568*t-.14661872*e))))]}function wl(e,t){let r=vt(e,gr);return r[0]=r[0]**3,r[1]=r[1]**3,r[2]=r[2]**3,vt(r,t,r)}function wa(e,t,r,i){let a=M4(e,t,r,i),s=wl([1,a*e,a*t],r),l=Et(1/Math.max(...s),1/3);return[l,l*a]}function S4(e,t,r,i,a,s,l,h){let u;if(h===void 0&&(h=wa(e,t,s,l)),(r-a)*h[1]-(h[0]-a)*i<=0)u=h[1]*a/(i*h[0]+h[1]*(a-r));else{u=h[1]*(a-1)/(i*(h[0]-1)+h[1]*(a-r));let f=r-a,p=i,w=Dt(gr[0].slice(1),[e,t]),b=Dt(gr[1].slice(1),[e,t]),v=Dt(gr[2].slice(1),[e,t]),m=f+p*w,E=f+p*b,y=f+p*v,A=a*(1-u)+u*r,x=u*i,L=A+x*w,T=A+x*b,z=A+x*v,K=L**3,q=T**3,oe=z**3,W=3*m*L**2,ge=3*E*T**2,_e=3*y*z**2,P=6*m**2*L,X=6*E**2*T,S=6*y**2*z,Q=Dt(s[0],[K,q,oe])-1,Ie=Dt(s[0],[W,ge,_e]),ue=Dt(s[0],[P,X,S]),Ce=Ie/(Ie*Ie-.5*Q*ue),ie=-Q*Ce,xe=Dt(s[1],[K,q,oe])-1,U=Dt(s[1],[W,ge,_e]),G=Dt(s[1],[P,X,S]),Ae=U/(U*U-.5*xe*G),me=-xe*Ae,fe=Dt(s[2],[K,q,oe])-1,je=Dt(s[2],[W,ge,_e]),pt=Dt(s[2],[P,X,S]),Ue=je/(je*je-.5*fe*pt),Ge=-fe*Ue;ie=Ce>=0?ie:ml,me=Ae>=0?me:ml,Ge=Ue>=0?Ge:ml,u+=Math.min(ie,Math.min(me,Ge))}return u}function t0(e,t,r){let[i,a,s]=e,l=wa(a,s,t,r),h=S4(a,s,i,1,i,t,r,l),u=bl(l),f=h/Math.min(i*u[0],(1-i)*u[1]),p=A4(a,s),w=i*p[0],b=(1-i)*p[1],v=.9*f*Math.sqrt(Math.sqrt(1/(1/w**4+1/b**4)));return w=i*.4,b=(1-i)*.8,[Math.sqrt(1/(1/w**2+1/b**2)),v,h]}function M4(e,t,r,i){let a,s,l,h,u,f,p,w;Dt(i[0][0],[e,t])>1?([a,s,l,h,u]=i[0][1],[f,p,w]=r[0]):Dt(i[1][0],[e,t])>1?([a,s,l,h,u]=i[1][1],[f,p,w]=r[1]):([a,s,l,h,u]=i[2][1],[f,p,w]=r[2]);let b=a+s*e+l*t+h*e**2+u*e*t,v=Dt(gr[0].slice(1),[e,t]),m=Dt(gr[1].slice(1),[e,t]),E=Dt(gr[2].slice(1),[e,t]),y=1+b*v,A=1+b*m,x=1+b*E,L=y**3,T=A**3,z=x**3,K=3*v*y**2,q=3*m*A**2,oe=3*E*x**2,W=6*v**2*y,ge=6*m**2*A,_e=6*E**2*x,P=f*L+p*T+w*z,X=f*K+p*q+w*oe,S=f*W+p*ge+w*_e;return b=b-P*X/(X**2-.5*P*S),b}function x4(e,t,r){let[i,a,s]=e,l=ko(s),h=null,u=null;if(i=Sn(i)/360,l!==0&&l!==1&&a!==0){let f=Math.cos(yo*i),p=Math.sin(yo*i),[w,b,v]=t0([l,f,p],t,r),m=.8,E=1.25,y,A,x,L;a<m?(y=E*a,A=0,x=m*w,L=1-x/b):(y=5*(a-.8),A=b,x=.2*b**2*1.25**2/w,L=1-x/(v-b));let T=A+y*x/(1-L*y);h=T*f,u=T*p}return[l,h,u]}function I4(e,t,r){let i=1e-7,a=1e-4,s=e[0],l=0,h=hi(s),u=Math.sqrt(e[1]**2+e[2]**2),f=.5+Math.atan2(-e[2],-e[1])/yo;if(h!==0&&h!==1&&u!==0){let[w,b,v]=t0([s,e[1]/u,e[2]/u],t,r),m=.8,E=1.25,y,A,x,L;u<b?(A=m*w,x=1-A/b,L=u/(A+x*u),l=L*m):(y=b,A=.2*b**2*E**2/w,x=1-A/(v-b),L=(u-y)/(A+x*(u-y)),l=m+.2*L)}const p=Math.abs(l)<a;return p||h===0||Math.abs(1-h)<i?(f=null,p||(l=0)):f=Sn(f*360),[f,l,h]}var C4=new ke({id:"okhsl",name:"Okhsl",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,1],name:"Saturation"},l:{range:[0,1],name:"Lightness"}},base:zn,gamutSpace:"self",fromBase(e){return I4(e,va,ba)},toBase(e){return x4(e,va,ba)},formats:{color:{id:"--okhsl",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),n0=new ke({id:"oklrab",name:"Oklrab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:zn,fromBase(e){return[hi(e[0]),e[1],e[2]]},toBase(e){return[ko(e[0]),e[1],e[2]]},formats:{color:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),O4=new ke({id:"oklrch",name:"Oklrch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:n0,fromBase:hn.fromBase,toBase:hn.toBase,formats:{color:{coords:["<percentage> | <number>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});function T4(e,t,r){let[i,a,s]=e;i=Sn(i)/360;let l=ko(s),h=null,u=null;if(l!==0&&a!==0){let f=Math.cos(yo*i),p=Math.sin(yo*i),[w,b]=bl(wa(f,p,t,r)),v=.5,m=1-v/w,E=1-a*v/(v+b-b*m*a),y=a*b*v/(v+b-b*m*a);l=s*E;let A=s*y,x=ko(E),L=y*x/E,T=ko(l);A=A*T/l,l=T;let[z,K,q]=wl([x,f*L,p*L],t),oe=Et(1/Math.max(Math.max(z,K),Math.max(q,0)),1/3);l=l*oe,A=A*oe,h=A*f,u=A*p}return[l,h,u]}function L4(e,t,r){let i=1e-4,a=e[0],s=0,l=hi(a),h=Math.sqrt(e[1]**2+e[2]**2),u=.5+Math.atan2(-e[2],-e[1])/yo;if(a!==0&&a!==1&&h!==0){let f=e[1]/h,p=e[2]/h,[w,b]=bl(wa(f,p,t,r)),v=.5,m=1-v/w,E=b/(h+a*b),y=E*a,A=E*h,x=ko(y),L=A*x/y,[T,z,K]=wl([x,f*L,p*L],t),q=Et(1/Math.max(Math.max(T,z),Math.max(K,0)),1/3);a=a/q,h=h/q,h=h*hi(a)/a,a=hi(a),l=a/y,s=(v+b)*A/(b*v+b*m*A)}return Math.abs(s)<i||l===0?u=null:u=Sn(u*360),[u,s,l]}var R4=new ke({id:"okhsv",name:"Okhsv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,1],name:"Saturation"},v:{range:[0,1],name:"Value"}},base:zn,gamutSpace:"self",fromBase(e){return L4(e,va,ba)},toBase(e){return T4(e,va,ba)},formats:{color:{id:"--okhsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),r0=Ut.D65,P4=216/24389,o0=24389/27,[i0,a0]=ga({space:$t,coords:r0}),s0=new ke({id:"luv",name:"Luv",coords:{l:{refRange:[0,100],name:"Lightness"},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:r0,base:$t,fromBase(e){let t=[kt(e[0]),kt(e[1]),kt(e[2])],r=t[1],[i,a]=ga({space:$t,coords:t});if(!Number.isFinite(i)||!Number.isFinite(a))return[0,0,0];let s=r<=P4?o0*r:116*Math.cbrt(r)-16;return[s,13*s*(i-i0),13*s*(a-a0)]},toBase(e){let[t,r,i]=e;if(t===0||Ke(t))return[0,0,0];r=kt(r),i=kt(i);let a=r/(13*t)+i0,s=i/(13*t)+a0,l=t<=8?t/o0:Math.pow((t+16)/116,3);return[l*(9*a/(4*s)),l,l*((12-3*a-20*s)/(4*s))]},formats:{color:{id:"--luv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <percentage>"]}}}),_l=new ke({id:"lchuv",name:"LChuv",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,220],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:s0,fromBase:hn.fromBase,toBase:hn.toBase,formats:{color:{id:"--lchuv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}}),$4=216/24389,D4=24389/27,l0=xt[0][0],c0=xt[0][1],yl=xt[0][2],u0=xt[1][0],d0=xt[1][1],kl=xt[1][2],h0=xt[2][0],f0=xt[2][1],El=xt[2][2];function Eo(e,t,r){const i=t/(Math.sin(r)-e*Math.cos(r));return i<0?1/0:i}function _a(e){const t=Math.pow(e+16,3)/1560896,r=t>$4?t:e/D4,i=r*(284517*l0-94839*yl),a=r*(838422*yl+769860*c0+731718*l0),s=r*(632260*yl-126452*c0),l=r*(284517*u0-94839*kl),h=r*(838422*kl+769860*d0+731718*u0),u=r*(632260*kl-126452*d0),f=r*(284517*h0-94839*El),p=r*(838422*El+769860*f0+731718*h0),w=r*(632260*El-126452*f0);return{r0s:i/s,r0i:a*e/s,r1s:i/(s+126452),r1i:(a-769860)*e/(s+126452),g0s:l/u,g0i:h*e/u,g1s:l/(u+126452),g1i:(h-769860)*e/(u+126452),b0s:f/w,b0i:p*e/w,b1s:f/(w+126452),b1i:(p-769860)*e/(w+126452)}}function p0(e,t){const r=t/360*Math.PI*2,i=Eo(e.r0s,e.r0i,r),a=Eo(e.r1s,e.r1i,r),s=Eo(e.g0s,e.g0i,r),l=Eo(e.g1s,e.g1i,r),h=Eo(e.b0s,e.b0i,r),u=Eo(e.b1s,e.b1i,r);return Math.min(i,a,s,l,h,u)}var z4=new ke({id:"hsluv",name:"HSLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:_l,gamutSpace:qr,fromBase(e){let[t,r,i]=[kt(e[0]),kt(e[1]),kt(e[2])],a;return t>99.9999999?(a=0,t=100):t<1e-8?(a=0,t=0):a=r/p0(_a(t),i)*100,[i,a,t]},toBase(e){let[t,r,i]=[kt(e[0]),kt(e[1]),kt(e[2])],a;return i>99.9999999?(i=100,a=0):i<1e-8?(i=0,a=0):a=p0(_a(i),t)/100*r,[i,a,t]},formats:{color:{id:"--hsluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});xt[0][0],xt[0][1],xt[0][2],xt[1][0],xt[1][1],xt[1][2],xt[2][0],xt[2][1],xt[2][2];function Ao(e,t){return Math.abs(t)/Math.sqrt(Math.pow(e,2)+1)}function g0(e){let t=Ao(e.r0s,e.r0i),r=Ao(e.r1s,e.r1i),i=Ao(e.g0s,e.g0i),a=Ao(e.g1s,e.g1i),s=Ao(e.b0s,e.b0i),l=Ao(e.b1s,e.b1i);return Math.min(t,r,i,a,s,l)}var N4=new ke({id:"hpluv",name:"HPLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:_l,gamutSpace:"self",fromBase(e){let[t,r,i]=[kt(e[0]),kt(e[1]),kt(e[2])],a;return t>99.9999999?(a=0,t=100):t<1e-8?(a=0,t=0):a=r/g0(_a(t))*100,[i,a,t]},toBase(e){let[t,r,i]=[kt(e[0]),kt(e[1]),kt(e[2])],a;return i>99.9999999?(i=100,a=0):i<1e-8?(i=0,a=0):a=g0(_a(i))/100*r,[i,a,t]},formats:{color:{id:"--hpluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),Al=new Bt({id:"rec2100-linear",name:"Linear REC.2100",white:"D65",toBase:si.toBase,fromBase:si.fromBase}),m0=203,v0=2610/2**14,B4=2**14/2610,H4=2523/2**5,b0=2**5/2523,w0=3424/2**12,_0=2413/2**7,y0=2392/2**7,F4=new Bt({id:"rec2100pq",cssId:"rec2100-pq",name:"REC.2100-PQ",base:Al,toBase(e){return e.map(function(t){return(Math.max(t**b0-w0,0)/(_0-y0*t**b0))**B4*1e4/m0})},fromBase(e){return e.map(function(t){let r=Math.max(t*m0/1e4,0);return((w0+_0*r**v0)/(1+y0*r**v0))**H4})}}),k0=.17883277,E0=.28466892,A0=.55991073,Sl=3.7743,G4=new Bt({id:"rec2100hlg",cssId:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Al,toBase(e){return e.map(function(t){return t<=.5?t**2/3*Sl:(Math.exp((t-A0)/k0)+E0)/12*Sl})},fromBase(e){return e.map(function(t){return t/=Sl,t<=1/12?Et(3*t,.5):k0*Math.log(12*t-E0)+A0})}}),S0={};pr.add("chromatic-adaptation-start",e=>{e.options.method&&(e.M=M0(e.W1,e.W2,e.options.method))}),pr.add("chromatic-adaptation-end",e=>{e.M||(e.M=M0(e.W1,e.W2,e.options.method))});function ya({id:e,toCone_M:t,fromCone_M:r}){S0[e]=arguments[0]}function M0(e,t,r="Bradford"){let i=S0[r],[a,s,l]=ni(i.toCone_M,e),[h,u,f]=ni(i.toCone_M,t),p=ni([[h/a,0,0],[0,u/s,0],[0,0,f/l]],i.toCone_M);return ni(i.fromCone_M,p)}ya({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]}),ya({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]}),ya({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]}),ya({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]}),Object.assign(Ut,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),Ut.ACES=[.32168/.33767,1,.34065/.33767];var x0=new Bt({id:"acescg",cssId:"--acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Ut.ACES,toXYZ_M:[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],fromXYZ_M:[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]]}),ka=2**-16,Ml=-.35828683,Ea=(Math.log2(65504)+9.72)/17.52,W4=new Bt({id:"acescc",cssId:"--acescc",name:"ACEScc",coords:{r:{range:[Ml,Ea],name:"Red"},g:{range:[Ml,Ea],name:"Green"},b:{range:[Ml,Ea],name:"Blue"}},referred:"scene",base:x0,toBase(e){const t=-.3013698630136986;return e.map(function(r){return r<=t?(2**(r*17.52-9.72)-ka)*2:r<Ea?2**(r*17.52-9.72):65504})},fromBase(e){return e.map(function(t){return t<=0?(Math.log2(ka)+9.72)/17.52:t<ka?(Math.log2(ka+t*.5)+9.72)/17.52:(Math.log2(t)+9.72)/17.52})}}),I0=Object.freeze({__proto__:null,A98RGB:b4,A98RGB_Linear:Jd,ACEScc:W4,ACEScg:x0,CAM16_JMh:Ov,HCT:ii,HPLuv:N4,HSL:m4,HSLuv:z4,HSV:Xd,HWB:v4,ICTCP:sl,JzCzHz:al,Jzazbz:pd,LCH:hn,LCHuv:_l,Lab:dn,Lab_D65:fl,Luv:s0,OKLCH:E4,OKLab:zn,OKLrCH:O4,OKLrab:n0,Okhsl:C4,Okhsv:R4,P3:Bd,P3_Linear:Pd,ProPhoto:y4,ProPhoto_Linear:Qd,REC_2020:Rd,REC_2020_Linear:si,REC_2020_Scene_Referred:k4,REC_2100_HLG:G4,REC_2100_Linear:Al,REC_2100_PQ:F4,XYZ_ABS_D65:ol,XYZ_D50:tl,XYZ_D65:$t,sRGB:qr,sRGB_Linear:$d}),ut=class on{constructor(...t){let r;if(t.length===1){let l={};typeof t[0]=="object"&&Object.getPrototypeOf(t[0]).constructor===Object&&(t[0]={...t[0]}),r=Re(t[0],{parseMeta:l}),l.format&&(this.parseMeta=l)}let i,a,s;r?(i=r.space||r.spaceId,a=r.coords,s=r.alpha):[i,a,s]=t,Object.defineProperty(this,"space",{value:ke.get(i),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=Ke(s)?s:s===void 0?1:oa(0,s,1);for(let l in this.space.coords)Object.defineProperty(this,l,{get:()=>this.get(l),set:h=>this.set(l,h)})}get spaceId(){return this.space.id}clone(){return new on(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let r=Gv(this,...t);return r.color=new on(r.color),r}static get(t,...r){return mo(t,this)?t:new on(t,...r)}static try(t,r){if(mo(t,this))return t;let i=Qu(t,r);return i?new on(i):null}static defineFunction(t,r,i=r){let{instance:a=!0,returns:s}=i,l=function(...h){let u=r(...h);if(s==="color")u=on.get(u);else if(s==="function<color>"){let f=u;u=function(...p){let w=f(...p);return on.get(w)},Object.assign(u,f)}else s==="array<color>"&&(u=u.map(f=>on.get(f)));return u};t in on||(on[t]=l),a&&(on.prototype[t]=function(...h){return l(this,...h)})}static defineFunctions(t){for(let r in t)on.defineFunction(r,t[r],t[r])}static extend(t){if(t.register)t.register(on);else for(let r in t)on.defineFunction(r,t[r])}};ut.defineFunctions({get:un,getAll:oi,set:er,setAll:el,to:rt,equals:Uv,inGamut:Vr,toGamut:mr,distance:ad,deltas:Wv,toString:ai}),Object.assign(ut,{util:Z5,hooks:pr,WHITES:Ut,Space:ke,spaces:ke.registry,parse:Xu,defaults:cn});for(let e of Object.keys(I0))ke.register(I0[e]);for(let e in ke.registry)xl(e,ke.registry[e]);pr.add("colorspace-init-end",e=>{xl(e.id,e),e.aliases?.forEach(t=>{xl(t,e)})});function xl(e,t){let r=e.replace(/-/g,"_");Object.defineProperty(ut.prototype,r,{get(){let i=this.getAll(e);if(typeof Proxy>"u")return i;let a=new Proxy(i,{has:(s,l)=>{try{return ke.resolveCoord([t,l]),!0}catch{}return Reflect.has(s,l)},get:(s,l,h)=>{if(l&&typeof l!="symbol"&&!(l in s)&&l in a){let{index:u}=ke.resolveCoord([t,l]);if(u>=0)return s[u]}return Reflect.get(s,l,h)},set:(s,l,h,u)=>{if(l&&typeof l!="symbol"&&!(l in s)||Number(l)>=0){let{index:f}=ke.resolveCoord([t,l]);if(f>=0)return s[f]=h,this.setAll(e,s),!0}return Reflect.set(s,l,h,u)}});return a},set(i){this.setAll(e,i)},configurable:!0,enumerable:!0})}ut.extend(wo),ut.extend({deltaE:li}),Object.assign(ut,{deltaEMethods:wo}),ut.extend(f4),ut.extend({contrast:u4}),ut.extend(h4),ut.extend(Zv),ut.extend(g4),ut.extend(pa);var Il={navy:"#001f3f",darkblue:"#1e4f7a",blue:"#1A2F4B",darkgreen:"#062925",green:"#1A3636",grass:"#1B3C53",teal:"#044A42",darkpurple:"#1B0044",purple:"#363062",grape:"#31326F",maroon:"#44000D"},At={dark:{50:"#C1C2C5",100:"#A6A7AB",200:"#909296",300:"#5c5f66",400:"#373A40",500:"#2C2E33",600:"#25262b",700:"#1A1B1E",800:"#141517",900:"#101113",950:"#000000"},slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function U4(e){try{ut.get(e)}catch{return!0}return ut.contrast(e,"white","Lstar")>ut.contrast(e,"black","Lstar")}function So(e){return U4(e)?"#FFFFFF":"#000000"}var V4=Se.default.fromPairs(Se.default.entries(Ws).map(([e,t])=>[e,Nu(t)])),{IconAdjustmentsHorizontal:RA,IconApiBook:PA,IconArrowsHorizontal:$A,IconArrowsLeftRight:DA,IconArrowAutofitDown:zA,IconArrowAutofitHeight:Z4,IconArrowAutofitLeft:NA,IconArrowAutofitRight:BA,IconArrowAutofitWidth:q4,IconArrowBigLeft:HA,IconArrowBigRight:FA,IconArrowsMove:GA,IconArrowsMoveVertical:WA,IconArrowsVertical:UA,IconBook:VA,IconBookOff:ZA,IconBookArrowLeft:qA,IconBookArrowRight:jA,IconBooksReturn:KA,IconBookUpload:YA,IconBookmark:j4,IconBookmarkOff:K4,IconBookmarks:XA,IconBoxAlignTop:JA,IconCategory:Y4,IconCheck:Aa,IconChevronLeft:QA,IconChevronRight:eS,IconAlertCircle:tS,IconCircleCheck:nS,IconCircleX:rS,IconHelp:oS,IconInfoCircle:iS,IconComic1:aS,IconComic1Flat:sS,IconComic2:lS,IconComic2Flat:cS,IconComic3:uS,IconComic3Flat:dS,IconDeviceFloppy:hS,IconDotsVertical:fS,IconEReader1:pS,IconEReader1Flat:gS,IconEReader2:mS,IconEReader2Flat:vS,IconExternalLink:bS,IconEye:X4,IconEyeOff:J4,IconFileDownload:wS,IconFilePercent:_S,IconFolderOpen:yS,IconHandClick:kS,IconKeyboard:ES,IconLayoutDashboard:AS,IconLayoutBottombar:SS,IconLayoutBottombarInactive:MS,IconLayoutSidebar:xS,IconLayoutSidebarInactive:IS,IconLayoutSidebarRight:CS,IconLayoutSidebarRightInactive:OS,IconListNumbers:TS,IconLoader2:LS,IconLocationCog:RS,IconMenu2:PS,IconMenuDeep:$S,IconMessage:DS,IconMoon:zS,IconPage:NS,IconPageFlat:BS,IconPalette:HS,IconPencil:FS,IconPencilCog:GS,IconPhoto:WS,IconPhotoOff:US,IconPin:VS,IconPlayerPause:ZS,IconPlayerPlay:qS,IconRefresh:Q4,IconSettings:jS,IconSettingsOff:KS,IconSpacingHorizontal:e3,IconSpacingVertical:YS,IconSun:XS,IconTrash:JS,IconWorldCog:QS,IconX:Cl,IconZoom:eM,IconZoomCancel:t3,IconZoomIn:n3,IconZoomInArea:tM,IconZoomOut:r3,IconZoomOutArea:nM,IconZoomPan:rM}=V4,br=class extends Qe{constructor(...t){super(...t),this.color="#000000",this.size=26,this.radius="50%",this.contrastColor="#FFFFFF",this.checked=!1}static{this.styles=Lt`
    :host {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    .swatch {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: var(--radius);
      background-color: var(--color);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s ease;
      box-sizing: border-box;
      border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
      color: var(--contrast-color);
    }

    :host(:hover) .swatch {
      transform: scale(1.1);
    }

    ::slotted(*) {
      width: 60%;
      height: 60%;
    }

    .check-icon {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      color: var(--contrast-color);
      opacity: 0;
      transition: opacity 0.15s ease;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 16px;
      line-height: 1;
    }

    .check-icon svg {
      width: 60%;
      height: 60%;
    }

    :host([checked]) .check-icon {
      opacity: 1;
    }
  `}willUpdate(t){t.has("color")&&(this.contrastColor=So(this.color)),t.has("selected")&&(this.checked=this.color.toLowerCase()===this.selected?.toLowerCase())}handleClick(){this.dispatchEvent(new CustomEvent("input",{detail:{value:this.color},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.color},bubbles:!0,composed:!0}))}render(){const t={width:`${this.size}px`,height:`${this.size}px`},r={"--radius":typeof this.radius=="number"?`${this.radius}px`:this.radius,"--color":this.color,"--contrast-color":this.contrastColor};return le`
      <div style=${Vn(t)}>
        <div
          class="swatch"
          style=${Vn(r)}
          @click=${this.handleClick}
        >
          <slot></slot>
          <span class="check-icon"> ${Aa} </span>
        </div>
      </div>
    `}};F([ne({type:String})],br.prototype,"color",void 0),F([ne({type:String})],br.prototype,"selected",void 0),F([ne({type:Number})],br.prototype,"size",void 0),F([ne({type:String})],br.prototype,"radius",void 0),F([ne({state:!0})],br.prototype,"contrastColor",void 0),F([ne({type:Boolean,reflect:!0})],br.prototype,"checked",void 0),br=F([lt("color-swatch")],br);function o3(e){const[t,r,i]=e.to("oklch").coords.map(u=>u??0),a=[.95,.9,.8,.7,.6,.5,.4,.3,.2,.1,.05],s=a.map(u=>new ut("oklch",[u,r,i]).toString({format:"hex"}));let l=-1,h=1/0;for(let u=0;u<a.length;u++){const f=Math.abs(a[u]-t);f<h&&(h=f,l=u)}return l!==-1&&(s[l]=e.toString({format:"hex"})),s.map(u=>u.toUpperCase())}function i3(e){const t=e.to("hsl"),r=[.97,.9,.8,.7,.6,.5,.4,.3,.2,.1,.05],i=[];for(const a of r){const s=t.clone();s.coords[2]=a*100;const l=s.coords[1]??0;a>.8?s.coords[1]=l*.4:a>.6?s.coords[1]=l*.8:a<.3&&(s.coords[1]=Math.min(100,l*1.1)),i.push(s.toString({format:"hex"}).toUpperCase())}return i}function a3(e){const t=[],r=[95,90,80,70,60,50,40,30,20,10,5],i=e.to("hsl");for(const a of r){const s=i.clone();s.coords[2]=a,t.push(s.toString({format:"hex"}).toUpperCase())}return t}function s3(e){const t=new Array(11).fill(""),r=e.to("hsl"),i={lightest:{lightness:95,rotate:-10,saturate:-30},darkest:{lightness:10,rotate:10,saturate:10}},a=5,s=5,l=(i.lightest.lightness-50)/a,h=(50-i.darkest.lightness)/s,u=i.lightest.rotate/a,f=i.darkest.rotate/s,p=i.lightest.saturate/a,w=i.darkest.saturate/s;for(let b=1;b<=a;b++){const v=a-b,m=r.clone();m.coords[2]=(m.coords[2]??0)+l*(b-.5),m.coords[0]=(m.coords[0]??0)+u*b,m.coords[1]=(m.coords[1]??0)+p*b,t[v]=m.toString({format:"hex"})}t[5]=r.clone().toString({format:"hex"});for(let b=1;b<=s;b++){const v=a+b,m=r.clone();m.coords[2]=(m.coords[2]??0)-h*(b-.5),m.coords[0]=(m.coords[0]??0)+f*b,m.coords[1]=(m.coords[1]??0)+w*b,t[v]=m.toString({format:"hex"})}return t}function l3(e){const[t,r,i]=e.to("hsl").coords.map(s=>s??0),a=new Array(11);a[5]=e.toString({format:"hex"});for(let s=0;s<5;s++){const l=(5-s)/6,h=i+(100-i)*l;a[s]=new ut("hsl",[t,r-r*l,h]).toString({format:"hex"})}for(let s=0;s<5;s++){const l=(s+1)/6,h=i-i*l,u=r+(100-r)*l;a[s+6]=new ut("hsl",[t,u,h]).toString({format:"hex"})}return a}function C0(e,t="steps"){let r;try{r=ut.get(e)}catch{r=ut.get(Il.navy)}switch(t){case"saturation":return i3(r);case"lightness":return a3(r);case"mantine":return l3(r);case"chakra":return s3(r);default:return o3(r)}}var wr=class extends Qe{constructor(...t){super(...t),this.baseColor="#228be6",this.mode="steps",this.orientation="horizontal",this.value="",this.gradient=[]}static{this.styles=Lt`
    :host {
      display: flex;
      gap: var(--palette-gap, 4px);
      align-items: center;
      justify-content: center;
    }

    .swatch {
      width: var(--swatch-size, 22px);
      height: var(--swatch-size, 22px);
      border-radius: var(--swatch-radius, 4px);
      border: 1px solid var(--theme-border-color, #ccc);
      transition: transform 0.15s ease;
      cursor: pointer;
      background-clip: content-box;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    .swatch-inner {
      width: 100%;
      height: 100%;
      border-radius: var(--swatch-radius, 4px);
      background-color: var(--color);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .checkmark {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      transition: opacity 0.15s ease;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      display: flex;
      color: var(--text-color);
      font-weight: bold;
      font-size: 16px;
      line-height: 1;
    }

    .checkmark svg {
      width: 60%;
      height: 60%;
    }
    .swatch[checked] .checkmark {
      opacity: 1;
    }
    .swatch:hover {
      transform: scale(1.1);
    }
  `}willUpdate(t){(t.has("baseColor")||t.has("mode"))&&(this.gradient=C0(this.baseColor,this.mode)??[])}handleSwatchClick(t){this.value=t,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return le`
      ${this.gradient.map(t=>le`
          <div
            class="swatch"
            ?checked=${this.selected&&t.toLowerCase()===this.selected.toLowerCase()}
            title=${t}
            @click=${()=>this.handleSwatchClick(t)}
          >
            <div
              class="swatch-inner"
              style="--color: ${t}; --text-color: ${So(t)}"
            >
              <span class="checkmark">${Aa}</span>
            </div>
          </div>
        `)}
    `}};F([ne({type:String})],wr.prototype,"baseColor",void 0),F([ne({type:String})],wr.prototype,"mode",void 0),F([ne({type:String,reflect:!0})],wr.prototype,"orientation",void 0),F([ne({type:String})],wr.prototype,"selected",void 0),F([ne({type:String,reflect:!0})],wr.prototype,"value",void 0),F([an()],wr.prototype,"gradient",void 0),wr=F([lt("color-palette")],wr);var Sa=class extends Qe{constructor(...t){super(...t),this.value=""}static{this.styles=Lt`
    :host {
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 100%;
    }
    .SwatchGroup {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: 8px;
    }
    .ColorName {
      font-size: 12px;
      color: var(--theme-text-color);
      text-transform: capitalize;
      min-width: 64px;
    }
    .Swatches {
      display: grid;
      grid-template-columns: repeat(9, 16px);
      gap: 8px;
      align-items: center;
    }
    .ThemeRadio {
      color: var(--mov-color-on-loud);
      height: 20px;
      width: 20px;
      border-radius: 3px;
      margin: 0;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    }
    .ThemeRadio:hover,
    .ThemeRadio:focus-visible {
      outline: 2px solid var(--theme-border-color);
      outline-offset: 1px;
    }
    .ThemeRadio.selected {
      box-shadow:
        0 0 0 2px var(--theme-body-background),
        0 0 0 3px var(--theme-text-color);
    }
    .ThemeRadio svg {
      width: 10px;
      height: 10px;
    }
    .ThemeRadio.selected .icon-tabler-check {
      display: inline;
    }
    .ThemeRadio:not(.selected) .icon-tabler-check {
      display: none;
    }
  `}handleColorClick(t){this.value=t.currentTarget.title,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){const t=Se.default.keys(At).filter(i=>!["dark","gray","zinc","neutral","stone"].includes(i)),r=[200,300,400,500,600,700,800,900,950];return t.map(i=>le` <div class="SwatchGroup">
        <span class="ColorName">${i}</span>
        <div class="Swatches">${r.map(a=>{const s=At[i][a],l=So(s);return le`
          <span
            title="${s}"
            class="${St({ThemeRadio:!0,selected:this.selected?.toLowerCase()===s.toLowerCase()})}"
            style="background-color: ${s}; color: ${l}"
            @click=${this.handleColorClick}
          >
            ${Aa}
          </span>
        `})}</div>
      </div>`)}};F([ne({type:String,reflect:!0})],Sa.prototype,"value",void 0),F([ne({type:String})],Sa.prototype,"selected",void 0),Sa=F([lt("color-panel")],Sa);var zt=class extends Qe{constructor(...t){super(...t),this.value="#228be6",this.defaultValue="#228be6",this.label="",this.hint="",this.name="",this.disabled=!1,this.size="medium",this.swatches=null,this.mode="popup",this.opened=!1,this.popupDirection="left",this.sourceSpace="srgb",this.hsv={h:0,s:0,v:0},this.saturationThumbPosition={x:0,y:0},this.hueThumbPosition=0,this.isDraggingSaturation=!1,this.isDraggingHue=!1}static{this.styles=Lt`
    :host {
      display: inline-block;
      position: relative;
    }

    .picker-container {
      width: 250px;
      box-sizing: border-box;
    }

    .picker-container.popup {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      z-index: 10;
      border: 1px solid var(--theme-border-color);
      border-radius: 8px;
      background: var(--theme-background-color);
      padding: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .picker-container.popup.right {
      left: auto;
      right: 0;
    }

    .saturation-panel {
      position: relative;
      width: 100%;
      height: 180px;
      border-radius: 8px;
      cursor: crosshair;
      -webkit-tap-highlight-color: transparent;
    }

    .saturation-overlay-1,
    .saturation-overlay-2 {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: inherit;
    }

    .saturation-overlay-1 {
      background: linear-gradient(to right, #fff, transparent);
    }

    .saturation-overlay-2 {
      background: linear-gradient(to top, #000, transparent);
    }

    .saturation-thumb {
      position: absolute;
      width: 16px;
      height: 16px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      transform: translate(-8px, -8px);
      pointer-events: none;
    }

    .sliders {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 12px;
    }

    .hue-slider {
      position: relative;
      width: 100%;
      height: 10px;
      border-radius: 5px;
      background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
      cursor: pointer;
    }

    .hue-thumb {
      position: absolute;
      top: 50%;
      width: 16px;
      height: 16px;
      border: 2px solid #fff;
      border-radius: 50%;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      transform: translate(-8px, -50%);
      pointer-events: none;
    }

    .swatches {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 8px;
      margin-top: 12px;
    }

    .swatch {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 4px;
      border: 1px solid #dee2e6;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      transition: transform 0.1s;
    }

    .swatch:hover {
      transform: scale(1.1);
    }

    .popup-trigger {
      width: 96px;
      height: 32px;
      border-radius: 4px;
      border: 1px solid var(--theme-background-color);
      padding: 4px;
      box-sizing: border-box;
      cursor: pointer;
      background-color: var(--theme-hightlight-color);
    }

    .preview {
      width: 100%;
      height: 100%;
      border-radius: 2px;
    }
  `}connectedCallback(){super.connectedCallback(),this.updateStateFromValue(this.value),window.addEventListener("mousemove",this.handleDrag.bind(this)),window.addEventListener("mouseup",this.handleDragEnd.bind(this)),window.addEventListener("touchmove",this.handleDrag.bind(this),{passive:!1}),window.addEventListener("touchend",this.handleDragEnd.bind(this))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("mousemove",this.handleDrag.bind(this)),window.removeEventListener("mouseup",this.handleDragEnd.bind(this)),window.removeEventListener("touchmove",this.handleDrag.bind(this)),window.removeEventListener("touchend",this.handleDragEnd.bind(this)),window.removeEventListener("click",this.handleClickOutside.bind(this))}updated(t){t.has("mode")&&(this.mode==="popup"?window.addEventListener("click",this.handleClickOutside.bind(this)):window.removeEventListener("click",this.handleClickOutside.bind(this)))}willUpdate(t){t.has("value")&&this.updateStateFromValue(this.value),t.has("mode")&&this.mode==="inline"&&(this.opened=!1)}handleClickOutside(t){this.opened&&!t.composedPath().includes(this)&&this.hide()}show(){this.disabled||this.opened||(this.opened=!0,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150))}hide(){this.opened&&(this.opened=!1,this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},150))}togglePopup(){if(this.mode==="popup")if(this.opened)this.hide();else{const t=this.getBoundingClientRect(),r=250;let i;const a=this.closest("mov-drawer");if(a?.shadowRoot){const s=a.shadowRoot.querySelector("dialog");s?i=s.getBoundingClientRect():i={left:0,right:window.innerWidth}}else i={left:0,right:window.innerWidth};t.left+r>i.right?t.right-r>i.left?this.popupDirection="right":this.popupDirection="left":this.popupDirection="left",this.show()}}isSameColor(t,r){return!t||!r?!1:ut.deltaE(t,r,{method:"2000"})<1}renderCheckIcon(t){return le`
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width="16"
        height="16"
        viewBox="0 0 24 24"
        fill="none"
        stroke-width="3"
        stroke-linecap="round"
        stroke-linejoin="round"
        style=${Vn({stroke:So(t)})}
      >
        <path d="M5 12l5 5l10 -10" />
      </svg>
    `}renderPickerBody(){const t={backgroundColor:`hsl(${this.hsv.h}, 100%, 50%)`},r={h:this.hsv.h,s:this.hsv.s*100,v:this.hsv.v*100},i={top:`${this.saturationThumbPosition.y}%`,left:`${this.saturationThumbPosition.x}%`,backgroundColor:new ut("hsv",[r.h,r.s,r.v]).toString({format:"hex"})},a={left:`${this.hueThumbPosition}%`};return le`
      <div
        class="saturation-panel"
        style=${Vn(t)}
        @mousedown=${this.handleSaturationDragStart.bind(this)}
        @touchstart=${this.handleSaturationDragStart.bind(this)}
      >
        <div class="saturation-overlay-1"></div>
        <div class="saturation-overlay-2"></div>
        <div
          class="saturation-thumb"
          style=${Vn(i)}
        ></div>
      </div>

      <div class="sliders">
        <div
          class="hue-slider"
          @mousedown=${this.handleHueDragStart.bind(this)}
          @touchstart=${this.handleHueDragStart.bind(this)}
        >
          <div
            class="hue-thumb"
            style=${Vn(a)}
          ></div>
        </div>
      </div>

      <div class="swatches">
        ${(this.swatches||Se.default.entries(At).filter(([s])=>!["dark","gray","zinc","neutral","stone"].includes(s)).map(([,s])=>s[600])).map(s=>le`
            <button
              class="swatch"
              title=${s}
              style=${Vn({backgroundColor:s})}
              @click=${()=>this.selectSwatch(s)}
            >
              ${this.isSameColor(this.value,s)?this.renderCheckIcon(s):""}
            </button>
          `)}
      </div>
    `}render(){const t={"picker-container":!0,popup:this.mode==="popup",right:this.popupDirection==="right"},r=this.renderPickerBody();return this.mode==="popup"?le`
        <div
          class="popup-trigger"
          @click=${this.togglePopup}
        >
          <div
            class="preview"
            style=${Vn({backgroundColor:this.value})}
          ></div>
        </div>
        ${this.opened?le`<div class=${St(t)}>${r}</div>`:""}
      `:le`<div class=${St(t)}>${r}</div>`}parseColor(t){try{return ut.get(t)}catch(r){return console.error(`[mov-color-picker] Invalid color value: "${t}"`,r),null}}colorToHsv(t){let[r,i,a]=t.to("srgb").to("hsv").coords.map(s=>s??0);return Number.isNaN(r)&&(r=this.hsv.h||0,i=0),i=Math.max(0,Math.min(100,i))/100,a=Math.max(0,Math.min(100,a))/100,{h:r,s:i,v:a}}updateStateFromValue(t){const r=this.parseColor(t);if(!r)return;this.sourceSpace=r.space.id;const i=this.colorToHsv(r);(i.h!==this.hsv.h||i.s!==this.hsv.s||i.v!==this.hsv.v)&&(this.hsv=i,this.updateThumbPositions())}dispatchInput(){this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}dispatchChange(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}updateValueFromHsv(){const t={h:this.hsv.h,s:this.hsv.s*100,v:this.hsv.v*100},r=new ut("hsv",[t.h,t.s,t.v]);let i;try{!this.sourceSpace||["srgb","hsl","hsv"].includes(this.sourceSpace)?i=r.to("srgb").toString({format:"hex"}):i=r.to(this.sourceSpace).toString({precision:5})}catch(a){console.error(`[mov-color-picker] Could not convert color to space ${this.sourceSpace}`,a),i=r.to("srgb").toString({format:"hex"})}this.value!==i&&(this.value=i,this.dispatchInput())}updateThumbPositions(){this.saturationThumbPosition={x:this.hsv.s*100,y:(1-this.hsv.v)*100},this.hueThumbPosition=this.hsv.h/360*100}handleSaturationDragStart(t){t.preventDefault(),this.isDraggingSaturation=!0,this.saturationPanel=this.shadowRoot?.querySelector(".saturation-panel"),this.updateSaturation(t)}handleHueDragStart(t){t.preventDefault(),this.isDraggingHue=!0,this.hueSlider=this.shadowRoot?.querySelector(".hue-slider"),this.updateHue(t)}handleDrag(t){this.isDraggingSaturation&&this.updateSaturation(t),this.isDraggingHue&&this.updateHue(t)}handleDragEnd(){(this.isDraggingSaturation||this.isDraggingHue)&&this.dispatchChange(),this.isDraggingSaturation=!1,this.isDraggingHue=!1}getEventPosition(t){return"touches"in t?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:t.clientX,clientY:t.clientY}}updateSaturation(t){if(!this.saturationPanel)return;const{clientX:r,clientY:i}=this.getEventPosition(t),a=this.saturationPanel.getBoundingClientRect(),s=Math.max(0,Math.min(r-a.left,a.width)),l=Math.max(0,Math.min(i-a.top,a.height));this.hsv.s=s/a.width,this.hsv.v=1-l/a.height,this.updateValueFromHsv(),this.updateThumbPositions()}updateHue(t){if(!this.hueSlider)return;const{clientX:r}=this.getEventPosition(t),i=this.hueSlider.getBoundingClientRect(),a=Math.max(0,Math.min(r-i.left,i.width));this.hsv.h=a/i.width*360,this.updateValueFromHsv(),this.updateThumbPositions()}selectSwatch(t){this.value=t,this.dispatchInput(),this.dispatchChange()}};F([ne({type:String})],zt.prototype,"value",void 0),F([ne({type:String,attribute:"default-value"})],zt.prototype,"defaultValue",void 0),F([ne({type:String})],zt.prototype,"label",void 0),F([ne({type:String})],zt.prototype,"hint",void 0),F([ne({type:String})],zt.prototype,"name",void 0),F([ne({type:Boolean,reflect:!0})],zt.prototype,"disabled",void 0),F([ne({type:String,reflect:!0})],zt.prototype,"size",void 0),F([ne({type:Array})],zt.prototype,"swatches",void 0),F([ne({type:String})],zt.prototype,"mode",void 0),F([an()],zt.prototype,"opened",void 0),F([an()],zt.prototype,"popupDirection",void 0),F([an()],zt.prototype,"sourceSpace",void 0),F([an()],zt.prototype,"hsv",void 0),F([an()],zt.prototype,"saturationThumbPosition",void 0),F([an()],zt.prototype,"hueThumbPosition",void 0),zt=F([lt("mov-color-picker")],zt);var O0=(e,t,r)=>{for(const i of t)if(i[0]===e)return(0,i[1])();return r?.()},_r=class extends Qe{constructor(...t){super(...t),this.value="",this.labelPosition="side",this.size="medium",this._options=[],this.resizeObserver=new ResizeObserver(()=>this.updateThumbPosition())}static{this.styles=Lt`
    :host {
      width: 100%;
      display: block;
    }
    .segmented-control {
      position: relative;
      display: flex;
      gap: 0.25rem;
      border-radius: 0.5rem;
      background-color: var(--theme-border-color);
      padding: 0.25rem;
      flex-wrap: wrap;
    }
    .thumb {
      position: absolute;
      top: 0;
      left: 0;
      border-radius: 0.5rem;
      background-color: var(--mov-color-fill-loud);
      transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1;
    }
    .option {
      flex: 1;
      text-align: center;
      z-index: 2; /* Ensure button is above thumb */
      position: relative; /* Needed to correctly position the button */
    }

    .button {
      /* The button now acts as the interactive label */
      width: 100%;
      display: flex;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      border-radius: 0.5rem;
      border: none;
      /* Default colors when not selected */
      color: var(--theme-text-color);
      background-color: transparent;
      transition: color 0.15s ease-in-out;
      flex-direction: row;
      gap: 0.25rem;
      padding: 0.5rem 0.75rem; /* Default padding (medium) */
      font-size: 1rem; /* Default font-size (medium) */
      box-sizing: border-box; /* Include padding/border in element's total width/height */
    }

    /* Selected State Styles - Driven by the 'selected' class */
    .button.selected {
      color: var(--mov-color-on-loud);
      font-weight: 600;
    }

    /* Size Variations */
    .button.small {
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
    }
    .button.large {
      padding: 0.75rem 1rem;
      font-size: 1.125rem;
    }

    /* Label Position Variations */
    .button.bottom {
      flex-direction: column;
    }
    .button.bottom.small {
      padding: 0.25rem;
    }
    .button.bottom.medium {
      padding: 0.5rem;
    }
    .button.bottom.large {
      padding: 0.75rem;
    }
  `}connectedCallback(){super.connectedCallback(),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}handleClick(t,r){this.value=r,this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0}))}handleSlotChange(){this._options=this._slotEl.assignedNodes({flatten:!0}).filter(t=>t.nodeName==="SEGMENTED-CONTROL-OPTION").map(t=>({value:t.getAttribute("value")??"",label:t.getAttribute("label")??"",icon:t.getAttribute("icon")??void 0}))}firstUpdated(){this.handleSlotChange(),this.updateComplete.then(()=>this.updateThumbPosition())}updated(t){super.updated(t),(t.has("value")||t.has("_options")||t.has("labelPosition")||t.has("size"))&&Promise.resolve().then(()=>this.updateThumbPosition())}updateThumbPosition(){if(!this.thumb)return;const t=this.shadowRoot?.querySelector(".button.selected");if(t){const{offsetWidth:r,offsetHeight:i}=t,a=t.getBoundingClientRect(),s=this.shadowRoot?.querySelector(".segmented-control")?.getBoundingClientRect(),l=a.left-(s?.left??0),h=a.top-(s?.top??0);this.thumb.style.transform=`translate(${l}px, ${h}px)`,this.thumb.style.width=`${r}px`,this.thumb.style.height=`${i}px`}else this.thumb.style.width="0px",this.thumb.style.height="0px"}render(){return le`
      <div class="segmented-control">
        <div class="thumb"></div>
        ${this._options.map(t=>le`
            <div
              class="option"
              title="${this.labelPosition==="tooltip"?t.label:Ne}"
            >
              <button
                class="${St({button:!0,selected:this.value===t.value,bottom:this.labelPosition==="bottom",small:this.size==="small",medium:this.size==="medium",large:this.size==="large"})}"
                @click=${r=>this.handleClick(r,t.value)}
                role="radio"
                aria-checked="${this.value===t.value}"
              >
                ${t.icon?le`<mov-icon
                      name="${t.icon}"
                      .size=${O0(this.size,[["small",()=>"16px"],["medium",()=>"24px"],["large",()=>"36px"]],()=>this.size)}
                    ></mov-icon>`:Ne}
                ${this.labelPosition!=="tooltip"?le`<span>${t.label}</span>`:Ne}
              </button>
            </div>
          `)}
      </div>
      <div style="display: none;">
        <slot @slotchange=${this.handleSlotChange}></slot>
      </div>
    `}};F([ne({type:String,reflect:!0})],_r.prototype,"value",void 0),F([ne({type:String})],_r.prototype,"labelPosition",void 0),F([ne({type:String})],_r.prototype,"size",void 0),F([an()],_r.prototype,"_options",void 0),F([Fr(".thumb")],_r.prototype,"thumb",void 0),F([Fr("slot")],_r.prototype,"_slotEl",void 0),_r=F([lt("segmented-control")],_r);var fi=class extends Qe{constructor(...t){super(...t),this.value="",this.label=""}createRenderRoot(){return this}};F([ne({type:String,reflect:!0})],fi.prototype,"value",void 0),F([ne({type:String,reflect:!0})],fi.prototype,"label",void 0),F([ne({type:String,reflect:!0})],fi.prototype,"icon",void 0),fi=F([lt("segmented-control-option")],fi);var fn=class extends Qe{constructor(...t){super(...t),this.name="",this.value="on",this.checked=!1,this.defaultChecked=!1,this.disabled=!1,this.required=!1,this.size="medium",this.hint="",this.design="graphical",this.textOn="ON",this.textOff="OFF"}static{this.styles=Lt`
    :host {
      --switch-width: 3rem;
      --switch-height: 1.5rem;
      --knob-size: 1.25rem;
      display: inline-block;
    }

    :host([size='small']) {
      --switch-width: 2.5rem;
      --switch-height: 1.25rem;
      --knob-size: 1rem;
    }

    :host([size='large']) {
      --switch-width: 4rem;
      --switch-height: 2rem;
      --knob-size: 1.75rem;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    input {
      display: none;
    }

    .switch {
      display: inline-block;
      position: relative;
      width: var(--switch-width);
      height: var(--switch-height);
      border-radius: var(--switch-height);
      background-color: #d7062a;
      border: 1px solid #d7062a;
      transition:
        background-color 0.3s,
        border-color 0.3s;
      cursor: pointer;
    }

    input:checked + .switch {
      background-color: #50ac5d;
      border-color: #50ac5d;
    }

    .switch.textual {
      background-color: var(--mov-color-on-loud);
      border-color: var(--mov-color-on-loud);
    }

    input:checked + .switch.textual {
      background-color: var(--mov-color-fill-loud);
      border-color: var(--mov-color-fill-loud);
    }

    input:disabled + .switch {
      background-color: #eee;
      border-color: #ccc;
      cursor: not-allowed;
    }

    .knob {
      position: absolute;
      top: 1px;
      left: 1px;
      width: var(--knob-size);
      height: var(--knob-size);
      background-color: #fff;
      border-radius: 50%;
      box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
      transition: left 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      font-weight: bold;
      font-family: Arial;
      color: #333;
    }

    input:checked + .switch .knob {
      left: calc(100% - var(--knob-size) - 1px);
    }

    .switch:focus {
      outline: 2px solid #0a6ed1;
      outline-offset: 2px;
    }

    .icon {
      width: 1rem;
      height: 1rem;
      fill: none;
    }

    .text {
      font-size: 0.75rem;
      font-weight: bold;
      color: #333;
    }

    .hint {
      font-size: 0.8rem;
      opacity: 0.7;
      margin-top: 0.25rem;
    }
  `}handleChange(t){this.disabled||(this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}render(){const t=this.design.toLowerCase();let r;return t==="graphical"?r=le`${this.checked?Aa:Cl}`:r=le`<span class="text">${this.checked?this.textOn:this.textOff}</span>`,le`
      <div class="base">
        <label class="label">
          <slot></slot>
          <input
            type="checkbox"
            .name="${this.name}"
            .value="${this.value}"
            .checked=${this.checked}
            ?disabled=${this.disabled}
            ?required=${this.required}
            @change=${this.handleChange}
          />
          <div
            class="${St({switch:!0,[t]:!0})}"
          >
            <div class="knob">${r}</div>
          </div>
        </label>
        <div class="hint">
          <slot name="hint">${this.hint}</slot>
        </div>
      </div>
    `}};F([ne({type:String})],fn.prototype,"name",void 0),F([ne({type:String})],fn.prototype,"value",void 0),F([ne({type:Boolean,reflect:!0})],fn.prototype,"checked",void 0),F([ne({type:Boolean,reflect:!0,attribute:"default-checked"})],fn.prototype,"defaultChecked",void 0),F([ne({type:Boolean,reflect:!0})],fn.prototype,"disabled",void 0),F([ne({type:Boolean,reflect:!0})],fn.prototype,"required",void 0),F([ne({type:String,reflect:!0})],fn.prototype,"size",void 0),F([ne({type:String})],fn.prototype,"hint",void 0),F([ne({type:String,reflect:!0})],fn.prototype,"design",void 0),F([ne({type:String})],fn.prototype,"textOn",void 0),F([ne({type:String})],fn.prototype,"textOff",void 0),fn=F([lt("mov-switch")],fn);var c3=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"})),u3=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=l;var t=c3();function r(h){return t.relativeFirstCharacters.indexOf(h[0])>-1}function i(h){return h.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(u,f){return String.fromCharCode(f)})}function a(h){return URL.canParse(h)}function s(h){try{return decodeURIComponent(h)}catch{return h}}function l(h){if(!h)return t.BLANK_URL;var u,f=s(h.trim());do f=i(f).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),f=s(f),u=f.match(t.ctrlCharactersRegex)||f.match(t.htmlEntitiesRegex)||f.match(t.htmlCtrlEntityRegex)||f.match(t.whitespaceEscapeCharsRegex);while(u&&u.length>0);var p=f;if(!p)return t.BLANK_URL;if(r(p))return p;var w=p.trimStart(),b=w.match(t.urlSchemeRegex);if(!b)return p;var v=b[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(v))return t.BLANK_URL;var m=w.replace(/\\/g,"/");if(v==="mailto:"||v.includes("://"))return m;if(v==="http:"||v==="https:"){if(!a(m))return t.BLANK_URL;var E=new URL(m);return E.protocol=E.protocol.toLowerCase(),E.hostname=E.hostname.toLowerCase(),E.toString()}return m}})),d3=yn(((e,t)=>{(function(r,i){typeof define=="function"&&define.amd?define([],i):typeof e<"u"?i():(i(),r.FileSaver={})})(e,function(){"use strict";function r(f,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function i(f,p,w){var b=new XMLHttpRequest;b.open("GET",f),b.responseType="blob",b.onload=function(){u(b.response,p,w)},b.onerror=function(){console.error("could not download file")},b.send()}function a(f){var p=new XMLHttpRequest;p.open("HEAD",f,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function s(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(p)}}var l=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,h=l.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=l.saveAs||(typeof window!="object"||window!==l?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(f,p,w){var b=l.URL||l.webkitURL,v=document.createElement("a");p=p||f.name||"download",v.download=p,v.rel="noopener",typeof f=="string"?(v.href=f,v.origin===location.origin?s(v):a(v.href)?i(f,p,w):s(v,v.target="_blank")):(v.href=b.createObjectURL(f),setTimeout(function(){b.revokeObjectURL(v.href)},4e4),setTimeout(function(){s(v)},0))}:"msSaveOrOpenBlob"in navigator?function(f,p,w){if(p=p||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(r(f,w),p);else if(a(f))i(f,p,w);else{var b=document.createElement("a");b.href=f,b.target="_blank",setTimeout(function(){s(b)})}}:function(f,p,w,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof f=="string")return i(f,p,w);var v=f.type==="application/octet-stream",m=/constructor/i.test(l.HTMLElement)||l.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||v&&m||h)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var L=y.result;L=E?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=L:location=L,b=null},y.readAsDataURL(f)}else{var A=l.URL||l.webkitURL,x=A.createObjectURL(f);b?b.location=x:location.href=x,b=null,setTimeout(function(){A.revokeObjectURL(x)},4e4)}});l.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})})),h3=yn(((e,t)=>{(function(r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(i,a,s){function l(f,p){if(!a[f]){if(!i[f]){var w=typeof require=="function"&&require;if(!p&&w)return w(f,!0);if(h)return h(f,!0);var b=new Error("Cannot find module '"+f+"'");throw b.code="MODULE_NOT_FOUND",b}var v=a[f]={exports:{}};i[f][0].call(v.exports,function(m){var E=i[f][1][m];return l(E||m)},v,v.exports,r,i,a,s)}return a[f].exports}for(var h=typeof require=="function"&&require,u=0;u<s.length;u++)l(s[u]);return l})({1:[function(r,i,a){"use strict";var s=r("./utils"),l=r("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(u){for(var f,p,w,b,v,m,E,y=[],A=0,x=u.length,L=x,T=s.getTypeOf(u)!=="string";A<u.length;)L=x-A,w=T?(f=u[A++],p=A<x?u[A++]:0,A<x?u[A++]:0):(f=u.charCodeAt(A++),p=A<x?u.charCodeAt(A++):0,A<x?u.charCodeAt(A++):0),b=f>>2,v=(3&f)<<4|p>>4,m=1<L?(15&p)<<2|w>>6:64,E=2<L?63&w:64,y.push(h.charAt(b)+h.charAt(v)+h.charAt(m)+h.charAt(E));return y.join("")},a.decode=function(u){var f,p,w,b,v,m,E=0,y=0,A="data:";if(u.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var x,L=3*(u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(u.charAt(u.length-1)===h.charAt(64)&&L--,u.charAt(u.length-2)===h.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(x=l.uint8array?new Uint8Array(0|L):new Array(0|L);E<u.length;)f=h.indexOf(u.charAt(E++))<<2|(b=h.indexOf(u.charAt(E++)))>>4,p=(15&b)<<4|(v=h.indexOf(u.charAt(E++)))>>2,w=(3&v)<<6|(m=h.indexOf(u.charAt(E++))),x[y++]=f,v!==64&&(x[y++]=p),m!==64&&(x[y++]=w);return x}},{"./support":30,"./utils":32}],2:[function(r,i,a){"use strict";var s=r("./external"),l=r("./stream/DataWorker"),h=r("./stream/Crc32Probe"),u=r("./stream/DataLengthProbe");function f(p,w,b,v,m){this.compressedSize=p,this.uncompressedSize=w,this.crc32=b,this.compression=v,this.compressedContent=m}f.prototype={getContentWorker:function(){var p=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),w=this;return p.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new l(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(p,w,b){return p.pipe(new h).pipe(new u("uncompressedSize")).pipe(w.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",w)},i.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,a){"use strict";var s=r("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(l){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},a.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,a){"use strict";var s=r("./utils"),l=(function(){for(var h,u=[],f=0;f<256;f++){h=f;for(var p=0;p<8;p++)h=1&h?3988292384^h>>>1:h>>>1;u[f]=h}return u})();i.exports=function(h,u){return h!==void 0&&h.length?s.getTypeOf(h)!=="string"?(function(f,p,w,b){var v=l,m=b+w;f^=-1;for(var E=b;E<m;E++)f=f>>>8^v[255&(f^p[E])];return-1^f})(0|u,h,h.length,0):(function(f,p,w,b){var v=l,m=b+w;f^=-1;for(var E=b;E<m;E++)f=f>>>8^v[255&(f^p.charCodeAt(E))];return-1^f})(0|u,h,h.length,0):0}},{"./utils":32}],5:[function(r,i,a){"use strict";a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(r,i,a){"use strict";var s=null;s=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:s}},{lie:37}],7:[function(r,i,a){"use strict";var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),h=r("./utils"),u=r("./stream/GenericWorker"),f=s?"uint8array":"array";function p(w,b){u.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=b,this.meta={}}a.magic="\b\0",h.inherits(p,u),p.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(f,w.data),!1)},p.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(b){w.push({data:b,meta:w.meta})}},a.compressWorker=function(w){return new p("Deflate",w)},a.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,a){"use strict";function s(v,m){var E,y="";for(E=0;E<m;E++)y+=String.fromCharCode(255&v),v>>>=8;return y}function l(v,m,E,y,A,x){var L,T,z=v.file,K=v.compression,q=x!==f.utf8encode,oe=h.transformTo("string",x(z.name)),W=h.transformTo("string",f.utf8encode(z.name)),ge=z.comment,_e=h.transformTo("string",x(ge)),P=h.transformTo("string",f.utf8encode(ge)),X=W.length!==z.name.length,S=P.length!==ge.length,Q="",Ie="",ue="",Ce=z.dir,ie=z.date,xe={crc32:0,compressedSize:0,uncompressedSize:0};m&&!E||(xe.crc32=v.crc32,xe.compressedSize=v.compressedSize,xe.uncompressedSize=v.uncompressedSize);var U=0;m&&(U|=8),q||!X&&!S||(U|=2048);var G=0,Ae=0;Ce&&(G|=16),A==="UNIX"?(Ae=798,G|=(function(fe,je){var pt=fe;return fe||(pt=je?16893:33204),(65535&pt)<<16})(z.unixPermissions,Ce)):(Ae=20,G|=(function(fe){return 63&(fe||0)})(z.dosPermissions)),L=ie.getUTCHours(),L<<=6,L|=ie.getUTCMinutes(),L<<=5,L|=ie.getUTCSeconds()/2,T=ie.getUTCFullYear()-1980,T<<=4,T|=ie.getUTCMonth()+1,T<<=5,T|=ie.getUTCDate(),X&&(Ie=s(1,1)+s(p(oe),4)+W,Q+="up"+s(Ie.length,2)+Ie),S&&(ue=s(1,1)+s(p(_e),4)+P,Q+="uc"+s(ue.length,2)+ue);var me="";return me+=`
\0`,me+=s(U,2),me+=K.magic,me+=s(L,2),me+=s(T,2),me+=s(xe.crc32,4),me+=s(xe.compressedSize,4),me+=s(xe.uncompressedSize,4),me+=s(oe.length,2),me+=s(Q.length,2),{fileRecord:w.LOCAL_FILE_HEADER+me+oe+Q,dirRecord:w.CENTRAL_FILE_HEADER+s(Ae,2)+me+s(_e.length,2)+"\0\0\0\0"+s(G,4)+s(y,4)+oe+Q+_e}}var h=r("../utils"),u=r("../stream/GenericWorker"),f=r("../utf8"),p=r("../crc32"),w=r("../signature");function b(v,m,E,y){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=E,this.encodeFileName=y,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(b,u),b.prototype.push=function(v){var m=v.meta.percent||0,E=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,u.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:E?(m+100*(E-y-1))/E:100}}))},b.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var m=this.streamFiles&&!v.file.dir;if(m){var E=l(v,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(v){this.accumulate=!1;var m=this.streamFiles&&!v.file.dir,E=l(v,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),m)this.push({data:(function(y){return w.DATA_DESCRIPTOR+s(y.crc32,4)+s(y.compressedSize,4)+s(y.uncompressedSize,4)})(v),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var v=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var E=this.bytesWritten-v,y=(function(A,x,L,T,z){var K=h.transformTo("string",z(T));return w.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(A,2)+s(A,2)+s(x,4)+s(L,4)+s(K.length,2)+K})(this.dirRecords.length,E,v,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(v){this._sources.push(v);var m=this;return v.on("data",function(E){m.processChunk(E)}),v.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),v.on("error",function(E){m.error(E)}),this},b.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(v){var m=this._sources;if(!u.prototype.error.call(this,v))return!1;for(var E=0;E<m.length;E++)try{m[E].error(v)}catch{}return!0},b.prototype.lock=function(){u.prototype.lock.call(this);for(var v=this._sources,m=0;m<v.length;m++)v[m].lock()},i.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,a){"use strict";var s=r("../compressions"),l=r("./ZipFileWorker");a.generateWorker=function(h,u,f){var p=new l(u.streamFiles,f,u.platform,u.encodeFileName),w=0;try{h.forEach(function(b,v){w++;var m=(function(x,L){var T=x||L,z=s[T];if(!z)throw new Error(T+" is not a valid compression method !");return z})(v.options.compression,u.compression),E=v.options.compressionOptions||u.compressionOptions||{},y=v.dir,A=v.date;v._compressWorker(m,E).withStreamInfo("file",{name:b,dir:y,date:A,comment:v.comment||"",unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions}).pipe(p)}),p.entriesCount=w}catch(b){p.error(b)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,a){"use strict";function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var h in this)typeof this[h]!="function"&&(l[h]=this[h]);return l}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.9.1",s.loadAsync=function(l,h){return new s().loadAsync(l,h)},s.external=r("./external"),i.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,a){"use strict";var s=r("./utils"),l=r("./external"),h=r("./utf8"),u=r("./zipEntries"),f=r("./stream/Crc32Probe"),p=r("./nodejsUtils");function w(b){return new l.Promise(function(v,m){var E=b.decompressed.getContentWorker().pipe(new f);E.on("error",function(y){m(y)}).on("end",function(){E.streamInfo.crc32!==b.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):v()}).resume()})}i.exports=function(b,v){var m=this;return v=s.extend(v||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),p.isNode&&p.isStream(b)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",b,!0,v.optimizedBinaryString,v.base64).then(function(E){var y=new u(v);return y.load(E),y}).then(function(E){var y=[l.Promise.resolve(E)],A=E.files;if(v.checkCRC32)for(var x=0;x<A.length;x++)y.push(w(A[x]));return l.Promise.all(y)}).then(function(E){for(var y=E.shift(),A=y.files,x=0;x<A.length;x++){var L=A[x],T=L.fileNameStr,z=s.resolve(L.fileNameStr);m.file(z,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:v.createFolders}),L.dir||(m.file(z).unsafeOriginalName=T)}return y.zipComment.length&&(m.comment=y.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,a){"use strict";var s=r("../utils"),l=r("../stream/GenericWorker");function h(u,f){l.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(f)}s.inherits(h,l),h.prototype._bindStream=function(u){var f=this;(this._stream=u).pause(),u.on("data",function(p){f.push({data:p,meta:{percent:0}})}).on("error",function(p){f.isPaused?this.generatedError=p:f.error(p)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},h.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,a){"use strict";var s=r("readable-stream").Readable;function l(h,u,f){s.call(this,u),this._helper=h;var p=this;h.on("data",function(w,b){p.push(w)||p._helper.pause(),f&&f(b)}).on("error",function(w){p.emit("error",w)}).on("end",function(){p.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},i.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,i,a){"use strict";i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,i,a){"use strict";function s(T,z,K){var q,oe=h.getTypeOf(z),W=h.extend(K||{},p);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(T=A(T)),W.createFolders&&(q=y(T))&&x.call(this,q,!0);var ge=oe==="string"&&W.binary===!1&&W.base64===!1;K&&K.binary!==void 0||(W.binary=!ge),(z instanceof w&&z.uncompressedSize===0||W.dir||!z||z.length===0)&&(W.base64=!1,W.binary=!0,z="",W.compression="STORE",oe="string");var _e=null;_e=z instanceof w||z instanceof u?z:m.isNode&&m.isStream(z)?new E(T,z):h.prepareContent(T,z,W.binary,W.optimizedBinaryString,W.base64);var P=new b(T,_e,W);this.files[T]=P}var l=r("./utf8"),h=r("./utils"),u=r("./stream/GenericWorker"),f=r("./stream/StreamHelper"),p=r("./defaults"),w=r("./compressedObject"),b=r("./zipObject"),v=r("./generate"),m=r("./nodejsUtils"),E=r("./nodejs/NodejsStreamInputAdapter"),y=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var z=T.lastIndexOf("/");return 0<z?T.substring(0,z):""},A=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},x=function(T,z){return z=z!==void 0?z:p.createFolders,T=A(T),this.files[T]||s.call(this,T,null,{dir:!0,createFolders:z}),this.files[T]};function L(T){return Object.prototype.toString.call(T)==="[object RegExp]"}i.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var z,K,q;for(z in this.files)q=this.files[z],(K=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&T(K,q)},filter:function(T){var z=[];return this.forEach(function(K,q){T(K,q)&&z.push(q)}),z},file:function(T,z,K){if(arguments.length!==1)return T=this.root+T,s.call(this,T,z,K),this;if(L(T)){var q=T;return this.filter(function(W,ge){return!ge.dir&&q.test(W)})}var oe=this.files[this.root+T];return oe&&!oe.dir?oe:null},folder:function(T){if(!T)return this;if(L(T))return this.filter(function(oe,W){return W.dir&&T.test(oe)});var z=this.root+T,K=x.call(this,z),q=this.clone();return q.root=K.name,q},remove:function(T){T=this.root+T;var z=this.files[T];if(z||(T.slice(-1)!=="/"&&(T+="/"),z=this.files[T]),z&&!z.dir)delete this.files[T];else for(var K=this.filter(function(oe,W){return W.name.slice(0,T.length)===T}),q=0;q<K.length;q++)delete this.files[K[q].name];return this},generate:function(T){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var z,K={};try{if((K=h.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=K.type.toLowerCase(),K.compression=K.compression.toUpperCase(),K.type==="binarystring"&&(K.type="string"),!K.type)throw new Error("No output type specified.");h.checkSupport(K.type),K.platform!=="darwin"&&K.platform!=="freebsd"&&K.platform!=="linux"&&K.platform!=="sunos"||(K.platform="UNIX"),K.platform==="win32"&&(K.platform="DOS");var q=K.comment||this.comment||"";z=v.generateWorker(this,K,q)}catch(oe){(z=new u("error")).error(oe)}return new f(z,K.type||"string",K.mimeType)},generateAsync:function(T,z){return this.generateInternalStream(T).accumulate(z)},generateNodeStream:function(T,z){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(z)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,i,a){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,a){"use strict";var s=r("./DataReader");function l(h){s.call(this,h);for(var u=0;u<this.data.length;u++)h[u]=255&h[u]}r("../utils").inherits(l,s),l.prototype.byteAt=function(h){return this.data[this.zero+h]},l.prototype.lastIndexOfSignature=function(h){for(var u=h.charCodeAt(0),f=h.charCodeAt(1),p=h.charCodeAt(2),w=h.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===u&&this.data[b+1]===f&&this.data[b+2]===p&&this.data[b+3]===w)return b-this.zero;return-1},l.prototype.readAndCheckSignature=function(h){var u=h.charCodeAt(0),f=h.charCodeAt(1),p=h.charCodeAt(2),w=h.charCodeAt(3),b=this.readData(4);return u===b[0]&&f===b[1]&&p===b[2]&&w===b[3]},l.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,i,a){"use strict";var s=r("../utils");function l(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(h){},readInt:function(h){var u,f=0;for(this.checkOffset(h),u=this.index+h-1;u>=this.index;u--)f=(f<<8)+this.byteAt(u);return this.index+=h,f},readString:function(h){return s.transformTo("string",this.readData(h))},readData:function(h){},lastIndexOfSignature:function(h){},readAndCheckSignature:function(h){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},i.exports=l},{"../utils":32}],19:[function(r,i,a){"use strict";var s=r("./Uint8ArrayReader");function l(h){s.call(this,h)}r("../utils").inherits(l,s),l.prototype.readData=function(h){this.checkOffset(h);var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,a){"use strict";var s=r("./DataReader");function l(h){s.call(this,h)}r("../utils").inherits(l,s),l.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},l.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},l.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},l.prototype.readData=function(h){this.checkOffset(h);var u=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,i,a){"use strict";var s=r("./ArrayReader");function l(h){s.call(this,h)}r("../utils").inherits(l,s),l.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,u},i.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,a){"use strict";var s=r("../utils"),l=r("../support"),h=r("./ArrayReader"),u=r("./StringReader"),f=r("./NodeBufferReader"),p=r("./Uint8ArrayReader");i.exports=function(w){var b=s.getTypeOf(w);return s.checkSupport(b),b!=="string"||l.uint8array?b==="nodebuffer"?new f(w):l.uint8array?new p(s.transformTo("uint8array",w)):new h(s.transformTo("array",w)):new u(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,i,a){"use strict";a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,a){"use strict";var s=r("./GenericWorker"),l=r("../utils");function h(u){s.call(this,"ConvertWorker to "+u),this.destType=u}l.inherits(h,s),h.prototype.processChunk=function(u){this.push({data:l.transformTo(this.destType,u.data),meta:u.meta})},i.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,a){"use strict";var s=r("./GenericWorker"),l=r("../crc32");function h(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(h,s),h.prototype.processChunk=function(u){this.streamInfo.crc32=l(u.data,this.streamInfo.crc32||0),this.push(u)},i.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,a){"use strict";var s=r("../utils"),l=r("./GenericWorker");function h(u){l.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(h,l),h.prototype.processChunk=function(u){if(u){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+u.data.length}l.prototype.processChunk.call(this,u)},i.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,a){"use strict";var s=r("../utils"),l=r("./GenericWorker");function h(u){l.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(p){f.dataIsReady=!0,f.data=p,f.max=p&&p.length||0,f.type=s.getTypeOf(p),f.isPaused||f._tickAndRepeat()},function(p){f.error(p)})}s.inherits(h,l),h.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,f);break;case"uint8array":u=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":u=this.data.slice(this.index,f)}return this.index=f,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,a){"use strict";function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,h){return this._listeners[l].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,h){if(this._listeners[l])for(var u=0;u<this._listeners[l].length;u++)this._listeners[l][u].call(this,h)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var h=this;return l.on("data",function(u){h.processChunk(u)}),l.on("end",function(){h.end()}),l.on("error",function(u){h.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,h){return this.extraStreamInfo[l]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},i.exports=s},{}],29:[function(r,i,a){"use strict";var s=r("../utils"),l=r("./ConvertWorker"),h=r("./GenericWorker"),u=r("../base64"),f=r("../support"),p=r("../external"),w=null;if(f.nodestream)try{w=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(m,E){return new p.Promise(function(y,A){var x=[],L=m._internalType,T=m._outputType,z=m._mimeType;m.on("data",function(K,q){x.push(K),E&&E(q)}).on("error",function(K){x=[],A(K)}).on("end",function(){try{y((function(K,q,oe){switch(K){case"blob":return s.newBlob(s.transformTo("arraybuffer",q),oe);case"base64":return u.encode(q);default:return s.transformTo(K,q)}})(T,(function(K,q){var oe,W=0,ge=null,_e=0;for(oe=0;oe<q.length;oe++)_e+=q[oe].length;switch(K){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(ge=new Uint8Array(_e),oe=0;oe<q.length;oe++)ge.set(q[oe],W),W+=q[oe].length;return ge;case"nodebuffer":return Buffer.concat(q);default:throw new Error("concat : unsupported type '"+K+"'")}})(L,x),z))}catch(K){A(K)}x=[]}).resume()})}function v(m,E,y){var A=E;switch(E){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=E,this._mimeType=y,s.checkSupport(A),this._worker=m.pipe(new l(A)),m.lock()}catch(x){this._worker=new h("error"),this._worker.error(x)}}v.prototype={accumulate:function(m){return b(this,m)},on:function(m,E){var y=this;return m==="data"?this._worker.on(m,function(A){E.call(y,A.data,A.meta)}):this._worker.on(m,function(){s.delay(E,arguments,y)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new w(this,{objectMode:this._outputType!=="nodebuffer"},m)}},i.exports=v},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,a){"use strict";if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var s=new ArrayBuffer(0);try{a.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),a.blob=l.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!r("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,a){"use strict";for(var s=r("./utils"),l=r("./support"),h=r("./nodejsUtils"),u=r("./stream/GenericWorker"),f=new Array(256),p=0;p<256;p++)f[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;f[254]=f[254]=1;function w(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}a.utf8encode=function(v){return l.nodebuffer?h.newBufferFrom(v,"utf-8"):(function(m){var E,y,A,x,L,T=m.length,z=0;for(x=0;x<T;x++)(64512&(y=m.charCodeAt(x)))==55296&&x+1<T&&(64512&(A=m.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(A-56320),x++),z+=y<128?1:y<2048?2:y<65536?3:4;for(E=l.uint8array?new Uint8Array(z):new Array(z),x=L=0;L<z;x++)(64512&(y=m.charCodeAt(x)))==55296&&x+1<T&&(64512&(A=m.charCodeAt(x+1)))==56320&&(y=65536+(y-55296<<10)+(A-56320),x++),y<128?E[L++]=y:(y<2048?E[L++]=192|y>>>6:(y<65536?E[L++]=224|y>>>12:(E[L++]=240|y>>>18,E[L++]=128|y>>>12&63),E[L++]=128|y>>>6&63),E[L++]=128|63&y);return E})(v)},a.utf8decode=function(v){return l.nodebuffer?s.transformTo("nodebuffer",v).toString("utf-8"):(function(m){var E,y,A,x,L=m.length,T=new Array(2*L);for(E=y=0;E<L;)if((A=m[E++])<128)T[y++]=A;else if(4<(x=f[A]))T[y++]=65533,E+=x-1;else{for(A&=x===2?31:x===3?15:7;1<x&&E<L;)A=A<<6|63&m[E++],x--;1<x?T[y++]=65533:A<65536?T[y++]=A:(A-=65536,T[y++]=55296|A>>10&1023,T[y++]=56320|1023&A)}return T.length!==y&&(T.subarray?T=T.subarray(0,y):T.length=y),s.applyFromCharCode(T)})(v=s.transformTo(l.uint8array?"uint8array":"array",v))},s.inherits(w,u),w.prototype.processChunk=function(v){var m=s.transformTo(l.uint8array?"uint8array":"array",v.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var E=m;(m=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),m.set(E,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var y=(function(x,L){var T;for((L=L||x.length)>x.length&&(L=x.length),T=L-1;0<=T&&(192&x[T])==128;)T--;return T<0||T===0?L:T+f[x[T]]>L?T:L})(m),A=m;y!==m.length&&(l.uint8array?(A=m.subarray(0,y),this.leftOver=m.subarray(y,m.length)):(A=m.slice(0,y),this.leftOver=m.slice(y,m.length))),this.push({data:a.utf8decode(A),meta:v.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=w,s.inherits(b,u),b.prototype.processChunk=function(v){this.push({data:a.utf8encode(v.data),meta:v.meta})},a.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,a){"use strict";var s=r("./support"),l=r("./base64"),h=r("./nodejsUtils"),u=r("set-immediate-shim"),f=r("./external");function p(y){return y}function w(y,A){for(var x=0;x<y.length;++x)A[x]=255&y.charCodeAt(x);return A}a.newBlob=function(y,A){a.checkSupport("blob");try{return new Blob([y],{type:A})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(y),x.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var b={stringifyByChunk:function(y,A,x){var L=[],T=0,z=y.length;if(z<=x)return String.fromCharCode.apply(null,y);for(;T<z;)A==="array"||A==="nodebuffer"?L.push(String.fromCharCode.apply(null,y.slice(T,Math.min(T+x,z)))):L.push(String.fromCharCode.apply(null,y.subarray(T,Math.min(T+x,z)))),T+=x;return L.join("")},stringifyByChar:function(y){for(var A="",x=0;x<y.length;x++)A+=String.fromCharCode(y[x]);return A},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}})()}};function v(y){var A=65536,x=a.getTypeOf(y),L=!0;if(x==="uint8array"?L=b.applyCanBeUsed.uint8array:x==="nodebuffer"&&(L=b.applyCanBeUsed.nodebuffer),L)for(;1<A;)try{return b.stringifyByChunk(y,x,A)}catch{A=Math.floor(A/2)}return b.stringifyByChar(y)}function m(y,A){for(var x=0;x<y.length;x++)A[x]=y[x];return A}a.applyFromCharCode=v;var E={};E.string={string:p,array:function(y){return w(y,new Array(y.length))},arraybuffer:function(y){return E.string.uint8array(y).buffer},uint8array:function(y){return w(y,new Uint8Array(y.length))},nodebuffer:function(y){return w(y,h.allocBuffer(y.length))}},E.array={string:v,array:p,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h.newBufferFrom(y)}},E.arraybuffer={string:function(y){return v(new Uint8Array(y))},array:function(y){return m(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:p,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h.newBufferFrom(new Uint8Array(y))}},E.uint8array={string:v,array:function(y){return m(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:p,nodebuffer:function(y){return h.newBufferFrom(y)}},E.nodebuffer={string:v,array:function(y){return m(y,new Array(y.length))},arraybuffer:function(y){return E.nodebuffer.uint8array(y).buffer},uint8array:function(y){return m(y,new Uint8Array(y.length))},nodebuffer:p},a.transformTo=function(y,A){return A=A||"",y?(a.checkSupport(y),E[a.getTypeOf(A)][y](A)):A},a.resolve=function(y){for(var A=y.split("/"),x=[],L=0;L<A.length;L++){var T=A[L];T==="."||T===""&&L!==0&&L!==A.length-1||(T===".."?x.pop():x.push(T))}return x.join("/")},a.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":s.nodebuffer&&h.isBuffer(y)?"nodebuffer":s.uint8array&&y instanceof Uint8Array?"uint8array":s.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(y){if(!s[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(y){var A,x,L="";for(x=0;x<(y||"").length;x++)L+="\\x"+((A=y.charCodeAt(x))<16?"0":"")+A.toString(16).toUpperCase();return L},a.delay=function(y,A,x){u(function(){y.apply(x||null,A||[])})},a.inherits=function(y,A){function x(){}x.prototype=A.prototype,y.prototype=new x},a.extend=function(){var y,A,x={};for(y=0;y<arguments.length;y++)for(A in arguments[y])arguments[y].hasOwnProperty(A)&&x[A]===void 0&&(x[A]=arguments[y][A]);return x},a.prepareContent=function(y,A,x,L,T){return f.Promise.resolve(A).then(function(z){return s.blob&&(z instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(z))!==-1)&&typeof FileReader<"u"?new f.Promise(function(K,q){var oe=new FileReader;oe.onload=function(W){K(W.target.result)},oe.onerror=function(W){q(W.target.error)},oe.readAsArrayBuffer(z)}):z}).then(function(z){var K=a.getTypeOf(z);return K?(K==="arraybuffer"?z=a.transformTo("uint8array",z):K==="string"&&(T?z=l.decode(z):x&&L!==!0&&(z=(function(q){return w(q,s.uint8array?new Uint8Array(q.length):new Array(q.length))})(z))),z):f.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(r,i,a){"use strict";var s=r("./reader/readerFor"),l=r("./utils"),h=r("./signature"),u=r("./zipEntry"),f=(r("./utf8"),r("./support"));function p(w){this.files=[],this.loadOptions=w}p.prototype={checkSignature:function(w){if(!this.reader.readAndCheckSignature(w)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(b)+", expected "+l.pretty(w)+")")}},isSignature:function(w,b){var v=this.reader.index;this.reader.setIndex(w);var m=this.reader.readString(4)===b;return this.reader.setIndex(v),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var w=this.reader.readData(this.zipCommentLength),b=f.uint8array?"uint8array":"array",v=l.transformTo(b,w);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var w,b,v,m=this.zip64EndOfCentralSize-44;0<m;)w=this.reader.readInt(2),b=this.reader.readInt(4),v=this.reader.readData(b),this.zip64ExtensibleData[w]={id:w,length:b,value:v}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var w,b;for(w=0;w<this.files.length;w++)b=this.files[w],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var w;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(w=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(w);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var w=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(w<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(w);var b=w;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(w=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(w),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var v=this.centralDirOffset+this.centralDirSize;this.zip64&&(v+=20,v+=12+this.zip64EndOfCentralSize);var m=b-v;if(0<m)this.isSignature(b,h.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(w){this.reader=s(w)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(r,i,a){"use strict";var s=r("./reader/readerFor"),l=r("./utils"),h=r("./compressedObject"),u=r("./crc32"),f=r("./utf8"),p=r("./compressions"),w=r("./support");function b(v,m){this.options=v,this.loadOptions=m}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(v){var m,E;if(v.skip(22),this.fileNameLength=v.readInt(2),E=v.readInt(2),this.fileName=v.readData(this.fileNameLength),v.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=(function(y){for(var A in p)if(p.hasOwnProperty(A)&&p[A].magic===y)return p[A];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,m,v.readData(this.compressedSize))},readCentralPart:function(v){this.versionMadeBy=v.readInt(2),v.skip(2),this.bitFlag=v.readInt(2),this.compressionMethod=v.readString(2),this.date=v.readDate(),this.crc32=v.readInt(4),this.compressedSize=v.readInt(4),this.uncompressedSize=v.readInt(4);var m=v.readInt(2);if(this.extraFieldsLength=v.readInt(2),this.fileCommentLength=v.readInt(2),this.diskNumberStart=v.readInt(2),this.internalFileAttributes=v.readInt(2),this.externalFileAttributes=v.readInt(4),this.localHeaderOffset=v.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");v.skip(m),this.readExtraFields(v),this.parseZIP64ExtraField(v),this.fileComment=v.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var v=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),v==0&&(this.dosPermissions=63&this.externalFileAttributes),v==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(v){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(v){var m,E,y,A=v.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});v.index+4<A;)m=v.readInt(2),E=v.readInt(2),y=v.readData(E),this.extraFields[m]={id:m,length:E,value:y};v.setIndex(A)},handleUTF8:function(){var v=w.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var E=l.transformTo(v,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var A=l.transformTo(v,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var v=this.extraFields[28789];if(v){var m=s(v.value);return m.readInt(1)!==1||u(this.fileName)!==m.readInt(4)?null:f.utf8decode(m.readData(v.length-5))}return null},findExtraFieldUnicodeComment:function(){var v=this.extraFields[25461];if(v){var m=s(v.value);return m.readInt(1)!==1||u(this.fileComment)!==m.readInt(4)?null:f.utf8decode(m.readData(v.length-5))}return null}},i.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,i,a){"use strict";function s(m,E,y){this.name=m,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=E,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var l=r("./stream/StreamHelper"),h=r("./stream/DataWorker"),u=r("./utf8"),f=r("./compressedObject"),p=r("./stream/GenericWorker");s.prototype={internalStream:function(m){var E=null,y="string";try{if(!m)throw new Error("No output type specified.");var A=(y=m.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),E=this._decompressWorker();var x=!this._dataBinary;x&&!A&&(E=E.pipe(new u.Utf8EncodeWorker)),!x&&A&&(E=E.pipe(new u.Utf8DecodeWorker))}catch(L){(E=new p("error")).error(L)}return new l(E,y,"")},async:function(m,E){return this.internalStream(m).accumulate(E)},nodeStream:function(m,E){return this.internalStream(m||"nodebuffer").toNodejsStream(E)},_compressWorker:function(m,E){if(this._data instanceof f&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new u.Utf8EncodeWorker)),f.createWorkerFrom(y,m,E)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof p?this._data:new h(this._data)}};for(var w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v<w.length;v++)s.prototype[w[v]]=b;i.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,a){(function(s){"use strict";var l,h,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var f=0,p=new u(m),w=s.document.createTextNode("");p.observe(w,{characterData:!0}),l=function(){w.data=f=++f%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var E=s.document.createElement("script");E.onreadystatechange=function(){m(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},s.document.documentElement.appendChild(E)}:function(){setTimeout(m,0)};else{var b=new s.MessageChannel;b.port1.onmessage=m,l=function(){b.port2.postMessage(0)}}var v=[];function m(){var E,y;h=!0;for(var A=v.length;A;){for(y=v,v=[],E=-1;++E<A;)y[E]();A=v.length}h=!1}i.exports=function(E){v.push(E)!==1||h||l()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,a){"use strict";var s=r("immediate");function l(){}var h={},u=["REJECTED"],f=["FULFILLED"],p=["PENDING"];function w(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,A!==l&&E(this,A)}function b(A,x,L){this.promise=A,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function v(A,x,L){s(function(){var T;try{T=x(L)}catch(z){return h.reject(A,z)}T===A?h.reject(A,new TypeError("Cannot resolve promise with itself")):h.resolve(A,T)})}function m(A){var x=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof x=="function")return function(){x.apply(A,arguments)}}function E(A,x){var L=!1;function T(q){L||(L=!0,h.reject(A,q))}function z(q){L||(L=!0,h.resolve(A,q))}var K=y(function(){x(z,T)});K.status==="error"&&T(K.value)}function y(A,x){var L={};try{L.value=A(x),L.status="success"}catch(T){L.status="error",L.value=T}return L}(i.exports=w).prototype.finally=function(A){if(typeof A!="function")return this;var x=this.constructor;return this.then(function(L){return x.resolve(A()).then(function(){return L})},function(L){return x.resolve(A()).then(function(){throw L})})},w.prototype.catch=function(A){return this.then(null,A)},w.prototype.then=function(A,x){if(typeof A!="function"&&this.state===f||typeof x!="function"&&this.state===u)return this;var L=new this.constructor(l);return this.state!==p?v(L,this.state===f?A:x,this.outcome):this.queue.push(new b(L,A,x)),L},b.prototype.callFulfilled=function(A){h.resolve(this.promise,A)},b.prototype.otherCallFulfilled=function(A){v(this.promise,this.onFulfilled,A)},b.prototype.callRejected=function(A){h.reject(this.promise,A)},b.prototype.otherCallRejected=function(A){v(this.promise,this.onRejected,A)},h.resolve=function(A,x){var L=y(m,x);if(L.status==="error")return h.reject(A,L.value);var T=L.value;if(T)E(A,T);else{A.state=f,A.outcome=x;for(var z=-1,K=A.queue.length;++z<K;)A.queue[z].callFulfilled(x)}return A},h.reject=function(A,x){A.state=u,A.outcome=x;for(var L=-1,T=A.queue.length;++L<T;)A.queue[L].callRejected(x);return A},w.resolve=function(A){return A instanceof this?A:h.resolve(new this(l),A)},w.reject=function(A){var x=new this(l);return h.reject(x,A)},w.all=function(A){var x=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,T=!1;if(!L)return this.resolve([]);for(var z=new Array(L),K=0,q=-1,oe=new this(l);++q<L;)W(A[q],q);return oe;function W(ge,_e){x.resolve(ge).then(function(P){z[_e]=P,++K!==L||T||(T=!0,h.resolve(oe,z))},function(P){T||(T=!0,h.reject(oe,P))})}},w.race=function(A){var x=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,T=!1;if(!L)return this.resolve([]);for(var z=-1,K=new this(l);++z<L;)q=A[z],x.resolve(q).then(function(oe){T||(T=!0,h.resolve(K,oe))},function(oe){T||(T=!0,h.reject(K,oe))});var q;return K}},{immediate:36}],38:[function(r,i,a){"use strict";var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,a){"use strict";var s=r("./zlib/deflate"),l=r("./utils/common"),h=r("./utils/strings"),u=r("./zlib/messages"),f=r("./zlib/zstream"),p=Object.prototype.toString,w=0,b=-1,v=0,m=8;function E(A){if(!(this instanceof E))return new E(A);this.options=l.assign({level:b,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},A||{});var x=this.options;x.raw&&0<x.windowBits?x.windowBits=-x.windowBits:x.gzip&&0<x.windowBits&&x.windowBits<16&&(x.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var L=s.deflateInit2(this.strm,x.level,x.method,x.windowBits,x.memLevel,x.strategy);if(L!==w)throw new Error(u[L]);if(x.header&&s.deflateSetHeader(this.strm,x.header),x.dictionary){var T;if(T=typeof x.dictionary=="string"?h.string2buf(x.dictionary):p.call(x.dictionary)==="[object ArrayBuffer]"?new Uint8Array(x.dictionary):x.dictionary,(L=s.deflateSetDictionary(this.strm,T))!==w)throw new Error(u[L]);this._dict_set=!0}}function y(A,x){var L=new E(x);if(L.push(A,!0),L.err)throw L.msg||u[L.err];return L.result}E.prototype.push=function(A,x){var L,T,z=this.strm,K=this.options.chunkSize;if(this.ended)return!1;T=x===~~x?x:x===!0?4:0,typeof A=="string"?z.input=h.string2buf(A):p.call(A)==="[object ArrayBuffer]"?z.input=new Uint8Array(A):z.input=A,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new l.Buf8(K),z.next_out=0,z.avail_out=K),(L=s.deflate(z,T))!==1&&L!==w)return this.onEnd(L),!(this.ended=!0);z.avail_out!==0&&(z.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(l.shrinkBuf(z.output,z.next_out))):this.onData(l.shrinkBuf(z.output,z.next_out)))}while((0<z.avail_in||z.avail_out===0)&&L!==1);return T===4?(L=s.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===w):T!==2||(this.onEnd(w),!(z.avail_out=0))},E.prototype.onData=function(A){this.chunks.push(A)},E.prototype.onEnd=function(A){A===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},a.Deflate=E,a.deflate=y,a.deflateRaw=function(A,x){return(x=x||{}).raw=!0,y(A,x)},a.gzip=function(A,x){return(x=x||{}).gzip=!0,y(A,x)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,a){"use strict";var s=r("./zlib/inflate"),l=r("./utils/common"),h=r("./utils/strings"),u=r("./zlib/constants"),f=r("./zlib/messages"),p=r("./zlib/zstream"),w=r("./zlib/gzheader"),b=Object.prototype.toString;function v(E){if(!(this instanceof v))return new v(E);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},E||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||E&&E.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var A=s.inflateInit2(this.strm,y.windowBits);if(A!==u.Z_OK)throw new Error(f[A]);this.header=new w,s.inflateGetHeader(this.strm,this.header)}function m(E,y){var A=new v(y);if(A.push(E,!0),A.err)throw A.msg||f[A.err];return A.result}v.prototype.push=function(E,y){var A,x,L,T,z,K,q=this.strm,oe=this.options.chunkSize,W=this.options.dictionary,ge=!1;if(this.ended)return!1;x=y===~~y?y:y===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof E=="string"?q.input=h.binstring2buf(E):b.call(E)==="[object ArrayBuffer]"?q.input=new Uint8Array(E):q.input=E,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new l.Buf8(oe),q.next_out=0,q.avail_out=oe),(A=s.inflate(q,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&W&&(K=typeof W=="string"?h.string2buf(W):b.call(W)==="[object ArrayBuffer]"?new Uint8Array(W):W,A=s.inflateSetDictionary(this.strm,K)),A===u.Z_BUF_ERROR&&ge===!0&&(A=u.Z_OK,ge=!1),A!==u.Z_STREAM_END&&A!==u.Z_OK)return this.onEnd(A),!(this.ended=!0);q.next_out&&(q.avail_out!==0&&A!==u.Z_STREAM_END&&(q.avail_in!==0||x!==u.Z_FINISH&&x!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=h.utf8border(q.output,q.next_out),T=q.next_out-L,z=h.buf2string(q.output,L),q.next_out=T,q.avail_out=oe-T,T&&l.arraySet(q.output,q.output,L,T,0),this.onData(z)):this.onData(l.shrinkBuf(q.output,q.next_out)))),q.avail_in===0&&q.avail_out===0&&(ge=!0)}while((0<q.avail_in||q.avail_out===0)&&A!==u.Z_STREAM_END);return A===u.Z_STREAM_END&&(x=u.Z_FINISH),x===u.Z_FINISH?(A=s.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===u.Z_OK):x!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(q.avail_out=0))},v.prototype.onData=function(E){this.chunks.push(E)},v.prototype.onEnd=function(E){E===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},a.Inflate=v,a.inflate=m,a.inflateRaw=function(E,y){return(y=y||{}).raw=!0,m(E,y)},a.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,i,a){"use strict";var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(u){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var p=f.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var w in p)p.hasOwnProperty(w)&&(u[w]=p[w])}}return u},a.shrinkBuf=function(u,f){return u.length===f?u:u.subarray?u.subarray(0,f):(u.length=f,u)};var l={arraySet:function(u,f,p,w,b){if(f.subarray&&u.subarray)u.set(f.subarray(p,p+w),b);else for(var v=0;v<w;v++)u[b+v]=f[p+v]},flattenChunks:function(u){var f,p,w,b,v,m;for(f=w=0,p=u.length;f<p;f++)w+=u[f].length;for(m=new Uint8Array(w),f=b=0,p=u.length;f<p;f++)v=u[f],m.set(v,b),b+=v.length;return m}},h={arraySet:function(u,f,p,w,b){for(var v=0;v<w;v++)u[b+v]=f[p+v]},flattenChunks:function(u){return[].concat.apply([],u)}};a.setTyped=function(u){u?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,l)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,h))},a.setTyped(s)},{}],42:[function(r,i,a){"use strict";var s=r("./common"),l=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var u=new s.Buf8(256),f=0;f<256;f++)u[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function p(w,b){if(b<65537&&(w.subarray&&h||!w.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(w,b));for(var v="",m=0;m<b;m++)v+=String.fromCharCode(w[m]);return v}u[254]=u[254]=1,a.string2buf=function(w){var b,v,m,E,y,A=w.length,x=0;for(E=0;E<A;E++)(64512&(v=w.charCodeAt(E)))==55296&&E+1<A&&(64512&(m=w.charCodeAt(E+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),E++),x+=v<128?1:v<2048?2:v<65536?3:4;for(b=new s.Buf8(x),E=y=0;y<x;E++)(64512&(v=w.charCodeAt(E)))==55296&&E+1<A&&(64512&(m=w.charCodeAt(E+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),E++),v<128?b[y++]=v:(v<2048?b[y++]=192|v>>>6:(v<65536?b[y++]=224|v>>>12:(b[y++]=240|v>>>18,b[y++]=128|v>>>12&63),b[y++]=128|v>>>6&63),b[y++]=128|63&v);return b},a.buf2binstring=function(w){return p(w,w.length)},a.binstring2buf=function(w){for(var b=new s.Buf8(w.length),v=0,m=b.length;v<m;v++)b[v]=w.charCodeAt(v);return b},a.buf2string=function(w,b){var v,m,E,y,A=b||w.length,x=new Array(2*A);for(v=m=0;v<A;)if((E=w[v++])<128)x[m++]=E;else if(4<(y=u[E]))x[m++]=65533,v+=y-1;else{for(E&=y===2?31:y===3?15:7;1<y&&v<A;)E=E<<6|63&w[v++],y--;1<y?x[m++]=65533:E<65536?x[m++]=E:(E-=65536,x[m++]=55296|E>>10&1023,x[m++]=56320|1023&E)}return p(x,m)},a.utf8border=function(w,b){var v;for((b=b||w.length)>w.length&&(b=w.length),v=b-1;0<=v&&(192&w[v])==128;)v--;return v<0||v===0?b:v+u[w[v]]>b?v:b}},{"./common":41}],43:[function(r,i,a){"use strict";i.exports=function(s,l,h,u){for(var f=65535&s|0,p=s>>>16&65535|0,w=0;h!==0;){for(h-=w=2e3<h?2e3:h;p=p+(f=f+l[u++]|0)|0,--w;);f%=65521,p%=65521}return f|p<<16|0}},{}],44:[function(r,i,a){"use strict";i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,i,a){"use strict";var s=(function(){for(var l,h=[],u=0;u<256;u++){l=u;for(var f=0;f<8;f++)l=1&l?3988292384^l>>>1:l>>>1;h[u]=l}return h})();i.exports=function(l,h,u,f){var p=s,w=f+u;l^=-1;for(var b=f;b<w;b++)l=l>>>8^p[255&(l^h[b])];return-1^l}},{}],46:[function(r,i,a){"use strict";var s,l=r("../utils/common"),h=r("./trees"),u=r("./adler32"),f=r("./crc32"),p=r("./messages"),w=0,b=4,v=0,m=-2,E=-1,y=4,A=2,x=8,L=9,T=286,z=30,K=19,q=2*T+1,oe=15,W=3,ge=258,_e=ge+W+1,P=42,X=113,S=1,Q=2,Ie=3,ue=4;function Ce(_,J){return _.msg=p[J],J}function ie(_){return(_<<1)-(4<_?9:0)}function xe(_){for(var J=_.length;0<=--J;)_[J]=0}function U(_){var J=_.state,Z=J.pending;Z>_.avail_out&&(Z=_.avail_out),Z!==0&&(l.arraySet(_.output,J.pending_buf,J.pending_out,Z,_.next_out),_.next_out+=Z,J.pending_out+=Z,_.total_out+=Z,_.avail_out-=Z,J.pending-=Z,J.pending===0&&(J.pending_out=0))}function G(_,J){h._tr_flush_block(_,0<=_.block_start?_.block_start:-1,_.strstart-_.block_start,J),_.block_start=_.strstart,U(_.strm)}function Ae(_,J){_.pending_buf[_.pending++]=J}function me(_,J){_.pending_buf[_.pending++]=J>>>8&255,_.pending_buf[_.pending++]=255&J}function fe(_,J){var Z,O,C=_.max_chain_length,N=_.strstart,ae=_.prev_length,se=_.nice_match,H=_.strstart>_.w_size-_e?_.strstart-(_.w_size-_e):0,de=_.window,ve=_.w_mask,he=_.prev,Ee=_.strstart+ge,et=de[N+ae-1],We=de[N+ae];_.prev_length>=_.good_match&&(C>>=2),se>_.lookahead&&(se=_.lookahead);do if(de[(Z=J)+ae]===We&&de[Z+ae-1]===et&&de[Z]===de[N]&&de[++Z]===de[N+1]){N+=2,Z++;do;while(de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&de[++N]===de[++Z]&&N<Ee);if(O=ge-(Ee-N),N=Ee-ge,ae<O){if(_.match_start=J,se<=(ae=O))break;et=de[N+ae-1],We=de[N+ae]}}while((J=he[J&ve])>H&&--C!=0);return ae<=_.lookahead?ae:_.lookahead}function je(_){var J,Z,O,C,N,ae,se,H,de,ve,he=_.w_size;do{if(C=_.window_size-_.lookahead-_.strstart,_.strstart>=he+(he-_e)){for(l.arraySet(_.window,_.window,he,he,0),_.match_start-=he,_.strstart-=he,_.block_start-=he,J=Z=_.hash_size;O=_.head[--J],_.head[J]=he<=O?O-he:0,--Z;);for(J=Z=he;O=_.prev[--J],_.prev[J]=he<=O?O-he:0,--Z;);C+=he}if(_.strm.avail_in===0)break;if(ae=_.strm,se=_.window,H=_.strstart+_.lookahead,de=C,ve=void 0,ve=ae.avail_in,de<ve&&(ve=de),Z=ve===0?0:(ae.avail_in-=ve,l.arraySet(se,ae.input,ae.next_in,ve,H),ae.state.wrap===1?ae.adler=u(ae.adler,se,ve,H):ae.state.wrap===2&&(ae.adler=f(ae.adler,se,ve,H)),ae.next_in+=ve,ae.total_in+=ve,ve),_.lookahead+=Z,_.lookahead+_.insert>=W)for(N=_.strstart-_.insert,_.ins_h=_.window[N],_.ins_h=(_.ins_h<<_.hash_shift^_.window[N+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[N+W-1])&_.hash_mask,_.prev[N&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=N,N++,_.insert--,!(_.lookahead+_.insert<W)););}while(_.lookahead<_e&&_.strm.avail_in!==0)}function pt(_,J){for(var Z,O;;){if(_.lookahead<_e){if(je(_),_.lookahead<_e&&J===w)return S;if(_.lookahead===0)break}if(Z=0,_.lookahead>=W&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),Z!==0&&_.strstart-Z<=_.w_size-_e&&(_.match_length=fe(_,Z)),_.match_length>=W)if(O=h._tr_tally(_,_.strstart-_.match_start,_.match_length-W),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=W){for(_.match_length--;_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart,--_.match_length!=0;);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else O=h._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(O&&(G(_,!1),_.strm.avail_out===0))return S}return _.insert=_.strstart<W-1?_.strstart:W-1,J===b?(G(_,!0),_.strm.avail_out===0?Ie:ue):_.last_lit&&(G(_,!1),_.strm.avail_out===0)?S:Q}function Ue(_,J){for(var Z,O,C;;){if(_.lookahead<_e){if(je(_),_.lookahead<_e&&J===w)return S;if(_.lookahead===0)break}if(Z=0,_.lookahead>=W&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=W-1,Z!==0&&_.prev_length<_.max_lazy_match&&_.strstart-Z<=_.w_size-_e&&(_.match_length=fe(_,Z),_.match_length<=5&&(_.strategy===1||_.match_length===W&&4096<_.strstart-_.match_start)&&(_.match_length=W-1)),_.prev_length>=W&&_.match_length<=_.prev_length){for(C=_.strstart+_.lookahead-W,O=h._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-W),_.lookahead-=_.prev_length-1,_.prev_length-=2;++_.strstart<=C&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+W-1])&_.hash_mask,Z=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),--_.prev_length!=0;);if(_.match_available=0,_.match_length=W-1,_.strstart++,O&&(G(_,!1),_.strm.avail_out===0))return S}else if(_.match_available){if((O=h._tr_tally(_,0,_.window[_.strstart-1]))&&G(_,!1),_.strstart++,_.lookahead--,_.strm.avail_out===0)return S}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(O=h._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<W-1?_.strstart:W-1,J===b?(G(_,!0),_.strm.avail_out===0?Ie:ue):_.last_lit&&(G(_,!1),_.strm.avail_out===0)?S:Q}function Ge(_,J,Z,O,C){this.good_length=_,this.max_lazy=J,this.nice_length=Z,this.max_chain=O,this.func=C}function dt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*q),this.dyn_dtree=new l.Buf16(2*(2*z+1)),this.bl_tree=new l.Buf16(2*(2*K+1)),xe(this.dyn_ltree),xe(this.dyn_dtree),xe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(oe+1),this.heap=new l.Buf16(2*T+1),xe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*T+1),xe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function gt(_){var J;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=A,(J=_.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?P:X,_.adler=J.wrap===2?0:1,J.last_flush=w,h._tr_init(J),v):Ce(_,m)}function Zt(_){var J=gt(_);return J===v&&(function(Z){Z.window_size=2*Z.w_size,xe(Z.head),Z.max_lazy_match=s[Z.level].max_lazy,Z.good_match=s[Z.level].good_length,Z.nice_match=s[Z.level].nice_length,Z.max_chain_length=s[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=W-1,Z.match_available=0,Z.ins_h=0})(_.state),J}function Ht(_,J,Z,O,C,N){if(!_)return m;var ae=1;if(J===E&&(J=6),O<0?(ae=0,O=-O):15<O&&(ae=2,O-=16),C<1||L<C||Z!==x||O<8||15<O||J<0||9<J||N<0||y<N)return Ce(_,m);O===8&&(O=9);var se=new dt;return(_.state=se).strm=_,se.wrap=ae,se.gzhead=null,se.w_bits=O,se.w_size=1<<se.w_bits,se.w_mask=se.w_size-1,se.hash_bits=C+7,se.hash_size=1<<se.hash_bits,se.hash_mask=se.hash_size-1,se.hash_shift=~~((se.hash_bits+W-1)/W),se.window=new l.Buf8(2*se.w_size),se.head=new l.Buf16(se.hash_size),se.prev=new l.Buf16(se.w_size),se.lit_bufsize=1<<C+6,se.pending_buf_size=4*se.lit_bufsize,se.pending_buf=new l.Buf8(se.pending_buf_size),se.d_buf=1*se.lit_bufsize,se.l_buf=3*se.lit_bufsize,se.level=J,se.strategy=N,se.method=Z,Zt(_)}s=[new Ge(0,0,0,0,function(_,J){var Z=65535;for(Z>_.pending_buf_size-5&&(Z=_.pending_buf_size-5);;){if(_.lookahead<=1){if(je(_),_.lookahead===0&&J===w)return S;if(_.lookahead===0)break}_.strstart+=_.lookahead,_.lookahead=0;var O=_.block_start+Z;if((_.strstart===0||_.strstart>=O)&&(_.lookahead=_.strstart-O,_.strstart=O,G(_,!1),_.strm.avail_out===0)||_.strstart-_.block_start>=_.w_size-_e&&(G(_,!1),_.strm.avail_out===0))return S}return _.insert=0,J===b?(G(_,!0),_.strm.avail_out===0?Ie:ue):(_.strstart>_.block_start&&(G(_,!1),_.strm.avail_out),S)}),new Ge(4,4,8,4,pt),new Ge(4,5,16,8,pt),new Ge(4,6,32,32,pt),new Ge(4,4,16,16,Ue),new Ge(8,16,32,32,Ue),new Ge(8,16,128,128,Ue),new Ge(8,32,128,256,Ue),new Ge(32,128,258,1024,Ue),new Ge(32,258,258,4096,Ue)],a.deflateInit=function(_,J){return Ht(_,J,x,15,8,0)},a.deflateInit2=Ht,a.deflateReset=Zt,a.deflateResetKeep=gt,a.deflateSetHeader=function(_,J){return _&&_.state?_.state.wrap!==2?m:(_.state.gzhead=J,v):m},a.deflate=function(_,J){var Z,O,C,N;if(!_||!_.state||5<J||J<0)return _?Ce(_,m):m;if(O=_.state,!_.output||!_.input&&_.avail_in!==0||O.status===666&&J!==b)return Ce(_,_.avail_out===0?-5:m);if(O.strm=_,Z=O.last_flush,O.last_flush=J,O.status===P)if(O.wrap===2)_.adler=0,Ae(O,31),Ae(O,139),Ae(O,8),O.gzhead?(Ae(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),Ae(O,255&O.gzhead.time),Ae(O,O.gzhead.time>>8&255),Ae(O,O.gzhead.time>>16&255),Ae(O,O.gzhead.time>>24&255),Ae(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Ae(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(Ae(O,255&O.gzhead.extra.length),Ae(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(_.adler=f(_.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(Ae(O,0),Ae(O,0),Ae(O,0),Ae(O,0),Ae(O,0),Ae(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),Ae(O,3),O.status=X);else{var ae=x+(O.w_bits-8<<4)<<8;ae|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(ae|=32),ae+=31-ae%31,O.status=X,me(O,ae),O.strstart!==0&&(me(O,_.adler>>>16),me(O,65535&_.adler)),_.adler=1}if(O.status===69)if(O.gzhead.extra){for(C=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending!==O.pending_buf_size));)Ae(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){C=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending===O.pending_buf_size)){N=1;break}N=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,Ae(O,N)}while(N!==0);O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),N===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){C=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),U(_),C=O.pending,O.pending===O.pending_buf_size)){N=1;break}N=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,Ae(O,N)}while(N!==0);O.gzhead.hcrc&&O.pending>C&&(_.adler=f(_.adler,O.pending_buf,O.pending-C,C)),N===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&U(_),O.pending+2<=O.pending_buf_size&&(Ae(O,255&_.adler),Ae(O,_.adler>>8&255),_.adler=0,O.status=X)):O.status=X),O.pending!==0){if(U(_),_.avail_out===0)return O.last_flush=-1,v}else if(_.avail_in===0&&ie(J)<=ie(Z)&&J!==b)return Ce(_,-5);if(O.status===666&&_.avail_in!==0)return Ce(_,-5);if(_.avail_in!==0||O.lookahead!==0||J!==w&&O.status!==666){var se=O.strategy===2?(function(H,de){for(var ve;;){if(H.lookahead===0&&(je(H),H.lookahead===0)){if(de===w)return S;break}if(H.match_length=0,ve=h._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,ve&&(G(H,!1),H.strm.avail_out===0))return S}return H.insert=0,de===b?(G(H,!0),H.strm.avail_out===0?Ie:ue):H.last_lit&&(G(H,!1),H.strm.avail_out===0)?S:Q})(O,J):O.strategy===3?(function(H,de){for(var ve,he,Ee,et,We=H.window;;){if(H.lookahead<=ge){if(je(H),H.lookahead<=ge&&de===w)return S;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=W&&0<H.strstart&&(he=We[Ee=H.strstart-1])===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]){et=H.strstart+ge;do;while(he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&he===We[++Ee]&&Ee<et);H.match_length=ge-(et-Ee),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=W?(ve=h._tr_tally(H,1,H.match_length-W),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(ve=h._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),ve&&(G(H,!1),H.strm.avail_out===0))return S}return H.insert=0,de===b?(G(H,!0),H.strm.avail_out===0?Ie:ue):H.last_lit&&(G(H,!1),H.strm.avail_out===0)?S:Q})(O,J):s[O.level].func(O,J);if(se!==Ie&&se!==ue||(O.status=666),se===S||se===Ie)return _.avail_out===0&&(O.last_flush=-1),v;if(se===Q&&(J===1?h._tr_align(O):J!==5&&(h._tr_stored_block(O,0,0,!1),J===3&&(xe(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),U(_),_.avail_out===0))return O.last_flush=-1,v}return J!==b?v:O.wrap<=0?1:(O.wrap===2?(Ae(O,255&_.adler),Ae(O,_.adler>>8&255),Ae(O,_.adler>>16&255),Ae(O,_.adler>>24&255),Ae(O,255&_.total_in),Ae(O,_.total_in>>8&255),Ae(O,_.total_in>>16&255),Ae(O,_.total_in>>24&255)):(me(O,_.adler>>>16),me(O,65535&_.adler)),U(_),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?v:1)},a.deflateEnd=function(_){var J;return _&&_.state?(J=_.state.status)!==P&&J!==69&&J!==73&&J!==91&&J!==103&&J!==X&&J!==666?Ce(_,m):(_.state=null,J===X?Ce(_,-3):v):m},a.deflateSetDictionary=function(_,J){var Z,O,C,N,ae,se,H,de,ve=J.length;if(!_||!_.state||(N=(Z=_.state).wrap)===2||N===1&&Z.status!==P||Z.lookahead)return m;for(N===1&&(_.adler=u(_.adler,J,ve,0)),Z.wrap=0,ve>=Z.w_size&&(N===0&&(xe(Z.head),Z.strstart=0,Z.block_start=0,Z.insert=0),de=new l.Buf8(Z.w_size),l.arraySet(de,J,ve-Z.w_size,Z.w_size,0),J=de,ve=Z.w_size),ae=_.avail_in,se=_.next_in,H=_.input,_.avail_in=ve,_.next_in=0,_.input=J,je(Z);Z.lookahead>=W;){for(O=Z.strstart,C=Z.lookahead-(W-1);Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[O+W-1])&Z.hash_mask,Z.prev[O&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=O,O++,--C;);Z.strstart=O,Z.lookahead=W-1,je(Z)}return Z.strstart+=Z.lookahead,Z.block_start=Z.strstart,Z.insert=Z.lookahead,Z.lookahead=0,Z.match_length=Z.prev_length=W-1,Z.match_available=0,_.next_in=se,_.input=H,_.avail_in=ae,Z.wrap=N,v},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,a){"use strict";i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,i,a){"use strict";i.exports=function(s,l){var h=s.state,u=s.next_in,f,p,w,b,v,m,E,y,A,x,L,T,z,K,q,oe,W,ge,_e,P,X,S=s.input,Q;f=u+(s.avail_in-5),p=s.next_out,Q=s.output,w=p-(l-s.avail_out),b=p+(s.avail_out-257),v=h.dmax,m=h.wsize,E=h.whave,y=h.wnext,A=h.window,x=h.hold,L=h.bits,T=h.lencode,z=h.distcode,K=(1<<h.lenbits)-1,q=(1<<h.distbits)-1;e:do{L<15&&(x+=S[u++]<<L,L+=8,x+=S[u++]<<L,L+=8),oe=T[x&K];t:for(;;){if(x>>>=W=oe>>>24,L-=W,(W=oe>>>16&255)===0)Q[p++]=65535&oe;else{if(!(16&W)){if((64&W)==0){oe=T[(65535&oe)+(x&(1<<W)-1)];continue t}if(32&W){h.mode=12;break e}s.msg="invalid literal/length code",h.mode=30;break e}ge=65535&oe,(W&=15)&&(L<W&&(x+=S[u++]<<L,L+=8),ge+=x&(1<<W)-1,x>>>=W,L-=W),L<15&&(x+=S[u++]<<L,L+=8,x+=S[u++]<<L,L+=8),oe=z[x&q];n:for(;;){if(x>>>=W=oe>>>24,L-=W,!(16&(W=oe>>>16&255))){if((64&W)==0){oe=z[(65535&oe)+(x&(1<<W)-1)];continue n}s.msg="invalid distance code",h.mode=30;break e}if(_e=65535&oe,L<(W&=15)&&(x+=S[u++]<<L,(L+=8)<W&&(x+=S[u++]<<L,L+=8)),v<(_e+=x&(1<<W)-1)){s.msg="invalid distance too far back",h.mode=30;break e}if(x>>>=W,L-=W,(W=p-w)<_e){if(E<(W=_e-W)&&h.sane){s.msg="invalid distance too far back",h.mode=30;break e}if(X=A,(P=0)===y){if(P+=m-W,W<ge){for(ge-=W;Q[p++]=A[P++],--W;);P=p-_e,X=Q}}else if(y<W){if(P+=m+y-W,(W-=y)<ge){for(ge-=W;Q[p++]=A[P++],--W;);if(P=0,y<ge){for(ge-=W=y;Q[p++]=A[P++],--W;);P=p-_e,X=Q}}}else if(P+=y-W,W<ge){for(ge-=W;Q[p++]=A[P++],--W;);P=p-_e,X=Q}for(;2<ge;)Q[p++]=X[P++],Q[p++]=X[P++],Q[p++]=X[P++],ge-=3;ge&&(Q[p++]=X[P++],1<ge&&(Q[p++]=X[P++]))}else{for(P=p-_e;Q[p++]=Q[P++],Q[p++]=Q[P++],Q[p++]=Q[P++],2<(ge-=3););ge&&(Q[p++]=Q[P++],1<ge&&(Q[p++]=Q[P++]))}break}}break}}while(u<f&&p<b);u-=ge=L>>3,x&=(1<<(L-=ge<<3))-1,s.next_in=u,s.next_out=p,s.avail_in=u<f?f-u+5:5-(u-f),s.avail_out=p<b?b-p+257:257-(p-b),h.hold=x,h.bits=L}},{}],49:[function(r,i,a){"use strict";var s=r("../utils/common"),l=r("./adler32"),h=r("./crc32"),u=r("./inffast"),f=r("./inftrees"),p=1,w=2,b=0,v=-2,m=1,E=852,y=592;function A(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(P){var X;return P&&P.state?(X=P.state,P.total_in=P.total_out=X.total=0,P.msg="",X.wrap&&(P.adler=1&X.wrap),X.mode=m,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new s.Buf32(E),X.distcode=X.distdyn=new s.Buf32(y),X.sane=1,X.back=-1,b):v}function T(P){var X;return P&&P.state?((X=P.state).wsize=0,X.whave=0,X.wnext=0,L(P)):v}function z(P,X){var S,Q;return P&&P.state?(Q=P.state,X<0?(S=0,X=-X):(S=1+(X>>4),X<48&&(X&=15)),X&&(X<8||15<X)?v:(Q.window!==null&&Q.wbits!==X&&(Q.window=null),Q.wrap=S,Q.wbits=X,T(P))):v}function K(P,X){var S,Q;return P?(Q=new x,(P.state=Q).window=null,(S=z(P,X))!==b&&(P.state=null),S):v}var q,oe,W=!0;function ge(P){if(W){var X;for(q=new s.Buf32(512),oe=new s.Buf32(32),X=0;X<144;)P.lens[X++]=8;for(;X<256;)P.lens[X++]=9;for(;X<280;)P.lens[X++]=7;for(;X<288;)P.lens[X++]=8;for(f(p,P.lens,0,288,q,0,P.work,{bits:9}),X=0;X<32;)P.lens[X++]=5;f(w,P.lens,0,32,oe,0,P.work,{bits:5}),W=!1}P.lencode=q,P.lenbits=9,P.distcode=oe,P.distbits=5}function _e(P,X,S,Q){var Ie,ue=P.state;return ue.window===null&&(ue.wsize=1<<ue.wbits,ue.wnext=0,ue.whave=0,ue.window=new s.Buf8(ue.wsize)),Q>=ue.wsize?(s.arraySet(ue.window,X,S-ue.wsize,ue.wsize,0),ue.wnext=0,ue.whave=ue.wsize):(Q<(Ie=ue.wsize-ue.wnext)&&(Ie=Q),s.arraySet(ue.window,X,S-Q,Ie,ue.wnext),(Q-=Ie)?(s.arraySet(ue.window,X,S-Q,Q,0),ue.wnext=Q,ue.whave=ue.wsize):(ue.wnext+=Ie,ue.wnext===ue.wsize&&(ue.wnext=0),ue.whave<ue.wsize&&(ue.whave+=Ie))),0}a.inflateReset=T,a.inflateReset2=z,a.inflateResetKeep=L,a.inflateInit=function(P){return K(P,15)},a.inflateInit2=K,a.inflate=function(P,X){var S,Q,Ie,ue,Ce,ie,xe,U,G,Ae,me,fe,je,pt,Ue,Ge,dt,gt,Zt,Ht,_,J,Z,O,C=0,N=new s.Buf8(4),ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return v;(S=P.state).mode===12&&(S.mode=13),Ce=P.next_out,Ie=P.output,xe=P.avail_out,ue=P.next_in,Q=P.input,ie=P.avail_in,U=S.hold,G=S.bits,Ae=ie,me=xe,J=b;e:for(;;)switch(S.mode){case m:if(S.wrap===0){S.mode=13;break}for(;G<16;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(2&S.wrap&&U===35615){N[S.check=0]=255&U,N[1]=U>>>8&255,S.check=h(S.check,N,2,0),G=U=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&U)<<8)+(U>>8))%31){P.msg="incorrect header check",S.mode=30;break}if((15&U)!=8){P.msg="unknown compression method",S.mode=30;break}if(G-=4,_=8+(15&(U>>>=4)),S.wbits===0)S.wbits=_;else if(_>S.wbits){P.msg="invalid window size",S.mode=30;break}S.dmax=1<<_,P.adler=S.check=1,S.mode=512&U?10:12,G=U=0;break;case 2:for(;G<16;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(S.flags=U,(255&S.flags)!=8){P.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){P.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=U>>8&1),512&S.flags&&(N[0]=255&U,N[1]=U>>>8&255,S.check=h(S.check,N,2,0)),G=U=0,S.mode=3;case 3:for(;G<32;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.head&&(S.head.time=U),512&S.flags&&(N[0]=255&U,N[1]=U>>>8&255,N[2]=U>>>16&255,N[3]=U>>>24&255,S.check=h(S.check,N,4,0)),G=U=0,S.mode=4;case 4:for(;G<16;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.head&&(S.head.xflags=255&U,S.head.os=U>>8),512&S.flags&&(N[0]=255&U,N[1]=U>>>8&255,S.check=h(S.check,N,2,0)),G=U=0,S.mode=5;case 5:if(1024&S.flags){for(;G<16;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.length=U,S.head&&(S.head.extra_len=U),512&S.flags&&(N[0]=255&U,N[1]=U>>>8&255,S.check=h(S.check,N,2,0)),G=U=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(ie<(fe=S.length)&&(fe=ie),fe&&(S.head&&(_=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),s.arraySet(S.head.extra,Q,ue,fe,_)),512&S.flags&&(S.check=h(S.check,Q,fe,ue)),ie-=fe,ue+=fe,S.length-=fe),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(ie===0)break e;for(fe=0;_=Q[ue+fe++],S.head&&_&&S.length<65536&&(S.head.name+=String.fromCharCode(_)),_&&fe<ie;);if(512&S.flags&&(S.check=h(S.check,Q,fe,ue)),ie-=fe,ue+=fe,_)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(ie===0)break e;for(fe=0;_=Q[ue+fe++],S.head&&_&&S.length<65536&&(S.head.comment+=String.fromCharCode(_)),_&&fe<ie;);if(512&S.flags&&(S.check=h(S.check,Q,fe,ue)),ie-=fe,ue+=fe,_)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;G<16;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(U!==(65535&S.check)){P.msg="header crc mismatch",S.mode=30;break}G=U=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),P.adler=S.check=0,S.mode=12;break;case 10:for(;G<32;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}P.adler=S.check=A(U),G=U=0,S.mode=11;case 11:if(S.havedict===0)return P.next_out=Ce,P.avail_out=xe,P.next_in=ue,P.avail_in=ie,S.hold=U,S.bits=G,2;P.adler=S.check=1,S.mode=12;case 12:if(X===5||X===6)break e;case 13:if(S.last){U>>>=7&G,G-=7&G,S.mode=27;break}for(;G<3;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}switch(S.last=1&U,G-=1,3&(U>>>=1)){case 0:S.mode=14;break;case 1:if(ge(S),S.mode=20,X!==6)break;U>>>=2,G-=2;break e;case 2:S.mode=17;break;case 3:P.msg="invalid block type",S.mode=30}U>>>=2,G-=2;break;case 14:for(U>>>=7&G,G-=7&G;G<32;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if((65535&U)!=(U>>>16^65535)){P.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&U,G=U=0,S.mode=15,X===6)break e;case 15:S.mode=16;case 16:if(fe=S.length){if(ie<fe&&(fe=ie),xe<fe&&(fe=xe),fe===0)break e;s.arraySet(Ie,Q,ue,fe,Ce),ie-=fe,ue+=fe,xe-=fe,Ce+=fe,S.length-=fe;break}S.mode=12;break;case 17:for(;G<14;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(S.nlen=257+(31&U),U>>>=5,G-=5,S.ndist=1+(31&U),U>>>=5,G-=5,S.ncode=4+(15&U),U>>>=4,G-=4,286<S.nlen||30<S.ndist){P.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;G<3;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.lens[ae[S.have++]]=7&U,U>>>=3,G-=3}for(;S.have<19;)S.lens[ae[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,Z={bits:S.lenbits},J=f(0,S.lens,0,19,S.lencode,0,S.work,Z),S.lenbits=Z.bits,J){P.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;Ge=(C=S.lencode[U&(1<<S.lenbits)-1])>>>16&255,dt=65535&C,!((Ue=C>>>24)<=G);){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(dt<16)U>>>=Ue,G-=Ue,S.lens[S.have++]=dt;else{if(dt===16){for(O=Ue+2;G<O;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(U>>>=Ue,G-=Ue,S.have===0){P.msg="invalid bit length repeat",S.mode=30;break}_=S.lens[S.have-1],fe=3+(3&U),U>>>=2,G-=2}else if(dt===17){for(O=Ue+3;G<O;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}G-=Ue,_=0,fe=3+(7&(U>>>=Ue)),U>>>=3,G-=3}else{for(O=Ue+7;G<O;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}G-=Ue,_=0,fe=11+(127&(U>>>=Ue)),U>>>=7,G-=7}if(S.have+fe>S.nlen+S.ndist){P.msg="invalid bit length repeat",S.mode=30;break}for(;fe--;)S.lens[S.have++]=_}}if(S.mode===30)break;if(S.lens[256]===0){P.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,Z={bits:S.lenbits},J=f(p,S.lens,0,S.nlen,S.lencode,0,S.work,Z),S.lenbits=Z.bits,J){P.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,Z={bits:S.distbits},J=f(w,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,Z),S.distbits=Z.bits,J){P.msg="invalid distances set",S.mode=30;break}if(S.mode=20,X===6)break e;case 20:S.mode=21;case 21:if(6<=ie&&258<=xe){P.next_out=Ce,P.avail_out=xe,P.next_in=ue,P.avail_in=ie,S.hold=U,S.bits=G,u(P,me),Ce=P.next_out,Ie=P.output,xe=P.avail_out,ue=P.next_in,Q=P.input,ie=P.avail_in,U=S.hold,G=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;Ge=(C=S.lencode[U&(1<<S.lenbits)-1])>>>16&255,dt=65535&C,!((Ue=C>>>24)<=G);){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(Ge&&(240&Ge)==0){for(gt=Ue,Zt=Ge,Ht=dt;Ge=(C=S.lencode[Ht+((U&(1<<gt+Zt)-1)>>gt)])>>>16&255,dt=65535&C,!(gt+(Ue=C>>>24)<=G);){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}U>>>=gt,G-=gt,S.back+=gt}if(U>>>=Ue,G-=Ue,S.back+=Ue,S.length=dt,Ge===0){S.mode=26;break}if(32&Ge){S.back=-1,S.mode=12;break}if(64&Ge){P.msg="invalid literal/length code",S.mode=30;break}S.extra=15&Ge,S.mode=22;case 22:if(S.extra){for(O=S.extra;G<O;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.length+=U&(1<<S.extra)-1,U>>>=S.extra,G-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;Ge=(C=S.distcode[U&(1<<S.distbits)-1])>>>16&255,dt=65535&C,!((Ue=C>>>24)<=G);){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if((240&Ge)==0){for(gt=Ue,Zt=Ge,Ht=dt;Ge=(C=S.distcode[Ht+((U&(1<<gt+Zt)-1)>>gt)])>>>16&255,dt=65535&C,!(gt+(Ue=C>>>24)<=G);){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}U>>>=gt,G-=gt,S.back+=gt}if(U>>>=Ue,G-=Ue,S.back+=Ue,64&Ge){P.msg="invalid distance code",S.mode=30;break}S.offset=dt,S.extra=15&Ge,S.mode=24;case 24:if(S.extra){for(O=S.extra;G<O;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}S.offset+=U&(1<<S.extra)-1,U>>>=S.extra,G-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){P.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(xe===0)break e;if(fe=me-xe,S.offset>fe){if((fe=S.offset-fe)>S.whave&&S.sane){P.msg="invalid distance too far back",S.mode=30;break}je=fe>S.wnext?(fe-=S.wnext,S.wsize-fe):S.wnext-fe,fe>S.length&&(fe=S.length),pt=S.window}else pt=Ie,je=Ce-S.offset,fe=S.length;for(xe<fe&&(fe=xe),xe-=fe,S.length-=fe;Ie[Ce++]=pt[je++],--fe;);S.length===0&&(S.mode=21);break;case 26:if(xe===0)break e;Ie[Ce++]=S.length,xe--,S.mode=21;break;case 27:if(S.wrap){for(;G<32;){if(ie===0)break e;ie--,U|=Q[ue++]<<G,G+=8}if(me-=xe,P.total_out+=me,S.total+=me,me&&(P.adler=S.check=S.flags?h(S.check,Ie,me,Ce-me):l(S.check,Ie,me,Ce-me)),me=xe,(S.flags?U:A(U))!==S.check){P.msg="incorrect data check",S.mode=30;break}G=U=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;G<32;){if(ie===0)break e;ie--,U+=Q[ue++]<<G,G+=8}if(U!==(4294967295&S.total)){P.msg="incorrect length check",S.mode=30;break}G=U=0}S.mode=29;case 29:J=1;break e;case 30:J=-3;break e;case 31:return-4;default:return v}return P.next_out=Ce,P.avail_out=xe,P.next_in=ue,P.avail_in=ie,S.hold=U,S.bits=G,(S.wsize||me!==P.avail_out&&S.mode<30&&(S.mode<27||X!==4))&&_e(P,P.output,P.next_out,me-P.avail_out)?(S.mode=31,-4):(Ae-=P.avail_in,me-=P.avail_out,P.total_in+=Ae,P.total_out+=me,S.total+=me,S.wrap&&me&&(P.adler=S.check=S.flags?h(S.check,Ie,me,P.next_out-me):l(S.check,Ie,me,P.next_out-me)),P.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(Ae==0&&me===0||X===4)&&J===b&&(J=-5),J)},a.inflateEnd=function(P){if(!P||!P.state)return v;var X=P.state;return X.window&&(X.window=null),P.state=null,b},a.inflateGetHeader=function(P,X){var S;return P&&P.state?(2&(S=P.state).wrap)==0?v:((S.head=X).done=!1,b):v},a.inflateSetDictionary=function(P,X){var S,Q=X.length;return P&&P.state?(S=P.state).wrap!==0&&S.mode!==11?v:S.mode===11&&l(1,X,Q,0)!==S.check?-3:_e(P,X,Q,Q)?(S.mode=31,-4):(S.havedict=1,b):v},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,a){"use strict";var s=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(p,w,b,v,m,E,y,A){var x,L,T,z,K,q,oe,W,ge,_e=A.bits,P=0,X=0,S=0,Q=0,Ie=0,ue=0,Ce=0,ie=0,xe=0,U=0,G=null,Ae=0,me=new s.Buf16(16),fe=new s.Buf16(16),je=null,pt=0;for(P=0;P<=15;P++)me[P]=0;for(X=0;X<v;X++)me[w[b+X]]++;for(Ie=_e,Q=15;1<=Q&&me[Q]===0;Q--);if(Q<Ie&&(Ie=Q),Q===0)return m[E++]=20971520,m[E++]=20971520,A.bits=1,0;for(S=1;S<Q&&me[S]===0;S++);for(Ie<S&&(Ie=S),P=ie=1;P<=15;P++)if(ie<<=1,(ie-=me[P])<0)return-1;if(0<ie&&(p===0||Q!==1))return-1;for(fe[1]=0,P=1;P<15;P++)fe[P+1]=fe[P]+me[P];for(X=0;X<v;X++)w[b+X]!==0&&(y[fe[w[b+X]]++]=X);if(q=p===0?(G=je=y,19):p===1?(G=l,Ae-=257,je=h,pt-=257,256):(G=u,je=f,-1),P=S,K=E,Ce=X=U=0,T=-1,z=(xe=1<<(ue=Ie))-1,p===1&&852<xe||p===2&&592<xe)return 1;for(;;){for(oe=P-Ce,ge=y[X]<q?(W=0,y[X]):y[X]>q?(W=je[pt+y[X]],G[Ae+y[X]]):(W=96,0),x=1<<P-Ce,S=L=1<<ue;m[K+(U>>Ce)+(L-=x)]=oe<<24|W<<16|ge|0,L!==0;);for(x=1<<P-1;U&x;)x>>=1;if(x!==0?(U&=x-1,U+=x):U=0,X++,--me[P]==0){if(P===Q)break;P=w[b+y[X]]}if(Ie<P&&(U&z)!==T){for(Ce===0&&(Ce=Ie),K+=S,ie=1<<(ue=P-Ce);ue+Ce<Q&&!((ie-=me[ue+Ce])<=0);)ue++,ie<<=1;if(xe+=1<<ue,p===1&&852<xe||p===2&&592<xe)return 1;m[T=U&z]=Ie<<24|ue<<16|K-E|0}}return U!==0&&(m[K+U]=P-Ce<<24|4194304),A.bits=Ie,0}},{"../utils/common":41}],51:[function(r,i,a){"use strict";i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,i,a){"use strict";var s=r("../utils/common"),l=0,h=1;function u(C){for(var N=C.length;0<=--N;)C[N]=0}var f=0,p=29,w=256,b=w+1+p,v=30,m=19,E=2*b+1,y=15,A=16,x=7,L=256,T=16,z=17,K=18,q=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],oe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ge=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_e=new Array(2*(b+2));u(_e);var P=new Array(2*v);u(P);var X=new Array(512);u(X);var S=new Array(256);u(S);var Q=new Array(p);u(Q);var Ie,ue,Ce,ie=new Array(v);function xe(C,N,ae,se,H){this.static_tree=C,this.extra_bits=N,this.extra_base=ae,this.elems=se,this.max_length=H,this.has_stree=C&&C.length}function U(C,N){this.dyn_tree=C,this.max_code=0,this.stat_desc=N}function G(C){return C<256?X[C]:X[256+(C>>>7)]}function Ae(C,N){C.pending_buf[C.pending++]=255&N,C.pending_buf[C.pending++]=N>>>8&255}function me(C,N,ae){C.bi_valid>A-ae?(C.bi_buf|=N<<C.bi_valid&65535,Ae(C,C.bi_buf),C.bi_buf=N>>A-C.bi_valid,C.bi_valid+=ae-A):(C.bi_buf|=N<<C.bi_valid&65535,C.bi_valid+=ae)}function fe(C,N,ae){me(C,ae[2*N],ae[2*N+1])}function je(C,N){for(var ae=0;ae|=1&C,C>>>=1,ae<<=1,0<--N;);return ae>>>1}function pt(C,N,ae){var se,H,de=new Array(y+1),ve=0;for(se=1;se<=y;se++)de[se]=ve=ve+ae[se-1]<<1;for(H=0;H<=N;H++){var he=C[2*H+1];he!==0&&(C[2*H]=je(de[he]++,he))}}function Ue(C){var N;for(N=0;N<b;N++)C.dyn_ltree[2*N]=0;for(N=0;N<v;N++)C.dyn_dtree[2*N]=0;for(N=0;N<m;N++)C.bl_tree[2*N]=0;C.dyn_ltree[2*L]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function Ge(C){8<C.bi_valid?Ae(C,C.bi_buf):0<C.bi_valid&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function dt(C,N,ae,se){var H=2*N,de=2*ae;return C[H]<C[de]||C[H]===C[de]&&se[N]<=se[ae]}function gt(C,N,ae){for(var se=C.heap[ae],H=ae<<1;H<=C.heap_len&&(H<C.heap_len&&dt(N,C.heap[H+1],C.heap[H],C.depth)&&H++,!dt(N,se,C.heap[H],C.depth));)C.heap[ae]=C.heap[H],ae=H,H<<=1;C.heap[ae]=se}function Zt(C,N,ae){var se,H,de,ve,he=0;if(C.last_lit!==0)for(;se=C.pending_buf[C.d_buf+2*he]<<8|C.pending_buf[C.d_buf+2*he+1],H=C.pending_buf[C.l_buf+he],he++,se===0?fe(C,H,N):(fe(C,(de=S[H])+w+1,N),(ve=q[de])!==0&&me(C,H-=Q[de],ve),fe(C,de=G(--se),ae),(ve=oe[de])!==0&&me(C,se-=ie[de],ve)),he<C.last_lit;);fe(C,L,N)}function Ht(C,N){var ae,se,H,de=N.dyn_tree,ve=N.stat_desc.static_tree,he=N.stat_desc.has_stree,Ee=N.stat_desc.elems,et=-1;for(C.heap_len=0,C.heap_max=E,ae=0;ae<Ee;ae++)de[2*ae]!==0?(C.heap[++C.heap_len]=et=ae,C.depth[ae]=0):de[2*ae+1]=0;for(;C.heap_len<2;)de[2*(H=C.heap[++C.heap_len]=et<2?++et:0)]=1,C.depth[H]=0,C.opt_len--,he&&(C.static_len-=ve[2*H+1]);for(N.max_code=et,ae=C.heap_len>>1;1<=ae;ae--)gt(C,de,ae);for(H=Ee;ae=C.heap[1],C.heap[1]=C.heap[C.heap_len--],gt(C,de,1),se=C.heap[1],C.heap[--C.heap_max]=ae,C.heap[--C.heap_max]=se,de[2*H]=de[2*ae]+de[2*se],C.depth[H]=(C.depth[ae]>=C.depth[se]?C.depth[ae]:C.depth[se])+1,de[2*ae+1]=de[2*se+1]=H,C.heap[1]=H++,gt(C,de,1),2<=C.heap_len;);C.heap[--C.heap_max]=C.heap[1],(function(We,Ct){var nr,Qt,rr,at,Ar,Xr,gn=Ct.dyn_tree,To=Ct.max_code,Ai=Ct.stat_desc.static_tree,Hl=Ct.stat_desc.has_stree,Fl=Ct.stat_desc.extra_bits,Da=Ct.stat_desc.extra_base,Sr=Ct.stat_desc.max_length,Jr=0;for(at=0;at<=y;at++)We.bl_count[at]=0;for(gn[2*We.heap[We.heap_max]+1]=0,nr=We.heap_max+1;nr<E;nr++)Sr<(at=gn[2*gn[2*(Qt=We.heap[nr])+1]+1]+1)&&(at=Sr,Jr++),gn[2*Qt+1]=at,To<Qt||(We.bl_count[at]++,Ar=0,Da<=Qt&&(Ar=Fl[Qt-Da]),Xr=gn[2*Qt],We.opt_len+=Xr*(at+Ar),Hl&&(We.static_len+=Xr*(Ai[2*Qt+1]+Ar)));if(Jr!==0){do{for(at=Sr-1;We.bl_count[at]===0;)at--;We.bl_count[at]--,We.bl_count[at+1]+=2,We.bl_count[Sr]--,Jr-=2}while(0<Jr);for(at=Sr;at!==0;at--)for(Qt=We.bl_count[at];Qt!==0;)To<(rr=We.heap[--nr])||(gn[2*rr+1]!==at&&(We.opt_len+=(at-gn[2*rr+1])*gn[2*rr],gn[2*rr+1]=at),Qt--)}})(C,N),pt(de,et,C.bl_count)}function _(C,N,ae){var se,H,de=-1,ve=N[1],he=0,Ee=7,et=4;for(ve===0&&(Ee=138,et=3),N[2*(ae+1)+1]=65535,se=0;se<=ae;se++)H=ve,ve=N[2*(se+1)+1],++he<Ee&&H===ve||(he<et?C.bl_tree[2*H]+=he:H!==0?(H!==de&&C.bl_tree[2*H]++,C.bl_tree[2*T]++):he<=10?C.bl_tree[2*z]++:C.bl_tree[2*K]++,de=H,et=(he=0)===ve?(Ee=138,3):H===ve?(Ee=6,3):(Ee=7,4))}function J(C,N,ae){var se,H,de=-1,ve=N[1],he=0,Ee=7,et=4;for(ve===0&&(Ee=138,et=3),se=0;se<=ae;se++)if(H=ve,ve=N[2*(se+1)+1],!(++he<Ee&&H===ve)){if(he<et)for(;fe(C,H,C.bl_tree),--he!=0;);else H!==0?(H!==de&&(fe(C,H,C.bl_tree),he--),fe(C,T,C.bl_tree),me(C,he-3,2)):he<=10?(fe(C,z,C.bl_tree),me(C,he-3,3)):(fe(C,K,C.bl_tree),me(C,he-11,7));de=H,et=(he=0)===ve?(Ee=138,3):H===ve?(Ee=6,3):(Ee=7,4)}}u(ie);var Z=!1;function O(C,N,ae,se){me(C,(f<<1)+(se?1:0),3),(function(H,de,ve,he){Ge(H),he&&(Ae(H,ve),Ae(H,~ve)),s.arraySet(H.pending_buf,H.window,de,ve,H.pending),H.pending+=ve})(C,N,ae,!0)}a._tr_init=function(C){Z||((function(){var N,ae,se,H,de,ve=new Array(y+1);for(H=se=0;H<p-1;H++)for(Q[H]=se,N=0;N<1<<q[H];N++)S[se++]=H;for(S[se-1]=H,H=de=0;H<16;H++)for(ie[H]=de,N=0;N<1<<oe[H];N++)X[de++]=H;for(de>>=7;H<v;H++)for(ie[H]=de<<7,N=0;N<1<<oe[H]-7;N++)X[256+de++]=H;for(ae=0;ae<=y;ae++)ve[ae]=0;for(N=0;N<=143;)_e[2*N+1]=8,N++,ve[8]++;for(;N<=255;)_e[2*N+1]=9,N++,ve[9]++;for(;N<=279;)_e[2*N+1]=7,N++,ve[7]++;for(;N<=287;)_e[2*N+1]=8,N++,ve[8]++;for(pt(_e,b+1,ve),N=0;N<v;N++)P[2*N+1]=5,P[2*N]=je(N,5);Ie=new xe(_e,q,w+1,b,y),ue=new xe(P,oe,0,v,y),Ce=new xe(new Array(0),W,0,m,x)})(),Z=!0),C.l_desc=new U(C.dyn_ltree,Ie),C.d_desc=new U(C.dyn_dtree,ue),C.bl_desc=new U(C.bl_tree,Ce),C.bi_buf=0,C.bi_valid=0,Ue(C)},a._tr_stored_block=O,a._tr_flush_block=function(C,N,ae,se){var H,de,ve=0;0<C.level?(C.strm.data_type===2&&(C.strm.data_type=(function(he){var Ee,et=4093624447;for(Ee=0;Ee<=31;Ee++,et>>>=1)if(1&et&&he.dyn_ltree[2*Ee]!==0)return l;if(he.dyn_ltree[18]!==0||he.dyn_ltree[20]!==0||he.dyn_ltree[26]!==0)return h;for(Ee=32;Ee<w;Ee++)if(he.dyn_ltree[2*Ee]!==0)return h;return l})(C)),Ht(C,C.l_desc),Ht(C,C.d_desc),ve=(function(he){var Ee;for(_(he,he.dyn_ltree,he.l_desc.max_code),_(he,he.dyn_dtree,he.d_desc.max_code),Ht(he,he.bl_desc),Ee=m-1;3<=Ee&&he.bl_tree[2*ge[Ee]+1]===0;Ee--);return he.opt_len+=3*(Ee+1)+5+5+4,Ee})(C),H=C.opt_len+3+7>>>3,(de=C.static_len+3+7>>>3)<=H&&(H=de)):H=de=ae+5,ae+4<=H&&N!==-1?O(C,N,ae,se):C.strategy===4||de===H?(me(C,2+(se?1:0),3),Zt(C,_e,P)):(me(C,4+(se?1:0),3),(function(he,Ee,et,We){var Ct;for(me(he,Ee-257,5),me(he,et-1,5),me(he,We-4,4),Ct=0;Ct<We;Ct++)me(he,he.bl_tree[2*ge[Ct]+1],3);J(he,he.dyn_ltree,Ee-1),J(he,he.dyn_dtree,et-1)})(C,C.l_desc.max_code+1,C.d_desc.max_code+1,ve+1),Zt(C,C.dyn_ltree,C.dyn_dtree)),Ue(C),se&&Ge(C)},a._tr_tally=function(C,N,ae){return C.pending_buf[C.d_buf+2*C.last_lit]=N>>>8&255,C.pending_buf[C.d_buf+2*C.last_lit+1]=255&N,C.pending_buf[C.l_buf+C.last_lit]=255&ae,C.last_lit++,N===0?C.dyn_ltree[2*ae]++:(C.matches++,N--,C.dyn_ltree[2*(S[ae]+w+1)]++,C.dyn_dtree[2*G(N)]++),C.last_lit===C.lit_bufsize-1},a._tr_align=function(C){me(C,2,3),fe(C,L,_e),(function(N){N.bi_valid===16?(Ae(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):8<=N.bi_valid&&(N.pending_buf[N.pending++]=255&N.bi_buf,N.bi_buf>>=8,N.bi_valid-=8)})(C)}},{"../utils/common":41}],53:[function(r,i,a){"use strict";i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,i,a){"use strict";i.exports=typeof setImmediate=="function"?setImmediate:function(){var s=[].slice.apply(arguments);s.splice(1,0,0),setTimeout.apply(null,s)}},{}]},{},[10])(10)})})),T0=u3(),f3=d3(),p3=Fi(h3(),1);function g3(e){switch(e){case"image/jpeg":return"jpg";case"image/png":return"png";case"image/webp":return"webp";case"image/gif":return"gif";case"image/bmp":return"bmp";default:return"png"}}async function m3(e){if(!e.src)return null;try{const t=await fetch(e.src);if(t.ok)return Me(`Got blob for page ${e.src} from fetch`),await t.blob()}catch(t){Me(`Failed to get blob for page ${e.src} from fetch`,t)}return typeof GM_xmlhttpRequest<"u"?new Promise(t=>{GM_xmlhttpRequest({method:"GET",url:e.src,responseType:"blob",onload:r=>{r.status===200?(Me(`Got blob for page ${e.src} from GM_xmlhttpRequest`),t(r.response)):(Me(`Failed to get blob for page ${e.src} from GM_xmlhttpRequest`,r.statusText),t(null))},onerror:r=>{Me(`Failed to get blob for page ${e.src} from GM_xmlhttpRequest`,r),t(null)}})}):null}async function v3(e){const t=e.ref?.value;if(!t)return null;try{const r=document.createElement("canvas"),i=r.getContext("2d");if(i)return r.width=t.naturalWidth,r.height=t.naturalHeight,i.drawImage(t,0,0),await new Promise(a=>{r.toBlob(s=>{s&&Me(`Got blob for page ${e.src} from canvas`),a(s)},"image/png",1)})}catch(r){Me(`Failed to get blob for page ${e.src} from canvas`,r)}return null}async function b3(e){if(e.blob)return Me(`Got blob for page ${e.src} from cache`),e.blob;const t=await m3(e)||await v3(e);return t||Me(`Failed to get blob for page ${e.src}`),t}async function w3(){Pe("download","working");const e=new p3.default,t=pe("images")??{},r=pe("manga"),i=r?.pages??0,a=Math.floor(Math.log10(i||1))+1,s=Se.default.sortBy(Se.default.entries(t),([f])=>Number(f)),l=[],h=f=>{Pe("dialog",{open:!0,title:j("BUTTON_DOWNLOAD"),content:le`
        <div style='display: flex; flex-direction: column; gap: 10px;'>
          <p>${j("DOWNLOAD_PROGRESS").replace("##num##",f.toString()).replace("##total##",i.toString())}</p>
          <progress value='${f}' max='${i}' style='width: 100%; height: 20px;'></progress>
        </div>
      `,footer:le`
        <mov-button @click=${()=>Pe("download","cancelled")}>
          ${j("CANCEL")}
        </mov-button>
      `})};h(0);let u=0;for(const[f,p]of s){if(pe("download")==="cancelled"){Me("Download cancelled"),Pe("dialog",null),Pe("download",void 0);return}try{const w=await b3(p);if(w){const b=g3(w.type),v=`Page-${Number(f).toString().padStart(a,"0")}.${b}`;Me(`${v} Added to Zip from Blob`),e.file(v,w,{createFolders:!0,compression:"DEFLATE"})}else l.push(p.src??f)}catch(w){Me(`Error processing page ${f}`,w),l.push(p.src??f)}finally{u+=1,h(u)}}Pe("dialog",{open:!0,title:j("BUTTON_DOWNLOAD"),content:le`
      <div style='display: flex; flex-direction: column; gap: 10px;'>
        <p>${j("GENERATING_ZIP")}</p>
        <progress style='width: 100%; height: 20px;'></progress>
      </div>
    `,footer:le``}),l.length>0&&(Me("Some images failed to download:",l),e.file("failed_pages.txt",l.join(`
`))),Me("Generating Zip"),e.generateAsync({type:"blob"}).then(f=>{Me("Download Ready"),(0,f3.saveAs)(f,`${r?.title??document.title}.zip`,{autoBom:!1}),l.length>0?Pe("dialog",{open:!0,title:j("DOWNLOAD_INCOMPLETE"),icon:"warning",content:le`<p>${j("DOWNLOAD_INCOMPLETE_MESSAGE")}</p>`,footer:le`<mov-button @click=${()=>Pe("dialog",null)}>
            ${j("CLOSE")}
          </mov-button>`}):Pe("dialog",null)}).catch(f=>{Me("Error generating zip",f),Pe("dialog",{open:!0,title:j("WARNING"),icon:"error",content:le`<p>Error generating zip: ${f.message}</p>`,footer:le`<mov-button @click=${()=>Pe("dialog",null)}>
          ${j("CLOSE")}
        </mov-button>`})}).finally(()=>{Pe("download",void 0)})}function L0(){pe("download")!=="working"&&(Me("Downloading Chapter"),w3().catch(e=>Me("Error downloading chapter",e)))}function _3(){ti("hidePageControls",e=>!e)}function pi(e){const t=e.currentTarget||e.target,r=t.getAttribute("value")??t.getAttribute("href");e.button!==1&&!e.ctrlKey&&(r&&r!=="#"?window.location.href=(0,T0.sanitizeUrl)(r):t.id==="series"&&(Ss()?window.location.href=window.location.pathname:window.history.back()))}function y3(e){if(e)if(Y("viewMode").startsWith("Fluid")){const t=pe("chapter").value;if(t){const r=e.getBoundingClientRect(),i=t.getBoundingClientRect();t.scrollBy({left:r.left-i.left,top:r.top-i.top,behavior:"instant"})}}else{const t=e.getBoundingClientRect();window.scrollTo({top:t.top+window.scrollY,left:t.left+window.scrollX,behavior:"instant"})}}Jt.listen((e,t,r)=>{r==="scrollToPage"&&e.scrollToPage!==void 0&&(e.scrollToPage<=0?window.scrollTo(0,0):y3(pe("images")?.[e.scrollToPage]?.ref?.value),setTimeout(()=>Pe("scrollToPage",void 0),10))});function k3(e){const t=e.currentTarget.value;Pe("scrollToPage",parseInt(t,10))}function E3(e){Pe("scrollToPage",e)}var Ol=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Tl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent(`on${t}`,r)}function gi(e,t,r,i){e&&(e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent(`on${t}`,r))}function R0(e,t){const r=t.slice(0,t.length-1),i=[];for(let a=0;a<r.length;a++)i.push(e[r[a].toLowerCase()]);return i}function P0(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function A3(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}function $0(e){let t=e.keyCode||e.which||e.charCode;return e.code&&/^Key[A-Z]$/.test(e.code)&&(t=e.code.charCodeAt(3)),t}var mi={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ol?173:189,"=":Ol?61:187,";":Ol?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Mn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},vi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},It={16:!1,18:!1,17:!1,91:!1},ft={};for(let e=1;e<20;e++)mi[`f${e}`]=111+e;var it=[],bi=null,Mo=null,D0="all",tr=new Map,xo=e=>mi[e.toLowerCase()]||Mn[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),S3=e=>Object.keys(mi).find(t=>mi[t]===e),M3=e=>Object.keys(Mn).find(t=>Mn[t]===e),z0=e=>{D0=e||"all"},wi=()=>D0||"all",x3=()=>it.slice(0),I3=()=>it.map(e=>S3(e)||M3(e)||String.fromCharCode(e)),C3=()=>{const e=[];return Object.keys(ft).forEach(t=>{ft[t].forEach(({key:r,scope:i,mods:a,shortcut:s})=>{e.push({scope:i,shortcut:s,mods:a,keys:r.split("+").map(l=>xo(l))})})}),e},N0=e=>{const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i},O3=e=>(typeof e=="string"&&(e=xo(e)),it.indexOf(e)!==-1),T3=(e,t)=>{let r,i;e||(e=wi());for(const a in ft)if(Object.prototype.hasOwnProperty.call(ft,a))for(r=ft[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(({element:s})=>Ll(s)):i++;wi()===e&&z0(t||"all")};function L3(e){let t=$0(e);e.key&&e.key.toLowerCase()==="capslock"&&(t=xo(e.key));const r=it.indexOf(t);if(r>=0&&it.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&it.splice(0,it.length),(t===93||t===224)&&(t=91),t in It){It[t]=!1;for(const i in Mn)Mn[i]===t&&(Zn[i]=!1)}}var B0=(e,...t)=>{if(typeof e>"u")Object.keys(ft).forEach(r=>{Array.isArray(ft[r])&&ft[r].forEach(i=>Ma(i)),delete ft[r]}),Ll(null);else if(Array.isArray(e))e.forEach(r=>{r.key&&Ma(r)});else if(typeof e=="object")e.key&&Ma(e);else if(typeof e=="string"){let[r,i]=t;typeof r=="function"&&(i=r,r=""),Ma({key:e,scope:r,method:i,splitKey:"+"})}},Ma=({key:e,scope:t,method:r,splitKey:i="+"})=>{P0(e).forEach(a=>{const s=a.split(i),l=s.length,h=s[l-1],u=h==="*"?"*":xo(h);if(!ft[u])return;t||(t=wi());const f=l>1?R0(Mn,s):[],p=[];ft[u]=ft[u].filter(w=>{const b=(r?w.method===r:!0)&&w.scope===t&&A3(w.mods,f);return b&&p.push(w.element),!b}),p.forEach(w=>Ll(w))})};function H0(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in It)Object.prototype.hasOwnProperty.call(It,s)&&(!It[s]&&t.mods.indexOf(+s)>-1||It[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!It[16]&&!It[18]&&!It[17]&&!It[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(it),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function F0(e,t){const r=ft["*"];let i=$0(e);if(e.key&&e.key.toLowerCase()==="capslock"||!(Zn.filter||N0).call(this,e))return;if((i===93||i===224)&&(i=91),it.indexOf(i)===-1&&i!==229&&it.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(h=>{const u=vi[h];e[h]&&it.indexOf(u)===-1?it.push(u):!e[h]&&it.indexOf(u)>-1?it.splice(it.indexOf(u),1):h==="metaKey"&&e[h]&&(it=it.filter(f=>f in vi||f===i))}),i in It){It[i]=!0;for(const h in Mn)Object.prototype.hasOwnProperty.call(Mn,h)&&(Zn[h]=e[vi[Mn[h]]]);if(!r)return}for(const h in It)Object.prototype.hasOwnProperty.call(It,h)&&(It[h]=e[vi[h]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(it.indexOf(17)===-1&&it.push(17),it.indexOf(18)===-1&&it.push(18),It[17]=!0,It[18]=!0);const a=wi();if(r)for(let h=0;h<r.length;h++)r[h].scope===a&&(e.type==="keydown"&&r[h].keydown||e.type==="keyup"&&r[h].keyup)&&H0(e,r[h],a,t);if(!(i in ft))return;const s=ft[i],l=s.length;for(let h=0;h<l;h++)if((e.type==="keydown"&&s[h].keydown||e.type==="keyup"&&s[h].keyup)&&s[h].key){const u=s[h],{splitKey:f}=u,p=u.key.split(f),w=[];for(let b=0;b<p.length;b++)w.push(xo(p[b]));w.sort().join("")===it.sort().join("")&&H0(e,u,a,t)}}var Zn=function e(t,r,i){it=[];const a=P0(t);let s=[],l="all",h=document,u=0,f=!1,p=!0,w="+",b=!1,v=!1;if(i===void 0&&typeof r=="function"&&(i=r),Object.prototype.toString.call(r)==="[object Object]"){const m=r;m.scope&&(l=m.scope),m.element&&(h=m.element),m.keyup&&(f=m.keyup),m.keydown!==void 0&&(p=m.keydown),m.capture!==void 0&&(b=m.capture),typeof m.splitKey=="string"&&(w=m.splitKey),m.single===!0&&(v=!0)}for(typeof r=="string"&&(l=r),v&&B0(t,l);u<a.length;u++){const m=a[u].split(w);s=[],m.length>1&&(s=R0(Mn,m));let E=m[m.length-1];E=E==="*"?"*":xo(E),E in ft||(ft[E]=[]),ft[E].push({keyup:f,keydown:p,scope:l,mods:s,shortcut:a[u],method:i,key:a[u],splitKey:w,element:h})}if(typeof h<"u"&&typeof window<"u"){if(!tr.has(h)){const m=(y=window.event)=>F0(y,h),E=(y=window.event)=>{F0(y,h),L3(y)};tr.set(h,{keydownListener:m,keyupListenr:E,capture:b}),Tl(h,"keydown",m,b),Tl(h,"keyup",E,b)}if(!bi){const m=()=>{it=[]};bi={listener:m,capture:b},Tl(window,"focus",m,b)}if(!Mo&&typeof document<"u"){const m=()=>{it=[];for(const A in It)It[A]=!1;for(const A in Mn)e[A]=!1},E=m,y=m;document.addEventListener("fullscreenchange",E),document.addEventListener("webkitfullscreenchange",y),Mo={fullscreen:E,webkit:y}}}};function R3(e,t="all"){Object.keys(ft).forEach(r=>{ft[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method({},i)})})}function Ll(e){const t=Object.values(ft).flat();if(t.findIndex(({element:r})=>r===e)<0&&e){const{keydownListener:r,keyupListenr:i,capture:a}=tr.get(e)||{};r&&i&&(gi(e,"keyup",i,a),gi(e,"keydown",r,a),tr.delete(e))}if(t.length<=0||tr.size<=0){if(Array.from(tr.keys()).forEach(r=>{const{keydownListener:i,keyupListenr:a,capture:s}=tr.get(r)||{};i&&a&&(gi(r,"keyup",a,s),gi(r,"keydown",i,s),tr.delete(r))}),tr.clear(),Object.keys(ft).forEach(r=>delete ft[r]),bi){const{listener:r,capture:i}=bi;gi(window,"focus",r,i),bi=null}Mo&&typeof document<"u"&&(document.removeEventListener("fullscreenchange",Mo.fullscreen),document.removeEventListener("webkitfullscreenchange",Mo.webkit),Mo=null)}}var Rl={getPressedKeyString:I3,setScope:z0,getScope:wi,deleteScope:T3,getPressedKeyCodes:x3,getAllKeyCodes:C3,isPressed:O3,filter:N0,trigger:R3,unbind:B0,keyMap:mi,modifier:Mn,modifierMap:vi};for(const e in Rl){const t=e;Object.prototype.hasOwnProperty.call(Rl,t)&&(Zn[t]=Rl[t])}if(typeof window<"u"){const e=window.hotkeys;Zn.noConflict=t=>(t&&window.hotkeys===Zn&&(window.hotkeys=e),Zn),window.hotkeys=Zn}function G0(){const e=pe("chapter").value;if(Y("viewMode").startsWith("Fluid")){const t=Y("viewMode")==="FluidRTL"?-1:1;e?.scrollBy({top:0,left:Y("scrollHeight")*t,behavior:"smooth"}),e&&e.scrollLeft+e.clientWidth>=e.scrollWidth-2&&(Pe("autoScroll",!1),Me("Finished auto scroll"))}else window.scrollBy({top:Y("scrollHeight"),left:0,behavior:"smooth"}),window.scrollY+window.innerHeight>=document.documentElement.scrollHeight&&(Pe("autoScroll",!1),Me("Finished auto scroll"));pe("autoScroll")&&requestAnimationFrame(G0)}function xa(){pe("autoScroll")?(Pe("autoScroll",!1),Me("Stopped auto scroll")):(Pe("autoScroll",!0),requestAnimationFrame(G0),Me("Start auto scroll"))}var Ia=!1,P3=Se.default.debounce(()=>{xa(),Ia=!1},500);function $3(){!Ia&&pe("autoScroll")&&(xa(),Ia=!0),Ia&&!pe("autoScroll")&&P3()}function D3(){window.addEventListener("wheel",Se.default.throttle($3,500))}var qn=class extends Qe{constructor(...t){super(...t),this.open=!1,this.mode="dialog",this.fullscreen=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!0}static{this.styles=Lt`
    :host {
      --panel-overlay-transition: opacity linear 0.25s;
      --panel-overlay-opacity: 0.5;
      --panel-z-index: 1000;
    }

    .backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background-color: #000;
      opacity: 0;
      transition: var(--panel-overlay-transition);
      z-index: var(--panel-z-index);
    }

    :host([open]) .backdrop {
      display: block;
      opacity: var(--panel-overlay-opacity);
    }

    dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      z-index: calc(var(--panel-z-index) + 1);
      position: fixed;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      visibility: hidden;
      max-width: 100vw;
      max-height: 100vh;
    }

    :host([open]:not([mode='inline'])) dialog,
    .closing {
      visibility: visible;
    }

    /* Header Styles */
    .header-bar {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
      flex-shrink: 0;
    }
    .action-item {
      order: 1;
    }
    .header-content {
      order: 2;
      flex-grow: 1;
      text-align: center;
      font-weight: bold;
    }
    .close-button-container {
      order: 3;
      display: flex;
      justify-content: flex-end;
    }
    .action-item,
    .close-button-container {
      min-width: 40px;
    }
    .close-button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.5rem;
      line-height: 1;
      padding: 0;
      color: inherit;
    }
    .content-slot {
      display: block;
      padding: 1rem;
      overflow-y: auto;
      flex-grow: 1;
    }

    .icon-container {
      display: flex;
      justify-content: center;
      padding-block-end: 1rem;
      text-align: center;
    }
    :host([icon='success']) .icon-container mov-icon {
      color: var(--theme-color-success, #28a745);
    }
    :host([icon='error']) .icon-container mov-icon {
      color: var(--theme-color-danger, #dc3545);
    }
    :host([icon='warning']) .icon-container mov-icon {
      color: var(--theme-color-warning, #ffc107);
    }
    :host([icon='info']) .icon-container mov-icon {
      color: var(--theme-color-info, #17a2b8);
    }
    :host([icon='question']) .icon-container mov-icon {
      color: var(--theme-color-secondary, #6c757d);
    }

    /* --- MODE: INLINE --- */
    :host([mode='inline']) {
      display: block;
      width: 500px;
      max-width: 100%;
    }
    :host([mode='inline']) dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      box-shadow: none;
      display: flex;
      flex-direction: column;
      visibility: visible;
      position: relative;
      width: 500px;
      max-width: 100%;
      border: 1px solid var(--theme-border-color, #e0e0e0);
      border-radius: 12px;
    }
    :host([mode='inline']) .backdrop {
      display: none;
    }
    :host([mode='inline']) .close-button {
      display: none; /* No close button in inline mode */
    }

    /* --- MODE: DIALOG --- */
    :host([mode='dialog']) {
      --panel-transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }
    :host([mode='dialog']) dialog {
      opacity: 0;
      transition: var(--panel-transition);
    }
    :host([mode='dialog'][open]) dialog {
      opacity: 1;
    }
    :host([mode='dialog']:not([fullscreen])) dialog {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      border-radius: 12px;
      width: var(--dialog-width, 700px);
    }
    :host([mode='dialog']:not([fullscreen])[open]) dialog {
      transform: translate(-50%, -50%) scale(1);
    }
    :host([fullscreen]) {
      --panel-overlay-transition: none;
    }
    :host([fullscreen]) dialog {
      width: 100vw;
      height: 100vh;
      top: 0;
      left: 0;
      transform: translateY(2rem);
      border-radius: 0;
    }
    :host([fullscreen][open]) dialog {
      transform: translateY(0);
    }
  `}close(){this.open=!1}handleCancel(t){t.preventDefault(),this.close()}handleBackdropClick(){this.mode!=="inline"&&this.lightDismiss&&this.close()}handleClick(t){this.mode!=="inline"&&this.lightDismiss&&t.target===this.dialog&&this.close()}updated(t){this.mode!=="inline"&&t.has("open")&&(this.open?(this.dialog.classList.remove("closing"),this.dialog.show(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150)):t.get("open")===!0&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.dialog.classList.add("closing"),setTimeout(()=>{this.dialog.classList.remove("closing"),this.dialog.open&&this.dialog.close(),this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},300)))}render(){return le`
      <div
        class="backdrop"
        @click=${this.handleBackdropClick}
      ></div>
      <dialog
        part="dialog"
        @cancel=${this.handleCancel}
        @click=${this.handleClick}
      >
        ${this.withoutHeader?"":le`
          <div
            class="header-bar"
            part="header-bar"
          >
            <div class="action-item">
              <slot name="header-actions"></slot>
            </div>
            <div class="header-content" part="title">
              <slot name="label">${this.label}</slot>
            </div>
            <div
              class="close-button-container"
              part="close-button-container"
            >
              <button
                class="close-button"
                part="close-button"
                @click=${this.close}
                aria-label="Close"
              >
                ${Cl}
              </button>
            </div>
          </div>
        `}
        <div class="content-slot" part="body">
          ${this.icon?le`
                <div class="icon-container">
                  <mov-icon
                    .name=${z3(this.icon)}
                    size="4rem"
                  ></mov-icon>
                </div>
              `:""}
          <slot></slot>
        </div>
        <slot name="footer" part="footer"></slot>
      </dialog>
    `}};F([ne({type:Boolean,reflect:!0})],qn.prototype,"open",void 0),F([ne({type:String,reflect:!0})],qn.prototype,"mode",void 0),F([ne({type:Boolean,reflect:!0})],qn.prototype,"fullscreen",void 0),F([ne({type:String,reflect:!0})],qn.prototype,"label",void 0),F([ne({type:Boolean,reflect:!0,attribute:"without-header"})],qn.prototype,"withoutHeader",void 0),F([ne({type:Boolean,reflect:!0,attribute:"light-dismiss"})],qn.prototype,"lightDismiss",void 0),F([ne({type:String,reflect:!0})],qn.prototype,"icon",void 0),F([Fr("dialog")],qn.prototype,"dialog",void 0),qn=F([lt("mov-dialog")],qn);function Pl(e){const t=()=>Pe("dialog",null);e.timer&&setTimeout(t,e.timer),Pe("dialog",{open:!0,icon:e.icon,title:e.title,content:le`<div style="padding: 1rem;">${zu(e.html)}</div>`,footer:le`
      <div
        slot="footer"
        style="display: flex; justify-content: flex-end; padding: 0.5rem 1rem 1rem;"
      >
        <mov-button @click=${t}>OK</mov-button>
      </div>
    `})}function z3(e){switch(e){case"info":return"info-circle";case"warning":return"alert-circle";case"success":return"circle-check";case"error":return"circle-x";case"question":return"help";default:return""}}function N3(e){const t=e.currentTarget.value;Vu(t==="true")}function B3(e){const t=e.currentTarget.value;yt("locale",t)}function H3(e){const t=e.currentTarget.value;yt("loadMode",t)}function F3(e){const t=e.detail.checked;yt("fitWidthIfOversize",t)}function G3(e){const t=e.currentTarget.value;yt("navbar",t)}function W3(e){const t=e.currentTarget.value;yt("pagination",t)}function U3(e){const t=e.detail.checked;yt("downloadZip",t),t&&Pl({title:j("ATTENTION"),html:j("AUTO_DOWNLOAD"),timer:1e4,icon:"info"})}function V3(e){const t=e.detail.checked;yt("lazyLoadImages",t),t&&Pl({title:j("WARNING"),html:j("LAZY_LOAD"),icon:"warning"})}function Z3(e){const t=e.currentTarget.value;yt("lazyStart",parseInt(t,10))}function q3(e){const t=e.currentTarget.value;yt("loadSpeed",t),["Extreme","All"].includes(t)&&Pl({title:j("SPEED_WARNING"),html:j("SPEED_WARNING_MESSAGE"),icon:"warning"})}function j3(e){const t=e.currentTarget.value;yt("zoomStep",parseInt(t,10))}function K3(e){const t=e.currentTarget.value;L5("MinZoom",`#MangaOnlineViewer .PageContent .PageImg {min-width: ${t}vw;}`),yt("minZoom",parseInt(t,10))}function Y3(e){const t=e.detail.checked;yt("hidePageControls",t)}function X3(e){const t=e.currentTarget.value;yt("header",t)}function J3(e){const{value:t}=e.currentTarget;yt("scrollHeight",parseInt(t,10))}function W0(e){ti("scrollHeight",t=>{const r=t+e*25;if(r<=0)return 0;const i=Math.ceil(window.innerHeight/200)*100;return r>=i?i:r})}function Q3(){const e=Y("navbar");return e==="left"||e==="right"?window.innerWidth-34:window.innerWidth}function eb(){return Y("navbar")==="bottom"?window.innerHeight-34:window.innerHeight}function U0(e,t=Y("zoomMode"),r=Y("zoomValue")){const i=Q3(),a=eb();if(t==="width")e.width=i,e.height=void 0;else if(t==="height")e.width=void 0,e.height=a;else if(t==="percent"){const s=e.naturalWidth??e.ref?.value?.naturalWidth;e.width=s?s*(r/100):void 0,e.height=void 0}return e}function jr(e=Y("zoomMode"),t=Y("zoomValue")){Me("Zoom",e,t),fo("zoomMode",e),fo("zoomValue",t),e==="height"?Pe("scrollToPage",pe("currentPage")):Ur("header");const r=pe("images"),i=pe("manga"),a={};for(let s=i?.begin??1;s<=(i?.pages??1);s++)a[s]=U0({...r?.[s]},e,t);Pe("images",a)}function Io(e,t=Y("zoomValue")){return()=>{jr(e,t)}}function Ca(e=1){return()=>{const t=Y("zoomValue")+e*Y("zoomStep");t>0&&t<500&&jr("percent",t)}}function tb(e){const t=e.currentTarget.value;yt("zoomMode",t)}function nb(e){const t=parseInt(e.currentTarget.value,10);yt("zoomValue",t),jr("percent",t)}function rb(e){jr("percent",parseInt(e.currentTarget.value,10))}function pn(e){return()=>{fo("viewMode",e),e.startsWith("Fluid")?(fo("zoomMode","height"),fo("header","click")):(Ur("zoomMode"),Ur("zoomValue"),Ur("header")),jr()}}function ob(e){const t=e.currentTarget.value;yt("viewMode",t),pn(t)()}function ib(e){const t=Y("viewMode")==="FluidRTL"?-1:1;pe("chapter").value?.scrollBy({left:.8*window.innerWidth*e*t,behavior:"smooth"})}function ab(e){const t=pe("currentPage")+e;t<0?Pe("scrollToPage",0):t>(pe("manga")?.pages??1)||Pe("scrollToPage",t)}function sb(e){window.scrollBy({top:.8*window.innerHeight*e,behavior:"smooth"})}function lb(e){const t=pe("currentPage"),r=pe("manga");if(!r)return;const i=pe("images")??{},a=r.begin??1,s=r.pages??1,l=u=>{if(u<a||u>s)return!1;if(i[u]?.doublePage)return!0;let f=0;for(let p=u-1;p>=a&&!i[p]?.doublePage;p--)f++;return f%2===0};let h;if(e===1)for(h=t+1;h<=s&&!l(h);)h++;else if(l(t))for(h=t-1;h>a&&!l(h);)h--;else for(h=t;h>a&&!l(h);)h--;h<a?Pe("scrollToPage",0):h>s?Pe("scrollToPage",s):Pe("scrollToPage",h)}function V0(e){const t=Y("viewMode"),r=Y("zoomMode");Me("Scrolling view",t,"zoom",r,"sign",e),t.match(/^(Book|Manga)$/)&&r==="height"?lb(e):t.startsWith("Fluid")?ib(e):r==="height"?ab(e):sb(e)}function _i(e){const t=pe("manga")?.[e];t&&t!=="#"?window.location.href=(0,T0.sanitizeUrl)(t):e==="series"&&(Ss()?window.location.href=window.location.pathname:window.history.back())}var cb={SCROLL_UP(){V0(-1)},SCROLL_DOWN(){V0(1)},NEXT_CHAPTER(){_i("next")},PREVIOUS_CHAPTER(){_i("prev")},RETURN_CHAPTER_LIST(){_i("series")},ENLARGE(){Ca(1)()},REDUCE(){Ca(-1)()},RESTORE(){Io("percent",100)()},FIT_WIDTH(){Io("width")()},FIT_HEIGHT(){Io("height")()},SETTINGS(){Uu("panel",e=>e==="none"?"settings":"none")},VIEW_MODE_WEBCOMIC(){pn("WebComic")()},VIEW_MODE_VERTICAL(){pn("Vertical")()},VIEW_MODE_LEFT(){pn("FluidRTL")()},VIEW_MODE_RIGHT(){pn("FluidLTR")()},VIEW_MODE_GALLERY(){pn("Gallery")()},SCROLL_START(){xa()},INCREASE_SPEED(){W0(1)},DECREASE_SPEED(){W0(-1)}};function Z0(){document.onkeydown=null,document.onkeyup=null,window.onkeydown=null,window.onkeyup=null,window.onload=null,document.body.onload=null,Zn.unbind(),Se.default.keys(Y("keybinds")).forEach(e=>{Zn(Y("keybinds")[e]?.join(",")??"",Se.default.throttle(t=>{t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),cb[e]()},100))})}var yr=class extends Qe{constructor(...t){super(...t),this.mode="disabled",this.currentPage=1,this.totalPages=1,this.startPage=1}static{this.styles=Lt`
    :host {
      display: contents; /* Use contents to not interfere with layout */
      font-family:
        system-ui,
        -apple-system,
        sans-serif;
    }

    .slider-pagination {
      display: flex;
      position: fixed;
      bottom: 30px;
      left: 0;
      right: 0;
      background-color: transparent;
      justify-content: center;
      align-items: center;
      gap: 3px;
      width: 100%;
      max-width: 100%;
      z-index: 100;
    }

    .pagination-button {
      background: var(--mov-color-fill-loud);
      border: 1px solid var(--mov-color-fill-loud);
      color: var(--mov-color-on-loud);
      padding: 8px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
    }

    .pagination-button:hover:not(:disabled) {
      opacity: 0.8;
      transform: translateY(-1px);
    }

    .pagination-button:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .pagination-button mov-icon {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .slider-container {
      position: relative;
      max-width: 1000px;
      width: inherit;
      margin: 0 5px;
    }

    .pagination-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 4px;
      background: var(--mov-color-fill-loud);
      opacity: 0.5;
      border-radius: 2px;
      outline: none;
      cursor: pointer;
    }

    .pagination-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      background: white;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      border: 1px solid var(--mov-color-fill-loud);
    }

    .pagination-slider::-moz-range-thumb {
      width: 16px;
      height: 16px;
      background: white;
      border-radius: 50%;
      cursor: pointer;
      border: 1px solid var(--mov-color-fill-loud);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .slider-tooltip {
      position: absolute;
      top: -35px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.9);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    .slider-container:hover .slider-tooltip {
      opacity: 1;
    }

    .tooltip {
      position: absolute;
      bottom: 45px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--theme-body-background);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 1001;
    }

    .pagination-button:hover .tooltip {
      opacity: 1;
    }

    .side-arrow {
      position: fixed;
      top: var(--header-height, 50px);
      bottom: 0;
      width: 10vw;
      height: calc(100vh - var(--header-height, 50px));
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 99;
      opacity: 0;
      transition: opacity 0.2s ease-in-out;
      -webkit-tap-highlight-color: transparent;
    }

    .side-arrow:hover {
      background-color: var(--mov-color-primary-alpha-10);
      opacity: 1;
    }

    .side-arrow.left {
      left: 0;
    }

    .side-arrow.right {
      right: 0;
    }

    .side-arrow:active {
      background-color: var(--mov-color-primary-alpha-20);
    }

    .side-arrow mov-icon {
      width: 48px;
      height: 48px;
      fill: var(--mov-color-on-primary);
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }

    .side-arrow:disabled {
      display: none;
    }
  `}get isFirstPage(){return this.currentPage<=this.startPage}get isLastPage(){return this.currentPage>=this.totalPages-(1-this.startPage)}renderSlider(){return le`
      <div class="slider-pagination">
        <button
          class="pagination-button"
          @click=${pi}
          value="${this.prev}"
          ?disabled=${En(this.prev)||this.prev==="#"}
        >
          <mov-icon name="arrow-big-left"></mov-icon>
          <div class="tooltip">Previous Chapter</div>
        </button>

        <button
          class="pagination-button"
          @click=${this.goToPreviousPage}
          ?disabled=${this.isFirstPage}
        >
          <mov-icon name="chevron-left"></mov-icon>
          <div class="tooltip">Previous Page</div>
        </button>

        <div class="slider-container">
          <input
            type="range"
            class="pagination-slider"
            min="${this.startPage}"
            max="${this.totalPages}"
            .value="${this.currentPage.toString()}"
            @input="${k3}"
          />
          <div class="slider-tooltip">${this.currentPage} / ${this.totalPages}</div>
        </div>

        <button class="pagination-button" @click=${this.goToNextPage} ?disabled=${this.isLastPage}>
          <mov-icon name="chevron-right"></mov-icon>
          <div class="tooltip">Next Page</div>
        </button>

        <button
          class="pagination-button"
          @click=${pi}
          value="${this.next}"
          ?disabled=${En(this.next)||this.next==="#"}
        >
          <mov-icon name="arrow-big-right"></mov-icon>
          <div class="tooltip">Next Chapter</div>
        </button>
      </div>
    `}renderSideArrows(){return le`
      <div class="arrows-pagination">
        <button
          class="side-arrow left"
          @click=${this.handleLeftArrowClick}
          ?disabled=${this.isFirstPage&&(En(this.prev)||this.prev==="#")}
        >
          <mov-icon name="chevron-left"></mov-icon>
        </button>
        <button
          class="side-arrow right"
          @click=${this.handleRightArrowClick}
          ?disabled=${this.isLastPage&&(En(this.next)||this.next==="#")}
        >
          <mov-icon name="chevron-right"></mov-icon>
        </button>
      </div>
    `}render(){if(this.mode==="disabled")return Ne;const t=this.mode==="slider"||this.mode==="both",r=this.mode==="side-arrows"||this.mode==="both";return le`
      ${t?this.renderSlider():Ne} ${r?this.renderSideArrows():Ne}
    `}handleLeftArrowClick(){this.isFirstPage?_i("prev"):this.goToPreviousPage()}handleRightArrowClick(){this.isLastPage?_i("next"):this.goToNextPage()}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToNextPage(){this.goToPage(this.currentPage+1)}goToPage(t){Pe("scrollToPage",t)}};F([ne({type:String})],yr.prototype,"mode",void 0),F([ne({type:Number})],yr.prototype,"currentPage",void 0),F([ne({type:Number})],yr.prototype,"totalPages",void 0),F([ne({type:Number})],yr.prototype,"startPage",void 0),F([ne({type:String})],yr.prototype,"next",void 0),F([ne({type:String})],yr.prototype,"prev",void 0),yr=F([lt("manga-pagination")],yr);var kr=class extends Qe{constructor(...t){super(...t),this.open=!1,this.placement="end",this.label="",this.withoutHeader=!1,this.lightDismiss=!0}static{this.styles=Lt`
    :host {
      --panel-overlay-transition: opacity linear 0.25s;
      --panel-overlay-opacity: 0.5;
      --panel-z-index: 1000;
      --panel-transition: transform 0.25s ease-out;
    }

    .backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background-color: #000;
      opacity: 0;
      transition: var(--panel-overlay-transition);
      z-index: var(--panel-z-index);
    }

    :host([open]) .backdrop {
      display: block;
      opacity: var(--panel-overlay-opacity);
    }

    dialog {
      all: unset;
      background-color: var(--theme-background-color, #fff);
      color: var(--theme-text-color, #000);
      z-index: calc(var(--panel-z-index) + 1);
      position: fixed;
      box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      visibility: hidden;
      max-width: 100vw;
      max-height: 100vh;
      width: 350px;
      top: 0;
      bottom: 0;
      height: 100%;
      transition: var(--panel-transition);
    }

    :host([open]) dialog,
    .closing {
      visibility: visible;
    }

    /* Header Styles */
    .header-bar {
      display: flex;
      align-items: center;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
      flex-shrink: 0;
    }
    .action-item {
      order: 1;
    }
    .header-content {
      order: 2;
      flex-grow: 1;
      text-align: center;
      font-weight: bold;
    }
    .close-button-container {
      order: 3;
      display: flex;
      justify-content: flex-end;
    }
    .action-item,
    .close-button-container {
      min-width: 40px;
    }
    .close-button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.5rem;
      line-height: 1;
      padding: 0;
      color: inherit;
    }
    .content-slot {
      display: block;
      padding: 1rem;
      overflow-y: auto;
      flex-grow: 1;
    }

    :host([placement='start']) dialog {
      left: 0;
      transform: translateX(-100%);
    }
    :host([placement='end']) dialog {
      right: 0;
      transform: translateX(100%);
    }
    :host([placement='top']) dialog {
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      transform: translateY(-100%);
    }
    :host([placement='bottom']) dialog {
      bottom: 0;
      left: 0;
      width: 100%;
      height: auto;
      top: auto;
      transform: translateY(100%);
    }
    :host([open]) dialog {
      transform: none;
    }
    :host([placement='end']) .action-item {
      order: 3;
    }
    :host([placement='end']) .header-content {
      order: 2;
    }
    :host([placement='end']) .close-button-container {
      order: 1;
      justify-content: flex-start;
    }
    .footer-slot {
      display: block;
      padding: 1rem;
      border-top: 1px solid var(--theme-border-color, #e0e0e0);
    }
  `}close(){this.open=!1}handleCancel(t){t.preventDefault(),this.close()}handleBackdropClick(){this.lightDismiss&&this.close()}handleClick(t){this.lightDismiss&&t.target===this.dialog&&this.close()}updated(t){t.has("open")&&(this.open?(this.dialog.classList.remove("closing"),this.dialog.show(),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},250)):t.get("open")===!0&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),this.dialog.classList.add("closing"),setTimeout(()=>{this.dialog.classList.remove("closing"),this.dialog.open&&this.dialog.close(),this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},300)))}render(){return le`
      <div
        class="backdrop"
        @click=${this.handleBackdropClick}
      ></div>
      <dialog
        part="dialog"
        @cancel=${this.handleCancel}
        @click=${this.handleClick}
      >
        ${this.withoutHeader?"":le`
          <div
            class="header-bar"
            part="header-bar"
          >
            <div class="action-item">
              <slot name="header-actions"></slot>
            </div>
            <div class="header-content" part="title">
              <slot name="label">${this.label}</slot>
            </div>
            <div
              class="close-button-container"
              part="close-button-container"
            >
              <button
                class="close-button"
                part="close-button"
                @click=${this.close}
                aria-label="Close"
              >
                ${Cl}
              </button>
            </div>
          </div>
        `}
        <slot class="content-slot" part="body"></slot>
        <slot name="footer" class="footer-slot" part="footer"></slot>
      </dialog>
    `}};F([ne({type:Boolean,reflect:!0})],kr.prototype,"open",void 0),F([ne({type:String,reflect:!0})],kr.prototype,"placement",void 0),F([ne({type:String,reflect:!0})],kr.prototype,"label",void 0),F([ne({type:Boolean,reflect:!0,attribute:"without-header"})],kr.prototype,"withoutHeader",void 0),F([ne({type:Boolean,reflect:!0,attribute:"light-dismiss"})],kr.prototype,"lightDismiss",void 0),F([Fr("dialog")],kr.prototype,"dialog",void 0),kr=F([lt("mov-drawer")],kr);var Kr=class extends Qe{static{this.styles=Lt`
    :host {
      position: relative;
      display: inline-block;
    }
    :host([checkable]) {
      --mov-dropdown-item-checkmark-display: inline-block;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: var(--theme-background-color, #f9f9f9);
      min-width: 160px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      z-index: 1;
      list-style: none;
      padding: 0;
      margin: 0;
      border: 1px solid var(--theme-border-color, #ccc);
      border-radius: 5px;
    }
    :host([open]) .dropdown-content {
      display: block;
    }
  `}constructor(){super(),this.open=!1,this.checkable=!1,this.distance=0,this.skidding=0,this.placement="bottom-start",this.boundClickHandler=this.handleClickOutside.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.boundClickHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.boundClickHandler)}handleClickOutside(t){this.open&&!t.composedPath().includes(this)&&this.hide()}show(){this.open||(this.open=!0,this.dispatchEvent(new CustomEvent("wa-show",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-show",{bubbles:!0,composed:!0}))},150))}hide(){this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("wa-hide",{bubbles:!0,composed:!0})),setTimeout(()=>{this.dispatchEvent(new CustomEvent("wa-after-hide",{bubbles:!0,composed:!0}))},150))}toggle(){this.open?this.hide():this.show()}render(){return le`
      <div
        @click=${this.toggle}
        class="trigger-wrapper"
        part="trigger"
      >
        <slot name="trigger"></slot>
      </div>
      <div
        class="dropdown-content"
        part="menu"
      >
        <slot></slot>
      </div>
    `}};F([ne({type:Boolean,reflect:!0})],Kr.prototype,"open",void 0),F([ne({type:Boolean,reflect:!0})],Kr.prototype,"checkable",void 0),F([ne({type:Number})],Kr.prototype,"distance",void 0),F([ne({type:Number})],Kr.prototype,"skidding",void 0),F([ne({type:String})],Kr.prototype,"placement",void 0),Kr=F([lt("mov-dropdown")],Kr);var Er=class extends Qe{constructor(...t){super(...t),this.selected=!1,this.checked=!1,this.disabled=!1,this.value="",this.variant="default",this.type="normal"}static{this.styles=Lt`
    :host {
      display: block;
      min-width: max-content;
    }
    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      cursor: pointer;
      color: var(--theme-body-text-color);
      background-color: var(--theme-background-color);
      gap: 10px;
    }
    .item:hover {
      background-color: var(--mov-color-fill-normal);
      color: var(--mov-color-on-normal);
    }
    :host([selected]) .item,
    :host([checked]) .item {
      background-color: var(--mov-color-fill-normal);
      color: var(--mov-color-on-normal);
    }
    :host([disabled]) .item {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }
    :host([variant='danger']) .item {
      color: var(--theme-color-danger, #dc3545);
    }
    .item-content {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .check-icon {
      display: var(--mov-dropdown-item-checkmark-display, none);
      visibility: hidden;
      width: 1.2em;
      height: 1.2em;
    }
    :host([selected]) .check-icon,
    :host([checked]) .check-icon {
      visibility: visible;
    }
    ::slotted([slot='details']) {
      font-size: 0.9em;
      opacity: 0.7;
    }
  `}handleSelect(){this.disabled||this.dispatchEvent(new CustomEvent("wa-select",{detail:{item:this},bubbles:!0,composed:!0}))}render(){return le`
      <div
        class="item"
        @click=${this.handleSelect}
        part="base"
      >
        <div
          class="item-content"
          part="label"
        >
          <mov-icon
            class="check-icon"
            name="IconCheck"
            part="checkmark"
          ></mov-icon>
          <slot
            name="icon"
            part="icon"
          ></slot>
          <slot></slot>
        </div>
        <slot
          name="details"
          part="details"
        ></slot>
      </div>
    `}};F([ne({type:Boolean,reflect:!0})],Er.prototype,"selected",void 0),F([ne({type:Boolean,reflect:!0})],Er.prototype,"checked",void 0),F([ne({type:Boolean,reflect:!0})],Er.prototype,"disabled",void 0),F([ne({type:String})],Er.prototype,"value",void 0),F([ne({type:String,reflect:!0})],Er.prototype,"variant",void 0),F([ne({type:String,reflect:!0})],Er.prototype,"type",void 0),Er=F([lt("mov-dropdown-item")],Er);var $l=class extends Qe{constructor(...t){super(...t),this.orientation="horizontal"}static{this.styles=Lt`
    :host {
      display: block;
    }
    :host([orientation='horizontal']) .divider {
      border-top: 1px solid var(--theme-border-color, #ccc);
      margin: 4px 0;
    }
    :host([orientation='vertical']) .divider {
      border-left: 1px solid var(--theme-border-color, #ccc);
      height: 100%;
      margin: 0 4px;
      display: inline-block;
    }
  `}render(){return le`<div
      class="divider"
      role="separator"
    ></div>`}};F([ne({type:String,reflect:!0})],$l.prototype,"orientation",void 0),$l=F([lt("mov-divider")],$l);var q0="kbd,.key{white-space:nowrap;text-align:center;background-color:#505050;background-color:gradient(linear, left top, left bottom, from(#3c3c3c), to(#505050));color:#fafafa;text-shadow:-1px -1px #464646;cursor:default;user-select:none;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-size:.85em;font-style:normal;line-height:1;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #969696,inset 0 -.05em .4em #505050,0 .1em #1e1e1e,0 .1em .1em #0000004d}kbd[title],.key[title]{cursor:help}kbd.dark,.dark-keys kbd,.key.dark,.dark-keys .key{white-space:nowrap;text-align:center;background-color:#505050;background-color:gradient(linear, left top, left bottom, from(#3c3c3c), to(#505050));color:#fafafa;text-shadow:-1px -1px #464646;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-style:normal;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #969696,inset 0 -.05em .4em #505050,0 .1em #1e1e1e,0 .1em .1em #0000004d}kbd.light,.light-keys kbd,.key.light,.light-keys .key{white-space:nowrap;text-align:center;background-color:#fafafa;background-color:gradient(linear, left top, left bottom, from(#d2d2d2), to(#fff));color:#323232;text-shadow:0 0 2px #fff;border:none;border-radius:.3em;min-width:1em;padding:.3em .4em .2em .3em;font-family:Lucida Grande,Lucida,Arial,sans-serif;font-style:normal;text-decoration:none;display:inline-block;box-shadow:inset 0 0 1px #fff,inset 0 0 .4em #c8c8c8,0 .1em #828282,0 .11em #0006,0 .1em .11em #000000e6}kbd.so,.so-keys kbd,.key.so,.so-keys .key{white-space:nowrap;text-align:center;color:#242729;text-shadow:0 1px #fff;background-color:#e1e3e5;border:1px solid #adb3b9;border-radius:.272727em;min-width:1em;margin:0 .1em;padding:.1em .6em;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-style:normal;line-height:1.4;text-decoration:none;display:inline-block;box-shadow:0 1px #0c0d0e33,inset 0 0 0 2px #fff}kbd.github,.github-keys kbd,.key.github,.github-keys .key{white-space:nowrap;text-align:center;color:#444d56;vertical-align:middle;box-sizing:border-box;min-width:1em;text-shadow:none;background-color:#fafbfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:.272727em;padding:.272727em .454545em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:68.75%;font-style:normal;line-height:.909091;text-decoration:none;display:inline-block;box-shadow:inset 0 -1px #959da5}",ub=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StoreController=void 0;var t=class{constructor(r,i){this.host=r,this.atom=i,r.addController(this)}hostConnected(){this.unsubscribe=this.atom.subscribe(()=>{this.host.requestUpdate()})}hostDisconnected(){var r;(r=this.unsubscribe)===null||r===void 0||r.call(this)}get value(){return this.atom.get()}};e.StoreController=t})),Dl=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiStoreController=void 0;var t=class{constructor(r,i){this.host=r,this.atoms=i,r.addController(this)}hostConnected(){this.unsubscribes=this.atoms.map(r=>r.subscribe(()=>this.host.requestUpdate()))}hostDisconnected(){var r;(r=this.unsubscribes)===null||r===void 0||r.forEach(i=>i())}get values(){return this.atoms.map(r=>r.get())}};e.MultiStoreController=t})),db=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.useStores=void 0;var t=Dl();function r(...i){return a=>class extends a{constructor(...s){super(...s),new t.MultiStoreController(this,i)}}}e.useStores=r})),hb=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.withStores=void 0;var t=Dl(),r=(i,a)=>class extends i{constructor(...l){super(...l),new t.MultiStoreController(this,a)}};e.withStores=r})),fb=yn((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.withStores=e.useStores=e.MultiStoreController=e.StoreController=void 0;var t=ub();Object.defineProperty(e,"StoreController",{enumerable:!0,get:function(){return t.StoreController}});var r=Dl();Object.defineProperty(e,"MultiStoreController",{enumerable:!0,get:function(){return r.MultiStoreController}});var i=db();Object.defineProperty(e,"useStores",{enumerable:!0,get:function(){return i.useStores}});var a=hb();Object.defineProperty(e,"withStores",{enumerable:!0,get:function(){return a.withStores}})})),Co=fb(),Oa=49,pb=100,gb=class Kf{constructor(t){this.prevOffset=0,this.headroom="top",this.headerVisible=!0,this.handleScroll=Se.default.throttle(()=>{if(this.isAnyDropdownOpen()){this.prevOffset=window.scrollY;return}const i=Y("header"),{scrollY:a}=window;let s="none";Y("zoomMode")!=="height"&&a+window.innerHeight+pb>document.body.scrollHeight?s="end":a>this.prevOffset&&a>Oa?s="hide":i==="scroll"&&a<this.prevOffset&&a>Oa?s="show":i!=="click"&&a<=Oa&&(s="top");let l=!1;if(this.headroom!==s&&(this.headroom=s,l=!0),i==="scroll"){const h=s!=="hide";this.headerVisible!==h&&(this.headerVisible=h,l=!0)}l&&this.host.requestUpdate(),this.prevOffset=a},300),this.handleMouseMove=Se.default.throttle(i=>{if(this.isAnyDropdownOpen()){this.headerVisible||(this.headerVisible=!0,this.host.requestUpdate());return}if(["hover","scroll"].includes(Y("header"))){const a=Kf.isMouseInsideRegion(i,window.innerWidth,Oa*1.5);this.headerVisible!==a&&(this.headerVisible=a,this.host.requestUpdate())}},300),this.toggleHeaderVisibility=()=>{Y("header")==="click"&&(this.headerVisible=!this.headerVisible,this.host.requestUpdate())},this.host=t,t.addController(this);const r=Y("header");Y("zoomMode")==="height"&&["click","hover"].includes(r)&&(this.headerVisible=!1)}hostConnected(){window.addEventListener("scroll",this.handleScroll),window.addEventListener("mousemove",this.handleMouseMove)}hostDisconnected(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("mousemove",this.handleMouseMove)}isAnyDropdownOpen(){if(!this.host.shadowRoot)return!1;const t=this.host.shadowRoot.querySelectorAll("mov-dropdown");for(const r of t)if(r.open)return!0;return!1}static isMouseInsideRegion(t,r,i){return t.clientX>=0&&t.clientX<=r&&t.clientY>=0&&t.clientY<=i}},mb=class{constructor(e){this.canvasContext=null,this.host=e,e.addController(this),this.canvasContext=document.createElement("canvas").getContext("2d"),this.resizeObserver=new ResizeObserver(()=>this.update())}hostConnected(){}hostDisconnected(){this.resizeObserver.disconnect()}observe(e,t){!e||!t||(this.element=e,this.text=t,this.resizeObserver.disconnect(),this.resizeObserver.observe(this.element),this.update())}update(){if(!this.element||!this.text||!this.canvasContext){this.value=this.text,this.host.requestUpdate();return}const e=window.getComputedStyle(this.element);this.canvasContext.font=`${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;const t=this.text,r=this.element.clientWidth;if(this.canvasContext.measureText(t).width<=r){this.value=t,this.host.requestUpdate();return}const i="...",a=r-this.canvasContext.measureText(i).width;let s="",l="";for(let h=1;h<t.length;h++){const u=t.substring(0,h),f=t.substring(t.length-h);if(this.canvasContext.measureText(u).width+this.canvasContext.measureText(f).width>a)break;s=u,l=f}this.value=`${s}${i}${l}`,this.host.requestUpdate()}};function j0(e=window.location.href){En(po(e))||(Me(`Bookmark Removed ${e}`),ti("bookmarks",t=>[...t.filter(r=>r.url!==e)]))}function vb(e){const t=e.currentTarget.value;Me(`Bookmark Removed ${t}`),sn.error({title:j("BOOKMARK_REMOVED"),duration:1e4}),j0(t)}function bb(){Pe("panel","bookmarks")}function K0(){const e=pe("currentPage"),t={name:pe("manga")?.title??document.documentElement.title??window.location.hostname,url:window.location.href,page:e,date:new Date().toISOString().slice(0,10)};po(t.url)?(ti("bookmarks",r=>[...r.filter(i=>i.url!==t.url)]),sn.error({title:j("BOOKMARK_REMOVED"),duration:1e4})):(ti("bookmarks",r=>[...r,t]),sn.success({title:j("BOOKMARK_SAVED"),description:j("BOOKMARK_MESSAGE").replace("##num##",e.toString()),duration:1e4}))}function zl(){Pe("panel","none")}function wb(){Pe("panel","settings")}function _b(){Pe("panel","keybindings")}function yb(e){const t={};Se.default.keys(e).forEach(r=>{const i=e[r].value;if(i){const a=i.value.split(",").map(s=>s.trim()).filter(s=>s!=="");t[r]=a.length>0?a:void 0}}),yt("keybinds",t),Pe("panel","keybindings"),Z0()}function kb(){Pe("panel","keybindingsEditor")}var Eb="#Header{background-color:var(--theme-background-color);z-index:900;flex-flow:row;justify-content:space-around;align-items:center;transition:transform .3s ease-in;display:flex;position:sticky;top:0;left:0;right:0;box-shadow:0 0 25px #00000080}#Header.click{padding-left:40px}@keyframes headroom{0%{transform:translateY(-100%)}to{transform:translateY(0%)}}#Header:not(.visible,.headroom-top,.fixed,.simple){animation:.3s ease-in reverse headroom;position:sticky;top:0;transform:translateY(-100%)}#Header.scroll.headroom-hide:not(.visible){animation:none;position:sticky;top:0;transform:translateY(-100%)}#Header.scroll.headroom-show,#Header.headroom-end,#Header.visible{animation:.3s ease-in headroom;position:sticky;top:0;transform:translateY(0%)}#Header.headroom-top{animation:none}#Header.fixed{animation:none;position:sticky;top:0;transform:translateY(0%)}#Header.simple{animation:none;position:static;top:0;transform:translateY(0%)}#menu{z-index:1;color:var(--theme-body-text-color);width:40px;height:40px;position:fixed}#menu:not(.click),#menu.hide{display:none}#menu.click{z-index:901;top:0;left:0}#MangaTitle{word-wrap:anywhere;white-space:nowrap;text-overflow:ellipsis;min-width:200px;max-width:40vw;margin:0;padding:2px;font-size:1.2rem;font-weight:400;overflow:hidden}#GlobalFunctions{z-index:100;flex-wrap:wrap;gap:3px;padding:3px 3px 3px 0;display:flex}#ZoomControl{flex-direction:column;align-items:center;gap:3px;padding:10px 5px;display:flex}",Y0="#Header.mobile,#Header.tablet{flex-flow:wrap;display:flex}.mobile #ViewerTitle,.tablet #ViewerTitle{order:4;min-height:auto}.mobile #GlobalFunctions,.tablet #GlobalFunctions{order:2;width:auto;padding:5px}.mobile #GlobalFunctions span{flex-direction:column}.mobile #ZoomControl,.tablet #ZoomControl{order:3}.mobile #Toolbar,.tabler #Toolbar{order:1}#Header.mobile{flex-flow:wrap;justify-content:center;align-items:center}#Header.mobile.click+#Chapter:not(.webcomic,.vertical){position:sticky}.tablet #MangaTitle,.mobile #MangaTitle{max-width:90vw}.mobile #ViewerTitle{order:3;height:auto;margin-top:0;padding:0}.mobile #GlobalFunctions{order:2;gap:0;width:auto;padding:0}.mobile mov-button::part(base){border-radius:0}.mobile #FileDropdown mov-button:first-of-type::part(base){border-radius:5px 0 0 5px}.mobile #GlobalFunctions mov-button:last-of-type::part(base){border-radius:0 5px 5px 0}.mobile .PageFunctions{padding:0}.mobile .PageFunctions .PageButton.Bookmark{opacity:1}.mobile #GlobalFunctions #ZoomSlider,.tablet #GlobalFunctions #ZoomSlider,.mobile .PageFunctions .PageButton:not(.Bookmark),.tablet #Counters,.mobile #ZoomControl,.mobile #ZoomDropdown,.mobile #ViewDropdown,.mobile #FileDropdown :where(:nth-child(3),:nth-child(4)),.mobile #BookMode,.mobile #MangaMode,.tablet #BookMode,.tablet #MangaMode{display:none}",Ta=class extends Qe{static{this.styles=[Wt(Eb),Wt(Y0),Wt(q0),Lt``]}constructor(){super(),this.headroomController=new gb(this),this.titleController=new mb(this)}updated(t){super.updated(t),t.has("manga")&&this.manga&&requestAnimationFrame(()=>{this.manga&&this.titleController.observe(this.mangaTitleElement,this.manga?.title??"Manga Online Viewer")})}render(){if(!this.manga)return le``;const{headroom:t,headerVisible:r}=this.headroomController,i=Y("keybinds"),a=s=>{if(pe("device")!=="desktop")return Ne;const l=i[s];return!l||l.length===0?Ne:l.map(h=>le`<kbd slot="details">${h}</kbd>`)};return le`
      <toggle-button
        id="menu"
        mode="burger"
        class="${St({[Y("header")]:!0,hide:["top","end"].includes(t)})}"
        ?active=${r}
        @toggle=${this.headroomController.toggleHeaderVisibility}
      >
      </toggle-button>
      <header
        id="Header"
        class="${St({[Y("header")]:!0,[`headroom-${t}`]:!0,visible:r&&["hide","none"].includes(t),[pe("device")]:!0})}"
      >
        <div
          id="Toolbar"
          class="button-group"
        >
          <mov-dropdown id="FileDropdown">
            <mov-button
              slot="trigger"
              title="${j("FILE_MENU")}"
            >
              <mov-icon
                label="File"
                name="IconDotsVertical"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="settings"
              @click=${wb}
            >
              <mov-icon
                slot="icon"
                name="IconSettings"
              ></mov-icon>
              ${j("SETTINGS")} ${a("SETTINGS")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="keybindings"
              @click=${_b}
            >
              <mov-icon
                slot="icon"
                name="IconKeyboard"
              ></mov-icon>
              ${j("KEYBINDINGS")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="bookmarks"
              class="tablets"
              @click=${bb}
            >
              <mov-icon
                slot="icon"
                name="IconBookmarks"
              ></mov-icon>
              ${j("BOOKMARKS")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="AutoScroll"
              class="${St({running:pe("autoScroll")})}"
              @click=${xa}
            >
              <mov-icon
                slot="icon"
                name="${pe("autoScroll")?"IconPlayerPause":"IconPlayerPlay"}"
              ></mov-icon>
              ${j("SCROLL_START")} ${a("SCROLL_START")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="pageControls"
              class="tablets phones"
              @click="${_3}"
              ?selected=${Y("hidePageControls")}
            >
              <mov-icon
                slot="icon"
                name="IconListNumbers"
              ></mov-icon>
              ${j("TOGGLE_CONTROLS")}
            </mov-dropdown-item>
          </mov-dropdown>

          <mov-dropdown
            id="ViewDropdown"
            checkable
          >
            <mov-button
              slot="trigger"
              title="${j("VIEW_MENU")}"
            >
              <mov-icon
                label="View"
                name="IconApiBook"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="webComic"
              class="tablets"
              @click="${pn("WebComic")}"
              ?selected=${Y("viewMode")==="WebComic"}
            >
              <mov-icon
                slot="icon"
                name="IconSpacingVertical"
              ></mov-icon>
              ${j("VIEW_MODE_WEBCOMIC")} ${a("VIEW_MODE_WEBCOMIC")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="verticalMode"
              class="tablets"
              @click="${pn("Vertical")}"
              ?selected=${Y("viewMode")==="Vertical"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitDown"
              ></mov-icon>
              ${j("VIEW_MODE_VERTICAL")} ${a("VIEW_MODE_VERTICAL")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="ltrMode"
              @click="${pn("FluidLTR")}"
              ?selected=${Y("viewMode")==="FluidLTR"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitRight"
              ></mov-icon>
              ${j("VIEW_MODE_LEFT")} ${a("VIEW_MODE_LEFT")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="rtlMode"
              @click="${pn("FluidRTL")}"
              ?selected=${Y("viewMode")==="FluidRTL"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitLeft"
              ></mov-icon>
              ${j("VIEW_MODE_RIGHT")} ${a("VIEW_MODE_RIGHT")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="BookMode"
              @click="${pn("Book")}"
              ?selected=${Y("viewMode")==="Book"}
            >
              <mov-icon
                slot="icon"
                name="IconBookArrowRight"
              ></mov-icon>
              ${j("VIEW_MODE_BOOK")} ${a("VIEW_MODE_BOOK")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="MangaMode"
              @click="${pn("Manga")}"
              ?selected=${Y("viewMode")==="Manga"}
            >
              <mov-icon
                slot="icon"
                name="IconBookArrowLeft"
              ></mov-icon>
              ${j("VIEW_MODE_MANGA")} ${a("VIEW_MODE_MANGA")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="GalleryMode"
              @click="${pn("Gallery")}"
              ?selected=${Y("viewMode")==="Gallery"}
            >
              <mov-icon
                slot="icon"
                name="IconLayoutDashboard"
              ></mov-icon>
              ${j("VIEW_MODE_GALLERY")} ${a("VIEW_MODE_GALLERY")}
            </mov-dropdown-item>
          </mov-dropdown>
          <mov-dropdown
            id="ZoomDropdown"
            checkable
          >
            <mov-button
              slot="trigger"
              title="${j("ZOOM_MENU")}"
            >
              <mov-icon
                label="Zoom"
                name="IconZoom"
              ></mov-icon>
            </mov-button>
            <mov-dropdown-item
              id="enlarge"
              @click="${Ca()}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomInArea"
              ></mov-icon>
              ${j("ENLARGE")} ${a("ENLARGE")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="restore"
              @click="${Io("percent",100)}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomPan"
              ></mov-icon>
              ${j("RESTORE")} ${a("RESTORE")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="reduce"
              @click="${Ca(-1)}"
            >
              <mov-icon
                slot="icon"
                name="IconZoomOutArea"
              ></mov-icon>
              ${j("REDUCE")} ${a("REDUCE")}
            </mov-dropdown-item>
            <mov-divider></mov-divider>
            <mov-dropdown-item
              id="fitWidth"
              @click="${Io("width")}"
              ?selected=${Y("zoomMode")==="width"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitWidth"
              ></mov-icon>
              ${j("FIT_WIDTH")} ${a("FIT_WIDTH")}
            </mov-dropdown-item>
            <mov-dropdown-item
              id="fitHeight"
              @click="${Io("height")}"
              ?selected=${Y("zoomMode")==="height"}
            >
              <mov-icon
                slot="icon"
                name="IconArrowAutofitHeight"
              ></mov-icon>
              ${j("FIT_HEIGHT")} ${a("FIT_HEIGHT")}
            </mov-dropdown-item>
          </mov-dropdown>
        </div>
        <div id="ViewerTitle">
          <h1
            id="MangaTitle"
            title="${this.manga.title}"
          >
            ${this.titleController.value??this.manga.title}
          </h1>
        </div>
        <div id="ZoomControl">
          <span id="ZoomVal">
            Zoom:
            ${Y("zoomMode")==="percent"?`${Y("zoomValue")}%`:Y("zoomMode")}
          </span>
          <input
            type="range"
            id="Zoom"
            name="Zoom"
            .value="${Y("zoomValue")}"
            min="${Y("minZoom")}"
            max="200"
            @input=${rb}
          />
        </div>
        <div
          id="GlobalFunctions"
          class="button-group"
        >
          <mov-button
            id="series"
            href="${this.manga.series??Ne}"
            @click=${pi}
            title="${j("RETURN_CHAPTER_LIST")}"
            ?disabled=${!this.manga.series}
          >
            <mov-icon name="IconBooksReturn"></mov-icon>
          </mov-button>
          <mov-button
            id="download"
            title="${j("DOWNLOAD_ZIP")}"
            @click=${L0}
            ?disabled=${pe("download")!=="available"}
            ?loading=${pe("download")==="working"}
          >
            <mov-icon
              name="${pe("download")==="working"?"IconLoader2":"IconFileDownload"}"
            ></mov-icon>
          </mov-button>
          <mov-button
            id="prev"
            href="${this.manga.prev??Ne}"
            title="${j("PREVIOUS_CHAPTER")}"
            @click=${pi}
            ?disabled=${!this.manga.prev}
          >
            <mov-icon name="IconArrowBigLeft"></mov-icon>
          </mov-button>
          <mov-button
            id="next"
            href="${this.manga.next??Ne}"
            title="${j("NEXT_CHAPTER")}"
            @click=${pi}
            ?disabled=${!this.manga.next}
          >
            <mov-icon name="IconArrowBigRight"></mov-icon>
          </mov-button>
        </div>
      </header>
    `}};F([Fr("#MangaTitle")],Ta.prototype,"mangaTitleElement",void 0),F([ne({type:Object})],Ta.prototype,"manga",void 0),Ta=F([lt("reader-header"),(0,Co.useStores)(Mt,ho,Jt)],Ta);var Ab="#BookmarksPanel{text-align:center;--width:100vw}#BookmarksList{flex-direction:column;gap:5px;max-height:60vh;padding:0 5px;display:flex;overflow:auto}.bookmark-item{text-align:left;border-radius:5px;align-items:center;gap:1rem;padding:.75rem 1rem;transition:background-color .15s ease-in-out;display:flex}.bookmark-item:hover{background-color:var(--mov-color-fill-quiet,#8080801a)}.bookmark-info{flex-grow:1;min-width:0}.bookmark-name{font-weight:500}.bookmark-url{white-space:nowrap;text-overflow:ellipsis;color:color-mix(in oklab, var(--theme-body-text-color), transparent 30%);font-size:.875rem;text-decoration:none;display:block;overflow:hidden}.bookmark-url:hover{text-decoration:underline}.bookmark-details{text-align:right;width:90px;color:color-mix(in oklab, var(--theme-body-text-color), transparent 30%);flex-shrink:0;font-size:.875rem}.bookmark-details>div{padding:2px 0}.bookmark-actions{flex-shrink:0;gap:.5rem;display:flex}",X0=class extends Qe{static{this.styles=[Wt(Ab)]}listBookmarks(){return Ms(Y("bookmarks"))?[j("LIST_EMPTY")]:Y("bookmarks").map((t,r)=>le`
        <div
          id="Bookmark${r+1}"
          class="bookmark-item"
        >
          <div class="bookmark-info">
            <div class="bookmark-name">${t.name}</div>
            <a
              class="bookmark-url"
              href="${t.url}"
              target="_blank"
              >${t.url}</a
            >
          </div>
          <div class="bookmark-details">
            <div class="bookmark-date">${new Date(t.date).toISOString().slice(0,10)}</div>
            <div class="bookmark-page">Page: ${t.page}</div>
          </div>
          <div class="bookmark-actions">
            <a
              href="${t.url}"
              target="_blank"
            >
              <mov-button
                title="Open Bookmark"
                size="small"
              >
                <mov-icon
                  name="IconExternalLink"
                  size="16px"
                ></mov-icon>
              </mov-button>
            </a>
            <mov-button
              title="Delete Bookmark"
              size="small"
              value="${t.url}"
              @click=${vb}
            >
              <mov-icon
                name="IconTrash"
                size="16px"
              ></mov-icon>
            </mov-button>
          </div>
        </div>
      `)}render(){return le`
      <mov-dialog
        id="BookmarksPanel"
        ?open=${pe("panel")==="bookmarks"}
        light-dismiss
        @close=${zl}
      >
        <mov-button
          class="Bookmark"
          title="${j("BOOKMARK")}"
          @click=${K0}
          slot="header-actions"
        >
          <mov-icon
            name="${po()===void 0?"IconBookmark":"IconBookmarkOff"}"
            size="24px"
          ></mov-icon>
        </mov-button>
        <h2 slot="header">${j("BOOKMARKS")}</h2>
        <h2 slot="label">${j("BOOKMARKS")}</h2>
        <div id="BookmarksList">${this.listBookmarks()}</div>
      </mov-dialog>
    `}};X0=F([lt("bookmark-panel"),(0,Co.useStores)(Mt,ho,Jt)],X0);function*Sb(e,t){const r=typeof t=="function";if(e!==void 0){let i=-1;for(const a of e)i>-1&&(yield r?t(i):t),i++,yield a}}var Mb="#KeybindingsPanel div{line-height:1.5em}#KeybindingsPanel #KeybindingsList{grid-template-columns:1fr 2fr;gap:5px;display:grid}#KeybindingsPanel .ControlButton{justify-content:center;align-items:center;gap:.5em;margin-left:3px;padding:5px 10px}#KeybindingsPanel label{display:ruby}#KeybindingsPanel input{width:100%;display:inline-block}#KeybindingsPanel #HotKeysRules{grid-column:span 2}",J0=class extends Qe{constructor(...t){super(...t),this.keybindsRefs=Se.default.keys(Y("keybinds")).reduce((r,i)=>(r[i]=$s(),r),{})}static{this.styles=[Wt(Mb),Wt(q0)]}keybindList(){const t=Y("keybinds");return Se.default.keys(t).map(r=>{const i=t[r]?.length?Sb(t[r]?.map(a=>le`<kbd class="dark">${a}</kbd>`)," / "):"";return le`<span>${j(r)}:</span> <span>${i}</span>`})}keybindEditor(){const t=Y("keybinds");return Se.default.keys(t).map(r=>le`<label for="${r}">${j(r)}:</label>
          <input
            type="text"
            class="KeybindInput"
            id="${r}"
            name="${r}"
            value="${t[r]?.join(" , ")??Ne}"
            ${zs(this.keybindsRefs[r])}
          />`)}render(){return le`
      <mov-drawer
        id="KeybindingsPanel"
        ?open=${pe("panel").startsWith("keybindings")}
        placement="end"
        @close=${zl}
      >
        <h2 slot="label">${j("KEYBINDINGS")}</h2>
        <div
          class="controls"
          slot="header-actions"
        >
          ${pe("panel")==="keybindingsEditor"?le` <mov-button
                id="SaveKeybindings"
                type="button"
                title="${j("SAVE_KEYBINDS")}"
                @click=${()=>yb(this.keybindsRefs)}
              >
                <mov-icon
                  name="IconDeviceFloppy"
                  size="16px"
                  slot="start"
                ></mov-icon>
                ${j("BUTTON_SAVE")}
              </mov-button>`:le` <mov-button
                id="EditKeybindings"
                type="button"
                title="${j("EDIT_KEYBINDS")}"
                @click=${kb}
              >
                <mov-icon
                  name="IconPencil"
                  size="16px"
                  slot="start"
                ></mov-icon>
                ${j("BUTTON_EDIT")}
              </mov-button>`}
        </div>
        <div id="KeybindingsList">
          ${pe("panel")==="keybindingsEditor"?this.keybindEditor():this.keybindList()}
        </div>
        <div id="HotKeysRules">${zu(j("KEYBIND_RULES"))}</div>
      </mov-drawer>
    `}};J0=F([lt("keybindings-panel"),(0,Co.useStores)(Mt,ho,Jt)],J0);function*xb(e,t){if(e!==void 0){let r=0;for(const i of e)yield t(i,r++)}}function yi(e,t=1){return Array(e).fill(0).map((r,i)=>i+1).filter(r=>r>=t)}function ki(e){const t=e.replace(/[\t\n\r]/gim,"").replace(/\s\s+/g," ");return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(t).replace(/\(/g,"%28").replace(/\)/g,"%29")}`}var La=e=>e%100===0?15:e%50===0?10:e%25===0?5:2.5;function Ib(e,t,r,i){let a="";for(let s=0;s<=e;s+=5){const l=uo` <line
      x1="${s}"
      y1="0"
      x2="${s}"
      y2="${La(s)}"
    />`;if(a+=l,s!==0&&s%50===0){const h=uo` <text
        x="${s}"
        y="25"
        text-anchor="middle"
        font-size="${La(s)}px"
      >
        ${s}
      </text>`;a+=h}}for(let s=0;s<=t;s+=5){const l=uo` <line
      x1="0"
      y1="${s}"
      x2="${La(s)}"
      y2="${s}"
    />`;if(a+=l,s!==0&&s%50===0){const h=uo` <text
        x="25"
        y="${s}"
        text-anchor="middle"
        dominant-baseline="middle"
        font-size="${La(s)}px"
      >
        ${s}
      </text>`;a+=h}}return uo` <svg
    xmlns="http://www.w3.org/2000/svg"
    width="${e}"
    height="${t}"
    viewBox="0 0 ${e} ${t}"
  >
    <rect
      width="${e}"
      height="${t}"
      fill="${r}"
    />
    <text
      fill="${i}"
      font-family="Verdana, Arial, Helvetica, sans-serif"
      font-size="30"
      dy="10.5"
      font-weight="bold"
      x="50%"
      y="50%"
      text-anchor="middle"
    >
      ${e}x${t}
    </text>
    <g
      stroke-width="1"
      font-family="Verdana, Arial, Helvetica, sans-serif"
      font-size="10px"
      font-weight="100"
      fill="${i}"
      stroke="${i}"
    >
      ${a}
    </g>
  </svg>`}function Vt(e,t,r="#0F1C3F",i="#ECEAD9"){return ki(Ib(e,t,r,i))}var Q0=Se.default.values(At).map(e=>e[900]),eh=[400,600,900,1200,1400,1600,1970],th=[600,800,1e3,1200,1400,2e3,2600];function Cb(){const e=Math.floor(Math.random()*eh.length),t=Math.floor(Math.random()*th.length),r=Math.floor(Math.random()*Q0.length);return Vt(eh[e],th[t],Q0[r])}function nh(e){e.deltaY&&(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}function Ob(e){e.deltaY&&(e.currentTarget.scrollLeft-=e.deltaY-e.deltaX,e.preventDefault())}var Tb=":host{--nav-collapsed-size:34px;--nav-expanded-size:200px;--header-height:80px}#Navigation{color:var(--theme-text-color);background-color:var(--theme-hightlight-color);box-sizing:border-box;white-space:nowrap;text-align:center;z-index:1000;gap:5px;line-height:0;transition:all .3s;display:flex;position:fixed;overflow:hidden}#Thumbnails{flex-grow:1;justify-content:flex-start;gap:5px;display:flex}#Navigation.horizontal #Thumbnails{flex-direction:row;overflow:auto hidden}#Navigation.vertical #Thumbnails{flex-direction:column;justify-content:flex-start;overflow:hidden auto}#Navigation.left #Thumbnails{direction:rtl}:host(:not([forceExpanded])) #Navigation:not(:hover) #Thumbnails{display:none}#NavigationCounters{text-align:center;white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:.5rem;padding:5px;line-height:1rem;display:flex}#Navigation.horizontal{height:var(--nav-collapsed-size);flex-direction:column;width:100%;left:0;right:0}:host([forceExpanded]) #Navigation.horizontal,#Navigation.horizontal:hover{height:var(--nav-expanded-size)}#Navigation.bottom{bottom:0}#Navigation.vertical{width:var(--nav-collapsed-size);flex-direction:row;height:100%;transition:top .3s,height .3s,width .3s;bottom:0}:host([forceExpanded]) #Navigation.vertical,#Navigation.vertical:hover{width:var(--nav-expanded-size)}#Navigation.left{flex-direction:row-reverse;left:0}#Navigation.right{right:0}#Navigation.vertical #NavigationCounters{writing-mode:vertical-rl;transform:rotate(180deg)}#Navigation.right #NavigationCounters{transform:rotate(0)}#Navigation.vertical.header{top:var(--header-height);height:calc(100% - var(--header-height))}#Navigation .Thumbnail{justify-content:center;align-items:center;width:150px;height:150px;margin:0 5px;display:inline-flex;position:relative}.ThumbnailIndex{color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);opacity:.9;text-align:center;z-index:1;width:100%;font-weight:600;line-height:1.2rem;display:block;position:absolute;bottom:30%;left:0}.ThumbnailImg{cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:48px 48px;min-width:80px;max-width:150px;min-height:150px;max-height:150px;display:inline-block}",Ei=class extends Qe{constructor(...t){super(...t),this.mode="bottom",this.forceExpanded=!1,this.isHiding=!1}static{this.styles=[Wt(Tb),Lt`
      #Navigation {
        transition: opacity 0.2s ease-in-out;
      }
      #Navigation.hiding {
        opacity: 0;
        /* Disable transition during position change to avoid animating the hide */
        transition: none;
      }

      .Thumbnail .ThumbnailImg[src=''],
      .Thumbnail .ThumbnailImg:not([src]) {
        background-image: url('${Wt(ki(Us))}');
      }

      .Thumbnail .ThumbnailImg.imgBroken {
        background-image: url('${Wt(ki(Vs))}');
      }
    `]}willUpdate(t){t.has("mode")&&(this.isHiding=!0)}updated(t){t.has("mode")&&this.isHiding&&setTimeout(()=>{this.isHiding=!1},50)}render(){if(this.mode==="disabled")return Ne;const t=pe("manga"),r={horizontal:this.mode==="bottom",vertical:this.mode!=="bottom",left:this.mode==="left",right:this.mode==="right",bottom:this.mode==="bottom",hiding:this.isHiding},i=pe("images")||{},a=Se.default.keys(i).filter(s=>{const l=parseInt(s,10);return l>=(t?.begin??1)&&l<=(t?.pages??1)&&i[l]?.status==="loaded"}).length;return le`
      <nav
        id="Navigation"
        class="${St(r)}"
      >
        <div
          id="NavigationCounters"
          class="ControlLabel"
        >
          ${Y4}
          <i>${a}</i> /
          <b> ${(t?.pages??1)-((t?.begin??1)-1)} </b>
          ${j("PAGES_LOADED")}
          <span>: ${pe("currentPage")}</span>
        </div>
        <div
          id="Thumbnails"
          @wheel=${this.mode==="bottom"?nh:null}
        >
          ${xb(yi(t?.pages??1,t?.begin??1),s=>le` <figure
                id="Thumbnail${s}"
                class="Thumbnail"
                role="button"
                tabindex="0"
                title="Go to page ${s}"
                @click=${()=>E3(s)}
              >
                <img
                  id="ThumbnailImg${s}"
                  alt=""
                  class="ThumbnailImg"
                  src=${pe("images")?.[s]?.src??Ne}
                />
                <figcaption class="ThumbnailIndex">${s}</figcaption>
              </figure>`)}
        </div>
      </nav>
    `}};F([ne({type:String})],Ei.prototype,"mode",void 0),F([ne({type:Boolean})],Ei.prototype,"forceExpanded",void 0),F([an()],Ei.prototype,"isHiding",void 0),Ei=F([lt("navbar-thumbnails"),(0,Co.useStores)(Mt,ho,Jt)],Ei);function Lb(){const e=Wr()?"true":"false";return le` <div class="ControlLabel">
    ${j("SCOPE")}
    <segmented-control
      .value=${e}
      @change=${N3}
    >
      <segmented-control-option
        value="false"
        label=${j("GLOBAL")}
        icon="IconWorldCog"
      ></segmented-control-option>
      <segmented-control-option
        value="true"
        label=${window.location.hostname}
        icon="IconLocationCog"
      ></segmented-control-option>
    </segmented-control>
  </div>`}function Rb(){return lo.map(e=>le`
      <option
        value="${e.ID}"
        ?selected=${Y("locale")===e.ID}
      >
        ${e.NAME}
      </option>
    `)}function Pb(){return le` <div class="ControlLabel locale">
    ${j("LANGUAGE")}
    <select
      id="locale"
      @change="${B3}"
    >
      ${Rb()}
    </select>
  </div>`}var $b=()=>le`${Lb()} ${Pb()}`;function Db(){return le`
    <div class="ControlLabel loadMode">
      ${j("DEFAULT_LOAD_MODE")}
      <select
        id="loadMode"
        @change="${H3}"
      >
        <option
          value="wait"
          ?selected=${Y("loadMode")==="wait"}
        >
          ${j("LOAD_MODE_NORMAL")}
        </option>
        <option
          value="always"
          ?selected=${Y("loadMode")==="always"}
        >
          ${j("LOAD_MODE_ALWAYS")}
        </option>
        <option
          value="never"
          ?selected=${Y("loadMode")==="never"}
        >
          ${j("LOAD_MODE_NEVER")}
        </option>
      </select>
    </div>
  `}function zb(){return le`
    <div class="ControlLabel PagesPerSecond">
      ${j("LOAD_SPEED")}
      <select
        id="PagesPerSecond"
        @change="${q3}"
      >
        <option
          value="Safe"
          ?selected=${Y("loadSpeed")==="Safe"}
        >
          ${j("SLOWLY")} (Safe)
        </option>
        <option
          value="Standard"
          ?selected=${Y("loadSpeed")==="Standard"}
        >
          ${j("NORMAL")} (Standard)
        </option>
        <option
          value="Faster"
          ?selected=${Y("loadSpeed")==="Faster"}
        >
          ${j("FAST")} (Faster)
        </option>
        <option
          value="Extreme"
          ?selected=${Y("loadSpeed")==="Extreme"}
        >
          ${j("EXTREME")} (Extreme)
        </option>
        <option
          value="All"
          ?selected=${Y("loadSpeed")==="All"}
        >
          ${j("ALL_PAGES")} (All)
        </option>
      </select>
    </div>
  `}var Nb=()=>le`${Db()} ${zb()}`;function Bb(){return le`
    <div class="ControlLabel fitIfOversize">
      ${j("FIT_WIDTH_OVERSIZED")}
      <mov-switch
        name="fitIfOversize"
        ?checked=${Y("fitWidthIfOversize")}
        @change=${F3}
      ></mov-switch>
    </div>
    <div class="ControlLabel downloadZip">
      ${j("DOWNLOAD_IMAGES")}
      <mov-switch
        name="downloadZip"
        ?checked=${Y("downloadZip")}
        @change=${U3}
      ></mov-switch>
    </div>
    <div class="ControlLabel hidePageControls">
      ${j("HIDE_CONTROLS")}
      <mov-switch
        name="hidePageControls"
        ?checked=${Y("hidePageControls")}
        @change=${Y3}
      ></mov-switch>
    </div>
    <div class="ControlLabel lazyLoadImages">
      ${j("LAZY_LOAD_IMAGES_ENABLE")}
      <mov-switch
        name="lazyLoadImages"
        ?checked=${Y("lazyLoadImages")}
        @change=${V3}
      ></mov-switch>
    </div>
  `}function Hb(){return le`
    <div
      class="${St({ControlLabel:!0,lazyStart:!0,ControlLabelItem:!0,show:Y("lazyLoadImages")})}"
    >
      <span>
        ${j("LAZY_LOAD_IMAGES")}
        <output
          id="lazyStartVal"
          for="lazyStart"
        >
          ${Y("lazyStart")}
        </output>
      </span>
      <input
        type="range"
        value="${Y("lazyStart")}"
        name="lazyStart"
        id="lazyStart"
        min="5"
        max="100"
        step="5"
        oninput="lazyStartVal.value = this.value"
        @change="${Z3}"
      />
    </div>
  `}function Fb(){return le`
    <div class="ControlLabel headerType">
      ${j("HEADER_TYPE")}
      <segmented-control
        .value=${Y("header")}
        @change=${X3}
        labelPosition="bottom"
      >
        <segmented-control-option
          value="hover"
          label=${j("HEADER_HOVER")}
          icon="arrows-move"
        ></segmented-control-option>
        <segmented-control-option
          value="scroll"
          label=${j("HEADER_SCROLL")}
          icon="arrows-vertical"
        ></segmented-control-option>
        <segmented-control-option
          value="click"
          label=${j("HEADER_CLICK")}
          icon="hand-click"
        ></segmented-control-option>
        <segmented-control-option
          value="fixed"
          label=${j("HEADER_FIXED")}
          icon="pin"
        ></segmented-control-option>
        <segmented-control-option
          value="simple"
          label=${j("HEADER_SIMPLE")}
          icon="box-align-top"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Gb(){return le`
    <div class="ControlLabel pagination">
      ${j("PAGINATION_TYPE")}
      <segmented-control
        .value=${Y("pagination")}
        @change=${W3}
        labelPosition="side"
      >
        <segmented-control-option
          value="disabled"
          label=${j("PAGINATION_DISABLED")}
          icon="x"
        ></segmented-control-option>
        <segmented-control-option
          value="slider"
          label=${j("PAGINATION_SLIDER")}
          icon="adjustments-horizontal"
        ></segmented-control-option>
        <segmented-control-option
          value="side-arrows"
          label=${j("PAGINATION_ARROWS")}
          icon="arrows-left-right"
        ></segmented-control-option>
        <segmented-control-option
          value="both"
          label=${j("PAGINATION_BOTH")}
          icon="arrows-horizontal"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Wb(){return le`
    <div class="ControlLabel navbarType">
      ${j("NAVBAR_TYPE")}
      <segmented-control
        .value=${Y("navbar")}
        @change=${G3}
        labelPosition="tooltip"
      >
        <segmented-control-option
          value="bottom"
          label=${j("NAVBAR_BOTTOM")}
          icon="layout-bottombar"
        ></segmented-control-option>
        <segmented-control-option
          value="left"
          label=${j("NAVBAR_LEFT")}
          icon="layout-sidebar"
        ></segmented-control-option>
        <segmented-control-option
          value="right"
          label=${j("NAVBAR_RIGHT")}
          icon="layout-sidebar-right"
        ></segmented-control-option>
        <segmented-control-option
          value="disabled"
          label=${j("NAVBAR_DISABLED")}
          icon="x"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}function Ub(){return le`
    <div class="ControlLabel autoScroll">
      <span>
        ${j("AUTO_SCROLL_HEIGHT")}
        <output
          id="scrollHeightVal"
          class="RangeValue"
          for="scrollHeight"
        >
          ${Y("scrollHeight")}px
        </output>
      </span>
      <input
        type="range"
        value="${Y("scrollHeight")}"
        name="scrollHeight"
        id="scrollHeight"
        min="1"
        max="${Math.ceil(window.innerHeight/200)*100}"
        step="1"
        @input="${J3}"
      />
    </div>
  `}var Vb=()=>le`${Bb()} ${Gb()} ${Hb()} ${Fb()} ${Wb()} ${Ub()}`;function Zb(){const e=Y("colorScheme")==="dark";yt("colorScheme",e?"light":"dark"),document.documentElement.classList.remove(e?"dark":"light"),document.documentElement.classList.add(Y("colorScheme"))}function Ra(e){yt("theme",e instanceof CustomEvent?e.detail.value:e.currentTarget.value)}function qb(){return le`
    <div class="ControlLabel ColorSchemeSelector">
      <label>${j("COLOR_SCHEME")}</label>
      <toggle-button
        id="ColorScheme"
        mode="theme"
        @click=${Zb}
        ?active=${Y("colorScheme")==="dark"}
      >
      </toggle-button>
    </div>
    <div class="ControlLabel ThemeSelector">
      <label>${j("THEME_COLOR")}</label>
      <mov-color-picker
        id="ThemeHex"
        .value="${Y("theme")}"
        title="${Y("theme")}"
        @input=${Ra}
        .swatches=${Se.default.values(Il)}
      ></mov-color-picker>
    </div>
    <color-palette
      .baseColor="${Y("theme")}"
      mode="steps"
      .selected=${Y("theme")}
      @change="${Ra}"
    ></color-palette>
    <span id="ColorRecommendations">
      ${Se.default.values(Il).map(e=>le`<color-swatch
            .color="${e}"
            .selected=${Y("theme")}
            @change=${Ra}
          ></color-swatch>`)}
    </span>
    <details class="ControlLabel">
      <summary>${j("THEME_HUE")} & ${j("THEME_SHADE")}</summary>
      <color-panel
        .selected=${Y("theme")}
        @change=${Ra}
      ></color-panel>
    </details>
  `}function jb(){return le` <div class="ControlLabel DefaultZoomMode">
    ${j("DEFAULT_ZOOM_MODE")}
    <segmented-control
      .value=${Y("zoomMode")}
      @change=${tb}
      labelPosition="tooltip"
    >
      <segmented-control-option
        value="percent"
        label=${j("PERCENT")}
        icon="file-percent"
      ></segmented-control-option>
      <segmented-control-option
        value="width"
        label=${j("FIT_WIDTH")}
        icon="arrow-autofit-width"
      ></segmented-control-option>
      <segmented-control-option
        value="height"
        label=${j("FIT_HEIGHT")}
        icon="arrow-autofit-height"
      ></segmented-control-option>
    </segmented-control>
  </div>`}function Kb(){return le`
    <div
      class="${St({ControlLabel:!0,zoomValue:!0,ControlLabelItem:!0,show:Y("zoomMode")==="percent"})}"
    >
      <span>
        ${j("DEFAULT_ZOOM")}
        <output
          id="zoomValueVal"
          class="RangeValue"
          for="zoomValue"
        >
          ${Y("zoomValue")}%
        </output>
      </span>
      <input
        type="range"
        value="${Y("zoomValue")}"
        name="zoomValue"
        id="zoomValue"
        min="5"
        max="200"
        step="5"
        list="zoomValueList"
        @input="${nb}"
      />
      <datalist id="zoomValueList">
        <option value="5">5</option>
        <option value="25">25</option>
        <option value="50">50</option>
        <option value="75">75</option>
        <option value="100">100</option>
        <option value="125">125</option>
        <option value="150">150</option>
        <option value="175">175</option>
        <option value="200">200</option>
      </datalist>
    </div>
  `}function Yb(){return le`
    <div class="ControlLabel minZoom">
      <span>
        ${j("MINIMUM_ZOOM")}
        <output
          id="minZoomVal"
          class="RangeValue"
          for="minZoom"
        >
          ${Y("minZoom")}%
        </output>
      </span>
      <input
        type="range"
        value="${Y("minZoom")}"
        name="minZoom"
        id="minZoom"
        min="25"
        max="100"
        step="5"
        @input="${K3}"
        list="minZoomList"
      />
      <datalist id="minZoomList">
        <option value="25">25</option>
        <option value="50">50</option>
        <option value="75">75</option>
        <option value="100">100</option>
      </datalist>
    </div>
  `}function Xb(){return le`
    <div class="ControlLabel zoomStep">
      <span>
        ${j("ZOOM_STEP")}
        <output
          id="zoomStepVal"
          class="RangeValue"
          for="zoomStep"
        >
          ${Y("zoomStep")}%
        </output>
      </span>
      <input
        type="range"
        value="${Y("zoomStep")}"
        name="zoomStep"
        id="zoomStep"
        min="10"
        max="50"
        step="5"
        @input="${j3}"
        list="zoomStepList"
      />
      <datalist id="zoomStepList">
        <option value="10">10</option>
        <option value="30">30</option>
        <option value="50">50</option>
      </datalist>
    </div>
  `}function Jb(){return le`
    <div class="ControlLabel viewMode">
      ${j("DEFAULT_VIEW_MODE")}
      <segmented-control
        .value=${Y("viewMode")}
        @change=${ob}
        labelPosition="tooltip"
      >
        <segmented-control-option
          value="Vertical"
          label=${j("VIEW_MODE_VERTICAL")}
          icon="arrow-autofit-down"
        ></segmented-control-option>
        <segmented-control-option
          value="WebComic"
          label=${j("VIEW_MODE_WEBCOMIC")}
          icon="spacing-vertical"
        ></segmented-control-option>
        <segmented-control-option
          value="FluidLTR"
          label=${j("VIEW_MODE_LEFT")}
          icon="arrow-autofit-right"
        ></segmented-control-option>
        <segmented-control-option
          value="FluidRTL"
          label=${j("VIEW_MODE_RIGHT")}
          icon="arrow-autofit-left"
        ></segmented-control-option>
        <segmented-control-option
            value="Book"
            label=${j("VIEW_MODE_BOOK")}
            icon="IconBookArrowRight"
        ></segmented-control-option>
        <segmented-control-option
            value="Manga"
            label=${j("VIEW_MODE_MANGA")}
            icon="IconBookArrowLeft"
        ></segmented-control-option>
        <segmented-control-option
            value="Gallery"
            label=${j("VIEW_MODE_GALLERY")}
            icon="IconLayoutDashboard"
        ></segmented-control-option>
      </segmented-control>
    </div>
  `}var Qb=()=>le`${jb()} ${Kb()} ${Yb()} ${Xb()} ${Jb()}`,e6="#SettingsPanel{color:var(--theme-text-color)}#SettingsPanel fieldset{border:1px solid var(--theme-body-text-color);border-radius:10px;padding:3px}#SettingsPanel .ControlLabel{flex-flow:wrap;justify-content:space-between;align-items:center;padding:2px;display:flex}#SettingsPanel .ControlLabelItem{justify-content:space-between;align-items:center;display:flex}#SettingsPanel .ControlLabelItem:not(.show){display:none}#SettingsPanel input[type=range]{width:100%}#SettingsPanel .RangeValue{color:var(--mov-color-on-loud);text-align:center;background:var(--mov-color-fill-loud);border-radius:3px;margin-left:8px;padding:2px 5px;line-height:20px;display:inline-block}#SettingsPanel datalist{flex-direction:row;justify-content:space-between;width:100%;display:flex}#SettingsPanel datalist option{writing-mode:vertical-lr;padding:0}#ThemeSelector{width:110px}#ColorRecommendations{flex-flow:wrap;gap:2px;display:flex}#Chapter:not(.Vertical)~#SettingsPanel .verticalSeparator{display:none}#ColorScheme{min-width:28px;min-height:28px;padding:5px}#ResetSettings,#ResetSettings::part(base){width:100%}",rh=class extends Qe{static{this.styles=[Lt`
      #SettingsPanel.mobile #SettingsPanelZoom,
      #SettingsPanel.mobile .fitIfOversize,
      #SettingsPanel.mobile .showThumbnails,
      #SettingsPanel.mobile .lazyLoadImages,
      #SettingsPanel.mobile .downloadZip,
      #SettingsPanel.mobile .minZoom,
      #SettingsPanel.mobile .zoomStep,
      #SettingsPanel.mobile .headerType,
      #SettingsPanel.mobile .navbarType,
      #SettingsPanel.mobile .autoScroll {
        display: none;
      }
    `,Wt(e6)]}render(){return le`
      <mov-drawer
        id="SettingsPanel"
        ?open=${pe("panel")==="settings"}
        @close=${zl}
        placement="start"
        class="${pe("device")}"
      >
        <h2 slot="label">${j("SETTINGS")}</h2>
        <mov-button
          id="ResetSettings"
          @click="${F5}"
          title="${j("BUTTON_RESET_SETTINGS")}"
        >
          <mov-icon
            name="IconSettingsOff"
            size="20px"
            slot="start"
          ></mov-icon>
          ${j("BUTTON_RESET_SETTINGS")}
        </mov-button>
        <div class="content">
          <fieldset id="SettingsPanelGeneral">
            <legend>${j("GENERAL")}</legend>
            ${$b()}
          </fieldset>
          <fieldset id="SettingsPanelTheme">
            <legend>${j("THEME")}</legend>
            ${qb()}
          </fieldset>
          <fieldset id="SettingsPanelLoading">
            <legend>${j("LOADING")}</legend>
            ${Nb()}
          </fieldset>
          <fieldset id="SettingsPanelZoom">
            <legend>${j("ZOOM")}</legend>
            ${Qb()}
          </fieldset>
          <fieldset id="SettingsPanelOthers">
            <legend>${j("OTHERS")}</legend>
            ${Vb()}
          </fieldset>
        </div>
      </mov-drawer>
    `}};rh=F([lt("settings-panel"),(0,Co.useStores)(Mt,ho,Jt)],rh);function t6(e){return new Promise(function(t,r){var i=new FileReader,a=typeof i.readAsBinaryString=="function";i.onloadend=function(){var s=i.result||"";if(a)return t(s);t(o6(s))},i.onerror=r,a?i.readAsBinaryString(e):i.readAsArrayBuffer(e)})}function n6(e){return t6(e).then(btoa)}function r6(e){return n6(e).then(function(t){return"data:"+e.type+";base64,"+t})}function o6(e){for(var t="",r=new Uint8Array(e),i=r.byteLength,a=-1;++a<i;)t+=String.fromCharCode(r[a]);return t}async function i6(e,t){Me("Fetching page: ",e);try{const r=await(await fetch(e)).text();return new DOMParser().parseFromString(r,t)}catch(r){throw Me("Failed to fetch page: ",r),r}}async function a6(e){return i6(e,"text/html")}async function s6(e,t,r){try{return(await a6(e)).querySelector(t)?.getAttribute(r)}catch(i){return Me("Failed to get element attribute: ",i),null}}var l6=class{constructor(e,t){this.queue=[],this.activeCount=0,this.lastRunTime=0;const r={Safe:{concurrency:5,delay:1e3},Standard:{concurrency:5,delay:500},Faster:{concurrency:10,delay:500},Extreme:{concurrency:10,delay:250},All:{concurrency:20,delay:50}}[e];this.maxConcurrency=r.concurrency,this.minDelay=t??r.delay}add(e){this.queue.push(e),this.runNext()}async runNext(){if(this.activeCount>=this.maxConcurrency||this.queue.length===0)return;const e=Date.now()-this.lastRunTime;if(e<this.minDelay){setTimeout(()=>this.runNext(),this.minDelay-e);return}const t=this.queue.shift();if(t){this.activeCount+=1,this.lastRunTime=Date.now();try{await t()}finally{this.activeCount-=1,this.runNext()}}}},Nl;function c6(e){if(e){let t=e.trim();return t.startsWith("//")&&(t=`https:${t}`),t}return""}async function Pa(e,t,r){const i=pe("images")?.[t];i?.status&&i.status!=="pending"||(Dn(t,()=>({status:"loading"})),Nl.add(async()=>{let a=c6(r),s,l="loaded";try{const h=await fetch(a,e.fetchOptions);h.ok?(s=await h.blob(),a=await r6(s)):l="error"}catch(h){Me("Failed to fetch image",h),l="error"}Dn(t,()=>({src:a,blob:s,status:l})),kn("Loaded Image:",t,"Source:",a)}),e.pages===t&&j0())}async function oh(e,t,r){const i=pe("images")?.[t];i?.status&&i.status!=="pending"||(Dn(t,()=>({status:"loading"})),Nl.add(async()=>{try{const a=await s6(r,e.img,e.lazyAttr??"src");a?(Dn(t,()=>({status:"pending"})),await Pa(e,t,a)):Dn(t,()=>({status:"error"}))}catch(a){Me("Failed to get page attribute",a),Dn(t,()=>({status:"error"}))}}))}function ih(e,t){yi(t.pages,e).filter((r,i)=>!(t.lazy??Y("lazyLoadImages"))||i<=Y("lazyStart")).forEach(r=>{oh(t,r,t.listPages[r-1])})}function ah(e,t){yi(t.pages,e).filter((r,i)=>!(t.lazy??Y("lazyLoadImages"))||i<=Y("lazyStart")).forEach(r=>{Pa(t,r,t.listImages[r-1])})}async function u6(){await xs(()=>pe("manga")!==void 0);const e=pe("manga"),t=e.begin??1;Nl=new l6(Y("loadSpeed"),e.timer),kn("Loading Images"),kn(`Speed: ${Y("loadSpeed")}`),kn(`Lazy: ${e.lazy??Y("lazyLoadImages")}, Starting from: ${Y("lazyStart")}`),jr(),Cu(e)?(kn("Method: Images:",e.listImages),ah(t,e)):Ou(e)?(kn("Method: Pages:",e.listPages),ih(t,e)):H2(e)?(kn("Method: Brute Force"),e.bruteForce({begin:t,addImg:Pa,loadImages(r){ah(t,{...e,listImages:r})},loadPages(r,i,a){ih(t,{...e,listPages:r,img:i,lazyAttr:a})},wait:0})):Me("No Loading Method Found"),Jt.listen((r,i,a)=>{if(a==="currentPage"&&r.currentPage>i.currentPage)for(let s=r.currentPage;s<Math.min(r.currentPage+5,e.pages+1);s++)r.images?.[s]?.src!==void 0||r.images?.[s]?.status==="loading"||(Cu(e)?Pa(e,s,e.listImages[s-1]):Ou(e)&&oh(e,s,e.listPages[s-1]))})}function d6(){const e=pe("images");if(!e)return null;const t=Y("viewMode"),r=t==="FluidLTR"||t==="FluidRTL",i=t==="FluidRTL",a=window.innerHeight/2,s=window.innerWidth/2;let l=null;for(const h in e){const u=e[h].ref?.value;if(!u)continue;const f=u?.getBoundingClientRect();let p;r?i?p=f.right:p=f.left:p=f.top,(r?p<=s:p<=a)&&(!l||p>l.edge)&&(l={index:parseInt(h,10),edge:p})}return l?l.index:pe("manga")?.begin??1}function sh(){const e=d6();e!=null&&pe("currentPage")!==e&&Pe("currentPage",e)}function h6(){const e=Se.default.throttle(()=>{requestAnimationFrame(sh)},100);window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),pe("chapter").value?.addEventListener("scroll",e,{passive:!0}),requestAnimationFrame(sh)}function lh(){if(!pe("chapter").value){setTimeout(lh,50);return}h6()}var ch=Se.default.debounce(()=>{Pe("device",Vo()),jr()},200);async function f6(){await xs(()=>pe("manga")!==void 0),Z0(),window.addEventListener("resize",ch),window.addEventListener("orientationchange",ch),D3(),lh()}var p6=yn(((e,t)=>{(function(r,i){typeof define=="function"&&define.amd?define(i):typeof e=="object"?t.exports=i():r.NProgress=i()})(e,function(){var r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(m){var E,y;for(E in m)y=m[E],y!==void 0&&m.hasOwnProperty(E)&&(i[E]=y);return this},r.status=null,r.set=function(m){var E=r.isStarted();m=a(m,i.minimum,1),r.status=m===1?null:m;var y=r.render(!E),A=y.querySelector(i.barSelector),x=i.speed,L=i.easing;return y.offsetWidth,h(function(T){i.positionUsing===""&&(i.positionUsing=r.getPositioningCSS()),u(A,l(m,x,L)),m===1?(u(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){u(y,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){r.remove(),T()},x)},x)):setTimeout(T,x)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var m=function(){setTimeout(function(){r.status&&(r.trickle(),m())},i.trickleSpeed)};return i.trickle&&m(),this},r.done=function(m){return!m&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(m){var E=r.status;return E?(typeof m!="number"&&(m=(1-E)*a(Math.random()*E,.1,.95)),E=a(E+m,0,.994),r.set(E)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},(function(){var m=0,E=0;r.promise=function(y){return!y||y.state()==="resolved"?this:(E===0&&r.start(),m++,E++,y.always(function(){E--,E===0?(m=0,r.done()):r.set((m-E)/m)}),this)}})(),r.render=function(m){if(r.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var E=document.createElement("div");E.id="nprogress",E.innerHTML=i.template;var y=E.querySelector(i.barSelector),A=m?"-100":s(r.status||0),x=document.querySelector(i.parent),L;return u(y,{transition:"all 0 linear",transform:"translate3d("+A+"%,0,0)"}),i.showSpinner||(L=E.querySelector(i.spinnerSelector),L&&v(L)),x!=document.body&&p(x,"nprogress-custom-parent"),x.appendChild(E),E},r.remove=function(){w(document.documentElement,"nprogress-busy"),w(document.querySelector(i.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&v(m)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var m=document.body.style,E="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return E+"Perspective"in m?"translate3d":E+"Transform"in m?"translate":"margin"};function a(m,E,y){return m<E?E:m>y?y:m}function s(m){return(-1+m)*100}function l(m,E,y){var A;return i.positionUsing==="translate3d"?A={transform:"translate3d("+s(m)+"%,0,0)"}:i.positionUsing==="translate"?A={transform:"translate("+s(m)+"%,0)"}:A={"margin-left":s(m)+"%"},A.transition="all "+E+"ms "+y,A}var h=(function(){var m=[];function E(){var y=m.shift();y&&y(E)}return function(y){m.push(y),m.length==1&&E()}})(),u=(function(){var m=["Webkit","O","Moz","ms"],E={};function y(T){return T.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(z,K){return K.toUpperCase()})}function A(T){var z=document.body.style;if(T in z)return T;for(var K=m.length,q=T.charAt(0).toUpperCase()+T.slice(1),oe;K--;)if(oe=m[K]+q,oe in z)return oe;return T}function x(T){return T=y(T),E[T]||(E[T]=A(T))}function L(T,z,K){z=x(z),T.style[z]=K}return function(T,z){var K=arguments,q,oe;if(K.length==2)for(q in z)oe=z[q],oe!==void 0&&z.hasOwnProperty(q)&&L(T,q,oe);else L(T,K[1],K[2])}})();function f(m,E){return(typeof m=="string"?m:b(m)).indexOf(" "+E+" ")>=0}function p(m,E){var y=b(m),A=y+E;f(y,E)||(m.className=A.substring(1))}function w(m,E){var y=b(m),A;f(m,E)&&(A=y.replace(" "+E+" "," "),m.className=A.substring(1,A.length-1))}function b(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function v(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return r})})),g6=Fi(p6(),1),m6=/^blob:(.+?)\/(.+)$/;function v6(e){return/^data:image\/(png|jpg|jpeg|gif|svg)/.test(e)}function b6(e){return m6.test(e)}function w6(e,t){const r=e.replace(/[?&]forceReload=\d+$/,"");return`${r+(r.includes("?")?"&":"?")}forceReload=${t}`}function _6(e){let t=1;const r=e?.match(/forceReload=(\d+)$/);return r?.at(1)&&(t=parseInt(r[1],10)+1),t}function uh(e,t){Me(`Reloading Page ${e}`,t);const r=pe("images")?.[e]?.src;if(!r)return;const i=_6(r);i>Y("maxReload")||(t?.removeAttribute("src"),v6(r)||b6(r)?t?.setAttribute("src",r):t?.setAttribute("src",w6(r,i)))}function y6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images")?.[r]?.ref?.value;i&&uh(r,i)}function k6(e){const t=e.currentTarget;Dn(parseInt(t.value,10),r=>({hide:!r.hide}))}function E6(e){const t=e.currentTarget;Dn(parseInt(t.id.replace("PageImg",""),10),h=>({...U0({naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight}),status:"loaded",doublePage:t.naturalWidth>t.naturalHeight}));const r=pe("manga"),i=pe("images")||{},a=Se.default.keys(i).filter(h=>{const u=parseInt(h,10);return u>=(r?.begin??1)&&u<=(r?.pages??1)&&i[u]?.status==="loaded"}).length,s=(r?.pages??1)-((r?.begin??1)-1),l=Math.floor(a/s*100);document.title=`(${l}%) ${pe("manga")?.title}`,g6.default.configure({showSpinner:!1}).set(a/s),Me(`Progress: ${l}%`),a===s&&(Me("Images Loading Complete"),Pe("download","available"),Y("downloadZip")&&L0())}function A6(e){const t=e.currentTarget;if(Ms(t.getAttribute("src")))return;const r=parseInt(t.id.replace("PageImg",""),10);Dn(r,()=>({status:"error"})),uh(r,t)}function S6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images"),a=pe("images")?.[r];a?.naturalWidth&&Pe("images",{...i,[r]:{...a,width:(a?.width||a?.naturalWidth)*(1+Y("zoomStep")/100),height:void 0}})}function M6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images"),a=pe("images")?.[r];a?.naturalWidth&&Pe("images",{...i,[r]:{...a,width:(a?.width||a?.naturalWidth)*(1-Y("zoomStep")/100),height:void 0}})}function x6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images"),a=pe("images")?.[r];a&&Pe("images",{...i,[r]:{...a,width:void 0,height:void 0}})}function I6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images"),a=pe("images")?.[r];a&&Pe("images",{...i,[r]:{...a,width:window.innerWidth+(Y("navbar")==="left"||Y("navbar")==="right"?-34:0),height:void 0}})}function C6(e){const t=e.currentTarget,r=parseInt(t.value,10),i=pe("images"),a=pe("images")?.[r];a&&Pe("images",{...i,[r]:{...a,width:void 0,height:window.innerHeight+(Y("navbar")==="bottom"?-34:0)}})}function O6(e){const t=pe("images")?.[e],r=Y("viewMode").match(/^(Book|Manga)$/),i=Y("viewMode")==="Gallery",a=Y("viewMode").startsWith("Fluid"),s=Y("navbar")==="bottom";return{width:t?.width?`${t.width}px`:"auto",height:t?.height?`${t.height}px`:"auto","max-height":a?`${window.innerHeight+(s?-34:0)}px`:void 0,"min-width":!r&&!i?`${Y("minZoom")}vw`:void 0}}var T6=(e,t)=>yi(e,t).map(r=>{pe("images")?.[r]?.ref||Dn(r,u=>({ref:$s()}));let i=0;for(let u=r-1;u>=t&&!pe("images")?.[u].doublePage;u--)pe("images")?.[u].doublePage||i++;const a=pe("images")?.[r].doublePage??!1,s=Y("viewMode")==="Book",l=!a&&(s?i%2===0:i%2===1),h=!a&&(s?i%2===1:i%2===0);return le`
      <div
        id="Page${r}"
        class="${St({MangaPage:!0,hide:!!pe("images")?.[r].hide,DoublePage:a,LeftPage:l&&!a,RightPage:h&&!a})}"
      >
        <div class="PageFunctions">
          <button
            class="Bookmark PageButton"
            title="${j("BOOKMARK")}"
            @click=${K0}
            value="${r}"
          >
            ${po()?K4:j4}
          </button>
          <button
            class="ZoomIn PageButton"
            title="${j("ZOOM_IN")}"
            @click=${S6}
            value="${r}"
          >
            ${n3}
          </button>
          <button
            class="ZoomRestore PageButton"
            title="${j("ZOOM_RESET")}"
            @click=${x6}
            value="${r}"
          >
            ${t3}
          </button>
          <button
            class="ZoomOut PageButton"
            title="${j("ZOOM_OUT")}"
            @click=${M6}
            value="${r}"
          >
            ${r3}
          </button>
          <button
            class="ZoomHeight PageButton"
            title="${j("ZOOM_HEIGHT")}"
            @click=${C6}
            value="${r}"
          >
            ${Z4}
          </button>
          ${Y("viewMode").match(/^(Book|Manga)$/)?le`
            <button
              class="DoublePage PageButton"
              title="${j("DOUBLE_PAGE")}"
              @click=${()=>{Dn(r,u=>({doublePage:!u.doublePage}))}}
              value="${r}"
            >
              ${e3}
            </button>`:le`
              <button
                class="ZoomWidth PageButton"
                title="${j("ZOOM_WIDTH")}"
                @click=${I6}
                value="${r}"
              >
                ${q4}
              </button>`}
          <button
            class="Hide PageButton"
            title="${j("HIDE")}"
            @click=${k6}
            value="${r}"
          >
            ${pe("images")?.[r].hide?X4:J4}
          </button>
          <button
            class="Reload PageButton"
            title="${j("RELOAD")}"
            @click=${y6}
            value="${r}"
          >
            ${Q4}
          </button>
          <span class="PageIndex">${r}</span>
        </div>
        <div class="PageContent">
          <img
            id="PageImg${r}"
            alt="Page ${r}"
            class="${St({PageImg:!0,imgBroken:pe("images")?.[r]?.status==="error"})}"
            src=${pe("images")?.[r]?.src??Ne}
            style="${Vn(O6(r))}"
            @load=${E6}
            @error=${A6}
            ${zs(pe("images")?.[r].ref)}
          />
        </div>
      </div>
      <div class="separator">
        [ ${r===e?j("END"):`${r} / ${e}`} ]
      </div>
    `}),L6=e=>le`
  <main
    id="Chapter"
    ${zs(pe("chapter"))}
    class="${St({fitWidthIfOversize:Y("fitWidthIfOversize"),[Y("viewMode")]:!0,separator:Y("viewMode")==="Vertical"})}"
    @wheel=${t=>{Y("viewMode")==="FluidLTR"?nh(t):Y("viewMode")==="FluidRTL"&&Ob(t)}}
  >
    ${T6(e.pages,e.begin??0)}
  </main>
`,R6=":root:not(.light,.dark){--theme-body-background:#25262b;--theme-body-text-color:#c1c2c5;--theme-text-color:#c1c2c5;--theme-primary-color:#1a1b1e;--theme-primary-text-color:#c1c2c5;--theme-background-color:#25262b;--theme-hightlight-color:#2c2e33;--theme-border-color:#373a40;--theme-secondary-color:#2c2e33;--theme-secondary-text-color:#c1c2c5}:host{box-sizing:border-box}#MangaOnlineViewer{color:var(--theme-body-text-color);background-color:var(--theme-body-background);box-sizing:border-box;min-height:100vh;text-decoration:none}#Chapter{box-sizing:border-box;grid-template-columns:repeat(1,1fr);min-width:225px;display:grid}#Chapter.Vertical:has(+#Navigation:not(.disabled)),#Chapter.WebComic:has(+#Navigation:not(.disabled)){padding-bottom:31px}#Chapter.Vertical .PageContent{margin-top:8px;margin-bottom:8px}.closeButton{width:fit-content;height:fit-content;position:absolute;top:10px;right:10px}.overlay{z-index:950;cursor:pointer;background-color:#00000080;width:100%;height:100%;display:none;position:fixed;inset:0}.overlay.visible{display:block}select{height:20px;margin:2px}:not(.FluidRTL,.FluidLTR).fitWidthIfOversize .PageContent .PageImg{object-fit:contain;max-width:100%}.hideControls .PageFunctions{visibility:hidden}",P6="@keyframes spin{to{transform:rotate(360deg)}}@keyframes spin-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.icon-tabler-loader-2,.animate-spin{animation:1s linear infinite spin}.animate-spin-reverse{animation:1s linear infinite spin-reverse}",$6="#Chapter:where(.Book,.Manga){grid-template-columns:1fr 1fr;grid-auto-flow:row;gap:0;width:100%;min-width:auto;display:grid}#Chapter:where(.Book,.Manga) .MangaPage{width:100%;min-height:22px;display:block;position:relative;overflow:hidden}#Chapter:where(.Book,.Manga) .MangaPage .PageFunctions{border-radius:0 0 0 4px;flex-direction:row;top:0;left:auto;right:0}#Chapter:where(.Book,.Manga) .MangaPage.LeftPage .PageFunctions{border-radius:0 0 4px;flex-direction:row-reverse;left:0;right:auto}#Chapter:where(.Book,.Manga) .MangaPage.DoublePage{grid-column:span 2}#Chapter:where(.Book,.Manga) .MangaPage .PageContent{flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}#Chapter:where(.Book,.Manga) .MangaPage.LeftPage .PageContent{justify-content:flex-end;padding-right:0}#Chapter:where(.Book,.Manga) .MangaPage.RightPage .PageContent{justify-content:flex-start;padding-left:0}#Chapter:where(.Book,.Manga) .MangaPage.DoublePage .PageContent{justify-content:center}#Chapter.Manga{direction:rtl}#Chapter.Manga .MangaPage{direction:ltr}",D6="#Chapter.FluidLTR,#Chapter.FluidRTL{min-width:auto;display:flex;overflow-x:auto;& .ZoomWidth{display:none}& .PageImg{min-width:unset}& .MangaPage{width:initial;min-width:fit-content;position:relative}& .MangaPage.DoublePage{grid-column:span 2}}#Chapter.FluidLTR{flex-direction:row;& .MangaPage .PageFunctions{direction:rtl;left:0;right:auto}}#Chapter.FluidRTL{flex-direction:row-reverse}",z6="#Chapter.Gallery{flex-wrap:wrap;justify-content:center;gap:10px;padding:10px;display:flex}.Gallery .MangaPage{width:auto;min-width:unset;flex:0 auto}.Gallery .MangaPage .PageContent .PageImg{min-width:unset}.Gallery .PageFunctions,.Gallery .separator{display:none}",N6='.PageButton .icon-tabler{vertical-align:sub;width:1rem;height:1rem}.PageButton,.PageButton:visited,.PageButton:link{cursor:pointer;min-height:32px;color:var(--mov-color-on-loud);background-color:var(--mov-color-fill-loud);border-style:solid;border-width:1px;border-color:var(--theme-border-color);border-radius:5px;padding:2px;text-decoration:none}.PageButton:active,.PageButton:hover{opacity:.8}.PageButton[selected]{background-color:var(--mov-color-fill-normal);color:var(--mov-color-on-normal);border:1px solid var(--theme-border-color)}.PageButton.hidden{display:none}.MangaPage{text-align:center;width:100%;min-width:100%;min-height:22px;line-height:0;display:inline-block}.PageContent{text-align:center;max-width:100%;height:100%;transition:all .3s ease-in-out;display:inline-block;overflow:auto hidden}.MangaPage.hide .PageContent{height:0}.PageContent .PageImg[src=""],.PageContent .PageImg:not([src]),.PageContent .PageImg.imgBroken{background-position:50%;background-repeat:no-repeat;background-size:20%;background-color:var(--theme-hightlight-color);text-align:center;vertical-align:top;width:40vw;height:80vh;color:var(--theme-text-color);min-width:40vw;max-width:100%;min-height:50vh;max-height:100%;margin:0;font-size:1rem;line-height:80vh;display:inline-block;position:relative}.PageContent .PageImg[src=""]:before,.PageContent .PageImg:not([src]):before,.PageContent .PageImg.imgBroken:before{content:attr(alt);white-space:pre-wrap;text-align:center;color:var(--theme-text-color);font-size:1rem;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.PageFunctions{justify-content:flex-end;align-items:center;gap:3px;margin:0;padding:0;font-family:monospace;display:flex;position:absolute;right:0}.PageFunctions>.PageIndex{background-color:var(--mov-color-fill-loud);color:var(--mov-color-on-loud);text-align:center;border-radius:5px;min-width:20px;padding:3px 5px;line-height:1rem;display:inline-block}.PageFunctions .PageButton{opacity:.5;border-width:0;justify-content:center;align-items:center;min-height:auto;margin:0;padding:3px;display:flex}.PageFunctions:hover .PageButton{opacity:1}.PageFunctions .PageButton:hover{opacity:.9}#Chapter.Vertical .separator{text-align:center;align-items:center;font-style:italic;display:flex}#Chapter.Vertical .separator:before,#Chapter.Vertical .separator:after{content:"";border-bottom:1px solid var(--theme-text-color);flex:1}#Chapter.Vertical.separator:not(:empty):before{margin-right:.25em}#Chapter.Vertical.separator:not(:empty):after{margin-left:.25em}#Chapter:not(.separator) .separator,#Chapter:not(.Vertical) .separator{display:none}',B6="html{font-size:100%}body{color:var(--theme-body-text-color);background-color:var(--theme-body-background);margin:0;padding:0;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px}a,a:link,a:visited,a:active,a:focus{color:var(--theme-body-text-color);text-decoration:none}img{vertical-align:middle;border:0;height:auto}",H6=Fu`
  .PageContent .PageImg[src=''],
  .PageContent .PageImg:not([src]) {
    background-image: url('${ki(Us)}');
  }

  .PageContent .PageImg.imgBroken {
    background-image: url('${ki(Vs)}');
  }

  ${B6}
  ${R6}
  ${N6}
  ${D6}
  ${$6}
  ${z6}
  ${Y0}
  ${P6}
`,F6=(e="#MangaOnlineViewer",t=Y("theme"))=>{const r=C0(t),i=So(t),a=Y("colorScheme")==="dark"?r[8]:r[2];return Fu`
    :where(:root),
    ${e}, .dark,
    ${e}.dark {
      --theme-primary-color: ${t};
      --theme-primary-text-color: ${i};
      --theme-secondary-color: ${a};
      --theme-secondary-text-color: ${So(a)};

      color-scheme: dark;
      --theme-body-background: ${At.dark[600]};
      --theme-body-text-color: ${At.dark[50]};
      --theme-text-color: ${At.dark[50]};
      --theme-background-color: ${At.dark[600]};
      --theme-hightlight-color: ${At.dark[500]};
      --theme-border-color: ${At.dark[400]};

      --mov-color-fill-quiet: ${r[9]};
      --mov-color-fill-normal: var(--theme-secondary-color, ${r[8]});
      --mov-color-fill-loud: var(--theme-primary-color);
      --mov-color-border-quiet: ${r[8]};
      --mov-color-border-normal: ${r[7]};
      --mov-color-border-loud: ${r[6]};
      --mov-color-on-quiet: ${r[4]};
      --mov-color-on-normal: var(--theme-secondary-text-color, ${r[3]});
      --mov-color-on-loud: var(--theme-primary-text-color, white);

      --mov-color-mix-hover: black 8%;
      --mov-color-mix-active: black 16%;
    }

    .light,
    ${e}.light {
      color-scheme: light;
      --theme-body-background: ${At.gray[50]};
      --theme-body-text-color: ${At.gray[900]};
      --theme-text-color: ${At.gray[900]};
      --theme-background-color: ${At.gray[50]};
      --theme-hightlight-color: ${At.gray[500]};
      --theme-border-color: ${At.gray[100]};

      --mov-color-fill-quiet: ${r[0]};
      --mov-color-fill-normal: var(--theme-secondary-color, ${r[1]});
      --mov-color-fill-loud: var(--theme-primary-color);
      --mov-color-border-quiet: ${r[1]};
      --mov-color-border-normal: ${r[2]};
      --mov-color-border-loud: ${r[4]};
      --mov-color-on-quiet: ${r[6]};
      --mov-color-on-normal: var(--theme-secondary-text-color, ${r[3]});
      --mov-color-on-loud: var(--theme-primary-text-color, white);

      --mov-color-mix-hover: black 10%;
      --mov-color-mix-active: black 20%;
    }
  `},G6="#StartMOV{all:revert;backface-visibility:hidden;color:#fff;cursor:pointer;text-align:center;z-index:105000;background-image:linear-gradient(90deg,#667eea,#764ba2,#6b8dd6,#8e37d7);background-size:300% 100%;border:none;border-radius:10px;width:80%;min-height:50px;margin:0 auto;padding:.5rem 1rem;font-size:2rem;transition:all .4s ease-in-out;position:fixed;bottom:0;left:0;right:0;box-shadow:0 4px 15px #744fa8bf}#StartMOV:hover{background-position:100% 0;transition:all .4s ease-in-out}#StartMOV:focus{outline:none}",Oo=class extends Qe{constructor(...t){super(...t),this.mangaPages=0,this.begin=1,this.timeoutMs=3e3,this.status="initial-prompt"}static{this.styles=[Wt(G6)]}connectedCallback(){super.connectedCallback(),this.status==="initial-prompt"&&(this.timeoutId=window.setTimeout(()=>{this.handleStart()},this.timeoutMs))}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.timeoutId)}handleStart(){window.clearTimeout(this.timeoutId),this.dispatchEvent(new CustomEvent("start",{detail:null}))}handleLateStart(t,r){this.dispatchEvent(new CustomEvent("start",{detail:{begin:t,end:r}}))}handleButtonCLick(){this.status="late-start-prompt"}handleDialogClose(t){t.stopPropagation(),window.clearTimeout(this.timeoutId),this.status="late-start-button"}render(){switch(this.status){case"late-start-button":return this.renderLateStartButton();case"late-start-prompt":return this.renderLateStartPrompt();default:return this.renderInitialPrompt()}}renderInitialPrompt(){return le`
      <mov-dialog
        ?open=${this.status==="initial-prompt"}
        icon="info"
        @close=${this.handleDialogClose}
      >
        <span slot="label">${j("STARTING")}</span>
        <div style="padding: 1rem;">${j("WAITING")}</div>
        <div
          slot="footer"
          style="display: flex; justify-content: space-between; padding: 0.5rem 1rem 1rem;"
        >
          <mov-button
            @click=${this.handleDialogClose}
            style="--mov-color-fill-loud: ${At.red[700]}; --mov-color-on-loud: white;"
          >
            Cancel
          </mov-button>
          <mov-button
            @click=${this.handleStart}
            style="--mov-color-fill-loud: ${At.green[700]}; --mov-color-on-loud: white;"
          >
            Start Now
          </mov-button>
        </div>
      </mov-dialog>
    `}renderLateStartButton(){return le`
      <button
        id="StartMOV"
        @click=${this.handleButtonCLick}
      >
        ${j("BUTTON_START")}
      </button>
    `}renderLateStartPrompt(){let t=this.begin,r=this.mangaPages;const i=a=>{[t,r]=[a.detail.value1,a.detail.value2]};return le`
      <mov-dialog
        ?open=${this.status==="late-start-prompt"}
        icon="question"
        @close=${this.handleDialogClose}
      >
        <span slot="label">${j("STARTING")}</span>
        <div style="padding: 1rem;">
          ${j("CHOOSE_BEGINNING")}
          <div
            id="pageInputGroup"
            style="padding: 1rem 0;"
          >
            <tc-range-slider
              id="pagesSlider"
              theme="glass"
              css-links="https://cdn.jsdelivr.net/npm/toolcool-range-slider@4.0.28/dist/plugins/tcrs-themes.min.css"
              min="1"
              max="${this.mangaPages}"
              round="0"
              step="1"
              value1="${t}"
              value2="${r}"
              data="${yi(this.mangaPages).join(", ")}"
              marks="true"
              marks-count="11"
              marks-values-count="11"
              generate-labels="true"
              slider-width="100%"
              pointers-overlap="false"
              generate-labels-text-color="var(--mov-color-on-loud)"
              @change=${i}
            ></tc-range-slider>
          </div>
        </div>
        <div
          slot="footer"
          style="display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.5rem 1rem 1rem;"
        >
          <mov-button
            @click=${this.handleDialogClose}
            style="--mov-color-fill-loud: ${At.red[700]}; --mov-color-on-loud: white;"
          >
            Close
          </mov-button>
          <mov-button
            @click=${()=>this.handleLateStart(t,r)}
            style="--mov-color-fill-loud: ${At.green[700]}; --mov-color-on-loud: white;"
          >
            Run
          </mov-button>
        </div>
      </mov-dialog>
    `}};F([ne({type:Number,reflect:!0})],Oo.prototype,"mangaPages",void 0),F([ne({type:Number,reflect:!0})],Oo.prototype,"begin",void 0),F([ne({type:Number})],Oo.prototype,"timeoutMs",void 0),F([ne({type:String,reflect:!0})],Oo.prototype,"status",void 0),Oo=F([lt("script-startup")],Oo);function W6(e){if(!e?.parentNode)return e;const t=e.cloneNode(!0);return e.parentNode.replaceChild(t,e),t}var U6=e=>{e.getAttributeNames().forEach(t=>{e?.removeAttribute(t)})},V6=(...e)=>{e?.forEach(U6),e?.forEach(W6)};function Z6(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var dh,$a=class extends Qe{constructor(...t){super(...t),this.loadMode="wait"}static{this.styles=[Lt``,Wt(H6)]}async start(t,r){this.manga&&(document.documentElement.hasAttribute("mov")||(V6(document.documentElement,document.head,document.body),document.documentElement.setAttribute("mov","")),window.scrollTo(0,0),Pe("manga",{...this.manga,begin:t??this.manga.begin,pages:r??this.manga.pages}))}firstUpdated(){this.loadMode==="always"&&this.start(),f6(),u6()}render(){const t=pe("manga"),r=pe("dialog");return le`
      <style>
        ${F6()}
      </style>
      <div
        id="MangaOnlineViewer"
        class="${St({[Y("colorScheme")]:!0,hideControls:Y("hidePageControls"),bookmarked:!!po(),[pe("device")]:!0})}"
        style="${Vn({[`padding-${Y("navbar")}`]:"34px"})}"
        .locale="${Y("locale")}"
      >
        ${t?le`
              <reader-header .manga=${t}></reader-header>
              ${L6(t)}
              <navbar-thumbnails
                .mode=${Y("navbar")}
              ></navbar-thumbnails>
              <manga-pagination
                .mode="${Y("pagination")}"
                .startPage=${t.begin}
                .totalPages=${t.pages}
                .currentPage=${pe("currentPage")}
                .next=${t.next}
                .prev=${t.prev}
              ></manga-pagination>
              <keybindings-panel></keybindings-panel>
              <bookmark-panel></bookmark-panel>
              <settings-panel></settings-panel>
              <moaqz-toaster dismissable></moaqz-toaster>`:le(dh||(dh=Z6([`
              <script-startup
                .mangaPages="`,`"
                begin="`,`"
                initialStatus="`,`"
                @start=`,`
              ><\/script-startup>`])),this.manga?.pages,this.manga?.begin,O0(this.loadMode,[["wait",()=>"initial-prompt"],["never",()=>"late-start-button"]]),i=>{this.start(i.detail?.begin,i.detail?.end)})}
        ${r?le`
              <mov-dialog
                open
                .icon=${r.icon}
                @close=${()=>Pe("dialog",null)}
              >
                <span slot="label">${r.title}</span>
                ${r.content} ${r.footer}
              </mov-dialog>
            `:""}
      </div>
    `}};F([ne({type:String,reflect:!0})],$a.prototype,"loadMode",void 0),F([ne({type:Object})],$a.prototype,"manga",void 0),$a=F([lt("manga-online-viewer"),(0,Co.useStores)(Mt,ho,Jt)],$a);var q6=`/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}`,j6="#nprogress{pointer-events:none}#nprogress .bar{z-index:1031;background:#29d;width:100%;height:2px;position:fixed;top:0;left:0}#nprogress .peg{opacity:1;width:100px;height:100%;display:block;position:absolute;right:0;transform:rotate(3deg)translateY(-4px);box-shadow:0 0 10px #29d,0 0 5px #29d}#nprogress .spinner{z-index:1031;display:block;position:fixed;top:15px;right:15px}#nprogress .spinner-icon{box-sizing:border-box;border:2px solid #0000;border-color:#29d #0000 #0000 #29d;border-radius:50%;width:18px;height:18px;animation:.4s linear infinite nprogress-spinner}.nprogress-custom-parent{position:relative;overflow:hidden}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}",K6="#nprogress .bar{z-index:1031;background:#29d;width:100%;height:4px;position:fixed;top:0;left:0}html[mov] body>:not(manga-online-viewer,#nprogress){display:none!important}html[mov]{all:unset;font-size:16px}",Y6=[q6,j6,K6].join(`
`);async function X6([e,t]){Me(`Found Pages: ${t.pages} in ${e?.name}`),t.title||(t.title=document.querySelector("title")?.textContent?.trim()),t.begin=po()??t.begin??1,t.before!==void 0&&(kn("Executing Preparation"),await t.before(t.begin??0)),document.head.innerHTML+=R5("externals",Y6);const r=document.createElement("manga-online-viewer");r.loadMode=e?.start??Y("loadMode"),r.manga=t,document.body.appendChild(r)}async function J6(e){Me(`Starting ${As.script.name} ${As.script.version} on ${Vo()} ${l2()} with ${c2()}`),Me(e.length,"Known Manga Sites:",e);const t=e.filter(i=>i.url.test(window.location.href));Me(t.length,"Found sites:",t);const r=t.map(async i=>{Me(`Testing site: ${i.name}`),await g2(i);const a=await i.run();if(a.pages>0)return[i,a];throw new Error(`${i.name} found ${a.pages} pages`)});try{X6(await Promise.any(r))}catch(i){if(i instanceof AggregateError){Me("All sites failed to run:");for(const a of i.errors)Me(a.message)}else Me("An unexpected error occurred:",i)}}var Q6={eq:(e,t)=>e.textContent?.trim()===t,starts:(e,t)=>!!e.textContent?.trim()?.startsWith(t),ends:(e,t)=>!!e.textContent?.trim()?.endsWith(t)};function hh(e,t,r){const i=Q6[r];if(!i)throw new Error(`Invalid matcherKey: ${r}`);return[...document.querySelectorAll(e)].filter(a=>Se.default.castArray(t).some(s=>i(a,s)))}function e9(e,t,r){return hh(e,t,r)?.[0]}function Bl(e,t,r,i="a"){return e9(e,t,r)?.closest(i)??null}var fh=(e,t)=>hh(e,t,"eq"),Yr=(e,t,r="a")=>Bl(e,t,"eq",r),t9=(e,t,r="a")=>Bl(e,t,"starts",r),n9=(e,t,r="a")=>Bl(e,t,"ends",r),r9={name:"Asura Scans",url:/https?:\/\/(www.)?(asurascans|asuracomics).(com|net)\/.+/,homepage:"https://asurascans.com/",language:[De.ENGLISH],category:Be.MANGA,waitEle:'astro-island[component-url*="ChapterReader"]',run(){const e=document.querySelector('astro-island[component-url*="ChapterReader"]'),t=JSON.parse(e?.getAttribute("props")||"{}"),r=t.seriesSlug?.[1],i=(t.pages?.[1]||[]).map(a=>a[1]?.url?.[1]).filter(Boolean);return{title:`${t.seriesName?.[1]} - Chapter ${t.chapterName?.[1]}`,series:`/comics/${r}`,pages:i.length,prev:Yr("span","Prev","a")?.getAttribute("href")||document.querySelector('link[rel="prev"]')?.getAttribute("href")||void 0,next:Yr("span","Next","a")?.getAttribute("href")||document.querySelector('link[rel="next"]')?.getAttribute("href")||void 0,listImages:i}}},o9={name:"Batoto",url:/https?:\/\/(?:www\.)?(?:fto|jto|hto|dto|mto|wto|bato|battwo|batotwo|comiko|batocomic|readtoto|zbato|xbato|mangatoto)\.(?:to|com|net|org)\/(chapter|title).*/,homepage:"https://rentry.co/batoto",language:[De.ENGLISH],category:Be.MANGA,waitEle:'div[name="image-item"] img, .page-img',run(){if(window.location.pathname.startsWith("/title")){window.location.search!=="?load=2"&&(window.location.search="?load=2");const t=[...document.querySelectorAll('div[name="image-item"] img')];return{title:document.querySelector("h6")?.textContent?.trim(),series:document.querySelector("h3 a")?.getAttribute("href"),pages:t.length,prev:n9("span","Prev Chapter","a")?.getAttribute("href"),next:t9("span","Next Chapter","a")?.getAttribute("href"),listImages:t.map(r=>r.getAttribute("src")??"")}}const e=[...document.querySelectorAll(".page-img")];return{title:document.querySelector(".nav-title a")?.textContent?.trim(),series:document.querySelector(".nav-title a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".nav-prev a")?.getAttribute("href"),next:document.querySelector(".nav-next a")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},i9={name:"BilibiliComics",url:/https?:\/\/(www\.)?(bilibilicomics).net\/episode\/.+/,homepage:"https://www.bilibilicomics.net/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"#__NUXT_DATA__",async run(){const e=JSON.parse(document.querySelector("#__NUXT_DATA__")?.innerHTML??"").filter(t=>typeof t=="string"&&/.(png|jpg|jpeg|gif|bmp|webp)$/i.exec(t));return{title:document.querySelector(".chapterTitle")?.textContent?.trim(),series:document.querySelector(".book-name")?.getAttribute("href"),pages:e.length,prev:document.querySelectorAll(".pre-next-btns").item(0)?.getAttribute("href"),next:document.querySelectorAll(".pre-next-btns").item(2)?.getAttribute("href"),listImages:e.map(t=>`https://static.comicfans.io/${t}`)}}},a9={name:"Comick",url:/https?:\/\/(www\.)?comick.io\/.+/,homepage:"https://comick.io/",language:[De.ENGLISH],category:Be.MANGA,waitFunc(){return/\/([^/]+)-chapter.+$/.test(window.location.pathname)},waitEle:"#__NEXT_DATA__",waitTime:3e3,run(){const e=JSON.parse(document.getElementById("__NEXT_DATA__")?.innerHTML??"")?.props?.pageProps,t=e?.chapter?.md_images?.map(r=>`https://meo.comick.pictures/${r?.b2key}`);return{title:e?.seoTitle??`${e.chapter?.md_comics?.title} ${e?.chapter?.chap}`,series:`/comic/${e?.chapter?.md_comics?.slug}`,pages:t?.length,prev:e?.prev?.href,next:e?.next?.href,listImages:t}}},s9={name:"Comix.to",homepage:"https://comix.to/",url:/https?:\/\/comix\.to\/(title|comic)\/.+\/.+/,language:De.ENGLISH,category:Be.COMIC,run:()=>{const e=[...document.querySelectorAll("script")].find(i=>i.textContent?.includes("self.__next_f.push")&&i.textContent?.includes("images"))?.textContent||"",t=e.substring(e.indexOf('"')+3,e.lastIndexOf('"')-2),r=JSON.parse(t.replaceAll("\\",""))[3].chapter.images.map(i=>i.url);return{title:document.querySelector("h1.page-title")?.textContent?.trim(),series:document.querySelector('.breadcrumbs a[href*="/title/"], .breadcrumbs a[href*="/comic/"]')?.getAttribute("href"),pages:r.length,prev:document.querySelector("a.prev-chapter")?.getAttribute("href"),next:document.querySelector("a.next-chapter")?.getAttribute("href"),listImages:r}}},l9={name:"Dynasty-Scans",url:/https?:\/\/(www\.)?dynasty-scans.com\/chapters\/.+/,homepage:"https://dynasty-scans.com/",language:[De.ENGLISH],category:Be.MANGA,run(){return{title:document.querySelector("#chapter-title")?.textContent?.trim(),series:document.querySelector("#chapter-title a")?.getAttribute("href"),pages:unsafeWindow.pages.length,prev:document.querySelector("#prev_link")?.getAttribute("href"),next:document.querySelector("#next_link")?.getAttribute("href"),listImages:unsafeWindow.pages.map(e=>e.image)}}},c9={name:"Flame Comics",url:/https?:\/\/(www.)?(flamecomics).(xyz)\/series\/.+/,homepage:"https://flamecomics.xyz/",language:[De.ENGLISH],category:Be.MANGA,run(){const e="https://cdn.flamecomics.xyz/uploads/images/series",t=JSON.parse(document.getElementById("__NEXT_DATA__")?.innerHTML??""),r=t?.props?.pageProps?.chapter,i=Se.default.keys(r?.images).map(a=>`${e}/${r?.series_id}/${r?.token}/${r?.images?.[a]?.name}?${r?.unix_timestamp}`);return{title:`${r?.title} ${r?.chapter}`,series:`../${r?.series_id}`,pages:i.length,prev:t?.props?.pageProps?.previous,next:t?.props?.pageProps?.next,listImages:i}}},u9={name:["FoOlSlide","Kireicake"],url:/^(?!.*jaiminisbox).*\/read\/.+/,homepage:["https://github.com/saintly2k/FoOlSlideX","https://reader.kireicake.com"],language:[De.ENGLISH],obs:"Any Site that uses FoOLSlide",category:Be.MANGA,waitEle:"img.open",run(){const e=[...document.querySelectorAll(".topbar_left .dropdown_parent:last-of-type li")],t=e.findIndex(l=>{const h=l.querySelector("a")?.getAttribute("href");return h?window.location.href.startsWith(h):!1}),r=[...document.querySelectorAll(".topbar_right .dropdown li")],i=[...document.querySelectorAll(".inner img:not(.open)")],a=i.length>1?i.length:r.length,s={title:e.at(t)?.querySelector("a")?.textContent?.trim()??document.querySelector("title")?.textContent?.trim(),series:document.querySelector("div.tbtitle div.text a")?.getAttribute("href"),pages:a,prev:e.at(t+1)?.querySelector("a")?.getAttribute("href"),next:e.at(t-1)?.querySelector("a")?.getAttribute("href")};return i.length>1?{...s,listImages:i.map(l=>l.getAttribute("src")??"")}:{...s,listPages:Array(a).fill(0).map((l,h)=>`${window.location.href.replace(/\/\d+$/,"")}/${h+1}`),img:"img.open"}}},d9={name:["Ikigai Mangas - EltaNews","Ikigai Mangas - Ajaco"],url:/https?:\/\/(visorikigai|visualikigai).(ajaco|eltanews|foodib|jobswu).(com|net|site)\/capitulo\/\d+/,homepage:["https://visorikigai.eltanews.com/","https://visorikigai.ajaco.net/"],language:[De.SPANISH],category:Be.MANGA,run(){const e=document.querySelector('script[type="qwik/json"]')?.textContent?.match(/http[^'"]+webp/gi)??[];return{title:document.querySelector("title")?.text.replace(" — Manga en línea | MangaOni",""),pages:e?.length,prev:Yr("span","Siguiente")?.getAttribute("href"),next:Yr("span","Anterior")?.getAttribute("href"),listImages:e}}},h9=e=>new Promise(t=>setTimeout(t,e));async function f9(e){const t=document.querySelector(".reader-content"),r=new Set,i=2e3,a=200;if(!t)return console.error("Error: '.reader-content' container not found."),[];let s=0;for(;r.size<e&&s<a;){t.scrollTop+=i,s++,await h9(300);const l=document.querySelectorAll(".reader-page img");for(const h of l){const u=h.getAttribute("src");u&&u.length>0&&r.add(u)}if(console.log(`Attempt ${s}: Collected ${r.size} of ${e} sources.`),t.scrollHeight-t.clientHeight<=t.scrollTop&&r.size<e){console.warn(`Reached end of scrollable content. Stopping with ${r.size} sources.`);break}}return Array.from(r)}var p9={name:"Kagane",homepage:"https://kagane.org/",url:/https:\/\/(www\.)?kagane\.org\/series\/.+\/reader\/.+/,language:De.ENGLISH,category:Be.MANGA,waitEle:".reader-page img",async run(){const e=window.location.href,t=e.match(/series\/([^/]+)/)?.[1],r=e.match(/reader\/([^/]+)/)?.[1],i=localStorage.getItem("rsch_did"),a={};i&&(a["X-Rsch-Did"]=i);const s=await fetch(`https://api.kagane.org/api/v1/series/${t}`,{headers:a}).then(w=>w.json()),l=(await fetch(`https://api.kagane.org/api/v1/books/${t}`,{headers:a}).then(w=>w.json())).data.content,h=l.find(w=>w.id===r),u=l.findIndex(w=>w.id===r),f=l[u+1],p=l[u-1];return{title:`${s.data.name} - ${h?.metadata?.title}`,series:`/series/${t}`,pages:h?.media?.pagesCount??0,prev:f?`/series/${t}/books/${f.id}`:void 0,next:p?`/series/${t}/books/${p.id}`:void 0,listImages:await f9(h?.media?.pagesCount??0)}}},g9={name:"KuManga",url:/https?:\/\/(www\.)?kumanga.com\/manga\/leer\/.+/,homepage:"https://www.kumanga.com/",language:[De.SPANISH],category:Be.MANGA,run(){const e=document.querySelectorAll("select").item(1).querySelector("option[selected]");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("h2 a")?.getAttribute("href"),pages:unsafeWindow.pUrl.length,prev:`/manga/leer/${e?.previousElementSibling?.getAttribute("value")}`,next:`/manga/leer/${e?.nextElementSibling?.getAttribute("value")}`,listImages:unsafeWindow.pUrl.map(t=>t.imgURL)}}},m9={name:"LeerCapitulo",url:/https?:\/\/(www.)?leercapitulo.co\/leer\/.+/,homepage:"https://www.leercapitulo.co/",language:[De.SPANISH],category:Be.MANGA,waitEle:"#page_select",run(){const e=[...document.querySelectorAll("#page_select option")].map(t=>t.getAttribute("value")??"");return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector(".chapter-title a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".pre")?.getAttribute("href"),next:document.querySelector(".next")?.getAttribute("href"),listImages:e}}},v9={name:"LHTranslation",url:/https?:\/\/(www\.)?lhtranslation.net\/read.+/,homepage:"https://lhtranslation.net/",language:[De.ENGLISH],category:Be.MANGA,run(){const e=document.querySelector(".form-control option:checked"),t=[...document.querySelectorAll("img.chapter-img")];return{title:document.querySelector(".chapter-img.tieude font")?.textContent?.trim(),series:document.querySelector(".navbar-brand.manga-name")?.getAttribute("href"),pages:t.length,prev:e?.nextElementSibling?.getAttribute("value"),next:e?.previousElementSibling?.getAttribute("value"),listImages:t.map(r=>r.getAttribute("src")??"")}}},b9={name:"Local Files",url:/(file:\/\/\/.+(index)?.html)/,homepage:"/index.html?raw=1",language:[De.RAW],category:Be.MANGA,run(e){const t=e??parseInt(/\d+/.exec(window.location.search)?.toString()??"5",10);return{title:"Placeholder Manga Loaded",series:"?reload",pages:t,begin:1,prev:"?pages=50",next:"?pages=1",listImages:[Vt(1970,1400,"#2D1657"),Vt(985,1400,"#152C55"),Vt(985,1400,"#7A1420"),Vt(1970,1400,"#806D15"),Vt(985,1400,"#0F5B30"),Vt(1970,1400,"#1a3e3c"),Vt(985,1400,"#480f5b"),Vt(985,1400,"#a9bf7a"),Vt(985,1400,"#147a56"),Vt(1970,1400,"#190343"),Vt(985,1400,"#d5b91e"),Vt(985,1400,"#836ecd"),Vt(985,1400,"#bf19b2"),Vt(985,1400,"#152055"),...Array(t).fill(0).map(Cb)]}}},w9={name:"M440",url:/https?:\/\/(www\.)?m440.in\/manga\/.+\/.+\/\d+/,homepage:"https://m440.in/",language:[De.SPANISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll("#all img")],t=document.querySelector("#chapter-list li.active");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("#navbar-collapse-1 ul:nth-child(2) a")?.getAttribute("href"),pages:e.length,prev:t?.nextElementSibling?.firstElementChild?.getAttribute("href"),next:t?.previousElementSibling?.firstElementChild?.getAttribute("href"),listImages:e.map(r=>r.getAttribute("data-src")??"")}}},ph=/^([\t\n])*(https?:\/\/)?.+\.(jpg|jpeg|png|gif|bmp|webp).*$/;function gh(){return[...document.querySelectorAll(".wp-manga-chapter-img, .blocks-gallery-item img, .reading-content img, #chapter-images img, #chapterContent img")].map(e=>{const t=[...e.attributes].filter(r=>/.*(src|url).*/i.test(r.name)&&!/^.*(blank|lazy|loading).*$/.test(r.value));return t.length===0?"":t.find(r=>ph.test(r.value))?.value??e?.getAttribute("src")??""})}var _9={name:["Madara WordPress Plugin","MangaHaus","Isekai Scan","Comic Kiba","Zinmanga","mangatx","Toonily","Mngazuki","JaiminisBox","DisasterScans","ManhuaPlus","TopManhua","NovelMic","Reset-Scans","LeviatanScans","Dragon Tea","SetsuScans","ToonGod","Hades Scans"],url:/https?:\/\/.+\/(manga|series|manhua|comic|ch|novel|webtoon|tmo)\/.+\/.+/,homepage:["https://mangabooth.com/","https://manhuaus.com","https://isekaiscan.com/","https://comickiba.com/","https://zinmanga.com/","https://mangatx.com/","https://toonily.net/","https://mangazuki.me/","https://jaiminisbox.net","https://disasterscans.com/","https://manhuaplus.org/","https://www.topmanhua.com/","https://novelmic.com/","https://reset-scans.com/","https://leviatanscans.com/","https://dragontea.ink/","https://setsuscans.com/","https://toongod.org/home/","https://lectorhades.latamtoon.com"],language:[De.ENGLISH],obs:"Any Site that uses Madara WordPress Plugin",category:Be.MANGA,waitFunc:()=>{const e=gh();return e.length>0&&e.every(t=>t&&ph.test(t))},run(){const e=gh();return{title:document.querySelector("#chapter-heading")?.textContent?.trim(),series:(document.querySelector(".breadcrumb li:nth-child(3) a")??document.querySelector(".breadcrumb li:nth-child(2) a"))?.getAttribute("href"),pages:e.length,prev:document.querySelector(".prev_page")?.getAttribute("href"),next:document.querySelector(".next_page")?.getAttribute("href"),listImages:e}}},y9={name:"MangaBall",homepage:"https://mangaball.net/",url:/https?:\/\/mangaball\.net\/chapter-detail\/.+/,language:De.ENGLISH,category:Be.MANGA,run:async()=>{const e=[...document.querySelectorAll("script")].find(f=>f.textContent?.includes("chapterImages"))?.textContent;if(!e)return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector('a[href*="/title-detail/"]')?.getAttribute("href")??document.querySelector('a[href*="/manga-detail/"]')?.getAttribute("href"),pages:0,listImages:[]};const t=e.match(/titleId\s*=\s*[`'"](.+?)[`'"]/)?.[1],r=e.match(/chapterNumber\s*=\s*[`'"](.+?)[`'"]/)?.[1],i=e.match(/chapterVolume\s*=\s*[`'"](.+?)[`'"]/)?.[1],a=e.match(/chapterLanguage\s*=\s*[`'"](.+?)[`'"]/)?.[1],s=JSON.parse(e.match(/chapterImages\s*=\s*JSON\.parse\(\s*[`'"](.+?)[`'"]\s*\)/)?.[1]??e.match(/chapterImages\s*=.*(\[.*?\])/)?.[1]??"[]"),l=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")||"",h=((await(await fetch("/api/v1/chapter/chapter-listing-by-title-id/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-CSRF-TOKEN":l},body:`title_id=${t}&lang=${a}`})).json()).ALL_CHAPTERS||[]).sort((f,p)=>p.number_float-f.number_float),u=f=>{const p=parseFloat(r||"0"),w=h.findIndex(E=>E.number_float===p);if(w===-1)return;const b=f==="next"?-1:1,v=w+b,m=String(i);for(let E=v;E>=0&&E<h.length;E+=b){const y=h[E].translations.find(A=>A.language===a&&String(A.volume)===m);if(y)return y.url}};return{title:document.querySelector("h1")?.textContent?.trim(),series:document.querySelector(`a[href*="${t}"]`)?.getAttribute("href")??document.querySelector('a[href*="/title-detail/"]')?.getAttribute("href")??document.querySelector('a[href*="/manga-detail/"]')?.getAttribute("href"),pages:s.length,prev:u("prev"),next:u("next"),listImages:s}}},k9={name:"MangaBuddy",url:/https?:\/\/(www\.)?mangabuddy.com\/.+\/chapter.+/,homepage:"https://mangabuddy.com/",language:[De.ENGLISH],category:Be.MANGA,waitVar:"chapImages",run(){const e=unsafeWindow.chapImages.split(",").map(t=>new URL(t).pathname.replace("/res/","https://sb.mbcdn.xyz/"));return{title:document.querySelector(".chapter-info")?.textContent?.trim(),series:document.querySelector("#breadcrumbs-container div:nth-child(2) a")?.getAttribute("href"),pages:e.length,prev:document.querySelector("a.prev")?.getAttribute("href"),next:document.querySelector("a.next")?.getAttribute("href"),listImages:e}}},E9={name:"MangaDex",url:/https?:\/\/(www\.)?mangadex.org/,homepage:"https://mangadex.org/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"#chapter-selector a",async run(){const e=`https://api.mangadex.org/at-home/server/${/\/chapter\/([^/]+)(\/\d+)?/.exec(window.location.pathname)?.at(1)}`,t=await fetch(e).then(async a=>a.json()),r=t.chapter.data,i=document.querySelectorAll("#chapter-selector a");return{title:document.querySelector("title")?.text.replace(" - MangaDex",""),series:document.querySelector("a.text-primary[href^='/title/']")?.getAttribute("href"),pages:r.length,prev:i?.item(0)?.getAttribute("href"),next:i?.item(1)?.getAttribute("href"),listImages:r.map(a=>`${t.baseUrl}/data/${t.chapter.hash}/${a}`)}}},A9={name:["MangaFox","MangaHere"],url:/https?:\/\/(www\.)?(fanfox.net|mangahere.cc)\/manga\/.+\/.+\//,homepage:["https://fanfox.net/","https://www.mangahere.cc/"],language:[De.ENGLISH],category:Be.MANGA,waitVar:"chapterid",async run(){const e=document.querySelector("#dm5_key")?.getAttribute("value"),t={method:"GET",headers:{"Content-Type":"text/plain"}},r=Array(unsafeWindow.imagecount).fill(0).map(async(a,s)=>{const l=`chapterfun.ashx?cid=${unsafeWindow.chapterid??unsafeWindow.chapter_id}&page=${s}&key=${e}`,h=await fetch(l,t).then(async u=>u.text());return(0,eval)(h),d}),i=await Promise.all(r);return{title:document.querySelector(".reader-header-title div")?.textContent?.trim(),series:document.querySelector(".reader-header-title a")?.getAttribute("href"),pages:unsafeWindow.imagecount,prev:unsafeWindow.prechapterurl,next:unsafeWindow.nextchapterurl,listImages:i.map((a,s)=>a[s===0?0:1])}}},S9={name:"Mangago",url:/https?:\/\/(www\.)?mangago.me\/.*\/.*\/.*/,homepage:"https://www.mangago.me/",language:[De.ENGLISH],category:Be.MANGA,waitVar:"imgsrcs",run(){const e=CryptoJS.enc.Hex.parse("e11adc3949ba59abbe56e057f20f883e"),t={iv:CryptoJS.enc.Hex.parse("1234567890abcdef1234567890abcdef"),padding:CryptoJS.pad.ZeroPadding},r=CryptoJS.AES.decrypt(unsafeWindow.imgsrcs,e,t).toString(CryptoJS.enc.Utf8).split(",");return{title:`${unsafeWindow.manga_name} ${unsafeWindow.chapter_name}`,series:unsafeWindow.mid,pages:unsafeWindow.total_pages,prev:document.querySelector(".recom p:nth-child(5) a")?.getAttribute("href"),next:unsafeWindow.next_c_url,listImages:r,before(){r.some(i=>i==="")&&document.querySelector("#nform")?.submit()}}}},M9={name:"MangaHub",url:/https?:\/\/(www\.)?(mangahub).io\/chapter\/.+\/.+/,homepage:"https://mangahub.io/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"#select-chapter",async run(){function e(s){const l=new RegExp(`${s}=([^;]+)`).exec(document.cookie);return l!=null?decodeURIComponent(l[1]):null}const t={query:`{chapter(x:m01,slug:"${unsafeWindow.CURRENT_MANGA_SLUG??window.location.pathname.split("/")[2]}",number:${window.location.pathname.split("/")[3].replace("chapter-","")}){pages}}`},r={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","x-mhub-access":e("mhub_access")??""}},i=await fetch("https://api.mghcdn.com/graphql",r).then(async s=>s.json()),a=JSON.parse(i?.data.chapter.pages.toString());return{title:document.querySelector("#mangareader h3")?.textContent?.trim(),series:document.querySelector("#mangareader a")?.getAttribute("href"),pages:a.i.length,prev:document.querySelector(".previous a")?.getAttribute("href"),next:document.querySelector(".next a")?.getAttribute("href"),listImages:a.i.map(s=>`https://imgx.mghcdn.com/${a.p+s}`)}}},x9={name:["MangaKakalot","NeloManga ","MangaNato","NatoManga","MangaBats"],url:/https?:\/\/(www\.)?(read|chap)?(nelomanga|mangakakalot|natomanga|manganato|mangabats|mangakakalove).(com|gg|net).*\/(chapter|manga)\/.+\/.+/,homepage:["https://mangakakalot.gg/","https://www.nelomanga.com/","https://www.manganato.gg/","https://www.natomanga.com/","https://www.mangabats.com/"],language:[De.ENGLISH],category:Be.MANGA,waitEle:".navi-change-chapter-btn-prev, .next, .navi-change-chapter-btn-next, .back",run(){const e=[...document.querySelectorAll("#vungdoc img, .container-chapter-reader img")];return{title:document.querySelector(".info-top-chapter h2, .imageOptions-chapter-info-top h1, .panel-chapter-info-top h1")?.textContent?.trim(),series:document.querySelectorAll("span a[title]").item(1).getAttribute("href"),pages:e.length,prev:document.querySelector(".navi-change-chapter-btn-prev, .next")?.getAttribute("href"),next:document.querySelector(".navi-change-chapter-btn-next, .back")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},I9={name:"MangaOni",url:/https?:\/\/(www\.)?manga-oni.com\/lector\/.+\/\d+\/cascada/,homepage:"https://manga-oni.com/",language:[De.SPANISH],category:Be.MANGA,run(){document.querySelector("#c_list")?.dispatchEvent(new Event("mouseover"));const e=document.querySelector("#c_list option:checked"),t=[...document.querySelectorAll("#slider img")];return{title:document.querySelector("title")?.text.replace(" — Manga en línea | MangaOni",""),pages:t?.length,prev:e?.nextElementSibling?.getAttribute("value"),next:e?.previousElementSibling?.getAttribute("value"),listImages:t.map(r=>r.getAttribute("data-src")??r.getAttribute("src")??"")}}},C9={name:"MangaPark",url:/https?:\/\/(www\.)?(mangapark|mpark|comicpark|readpark|parkmanga).(com|me|org|net|io|to)\/title\/.+\/.+/,homepage:"https://mangapark.net/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"main div div a.btn-primary",run(){const e=[...document.querySelectorAll("main div div > img.w-full")];return{title:[...document.querySelectorAll(".comic-detail h3 a, .comic-detail h6 span")].map(t=>t.textContent?.trim()).join(" "),series:document.querySelector(".comic-detail a")?.getAttribute("href"),pages:e.length,prev:document.querySelectorAll("main div div a.btn-primary")?.item(0)?.getAttribute("href"),next:document.querySelectorAll("main div div a.btn-primary")?.item(1)?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},O9={name:"MangaReader",url:/https?:\/\/(www\.)?mangareader.to\/read\/.+\/.+\/.+/,homepage:"https://mangareader.to",language:[De.ENGLISH],category:Be.MANGA,obs:"Some galleries will not be usable",waitEle:".ds-image, .iv-card",async run(){const e=document.querySelector(".chapter-item.active"),t=[...document.querySelectorAll(".ds-image[data-url], .iv-card[data-url]")].map(async r=>{const i=r.getAttribute("data-url")??"";return i&&r.classList.contains("shuffled")?(await imgReverser(i)).toDataURL():i});return{title:document.querySelector(".hr-manga h2")?.textContent?.trim(),series:document.querySelector(".hr-manga")?.getAttribute("href"),pages:t.length,prev:e?.nextElementSibling?.querySelector("a")?.getAttribute("href"),next:e?.previousElementSibling?.querySelector("a")?.getAttribute("href"),listImages:await Promise.all(t)}}},T9={name:["MangaStream WordPress Plugin","Realm Oasis","Voids-Scans","Luminous Scans","Shimada Scans","Night Scans","Manhwa-Freak","OzulScansEn","CypherScans","MangaGalaxy","LuaScans","Drake Scans","Rizzfables","NovatoScans","TresDaos","Lectormiau","NTRGod","Threedaos"],url:/https?:\/\/[^/]*(scans?|comic|realm|rizz|hivetoon|tresdaos|zonamiau|ntrgod|threedaos)[^/]*\/.+/,homepage:["https://themesia.com/mangastream-wordpress-theme/","https://realmoasis.com/","https://void-scans.com/","https://luminous-scans.com/","https://shimadascans.com/","https://night-scans.com/","https://freakcomic.com/","https://ozulscansen.com/","https://cypherscans.xyz/","https://mangagalaxy.me/","https://luascans.com/","https://drake-scans.com/","https://rizzfables.com/","https://www.novatoscans.top/","https://tresdaos.com","https://zonamiau.com/","https://ntrgod.com/","https://threedaos.zdrz.xyz/"],language:[De.ENGLISH,De.SPANISH],category:Be.MANGA,waitEle:':where(#readerarea, .check-box, #viewer-img) img:not(.asurascans):not([src*="loader"]):not([src*="chevron"]),:where(.nextprev, .inner_nPL)',run(){const e=[...document.querySelectorAll(this.waitEle??"")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(":where(.allc, .tac) a")?.getAttribute("href")??document.querySelectorAll('[class*="breadcrumb"] a').item(1)?.getAttribute("href"),pages:e.length,prev:fh(":where(.nextprev, .inner_nPL) a",["Prev","Anterior"])?.[0]?.getAttribute("href"),next:fh(":where(.nextprev, .inner_nPL) a",["Next","Siguiente"])?.[0]?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-src")??t.getAttribute("data-lazy-src")??t.getAttribute("src")??"")}}},L9={name:"MangaToons",url:/https?:\/\/.*mangatoon.mobi\/.+\/watch\/.+/,homepage:"https://mangatoon.mobi/",language:[De.ENGLISH],category:Be.MANGA,waitEle:".pictures img:not(.cover)",run(){const e=[...document.querySelectorAll(".pictures img:not(.cover)")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(".top-left a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".page-icons-prev")?.getAttribute("href"),next:document.querySelector(".page-icons-next")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-src")??"")}}},R9={name:"MangaTown",url:/https?:\/\/www\.mangatown\.com\/manga\/.+\/.+\//,homepage:"https://www.mangatown.com/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"div.page_select select option, .read_img .image",run(){const e=document.querySelector("div.page_select select")?.querySelectorAll("option"),t=[...document.querySelectorAll(".read_img .image")].map(i=>i.getAttribute("src")??""),r=[...e??[]].map(i=>i.value).filter(i=>!i.endsWith("featured.html")).map(i=>new URL(i,window.location.href).href);return{title:document.querySelector("div.title h1")?.textContent?.trim(),series:document.querySelector("div.title a")?.getAttribute("href"),pages:unsafeWindow.total_pages||r.length,prev:document.querySelector(".chapter_select option:checked")?.previousElementSibling?.getAttribute("value"),next:document.querySelector(".chapter_select option:checked")?.nextElementSibling?.getAttribute("value"),...t.length>1?{listImages:t}:{listPages:r,img:"#image"}}}},P9={name:"ManhwaWeb",url:/https?:\/\/(www\.)?manhwaweb.com\/leer\/.+/,homepage:"https://manhwaweb.com/",language:[De.SPANISH],category:Be.MANGA,async run(){const e=window.location.pathname.replace("/leer",""),t=await fetch(`https://manhwawebbackend-production.up.railway.app/chapters/see${e}`).then(async i=>i.json()),r=await fetch(`https://manhwawebbackend-production.up.railway.app/chapters/seeprevpost${e}`).then(async i=>i.json());return{title:`${t.name} ${t.chapter.chapter}`,series:[...document.querySelectorAll("div")].filter(i=>i.textContent==="Episodios")?.[0]?.parentElement?.getAttribute("href"),pages:t.chapter.img.length,prev:r.chapterAnterior.replace(t._id,t.real_id),next:r.chapterSiguiente.replace(t._id,t.real_id),listImages:t.chapter.img}}},$9={name:["MangaGeko.com","MangaGeko.cc"],url:/https?:\/\/(www\.)?mgeko.(com|cc)?\/reader\/.*/,homepage:["https://www.mgeko.com/","https://www.mgeko.cc/"],language:[De.ENGLISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll('img[id^="image-"]')];return{title:document.querySelector(".titles")?.textContent?.trim(),series:document.querySelector(".titles a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".chnav.prev:not(.isDisabled)")?.getAttribute("href"),next:document.querySelector(".chnav.next:not(.isDisabled)")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},D9={name:"NineAnime",url:/https?:\/\/(www\.)?nineanime.com\/chapter\/.+/,homepage:"https://www.nineanime.com/",language:[De.ENGLISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll(".sl-page option")],t=document.querySelector(".mangaread-pagenav select option[selected]");return{title:`${document.querySelector(".title h1")?.textContent?.trim()}/${document.querySelector(".title h2")?.textContent?.trim()}`,series:document.querySelector(".title a:has(h2)")?.getAttribute("href"),pages:e.length,prev:t?.nextElementSibling?.getAttribute("value"),next:t?.previousElementSibling?.getAttribute("value"),listPages:e.map(r=>r.getAttribute("value")??""),img:".manga_pic"}}},z9={name:"OlympusBiblioteca",url:/https?:\/\/(www\.)?olympusbiblioteca.com\/capitulo\/\d+\/.+/,homepage:"https://olympusbiblioteca.com/",language:[De.SPANISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll("section img.w-full.h-full")];return{title:document.querySelector("title")?.textContent?.replace(/\|.+/,"").trim(),series:document.querySelector("h1")?.closest("a")?.getAttribute("href"),pages:e.length,prev:document.querySelector('a[name="capitulo anterior"]')?.getAttribute("href"),next:document.querySelector('a[name="capitulo siguiente"]')?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},N9={name:"QiManhwa",url:/https?:\/\/qimanhwa\.com\/series\/[^/]+\/chapter-.+/,homepage:"https://qimanhwa.com/",language:[De.ENGLISH],category:Be.MANGA,waitEle:'img[alt*="Chapter"]',run(){const e=[...document.querySelectorAll('img[alt*="Chapter"]')];return{title:document.querySelector("h1")?.textContent?.trim(),series:Yr("button","Home","a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".lucide-chevron-left")?.closest("a")?.getAttribute("href"),next:document.querySelector(".lucide-chevron-right")?.closest("a")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("src")??"")}}},B9={name:"ReadComicsOnline",url:/https?:\/\/(www\.)?readcomicsonline.ru\/comic\/.*\/\d*/,homepage:"https://readcomicsonline.ru/",language:[De.ENGLISH],category:Be.COMIC,run(){const e=[...document.querySelectorAll("#all img")];return{title:unsafeWindow.title.replace(/ - Page \d+/,""),series:document.querySelector("div.pager-cnt a")?.getAttribute("href"),pages:unsafeWindow.pages.length,prev:unsafeWindow.prev_chapter,next:unsafeWindow.next_chapter,listImages:e.map(t=>t.getAttribute("data-src")??"")}}},H9={name:"ReaperScans",url:/https?:\/\/(www\.)?reaperscans\.com\/series\/.+\/chapter.+/,homepage:"https://reaperscans.com/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"#content .container img:not(.rounded)",run(){const e=[...document.querySelectorAll("#content .container img:not(.rounded)")];return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector("button .fa-house")?.closest("a")?.getAttribute("href"),pages:e.length,prev:document.querySelector(".fa-chevron-left")?.closest("a")?.getAttribute("href"),next:document.querySelector(".fa-chevron-right")?.closest("a")?.getAttribute("href"),listImages:e.map(t=>(t.getAttribute("data-src")||t.getAttribute("src"))??"")}}},F9={name:"TuMangaOnline",url:/https?:\/\/(www\.)?(.+).com\/(viewer|news)\/.+\/(paginated|cascade)/,homepage:"https://lectortmo.com/",language:[De.SPANISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll(".img-container img, .viewer-container img")],t=[...document.querySelectorAll("div.container:nth-child(4) select#viewer-pages-select option")],r=e.length>1?e.length:t.length,i={title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector('a[title="Volver"]')?.getAttribute("href"),pages:r,prev:document.querySelector(".chapter-prev a")?.getAttribute("href"),next:document.querySelector(".chapter-next a")?.getAttribute("href")};return e.length>1?{...i,listImages:e.map(a=>a.getAttribute("data-src")??"")}:{...i,listPages:Array(t.length).fill(0).map((a,s)=>`${window.location.href.replace(/\/\d+$/,"")}/${s+1}`),img:"#viewer-container img, .viewer-page"}}},G9={name:"Vortex Scans",url:/https?:\/\/(www.)?(vortexscans).(org)\/.+/,homepage:"https://vortexscans.org/",language:[De.ENGLISH],category:Be.MANGA,waitVar:"__next_f",waitFunc(){return unsafeWindow.__next_f.find(e=>/images/.test(e?.[1]))?.length>0},run(){const e=unsafeWindow.__next_f.find(r=>/images/.test(r?.[1]))?.[1],t=e.slice(e.indexOf("images")).match(/http[^"]+\.(png|gif|jpg|jpeg|webp)/g)??[];return{title:document.querySelector("time")?.closest("div")?.querySelector("div")?.textContent?.trim(),series:document.querySelector("time")?.closest("a")?.getAttribute("href"),pages:t?.length,prev:Yr("button","Prev","a")?.getAttribute("href"),next:Yr("button","Next","a")?.getAttribute("href"),listImages:t}}},W9={name:"WebNovel",url:/https?:\/\/(www\.)?webnovel.com\/comic\/.+/,homepage:"https://www.webnovel.com/",language:[De.ENGLISH],category:Be.MANGA,waitVar:"g_data",run(){const e=unsafeWindow.g_data.chapter.chapterInfo.chapterPage.map(t=>t.url);return{title:document.querySelector("title")?.textContent?.trim(),series:"./",pages:e.length,prev:`${unsafeWindow.g_data.chapter.chapterInfo.preChapterName}_${unsafeWindow.g_data.chapter.chapterInfo.preChapterId}`,next:`${unsafeWindow.g_data.chapter.chapterInfo.nextChapterName}_${unsafeWindow.g_data.chapter.chapterInfo.nextChapterId}`,listImages:e}}},U9={name:"WebToons",url:/https?:\/\/(www\.)?webtoons.com\/.+viewer.+/,homepage:"https://www.webtoons.com/",language:[De.ENGLISH],category:Be.MANGA,run(){const e=[...document.querySelectorAll("#_imageList img")];return{title:document.querySelector(".subj_info")?.textContent?.trim(),series:document.querySelector(".subj_info a")?.getAttribute("href"),pages:e.length,prev:document.querySelector("._prevEpisode")?.getAttribute("href"),next:document.querySelector("._nextEpisode")?.getAttribute("href"),listImages:e.map(t=>t.getAttribute("data-url")??t.getAttribute("data-src")??t.getAttribute("src")??"")}}},V9={name:"WeebCentral",url:/https?:\/\/(www\.)?(weebcentral).com\/chapters\/.+/,homepage:"https://weebcentral.com/",language:[De.ENGLISH],category:Be.MANGA,waitEle:"main section .maw-w-full",async run(){const e=[...document.querySelectorAll("main section .maw-w-full")].map(i=>i.getAttribute("src")??""),t=await fetch(document.querySelector("main section a + button")?.getAttribute("hx-get")??"").then(i=>i.text()),r=new DOMParser().parseFromString(t,"text/html");return{title:document.querySelector("title")?.textContent?.replace(/ | .+/,"").trim(),series:document.querySelector("main section a")?.getAttribute("href"),pages:e.length,prev:r.querySelector("#selected_chapter")?.nextElementSibling?.getAttribute("href"),next:r.querySelector("#selected_chapter")?.previousElementSibling?.getAttribute("href"),listImages:e}}},Z9={name:"WeebDex",url:/https?:\/\/(www\.)?weebdex\.org\/.+/,homepage:"https://weebdex.org/",language:De.ENGLISH,category:Be.MANGA,waitEle:'a[href^="/title/"]',async run(){const e=/\/chapter\/([^/]+)/.exec(window.location.pathname)?.at(1),t=`https://api.weebdex.org/chapter/${e}`,r=await fetch(t).then(async h=>h.json()),i=document.querySelector('a[href^="/title/"]'),a=`https://api.weebdex.org/manga/${r.relationships.manga.id}/aggregate?lang=${r.language}`,s=(await fetch(a).then(async h=>h.json())).chapters||[],l=s.findIndex(h=>h.chapter===r.chapter);return{title:document.querySelector("title")?.textContent?.trim().replace(/Page \d+:/,""),series:i?.getAttribute("href"),pages:r.data.length,prev:s[l+1]?`/chapter/${Se.default.keys(s[l+1].entries)[0]}`:void 0,next:s[l-1]?`/chapter/${Se.default.keys(s[l-1].entries)[0]}`:void 0,listImages:r.data.map(h=>`${r.node}/data/${e}/${h.name}`)}}},q9={name:"ZeroScans",url:/https?:\/\/(www\.)?zscans.com\/comics\/.+/,homepage:"https://zscans.com/",language:[De.ENGLISH],category:Be.MANGA,waitVar:"__ZEROSCANS__",run(){const e=unsafeWindow.__ZEROSCANS__.data.at(0).current_chapter.high_quality,t=document.querySelectorAll(".v-btn--router");return{title:document.querySelector("title")?.textContent?.trim(),series:document.querySelector(".v-breadcrumbs li:nth-child(2) + a")?.getAttribute("href"),pages:e.length,prev:t[0]?.getAttribute("href"),next:t[1]?.getAttribute("href"),listImages:e}}},j9=[r9,o9,i9,a9,s9,l9,c9,d9,p9,g9,m9,v9,b9,w9,k9,E9,A9,S9,M9,x9,y9,I9,C9,O9,L9,R9,P9,$9,D9,z9,N9,B9,H9,F9,W9,U9,V9,Z9,G9,q9,T9,u9,_9];J6(j9).catch(Me)})();