forked from kyroslee/chuni_intl_viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.min.js
6 lines (6 loc) · 52.4 KB
/
main.min.js
1
2
3
4
5
6
(()=>{var Wt=Object.defineProperty,Yt=Object.defineProperties;var Jt=Object.getOwnPropertyDescriptors;var st=Object.getOwnPropertySymbols;var Qt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable;var ot=(ae,U,ie)=>U in ae?Wt(ae,U,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ae[U]=ie,ft=(ae,U)=>{for(var ie in U||(U={}))Qt.call(U,ie)&&ot(ae,ie,U[ie]);if(st)for(var ie of st(U))Zt.call(U,ie)&&ot(ae,ie,U[ie]);return ae},at=(ae,U)=>Yt(ae,Jt(U));(function(){"use strict";var ae="";function U(){}function ie(i){return i()}function Ve(){return Object.create(null)}function ve(i){i.forEach(ie)}function ut(i){return typeof i=="function"}function Ee(i,n){return i!=i?n==n:i!==n||i&&typeof i=="object"||typeof i=="function"}function ct(i){return Object.keys(i).length===0}function N(i,n){i.appendChild(n)}function K(i,n,s){i.insertBefore(n,s||null)}function Q(i){i.parentNode.removeChild(i)}function Xe(i,n){for(let s=0;s<i.length;s+=1)i[s]&&i[s].d(n)}function S(i){return document.createElement(i)}function oe(i){return document.createTextNode(i)}function Y(){return oe(" ")}function Te(i,n,s,m){return i.addEventListener(n,s,m),()=>i.removeEventListener(n,s,m)}function A(i,n,s){s==null?i.removeAttribute(n):i.getAttribute(n)!==s&&i.setAttribute(n,s)}function dt(i){return Array.from(i.childNodes)}function ge(i,n){n=""+n,i.wholeText!==n&&(i.data=n)}let We;function Me(i){We=i}function ht(i,n){const s=i.$$.callbacks[n.type];s&&s.slice().forEach(m=>m.call(this,n))}const Oe=[],Ye=[],Se=[],Je=[],gt=Promise.resolve();let Le=!1;function mt(){Le||(Le=!0,gt.then(Qe))}function Ie(i){Se.push(i)}let Ge=!1;const Pe=new Set;function Qe(){if(!Ge){Ge=!0;do{for(let i=0;i<Oe.length;i+=1){const n=Oe[i];Me(n),pt(n.$$)}for(Me(null),Oe.length=0;Ye.length;)Ye.pop()();for(let i=0;i<Se.length;i+=1){const n=Se[i];Pe.has(n)||(Pe.add(n),n())}Se.length=0}while(Oe.length);for(;Je.length;)Je.pop()();Le=!1,Ge=!1,Pe.clear()}}function pt(i){if(i.fragment!==null){i.update(),ve(i.before_update);const n=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,n),i.after_update.forEach(Ie)}}const $e=new Set;let we;function wt(){we={r:0,c:[],p:we}}function yt(){we.r||ve(we.c),we=we.p}function de(i,n){i&&i.i&&($e.delete(i),i.i(n))}function me(i,n,s,m){if(i&&i.o){if($e.has(i))return;$e.add(i),we.c.push(()=>{$e.delete(i),m&&(s&&i.d(1),m())}),i.o(n)}}function xe(i){i&&i.c()}function ye(i,n,s,m){const{fragment:a,on_mount:y,on_destroy:_,after_update:v}=i.$$;a&&a.m(n,s),m||Ie(()=>{const k=y.map(ie).filter(ut);_?_.push(...k):ve(k),i.$$.on_mount=[]}),v.forEach(Ie)}function _e(i,n){const s=i.$$;s.fragment!==null&&(ve(s.on_destroy),s.fragment&&s.fragment.d(n),s.on_destroy=s.fragment=null,s.ctx=[])}function _t(i,n){i.$$.dirty[0]===-1&&(Oe.push(i),mt(),i.$$.dirty.fill(0)),i.$$.dirty[n/31|0]|=1<<n%31}function Ne(i,n,s,m,a,y,_,v=[-1]){const k=We;Me(i);const x=i.$$={fragment:null,ctx:null,props:y,update:U,not_equal:a,bound:Ve(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(k?k.$$.context:[])),callbacks:Ve(),dirty:v,skip_bound:!1,root:n.target||k.$$.root};_&&_(x.root);let $=!1;if(x.ctx=s?s(i,n.props||{},(B,P,...R)=>{const G=R.length?R[0]:P;return x.ctx&&a(x.ctx[B],x.ctx[B]=G)&&(!x.skip_bound&&x.bound[B]&&x.bound[B](G),$&&_t(i,B)),P}):[],x.update(),$=!0,ve(x.before_update),x.fragment=m?m(x.ctx):!1,n.target){if(n.hydrate){const B=dt(n.target);x.fragment&&x.fragment.l(B),B.forEach(Q)}else x.fragment&&x.fragment.c();n.intro&&de(i.$$.fragment),ye(i,n.target,n.anchor,n.customElement),Qe()}Me(k)}class Be{$destroy(){_e(this,1),this.$destroy=U}$on(n,s){const m=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return m.push(s),()=>{const a=m.indexOf(s);a!==-1&&m.splice(a,1)}}$set(n){this.$$set&&!ct(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var vt=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,qe=Math.ceil,ue=Math.floor,ne="[BigNumber Error] ",Ze=ne+"Number primitive has more than 15 significant digits: ",fe=1e14,T=14,Fe=9007199254740991,Ue=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],pe=1e7,J=1e9;function Ke(i){var n,s,m,a=p.prototype={constructor:p,toString:null,valueOf:null},y=new p(1),_=20,v=4,k=-7,x=21,$=-1e7,B=1e7,P=!1,R=1,G=0,M={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz";function p(e,t){var r,u,o,c,g,l,f,h,d=this;if(!(d instanceof p))return new p(e,t);if(t==null){if(e&&e._isBigNumber===!0){d.s=e.s,!e.c||e.e>B?d.c=d.e=null:e.e<$?d.c=[d.e=0]:(d.e=e.e,d.c=e.c.slice());return}if((l=typeof e=="number")&&e*0==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,g=e;g>=10;g/=10,c++);c>B?d.c=d.e=null:(d.e=c,d.c=[e]);return}h=String(e)}else{if(!vt.test(h=String(e)))return m(d,h,l);d.s=h.charCodeAt(0)==45?(h=h.slice(1),-1):1}(c=h.indexOf("."))>-1&&(h=h.replace(".","")),(g=h.search(/e/i))>0?(c<0&&(c=g),c+=+h.slice(g+1),h=h.substring(0,g)):c<0&&(c=h.length)}else{if(z(t,2,L.length,"Base"),t==10)return d=new p(e),b(d,_+d.e+1,v);if(h=String(e),l=typeof e=="number"){if(e*0!=0)return m(d,h,l,t);if(d.s=1/e<0?(h=h.slice(1),-1):1,p.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(Ze+e)}else d.s=h.charCodeAt(0)===45?(h=h.slice(1),-1):1;for(r=L.slice(0,t),c=g=0,f=h.length;g<f;g++)if(r.indexOf(u=h.charAt(g))<0){if(u=="."){if(g>c){c=f;continue}}else if(!o&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){o=!0,g=-1,c=0;continue}return m(d,String(e),l,t)}l=!1,h=s(h,t,10,d.s),(c=h.indexOf("."))>-1?h=h.replace(".",""):c=h.length}for(g=0;h.charCodeAt(g)===48;g++);for(f=h.length;h.charCodeAt(--f)===48;);if(h=h.slice(g,++f)){if(f-=g,l&&p.DEBUG&&f>15&&(e>Fe||e!==ue(e)))throw Error(Ze+d.s*e);if((c=c-g-1)>B)d.c=d.e=null;else if(c<$)d.c=[d.e=0];else{if(d.e=c,d.c=[],g=(c+1)%T,c<0&&(g+=T),g<f){for(g&&d.c.push(+h.slice(0,g)),f-=T;g<f;)d.c.push(+h.slice(g,g+=T));g=T-(h=h.slice(g)).length}else g-=f;for(;g--;h+="0");d.c.push(+h)}}else d.c=[d.e=0]}p.clone=Ke,p.ROUND_UP=0,p.ROUND_DOWN=1,p.ROUND_CEIL=2,p.ROUND_FLOOR=3,p.ROUND_HALF_UP=4,p.ROUND_HALF_DOWN=5,p.ROUND_HALF_EVEN=6,p.ROUND_HALF_CEIL=7,p.ROUND_HALF_FLOOR=8,p.EUCLID=9,p.config=p.set=function(e){var t,r;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(r=e[t],z(r,0,J,t),_=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(r=e[t],z(r,0,8,t),v=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(r=e[t],r&&r.pop?(z(r[0],-J,0,t),z(r[1],0,J,t),k=r[0],x=r[1]):(z(r,-J,J,t),k=-(x=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if(r=e[t],r&&r.pop)z(r[0],-J,-1,t),z(r[1],1,J,t),$=r[0],B=r[1];else if(z(r,-J,J,t),r)$=-(B=r<0?-r:r);else throw Error(ne+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(r=e[t],r===!!r)if(r)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=r;else throw P=!r,Error(ne+"crypto unavailable");else P=r;else throw Error(ne+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(r=e[t],z(r,0,9,t),R=r),e.hasOwnProperty(t="POW_PRECISION")&&(r=e[t],z(r,0,J,t),G=r),e.hasOwnProperty(t="FORMAT"))if(r=e[t],typeof r=="object")M=r;else throw Error(ne+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET"))if(r=e[t],typeof r=="string"&&!/^.$|[+-.\s]|(.).*\1/.test(r))L=r;else throw Error(ne+t+" invalid: "+r)}else throw Error(ne+"Object expected: "+e);return{DECIMAL_PLACES:_,ROUNDING_MODE:v,EXPONENTIAL_AT:[k,x],RANGE:[$,B],CRYPTO:P,MODULO_MODE:R,POW_PRECISION:G,FORMAT:M,ALPHABET:L}},p.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!p.DEBUG)return!0;var t,r,u=e.c,o=e.e,c=e.s;e:if({}.toString.call(u)=="[object Array]"){if((c===1||c===-1)&&o>=-J&&o<=J&&o===ue(o)){if(u[0]===0){if(o===0&&u.length===1)return!0;break e}if(t=(o+1)%T,t<1&&(t+=T),String(u[0]).length==t){for(t=0;t<u.length;t++)if(r=u[t],r<0||r>=fe||r!==ue(r))break e;if(r!==0)return!0}}}else if(u===null&&o===null&&(c===null||c===1||c===-1))return!0;throw Error(ne+"Invalid BigNumber: "+e)},p.maximum=p.max=function(){return Z(arguments,a.lt)},p.minimum=p.min=function(){return Z(arguments,a.gt)},p.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return ue(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(r){var u,o,c,g,l,f=0,h=[],d=new p(y);if(r==null?r=_:z(r,0,J),g=qe(r/T),P)if(crypto.getRandomValues){for(u=crypto.getRandomValues(new Uint32Array(g*=2));f<g;)l=u[f]*131072+(u[f+1]>>>11),l>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),u[f]=o[0],u[f+1]=o[1]):(h.push(l%1e14),f+=2);f=g/2}else if(crypto.randomBytes){for(u=crypto.randomBytes(g*=7);f<g;)l=(u[f]&31)*281474976710656+u[f+1]*1099511627776+u[f+2]*4294967296+u[f+3]*16777216+(u[f+4]<<16)+(u[f+5]<<8)+u[f+6],l>=9e15?crypto.randomBytes(7).copy(u,f):(h.push(l%1e14),f+=7);f=g/7}else throw P=!1,Error(ne+"crypto unavailable");if(!P)for(;f<g;)l=t(),l<9e15&&(h[f++]=l%1e14);for(g=h[--f],r%=T,g&&r&&(l=Ue[T-r],h[f]=ue(g/l)*l);h[f]===0;h.pop(),f--);if(f<0)h=[c=0];else{for(c=-1;h[0]===0;h.splice(0,1),c-=T);for(f=1,l=h[0];l>=10;l/=10,f++);f<T&&(c-=T-f)}return d.e=c,d.c=h,d}}(),p.sum=function(){for(var e=1,t=arguments,r=new p(t[0]);e<t.length;)r=r.plus(t[e++]);return r},s=function(){var e="0123456789";function t(r,u,o,c){for(var g,l=[0],f,h=0,d=r.length;h<d;){for(f=l.length;f--;l[f]*=u);for(l[0]+=c.indexOf(r.charAt(h++)),g=0;g<l.length;g++)l[g]>o-1&&(l[g+1]==null&&(l[g+1]=0),l[g+1]+=l[g]/o|0,l[g]%=o)}return l.reverse()}return function(r,u,o,c,g){var l,f,h,d,w,E,O,I,V=r.indexOf("."),W=_,C=v;for(V>=0&&(d=G,G=0,r=r.replace(".",""),I=new p(u),E=I.pow(r.length-V),G=d,I.c=t(he(le(E.c),E.e,"0"),10,o,e),I.e=I.c.length),O=t(r,u,o,g?(l=L,e):(l=e,L)),h=d=O.length;O[--d]==0;O.pop());if(!O[0])return l.charAt(0);if(V<0?--h:(E.c=O,E.e=h,E.s=c,E=n(E,I,W,C,o),O=E.c,w=E.r,h=E.e),f=h+W+1,V=O[f],d=o/2,w=w||f<0||O[f+1]!=null,w=C<4?(V!=null||w)&&(C==0||C==(E.s<0?3:2)):V>d||V==d&&(C==4||w||C==6&&O[f-1]&1||C==(E.s<0?8:7)),f<1||!O[0])r=w?he(l.charAt(1),-W,l.charAt(0)):l.charAt(0);else{if(O.length=f,w)for(--o;++O[--f]>o;)O[f]=0,f||(++h,O=[1].concat(O));for(d=O.length;!O[--d];);for(V=0,r="";V<=d;r+=l.charAt(O[V++]));r=he(r,h,l.charAt(0))}return r}}(),n=function(){function e(u,o,c){var g,l,f,h,d=0,w=u.length,E=o%pe,O=o/pe|0;for(u=u.slice();w--;)f=u[w]%pe,h=u[w]/pe|0,g=O*f+h*E,l=E*f+g%pe*pe+d,d=(l/c|0)+(g/pe|0)+O*h,u[w]=l%c;return d&&(u=[d].concat(u)),u}function t(u,o,c,g){var l,f;if(c!=g)f=c>g?1:-1;else for(l=f=0;l<c;l++)if(u[l]!=o[l]){f=u[l]>o[l]?1:-1;break}return f}function r(u,o,c,g){for(var l=0;c--;)u[c]-=l,l=u[c]<o[c]?1:0,u[c]=l*g+u[c]-o[c];for(;!u[0]&&u.length>1;u.splice(0,1));}return function(u,o,c,g,l){var f,h,d,w,E,O,I,V,W,C,F,ee,Ce,He,ze,ce,Ae,se=u.s==o.s?1:-1,te=u.c,X=o.c;if(!te||!te[0]||!X||!X[0])return new p(!u.s||!o.s||(te?X&&te[0]==X[0]:!X)?NaN:te&&te[0]==0||!X?se*0:se/0);for(V=new p(se),W=V.c=[],h=u.e-o.e,se=c+h+1,l||(l=fe,h=re(u.e/T)-re(o.e/T),se=se/T|0),d=0;X[d]==(te[d]||0);d++);if(X[d]>(te[d]||0)&&h--,se<0)W.push(1),w=!0;else{for(He=te.length,ce=X.length,d=0,se+=2,E=ue(l/(X[0]+1)),E>1&&(X=e(X,E,l),te=e(te,E,l),ce=X.length,He=te.length),Ce=ce,C=te.slice(0,ce),F=C.length;F<ce;C[F++]=0);Ae=X.slice(),Ae=[0].concat(Ae),ze=X[0],X[1]>=l/2&&ze++;do{if(E=0,f=t(X,C,ce,F),f<0){if(ee=C[0],ce!=F&&(ee=ee*l+(C[1]||0)),E=ue(ee/ze),E>1)for(E>=l&&(E=l-1),O=e(X,E,l),I=O.length,F=C.length;t(O,C,I,F)==1;)E--,r(O,ce<I?Ae:X,I,l),I=O.length,f=1;else E==0&&(f=E=1),O=X.slice(),I=O.length;if(I<F&&(O=[0].concat(O)),r(C,O,F,l),F=C.length,f==-1)for(;t(X,C,ce,F)<1;)E++,r(C,ce<F?Ae:X,F,l),F=C.length}else f===0&&(E++,C=[0]);W[d++]=E,C[0]?C[F++]=te[Ce]||0:(C=[te[Ce]],F=1)}while((Ce++<He||C[0]!=null)&&se--);w=C[0]!=null,W[0]||W.splice(0,1)}if(l==fe){for(d=1,se=W[0];se>=10;se/=10,d++);b(V,c+(V.e=d+h*T-1)+1,g,w)}else V.e=h,V.r=+w;return V}}();function D(e,t,r,u){var o,c,g,l,f;if(r==null?r=v:z(r,0,8),!e.c)return e.toString();if(o=e.c[0],g=e.e,t==null)f=le(e.c),f=u==1||u==2&&(g<=k||g>=x)?De(f,g):he(f,g,"0");else if(e=b(new p(e),t,r),c=e.e,f=le(e.c),l=f.length,u==1||u==2&&(t<=c||c<=k)){for(;l<t;f+="0",l++);f=De(f,c)}else if(t-=g,f=he(f,c,"0"),c+1>l){if(--t>0)for(f+=".";t--;f+="0");}else if(t+=c-l,t>0)for(c+1==l&&(f+=".");t--;f+="0");return e.s<0&&o?"-"+f:f}function Z(e,t){for(var r,u=1,o=new p(e[0]);u<e.length;u++)if(r=new p(e[u]),r.s)t.call(o,r)&&(o=r);else{o=r;break}return o}function H(e,t,r){for(var u=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,u++);return(r=u+r*T-1)>B?e.c=e.e=null:r<$?e.c=[e.e=0]:(e.e=r,e.c=t),e}m=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,u=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(c,g,l,f){var h,d=l?g:g.replace(o,"");if(u.test(d))c.s=isNaN(d)?null:d<0?-1:1;else{if(!l&&(d=d.replace(e,function(w,E,O){return h=(O=O.toLowerCase())=="x"?16:O=="b"?2:8,!f||f==h?E:w}),f&&(h=f,d=d.replace(t,"$1").replace(r,"0.$1")),g!=d))return new p(d,h);if(p.DEBUG)throw Error(ne+"Not a"+(f?" base "+f:"")+" number: "+g);c.s=null}c.c=c.e=null}}();function b(e,t,r,u){var o,c,g,l,f,h,d,w=e.c,E=Ue;if(w){e:{for(o=1,l=w[0];l>=10;l/=10,o++);if(c=t-o,c<0)c+=T,g=t,f=w[h=0],d=f/E[o-g-1]%10|0;else if(h=qe((c+1)/T),h>=w.length)if(u){for(;w.length<=h;w.push(0));f=d=0,o=1,c%=T,g=c-T+1}else break e;else{for(f=l=w[h],o=1;l>=10;l/=10,o++);c%=T,g=c-T+o,d=g<0?0:f/E[o-g-1]%10|0}if(u=u||t<0||w[h+1]!=null||(g<0?f:f%E[o-g-1]),u=r<4?(d||u)&&(r==0||r==(e.s<0?3:2)):d>5||d==5&&(r==4||u||r==6&&(c>0?g>0?f/E[o-g]:0:w[h-1])%10&1||r==(e.s<0?8:7)),t<1||!w[0])return w.length=0,u?(t-=e.e+1,w[0]=E[(T-t%T)%T],e.e=-t||0):w[0]=e.e=0,e;if(c==0?(w.length=h,l=1,h--):(w.length=h+1,l=E[T-c],w[h]=g>0?ue(f/E[o-g]%E[g])*l:0),u)for(;;)if(h==0){for(c=1,g=w[0];g>=10;g/=10,c++);for(g=w[0]+=l,l=1;g>=10;g/=10,l++);c!=l&&(e.e++,w[0]==fe&&(w[0]=1));break}else{if(w[h]+=l,w[h]!=fe)break;w[h--]=0,l=1}for(c=w.length;w[--c]===0;w.pop());}e.e>B?e.c=e.e=null:e.e<$&&(e.c=[e.e=0])}return e}function q(e){var t,r=e.e;return r===null?e.toString():(t=le(e.c),t=r<=k||r>=x?De(t,r):he(t,r,"0"),e.s<0?"-"+t:t)}return a.absoluteValue=a.abs=function(){var e=new p(this);return e.s<0&&(e.s=1),e},a.comparedTo=function(e,t){return ke(this,new p(e,t))},a.decimalPlaces=a.dp=function(e,t){var r,u,o,c=this;if(e!=null)return z(e,0,J),t==null?t=v:z(t,0,8),b(new p(c),e+c.e+1,t);if(!(r=c.c))return null;if(u=((o=r.length-1)-re(this.e/T))*T,o=r[o])for(;o%10==0;o/=10,u--);return u<0&&(u=0),u},a.dividedBy=a.div=function(e,t){return n(this,new p(e,t),_,v)},a.dividedToIntegerBy=a.idiv=function(e,t){return n(this,new p(e,t),0,1)},a.exponentiatedBy=a.pow=function(e,t){var r,u,o,c,g,l,f,h,d,w=this;if(e=new p(e),e.c&&!e.isInteger())throw Error(ne+"Exponent not an integer: "+q(e));if(t!=null&&(t=new p(t)),l=e.e>14,!w.c||!w.c[0]||w.c[0]==1&&!w.e&&w.c.length==1||!e.c||!e.c[0])return d=new p(Math.pow(+q(w),l?2-Re(e):+q(e))),t?d.mod(t):d;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new p(NaN);u=!f&&w.isInteger()&&t.isInteger(),u&&(w=w.mod(t))}else{if(e.e>9&&(w.e>0||w.e<-1||(w.e==0?w.c[0]>1||l&&w.c[1]>=24e7:w.c[0]<8e13||l&&w.c[0]<=9999975e7)))return c=w.s<0&&Re(e)?-0:0,w.e>-1&&(c=1/c),new p(f?1/c:c);G&&(c=qe(G/T+2))}for(l?(r=new p(.5),f&&(e.s=1),h=Re(e)):(o=Math.abs(+q(e)),h=o%2),d=new p(y);;){if(h){if(d=d.times(w),!d.c)break;c?d.c.length>c&&(d.c.length=c):u&&(d=d.mod(t))}if(o){if(o=ue(o/2),o===0)break;h=o%2}else if(e=e.times(r),b(e,e.e+1,1),e.e>14)h=Re(e);else{if(o=+q(e),o===0)break;h=o%2}w=w.times(w),c?w.c&&w.c.length>c&&(w.c.length=c):u&&(w=w.mod(t))}return u?d:(f&&(d=y.div(d)),t?d.mod(t):c?b(d,G,v,g):d)},a.integerValue=function(e){var t=new p(this);return e==null?e=v:z(e,0,8),b(t,t.e+1,e)},a.isEqualTo=a.eq=function(e,t){return ke(this,new p(e,t))===0},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(e,t){return ke(this,new p(e,t))>0},a.isGreaterThanOrEqualTo=a.gte=function(e,t){return(t=ke(this,new p(e,t)))===1||t===0},a.isInteger=function(){return!!this.c&&re(this.e/T)>this.c.length-2},a.isLessThan=a.lt=function(e,t){return ke(this,new p(e,t))<0},a.isLessThanOrEqualTo=a.lte=function(e,t){return(t=ke(this,new p(e,t)))===-1||t===0},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&this.c[0]==0},a.minus=function(e,t){var r,u,o,c,g=this,l=g.s;if(e=new p(e,t),t=e.s,!l||!t)return new p(NaN);if(l!=t)return e.s=-t,g.plus(e);var f=g.e/T,h=e.e/T,d=g.c,w=e.c;if(!f||!h){if(!d||!w)return d?(e.s=-t,e):new p(w?g:NaN);if(!d[0]||!w[0])return w[0]?(e.s=-t,e):new p(d[0]?g:v==3?-0:0)}if(f=re(f),h=re(h),d=d.slice(),l=f-h){for((c=l<0)?(l=-l,o=d):(h=f,o=w),o.reverse(),t=l;t--;o.push(0));o.reverse()}else for(u=(c=(l=d.length)<(t=w.length))?l:t,l=t=0;t<u;t++)if(d[t]!=w[t]){c=d[t]<w[t];break}if(c&&(o=d,d=w,w=o,e.s=-e.s),t=(u=w.length)-(r=d.length),t>0)for(;t--;d[r++]=0);for(t=fe-1;u>l;){if(d[--u]<w[u]){for(r=u;r&&!d[--r];d[r]=t);--d[r],d[u]+=fe}d[u]-=w[u]}for(;d[0]==0;d.splice(0,1),--h);return d[0]?H(e,d,h):(e.s=v==3?-1:1,e.c=[e.e=0],e)},a.modulo=a.mod=function(e,t){var r,u,o=this;return e=new p(e,t),!o.c||!e.s||e.c&&!e.c[0]?new p(NaN):!e.c||o.c&&!o.c[0]?new p(o):(R==9?(u=e.s,e.s=1,r=n(o,e,0,3),e.s=u,r.s*=u):r=n(o,e,0,R),e=o.minus(r.times(e)),!e.c[0]&&R==1&&(e.s=o.s),e)},a.multipliedBy=a.times=function(e,t){var r,u,o,c,g,l,f,h,d,w,E,O,I,V,W,C=this,F=C.c,ee=(e=new p(e,t)).c;if(!F||!ee||!F[0]||!ee[0])return!C.s||!e.s||F&&!F[0]&&!ee||ee&&!ee[0]&&!F?e.c=e.e=e.s=null:(e.s*=C.s,!F||!ee?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(u=re(C.e/T)+re(e.e/T),e.s*=C.s,f=F.length,w=ee.length,f<w&&(I=F,F=ee,ee=I,o=f,f=w,w=o),o=f+w,I=[];o--;I.push(0));for(V=fe,W=pe,o=w;--o>=0;){for(r=0,E=ee[o]%W,O=ee[o]/W|0,g=f,c=o+g;c>o;)h=F[--g]%W,d=F[g]/W|0,l=O*h+d*E,h=E*h+l%W*W+I[c]+r,r=(h/V|0)+(l/W|0)+O*d,I[c--]=h%V;I[c]=r}return r?++u:I.splice(0,1),H(e,I,u)},a.negated=function(){var e=new p(this);return e.s=-e.s||null,e},a.plus=function(e,t){var r,u=this,o=u.s;if(e=new p(e,t),t=e.s,!o||!t)return new p(NaN);if(o!=t)return e.s=-t,u.minus(e);var c=u.e/T,g=e.e/T,l=u.c,f=e.c;if(!c||!g){if(!l||!f)return new p(o/0);if(!l[0]||!f[0])return f[0]?e:new p(l[0]?u:o*0)}if(c=re(c),g=re(g),l=l.slice(),o=c-g){for(o>0?(g=c,r=f):(o=-o,r=l),r.reverse();o--;r.push(0));r.reverse()}for(o=l.length,t=f.length,o-t<0&&(r=f,f=l,l=r,t=o),o=0;t;)o=(l[--t]=l[t]+f[t]+o)/fe|0,l[t]=fe===l[t]?0:l[t]%fe;return o&&(l=[o].concat(l),++g),H(e,l,g)},a.precision=a.sd=function(e,t){var r,u,o,c=this;if(e!=null&&e!==!!e)return z(e,1,J),t==null?t=v:z(t,0,8),b(new p(c),e,t);if(!(r=c.c))return null;if(o=r.length-1,u=o*T+1,o=r[o]){for(;o%10==0;o/=10,u--);for(o=r[0];o>=10;o/=10,u++);}return e&&c.e+1>u&&(u=c.e+1),u},a.shiftedBy=function(e){return z(e,-Fe,Fe),this.times("1e"+e)},a.squareRoot=a.sqrt=function(){var e,t,r,u,o,c=this,g=c.c,l=c.s,f=c.e,h=_+4,d=new p("0.5");if(l!==1||!g||!g[0])return new p(!l||l<0&&(!g||g[0])?NaN:g?c:1/0);if(l=Math.sqrt(+q(c)),l==0||l==1/0?(t=le(g),(t.length+f)%2==0&&(t+="0"),l=Math.sqrt(+t),f=re((f+1)/2)-(f<0||f%2),l==1/0?t="5e"+f:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+f),r=new p(t)):r=new p(l+""),r.c[0]){for(f=r.e,l=f+h,l<3&&(l=0);;)if(o=r,r=d.times(o.plus(n(c,o,h,1))),le(o.c).slice(0,l)===(t=le(r.c)).slice(0,l))if(r.e<f&&--l,t=t.slice(l-3,l+1),t=="9999"||!u&&t=="4999"){if(!u&&(b(o,o.e+_+2,0),o.times(o).eq(c))){r=o;break}h+=4,l+=4,u=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(b(r,r.e+_+2,1),e=!r.times(r).eq(c));break}}return b(r,r.e+_+1,v,e)},a.toExponential=function(e,t){return e!=null&&(z(e,0,J),e++),D(this,e,t,1)},a.toFixed=function(e,t){return e!=null&&(z(e,0,J),e=e+this.e+1),D(this,e,t)},a.toFormat=function(e,t,r){var u,o=this;if(r==null)e!=null&&t&&typeof t=="object"?(r=t,t=null):e&&typeof e=="object"?(r=e,e=t=null):r=M;else if(typeof r!="object")throw Error(ne+"Argument not an object: "+r);if(u=o.toFixed(e,t),o.c){var c,g=u.split("."),l=+r.groupSize,f=+r.secondaryGroupSize,h=r.groupSeparator||"",d=g[0],w=g[1],E=o.s<0,O=E?d.slice(1):d,I=O.length;if(f&&(c=l,l=f,f=c,I-=c),l>0&&I>0){for(c=I%l||l,d=O.substr(0,c);c<I;c+=l)d+=h+O.substr(c,l);f>0&&(d+=h+O.slice(c)),E&&(d="-"+d)}u=w?d+(r.decimalSeparator||"")+((f=+r.fractionGroupSize)?w.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):w):d}return(r.prefix||"")+u+(r.suffix||"")},a.toFraction=function(e){var t,r,u,o,c,g,l,f,h,d,w,E,O=this,I=O.c;if(e!=null&&(l=new p(e),!l.isInteger()&&(l.c||l.s!==1)||l.lt(y)))throw Error(ne+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+q(l));if(!I)return new p(O);for(t=new p(y),h=r=new p(y),u=f=new p(y),E=le(I),c=t.e=E.length-O.e-1,t.c[0]=Ue[(g=c%T)<0?T+g:g],e=!e||l.comparedTo(t)>0?c>0?t:h:l,g=B,B=1/0,l=new p(E),f.c[0]=0;d=n(l,t,0,1),o=r.plus(d.times(u)),o.comparedTo(e)!=1;)r=u,u=o,h=f.plus(d.times(o=h)),f=o,t=l.minus(d.times(o=t)),l=o;return o=n(e.minus(r),u,0,1),f=f.plus(o.times(h)),r=r.plus(o.times(u)),f.s=h.s=O.s,c=c*2,w=n(h,u,c,v).minus(O).abs().comparedTo(n(f,r,c,v).minus(O).abs())<1?[h,u]:[f,r],B=g,w},a.toNumber=function(){return+q(this)},a.toPrecision=function(e,t){return e!=null&&z(e,1,J),D(this,e,t,2)},a.toString=function(e){var t,r=this,u=r.s,o=r.e;return o===null?u?(t="Infinity",u<0&&(t="-"+t)):t="NaN":(e==null?t=o<=k||o>=x?De(le(r.c),o):he(le(r.c),o,"0"):e===10?(r=b(new p(r),_+o+1,v),t=he(le(r.c),r.e,"0")):(z(e,2,L.length,"Base"),t=s(he(le(r.c),o,"0"),10,e,u,!0)),u<0&&r.c[0]&&(t="-"+t)),t},a.valueOf=a.toJSON=function(){return q(this)},a._isBigNumber=!0,a[Symbol.toStringTag]="BigNumber",a[Symbol.for("nodejs.util.inspect.custom")]=a.valueOf,i!=null&&p.set(i),p}function re(i){var n=i|0;return i>0||i===n?n:n-1}function le(i){for(var n,s,m=1,a=i.length,y=i[0]+"";m<a;){for(n=i[m++]+"",s=T-n.length;s--;n="0"+n);y+=n}for(a=y.length;y.charCodeAt(--a)===48;);return y.slice(0,a+1||1)}function ke(i,n){var s,m,a=i.c,y=n.c,_=i.s,v=n.s,k=i.e,x=n.e;if(!_||!v)return null;if(s=a&&!a[0],m=y&&!y[0],s||m)return s?m?0:-v:_;if(_!=v)return _;if(s=_<0,m=k==x,!a||!y)return m?0:!a^s?1:-1;if(!m)return k>x^s?1:-1;for(v=(k=a.length)<(x=y.length)?k:x,_=0;_<v;_++)if(a[_]!=y[_])return a[_]>y[_]^s?1:-1;return k==x?0:k>x^s?1:-1}function z(i,n,s,m){if(i<n||i>s||i!==ue(i))throw Error(ne+(m||"Argument")+(typeof i=="number"?i<n||i>s?" out of range: ":" not an integer: ":" not a primitive number: ")+String(i))}function Re(i){var n=i.c.length-1;return re(i.e/T)==n&&i.c[n]%2!=0}function De(i,n){return(i.length>1?i.charAt(0)+"."+i.slice(1):i)+(n<0?"e":"e+")+n}function he(i,n,s){var m,a;if(n<0){for(a=s+".";++n;a+=s);i=a+i}else if(m=i.length,++n>m){for(a=s,n-=m;--n;a+=s);i+=a}else n<m&&(i=i.slice(0,n)+"."+i.slice(n));return i}var j=Ke();function xt(i){let n;return{c(){n=S("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"><path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path></svg>',A(n,"class","flex items-center justify-center h-6 w-6")},m(s,m){K(s,n,m)},d(s){s&&Q(n)}}}function kt(i){let n;return{c(){n=S("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>',A(n,"class","flex items-center justify-center h-6 w-6")},m(s,m){K(s,n,m)},d(s){s&&Q(n)}}}function bt(i){let n,s,m;function a(v,k){return v[0]?kt:xt}let y=a(i),_=y(i);return{c(){n=S("button"),_.c(),A(n,"type","button"),A(n,"class","inline-flex items-center p-1 border border-transparent rounded-full shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500")},m(v,k){K(v,n,k),_.m(n,null),s||(m=Te(n,"click",i[1]),s=!0)},p(v,[k]){y!==(y=a(v))&&(_.d(1),_=y(v),_&&(_.c(),_.m(n,null)))},i:U,o:U,d(v){v&&Q(n),_.d(),s=!1,m()}}}function Et(i,n,s){let{darkMode:m}=n;function a(y){ht.call(this,i,y)}return i.$$set=y=>{"darkMode"in y&&s(0,m=y.darkMode)},[m,a]}class Ot extends Be{constructor(n){super();Ne(this,n,Et,bt,Ee,{darkMode:0})}}function Nt(i){let n,s,m,a,y,_;return{c(){n=S("div"),s=S("dt"),m=oe(i[0]),a=Y(),y=S("dd"),_=oe(i[1]),A(s,"class","text-gray-600 dark:text-gray-300"),A(y,"class","text-gray-900 dark:text-gray-50"),A(n,"class","py-1 flex justify-between text-sm font-medium")},m(v,k){K(v,n,k),N(n,s),N(s,m),N(n,a),N(n,y),N(y,_)},p(v,[k]){k&1&&ge(m,v[0]),k&2&&ge(_,v[1])},i:U,o:U,d(v){v&&Q(n)}}}function Bt(i,n,s){let{title:m}=n,{content:a}=n;return i.$$set=y=>{"title"in y&&s(0,m=y.title),"content"in y&&s(1,a=y.content)},[m,a]}class je extends Be{constructor(n){super();Ne(this,n,Bt,Nt,Ee,{title:0,content:1})}}function At(i){let n,s,m,a,y,_,v,k;return y=new je({props:{title:"Generated at",content:i[1]}}),_=new je({props:{title:"Best 30 Average",content:i[0].best30Avg.toFixed(2)}}),v=new je({props:{title:"Maximum Achievable Rating",content:i[0].maxAchievable.toFixed(2)}}),{c(){n=S("div"),s=S("h3"),s.textContent="Chuni Intl Viewer",m=Y(),a=S("dl"),xe(y.$$.fragment),xe(_.$$.fragment),xe(v.$$.fragment),A(s,"class","font-medium text-gray-900 dark:text-gray-50"),A(a,"class","mt-2 border-t border-gray-200 dark:border-gray-700 divide-y divide-gray-200 dark:divide-gray-700"),A(n,"class","bg-gray-50 dark:bg-gray-900 sm:rounded-md w-full max-w-sm px-4 my-2 mb-4 shadow dark:shadow-dark")},m(x,$){K(x,n,$),N(n,s),N(n,m),N(n,a),ye(y,a,null),ye(_,a,null),ye(v,a,null),k=!0},p(x,[$]){const B={};$&1&&(B.content=x[0].best30Avg.toFixed(2)),_.$set(B);const P={};$&1&&(P.content=x[0].maxAchievable.toFixed(2)),v.$set(P)},i(x){k||(de(y.$$.fragment,x),de(_.$$.fragment,x),de(v.$$.fragment,x),k=!0)},o(x){me(y.$$.fragment,x),me(_.$$.fragment,x),me(v.$$.fragment,x),k=!1},d(x){x&&Q(n),_e(y),_e(_),_e(v)}}}function Tt(i,n,s){let m=new Date().toLocaleDateString(),{userRating:a}=n;return i.$$set=y=>{"userRating"in y&&s(0,a=y.userRating)},[a,m]}class Mt extends Be{constructor(n){super();Ne(this,n,Tt,At,Ee,{userRating:0})}}function et(i,n,s){const m=i.slice();return m[6]=n[s],m[8]=s,m}function tt(i,n,s){const m=i.slice();return m[9]=n[s],m}function nt(i){let n,s=i[9]+"",m,a;return{c(){n=S("th"),m=oe(s),a=Y(),A(n,"scope","col"),A(n,"class","px-6 py-3 text-center text-xs font-medium text-gray-600 dark:text-gray-300")},m(y,_){K(y,n,_),N(n,m),N(n,a)},p:U,d(y){y&&Q(n)}}}function it(i){let n,s,m=i[8]+1+"",a,y,_,v=i[6].title+"",k,x,$,B=i[6].difficulty+"",P,R,G,M=i[6].const.toFixed(1)+"",L,p,D,Z=i[6].score+"",H,b,q,e=i[6].rating.toFixed(2)+"",t,r;return{c(){n=S("tr"),s=S("td"),a=oe(m),y=Y(),_=S("td"),k=oe(v),x=Y(),$=S("td"),P=oe(B),R=Y(),G=S("td"),L=oe(M),p=Y(),D=S("td"),H=oe(Z),b=Y(),q=S("td"),t=oe(e),r=Y(),A(s,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50"),A(_,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50 max-w-xs"),A($,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50"),A(G,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50"),A(D,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50"),A(q,"class","px-2 py-1 text-sm text-gray-900 dark:text-gray-50")},m(u,o){K(u,n,o),N(n,s),N(s,a),N(n,y),N(n,_),N(_,k),N(n,x),N(n,$),N($,P),N(n,R),N(n,G),N(G,L),N(n,p),N(n,D),N(D,H),N(n,b),N(n,q),N(q,t),N(n,r)},p(u,o){o&4&&v!==(v=u[6].title+"")&&ge(k,v),o&4&&B!==(B=u[6].difficulty+"")&&ge(P,B),o&4&&M!==(M=u[6].const.toFixed(1)+"")&&ge(L,M),o&4&&Z!==(Z=u[6].score+"")&&ge(H,Z),o&4&&e!==(e=u[6].rating.toFixed(2)+"")&&ge(t,e)},d(u){u&&Q(n)}}}function St(i){let n,s,m,a,y,_=(i[1]?"Show All":"Best 30")+"",v,k,x,$,B,P,R,G,M,L;s=new Mt({props:{userRating:i[0]}});let p=i[3],D=[];for(let b=0;b<p.length;b+=1)D[b]=nt(tt(i,p,b));let Z=i[2],H=[];for(let b=0;b<Z.length;b+=1)H[b]=it(et(i,Z,b));return{c(){n=S("div"),xe(s.$$.fragment),m=Y(),a=S("div"),y=S("button"),v=oe(_),k=Y(),x=S("table"),$=S("thead"),B=S("tr");for(let b=0;b<D.length;b+=1)D[b].c();P=Y(),R=S("tbody");for(let b=0;b<H.length;b+=1)H[b].c();A(y,"type","button"),A(y,"class","mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 dark:border-gray-600 px-4 py-2 bg-gray-50 dark:bg-gray-900 text-base font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:col-start-1 sm:text-sm shadow-sm dark:shadow-dark-sm"),A(n,"class","flex flex-row space-x-4"),A($,"class","bg-gray-200 dark:bg-gray-800"),A(R,"class","bg-gray-50 dark:bg-gray-700 divide-y divide-gray-200"),A(x,"class","max-w-max divide-y divide-gray-200 dark:divide-gray-700")},m(b,q){K(b,n,q),ye(s,n,null),N(n,m),N(n,a),N(a,y),N(y,v),K(b,k,q),K(b,x,q),N(x,$),N($,B);for(let e=0;e<D.length;e+=1)D[e].m(B,null);N(x,P),N(x,R);for(let e=0;e<H.length;e+=1)H[e].m(R,null);G=!0,M||(L=Te(y,"click",i[5]),M=!0)},p(b,[q]){const e={};if(q&1&&(e.userRating=b[0]),s.$set(e),(!G||q&2)&&_!==(_=(b[1]?"Show All":"Best 30")+"")&&ge(v,_),q&8){p=b[3];let t;for(t=0;t<p.length;t+=1){const r=tt(b,p,t);D[t]?D[t].p(r,q):(D[t]=nt(r),D[t].c(),D[t].m(B,null))}for(;t<D.length;t+=1)D[t].d(1);D.length=p.length}if(q&4){Z=b[2];let t;for(t=0;t<Z.length;t+=1){const r=et(b,Z,t);H[t]?H[t].p(r,q):(H[t]=it(r),H[t].c(),H[t].m(R,null))}for(;t<H.length;t+=1)H[t].d(1);H.length=Z.length}},i(b){G||(de(s.$$.fragment,b),G=!0)},o(b){me(s.$$.fragment,b),G=!1},d(b){b&&Q(n),_e(s),b&&Q(k),b&&Q(x),Xe(D,b),Xe(H,b),M=!1,L()}}}function $t(i,n,s){let m,{songData:a}=n,{userRating:y}=n;const _=["#","Song Name","Difficulty","Constant","Score","Rating"];let v=!1;const k=()=>{s(1,v=!v)};return i.$$set=x=>{"songData"in x&&s(4,a=x.songData),"userRating"in x&&s(0,y=x.userRating)},i.$$.update=()=>{i.$$.dirty&18&&s(2,m=v?a.slice(0,30):a)},[y,v,m,_,a,k]}class Rt extends Be{constructor(n){super();Ne(this,n,$t,St,Ee,{songData:4,userRating:0})}}function rt(i){const n=document.cookie.split(";").map(s=>decodeURIComponent(s.trim())).map(s=>s.split("=")).find(s=>s[0]===i);return n?n[1]:""}function Dt(i){return i?new j(+[...i].filter(n=>n!==",").join("")):new j(-1)}const be={master:"MAS",expert:"EXP",advanced:"ADV",basic:"BAS",ultima:"ULT"};async function Ct(i=be.master){const n=new FormData;n.append("genre","99"),n.append("token",rt("_t"));const s={[be.master]:"sendMaster",[be.expert]:"sendExpert",[be.advanced]:"sendAdvanced",[be.basic]:"sendBasic"},a=await(await fetch(`https://chunithm-net-eng.com/mobile/record/musicGenre/${s[i]}`,{headers:{"Cache-Control":"no-cache"},method:"POST",body:n})).text(),y=document.createElement("div");y.innerHTML=a;const _=document.createDocumentFragment();_.appendChild(y);const v=[..._.querySelectorAll("form")];return v.shift(),v}async function Lt(){const i=Object.values(be),n=[];for(const s of i)n.push(await Ct(s));return n.flatMap((s,m)=>s.map(a=>{var _,v;return{title:(_=a.querySelector(".music_title"))==null?void 0:_.innerText,score:Dt((v=a.querySelector(".text_b"))==null?void 0:v.innerText),difficulty:i[m]}}).filter(a=>a.title!=null&&a.score.isGreaterThanOrEqualTo(0)))}async function It(){return await fetch("https://api.chunirec.net/2.0/music/showall.json?region=jp&token=252db1d77e53f52fd85c5b346fef7c90e345b3b3f0b12018a2074298e4b35182").then(n=>n.json())}async function Gt(){return await fetch("https://api.chunirec.net/2.0/music/showall.json?region=jp2&token=252db1d77e53f52fd85c5b346fef7c90e345b3b3f0b12018a2074298e4b35182").then(n=>n.json())}function Pt(i,n){let s=new j(0);return i.isGreaterThanOrEqualTo(1007500)?s=new j(2):i.isGreaterThanOrEqualTo(1005e3)?s=new j(1.5).plus(i.minus(1005e3).multipliedBy(10).dividedBy(5e4)):i.isGreaterThanOrEqualTo(1e6)?s=new j(1).plus(i.minus(1e6).multipliedBy(5).dividedBy(5e4)):i.isGreaterThanOrEqualTo(975e3)?s=i.minus(975e3).multipliedBy(2).dividedBy(5e4):i.isGreaterThanOrEqualTo(95e4)?s=new j(-1.5).plus(i.minus(95e4).multipliedBy(3).dividedBy(5e4)):i.isGreaterThanOrEqualTo(925e3)?s=new j(-3).plus(i.minus(925e3).multipliedBy(3).dividedBy(5e4)):s=new j(-5).plus(i.minus(9e5).multipliedBy(4).dividedBy(5e4)),n.plus(s).multipliedBy(100).decimalPlaces(0,j.ROUND_FLOOR).dividedBy(100)}function qt(i,n){let s=new j(0);return i.isGreaterThanOrEqualTo(1009e3)?s=new j(2.15):i.isGreaterThanOrEqualTo(1007500)?s=new j(2).plus(i.minus(1007500).multipliedBy(5).dividedBy(5e4)):i.isGreaterThanOrEqualTo(1005e3)?s=new j(1.5).plus(i.minus(1005e3).multipliedBy(10).dividedBy(5e4)):i.isGreaterThanOrEqualTo(1e6)?s=new j(1).plus(i.minus(1e6).multipliedBy(5).dividedBy(5e4)):i.isGreaterThanOrEqualTo(975e3)?s=i.minus(975e3).multipliedBy(2).dividedBy(5e4):i.isGreaterThanOrEqualTo(95e4)?s=new j(-1.5).plus(i.minus(95e4).multipliedBy(3).dividedBy(5e4)):i.isGreaterThanOrEqualTo(925e3)?s=new j(-3).plus(i.minus(925e3).multipliedBy(3).dividedBy(5e4)):s=new j(-5).plus(i.minus(9e5).multipliedBy(4).dividedBy(5e4)),n.plus(s).multipliedBy(100).decimalPlaces(0,j.ROUND_FLOOR).dividedBy(100)}function lt(i){return i.sort((n,s)=>s.minus(n).toNumber()).slice(0,30).reduce((n,s)=>n.plus(s),new j(0)).dividedBy(30)}function Ft(i){let n=i.reduce((m,a)=>a.isGreaterThan(m)?a:m,new j(0));return lt(i).multipliedBy(30).plus(n.multipliedBy(10)).dividedBy(40)}function Ut(i){let n,s,m;return s=new Rt({props:{songData:i[2],userRating:i[3]}}),{c(){n=S("div"),xe(s.$$.fragment),A(n,"class","p-4 min-h-screen")},m(a,y){K(a,n,y),ye(s,n,null),m=!0},p(a,y){const _={};y&4&&(_.songData=a[2]),y&8&&(_.userRating=a[3]),s.$set(_)},i(a){m||(de(s.$$.fragment,a),m=!0)},o(a){me(s.$$.fragment,a),m=!1},d(a){a&&Q(n),_e(s)}}}function jt(i){let n;return{c(){n=S("div"),n.textContent="Loading...",A(n,"class","w-screen h-screen")},m(s,m){K(s,n,m)},p:U,i:U,o:U,d(s){s&&Q(n)}}}function Ht(i){let n,s,m,a,y,_,v,k,x,$,B,P,R,G,M;return{c(){n=S("div"),s=S("div"),m=S("div"),a=Y(),y=S("span"),y.textContent="\u200B",_=Y(),v=S("div"),k=S("div"),k.innerHTML=`<div class="mt-3 text-center sm:mt-5"><h3 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-50" id="modal-title">Select Version</h3>
<div class="mt-2"><p class="text-sm text-gray-900 dark:text-gray-50 mb-2">Select the Chunithm version you want to use for rating
calculation.</p>
<p class="text-xs text-gray-900 dark:text-gray-50">This is a fork of <a class="text-blue-600 dark:text-blue-300" target="_blank" href="https://github.com/kyroslee/chuni_intl_viewer">kyroslee/chuni_intl_viewer
</a>. If you prefer the user interface of original version,
please revert to the old script.</p></div></div>`,x=Y(),$=S("div"),B=S("button"),B.textContent="International",P=Y(),R=S("button"),R.textContent="Chunithm New",A(m,"class","fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"),A(m,"aria-hidden","true"),A(y,"class","hidden sm:inline-block sm:align-middle sm:h-screen"),A(y,"aria-hidden","true"),A(B,"type","button"),A(B,"class","w-full inline-flex justify-center rounded-md border border-transparent px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:col-start-2 sm:text-sm shadow-sm dark:shadow-dark-sm"),A(R,"type","button"),A(R,"class","mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 dark:border-gray-600 px-4 py-2 bg-gray-50 dark:bg-gray-900 text-base font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:col-start-1 sm:text-sm shadow-sm dark:shadow-dark-sm"),A($,"class","mt-5 sm:mt-6 sm:grid sm:grid-cols-2 sm:gap-3 sm:grid-flow-row-dense"),A(v,"class","inline-block align-bottom bg-gray-50 dark:bg-gray-900 rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6 shadow-xl dark:shadow-dark-xl"),A(s,"class","flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"),A(n,"class","fixed z-10 inset-0 overflow-y-auto"),A(n,"aria-labelledby","modal-title"),A(n,"role","dialog"),A(n,"aria-modal","true")},m(L,p){K(L,n,p),N(n,s),N(s,m),N(s,a),N(s,y),N(s,_),N(s,v),N(v,k),N(v,x),N(v,$),N($,B),N($,P),N($,R),G||(M=[Te(B,"click",i[8]),Te(R,"click",i[9])],G=!0)},p:U,i:U,o:U,d(L){L&&Q(n),G=!1,ve(M)}}}function zt(i){let n,s,m,a,y,_,v,k,x,$,B;_=new Ot({props:{darkMode:i[4]}}),_.$on("click",i[7]);const P=[Ht,jt,Ut],R=[];function G(M,L){return M[1]==null?0:M[1]?1:2}return k=G(i),x=R[k]=P[k](i),{c(){n=S("head"),s=Y(),m=S("body"),a=S("div"),y=S("div"),xe(_.$$.fragment),v=Y(),x.c(),A(y,"class","absolute right-8 top-8 z-20"),A(a,"class","bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-50"),A(m,"class",$=`relative min-w-max ${i[4]?"dark":""}`)},m(M,L){K(M,n,L),n.innerHTML=i[0],K(M,s,L),K(M,m,L),N(m,a),N(a,y),ye(_,y,null),N(a,v),R[k].m(a,null),B=!0},p(M,[L]){(!B||L&1)&&(n.innerHTML=M[0]);const p={};L&16&&(p.darkMode=M[4]),_.$set(p);let D=k;k=G(M),k===D?R[k].p(M,L):(wt(),me(R[D],1,1,()=>{R[D]=null}),yt(),x=R[k],x?x.p(M,L):(x=R[k]=P[k](M),x.c()),de(x,1),x.m(a,null)),(!B||L&16&&$!==($=`relative min-w-max ${M[4]?"dark":""}`))&&A(m,"class",$)},i(M){B||(de(_.$$.fragment,M),de(x),B=!0)},o(M){me(_.$$.fragment,M),me(x),B=!1},d(M){M&&Q(n),M&&Q(s),M&&Q(m),_e(_),R[k].d()}}}function Vt(i,n,s){let{styles:m=""}=n,a=null,y=[],_={best30Avg:new j(0),maxAchievable:new j(0)};async function v(R){s(1,a=!0);const G=await Lt();let M=[];R?M=await It():M=await Gt(),s(2,y=G.map(p=>{var H,b,q;const D=M.find(e=>e.meta.title===p.title),Z=(q=(b=(H=D==null?void 0:D.data)==null?void 0:H[p.difficulty])==null?void 0:b.const)!=null?q:0;return at(ft({},p),{const:new j(Z),rating:(R?Pt:qt)(p.score,new j(Z))})}).sort((p,D)=>D.rating.minus(p.rating).toNumber()));const L=y.map(p=>p.rating);s(3,_={best30Avg:lt(L),maxAchievable:Ft(L)}),s(1,a=!1)}let k=!0;function x(){s(4,k=!k)}const $=()=>x(),B=()=>v(!0),P=()=>v(!1);return i.$$set=R=>{"styles"in R&&s(0,m=R.styles)},[m,a,y,_,k,v,x,$,B,P]}class Xt extends Be{constructor(n){super();Ne(this,n,Vt,zt,Ee,{styles:0})}}(async()=>{if(window.location.hostname!=="chunithm-net-eng.com"){alert("[chuni_intl_viewer] This tools could only be used under chunithm-net international."),window.location.href="https://chunithm-net-eng.com/";return}if(!rt("_t")){alert("[chuni-intl-viewer] Token not found. Please login first."),window.location.href="https://chunithm-net-eng.com/";return}const n=document.body.attachShadow({mode:"open"}),s=new Xt({target:n});window.styleInject=m=>{s.$set({styles:`<style>${m}</style>`})}})(),styleInject("/* windicss layer base */\n*, ::before, ::after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: #e5e7eb;\n}\n* {\n --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgba(59, 130, 246, 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n:root {\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n}\n:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n:-moz-ui-invalid {\n box-shadow: none;\n}\n::moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n height: auto;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n[type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\nabbr[title] {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\na {\n color: inherit;\n text-decoration: inherit;\n}\nbody {\n margin: 0;\n font-family: inherit;\n line-height: inherit;\n}\nbutton {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n text-transform: none;\n background-color: transparent;\n background-image: none;\n padding: 0;\n line-height: inherit;\n color: inherit;\n}\nbutton, [type='button'], [type='reset'], [type='submit'] {\n -webkit-appearance: button;\n}\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\nbutton, [role=\"button\"] {\n cursor: pointer;\n}\nhtml {\n -webkit-text-size-adjust: 100%;\n font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,\"Noto Sans\",sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";\n line-height: 1.5;\n}\nh3, p, dd, dl {\n margin: 0;\n}\nh3 {\n font-size: inherit;\n font-weight: inherit;\n}\nsvg {\n display: block;\n vertical-align: middle;\n}\ntable {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n}\n/* windicss layer components */\n\n/* windicss layer utilities */\n.space-x-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(1rem * var(--tw-space-x-reverse));\n margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgba(229, 231, 235, var(--tw-divide-opacity));\n}\n.dark .dark\\:divide-gray-700 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgba(55, 65, 81, var(--tw-divide-opacity));\n}\n.bg-indigo-600 {\n --tw-bg-opacity: 1;\n background-color: rgba(79, 70, 229, var(--tw-bg-opacity));\n}\n.hover\\:bg-indigo-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(67, 56, 202, var(--tw-bg-opacity));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 250, 251, var(--tw-bg-opacity));\n}\n.dark .dark\\:bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgba(17, 24, 39, var(--tw-bg-opacity));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgba(249, 250, 251, var(--tw-bg-opacity));\n}\n.bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgba(229, 231, 235, var(--tw-bg-opacity));\n}\n.dark .dark\\:bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgba(31, 41, 55, var(--tw-bg-opacity));\n}\n.dark .dark\\:bg-gray-700 {\n --tw-bg-opacity: 1;\n background-color: rgba(55, 65, 81, var(--tw-bg-opacity));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgba(107, 114, 128, var(--tw-bg-opacity));\n}\n.bg-opacity-75 {\n --tw-bg-opacity: 0.75;\n}\n.border-transparent {\n border-color: transparent;\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgba(209, 213, 219, var(--tw-border-opacity));\n}\n.dark .dark\\:border-gray-600 {\n --tw-border-opacity: 1;\n border-color: rgba(75, 85, 99, var(--tw-border-opacity));\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgba(229, 231, 235, var(--tw-border-opacity));\n}\n.dark .dark\\:border-gray-700 {\n --tw-border-opacity: 1;\n border-color: rgba(55, 65, 81, var(--tw-border-opacity));\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.border {\n border-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.inline-block {\n display: inline-block;\n}\n.flex {\n display: -webkit-box;\n display: -ms-flexbox;\n display: -webkit-flex;\n display: flex;\n}\n.inline-flex {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: -webkit-inline-flex;\n display: inline-flex;\n}\n.hidden {\n display: none;\n}\n.flex-row {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n -webkit-flex-direction: row;\n flex-direction: row;\n}\n.items-end {\n -webkit-box-align: end;\n -ms-flex-align: end;\n -webkit-align-items: flex-end;\n align-items: flex-end;\n}\n.items-center {\n -webkit-box-align: center;\n -ms-flex-align: center;\n -webkit-align-items: center;\n align-items: center;\n}\n.justify-center {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n}\n.justify-between {\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n}\n.font-medium {\n font-weight: 500;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-screen {\n height: 100vh;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.leading-6 {\n line-height: 1.5rem;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.mt-3 {\n margin-top: 0.75rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mt-5 {\n margin-top: 1.25rem;\n}\n.mb-4 {\n margin-bottom: 1rem;\n}\n.max-w-xs {\n max-width: 20rem;\n}\n.max-w-sm {\n max-width: 24rem;\n}\n.max-w-max {\n max-width: -webkit-max-content;\n max-width: -moz-max-content;\n max-width: max-content;\n}\n.min-h-screen {\n min-height: 100vh;\n}\n.min-w-max {\n min-width: -webkit-max-content;\n min-width: -moz-max-content;\n min-width: max-content;\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.pt-4 {\n padding-top: 1rem;\n}\n.pb-20 {\n padding-bottom: 5rem;\n}\n.pt-5 {\n padding-top: 1.25rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.right-8 {\n right: 2rem;\n}\n.top-8 {\n top: 2rem;\n}\n.shadow-sm {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 1px 2px 0 rgba(var(--tw-shadow-color), 0.05);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.dark .dark\\:shadow-dark-sm {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 1px 2px 0 rgba(128, 128, 128, 0.05);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-xl {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 20px 25px -5px rgba(var(--tw-shadow-color), 0.1), 0 10px 10px -5px rgba(var(--tw-shadow-color), 0.04);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.dark .dark\\:shadow-dark-xl {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 20px 25px -5px rgba(128, 128, 128, 0.1), 0 10px 10px -5px rgba(128, 128, 128, 0.04);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 1px 3px 0 rgba(var(--tw-shadow-color), 0.1), 0 1px 2px 0 rgba(var(--tw-shadow-color), 0.06);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.dark .dark\\:shadow-dark {\n --tw-shadow-color: 0, 0, 0;\n --tw-shadow: 0 10px 15px -3px rgba(128, 128, 128, 0.1), 0 4px 6px -2px rgba(128, 128, 128, 0.05);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n -webkit-box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus\\:ring-indigo-500:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgba(99, 102, 241, var(--tw-ring-opacity));\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgba(255, 255, 255, var(--tw-text-opacity));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgba(55, 65, 81, var(--tw-text-opacity));\n}\n.dark .dark\\:text-gray-200 {\n --tw-text-opacity: 1;\n color: rgba(229, 231, 235, var(--tw-text-opacity));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgba(75, 85, 99, var(--tw-text-opacity));\n}\n.dark .dark\\:text-gray-300 {\n --tw-text-opacity: 1;\n color: rgba(209, 213, 219, var(--tw-text-opacity));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgba(17, 24, 39, var(--tw-text-opacity));\n}\n.dark .dark\\:text-gray-50 {\n --tw-text-opacity: 1;\n color: rgba(249, 250, 251, var(--tw-text-opacity));\n}\n.text-blue-600 {\n --tw-text-opacity: 1;\n color: rgba(37, 99, 235, var(--tw-text-opacity));\n}\n.dark .dark\\:text-blue-300 {\n --tw-text-opacity: 1;\n color: rgba(147, 197, 253, var(--tw-text-opacity));\n}\n.align-bottom {\n vertical-align: bottom;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.z-20 {\n z-index: 20;\n}\n.z-10 {\n z-index: 10;\n}\n.transform {\n --tw-rotate: 0;\n --tw-rotate-x: 0;\n --tw-rotate-y: 0;\n --tw-rotate-z: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-scale-z: 1;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n -webkit-transform: rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z));\n -ms-transform: rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z));\n transform: rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z));\n}\n.transition-opacity {\n -webkit-transition-property: opacity;\n -o-transition-property: opacity;\n transition-property: opacity;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 150ms;\n -o-transition-duration: 150ms;\n transition-duration: 150ms;\n}\n.transition-all {\n -webkit-transition-property: all;\n -o-transition-property: all;\n transition-property: all;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 150ms;\n -o-transition-duration: 150ms;\n transition-duration: 150ms;\n}\n@media (min-width: 640px) {\n .sm\\:rounded-md {\n border-radius: 0.375rem;\n }\n .sm\\:block {\n display: block;\n }\n .sm\\:inline-block {\n display: inline-block;\n }\n .sm\\:grid {\n display: -ms-grid;\n display: grid;\n }\n .sm\\:h-screen {\n height: 100vh;\n }\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n .sm\\:my-8 {\n margin-top: 2rem;\n margin-bottom: 2rem;\n }\n .sm\\:mt-0 {\n margin-top: 0px;\n }\n .sm\\:mt-5 {\n margin-top: 1.25rem;\n }\n .sm\\:mt-6 {\n margin-top: 1.5rem;\n }\n .sm\\:max-w-lg {\n max-width: 32rem;\n }\n .sm\\:p-0 {\n padding: 0px;\n }\n .sm\\:p-6 {\n padding: 1.5rem;\n }\n .sm\\:align-middle {\n vertical-align: middle;\n }\n .sm\\:w-full {\n width: 100%;\n }\n .sm\\:gap-3 {\n grid-gap: 0.75rem;\n gap: 0.75rem;\n }\n .sm\\:grid-flow-row-dense {\n grid-auto-flow: row dense;\n }\n .sm\\:grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .sm\\:col-start-1 {\n grid-column-start: 1;\n }\n .sm\\:col-start-2 {\n grid-column-start: 2;\n }\n}")})();})();