1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[542],{593:(e,t,n)=>{let r,i;n.r(t),n.d(t,{CoronaEXViewer:()=>at});var o,s,a=n(3239),l=n(8433),c=n(4437),u=n(2071),d=n(3727),h="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f={exports:{}},g={},m=(e_||(e_=1,f.exports=function(){if(eS)return g;eS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,r=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(t,o,s){var a,l={},c=null,u=null;for(a in void 0!==s&&(c=""+s),void 0!==o.key&&(c=""+o.key),void 0!==o.ref&&(u=o.ref),o)n.call(o,a)&&!i.hasOwnProperty(a)&&(l[a]=o[a]);if(t&&t.defaultProps)for(a in o=t.defaultProps)void 0===l[a]&&(l[a]=o[a]);return{$$typeof:e,type:t,key:c,ref:u,props:l,_owner:r.current}}return g.Fragment=t,g.jsx=o,g.jsxs=o,g}()),f.exports);let v={appBarHeight:54,shareButtonSize:44},y={theme:{primary:{default:"#0bbebe",light:"#edffff"},secondary:{default:"#f5a418",dark:"#e99b13"},goodButton:{default:"#ff85a9"},goodButtonText:{default:"#fff",disabled:"#c5bda9"},endReadingButton:{border:{default:"#e6e2d8"},text:{default:"#928a76",active:"#0bbebe"},hover:{default:"#f5f1e7"}},outlinedButton:{default:"#928a76",light:"#f5f1e7"},text:{app:"#000",appBar:"#fff",disabled:"#c5bda9"},background:{app:"#f3f2ee",appBar:"#333",disabled:"#e6e2d8"}},comicPath:"/comics",episodePath:"/episodes"};var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function b(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var w="-ms-",S="-moz-",_="-webkit-",k="comm",j="rule",E="decl",$="@keyframes",C=Math.abs,O=String.fromCharCode,T=Object.assign;function R(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,n){return e.replace(t,n)}function L(e,t,n){return e.indexOf(t,n)}function I(e,t){return 0|e.charCodeAt(t)}function N(e,t,n){return e.slice(t,n)}function A(e){return e.length}function D(e,t){return t.push(e),e}function M(e,t){return e.filter(function(e){return!R(e,t)})}var z=1,F=1,B=0,H=0,U=0,V="";function Y(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:z,column:F,length:s,return:"",siblings:a}}function W(e,t){return T(Y("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function q(e){for(;e.root;)e=W(e.root,{children:[e]});D(e,e.siblings)}function X(){return U=H<B?I(V,H++):0,F++,10===U&&(F=1,z++),U}function G(){return I(V,H)}function K(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J(e){var t,n;return(t=H-1,n=function e(t){for(;X();)switch(U){case t:return H;case 34:case 39:34!==t&&39!==t&&e(U);break;case 40:41===t&&e(t);break;case 92:X()}return H}(91===e?e+2:40===e?e+1:e),N(V,t,n)).trim()}function Z(e,t,n,r,i,o,s,a,l,c,u,d){for(var h=i-1,p=0===i?o:[""],f=p.length,g=0,m=0,v=0;g<r;++g)for(var y=0,x=N(e,h+1,h=C(m=s[g])),b=e;y<f;++y)(b=(m>0?p[y]+" "+x:P(x,/&\f/g,p[y])).trim())&&(l[v++]=b);return Y(e,t,n,0===i?j:a,l,c,u,d)}function Q(e,t,n,r,i){return Y(e,t,n,E,N(e,0,r),N(e,r+1,-1),r,i)}function ee(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function et(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case E:return e.return=e.return||e.value;case k:return"";case $:return e.return=e.value+"{"+ee(e.children,r)+"}";case j:if(!A(e.value=e.props.join(",")))return""}return A(n=ee(e.children,r))?e.return=e.value+"{"+n+"}":""}function en(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case E:e.return=function e(t,n,r){var i;switch(i=n,45^I(t,0)?(((i<<2^I(t,0))<<2^I(t,1))<<2^I(t,2))<<2^I(t,3):0){case 5103:return _+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+t+t;case 4789:return S+t+t;
vendor: 11,513 bytes, lines 1-2
1case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+S+t+w+t+t;case 5936:switch(I(t,n+11)){case 114:return _+t+w+P(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+w+P(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+w+P(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return _+t+w+t+t;case 6165:return _+t+w+"flex-"+t+t;case 5187:return _+t+P(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+w+"flex-$1$2")+t;case 5443:return _+t+w+"flex-item-"+P(t,/flex-|-self/g,"")+(R(t,/flex-|baseline/)?"":w+"grid-row-"+P(t,/flex-|-self/g,""))+t;case 4675:return _+t+w+"flex-line-pack"+P(t,/align-content|flex-|-self/g,"")+t;case 5548:return _+t+w+P(t,"shrink","negative")+t;case 5292:return _+t+w+P(t,"basis","preferred-size")+t;case 6060:return _+"box-"+P(t,"-grow","")+_+t+w+P(t,"grow","positive")+t;case 4554:return _+P(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return P(P(P(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return P(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return P(P(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4200:if(!R(t,/flex-|baseline/))return w+"grid-column-align"+N(t,n)+t;break;case 2592:case 3360:return w+P(t,"template-","")+t;case 4384:case 3616:return r&&r.some(function(e,t){return n=t,R(e.props,/grid-\w+-end/)})?~L(t+(r=r[n].value),"span",0)?t:w+P(t,"-start","")+t+w+"grid-row-span:"+(~L(r,"span",0)?R(r,/\d+/):R(r,/\d+/)-R(t,/\d+/))+";":w+P(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return R(e.props,/grid-\w+-start/)})?t:w+P(P(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return P(t,/(.+)-inline(.+)/,_+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(t)-1-n>6)switch(I(t,n+1)){case 109:if(45!==I(t,n+4))break;case 102:return P(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+S+(108==I(t,n+3)?"$3":"$2-$3"))+t;case 115:return~L(t,"stretch",0)?e(P(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return P(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,s,a){return w+n+":"+r+a+(i?w+n+"-span:"+(o?s:s-r)+a:"")+t});case 4949:if(121===I(t,n+6))return P(t,":",":"+_)+t;break;case 6444:switch(I(t,45===I(t,14)?18:11)){case 120:return P(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_+(45===I(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+w+"$2box$3")+t;case 100:return P(t,":",":"+w)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return P(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case $:return ee([W(e,{value:P(e.value,"@","@"+_)})],r);case j:if(e.length){var i,o;return i=n=e.props,o=function(t){switch(R(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":q(W(e,{props:[P(t,/:(read-\w+)/,":"+S+"$1")]})),q(W(e,{props:[t]})),T(e,{props:M(n,r)});break;case"::placeholder":q(W(e,{props:[P(t,/:(plac\w+)/,":"+_+"input-$1")]})),q(W(e,{props:[P(t,/:(plac\w+)/,":"+S+"$1")]})),q(W(e,{props:[P(t,/:(plac\w+)/,w+"input-$1")]})),q(W(e,{props:[t]})),T(e,{props:M(n,r)})}return""},i.map(o).join("")}}}var er={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ei="u">typeof d&&void 0!==d.env&&(d.env.REACT_APP_SC_ATTR||d.env.SC_ATTR)||"data-styled",eo="active",es="data-styled-version",ea="6.1.19",el=`/*!sc*/ 2`,ec="u">typeof window&&"u">typeof document,eu=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"u">typeof d&&void 0!==d.env&&void 0!==d.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==d.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==d.env.REACT_APP_SC_DISABLE_SPEEDY&&d.env.REACT_APP_SC_DISABLE_SPEEDY:"u">typeof d&&void 0!==d.env&&void 0!==d.env.SC_DISABLE_SPEEDY&&""!==d.env.SC_DISABLE_SPEEDY&&"false"!==d.env.SC_DISABLE_SPEEDY&&d.env.SC_DISABLE_SPEEDY),ed={},eh=Object.freeze([]),ep=Object.freeze({});function ef(e,t,n){return void 0===n&&(n=ep),e.theme!==n.theme&&e.theme||t||n.theme}var eg=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),em=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ev=/(^-|-$)/g;function ey(e){return e.replace(em,"-").replace(ev,"")}var ex=/(a)(d)/gi,eb=function(e){return String.fromCharCode(e+(e>25?39:97))};function ew(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=eb(t%52)+n;return(eb(t%52)+n).replace(ex,"$1-$2")}var eS,e_,ek,ej=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eE=function(e){return ej(5381,e)};function e$(e){return ew(eE(e)>>>0)}function eC(e){return"string"==typeof e}var eO="function"==typeof Symbol&&Symbol.for,eT=eO?Symbol.for("react.memo"):60115,eR=eO?Symbol.for("react.forward_ref"):60112,eP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eN=((ek={})[eR]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ek[eT]=eI,ek);function eA(e){return("type"in e&&e.type.$$typeof)===eT?eI:"$$typeof"in e?eN[e.$$typeof]:eP}var eD=Object.defineProperty,eM=Object.getOwnPropertyNames,ez=Object.getOwnPropertySymbols,eF=Object.getOwnPropertyDescriptor,eB=Object.getPrototypeOf,eH=Object.prototype;function eU(e){return"function"==typeof e}function eV(e){return"object"==typeof e&&"styledComponentId"in e}function eY(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eW(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function eq(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eX(e,t){Object.defineProperty(e,"toString",{value:t})}function eG(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eK=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw eG(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),a=(o=0,t.length);o<a;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(el);return t},e}(),eJ=new Map,eZ=new Map,eQ=1,e0=function(e){if(eJ.has(e))return eJ.get(e);for(;eZ.has(eQ);)eQ++;var t=eQ++;return eJ.set(e,t),eZ.set(t,e),t},e1=function(e,t){eQ=t+1,eJ.set(e,t),eZ.set(t,e)},e2="style[".concat(ei,"][").concat(es,'="').concat(ea,'"]'),e3=new RegExp("^".concat(ei,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),e5=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},e4=function(e,t){for(var n,r=(null!=(n=t.textContent)?n:"").split(el),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(e3);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(e1(u,c),e5(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}},e8=function(e){for(var t=document.querySelectorAll(e2),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ei)!==eo&&(e4(e,i),i.parentNode&&i.parentNode.removeChild(i))}},e6=function(e){var t,r=document.head,i=e||r,o=document.createElement("style"),s=(t=Array.from(i.querySelectorAll("style[".concat(ei,"]"))))[t.length-1],a=void 0!==s?s.nextSibling:null;o.setAttribute(ei,eo),o.setAttribute(es,ea);var l=n.nc;return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},e9=function(){function e(e){this.element=e6(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw eG(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),e7=function(){function e(e){this.element=e6(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),te=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),tt=ec,tn={isServer:!ec,useCSSOMInjection:!eu},tr=function(){function e(e,t,n){void 0===e&&(e=ep),void 0===t&&(t={});var r=this;this.options=x(x({},tn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ec&&tt&&(tt=!1,e8(this)),eX(this,function(){for(var e=r.getTag(),t=e.length,n="",i=0;i<t;i++)!function(t){var i=eZ.get(t);if(void 0===i)return;var o=r.names.get(i),s=e.getGroup(t);
2if(void 0!==o&&o.size&&0!==s.length){var a="".concat(ei,".g").concat(t,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(el)}}(i);return n})}return e.registerId=function(e){return e0(e)},e.prototype.rehydrate=function(){!this.server&&ec&&e8(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(x(x({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new eK(e.isServer?new te(n):t?new e9(n):new e7(n))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(e0(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(e0(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(e0(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ti=/&/g,to=/^\s*\/\/.*$/gm,ts=new tr,ta=function(e){var t,n,r,i=ep.options,o=void 0===i?ep:i,s=ep.plugins,a=void 0===s?eh:s,l=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},c=a.slice();c.push(function(e){e.type===j&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ti,n).replace(r,l))}),o.prefix&&c.push(en),c.push(et);var u=function(e,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var l,u,d,h,p,f,g=e.replace(to,""),m=(p=function e(t,n,r,i,o,s,a,l,c){for(var u,d,h,p,f=0,g=0,m=a,v=0,y=0,x=0,b=1,w=1,S=1,_=0,j="",E=o,$=s,T=i,R=j;w;)switch(x=_,_=X()){case 40:if(108!=x&&58==I(R,m-1)){-1!=L(R+=P(J(_),"&","&\f"),"&\f",C(f?l[f-1]:0))&&(S=-1);break}case 34:case 39:case 91:R+=J(_);break;case 9:case 10:case 13:case 32:R+=function(e){for(;(U=G())&&U<33;)X();return K(e)>2||K(U)>3?"":" "}(x);break;case 92:R+=function(e,t){for(var n;--t&&X()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return n=H+(t<6&&32==G()&&32==X()),N(V,e,n)}(H-1,7);continue;case 47:switch(G()){case 42:case 47:D((u=function(e,t){for(;X()&&e+U!==57&&(e+U!==84||47!==G()););return"/*"+N(V,t,H-1)+"*"+O(47===e?e:X())}(X(),H),d=n,h=r,p=c,Y(u,d,h,k,O(U),N(u,2,-2),0,p)),c);break;default:R+="/"}break;case 123*b:l[f++]=A(R)*S;case 125*b:case 59:case 0:switch(_){case 0:case 125:w=0;case 59+g:-1==S&&(R=P(R,/\f/g,"")),y>0&&A(R)-m&&D(y>32?Q(R+";",i,r,m-1,c):Q(P(R," ","")+";",i,r,m-2,c),c);break;case 59:R+=";";default:if(D(T=Z(R,n,r,f,g,o,l,j,E=[],$=[],m,s),s),123===_)if(0===g)e(R,n,T,T,E,s,m,l,$);else switch(99===v&&110===I(R,3)?100:v){case 100:case 108:case 109:case 115:e(t,T,T,i&&D(Z(t,T,T,0,0,o,l,j,o,E=[],m,$),$),o,$,m,l,i?E:$);break;default:e(R,T,T,T,[""],$,0,l,$)}}f=g=y=0,b=S=1,j=R="",m=a;break;case 58:m=1+A(R),y=x;default:if(b<1){if(123==_)--b;else if(125==_&&0==b++&&125==(U=H>0?I(V,--H):0,F--,10===U&&(F=1,z--),U))continue}switch(R+=O(_),_*b){case 38:S=g>0?1:(R+="\f",-1);break;case 44:l[f++]=(A(R)-1)*S,S=1;break;case 64:45===G()&&(R+=J(X())),v=G(),g=m=A(j=R+=function(e){for(;!K(G());)X();return N(V,e,H)}(H)),_++;break;case 45:45===x&&2==A(R)&&(b=0)}}return s}("",null,null,null,[""],(h=d=s||i?"".concat(s," ").concat(i," { ").concat(g," }"):g,z=F=1,B=A(V=h),H=0,d=[]),0,[0],d),V="",p);o.namespace&&(m=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(m,o.namespace));var v=[];return ee(m,(u=(l=c.concat((f=function(e){return v.push(e)},function(e){e.root||(e=e.return)&&f(e)}))).length,function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=l[o](e,t,n,r)||"";return i})),v};return u.hash=a.length?a.reduce(function(e,t){return t.name||eG(15),ej(e,t.name)},5381).toString():"",u}(),tl=a.createContext({shouldForwardProp:void 0,styleSheet:ts,stylis:ta});function tc(){return(0,a.useContext)(tl)}tl.Consumer,a.createContext(void 0);var tu=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ta);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eX(this,function(){throw eG(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ta),this.name+e.hash},e}();function td(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var th=function(e){return null==e||!1===e||""===e},tp=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!th(r)&&(Array.isArray(r)&&r.isCss||eU(r)?t.push("".concat(td(n),":"),r,";"):eq(r)?t.push.apply(t,b(b(["".concat(n," {")],tp(r),!1),["}"],!1)):t.push("".concat(td(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in er||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function tf(e,t,n,r){if(th(e))return[];if(eV(e))return[".".concat(e.styledComponentId)];if(eU(e))return!eU(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tf(e(t),t,n,r);return e instanceof tu?n?(e.inject(n,r),[e.getName(r)]):[e]:eq(e)?tp(e):Array.isArray(e)?Array.prototype.concat.apply(eh,e.map(function(e){return tf(e,t,n,r)})):[e.toString()]}function tg(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eU(n)&&!eV(n))return!1}return!0}var tm=eE(ea),tv=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&tg(e),this.componentId=t,this.baseHash=ej(tm,t),this.baseStyle=n,tr.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 4,392 bytes, line 2
2):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=eY(r,this.staticRulesId);else{var i=eW(tf(this.rules,e,t,n)),o=ew(ej(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=eY(r,o),this.staticRulesId=o}else{for(var a=ej(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=eW(tf(u,e,t,n));a=ej(a,d+c),l+=d}}if(l){var h=ew(a>>>0);t.hasNameForId(this.componentId,h)||t.insertRules(this.componentId,h,n(l,".".concat(h),void 0,this.componentId)),r=eY(r,h)}}return r},e}(),ty=a.createContext(void 0);function tx(e){var t=a.useContext(ty),n=(0,a.useMemo)(function(){var n=e.theme;if(!n)throw eG(14);if(eU(n))return n(t);if(Array.isArray(n)||"object"!=typeof n)throw eG(8);return t?x(x({},t),n):n},[e.theme,t]);return e.children?a.createElement(ty.Provider,{value:n},e.children):null}ty.Consumer;var tb={};function tw(e,t,n){var r,i,o,s,l=eV(e),c=!eC(e),u=t.attrs,d=void 0===u?eh:u,h=t.componentId,p=void 0===h?(r=t.displayName,i=t.parentComponentId,tb[o="string"!=typeof r?"sc":ey(r)]=(tb[o]||0)+1,s="".concat(o,"-").concat(e$(ea+o+tb[o])),i?"".concat(i,"-").concat(s):s):h,f=t.displayName,g=void 0===f?eC(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):f,m=t.displayName&&t.componentId?"".concat(ey(t.displayName),"-").concat(t.componentId):t.componentId||p,v=l&&e.attrs?e.attrs.concat(d).filter(Boolean):d,y=t.shouldForwardProp;if(l&&e.shouldForwardProp){var b=e.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;y=function(e,t){return b(e,t)&&w(e,t)}}else y=b}var S=new tv(n,m,l?e.componentStyle:void 0);function _(e,t){return function(e,t,n){var r,i=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=a.useContext(ty),h=tc(),p=e.shouldForwardProp||h.shouldForwardProp,f=ef(t,d,s)||ep,g=function(e,t,n){for(var r,i=x(x({},t),{className:void 0,theme:n}),o=0;o<e.length;o+=1){var s=eU(r=e[o])?r(i):r;for(var a in s)i[a]="className"===a?eY(i[a],s[a]):"style"===a?x(x({},i[a]),s[a]):s[a]}return t.className&&(i.className=eY(i.className,t.className)),i}(i,t,f),m=g.as||u,v={};for(var y in g)void 0===g[y]||"$"===y[0]||"as"===y||"theme"===y&&g.theme===f||("forwardedAs"===y?v.as=g.forwardedAs:p&&!p(y,m)||(v[y]=g[y]));var b=(r=tc(),o.generateAndInjectStyles(g,r.styleSheet,r.stylis)),w=eY(l,c);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),v[eC(m)&&!eg.has(m)?"class":"className"]=w,n&&(v.ref=n),(0,a.createElement)(m,v)}(k,e,t)}_.displayName=g;var k=a.forwardRef(_);return k.attrs=v,k.componentStyle=S,k.displayName=g,k.shouldForwardProp=y,k.foldedComponentIds=l?eY(e.foldedComponentIds,e.styledComponentId):"",k.styledComponentId=m,k.target=l?e.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)!function e(t,n,r){if(void 0===r&&(r=!1),!r&&!eq(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(eq(n))for(var i in n)t[i]=e(t[i],n[i]);return t}(e,t[r],!0);return e}({},e.defaultProps,t):t}}),eX(k,function(){return".".concat(k.styledComponentId)}),c&&function e(t,n,r){if("string"!=typeof n){if(eH){var i=eB(n);i&&i!==eH&&e(t,i,r)}var o=eM(n);ez&&(o=o.concat(ez(n)));for(var s=eA(t),a=eA(n),l=0;l<o.length;++l){var c=o[l];if(!(c in eL||r&&r[c]||a&&c in a||s&&c in s)){var u=eF(n,c);try{eD(t,c,u)}catch{}}}}return t}(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function tS(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var t_=function(e){return Object.assign(e,{isCss:!0})};function tk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eU(e)||eq(e)?t_(tf(tS(eh,b([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tf(e):t_(tf(tS(e,t)))}var tj=function(e){return function e(t,n,r){if(void 0===r&&(r=ep),!n)throw eG(1,n);var i=function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return t(n,r,tk.apply(void 0,b([e],i,!1)))};return i.attrs=function(i){return e(t,n,x(x({}
vendor: 1,442 bytes, lines 2-3
2,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i.withConfig=function(i){return e(t,n,x(x({},r),i))},i}(tw,e)};eg.forEach(function(e){tj[e]=tj(e)});var tE=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=tg(e),tr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eW(tf(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&tr.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function t$(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eW(tk.apply(void 0,b([e],t,!1)));return new tu(e$(r),r)}let tC=(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=tk.apply(void 0,b([e],t,!1)),i="sc-global-".concat(e$(JSON.stringify(r))),o=new tE(r,i),s=function(e){var t=tc(),n=a.useContext(ty),r=a.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&l(r,e,t.styleSheet,n,t.stylis),a.useLayoutEffect(function(){if(!t.styleSheet.server)return l(r,e,t.styleSheet,n,t.stylis),function(){return o.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function l(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,ed,n,i);else{var a=x(x({},t),{theme:ef(t,r,s.defaultProps)});o.renderStyles(e,a,n,i)}}return a.memo(s)})` 3 body {
4 overscroll-behavior: none; 5 text-size-adjust: 100%; 6 /* stylelint-disable-next-line max-line-length */ 7 font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, 'ã¡ã¤ãªãª', sans-serif; 8 } 9 10 a { 11 color: inherit; 12 text-decoration: none; 13 } 14 15 h1, 16 h2, 17 h3, 18 h4, 19 h5, 20 h6 { 21 margin: 0; 22 font-size: inherit; 23 font-weight: inherit; 24 } 25 26 button { 27 font-family: inherit; 28 line-height: inherit; 29 border-width: 0; 30 background-color: transparent; 31 background-image: none; 32 cursor: pointer; 33 } 34 35 .icon-base > svg { 36 max-width: 100%; 37 max-height: 100%; 38 width: inherit; 39 height: inherit; 40 fill: currentcolor; 41 } 42`,tO=e=>"string"==typeof e,tT=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},tR=e=>null==e?"":""+e,tP=/###/g,tL=e=>e&&e.indexOf("###")>-1?e.replace(tP,"."):e,tI=e=>!e||tO(e),tN=(e,t,n)=>{let r=tO(t)?t.split("."):t,i=0;for(;i<r.length-1;){if(tI(e))return{};let t=tL(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return tI(e)?{}:{obj:e,k:tL(r[i])}},tA=(e,t,n)=>{let{obj:r,k:i}=tN(e,t,Object);if(void 0!==r||1===t.length){r[i]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=tN(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,a=tN(e,s=s.slice(0,s.length-1),Object),a?.obj&&"u">typeof a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},tD=(e,t)=>{let{obj:n,k:r}=tN(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},tM=(e,t,n)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?tO(e[r])||e[r]instanceof String||tO(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):tM(e[r],t[r],n):e[r]=t[r]);return e},tz=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var tF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let tB=e=>tO(e)?e.replace(/[&<>"'\/]/g,e=>tF[e]):e;class tH{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}let tU=[" ",",","?","!",";"],tV=new tH(20),tY=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let s=e;s<r.length;++s)if(s!==e&&(o+=n),o+=r[s],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<r.length-1)continue;e+=s-e+1;break}i=t}return i},tW=e=>e?.replace("_","-"),tq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class tX{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||tq,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(tO(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new tX(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new tX(this.logger,e)}}var tG=new tX;class tK{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}}class tJ extends tK{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],n&&(Array.isArray(n)?i.push(...n):tO(n)&&o?i.push(...n.split(o)):i.push(n)));let a=tD(this.data,i);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=i[0],t=i[1],n=i.slice(2).join(".")),!a&&s&&tO(n)?tY(this.data?.[e]?.[t],n,o):a}
42addResource(e,t,n,r,i={silent:!1}){let o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),tA(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(tO(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=tD(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?tM(a,n,i):a={...a,...n},tA(this.data,s,a),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var tZ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};let tQ=Symbol("i18next/PATH_KEY");function t0(e,t){let{[tQ]:n}=e(function(){let e,t=[],n=Object.create(null);return n.get=(r,i)=>(e?.revoke?.(),i===tQ?t:(t.push(i),(e=Proxy.revocable(r,n)).proxy)),Proxy.revocable(Object.create(null),n).proxy}());return n.join(t?.keySeparator??".")}let t1={},t2=e=>!tO(e)&&"boolean"!=typeof e&&"number"!=typeof e;class t3 extends tK{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
42i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=tG.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};return null!=e&&this.resolve(e,n)?.res!==void 0}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let r=tU.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let i=tV.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:tO(i)?[i]:i};let o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:tO(i)?[i]:i}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=t0(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);let i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],r),l=a[a.length-1],c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return d?i?{res:`${l}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${c}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s;let h=this.resolve(e,r),p=h?.res,f=h?.usedKey||s,g=h?.exactUsedKey||s,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!tO(r.count),x=t3.hasDefaultValue(r),b=y?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&y?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=y&&!r.ordinal&&0===r.count,_=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${w}`]||r.defaultValue,k=p;v&&!p&&x&&(k=_);let j=t2(k),E=Object.prototype.toString.apply(k);if(v&&k&&j&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(E)&&!(tO(m)&&Array.isArray(k))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(r),h):e}if(o){let e=Array.isArray(k),t=e?[]:{},n=e?g:f;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let i=`${n}${o}${e}`;x&&!p?t[e]=this.translate(i,{...r,defaultValue:t2(_)?_[e]:void 0,joinArrays:!1,ns:a}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:a}),t[e]===i&&(t[e]=k[e])}p=t}}else if(v&&tO(m)&&Array.isArray(p))(p=p.join(m))&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,i=!1;!this.isValidLookup(p)&&x&&(t=!0,p=_),this.isValidLookup(p)||(i=!0,p=s);let a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,d=x&&_!==p&&this.options.updateMissing;if(i||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,l,s,d?_:p),o){let e=this.resolve(s,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let n=(e,t,n)=>{let i=x&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,d,r),this.emit
42("missingKey",e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,r[`defaultValue${t}`]||_)})}):n(e,s,_))}p=this.extendTranslation(p,e,r,h,n),i&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}${c}${s}`),(i||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${s}`:s,t?p:void 0,r))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(r),h):p}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let o;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let s=tO(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let a=n.replace&&!tO(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),s){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=tO(o)?[o]:o;return null!=e&&s?.length&&!1!==n.applyPostProcessor&&(e=tZ.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,o,s;return tO(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let a=this.extractFromKey(e,t),l=a.key;r=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==t.count&&!tO(t.count),d=u&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(tO(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
42c.forEach(e=>{this.isValidLookup(n)||(s=e,!t1[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(t1[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{let s;if(this.isValidLookup(n))return;o=r;let a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),h){let r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),u&&(t.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}for(;s=a.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=e.replace&&!tO(e.replace),n=t?e.replace:e;if(t&&"u">typeof e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}class t5{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tG.create("languageUtils")}getScriptPartFromCode(e){if(!(e=tW(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=tW(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(tO(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),tO(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return tO(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):tO(e)&&i(this.formatLanguageCode(e)),n.forEac
42h(e=>{0>r.indexOf(e)&&i(this.formatLanguageCode(e))}),r}}let t4={zero:0,one:1,two:2,few:3,many:4,other:5},t8={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class t6{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=tG.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,r=tW("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{n=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),t8;if(!e.match(/-|_/))return t8;let r=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(r,t)}return this.pluralRulesCache[o]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>t4[e]-t4[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let t9=(e,t,n,r=".",i=!0)=>{let o=((e,t,n)=>{let r=tD(e,n);return void 0!==r?r:tD(t,n)})(e,t,n);return!o&&i&&tO(n)&&void 0===(o=tY(e,n,r))&&(o=tY(t,n,r)),o},t7=e=>e.replace(/\$/g,"$$$$");class ne{constructor(e={}){this.logger=tG.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:tB,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?tz(i):o||"{{",this.suffix=s?tz(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?tz(d):h||tz("$t("),this.nestingSuffix=p?tz(p):f||tz(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,s,a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(0>e.indexOf(this.formatSeparator)){let i=t9(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(t9(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:o})};this.resetRegExp();let c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>t7(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?t7(this.escape(e)):t7(e)}].forEach(t=>{for(s=0;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof c){let t=c(e,i,r);o=tO(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else if(u){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o="";else tO(o)||this.useRawValueToEscape||(o=tR(o));let a=t.safeValue(o);if(e=e.replace(i[0],a),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,o,s=(e,t)=>{let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0];let s=(i=this.interpolate(i,o)).match(/'/g),a=i.match(/"/g);((s?.length??0)%2!=0||a)&&a.length%2==0||(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];(o=(o={...n}).replace&&!tO(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(a=r[1].slice(l).split(this.formatSeparator).map(e=>
42e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),(i=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&!tO(i))return i;tO(i)||(i=tR(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),a.length&&(i=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}let nt=e=>{let t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});let s=r+JSON.stringify(o),a=t[s];return a||(a=e(tW(r),i),t[s]=a),a(n)}},nn=e=>(t,n,r)=>e(tW(n),r)(t);class nr{constructor(e={}){this.logger=tG.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?nt:nn;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=nt(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{let s=r?.formatParams?.[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[i](e,a,{...o,...r,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class ni extends tK{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=tG.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},o={},s={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){let r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let s={};this.queue.forEach(n=>{((e,t,n,r)=>{let{obj:i,k:o}=tN(e,t,Object);i[o]=i[o]||[],i[o].push(n)}
42)(n.loaded,[i],o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{s[e]||(s[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;let s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&r<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i);o(s,a)},a=this.backend[n].bind(this.backend);if(2===a.length){try{let n=a(e,t);n&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();tO(e)&&(e=this.languageUtils.toResolveHierarchy(e)),tO(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i,o={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,n,r,a):l(e,t,n,r))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,n,r,s,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}let no=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),tO(e[1])&&(t.defaultValue=e[1]),tO(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ns=e=>(tO(e.ns)&&(e.ns=[e.ns]),tO(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),tO(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),na=()=>{};class nl extends tK{constructor(e={},t){if(super(),this.options=ns(e),this.services={},this.logger=tG,this.modules={external:[]},(e=>
42{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(tO(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let n=no();this.options={...n,...this.options,...ns(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?tG.init(r(this.modules.logger),this.options):tG.init(null,this.options),e=this.modules.formatter?this.modules.formatter:nr;let t=new t5(this.options);this.store=new tJ(this.options.resources,this.options);let i=this.services;i.logger=tG,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new t6(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new ne(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new ni(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new t3(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=na),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=tT(),o=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),i}loadResources(e,t=na){let n=t,r=tO(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=tT();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=na),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&tZ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=tT();
42this.emit("languageChanging",e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);let n=tO(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(tO(t)?[t]:t);o&&(this.language||r(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let o,s;(o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);let a=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=t0(e,{...this.options,...t})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=t0(e,{...this.options,...t})),s=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(s,o)};return tO(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
42if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!r||o(i,e)))}loadNamespaces(e,t){let n=tT();return this.options.ns?(tO(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=tT();tO(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=this.services?.languageUtils||new t5(no());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new nl(e,t)}cloneInstance(e={},t=na){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},i=new nl(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new tJ(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),r),i.services.resourceStore=i.store),i.translator=new t3(i.services,r),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let nc=nl.createInstance();nc.createInstance=nl.createInstance;let nu=nc.createInstance;nc.dir,nc.init,nc.loadResources,nc.reloadResources,nc.use,nc.changeLanguage,nc.getFixedT,nc.t,nc.exists,nc.setDefaultNamespace,nc.hasLoadedNamespace,nc.loadNamespaces,nc.loadLanguages;let nd={},nh=(e,t,n,r)=>{nm(n)&&nd[n]||(nm(n)&&(nd[n]=new Date),((e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);nm(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,n,r))},np=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},nf=(e,t,n)=>{e.loadNamespaces(t,np(e,n))},ng=(e,t,n,r)=>{if(nm(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return nf(e,n,r);n.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,np(e,r))},nm=e=>"string"==typeof e,nv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ny={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},nx=e=>ny[e],nb={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(nv,nx)},nw=(0,a.createContext)();
42class nS{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let n_=(e,t,n,r)=>e.getFixedT(t,n,r);function nk({i18n:e,defaultNS:t,children:n}){let r=(0,a.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,a.createElement)(nw.Provider,{value:r},n)}let nj="mulvr",nE=nu();nE.use({type:"3rdParty",init(e){((e={})=>{nb={...nb,...e}})(e.options.react),r=e}}).init({ns:[nj],supportedLngs:["en","ja"],fallbackLng:"ja",resources:{en:{[nj]:{comic_link_button:{heading:"About"},end_reading_twitter_share_button:{heading:"Post your thoughts on X"},prev_episode_button:{heading:"Previous chapter"},move_prev_episode_dialog:{button_text:"Previous chapter"},favorite_button:{favorite:"Favorite",favorited:"Favorited"},recommend_comic:{heading:"Recommended for you"},comic_details:{heading:"Book information"},next_episode_button:{disabled_heading:"That was the last available chapter.",heading:"Next chapter",subscription_label:"Subscribers Only"},facebook_share_button:{title:"Share on Facebook"},twitter_share_button:{title:"Share on X"},error_view:{retry:"Retry",fetch_failed:{title:"Error in retrieving file",description:"Please try again later."},not_found:{title:"Page Not Found",description:"The URL may be invalid or the page deleted.",home_button:"Back to Homepage"},other_error:{title:"Something Went Wrong",description:"Please wait for a while and try again later."}}}},ja:{[nj]:{comic_link_button:{heading:"ä½å詳細"},end_reading_twitter_share_button:{heading:"ææ³ããã¹ã"},prev_episode_button:{heading:"åã®è©±ã¸"},move_prev_episode_dialog:{button_text:"åã®è©±ã¸"},favorite_button:{favorite:"ãæ°ã«å
¥ã",favorited:"ãæ°ã«å
¥ãæ¸ã¿"},recommend_comic:{heading:"ãã®ä½åããªã¹ã¹ã¡ï¼"},comic_details:{heading:"åè¡æ¬æ
å ±"},next_episode_button:{disabled_heading:"次ã®è©±ã¯ããã¾ãã",heading:"次ã®è©±ã¸",subscription_label:"æé¡ä¼å¡éå®"},facebook_share_button:{title:"Facebookã§ã·ã§ã¢"},twitter_share_button:{title:"Xã§ã·ã§ã¢"},error_view:{retry:"ãªãã©ã¤",fetch_failed:{title:"ä½åæ
å ±ã®åå¾ã«å¤±æãã¾ãã",description:"ãææ°ã§ãããã°ããå¾
ã£ã¦ãããå度ã試ããã ããã"},not_found:{title:"ãã¼ã¸ãè¦ã¤ããã¾ããã§ãã",description:"ãªã³ã¯ã«åé¡ããããããã¼ã¸ãåé¤ãããå¯è½æ§ãããã¾ãã",home_button:"ãã¼ã ã¸"},other_error:{title:"èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",description:"ãææ°ã§ãããã°ããå¾
ã£ã¦ãããå度ã試ããã ããã"}}}}},interpolation:{escapeValue:!1}});let n$=({children:e})=>m.jsx(nk,{i18n:nE,defaultNS:nj,children:e}),nC=({children:e})=>m.jsx(l.BE,{value:{revalidateOnFocus:!1,revalidateOnReconnect:!1,onError:(e,t)=>{console.log({err:e,key:t})}},children:e}),nO=({theme:e,children:t})=>m.jsx(tx,{theme:{colors:e,layouts:v},children:t}),nT=({children:e,...t})=>m.jsx("a",{...t,children:e}),nR=a.createContext(null),nP=()=>(0,a.useContext)(nR),nL=({theme:e,linkComponent:t=nT,children:n,...r})=>{let i=(0,a.useMemo)(()=>({LinkComponent:t,...r}),[t,r]);return m.jsx(nR.Provider,{value:i,children:m.jsx(nO,{theme:e,children:n})})};var nI=function(){};function nN(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function nA(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var nD="u">typeof window,nM=function(e,t){return"boolean"==typeof t?t:!e};function nz(e,t,n){void 0===t&&(t=0),void 0===n&&(n=[]);var r,i,o,s,l,c,u,d=(void 0===(r=t)&&(r=0),i=(0,a.useRef)(!1),o=(0,a.useRef)(),s=(0,a.useRef)(e),l=(0,a.useCallback)(function(){return i.current},[]),c=(0,a.useCallback)(function(){i.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout(function(){i.current=!0,s.current()},r)},[r]),u=(0,a.useCallback)(function(){i.current=null,o.current&&clearTimeout(o.current)},[]),(0,a.useEffect)(function(){s.current=e},[e]),(0,a.useEffect)(function(){return c(),u},[r]),[l,u,c]),h=d[0],p=d[1],f=d[2];return(0,a.useEffect)(f,n),[h,p]}var nF=function(e){(0,a.useEffect)(e,[])},nB=nD?window:null,nH=function(e){return!!e.addEventListener},nU=function(e){return!!e.on},nV=function(e,t,n,r){void 0===n&&(n=nB),(0,a.useEffect)(function(){if(t&&n)return nH(n)?nN(n,e,t,r):nU(n)&&n.on(e,t,r),function(){nH(n)?nA(n,e,t,r):nU(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])},nY=function(e,t){var n=(0,a.useState)(null),r=n[0],i=n[1];return(0,a.useEffect)(function(){if(e.current&&"function"==typeof IntersectionObserver){var n=new IntersectionObserver(function(e){i(e[0])},t);return n.observe(e.current),function(){i(null),n.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r},nW=function(e,t,n,r){void 0===t&&(t=nI),void 0===n&&(n={}),void 0===r&&(r=[e]);var i=n.event,o=n.target,s=n.options;nV(void 0===i?"keydown":i,(0,a.useMemo)(function(){var n="function"==typeof e?e:"string"==typeof e?function(t){return t.key===e}:e?function(){return!0}:function(){return!1};return function(e){if(n(e))return t(e)}},r),o,s)},nq=function(e){var t=(0,a.useRef)(e);t.current=e,nF(function(){return function(){return t.current()}})},nX=function(e){var t=(0,a.useRef)(0),n=(0,a.useState)(e),r=n[0],i=n[1],o=(0,a.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return nq(function(){cancelAnimationFrame(t.current)}),[r,o]},nG=function(e){var t=nX({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],r=t[1];return(0,a.useEffect)(function(){var t=function(t){if(e&&e.current){var n=e.current.getBoundingClientRect(),i=n.left,o=n.top,s=n.width,a=n.height,l=i+window.pageXOffset,c=o+window.pageYOffset,u=t.pageX-l,d=t.pageY-c;r({docX:t.pageX,docY:t.pageY,posX:l,posY:c,elX:u,elY:d,elH:a,elW:s})}};return nN(document,"mousemove",t),function(){nA(document,"mousemove",t)}},[e]),n},nK={angle:0,type:"landscape-primary"},nJ=function(e){void 0===e&&(e=nK);var t=(0,a.useState)(e),n=t[0],r=t[1];return(0,a.useEffect)(function(){var t=window.screen,n=!0,i=function(){if(n){var i=t.orientation;i?r({angle:i.angle,type:i.type}):void 0!==window.orientation?r({angle:"number"==typeof window.orientation?window.orientation:0,type:""}):r(e)}};
42return nN(window,"orientationchange",i),i(),function(){n=!1,nA(window,"orientationchange",i)}},[]),n},nZ=function(e,t){var n=(0,a.useState)(e),r=n[0],i=n[1],o=(0,a.useRef)(),s=(0,a.useRef)(null),l=(0,a.useRef)(0);return(0,a.useEffect)(function(){if(o.current)s.current=e,l.current=!0;else{i(e);var n=function(){l.current?(l.current=!1,i(s.current),o.current=setTimeout(n,t)):o.current=void 0};o.current=setTimeout(n,t)}},[e]),nq(function(){o.current&&clearTimeout(o.current)}),r},nQ=function(e){var t={},n=t.initialWidth,r=t.initialHeight,i=t.onChange,o=nX({width:nD?window.innerWidth:void 0===n?1/0:n,height:nD?window.innerHeight:void 0===r?1/0:r}),s=o[0],l=o[1];return(0,a.useEffect)(function(){if(nD){var e=function(){var e=window.innerWidth,t=window.innerHeight;l({width:e,height:t}),i&&i(e,t)};return nN(window,"resize",e),function(){nA(window,"resize",e)}}},[]),s};let n0=a.createContext(null),n1=()=>(0,a.useContext)(n0),n2=({children:e})=>{let{width:t,height:n}=nZ(nQ(),1e3),{angle:r}=nJ(),i=(0,a.useMemo)(()=>0!==r,[r]),o=(0,a.useMemo)(()=>t>n,[t,n]),s=(0,a.useMemo)(()=>({width:t,height:n,isLandscape:i,isSpreadMode:o,dpr:2}),[t,n,i,o]);return m.jsx(n0.Provider,{value:s,children:e})},n3={},n5=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,n4=e=>"v"in e||"e"in e,n8=e=>{if("e"in e)throw e.e;if((n3?"with-d-ts":void 0)!=="production"&&!("v"in e))throw Error("[Bug] atom state is not initialized");return e.v},n6=new WeakMap,n9=e=>{var t;return re(e)&&!!(null!=(t=n6.get(e))&&t[0])},n7=(e,t)=>{let n=n6.get(e);if(!n){n=[!0,new Set],n6.set(e,n);let t=()=>{n[0]=!1};e.then(t,t)}n[1].add(t)},re=e=>"function"==typeof e?.then,rt=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},rn=(e,t,n)=>{let r=n(e),i="v"in r,o=r.v;if(re(t))for(let i of r.d.keys())rt(e,t,n(i));r.v=t,delete r.e,i&&Object.is(o,r.v)||(++r.n,re(o)&&(e=>{let t=n6.get(e);t?.[0]&&(t[0]=!1,t[1].forEach(e=>e()))})(o))},rr=(e,t,n)=>{var r;let i=new Set;for(let t of(null==(r=n.get(e))?void 0:r.t)||[])n.has(t)&&i.add(t);for(let e of t.p)i.add(e);return i},ri=Symbol(),ro={},rs=0;function ra(e){return e(this)}function rl(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}let rc={},ru=(0,a.createContext)(void 0);function rd(e){return(0,a.useContext)(ru)||(i||(i=((e=new WeakMap,t=new WeakMap,n=new WeakMap,r=new Set,i=new Set,o=new Set,s={},a=(e,...t)=>e.read(...t),l=(e,...t)=>e.write(...t),c=(e,t)=>{var n;return null==(n=e.unstable_onInit)?void 0:n.call(e,t)},u=(e,t)=>{var n;return null==(n=e.onMount)?void 0:n.call(e,t)},...d)=>{let h=d[0]||(t=>{if((n3?"with-d-ts":void 0)!=="production"&&!t)throw Error("Atom is undefined or null");let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n),c?.(t,w)),n}),p=d[1]||(()=>{let e=[],n=t=>{try{t()}catch(t){e.push(t)}};do{s.f&&n(s.f);let e=new Set,a=e.add.bind(e);r.forEach(e=>{var n;return null==(n=t.get(e))?void 0:n.l.forEach(a)}),r.clear(),o.forEach(a),o.clear(),i.forEach(a),i.clear(),e.forEach(n),r.size&&f()}while(r.size||o.size||i.size);if(e.length)throw AggregateError(e)}),f=d[2]||(()=>{let e=[],i=new WeakSet,o=new WeakSet,s=Array.from(r);for(;s.length;){let r=s[s.length-1],a=h(r);if(o.has(r)){s.pop();continue}if(i.has(r)){if(n.get(r)===a.n)e.push([r,a]);else if((n3?"with-d-ts":void 0)!=="production"&&n.has(r))throw Error("[Bug] invalidated atom exists");o.add(r),s.pop();continue}for(let e of(i.add(r),rr(r,a,t)))i.has(e)||s.push(e)}for(let t=e.length-1;t>=0;--t){let[i,o]=e[t],s=!1;for(let e of o.d.keys())if(e!==i&&r.has(e)){s=!0;break}s&&(g(i),y(i)),n.delete(i)}}),g=d[3]||(e=>{var i;let o,l,c=h(e);if(n4(c)&&(t.has(e)&&n.get(e)!==c.n||Array.from(c.d).every(([e,t])=>g(e).n===t)))return c;c.d.clear();let u=!0,d=()=>{t.has(e)&&(y(e),f(),p())},m=c.n;try{let n=a(e,n=>{var r;if(n5(e,n)){let e=h(n);if(!n4(e))if("init"in n)rn(n,n.init,h);else throw Error("no atom init");return n8(e)}let i=g(n);try{return n8(i)}finally{c.d.set(n,i.n),n9(c.v)&&rt(e,c.v,i),null==(r=t.get(n))||r.t.add(e),u||d()}},{get signal(){return o||(o=new AbortController),o.signal},get setSelf(){return(n3?"with-d-ts":void 0)==="production"||e.write||console.warn("setSelf function cannot be used with read-only atom"),
42!l&&e.write&&(l=(...t)=>{if((n3?"with-d-ts":void 0)!=="production"&&u&&console.warn("setSelf function cannot be called in sync"),!u)try{return v(e,...t)}finally{f(),p()}}),l}});return rn(e,n,h),re(n)&&(n7(n,()=>o?.abort()),n.then(d,d)),c}catch(e){return delete c.v,c.e=e,++c.n,c}finally{u=!1,m!==c.n&&n.get(e)===m&&(n.set(e,c.n),r.add(e),null==(i=s.c)||i.call(s,e))}}),m=d[4]||(e=>{let r=[e];for(;r.length;){let e=r.pop(),i=h(e);for(let o of rr(e,i,t)){let e=h(o);n.set(o,e.n),r.push(o)}}}),v=d[5]||((e,...t)=>{let n=!0;try{return l(e,e=>n8(g(e)),(t,...i)=>{var o;let a=h(t);try{if(!n5(e,t))return v(t,...i);{if(!("init"in t))throw Error("atom not writable");let e=a.n,n=i[0];rn(t,n,h),y(t),e!==a.n&&(r.add(t),null==(o=s.c)||o.call(s,t),m(t));return}}finally{n||(f(),p())}},...t)}finally{n=!1}}),y=d[6]||(e=>{var n;let i=h(e),o=t.get(e);if(o&&!n9(i.v)){for(let[t,a]of i.d)if(!o.d.has(t)){let i=h(t);x(t).t.add(e),o.d.add(t),a!==i.n&&(r.add(t),null==(n=s.c)||n.call(s,t),m(t))}for(let t of o.d||[])if(!i.d.has(t)){o.d.delete(t);let n=b(t);n?.t.delete(e)}}}),x=d[7]||(e=>{var n;let r=h(e),o=t.get(e);if(!o){for(let t of(g(e),r.d.keys()))x(t).t.add(e);o={l:new Set,d:new Set(r.d.keys()),t:new Set},t.set(e,o),null==(n=s.m)||n.call(s,e),e.write&&i.add(()=>{let t=!0;try{let n=u(e,(...n)=>{try{return v(e,...n)}finally{t||(f(),p())}});n&&(o.u=()=>{t=!0;try{n()}finally{t=!1}})}finally{t=!1}})}return o}),b=d[8]||(e=>{var n;let r=h(e),i=t.get(e);if(i&&!i.l.size&&!Array.from(i.t).some(n=>{var r;return null==(r=t.get(n))?void 0:r.d.has(e)})){for(let a of(i.u&&o.add(i.u),i=void 0,t.delete(e),null==(n=s.u)||n.call(s,e),r.d.keys())){let t=b(a);t?.t.delete(e)}return}return i}),w={get:e=>n8(g(e)),set:(e,...t)=>{try{return v(e,...t)}finally{f(),p()}},sub:(e,t)=>{let n=x(e).l;return n.add(t),p(),()=>{n.delete(t),b(e),p()}}};return Object.defineProperty(w,ri,{value:[e,t,n,r,i,o,s,a,l,c,u,h,p,f,g,m,v,y,x,b]}),w})(),(ro?"with-d-ts":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=i),globalThis.__JOTAI_DEFAULT_STORE__!==i&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),i)}let rh=e=>"function"==typeof e?.then,rp=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},rf=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(rp(e),e)}),rg=new WeakMap,rm=(e,t)=>{let n=rg.get(e);return n||(n=new Promise((r,i)=>{let o=e,s=e=>t=>{o===e&&r(t)},a=e=>t=>{o===e&&i(t)},l=()=>{try{let e=t();rh(e)?(rg.set(e,n),o=e,e.then(s(e),a(e)),n7(e,l)):r(e)}catch(e){i(e)}};e.then(s(e),a(e)),n7(e,l)}),rg.set(e,n)),n},rv=({resource:e,rtl:t,renderResource:n})=>{let r=(0,a.useMemo)(()=>"rtl"===t,[t]);return m.jsx(ry,{$isRtl:r,children:e.map(e=>m.jsx(rx,{children:n(e)},e.page))})},ry=tj.div` 43 position: relative; 44 display: flex; 45 flex-direction: ${({$isRtl:e})=>e?"row-reverse":"row"}; 46 /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */ 47 flex-wrap: nowrap; 48 align-items: center; 49 justify-content: center; 50 width: 100%; 51 height: 100%; 52 padding: 0 40px; 53`,rx=tj.div` 54 flex-basis: 50%; 55 flex-grow: 1; 56`;function rb(e){throw Error(`"${e}" is Unexpected value. Should have been never.`)}let rw=()=>{let{locale:e}=nP(),{t}=((e,t={})=>{let{i18n:n}=t,{i18n:i,defaultNS:o}=(0,a.useContext)(nw)||{},s=n||i||r;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new nS),!s){nh(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>nm(t)?t:(e=>"object"==typeof e&&null!==e)(t)&&nm(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react?.wait&&nh(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...nb,...s.options.react,...t},{useSuspense:c,keyPrefix:u}=l,d=e;d=nm(d)?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces?.(d
56);let h=(s.isInitialized||s.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(nh(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,l)),p=((e,t,n,r)=>(0,a.useCallback)(n_(e,t,n,r),[e,t,n,r]))(s,t.lng||null,"fallback"===l.nsMode?d:d[0],u),f=()=>p,g=()=>n_(s,t.lng||null,"fallback"===l.nsMode?d:d[0],u),[m,v]=(0,a.useState)(f),y=d.join();t.lng&&(y=`${t.lng}${y}`);let x=((e,t)=>{let n=(0,a.useRef)();return(0,a.useEffect)(()=>{n.current=e},[e,t]),n.current})(y),b=(0,a.useRef)(!0);(0,a.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=l;b.current=!0,h||c||(t.lng?ng(s,t.lng,d,()=>{b.current&&v(g)}):nf(s,d,()=>{b.current&&v(g)})),h&&x&&x!==y&&b.current&&v(g);let r=()=>{b.current&&v(g)};return e&&s?.on(e,r),n&&s?.store.on(n,r),()=>{b.current=!1,s&&e&&e?.split(" ").forEach(e=>s.off(e,r)),n&&s&&n.split(" ").forEach(e=>s.store.off(e,r))}},[s,y]),(0,a.useEffect)(()=>{b.current&&h&&v(f)},[s,u,h]);let w=[m,s,h];if(w.t=m,w.i18n=s,w.ready=h,h||!h&&!c)return w;throw new Promise(e=>{t.lng?ng(s,t.lng,d,()=>e()):nf(s,d,()=>e())})})(nj,{lng:e});return{t:(0,a.useCallback)((e,n={})=>t(e,n),[t])}},rS=({book:e})=>{let{t}=rw();return m.jsxs(r_,{children:[m.jsx(rk,{children:t("comic_details.heading")}),m.jsxs(rj,{href:e.url,rel:"noopener noreferrer",target:"_blank",children:[null!=e.book_image_url?m.jsx(rE,{src:e.book_image_url,width:175,height:248,alt:e.title}):m.jsx(r$,{}),m.jsx(rC,{children:e.title})]})]})},r_=tj.div` 57 display: flex; 58 flex-direction: column; 59 align-items: center; 60`,rk=tj.h4` 61 font-size: 16px; 62 font-weight: 600; 63`,rj=tj.a` 64 display: flex; 65 flex-direction: column; 66 align-items: center; 67 margin-top: 10px; 68 color: inherit; 69`,rE=tj.img` 70 max-width: ${175}px; 71 height: auto; 72`,r$=tj.div` 73 position: relative; 74 width: ${175}px; 75 height: ${248}px; 76 background-color: #c0c0c0; 77 78 &::before { 79 display: flex; 80 align-items: center; 81 justify-content: center; 82 width: 100%; 83 height: 100%; 84 content: 'NO IMAGE'; 85 font-size: 15px; 86 font-weight: 600; 87 color: #fff; 88 } 89`,rC=tj.h3` 90 max-width: 250px; 91 padding-top: 8px; 92 margin: 0; 93 font-size: 13px; 94 font-weight: 600; 95 color: ${({theme:e})=>e.colors.text.app}; 96`,rO=a.createContext(null),rT=()=>(0,a.useContext)(rO),rR=({children:e,...t})=>m.jsx(rO.Provider,{value:t,children:e}),rP=/iPhone|Android.+Mobile/,rL=[{elementClassName:"fluct-unit-1000255186",displayId:"1000255186",loadByGroupId:"1000157527"},{elementClassName:"fluct-unit-1000255190",displayId:"1000255190",loadByGroupId:"1000157531"}],rI=[{elementClassName:"fluct-unit-1000255182",displayId:"1000255182",loadByGroupId:"1000157523"}],rN=({config:e})=>{let t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(null!=t.current){let n=document.createElement("script");n.src="https://pdn.adingo.jp/p.js",n.async=!0,n.onload=()=>{(e=>{(window.fluctAdScript||{cmd:[]}).cmd.push(t=>{t.setGamTargetingMap("%%PATTERN:TARGETINGMAP%%"),t.loadByGroup(e.loadByGroupId),t.display(`.${e.elementClassName}`,e.displayId)})})(e)},t.current.appendChild(n)}},[]),m.jsx("div",{ref:t,className:e.elementClassName,"aria-hidden":!0})},rA=({isMobile:e})=>{let t=(0,a.useMemo)(()=>e?rI:rL,[e]);return m.jsx(m.Fragment,{children:t.map(e=>m.jsx(rD,{children:m.jsx(rN,{config:e})},e.displayId))})},rD=tj.div` 97 width: 300px; 98 height: 250px; 99 background-color: #ccc; 100 101 &:nth-child(2) { 102 margin-top: 32px; 103 } 104`,rM=[{path:"/62532913,22834303665/p_corona-ex_300x250_viewer-end-jyoudan_30074",size:[[300,250],[336,280],[200,200],[250,250],[320,180],[320,100],[320,50],[336,180],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1673488949105-0"},{path:"/62532913,22834303665/p_corona-ex_300x250_viewer-end-gedan_30074",size:[[300,250],[336,280],[200,200],[250,250],[320,180],[320,100],[320,50],[336,180],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1673488964962-0"}],rz=[{path:"/62532913,22834303665/p_corona-ex.overseas_300x250_viewer-end-jyoudan_31438",size:[[300,250],[336,280],[200,200],[250,250],[320,180],[320,100],[320,50],[336,180],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1699339384100-0"},{path:"/62532913,22834303665/p_corona-ex.overseas_300x250_viewer-end-gedan_31438",size:[[300,250],[336,280],[200,200],[250,250],[320,180],[320,100],[320,50],[336,180],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1699339378128-0"}],rF=[{path:"/62532913,22834303665/s_corona-ex_300x250_viewer-end_30075",size:[[300,250],[200,200],[250,250],[300,360],[320,180],[320,100],[320,50],[240,400],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1673488882108-0"}],rB=[{path:"/62532913,22834303665/s_corona-ex.overseas_300x250_viewer-end1_31439",size:[[300,250],[200,200],[250,250],[300,360],[320,180],[320,100],[320,50],[240,400],[300,280],[300,300],[1,1]],id:"div-gpt-ad-1699339040287-0"}],rH={root:null,rootMargin:"0px",threshold:1},rU=({locale:e,isMobile:t})=>{let n=(0,a.useRef)(null),r=nY(n,rH),i=(0,a.useMemo)(()=>"en"===e?t?rB:rz:t?rF:rM,[e,t]),{isDisplayed:o,display:s}=(e=>{let[t,n]=(0,a.useState)(!1),r=(0,a.useCallback)(()=>{(e=>{let{googletag:t}=window;t.cmd.push(()=>
104{e.forEach(e=>{t.display(e.id)}),t.pubads().refresh()})})(e),n(!0)},[e]);return(0,a.useEffect)(()=>((e=>{let{googletag:t}=window;t.cmd.push(()=>{e.forEach(e=>{t.defineSlot(e.path,e.size,e.id)?.addService(t.pubads())}),t.pubads().setTargeting("fluct_ad_group",String(((e,t)=>Math.floor(Math.random()*(t+1-e))+e)(1,10))),t.pubads().disableInitialLoad(),t.pubads().enableSingleRequest(),t.enableServices(),null!=window.fluctkvapi&&window.fluctkvapi.fetchPolicyStatus(e=>{t.pubads().setTargeting("pa",e?"ng":"ok")})})})(e),()=>{googletag.cmd.push(()=>{googletag.destroySlots()})}),[e]),{isDisplayed:t,display:r}})(i);return(0,a.useEffect)(()=>{!o&&r?.isIntersecting&&s()},[o,r]),m.jsx("div",{ref:n,children:i.map(e=>m.jsx(rV,{id:e.id},e.id))})},rV=tj.div` 105 display: flex; 106 align-items: center; 107 justify-content: center; 108 min-width: 300px; 109 min-height: 250px; 110 111 &:nth-child(2) { 112 margin-top: 32px; 113 } 114`,rY=()=>{let{beginReading:e}=rT(),{locale:t}=nP(),n=(0,a.useMemo)(()=>((e=window.navigator.userAgent)=>rP.test(e))(),[]);return m.jsx(rW,{children:"en"===t||e.episode_google_adsense_enabled?m.jsx(rU,{locale:t,isMobile:n}):m.jsx(rA,{isMobile:n})})},rW=tj.div` 115 position: relative; 116 display: flex; 117 flex-direction: column; 118 align-items: center; 119 justify-content: center; 120 width: 100%; 121 height: 100%; 122`,rq=({resource:e,renderComicDetails:t})=>m.jsx(rX,{children:t(e.books[0])}),rX=tj.div` 123 position: relative; 124 display: flex; 125 flex-direction: column; 126 align-items: center; 127 justify-content: center; 128 width: 100%; 129 height: 100%; 130`,rG=({episode:e})=>{let{t}=rw(),{episodePath:n}=nP();return null==e?m.jsx(rJ,{children:m.jsx(r3,{children:t("next_episode_button.disabled_heading")})}):m.jsx("a",{href:`${n}/${e.id}`,children:m.jsxs(rZ,{children:[null!=e.thumbnail_image_url?m.jsx(rQ,{src:e.thumbnail_image_url,width:"130",height:"80",alt:e.title}):m.jsx(r0,{}),m.jsxs(r1,{children:[m.jsx(r2,{children:t("next_episode_button.heading")}),m.jsx(r5,{children:e.title}),"only_for_subscription"===e.episode_status&&m.jsx(r4,{children:t("next_episode_button.subscription_label")})]})]})})},rK=tk` 131 display: flex; 132 align-items: center; 133 justify-content: center; 134 width: 100%; 135 max-width: 380px; 136 height: 120px; 137 padding: 20px; 138 border-radius: 15px; 139`,rJ=tj.div` 140 ${rK} 141 142 flex-direction: column; 143 background-color: ${({theme:e})=>e.colors.background.disabled}; 144`,rZ=tj.div` 145 ${rK} 146 147 background-color: ${({theme:e})=>e.colors.secondary.default}; 148 transition: background-color 0.2s ease-out; 149 150 &:hover { 151 background-color: ${({theme:e})=>e.colors.secondary.dark}; 152 } 153`,rQ=tj.img` 154 width: 100%; 155 max-width: 130px; 156 height: auto; 157`,r0=tj.div` 158 position: relative; 159 width: 130px; 160 background-color: ${({theme:e})=>e.colors.background.disabled}; 161 162 &::before { 163 content: ''; 164 display: block; 165 padding-top: 61.5%; 166 } 167 168 &::after { 169 content: 'No Image'; 170 display: flex; 171 align-items: center; 172 justify-content: center; 173 position: absolute; 174 top: 0; 175 left: 0; 176 width: 100%; 177 height: 100%; 178 color: ${({theme:e})=>e.colors.text.disabled}; 179 font-size: 16px; 180 } 181`,r1=tj.div` 182 flex-grow: 1; 183 padding-left: 16px; 184 overflow: hidden; 185`,r2=tj.div` 186 color: #fff; 187 font-size: 16px; 188 font-weight: 600; 189`,r3=tj(r2)` 190 color: ${({theme:e})=>e.colors.text.disabled}; 191`,r5=tj.div` 192 color: #fff; 193 font-size: 14px; 194 white-space: nowrap; 195 text-overflow: ellipsis; 196 overflow: hidden; 197`,r4=tj.div` 198 display: inline-block; 199 padding: 4px 12px; 200 color: #fff; 201 background-color: #dc9315; 202 font-size: 10px; 203 border-radius: 9999px; 204`,r8=({comic:e})=>{let{comicPath:t,LinkComponent:n}=nP();return m.jsx(r6,{children:m.jsxs(n,{href:`${t}/${e.id}`,children:[m.jsx(r9,{children:null!=e.cover_image_url?m.jsx(r7,{src:e.cover_image_url,loading:"lazy",width:"120",height:"170",alt:e.title}):m.jsx(ie,{})}),m.jsx(it,{children:e.title})]})})},r6=tj.div` 205 width: 100%; 206 max-width: 120px; 207`,r9=tj.div` 208 position: relative; 209 width: 100%; 210 211 &::before { 212 content: ''; 213 display: block; 214 padding-top: ${17/12*100}%; 215 } 216`,r7=tj.img` 217 position: absolute; 218 top: 0; 219 left: 0; 220 width: 100%; 221 height: 100%; 222 object-fit: contain; 223`,ie=tj.div` 224 position: absolute; 225 top: 0; 226 left: 0; 227 display: flex; 228 align-items: center; 229 justify-content: center; 230 width: 100%; 231 height: 100%; 232 padding: 10px; 233 background-color: #c0c0c0; 234 235 &::before { 236 content: 'NO IMAGE'; 237 color: #fff; 238 font-size: 16px; 239 } 240`,it=tj.h3` 241 /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */ 242 display: -webkit-box; 243 -webkit-box-orient: vertical; 244 -webkit-line-clamp: 3; 245 /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */ 246 margin: 0; 247 max-height: 56px; 248 padding-top: 8px; 249 font-size: 13px; 250 font-weight: 600; 251 line-height: 1.25; 252 color: ${({theme:e})=>e.colors.text.app}; 253 overflow: hidden; 254`,ir=({items:e})=>m.jsx(ii,{children:e.map(e=>m.jsx(io,{children:m.jsx(r8,{comic:e})},e.id))}),ii=tj.ul` 255 list-style: none; 256 margin: 10px -5px 0; 257 padding: 0; 258 display: flex; 259 align-items: flex-start; 260 justify-content: flex-start; 261 width: 100%; 262`,io=tj.li` 263 position: relative; 264 width: 33.3%; 265 padding: 0 5px; 266`,is=({items:e})=>{let{t}=rw();return m.jsxs(ia,{children:[m.jsx(il,{children:t("recommend_comic.heading")}),m.jsx(ir,{items:e})]})},ia=tj.div` 267 display: flex; 268 flex-direction: column; 269 align-items: center; 270 max-width: 380px; 271`,il=tj.h4` 272 font-size: 16px; 273 font-weight: 600; 274`,ic=({children:e,...t})=>{let{LinkComponent:n}=nP();return m.jsx(n,{...t,children:e})},iu=a.memo(({comicId:e})=>{let{t}=rw(),{comicPath:n}=nP();return m.jsx(ic,{href:`${n}/${e}`,children:m.jsx(id,{children:m.jsx(ih,{children:t("comic_link_button.heading")})})})},(e,t)=>e.comicId===t.comicId),id=tj.div` 275 display: flex; 276 align-items: center; 277 justify-content: center; 278 width: 100%; 279 width: 150px; 280 height: 44px; 281 padding: 0 25px; 282 background-color: #fff; 283 border: 3px solid ${({theme:e})=>e.colors.outlinedButton.default}; 284 border-radius: 25px; 285 transition: background-color 0.2s ease-out; 286 287 &:hover { 288 background-color: ${({theme:e})=>e.colors.outlinedButton.light}; 289 } 290`,ih=tj.div` 291 font-size: 16px; 292 font-weight: 600; 293 color: ${({theme:e})=>e.colors.outlinedButton.default}; 294`,ip=({episode:e})=>{let{t}=rw(),{episodePath:n}=nP(),r=(0,a.useMemo)(()=>null==e,[e]),i=(0,a.useMemo)(()=>m.jsx(ig,{$isDisabled:r,children:m.jsx(im,{$isDisabled:r,children:t("prev_episode_button.heading")})}),[t,r]);return null==e?m.jsx(m.Fragment,{children:i}):m.jsx("a",{href:`${n}/${e.id}`,children:i})},ig=tj.div` 295 display: flex; 296 align-items: center; 297 justify-content: center; 298 width: 100%; 299 max-width: 220px; 300 height: 44px; 301 padding: 0 15px; 302 border-radius: 25px; 303 transition: background-color 0.2s ease-out; 304 /* stylelint-disable declaration-colon-newline-after, value-list-comma-newline-after, indentation */ 305 background-color: ${({theme:e,$isDisabled:t})=>t?e.colors.background.disabled:e.colors.secondary.default}; 306 307 &:hover { 308 background-color: ${({theme:e,$isDisabled:t})=>t?e.colors.background.disabled:e.colors.secondary.dark}; 309 } 310 /* stylelint-enable declaration-colon-newline-after, value-list-comma-newline-after, indentation */ 311`,im=tj.div` 312 font-size: 16px; 313 font-weight: 600; 314 /* stylelint-disable-next-line declaration-colon-newline-after, value-list-comma-newline-after */ 315 color: ${({theme:e,$isDisabled:t})=>t?e.colors.text.disabled:"#fff"}; 316`,iv=({recommendComics:e,renderNextEpisodeButton:t,renderRecommendComicList:n})=>{let{endReading:r}=rT(),i=(0,a.useMemo)(()=>e?.resources??[],[e]);return m.jsx(iy,{children:m.jsxs(ix,{children:[t(r),m.jsxs(ib,{children:[m.jsx(iw,{children:m.jsx(iu,{comicId:r.comic_id})}),m.jsx(iS,{children:m.jsx(ip,{episode:r.previous_episode})})]}),i.length>0&&m.jsx(i_,{children:n(i)})]})})},iy=tj.div` 317 position: relative; 318 display: flex; 319 flex-direction: column; 320 align-items: center; 321 justify-content: center; 322 width: 100%; 323 height: 100%; 324`,ix=tj.div` 325 width: 100%; 326 max-width: 380px; 327`,ib=tj.div` 328 display: flex; 329 justify-content: space-between; 330 margin-top: 15px; 331`,iw=tj.div` 332 flex-shrink: 0; 333 margin-right: 15px; 334`,iS=tj.div` 335 flex-grow: 1; 336 flex-shrink: 0; 337`,i_=tj.div` 338 margin-top: 60px; 339`,ik=()=>{let{beginReading:e}=rT(),{fetchRecommendComics:t}=nP(),{data:n,mutate:r}=(0,c.A)(["recommendComics",e.comic_id],([,e])=>t(e),{revalidateOnMount:!1}),i=(0,a.useCallback)(e=>m.jsx(rG,{episode:e.next_episode}),[]),o=(0,a.useCallback)(e=>m.jsx(is,{items:e}),[]);return(0,a.useEffect)(()=>{r()},[t]),m.jsx(iv,{recommendComics:n,renderNextEpisodeButton:i,renderRecommendComicList:o})};var ij={exports:{}};let iE=p((sy||(sy=1,function(e){var t={}.hasOwnProperty;function n(){for(var e="",i=0;i<arguments.length;i++){var o=arguments[i];o&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var o in e)t.call(e,o)&&e[o]&&(i=r(i,o));return i}(o)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}
339(ij)),ij.exports)),i$=({icon:e,className:t})=>{let n=(0,a.useMemo)(()=>iE("icon-base",t),[t]);return m.jsx(iO,{className:n,children:m.jsx(e,{})})},iC=e=>t=>m.jsx(i$,{icon:e,...t}),iO=tj.span` 340 display: inline-block; 341`,iT=iC(e=>a.createElement("svg",{viewBox:"0 0 127 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M126.942 46.524c-.2-3.015-1.2-5.627-2.901-7.838-1.3-2.613-3.101-4.622-5.702-6.029-1.5-.804-3.101-1.407-4.901-1.708a18.63 18.63 0 0 0-3.401-.302h-27.31l3.602-17.986c.2-1.005.3-2.01.2-3.115-.1-1.005-.3-2.01-.6-3.015-.2-.603-.5-1.205-.8-1.708-.901-1.608-2.302-2.914-4.202-3.718-.6-.301-1.2-.603-1.9-.703C78.125.1 77.125 0 76.224 0c-.3 0-.6 0-1 .1-.6.101-1.3.201-1.9.402-2.301.804-4.102 2.211-5.603 4.22L40.413 34.165c-2.9 2.914-4.401 6.23-4.401 9.848v42.102c0 4.924 1.7 9.144 5.202 12.56 3.4 3.517 7.602 5.326 12.404 5.326H90.63c2.801 0 5.402-.603 7.603-1.809 1.4-.703 2.601-1.708 3.801-2.813.2-.201.4-.402.6-.704.2-.2.4-.502.6-.803a39.525 39.525 0 0 0 2.701-3.718c2.301-3.618 4.802-8.34 7.403-14.269 1.9-2.713 3.901-6.43 6.202-11.154.1-.1 2.1-4.722 6.202-13.866 1.1-2.914 1.4-5.627 1.2-8.34zm-13.404 2.11c-1.501 4.12-3.301 8.641-5.702 13.465-.5 1.004-1.101 2.21-1.701 3.617-1.1 2.21-2.401 4.924-4.001 8.039-2.3 4.923-4.401 8.842-6.102 11.656-2.2 3.617-4.001 5.325-5.302 5.325H54.618c-1.3 0-2.4-.402-3.301-1.206-.2-.2-.4-.401-.5-.703-.4-.703-.7-1.608-.7-2.612V44.111l20.306-22.408-2.6 14.269c-.4.804-.5 1.708-.2 2.713.1.502.4 1.407 1 2.713 1.5 1.507 2.9 2.21 4.101 2.11.2 0 .4 0 .6-.1.2-.1.4-.1.6-.201h37.013c.8 0 1.4.2 1.901.603.5.301.7.703.7 1.205 0 .302.1.804.3 1.508.1.703 0 1.406-.3 2.11zM21.907 37.882H3.401c-.4 0-.8.1-1.2.302-.4.2-.8.502-1.1.803C.4 39.691 0 40.595 0 41.5v56.372c0 .904.4 1.808 1.1 2.512.4.401.7.602 1.1.803.4.201.801.302 1.201.302h18.506c2.901 0 4.402-1.206 4.402-3.617V41.5c0-.905-.4-1.81-1.2-2.513-.901-.803-2.001-1.105-3.202-1.105z",fill:"currentColor"}))),iR=iC(e=>a.createElement("svg",{viewBox:"0 0 56 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M41.926 33.698 56 20.14l-19.327-2.75L27.95 0l-8.623 17.39L0 20.14l14.074 13.558-3.27 19.06 17.345-9.039 17.345 9.039-3.568-19.06z",fill:"#FFCF00"}))),iP=a.forwardRef(({isDisabled:e=!1,className:t,children:n,onClick:r,type:i="button",...o},s)=>{let l=(0,a.useCallback)(t=>{e||null==r||r(t)},[e,r]);return m.jsx(iL,{type:i,className:t,$isDisabled:e,onClick:l,ref:s,...o,children:n})}),iL=tj.button` 342 cursor: ${({$isDisabled:e})=>e?"default":"pointer"}; 343`;class iI{static timeoutId=null;static isStoppingEvent=!1;static get isStoppingPropagationEvent(){return this.isStoppingEvent}static setTimer(e=1e3){this.timeoutId=setTimeout(()=>{this.isStoppingEvent=!1},e)}static clearTimer(e){clearTimeout(e),this.timeoutId=null}static togglePropagationEvent(e){null!=this.timeoutId&&this.clearTimer(this.timeoutId),this.isStoppingEvent=e,e&&this.setTimer()}}class iN{static goodCount=0;static get count(){return this.goodCount}static addCount(e){this.goodCount+=e}}let iA={opacity:0,transformX:0,transformY:0,transformScale:1,transitionDuration:1e3},iD="anim-start",iM=({count:e})=>{let{onRequestPostGoodCount:t}=nP(),n=(0,a.useRef)(null),r=(0,a.useRef)(0),{handleMouseDown:i,handleMouseUp:o,effectStyle:s}=(({ref:e,transitionDuration:t=iA.transitionDuration})=>{let[n,r]=(0,a.useState)({...iA,transitionDuration:t}),i=(0,a.useMemo)(()=>({opacity:n.opacity,transform:`translate(${n.transformX}px, ${n.transformY}px) scale(${n.transformScale})`,transitionDuration:`${n.transitionDuration/1e3}s`}),[n]),o=(0,a.useCallback)(t=>{r(n=>{if(null===e.current)return n;let r=t.pageX,i=t.pageY,o=e.current.getBoundingClientRect(),s=o.left+window.pageXOffset,a=o.top+window.pageYOffset;return{...n,opacity:.5,transformX:r-s,transformY:i-a,transformScale:0,transitionDuration:0}})},[]);return{handleMouseUp:(0,a.useCallback)(()=>{r(e=>({...e,transitionDuration:t,opacity:0,transformScale:1}))},[t]),handleMouseDown:o,effectStyle:i}})({ref:n}),[l,c]=(0,a.useState)(iN.count),u=(0,a.useMemo)(()=>l>=10,[l]),d=(0,a.useMemo)(()=>{let t=e+l;return t>9999999?"9,999,999+":t.toString().replace(/(\d)(?=(\d{3})+$)/g,"$1,")},[e,l]),h=(0,a.useMemo)(()=>`${l} / 10`,[l]),p=(0,a.useCallback)(()=>{u||null==n.current||(iI.isStoppingPropagationEvent||iI.togglePropagationEvent(!0),(e=>{e.classList.remove(iD),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e.classList.add(iD)})})})(n.current),c(e=>(iN.addCount(1),e+1)),r.current+=1)},[u]);return nz(async()=>
343{if(0!==l)try{await t(r.current)}catch(e){console.log(e)}finally{r.current=0}},750,[l,t]),m.jsxs(iU,{children:[m.jsxs(i1,{ref:n,isDisabled:u,$isMaxCountReached:u,onMouseDown:i,onMouseUp:o,onClick:p,children:[!u&&m.jsx(iY,{children:m.jsx(iV,{style:s})}),m.jsxs(iW,{children:[m.jsx(iG,{}),m.jsx(iK,{}),m.jsx(iJ,{}),m.jsx(iq,{$isDisabled:u})]}),m.jsx(iZ,{$isDisabled:u,children:"GOOD!"}),m.jsx(iQ,{children:d})]}),m.jsx(i0,{children:h})]})},iz=t$` 344 0% { 345 transform: translate(-50%, 0) rotate(0deg); 346 } 347 348 25% { 349 transform: translate(-50%, 0) rotate(-15deg); 350 } 351 352 50% { 353 transform: translate(-50%, 0) rotate(0deg); 354 } 355`,iF=t$` 356 0% { 357 transform: translate(0, 0) rotate(0); 358 opacity: 1; 359 } 360 361 50% { 362 transform: translate(-28px, -50px) rotate(-90deg); 363 opacity: 0.3; 364 } 365 366 100% { 367 transform: translate(-28px, -50px) rotate(-90deg); 368 opacity: 0; 369 } 370`,iB=t$` 371 0% { 372 transform: translate(0, 0) rotate(0); 373 opacity: 1; 374 } 375 376 50% { 377 transform: translate(-8px, -60px) rotate(-135deg); 378 opacity: 0.3; 379 } 380 381 100% { 382 transform: translate(-8px, -60px) rotate(-135deg); 383 opacity: 0; 384 } 385`,iH=t$` 386 0% { 387 transform: translate(0, 0) rotate(0); 388 opacity: 1; 389 } 390 391 50% { 392 transform: translate(13px, -45px) rotate(-180deg); 393 opacity: 0.3; 394 } 395 396 100% { 397 transform: translate(13px, -45px) rotate(-180deg); 398 opacity: 0; 399 } 400`,iU=tj.div` 401 display: flex; 402 flex-direction: column; 403 align-items: center; 404`,iV=tj.div` 405 position: absolute; 406 pointer-events: none; 407 width: 200px; 408 height: 200px; 409 left: -100px; 410 top: -100px; 411 border-radius: 100px; 412 background-color: #fff; 413`,iY=tj.div` 414 position: absolute; 415 width: 100%; 416 height: 100%; 417 pointer-events: none; 418 overflow: hidden; 419 border-radius: 30px; 420`,iW=tj.div` 421 position: relative; 422 width: 100px; 423 height: 100px; 424`,iq=tj(iT)` 425 width: 72px; 426 position: absolute; 427 bottom: 0; 428 left: 50%; 429 transform: translate(-50%, 0); 430 transform-origin: bottom left; 431 color: ${({theme:e,$isDisabled:t})=>t?e.colors.goodButtonText.disabled:e.colors.goodButtonText.default}; 432`,iX=tj(iR)` 433 width: 25px; 434`,iG=tj(iX)` 435 position: absolute; 436 top: 15px; 437 left: 31px; 438 opacity: 0; 439`,iK=tj(iX)` 440 position: absolute; 441 top: 15px; 442 left: 48px; 443 opacity: 0; 444`,iJ=tj(iX)` 445 position: absolute; 446 top: 15px; 447 left: 65px; 448 opacity: 0; 449`,iZ=tj.h3` 450 margin: 5px 0; 451 font-size: 20px; 452 font-weight: 600; 453 color: ${({theme:e,$isDisabled:t})=>t?e.colors.goodButtonText.disabled:e.colors.goodButtonText.default}; 454`,iQ=tj.div` 455 min-width: 100px; 456 height: 25px; 457 padding: 0 15px; 458 line-height: 25px; 459 text-align: center; 460 font-size: 15px; 461 color: ${({theme:e})=>e.colors.goodButton.default}; 462 background-color: rgb(255 255 255 / 80%); 463 border-radius: 40px; 464`,i0=tj.div` 465 margin-top: 8px; 466 font-size: 14px; 467 color: #707070; 468`,i1=tj(iP)` 469 position: relative; 470 display: flex; 471 flex-direction: column; 472 align-items: center; 473 width: 200px; 474 height: 200px; 475 /* stylelint-disable declaration-colon-newline-after, value-list-comma-newline-after, indentation */ 476 background-color: ${({theme:e,$isMaxCountReached:t})=>t?e.colors.background.disabled:e.colors.goodButton.default}; 477 /* stylelint-enable declaration-colon-newline-after, value-list-comma-newline-after, indentation */ 478 border-radius: 30px; 479 user-select: none; 480 481 &.anim-start { 482 & ${iG} { 483 animation: ${iF} 0.6s ease-out 0.15s forwards; 484 } 485 486 & ${iK} { 487 animation: ${iB} 0.6s ease-out 0.2s forwards; 488 } 489 490 & ${iJ} { 491 animation: ${iH} 0.6s ease-out 0.25s forwards; 492 } 493 494 & ${iq} { 495 animation: ${iz} 0.6s ease-out; 496 } 497 } 498`,i2=iC(e=>a.createElement("svg",{width:16,height:18,viewBox:"0 0 16 18",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M9.522 7.695L15.48.5h-1.412L8.895 6.747 4.765.5H0l6.247 9.447L0 17.49h1.412l5.461-6.597 4.363 6.597H16L9.522 7.695zM7.59 10.03l-.633-.94L1.92 1.603h2.168l4.064 6.04.633.941 5.283 7.852H11.9L7.589 10.03z",fill:"currentColor"}))),i3=({url:e,text:t,hashtags:n=[]})=>({href:(0,a.useMemo)(()=>{let r={url:e,text:t,hashtags:n.join(",")};return`https://twitter.com/intent/tweet?${(0,u.stringify)(r)}`},[e,t,n])}),i5=e=>{let{t}=rw(),{href:n}=i3(e);return m.jsx("a",{href:n,title:t("end_reading_twitter_share_button.heading"),children:m.jsxs(i4,{children:[m.jsx(i8,{}),m.jsx(i6,{children:t("end_reading_twitter_share_button.heading")})]})})},i4=tj.div` 499 display: flex; 500 align-items: center; 501 justify-content: center; 502 width: 280px; 503 height: 48px; 504 padding: 15px; 505 color: ${({theme:e})=>e.colors.endReadingButton.text.default}; 506 background-color: #fff; 507 border: 3px solid 508 ${({theme:e})=>e.colors.endReadingButton.border.default}; 509 border-radius: 25px; 510 transition: background-color 0.2s ease-out; 511 512 &:hover { 513 background-color: ${({theme:e})=>e.colors.endReadingButton.hover.default}; 514 } 515`,i8=tj(i2)` 516 width: 16px; 517 height: 18px; 518 margin: 0 8px 0 0; 519 line-height: 1; 520`,i6=tj.div` 521 font-size: 16px; 522 font-weight: 600; 523`,i9=e=>a.createElement("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{clipRule:"evenodd",d:"M11.684.856c-.372-1.
523142-1.996-1.141-2.368 0l-1.737 5.32a.747.747 0 0 1-.71.514H1.247C.04 6.69-.46 8.227.516 8.933l4.547 3.287c.262.19.371.525.271.832l-1.737 5.32c-.372 1.142.94 2.091 1.917 1.386l4.547-3.288a.75.75 0 0 1 .878 0l4.547 3.288c.976.705 2.29-.244 1.917-1.386l-1.737-5.32a.742.742 0 0 1 .271-.832l4.547-3.287c.976-.706.475-2.243-.732-2.243h-5.62a.747.747 0 0 1-.71-.514L11.683.856Z"})),i7=e=>a.createElement("svg",{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{clipRule:"evenodd",d:"M8.659 1.327c.58-1.77 3.103-1.77 3.682 0l1.586 4.842h5.133c1.876 0 2.655 2.38 1.138 3.474l-4.152 2.992 1.586 4.843c.58 1.769-1.462 3.24-2.98 2.147L10.5 16.632l-4.153 2.993c-1.517 1.093-3.558-.378-2.979-2.147l1.586-4.843L.802 9.643C-.715 8.549.064 6.169 1.94 6.169h5.133l1.586-4.842Zm1.841.89L8.98 6.853A1.934 1.934 0 0 1 7.14 8.18H2.223l3.978 2.866c.678.489.962 1.356.703 2.147l-1.52 4.638 3.978-2.867a1.949 1.949 0 0 1 2.276 0l3.977 2.867-1.519-4.638a1.912 1.912 0 0 1 .703-2.147l3.978-2.866H13.86a1.935 1.935 0 0 1-1.84-1.327L10.5 2.216Z"})),oe=tj(iP)` 524 display: flex; 525 align-items: center; 526 justify-content: center; 527 width: 280px; 528 height: 48px; 529 padding: 15px; 530 color: ${({theme:e,$isActive:t})=>t?e.colors.endReadingButton.text.active:e.colors.endReadingButton.text.default}; 531 background-color: #fff; 532 border: 3px solid 533 ${({theme:e})=>e.colors.endReadingButton.border.default}; 534 border-radius: 25px; 535 transition: background-color 0.2s ease-out; 536 537 &:hover { 538 background-color: ${({theme:e})=>e.colors.endReadingButton.hover.default}; 539 } 540`,ot=tj(({isActive:e,...t})=>iC(e?i9:i7)(t))` 541 width: 21px; 542 height: 20px; 543 margin: 0 8px 2px 0; 544 line-height: 1; 545`,on=tj.span` 546 font-size: 16px; 547 font-weight: 600; 548`,or=()=>{let{beginReading:e}=rT(),{share:t}=nP();return m.jsxs(oi,{children:[m.jsx(iM,{count:e.comic_good_count}),m.jsxs(oo,{children:[m.jsx(os,{}),m.jsx(i5,{url:t.url,text:t.text,hashtags:t.hashtags})]})]})},oi=tj.div` 549 position: relative; 550 display: flex; 551 flex-direction: column; 552 align-items: center; 553 justify-content: center; 554 width: 100%; 555 height: 100%; 556`,oo=tj.div` 557 margin-top: 20px; 558`,os=tj(({className:e})=>{let{t}=rw(),{isFavoriteComic:n,onClickFavoriteButton:r}=nP(),i=(0,a.useCallback)(()=>{iI.isStoppingPropagationEvent||iI.togglePropagationEvent(!0),r(n)},[n,r]);return m.jsxs(oe,{className:e,onClick:i,$isActive:n,children:[m.jsx(ot,{isActive:n}),m.jsx(on,{children:t(n?"favorite_button.favorited":"favorite_button.favorite")})]})})` 559 margin-bottom: 12px; 560`,oa=function(e,t){let n=`atom${++rs}`,r={toString(){return(ro?"with-d-ts":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return r.init=e,r.read=ra,r.write=rl,r}(!1),ol={id:"1000289053",group:"1000182229"},oc=`fluct-unit-${ol.id}-1`,ou="https://pdn.adingo.jp/p.js",od={root:null,rootMargin:"0px",threshold:.5},oh=()=>{let e=(0,a.useRef)(null),t=nY(e,od),n=function(e,t){let n=rd();return(0,a.useCallback)((...t)=>{if((rc?"with-d-ts":void 0)!=="production"&&!("write"in e))throw Error("not writable atom");return n.set(e,...t)},[n,e])}(oa),r=(0,a.useCallback)(()=>{(window.fluctAdScript??{cmd:[]}).cmd.push(e=>{e.setGamTargetingMap("%%PATTERN:TARGETINGMAP%%"),e.requestAdByGroup(ol.group).display(`.${oc}`,ol.id)})},[]),i=(0,a.useCallback)(()=>{document.body.removeAttribute("style")},[]);return(0,a.useEffect)(()=>{null!=t&&t.isIntersecting&&t.target.clientWidth>0&&t.target.clientHeight>0?n(!0):n(!1)},[t,n]),(0,a.useEffect)(()=>(null===document.querySelector(`script[src="${ou}"]`)?(({onload:e})=>{let t=document.createElement("script");t.src=ou,t.async=!0,t.onload=e,document.head.appendChild(t)})({onload:r}):r(),()=>{i()}),[]),m.jsx("div",{ref:e,className:oc})},op=({isSubscribed:e})=>{let{isSpreadMode:t}=n1(),{locale:n}=nP();return e||t||"ja"!==n?null:m.jsx(oh,{})},of=({isSubscribed:e,resource:t})=>{let n=(0,a.useCallback)(e=>m.jsx(rS,{book:e}),[]),r=(0,a.useMemo)(()=>{switch(t.pageType){case"ads":return m.jsx(rY,{});case"episode_details":return m.jsx(ik,{});case"good_details":return m.jsxs(m.Fragment,{children:[m.jsx(or,{}),m.jsx(op,{isSubscribed:e})]});case"comic_details":return m.jsx(rq,{resource:t,renderComicDetails:n});default:return rb(t)}},[t,e,n]);return m.jsx(og,{children:r})},og=tj.div` 561 display: flex; 562 align-items: flex-start; 563 justify-content: center; 564 width: 100%; 565 height: 100%; 566 padding: 0 15px; 567 overflow: hidden; 568`,om=({children:e})=>{let{height:t,isLandscape:n}=n1(),r=(0,a.useMemo)(()=>({height:n?`${t}px`:"100%"}),[t,n]);return m.jsx(ov,{children:m.jsx(oy,{style:r,children:e})})},ov=tj.div` 569 position: fixed; 570 top: 0; 571 left: 0; 572 width: 100%; 573 height: 100%; 574 z-index: 1; 575 font-size: 14px; 576 color: ${({theme:e})=>e.colors.text.app}; 577 background-color: ${({theme:e})=>e.colors.background.app}; 578`,oy=tj.div` 579 position: relative; 580 max-width: 100%; 581 overflow: hidden; 582`;class ox{pageType;page;constructor(e,t){this.pageType=e,this.page=t}}class ob extends ox{books;constructor(e,t){super("comic_details",e),this.books=t}}let ow=(e,...t)=>({type:e,resource:t});class oS{id;sourceUrl;drmHash;page;pageType;image;constructor(e,t){this.id=e.id,this.sourceUrl=e.page_image_url,this.drmHash=e.drm_hash,this.page=t,this.pageType="image"}setImage(e){this.image=e}}class o_ extends a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){let{errorHandler:n}=this.props;console.error(e),n?.(e,t)}render(){let{children:e}=this.props,{hasError:t}=this.state;return e(t)}}let ok=50,oj=({className:e,size:t=ok}
582)=>m.jsxs(o$,{className:e,$dotSize:t,children:[m.jsx(oC,{}),m.jsx(oC,{}),m.jsx(oC,{})]}),oE=t$` 583 0%, 584 80%, 585 100% { 586 transform: scale(0.3); 587 } 588 589 40% { 590 transform: scale(1); 591 } 592`,o$=tj.div` 593 width: ${({$dotSize:e})=>e}px; 594 height: ${({$dotSize:e})=>e}px; 595 display: flex; 596 justify-content: space-between; 597 align-items: center; 598 margin: auto; 599`,oC=tj.div` 600 width: 25%; 601 height: 25%; 602 background-color: ${({theme:e})=>e.colors.primary.default}; 603 border-radius: 50%; 604 /* stylelint-disable-next-line declaration-colon-newline-after */ 605 animation: ${oE} 1.4s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s infinite 606 both; 607 608 &:nth-child(1) { 609 animation-delay: -0.3s; 610 } 611 612 &:nth-child(2) { 613 animation-delay: -0.15s; 614 } 615`;var oO={exports:{}};let oT=p(function(){return sx||(sx=1,!function(e,t,n,r){var i,o=["","webkit","Moz","MS","ms","o"],s=t.createElement("div"),a=Math.round,l=Math.abs,c=Date.now;function u(e,t,n){return setTimeout(v(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function p(t,n,r){var i="DEPRECATED METHOD: "+n+` 616`+r+` AT 617`;return function(){var n=Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}i="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var f=p(function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e},"extend","Use `assign`."),g=p(function(e,t){return f(e,t,!0)},"merge","Use `assign`.");function m(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&i(r,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function y(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function x(e,t,n){h(_(t),function(t){e.addEventListener(t,n,!1)})}function b(e,t,n){h(_(t),function(t){e.removeEventListener(t,n,!1)})}function w(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return -1}function j(e){return Array.prototype.slice.call(e,0)}function E(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var s=e[o][t];0>k(i,s)&&r.push(e[o]),i[o]=s,o++}return r.sort(function(e,n){return e[t]>n[t]})}function $(e,t){for(var n,i,s=t[0].toUpperCase()+t.slice(1),a=0;a<o.length;){if((i=(n=o[a])?n+s:t)in e)return i;a++}return r}var C=1;function O(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var T="ontouchstart"in e,R=$(e,"PointerEvent")!==r,P=T&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",I="mouse",N=["x","y"],A=["clientX","clientY"];function D(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){y(e.options.enable,[e])&&n.handler(t)},this.init()}function M(e,t,n){var i,o,s,a,u,d,h,p,f,g,m,v,y,x,b,S,_,k,j,E,$,C=n.pointers.length,O=n.changedPointers.length,T=1&t&&C-O==0,R=12&t&&C-O==0;n.isFirst=!!T,n.isFinal=!!R,T&&(e.session={}),n.eventType=t,i=e,o=n,s=i.session,u=(a=o.pointers).length,s.firstInput||(s.firstInput=z(o)),u>1&&!s.firstMultiple?s.firstMultiple=z(o):1===u&&(s.firstMultiple=!1),d=s.firstInput,p=(h=s.firstMultiple)?h.center:d.center,f=o.center=F(a),o.timeStamp=c(),o.deltaTime=o.timeStamp-d.timeStamp,o.angle=V(p,f),o.distance=U(p,f),g=s,v=(m=o).center,y=g.offsetDelta||{},x=g.prevDelta||{},b=g.prevInput||{},(1===m.eventType||4===b.eventType)&&(x=g.prevDelta={x:b.deltaX||0,y:b.deltaY||0},y=g.offsetDelta={x:v.x,y:v.y}),m.deltaX=x.x+(v.x-y.x),m.deltaY=x.y+(v.y-y.y),o.offsetDirection=H(o.deltaX,o.deltaY),S=B(o.deltaT
617ime,o.deltaX,o.deltaY),o.overallVelocityX=S.x,o.overallVelocityY=S.y,o.overallVelocity=l(S.x)>l(S.y)?S.x:S.y,o.scale=h?(_=h.pointers,U((k=a)[0],k[1],A)/U(_[0],_[1],A)):1,o.rotation=h?(j=h.pointers,V((E=a)[1],E[0],A)+V(j[1],j[0],A)):0,o.maxPointers=s.prevInput?o.pointers.length>s.prevInput.maxPointers?o.pointers.length:s.prevInput.maxPointers:o.pointers.length,function(e,t){var n,i,o,s,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(c>25||a.velocity===r)){var u=t.deltaX-a.deltaX,d=t.deltaY-a.deltaY,h=B(c,u,d);i=h.x,o=h.y,n=l(h.x)>l(h.y)?h.x:h.y,s=H(u,d),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=s}(s,o),$=i.element,w(o.srcEvent.target,$)&&($=o.srcEvent.target),o.target=$,e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function z(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:a(e.pointers[n].clientX),clientY:a(e.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:t,center:F(t),deltaX:e.deltaX,deltaY:e.deltaY}}function F(e){var t=e.length;if(1===t)return{x:a(e[0].clientX),y:a(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:a(n/t),y:a(r/t)}}function B(e,t,n){return{x:t/e||0,y:n/e||0}}function H(e,t){return e===t?1:l(e)>=l(t)?e<0?2:4:t<0?8:16}function U(e,t,n){n||(n=N);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function V(e,t,n){n||(n=N);var r=t[n[0]]-e[n[0]];return 180*Math.atan2(t[n[1]]-e[n[1]],r)/Math.PI}D.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(O(this.element),this.evWin,this.domHandler)}};var Y={mousedown:1,mousemove:2,mouseup:4};function W(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,D.apply(this,arguments)}m(W,D,{handler:function(e){var t=Y[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:I,srcEvent:e}))}});var q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},X={2:L,3:"pen",4:I,5:"kinect"},G="pointerdown",K="pointermove pointerup pointercancel";function J(){this.evEl=G,this.evWin=K,D.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(G="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),m(J,D,{handler:function(e){var t=this.store,n=!1,r=q[e.type.toLowerCase().replace("ms","")],i=X[e.pointerType]||e.pointerType,o=i==L,s=k(t,e.pointerId,"pointerId");1&r&&(0===e.button||o)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),!(s<0)&&(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var Z={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function Q(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,D.apply(this,arguments)}function ee(e,t){var n=j(e.touches),r=j(e.changedTouches);return 12&t&&(n=E(n.concat(r),"identifier")),[n,r]}m(Q,D,{handler:function(e){var t=Z[e.type];if(1===t&&(this.started=!0),this.started){var n=ee.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function en(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},D.apply(this,arguments)}function er(e,t){var n=j(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=j(e.changedTouches),a=[],l=this.target;if(o=n.filter(function(e){return w(e.target,l)}),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&t&&delete r[s[i].identifier],i++;if(a.length)return[E(o.concat(a),"identifier"),a]}function ei(){D.apply(this,arguments);var e=v(this.handler,this);this.touch=new en(this.manager,e),this.mouse=new W(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function eo(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,es.call(this,t)):12&e&&es.call(this,t)}function es(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},2500)}}function ea(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}m(en,D,{handler:function(e){var t=et[e.type],n=er.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}}),m(ei,D,{handler:function(e,t,n){var r=n.pointerType==L,i=n.pointerType==I;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)eo.call(this,t,n);else if(i&&ea.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var el=$(s.style,"touchAction"),ec=el!==r,eu="compute",ed="auto",eh="manipulation",ep="none",ef="pan-x",eg="pan-y",em=function(){if(!ec)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=!n||e.CSS.supports("touch-action",r)}
617),t}();function ev(e,t){this.manager=e,this.set(t)}function ey(e){var t;this.options=i({},this.defaults,e||{}),this.id=C++,this.manager=null,this.options.enable=(t=this.options.enable,t===r||t),this.state=1,this.simultaneous={},this.requireFail=[]}function ex(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function eb(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ew(e,t){var n=t.manager;return n?n.get(e):e}function eS(){ey.apply(this,arguments)}function e_(){eS.apply(this,arguments),this.pX=null,this.pY=null}function ek(){eS.apply(this,arguments)}function ej(){ey.apply(this,arguments),this._timer=null,this._input=null}function eE(){eS.apply(this,arguments)}function e$(){eS.apply(this,arguments)}function eC(){ey.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function eO(e,t){var n,i;return(t=t||{}).recognizers=(n=t.recognizers,i=eO.defaults.preset,n===r?i:n),new eT(e,t)}function eT(e,t){var n;this.options=i({},eO.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this.options.inputClass)?n:R?J:P?en:T?ei:W)(this,M),this.touchAction=new ev(this,this.options.touchAction),eR(this,!0),h(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function eR(e,t){var n,r=e.element;r.style&&(h(e.options.cssProps,function(i,o){n=$(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}ev.prototype={set:function(e){e==eu&&(e=this.compute()),ec&&this.manager.element.style&&em[e]&&(this.manager.element.style[el]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){y(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(S(e,ep))return ep;var t=S(e,ef),n=S(e,eg);return t&&n?ep:t||n?t?ef:eg:S(e,eh)?eh:ed}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var r=this.actions,i=S(r,ep)&&!em[ep],o=S(r,eg)&&!em[eg],s=S(r,ef)&&!em[ef];if(i){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!(s&&o)&&(i||o&&6&n||s&&24&n))return this.preventSrc(t)},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}},ey.prototype={defaults:{},set:function(e){return i(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(d(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ew(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=ew(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return -1===k(t,e=ew(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=ew(e,this);var t=k(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ex(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ex(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=i({},e);if(!y(this.options.enable,[this,t])){this.reset(),this.state=32;return}56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},m(eS,ey,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:32}}),m(e_,eS,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(eg),24&e&&t.push(ef),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,s=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===s?1:s<0?8:16,n=s!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return eS.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=eb(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),m(ek,eS,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ep]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),m(ej,ey,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ed]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,r&&n&&(!(12&e.eventType)||i)){if(1&e.eventType)this.reset(),this._timer=u(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8}else this.reset();return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),m(eE,eS,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ep]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),m(e$,eS,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return e_.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&l(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=eb(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),m(eC,ey,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[eh]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||U(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=u(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=u(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),eO.VERSION="2.0.7",eO.defaults={domEvents:!1,touchAction:eu,enable:!0,inputTarget:null,inputClass:null,preset:[[eE,{enable:!1}],[ek,{enable:!1},["rotate"]],[e$,{direction:6}],[e_,{direction:6},["swipe"]],[eC],[eC,{event:"doubletap",taps:2},["tap"]],[ej]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},eT.prototype={set:function(e){return i(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2!==t.stopped&&(!i||n==i||n.canRecognizeWith(i))?n.recognize(e):n.reset(),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof ey)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(d(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(d(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=k(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return h(_(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==r){var n=this.handlers;return h(_(e),function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]}),this}}
617,emit:function(e,n){this.options.domEvents&&(r=e,i=n,(o=t.createEvent("Event")).initEvent(r,!0,!0),o.gesture=i,i.target.dispatchEvent(o));var r,i,o,s=this.handlers[e]&&this.handlers[e].slice();if(!(!s||!s.length)){n.type=e,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var a=0;a<s.length;)s[a](n),a++}},destroy:function(){this.element&&eR(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},i(eO,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:eT,Input:D,TouchAction:ev,TouchInput:en,MouseInput:W,PointerEventInput:J,TouchMouseInput:ei,SingleTouchInput:Q,Recognizer:ey,AttrRecognizer:eS,Tap:eC,Pan:e_,Swipe:e$,Pinch:ek,Rotate:eE,Press:ej,on:x,off:b,each:h,merge:g,extend:f,assign:i,inherit:m,bindFn:v,prefixed:$}),("u">typeof e?e:"u">typeof self?self:{}).Hammer=eO,oO.exports?oO.exports=eO:e[n]=eO}(window,document,"Hammer")),oO.exports}()),oR="singletap",oP="panend",oL=`panmove ${oP}`,oI=`${oR} ${oL}`,oN=({min:e,max:t,value:n,isDisabled:r=!1,isReverse:i=!1,onAfterChange:o})=>{let s=(0,a.useRef)(null),l=(0,a.useRef)(null),[c,u]=(0,a.useState)(!1),[d,h]=(0,a.useState)(n),p=(0,a.useMemo)(()=>i?"right":"left",[i]),f=(0,a.useMemo)(()=>t>e?(d-e)/(t-e)*100:100,[t,e,d]),[,g]=nz(()=>{c&&o(d)},500,[d]),v=(0,a.useCallback)(n=>{if(null!=s.current){let{left:r,right:a,width:l}=s.current.getBoundingClientRect(),c=Math.round((i?a-n.center.x:n.center.x-r)/l*(t-e)+e);c>t&&(c=t),c<e&&(c=e),n.type===oP||n.type===oR?(u(!1),h(c),o(c),g()):(u(!0),h(c))}},[e,t,i,g,o]);return(0,a.useEffect)(()=>{h(n)},[n]),(0,a.useEffect)(()=>{null!=l.current&&(l.current.off(oI),l.current.on(oI,v))},[v]),(0,a.useEffect)(()=>{if(null!=s.current&&null==l.current){let e=new oT.Manager(s.current),t=[new oT.Pan({direction:oT.DIRECTION_HORIZONTAL}),new oT.Tap({event:oR,taps:1})];e.add(t),e.on(oI,v),l.current=e}return()=>{null!=l.current&&(l.current.destroy(),l.current=null)}},[]),m.jsxs(oA,{ref:s,$isDisabled:r,$isPanMove:c,children:[m.jsx(oz,{$isReverse:i,style:{[p]:`${f}%`},children:`${d} / ${t}`}),m.jsx(oF,{$isReverse:i,style:{[p]:`${f}%`}}),m.jsx(oD,{}),m.jsx(oM,{$isReverse:i,style:{width:`${f}%`}})]})},oA=tj.div` 618 position: relative; 619 height: 18px; 620 padding: 7px 0; 621 width: 100%; 622 visibility: ${({$isDisabled:e})=>e?"hidden":"visible"}; 623 cursor: ${({$isPanMove:e})=>e?"grabbing":"grab"}; 624 touch-action: none; 625 -webkit-tap-highlight-color: transparent; 626`,oD=tj.div` 627 position: absolute; 628 top: 50%; 629 left: 0; 630 width: 100%; 631 height: 4px; 632 background-color: #d8d8d8; 633 border-radius: 6px; 634 transform: translateY(-50%); 635 z-index: 1; 636`,oM=tj.div` 637 position: absolute; 638 top: 50%; 639 left: ${({$isReverse:e})=>e?"auto":0}; 640 right: ${({$isReverse:e})=>e?0:"auto"}; 641 height: 4px; 642 background-color: ${({theme:e})=>e.colors.primary.default}; 643 pointer-events: none; 644 transform: translateY(-50%); 645 border-radius: 6px; 646 z-index: 10; 647`,oz=tj.div` 648 position: absolute; 649 bottom: 20px; 650 padding: 8px; 651 pointer-events: none; 652 border-radius: 5px; 653 white-space: nowrap; 654 text-align: center; 655 font-size: 12px; 656 line-height: 12px; 657 color: #fff; 658 background-color: ${({theme:e})=>e.colors.primary.default}; 659 user-select: none; 660 transform: ${({$isReverse:e})=>`translateX(${e?50:-50}%)`}; 661 z-index: 100; 662`,oF=tj.div` 663 position: absolute; 664 top: 50%; 665 width: 14px; 666 height: 14px; 667 margin-top: -7px; 668 pointer-events: none; 669 border-radius: 50%; 670 border-style: solid; 671 border-width: 2px; 672 border-color: ${({theme:e})=>e.colors.primary.default}; 673 background-color: ${({theme:e})=>e.colors.primary.default}; 674 transform: ${({$isReverse:e})=>`translateX(${e?50:-50}%)`}; 675 z-index: 100; 676`,oB=a.createContext(null),oH=()=>(0,a.useContext)(oB),oU=({leaves:e,rtl:t,onChangePage:n,children:r})=>{let[i,o]=(0,a.useState)(1),s=(0,a.useMemo)(()=>{if(0===e.length)return 0;let{resource:n}="rtl"===t?e[e.length-1]:e[0];return n[n.length-1].page},[e,t]),l=(0,a.useCallback)(t=>e.findIndex(e=>e.resource.some(({page:e})=>e===t)),[e]),c=(0,a.useMemo)(()=>l(i),[l,i]),u=(0,a.useCallback)(e=>{o(e)},[]),d=(0,a.useMemo)(()=>({leaves:e,totalPage:s,currentPage:i,currentLeafIndex:c,changePage:u}),[e,s,i,c,u]);return(0,a.useEffect)(()=>{let t=e[c],r=t.resource.at(-1)?.page,i=t.resource.at(-1)?.pageType;n(t.type,i??null,r??0)},[i,c,e,n]),m.jsx(oB.Provider,{value:d,children:r})},oV=a.memo(({rtl:e,isDisabled:t})=>{let{currentPage:n,totalPage:r,changePage:i}=oH(),o=(0,a.useMemo)(()=>"rtl"===e,[e]),s=(0,a.useCallback)(e=>{i(e)},[i]);return m.jsx(oY,{$isDisabled:t,children:m.jsx(oN,{min:1,max:r,value:n,isDisabled:t,isReverse:o,onAfterChange:s})})},(e,t)=>e.isDisabled===t.isDisabled),oY=tj.footer` 677 display: flex; 678 align-items: center; 679 justify-content: center; 680 position: absolute; 681 bottom: 0; 682 left: 0; 683 width: 100%; 684 height: ${({theme:e})=>e.layouts.appBarHeight}px; 685 padding: 0 35px; 686 background-color: ${({theme:e})=>e.colors.background.appBar}; 687 /* stylelint-disable-next-line declaration-colon-newline-after */ 688 box-shadow: ${({$isDisabled:e})=>e?"none":"0 0 10px 0 rgb(0 0 0 / 10%)"}; 689 transform: ${({$isDisabled:e})=>`translateY(${100*!!e}%)`}; 690 transition: transform 0.2s ease-out; 691 will-change: transform; 692 z-index: 9999; 693`,oW=iC(e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},a.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),oq=a.memo(({comicId:e})=>{let{comicPath:t}=nP();return m.jsx(ic,{href:`${t}/${e}`,children:m.jsx(oX,{children:m.jsx(oG,{})})})},(e,t)=>e.comicId===t.comicId),oX=tj.div` 694 display: flex; 695 align-items: center; 696 justify-content: center; 697 width: ${({theme:e})=>`${e.layouts.appBarHeight}px`}; 698 height: ${({theme:e})=>`${e.layouts.appBarHeight}px`}; 699`,oG=tj(oW)` 700 width: 35px; 701 height: 35px; 702 color: ${({theme:e})=>e.colors.primary.default}; 703`,oK=e=>a.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),oJ=iC(e=>a.createElement("svg",{width:44,height:44,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#prefix__clip0_6038_46521)"},a.createElement("g",{clipPath:"url(#prefix__clip1_6038_46521)"},a.createElement("path",{d:"M44 22C44 9.85 34.15 0 22 0S0 9.85 0 22c0 10.318 7.
703103 18.975 16.685 21.352v-14.63H12.15V22h4.536v-2.897c0-7.488 3.39-10.959 10.74-10.959 1.394 0 3.8.274 4.783.547v6.094c-.52-.055-1.421-.082-2.541-.082-3.608 0-5.002 1.367-5.002 4.92V22h7.186l-1.234 6.723h-5.952v15.116C35.558 42.523 44 33.248 44 22z",fill:"#0866FF"}),a.createElement("path",{d:"M30.617 28.723L31.85 22h-7.186v-2.377c0-3.553 1.394-4.92 5.001-4.92 1.12 0 2.023.028 2.542.082V8.691c-.984-.273-3.389-.546-4.782-.546-7.352 0-10.74 3.47-10.74 10.958V22h-4.537v6.723h4.536v14.63a22.044 22.044 0 007.98.486V28.723h5.952z",fill:"#fff"}))),a.createElement("defs",null,a.createElement("clipPath",{id:"prefix__clip0_6038_46521"},a.createElement("path",{fill:"#fff",d:"M0 0h44v44H0z"})),a.createElement("clipPath",{id:"prefix__clip1_6038_46521"},a.createElement("path",{fill:"#fff",d:"M0 0h44v44H0z"}))))),oZ=({url:e})=>{let{t}=rw(),n=(0,a.useMemo)(()=>`https://www.facebook.com/sharer/sharer.php?${(0,u.stringify)({u:e,display:"popup"})}`,[e]),r=(0,a.useCallback)(()=>{window.open(n,"FBwindow","width=650, height=450, menubar=no, toolbar=no, scrollbars=yes")},[n]);return m.jsx(oQ,{role:"button",tabIndex:0,onClick:r,title:t("facebook_share_button.title"),children:m.jsx(o0,{})})},oQ=tj.div` 704 cursor: pointer; 705 outline: none; 706`,o0=tj(oJ)` 707 width: ${({theme:e})=>`${e.layouts.shareButtonSize}px`}; 708 height: ${({theme:e})=>`${e.layouts.shareButtonSize}px`}; 709`,o1=async e=>new Promise((t,n)=>{let r=new Image;r.onload=n=>{let r=n.currentTarget;e.startsWith("blob")&&URL.revokeObjectURL(e),t(r)},r.onerror=e=>{n(Error("string"==typeof e?e:"Failed to load image."))},r.src=e}),o2=({url:e})=>{let t=(0,a.useCallback)(()=>{null!=window.LineIt&&window.LineIt.loadButton()},[]);return(0,a.useEffect)(()=>{((e,t={})=>{let{async:n=!0,onLoad:r=null,onExist:i=null}=t;if(null!=document.querySelector(`script[src="${e}"]`))return i?.();let{head:o}=document,s=document.createElement("script");s.src=e,s.async=n,s.onload=r,o.appendChild(s)})("https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js",{async:!0,onLoad:t,onExist:t})},[]),m.jsx("div",{className:"line-it-button","data-lang":"ja","data-type":"share-c","data-ver":"3","data-url":e,"data-color":"default","data-size":"large","data-count":"false",style:{display:"none"}})},o3=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"})),o5=e=>{let{t}=rw(),{href:n}=i3(e);return m.jsx("a",{href:n,title:t("twitter_share_button.title"),children:m.jsx(o4,{children:m.jsx(o8,{})})})},o4=tj.div` 710 width: ${({theme:e})=>`${e.layouts.shareButtonSize}px`}; 711 height: ${({theme:e})=>`${e.layouts.shareButtonSize}px`}; 712 color: #fff; 713 background-color: #000; 714 border-radius: 9999px; 715 display: flex; 716 justify-content: center; 717 align-items: center; 718`,o8=tj(i2)` 719 width: 23px; 720 height: 24px; 721`,o6=a.memo(({isHeaderDisabled:e})=>{let[t,n]=(0,a.useState)(!1),r=(0,a.useRef)(!1),{share:i}=nP(),o=(0,a.useMemo)(()=>[{key:"twitter",button:m.jsx(o5,{url:i.url,text:i.text,hashtags:i.hashtags})},{key:"facebook",button:m.jsx(oZ,{url:i.url})},{key:"line",button:m.jsx(o2,{url:i.url})}],[i]),s=(0,a.useCallback)(()=>{r.current||(r.current=!0),n(e=>!e)},[]);return(0,a.useEffect)(()=>{e&&n(!1)},[e]),m.jsxs(o7,{children:[m.jsx(st,{onClick:s,children:m.jsx(se,{icon:t?oK:o3,$isOpened:t})}),m.jsx(sr,{$isOpened:t,children:r.current&&o.map(({key:e,button:n},r)=>m.jsx(sn,{$isOpened:t,style:{animationDelay:`${.1*r}s`},children:n},e))})]})},(e,t)=>e.isHeaderDisabled===t.isHeaderDisabled),o9=t$` 722 from { 723 opacity: 0; 724 transform: translateX(50%); 725 } 726 727 to { 728 opacity: 1; 729 transform: translateX(0); 730 } 731`,o7=tj.div` 732 position: relative; 733 width: ${({theme:e})=>`${e.layouts.appBarHeight}px`}; 734 height: ${({theme:e})=>`${e.layouts.appBarHeight}px`}; 735`,se=tj(i$)` 736 color: ${({theme:e})=>e.colors.primary.default}; 737 width: ${({$isOpened:e})=>`${e?35:24}px`}; 738`,st=tj(iP)` 739 display: flex; 740 align-items: center; 741 justify-content: center; 742 width: inherit; 743 height: inherit; 744`,sn=tj.div` 745 margin: 12px 8px; 746 opacity: 0; 747 user-select: none; 748 line-height: 1; 749 animation-name: ${({$isOpened:e})=>e?o9:"none"}; 750 animation-duration: 0.2s; 751 animation-timing-function: ease-out; 752 animation-fill-mode: forwards; 753 754 &:first-of-type { 755 margin-top: 8px; 756 } 757`,sr=tj.div` 758 position: absolute; 759 top: 100%; 760 right: 0; 761 z-index: 10; 762 pointer-events: ${({$isOpened:e})=>e?"auto":"none"}; 763`,si=({beginReading:e,isDisabled:t})=>m.jsxs(so,{$isDisabled:t,children:[m.jsx(oq,{comicId:e.comic_id}),m.jsxs(ss,{children:[m.jsx(sa,{children:e.comic_title}),m.jsx(sl,{as:"h3",children:e.episode_title})]}),m.jsx(o6,{isHeaderDisabled:t})]}),so=tj.header` 764 display: flex; 765 align-items: center; 766 justify-content: space-between; 767 position: absolute; 768 top: 0; 769 left: 0; 770 width: 100%; 771 height: ${({theme:e})=>`${e.layouts.appBarHeight}px`}; 772 color: ${({theme:e})=>e.colors.text.appBar}; 773 background-color: ${({theme:e})=>e.colors.background.appBar}; 774 /* stylelint-disable-next-line declaration-colon-newline-after */ 775 box-shadow: ${({$isDisabled:e})=>e?"none":"0 0 10px 0 rgb(0 0 0 / 10%)"}; 776 transform: ${({$isDisabled:e})=>`translateY(${e?-100:0}%)`}; 777 transition: transform 0.2s ease-out; 778 will-change: transform; 779 z-index: 9999; 780`,ss=tj.div` 781 flex-grow: 1; 782 text-align: left; 783 overflow: hidden; 784`,sa=tj.h1` 785 margin: 0; 786 overflow: hidden; 787 text-overflow: ellipsis; 788 white-space: nowrap; 789 font-size: 12px; 790 font-weight: 600; 791 line-height: 1.4; 792 user-select: none; 793`,sl=tj(sa)` 794 font-size: 16px; 795`,sc=({title:e,description:t,retryButton:n})=>m.jsxs(sd,{children:[m.jsxs(sh,{children:[m.jsx(sp,{children:e}),null!=t&&m.jsx(sf,{children:t})]}),n]}),su=({type:e,onRequestRetry:t})=>{let{t:n}=rw(),r=(0,a.useMemo)(()=>null!=t&&m.jsx(sg,{onClick:t,children:n("error_view.retry")}),[n,t]);return"fetchFailed"===e?m.jsx(sc,{title:n("error_view.fetch_failed.title"),description:n("error_view.fetch_failed.description"),retryButton:r}):"notFound"===e?m.jsx(sc,{title:n("error_view.not_found.title"),description:n("error_view.not_found.description"),retryButton:m.jsx(sm,{as:"a",href:"/",children:n("error_view.not_found.home_button")})}):m.jsx(sc,{title:n("error_view.other_error.title"),description:n("error_view.other_error.description"),retryButton:r})},sd=tj.div` 796 position: relative; 797 width: 100%; 798 height: 100%; 799 display: flex; 800 flex-direction: column; 801 align-items: center; 802 justify-content: center; 803 text-align: center; 804 padding: 15px; 805`,sh=tj.div` 806 margin: 5px 0 10px; 807`,sp=tj.h2` 808 font-size: 20px; 809 margin: 0; 810 color: ${({theme:e})=>e.colors.primary.default}; 811`,sf=tj.div` 812 margin: 5px 0; 813 font-size: 14px; 814 color: ${({theme:e})=>e.colors.text.app}; 815`,sg=tj(iP)` 816 width: 150px; 817 margin: 0 auto; 818 padding: 8px; 819 background-color: #fff; 820 color: ${({theme:e})=>e.colors.primary.default}; 821 border: solid 3px ${({theme:e})=>e.colors.primary.default}; 822 border-radius: 20px; 823 font-size: 14px; 824 transition: background-color 0.2s ease-out; 825 826 &:hover { 827 background-color: ${({theme:e})=>e.colors.primary.light}; 828 } 829`,sm=tj(sg)` 830 /* stylelint-line no-empty-source */ 831`,sv=p(function(){if(sw)return sb;sw=1;var e=NaN,t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,s=Object.prototype.toString;function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function l(l){if("number"==typeof l)return l;if("symbol"==typeof(c=l)||c&&"object"==typeof c&&"[object Symbol]"==s.call(c))return e;if(a(l)){var c,u="function"==typeof l.valueOf?l.valueOf():l;l=a(u)?u+"":u}if("string"!=typeof l)return 0===l?l:+l;l=l.replace(t,"");var d=r.test(l);return d||i.test(l)?o(l.slice(2),d?2:8):n.test(l)?e:+l}return sb=function(e,t,n){var r,i,o;return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=l(n))==n?n:0),void 0!==t&&(t=(t=l(t))==t?t:0),r=l(e),i=t,o=n,r==r&&(void 0!==o&&(r=r<=o?r:o),void 0!==i&&(r=r>=i?r:i)),r}}());var sy,sx,sb,sw,sS,s_,sk,sj,sE,s$,sC={exports:{}},sO={exports:{}},sT={exports:{}},sR=sT.exports,sP={exports:{}};sP.exports;
831let sL=p((s||(s=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=c((sE||(sE=1,sO.exports=(function(){if(sj)return sk;sj=1;var e=s_?sS:(s_=1,sS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,sk=function(){function r(t,n,r,i,o,s){if(s!==e){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}})()()),sO.exports)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}(a),s=c((s$||(s$=1,n=function(){return function(e,t){var n=function(){},r=function(e){setTimeout(e||n,0)},i={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,transitions:function(e){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var n in t)if(void 0!==e.style[t[n]])return!0;return!1}(document.createElement("swipe"))};if(e){var o,s,a,l,c,u,d=e.children[0],h=parseInt((t=t||{}).startSlide,10)||0,p=t.speed||300,f=parseInt(t.widthOfSiblingSlidePreview,10)||0,g=t.continuous=void 0===t.continuous||t.continuous,m=t.auto||0,v={},y={},x={handleEvent:function(e){switch(e.type){case"touchstart":this.start(e);break;case"touchmove":this.move(e);break;case"touchend":r(this.end(e));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":r(this.transitionEnd(e));break;case"resize":r(b)}t.stopPropagation&&e.stopPropagation()},start:function(e){var t=e.touches[0];v={x:t.pageX,y:t.pageY,time:+new Date},u=void 0,y={},d.addEventListener("touchmove",this,!1),d.addEventListener("touchend",this,!1)},move:function(e){if(!(e.touches.length>1||e.scale&&1!==e.scale)&&!t.disableScroll){var n=e.touches[0];y={x:n.pageX-v.x,y:n.pageY-v.y},typeof u>"u"&&(u=!!(u||Math.abs(y.x)<Math.abs(y.y))),u||(e.preventDefault(),$(),g?(j(S(h-1),y.x+s[S(h-1)],0),j(h,y.x+s[h],0),j(S(h+1),y.x+s[S(h+1)],0)):(y.x=y.x/(!h&&y.x>0||h==o.length-1&&y.x<0?Math.abs(y.x)/a+1:1),j(h-1,y.x+s[h-1],0),j(h,y.x+s[h],0),j(h+1,y.x+s[h+1],0)),t.swiping&&t.swiping(-y.x/a))}},end:function(e){var n=250>Number(new Date-v.time)&&Math.abs(y.x)>20||Math.abs(y.x)>a/2,r=!h&&y.x>0||h==o.length-1&&y.x<0;g&&(r=!1);var i=y.x<0;u||(n&&!r?(i?(g?(k(S(h-1),-a,0),k(S(h+2),a,0)):k(h-1,-a,0),k(h,s[h]-a,p),k(S(h+1),s[S(h+1)]-a,p),h=S(h+1)):(g?(k(S(h+1),a,0),k(S(h-2),-a,0)):k(h+1,a,0),k(h,s[h]+a,p),k(S(h-1),s[S(h-1)]+a,p),h=S(h-1)),t.callback&&t.callback(h,o[h])):g?(k(S(h-1),-a,p),k(h,0,p),k(S(h+1),a,p)):(k(h-1,-a,p),k(h,0,p),k(h+1,a,p))),d.removeEventListener("touchmove",x,!1),d.removeEventListener("touchend",x,!1),d.removeEventListener("touchforcechange",function(){},!1)},transitionEnd:function(e){parseInt(e.target.getAttribute("data-index"),10)==h&&(m&&E(),t.transitionEnd&&t.transitionEnd.call(e,h,o[h]))}};return b(),m&&E(),i.addEventListener?(i.touch&&(d.addEventListener("touchstart",x,!1),d.addEventListener("touchforcechange",function(){},!1)),i.transitions&&(d.addEventListener("webkitTransitionEnd",x,!1),d.addEventListener("msTransitionEnd",x,!1),d.addEventListener("oTransitionEnd",x,!1),d.addEventListener("otransitionend",x,!1),d.addEventListener("transitionend",x,!1)),window.addEventListener("resize",x,!1)):window.onresize=function(){b()},{setup:function(){b()},slide:function(e,t){$(),_(e,t)},prev:function(){$(),(g||h)&&_(h-1)},next:function(){$(),w()},stop:function(){$()},getPos:function(){return h},getNumSlides:function(){return l},kill:function(){$(),d.style.width="",d.style.left="";for(var e=o.length;e--;){var t=o[e];t.style.width="",t.style.left="",i.transitions&&j(e,0,0)}i.addEventListener?(d.removeEventListener("touchstart",x,!1),d.removeEventListener("webkitTransitionEnd",x,!1),d.removeEventListener("msTransitionEnd",x,!1),d.removeEventListener("oTransitionEnd",x,!1),d.removeEventListener("otransitionend",x,!1),d.removeEventListener("transitionend",x,!1),window.removeEventListener("resize",x,!1)):window.onresize=null}}}function b(){l=(o=d.children).length,g=!(o.length<2)&&t.continuous,s=Array(o.length),a=Math.round(e.getBoundingClientRect().width||e.offsetWidth)-2*f,d.style.width=o.length*a+"px";for(var n=o.length;n--;){var r=o[n];r.style.width=a+"px",r.setAttribute("data-index",n),i.transitions&&(r.style.left=-(n*a)+f+"px",k(n,h>n?-a:h<n?a:0,0))}g&&i.transitions&&(k(S(h-1),-a,0),k(S(h+1),a,0)),i.transitions||(d.style.left=-(h*a)+f+"px"),e.style.visibility="visible"}function w(){(g||h<o.length-1)&&_(h+1)}function S(e){return(o.length+e%o.length)%o.length}function _(e,n){if(h!=e){if(i.transitions){var l,c,u,f,v,y=Math.abs(h-e)/(h-e);if(g){var x=y;(y=-s[S(e)]/a)!==x&&(e=-y*o.length+e)}for(var b=Math.abs(h-e)-1;b--;)k(S((e>h?e:h)-b-1),a*y,0);e=S(e),k(h,a*y,n||p),k(e,0,n||p),g&&k(S(e-y),-(a*y),0)}
831else{e=S(e),l=-(h*a),c=-(e*a),u=n||p,f=+new Date,v=setInterval(function(){var e=new Date-f;if(e>u){d.style.left=c+"px",m&&E(),t.transitionEnd&&t.transitionEnd.call(event,h,o[h]),clearInterval(v);return}d.style.left=Math.floor(e/u*100)/100*(c-l)+l+"px"},4)}h=e,r(t.callback&&t.callback(h,o[h]))}}function k(e,t,n){j(e,t,n),s[e]=t}function j(e,t,n){var r=o[e],i=r&&r.style;i&&(i.webkitTransitionDuration=i.MozTransitionDuration=i.msTransitionDuration=i.OTransitionDuration=i.transitionDuration=n+"ms",i.webkitTransform="translate("+t+"px,0)translateZ(0)",i.msTransform=i.MozTransform=i.OTransform="translateX("+t+"px)")}function E(){clearTimeout(c),c=setTimeout(w,m)}function $(){m=0,clearTimeout(c)}}},sT.exports?sT.exports=n():sR.Swipe=n()),sT.exports)),l=c((o||(o=1,function(e,t){var n,r,i,o="__lodash_hash_undefined__",s="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object Map]",f="[object Number]",g="[object Object]",m="[object Promise]",v="[object RegExp]",y="[object Set]",x="[object String]",b="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",_=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[a]=j[w]=j[l]=j[S]=j[c]=j[u]=j[d]=j[p]=j[f]=j[g]=j[v]=j[y]=j[x]=j[b]=!1;var E="object"==typeof h&&h&&h.Object===Object&&h,$="object"==typeof self&&self&&self.Object===Object&&self,C=E||$||Function("return this")(),O=t&&!t.nodeType&&t,T=O&&e&&!e.nodeType&&e,R=T&&T.exports===O,P=R&&E.process,L=function(){try{return P&&P.binding&&P.binding("util")}catch{}}(),I=L&&L.isTypedArray;function N(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function A(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var D=Array.prototype,M=Function.prototype,z=Object.prototype,F=C["__core-js_shared__"],B=M.toString,H=z.hasOwnProperty,U=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",V=z.toString,Y=RegExp("^"+B.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=R?C.Buffer:void 0,q=C.Symbol,X=C.Uint8Array,G=z.propertyIsEnumerable,K=D.splice,J=q?q.toStringTag:void 0,Z=Object.getOwnPropertySymbols,Q=W?W.isBuffer:void 0,ee=(r=Object.keys,i=Object,function(e){return r(i(e))}),et=ej(C,"DataView"),en=ej(C,"Map"),er=ej(C,"Promise"),ei=ej(C,"Set"),eo=ej(C,"WeakMap"),es=ej(Object,"create"),ea=eC(et),el=eC(en),ec=eC(er),eu=eC(ei),ed=eC(eo),eh=q?q.prototype:void 0,ep=eh?eh.valueOf:void 0;function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function em(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ev(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new em;++t<n;)this.add(e[t])}function ey(e){var t=this.__data__=new eg(e);this.size=t.size}function ex(e,t){for(var n=e.length;n--;)if(eO(e[n][0],t))return n;return -1}function eb(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=H.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch{}var i=V.call(e);return r&&(t?e[J]=n:delete e[J]),i}(e):(t=e,V.call(t))}function ew(e){return eA(e)&&eb(e)==s}function eS(e,t,n,r,i,o){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&n?new ev:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var p=e[u],f=t[u];if(r)var g=s?r(f,p,u,t,e,o):r(p,f,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(p===e||i(p,e,n,r,o)))return h.push(t)})){d=!1;break}}else if(!(p===f||i(p,f,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function e_(e){var t;return t=eM(e),eR(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eE(e))}function ek(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ej(e,t){var n,r=e?.[t];return!(!eN(r)||(n=r,U&&U in n))&&(eL(r)?Y:_).test(eC(r))?r:void 0}ef.prototype.clear=function(){this.__data__=es?es(null):{},this.size=0},ef.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ef.prototype.get=function(e){var t=this.__data__;if(es){var n=t[e];return n===o?void 0:n}return H.call(t,e)?t[e]:void 0},ef.prototype.has=function(e){var t=this.__data__;return es?void 0!==t[e]:H.call(t,e)},ef.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=es&&void 0===t?o:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=ex(t,e);return!(n<0)&&(n==t.length-1?t.pop():K.call(t,n,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,n=ex(t,e);return n<0?void 0:t[n][1]},eg.prototype.has=function(e){return ex(this.__data__,e)>-1},eg.prototype.set=function(e,t){var n=this.__data__,r=ex(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(en||eg),string:new ef}},em.prototype.delete=function(e){var t=ek(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return ek(this,e).get(e)},em.prototype.has=function(e){return ek(this,e).has(e)},em.prototype.set=function(e,t){var n=ek(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,o),this},ev.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.clear=function(){this.__data__=new eg,this.size=0},ey.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ey.prototype.get=function(e){return this.__data__.get(e)},ey.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eg){var r=n.__data__;if(!en||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new em(r)}return n.set(e,t),this.size=n.size,this};var eE=Z?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}(Z(e=Object(e)),function(t){return G.call(e,t)})}:function(){return[]},e$=eb;function eC(e){if(null!=e){try{return B.call(e)}catch{}try{return e+""}catch{}}return""}function eO(e,t){return e===t||e!=e&&t!=t}(et&&e$(new et(new ArrayBuffer(1)))!=S||en&&e$(new en)!=p||er&&e$(er.resolve())!=m||ei&&e$(new ei)!=y||eo&&e$(ne
831w eo)!=b)&&(e$=function(e){var t=eb(e),n=t==g?e.constructor:void 0,r=n?eC(n):"";if(r)switch(r){case ea:return S;case el:return p;case ec:return m;case eu:return y;case ed:return b}return t});var eT=ew(function(){return arguments}())?ew:function(e){return eA(e)&&H.call(e,"callee")&&!G.call(e,"callee")},eR=Array.isArray,eP=Q||function(){return!1};function eL(e){if(!eN(e))return!1;var t=eb(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eI(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eN(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eA(e){return null!=e&&"object"==typeof e}var eD=I?function(e){return I(e)}:function(e){return eA(e)&&eI(e.length)&&!!j[eb(e)]};function eM(e){return null!=e&&eI(e.length)&&!eL(e)?function(e,t){var n,r,i=eR(e),o=!i&&eT(e),s=!i&&!o&&eP(e),a=!i&&!o&&!s&&eD(e),l=i||o||s||a,c=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=c.length;for(var d in e){H.call(e,d)&&!(l&&("length"==d||s&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(n=d,(r=(r=u)??0x1fffffffffffff)&&("number"==typeof n||k.test(n))&&n>-1&&n%1==0&&n<r)))&&c.push(d)}return c}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||z))return ee(e);var t,n,r=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}e.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eA(t)||eA(n))?function(e,t,n,r,i,o){var d=eR(e),h=eR(t),m=d?a:e$(e),b=h?a:e$(t);m=m==s?g:m,b=b==s?g:b;var _=m==g,k=b==g,j=m==b;if(j&&eP(e)){if(!eP(t))return!1;d=!0,_=!1}if(j&&!_)return o||(o=new ey),d||eD(e)?eS(e,t,n,r,i,o):function(e,t,n,r,i,o,s){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!o(new X(e),new X(t)));case l:case c:case f:return eO(+e,+t);case u:return e.name==t.name&&e.message==t.message;case v:case x:return e==t+"";case p:var a=N;case y:var d=1&r;if(a||(a=A),e.size!=t.size&&!d)break;var h=s.get(e);if(h)return h==t;r|=2,s.set(e,t);var g=eS(a(e),a(t),r,i,o,s);return s.delete(e),g;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,m,n,r,i,o);if(!(1&n)){var E=_&&H.call(e,"__wrapped__"),$=k&&H.call(t,"__wrapped__");
831if(E||$){var C=E?e.value():e,O=$?t.value():t;return o||(o=new ey),i(C,O,n,r,o)}}return!!j&&(o||(o=new ey),function(e,t,n,r,i,o){var s=1&n,a=e_(e),l=a.length;if(l!=e_(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:H.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var f=e[u=a[c]],g=t[u];if(r)var m=s?r(g,f,u,t,e,o):r(f,g,u,e,t,o);if(!(void 0===m?f===g||i(f,g,n,r,o):m)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}}(sP,sP.exports)),sP.exports));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=d(n).apply(this,arguments),e&&("object"===u(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&p(n,e),t=[{key:"componentDidMount",value:function(){this.swipe=(0,s.default)(this.containerEl,this.props.swipeOptions)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.childCount,r=t.swipeOptions;e.childCount===n&&(0,l.default)(e.swipeOptions,r)||(this.swipe.kill(),this.swipe=(0,s.default)(this.containerEl,this.props.swipeOptions))}},{key:"componentWillUnmount",value:function(){this.swipe.kill(),this.swipe=void 0}},{key:"next",value:function(){this.swipe.next()}},{key:"prev",value:function(){this.swipe.prev()}},{key:"slide",value:function(){var e;(e=this.swipe).slide.apply(e,arguments)}},{key:"getPos",value:function(){return this.swipe.getPos()}},{key:"getNumSlides",value:function(){return this.swipe.getNumSlides()}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.className,o=t.style,s=t.children;return i.default.createElement("div",{id:n,ref:function(t){return e.containerEl=t},className:"react-swipe-container ".concat(r),style:o.container},i.default.createElement("div",{style:o.wrapper},i.default.Children.map(s,function(e){if(!e)return null;var t=e.props.style?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}({},o.child,e.props.style):o.child;return i.default.cloneElement(e,{style:t})})))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(i.Component);f(g,"propTypes",{swipeOptions:r.default.shape({startSlide:r.default.number,speed:r.default.number,auto:r.default.number,continuous:r.default.bool,disableScroll:r.default.bool,stopPropagation:r.default.bool,swiping:r.default.func,callback:r.default.func,transitionEnd:r.default.func}),style:r.default.shape({container:r.default.object,wrapper:r.default.object,child:r.default.object}),id:r.default.string,className:r.default.string,childCount:r.default.number}),f(g,"defaultProps",{swipeOptions:{},style:{container:{overflow:"hidden",visibility:"hidden",position:"relative"},wrapper:{overflow:"hidden",position:"relative"},child:{float:"left",width:"100%",position:"relative",transitionProperty:"transform"}},className:"",childCount:0}),t.default=g,e.exports=t.default}
831(sC,sC.exports)),sC.exports)),sI=iC(e=>a.createElement("svg",{width:29,height:52,viewBox:"0 0 29 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M25.98 0c.905 0 1.51.302 2.114.907 1.208 1.21 1.208 3.023 0 4.233L7.25 26l20.844 20.86c1.208 1.21 1.208 3.024 0 4.233-1.209 1.21-3.021 1.21-4.23 0L.907 28.116C.302 27.512 0 26.907 0 26s.302-1.512.906-2.116L23.865.907C24.469.302 25.073 0 25.979 0Z"}))),sN=({direction:e,color:t="currentColor",className:n})=>m.jsx(sA,{className:n,$iconColor:t,children:m.jsx(sD,{$direction:e})}),sA=tj.div` 832 width: 29px; 833 height: 52px; 834 color: ${({$iconColor:e})=>e}; 835 transition: color 0.2s ease-out; 836`,sD=tj(sI)` 837 width: 100%; 838 height: 100%; 839 transform: ${({$direction:e})=>`rotate(${180*("left"!==e)}deg)`}; 840`,sM="panmove",sz="pinchstart",sF=({isSpreadMode:e,isZoomed:t,isFirstLeaf:n,isLastLeaf:r,rtl:i,children:o,onTap:s,onDoubleTap:l,onPanMove:c})=>{let[u,d]=(0,a.useState)("default"),h=(0,a.useMemo)(()=>"rtl"===i,[i]),p=(0,a.useRef)(null),f=(0,a.useRef)(null),g=(0,a.useRef)(!1),v=(({onTap:e,onDoubleTap:t})=>{let n=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=(0,a.useRef)(!1),o=(0,a.useRef)(!1),s=(0,a.useRef)(null),l=(0,a.useCallback)(n=>{r.current?(r.current=!1,t(n),null!=s.current&&(clearTimeout(s.current),s.current=null)):(r.current=!0,s.current=setTimeout(()=>{r.current=!1,e(n)},250))},[e,t]),c=(0,a.useCallback)(e=>{if(i.current){i.current=!1;return}n.current={x:e.clientX,y:e.clientY}},[]),u=(0,a.useCallback)(e=>{let t={x:e.clientX,y:e.clientY};null==n.current||((e,t)=>Math.max(Math.abs(e.x-t.x),Math.abs(e.y-t.y)))(n.current,t)>=10||(l(t),n.current=null)},[l]),d=(0,a.useCallback)(e=>{if(i.current=!0,o.current=!1,1!==e.targetTouches.length)return;let t=e.targetTouches[0];n.current={x:t.clientX,y:t.clientY}},[]);return{onMouseDown:c,onMouseUp:u,onTouchStart:d,onTouchMove:(0,a.useCallback)(()=>{o.current=!0},[]),onTouchEnd:(0,a.useCallback)(e=>{e.stopPropagation(),null==n.current||o.current||(l(n.current),n.current=null)},[l])}})({onTap:s,onDoubleTap:l}),{elW:y,elX:x}=nG(p),b=(0,a.useCallback)(e=>(e.preventDefault(),!1),[]),w=(0,a.useCallback)(e=>{g.current=!e.isFinal,c(e)},[c]);return(0,a.useEffect)(()=>{t&&g.current?d("default"):x<.25*y?d(h?r?"default":"left":n?"default":"left"):x>.75*y?d(h?n?"default":"right":r?"default":"right"):d("default")},[y,x,h,n,r,t]),(0,a.useEffect)(()=>{null!=f.current&&f.current.get(sM).set({enable:t})},[t]),(0,a.useEffect)(()=>{null!=f.current&&(f.current.off(sM),f.current.on(sM,w))},[w]),(0,a.useEffect)(()=>{if(null!=p.current&&null==f.current){let e=new oT.Manager(p.current),t=[new oT.Pan({event:sM,enable:!1}),new oT.Pinch({event:sz})];e.add(t),e.on(sM,w),e.on(sz,b),f.current=e}return()=>{null!=f.current&&(f.current.destroy(),f.current=null)}},[]),m.jsxs(sV,{ref:p,"data-cursor-type":u,...v,children:[e&&m.jsx(sH,{direction:"left",$isDisabled:h?r:n}),o,e&&m.jsx(sU,{direction:"right",$isDisabled:h?n:r})]})},sB=tk` 841 position: absolute; 842 top: 50%; 843 color: ${({theme:e})=>e.colors.primary.default}; 844 opacity: 0.2; 845 transform: translateY(-50%); 846 transition: opacity 0.2s ease-out; 847 pointer-events: none; 848 z-index: -1; 849`,sH=tj(sN)` 850 ${sB} 851 852 display: ${({$isDisabled:e})=>e?"none":"block"}; 853 left: 25px; 854`,sU=tj(sN)` 855 ${sB} 856 857 display: ${({$isDisabled:e})=>e?"none":"block"}; 858 right: 25px; 859`,sV=tj.div` 860 width: 100%; 861 height: 100%; 862 cursor: auto; 863 864 &:hover { 865 &[data-cursor-type='right'] { 866 cursor: pointer; 867 868 & > ${sU} { 869 opacity: 1; 870 } 871 } 872 873 &[data-cursor-type='left'] { 874 cursor: pointer; 875 876 & > ${sH} { 877 opacity: 1; 878 } 879 } 880 } 881`;class sY{static getContext2D(e,t){let n=e.getContext("2d",t);return function(e,t){if(null==e)throw Error(t)}(n,"Canvas context is not found."),n}static setCanvasSize(e,t,n){e.width=t,e.height=n}static deleteCanvasSize(e){e.width=0,e.height=0}}let sW=({isSpreadMode:e,resource:t,zoomStatus:n,width:r,height:i,dpr:o,rtl:s})=>{let{canvases:l,isLoading:c,isError:u,loadResources:d}=(()=>{let[e,t]=(0,a.useState)([]),[n,r]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1),s=(0,a.useCallback)(async n=>{try{o(!1),r(!0);let i=await Promise.all(n.map(async(t,n)=>{let r=t.image;null==r&&(r=await o1(t.sourceUrl),t.setImage(r));let i=e[n]??document.createElement("canvas");return((e,t,n)=>
881{let r=sY.getContext2D(e),{naturalWidth:i,naturalHeight:o}=t;sY.setCanvasSize(e,i,o),r.clearRect(0,0,i,o),null==n?r.drawImage(t,0,0,e.width,e.height):((e,t,n)=>{let[r,i,...o]=(e=>{let t=atob(e),n=[];for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n})(n),{naturalWidth:s,naturalHeight:a}=e,l=r*i,c=Math.floor((s-s%8)/r),u=Math.floor((a-a%8)/i);if(l!==o.length)throw Error("drmHash is invalid.");t.drawImage(e,0,0,s,a);for(let n=0;n<l;n+=1){let i=o[n],s=i%r,a=Math.floor(i/r),l=n%r,d=Math.floor(n/r);t.drawImage(e,s*c,a*u,c,u,l*c,d*u,c,u)}})(t,r,n)})(i,r,t.drmHash),i}));t(i)}catch(e){console.error(e),o(!0)}finally{r(!1)}},[e]);return(0,a.useEffect)(()=>()=>{e.forEach(e=>{sY.deleteCanvasSize(e)})},[]),{canvases:e,isLoading:n,isError:i,loadResources:s}})(),h=(0,a.useRef)(null),p=(0,a.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),f=(0,a.useCallback)(async()=>{await d(t)},[t,d]);return(0,a.useEffect)(()=>{null!=h.current&&(a=>{let c=sY.getContext2D(a);c.clearRect(0,0,a.width,a.height),l.forEach((a,l,{length:u})=>{let{width:d,height:h}=a,{formattedWidth:p,formattedHeight:f}=((e,t,n,r,i,o)=>{let s=t/(e?2:1),a=Math.ceil(i/r*s);return a>n&&(a=n,s=Math.ceil(r/i*n)),{formattedWidth:s*=o,formattedHeight:a*=o}})(e,r,i,d,h,n.isZoomed?1.5:1),{x:g,y:m}=((e,t,n,r,i,o,s,a,l,c,u)=>{let d=(n-i)/2;e&&(1===a?d+=("rtl"===u?-1:1)*(1===t?1:-1)*(i/2):2===a&&(d+=i/2*(0===s?1:-1)));let h=(r-o)/2;return l.isZoomed&&(d+=n/c/2-l.center.x+l.delta.x,h+=r/c/2-l.center.y+l.delta.y),{x:d,y:h}})(e,t[0].page,r,i,p,f,l,u,n,o,s);c.drawImage(a,0,0,d,h,g,m,p,f)})})(h.current)},[l,e,t,n,r,i,o,s]),(0,a.useEffect)(()=>{d(t)},[t]),m.jsxs(m.Fragment,{children:[u&&m.jsx(sX,{children:m.jsx(su,{type:"unexpected",onRequestRetry:f})}),c&&m.jsx(sX,{children:m.jsx(oj,{})}),m.jsx(sq,{ref:h,width:r,height:i,onContextMenu:p})]})},sq=tj.canvas` 882 max-width: 100%; 883 max-height: 100%; 884 user-select: none; 885`,sX=tj.div` 886 position: absolute; 887 top: 0; 888 left: 0; 889 width: 100%; 890 height: 100%; 891 display: flex; 892 align-items: center; 893 justify-content: center; 894 background-color: ${({theme:e})=>e.colors.background.app}; 895 z-index: 1000; 896`,sG={isZoomed:!1,center:{x:0,y:0},delta:{x:0,y:0},prevDelta:{x:0,y:0}},sK={container:{width:"100%",height:"100%",overflow:"hidden",visibility:"hidden"},wrapper:{height:"100%",overflow:"hidden"},child:{float:"left",position:"relative",height:"100%",transitionProperty:"transform"}},sJ=({isDisabledSwipe:e=!1,rtl:t,renderContentLeaf:n,onRequestMovePrevEpisode:r,onRequestMoveNextEpisode:i,onRequestCloseAppBar:o,onRequestToggleAppBar:s})=>{let{leaves:l,currentLeafIndex:c,changePage:u}=oH(),{isSpreadMode:d,width:h,height:p,dpr:f}=n1(),[g,v]=(0,a.useState)(sG),[y,x]=(0,a.useState)(1),b=(0,a.useMemo)(()=>h*f,[h,f]),w=(0,a.useMemo)(()=>p*f,[p,f]),S=(0,a.useMemo)(()=>({speed:300,startSlide:y,disableScroll:e||g.isZoomed,continuous:!0}),[e,g]),_=(0,a.useMemo)(()=>c===("rtl"===t?0:l.length-1),[l,c,t]),k=(0,a.useMemo)(()=>c===("rtl"===t?l.length-1:0),[l,c,t]),j=(0,a.useMemo)(()=>{let e=[],t=(e=>e+1<3?e+1:0)(y),n=(e=>e-1>=0?e-1:2)(y);return e[t]=l[c-1],e[y]=l[c],e[n]=l[c+1],e},[l,c]),E=(0,a.useRef)(null),$=(0,a.useRef)(1),C=(0,a.useCallback)((e,r)=>{switch(e.type){case"image":return m.jsx(sW,{isSpreadMode:d,resource:e.resource,zoomStatus:y===r?g:sG,width:b,height:w,dpr:f,rtl:t});case"content":return n(e,t);default:return rb(e)}},[y,f,b,w,g,d,n,t]),O=(0,a.useCallback)(({x:t})=>{if(!e){if(iI.isStoppingPropagationEvent)return void iI.togglePropagationEvent(!1);null!=E.current&&(t<.25*h?E.current.prev():t>.75*h?E.current.next():s())}},[h,s,e]),T=(0,a.useCallback)(e=>{j[y]?.type!=="content"&&(v(t=>({...sG,center:e,isZoomed:!t.isZoomed})),o())},[o,j,y]),R=(0,a.useCallback)(e=>{v(t=>{let{center:n,prevDelta:r}=t,i={x:sv(r.x+1.5*e.deltaX,n.x-h,n.x),y:sv(r.y+1.5*e.deltaY,n.y-p,n.y)};return{...t,delta:i,prevDelta:e.isFinal?i:r}})},[h,p]),P=(0,a.useCallback)(e=>{x(e),o()},[]);return nW(({key:e})=>"Left"===e||"ArrowLeft"===e,()=>{null!=E.current&&E.current.prev()}),nW(({key:e})=>"Right"===e||"ArrowRight"===e,()=>{null!=E.current&&E.current.next()}),(0,a.useEffect)(()=>{g.isZoomed&&v(sG)},[c]),(0,a.useEffect)(()=>{let e=j[y];null!=e?(u(e.resource[0].page),$.current=y):null!=E.current&&(E.current.slide($.current,0),_?r():k&&i())},[y]),m.jsx(sF,{isSpreadMode:d,isZoomed:g.isZoomed,isFirstLeaf:_,isLastLeaf:k,rtl:t,onTap:O,onDoubleTap:T,onPanMove:R,children:m.jsx(sL,{swipeOptions:{...S,callback:P},style:sK,childCount:3,ref:E,children:j.map((e,t)=>m.jsx("div",{children:null==e?m.jsx(sZ,{"aria-hidden":"true"}):C(e,t)},t))})})},sZ=tj.div` 897 visibility: hidden; 898 width: 1px; 899 height: 1px; 900`,sQ=({children:e,isOpened:t,onRequestClose:n})=>m.jsxs(s0,{$isOpened:t,children:[m.jsx(s1,{"aria-hidden":"true",onClick:n}),m.jsx(s2,{children:e})]}),s0=tj.div` 901 display: ${({$isOpened:e})=>e?"flex":"none"}; 902 position: absolute; 903 align-items: center; 904 justify-content: center; 905 inset: 0; 906 width: 100%; 907 height: 100%; 908 z-index: 100000; 909`,s1=tj.div` 910 position: absolute; 911 top: 0; 912 left: 0; 913 width: 100%; 914 height: 100%; 915 background-color: rgb(0 0 0 / 60%); 916 z-index: -1; 917`,s2=tj.div` 918 position: relative; 919 display: flex; 920 align-items: center; 921 justify-content: center; 922 width: calc(100% - 64px); 923 max-width: 400px; 924 padding: 12px; 925 border-radius: 20px; 926 background-color: #fff; 927 box-shadow: 0 0 15px rgb(0 0 0 / 30%); 928`,s3=({isOpened:e,linkUrl:t,onRequestClose:n})=>{let{t:r}=rw();return m.jsx(sQ,{isOpened:e,onRequestClose:n,children:m.jsx(s5,{href:t,children:m.jsx(s4,{children:r("move_prev_episode_dialog.button_text")})})})},s5=tj.a` 929 width: inherit; 930 margin: 24px 12px; 931`,s4=tj(iP)` 932 width: 100%; 933 height: 44px; 934 border-radius: 25px; 935 color: #fff; 936 font-size: 14px; 937 font-weight: 600; 938 transition: background-color 0.2s ease-out; 939 background-color: ${({theme:e})=>e.colors.secondary.default}; 940 941 &:hover { 942 background-color: ${({theme:e})=>e.colors.secondary.dark}; 943 } 944`,s8=({...e})=>{let{endReading:t}=rT(),{episodePath:n}=nP(),r=(()=>{let[e,t]=(0,a.useState)(!1);return{isOpened:e,open:(0,a.useCallback)(()=>{t(!0)},[]),close:(0,a.useCallback)(()=>{t(!1)},[])}})(),i=(0,a.useCallback)(()=>{null!=t.previous_episode&&(r.isOpened&&window.location.assign(`${n}/${t.previous_episode.id}`),r.open())},[t,r,n]),o=(0,a.useCallback)(()=>{null!=t.next_episode&&window.location.assign(`${n}/${t.next_episode.id}`)},[t,n]);return m.jsxs(m.Fragment,{children:[m.jsx(sJ,{onRequestMovePrevEpisode:i,onRequestMoveNextEpisode:o,...e}),null!=t.previous_episode&&r.isOpened&&m.jsx(s3,{isOpened:r.isOpened,linkUrl:`${n}/${t.previous_episode.id}`,onRequestClose:r.close})]})},s6=()=>window.location.reload(),s9=({beginReading:e,leaves:t,isDisabledSwipe:n,renderContentLeaf:r})=>{let{fetchEndReading:i,onChangePage:o}=nP(),{data:s,error:l,mutate:u}=(0,c.A)(["endReading",e.episode_id],([,e])=>i(e),{revalidateOnMount:!1}),d=(()=>{let[e,t]=(0,a.useReducer)(nM,!0);return{isDisabled:e,close:(0,a.useCallback)(()=>{t(!0)},[]),toggle:t}})();return(0,a.useEffect)(()=>{u()},[i]),null!=l?m.jsx(su,{type:"fetchFailed",onRequestRetry:u}):null==s||null==t?m.jsx(s7,{children:m.jsx(oj,{})}):m.jsx(o_,{children:i=>i?m.jsx(su,{type:"unexpected",onRequestRetry:s6}):m.jsxs(rR,{beginReading:e,endReading:s,children:[m.jsx(si,{beginReading:e,isDisabled:d.isDisabled}),m.jsxs(oU,{leaves:t,rtl:e.page_direction,onChangePage:o,children:[m.jsx(s8,{isDisabledSwipe:n,rtl:e.page_direction,renderContentLeaf:r,onRequestCloseAppBar:d.close,onRequestToggleAppBar:d.toggle}),m.jsx(oV,{rtl:e.page_direction,isDisabled:d.isDisabled})]})]})})},s7=tj.div` 945 width: 100%; 946 height: 100%; 947 display: flex; 948 align-items: center; 949 justify-content: center; 950`,ae=({beginReading:e,books:t,isSubscribed:n})=>
950{let{isSpreadMode:r}=n1(),{locale:i}=nP(),o=function(e,t){let{delay:n,unstable_promiseStatus:r=!a.use}={},i=rd(),[[o,s,l],c]=(0,a.useReducer)(t=>{let n=i.get(e);return Object.is(t[0],n)&&t[1]===i&&t[2]===e?t:[n,i,e]},void 0,()=>[i.get(e),i,e]),u=o;if((s!==i||l!==e)&&(c(),u=i.get(e)),(0,a.useEffect)(()=>{let t=i.sub(e,()=>{if(r)try{let t=i.get(e);rh(t)&&rp(rm(t,()=>i.get(e)))}catch{}if("number"==typeof n)return void setTimeout(c,n);c()});return c(),t},[i,e,n,r]),(0,a.useDebugValue)(u),rh(u)){let t=rm(u,()=>i.get(e));return r&&rp(t),rf(t)}return u}(oa),s=(0,a.useMemo)(()=>null!=t?((e,t,n)=>{let{rtl:r,locale:i,isSpreadMode:o,isSubscribed:s}=n,a=[];return a.push(...((e,t)=>{let{rtl:n,isFirstViewSpread:r,isSpreadMode:i}=t,o="rtl"===n;return e.reduce((e,t,n)=>{let s=new oS(t,n+1);if(i&&n>0&&(e=>r?e%2!=0:e%2==0)(n)){let{resource:t}=e[e.length-1];o?t.push(s):t.unshift(s)}else e.push(ow("image",s));return e},[])})(e,n),...((e,t,n)=>{let r,{isSpreadMode:i,isSubscribed:o,locale:s}=n;return(r=e.length,e=>{let t=r;return e.map(e=>ow("content",...e.map(e=>(t+=1,Array.isArray(e)?new ob(t,e):new ox(e,t)))))})(o?t.length>0?i?[["good_details",t],["episode_details"]]:[["good_details"],[t],["episode_details"]]:[["good_details"],["episode_details"]]:t.length>0?i?[["ads","good_details"],[t,"episode_details"]]:"ja"!==s?[["ads"],["good_details"],[t],["episode_details"]]:[["good_details"],[t],["episode_details"]]:i?[["ads","good_details"],["episode_details"]]:"ja"!==s?[["ads"],["good_details"],["episode_details"]]:[["good_details"],["episode_details"]])})(e,t,{isSpreadMode:o,isSubscribed:s,locale:i})),"rtl"===r?a:a.reverse()})(e.pages,t,{isSpreadMode:r,isSubscribed:n,locale:i,rtl:e.page_direction,isFirstViewSpread:e.is_first_view_spread}):void 0,[e,t,r,n,i]);return m.jsx(om,{children:m.jsx(s9,{isDisabledSwipe:o,beginReading:e,leaves:s,renderContentLeaf:(e=>(t,n)=>{let{resource:r}=t;return 1===r.length?m.jsx(of,{isSubscribed:e,resource:r[0]}):m.jsx(rv,{resource:r,rtl:n,renderResource:t=>m.jsx(of,{isSubscribed:e,resource:t})})})(n)})})},at=({config:e,...t})=>{(0,a.useEffect)(()=>(document.body.oncontextmenu=()=>!1,()=>{document.body.oncontextmenu=()=>!0}),[]);let n=(0,a.useMemo)(()=>({...y,...e}),[e]);return m.jsx(n2,{children:m.jsxs(nC,{children:[m.jsx(tC,{}),m.jsx(n$,{children:m.jsx(nL,{...n,children:m.jsx(ae,{...t})})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.