dealposbarcode 25.38.0 → 25.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-REF66XVH.js → chunk-GTRDHGVN.js} +4 -2
- package/{chunk-JQZ6FBWP.js → chunk-KI35TWOJ.js} +1 -1
- package/{chunk-HUVXW473.js → chunk-LNBGLQGG.js} +1 -1
- package/{chunk-PEOWQ4QO.js → chunk-MGIQFFXS.js} +1 -1
- package/{chunk-7VRU5A7U.js → chunk-U22W4G5K.js} +1 -1
- package/{chunk-6TONCND5.js → chunk-V6ANDEAC.js} +1 -1
- package/index.html +3 -3
- package/{main-RKMGYE3I.js → main-PVOMISXL.js} +2 -2
- package/ngsw.json +16 -16
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ss,b as Ls,c as Im}from"./chunk-BVFPFG2Y.js";import{a as js,b as $i,c as Di,d as Hs}from"./chunk-WV652PSI.js";import{a as Vc}from"./chunk-HUVXW473.js";import{$ as Em,B as kt,C as Vt,D as Es,F as Is,G as Ds,H as Ui,I as gt,J as bt,K as Br,L as ks,M as Ts,N as Ms,O as Os,P as Fs,Q as As,S as Cm,T as Sm,U as Rs,V as Bs,W as Ns,Y as zs,Z as Pm,a as Pi,aa as zr,b as xs,d as Cs,da as Wi,ia as $c,ja as Dm,k as vm,l as Vi,n as Ei,o as _m,q as ym,r as Rt,s as Dt,t as wm,u as Rr,v as ht,w as mt,x as xm,y as ft,z as Ps}from"./chunk-AJDEWWQT.js";import{$a as fs,$b as ce,$c as Hc,Aa as Ge,Ab as W,Ac as dm,Ad as et,Bc as pm,C as wt,Ca as U,Cb as ci,Cc as um,Cd as bm,D as us,Da as O,Dc as di,Ea as Fc,Eb as gs,Ec as fe,Fa as Ac,Fc as He,Gb as To,Gc as Fo,H as Hi,Ha as pe,Hb as kn,I as qe,Ia as _e,Id as Ao,J as em,Ja as Ve,Jb as zc,Jc as Je,Jd as $n,Ka as ms,Kb as B,Kc as pi,Kd as Ro,Lb as cm,Lc as Si,M as tm,Mb as Ci,Mc as jc,Md as Ii,N as im,Nc as we,Nd as sn,O as nm,Oa as sm,Ob as Lt,P as Hn,Pd as Nr,Qd as Uc,Ra as $t,Rb as H,Rd as Wc,S as Vn,Sa as X,Sb as Lc,Ta as K,Tb as Mo,U as at,Ua as Rc,Ub as $e,Uc as hm,Va as Bc,Vb as C,Wa as Ye,Wb as Oo,Xa as Ct,Xb as Ze,Xc as It,Y as Mc,Yb as rn,Z as En,Za as je,Zb as bs,Zc as xt,_a as Ue,_c as mm,a as _,aa as Pr,ab as ko,ac as kr,ad as fm,b as k,bb as Ce,bc as Tn,bd as an,c as Cr,ca as In,cb as Dn,cc as St,d as q,dc as Pt,e as Ne,ea as rm,ec as h,fa as Do,fc as m,g as j,gb as Nc,gc as J,h as Sr,ha as om,hb as Ir,hc as vs,hd as ze,i as cs,ib as lm,ic as _s,j as ds,jc as on,k as ps,kc as Se,l as ei,lc as Tr,md as ys,n as Ft,na as am,nc as N,oa as Oc,oc as S,od as Mn,pa as hs,pc as jt,q as Te,qa as Ai,qc as At,qd as Mr,r as Io,ra as nn,sa as ti,sb as Dr,sc as Et,ta as Ee,tc as ut,ub as Un,uc as Fe,ud as Or,vc as Ae,vd as Fr,wa as Er,wc as Wn,xa as be,xc as b,xd as ws,ya as ve,yc as P,yd as Ar,zb as f,zc as Ht,zd as gm}from"./chunk-PNNBJ4WR.js";var of=q((pA,rf)=>{var s1=4,l1=.001,c1=1e-7,d1=10,Vo=11,Ks=1/(Vo-1),p1=typeof Float32Array=="function";function Jm(i,t){return 1-3*t+3*i}function ef(i,t){return 3*t-6*i}function tf(i){return 3*i}function Qs(i,t,e){return((Jm(t,e)*i+ef(t,e))*i+tf(t))*i}function nf(i,t,e){return 3*Jm(t,e)*i*i+2*ef(t,e)*i+tf(t)}function u1(i,t,e,n,r){var o,a,s=0;do a=t+(e-t)/2,o=Qs(a,n,r)-i,o>0?e=a:t=a;while(Math.abs(o)>c1&&++s<d1);return a}function h1(i,t,e,n){for(var r=0;r<s1;++r){var o=nf(t,e,n);if(o===0)return t;var a=Qs(t,e,n)-i;t-=a/o}return t}function m1(i){return i}rf.exports=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return m1;for(var o=p1?new Float32Array(Vo):new Array(Vo),a=0;a<Vo;++a)o[a]=Qs(a*Ks,t,n);function s(l){for(var c=0,d=1,p=Vo-1;d!==p&&o[d]<=l;++d)c+=Ks;--d;var v=(l-o[d])/(o[d+1]-o[d]),g=c+v*Ks,w=nf(g,t,n);return w>=l1?h1(l,g,t,n):w===0?g:u1(l,c,c+Ks,t,n)}return function(c){return c===0?0:c===1?1:Qs(s(c),e,r)}}});var Cg=q((nz,xg)=>{xg.exports=function(){var t={},e=t._fns={};t.emit=function(a,s,l,c,d,p,v){var g=n(a);g.length&&r(a,g,[s,l,c,d,p,v])},t.on=function(a,s){e[a]||(e[a]=[]),e[a].push(s)},t.once=function(a,s){function l(){s.apply(this,arguments),t.off(a,l)}this.on(a,l)},t.off=function(a,s){var l=[];if(a&&s){var c=this._fns[a],d=0,p=c?c.length:0;for(d;d<p;d++)c[d]!==s&&l.push(c[d])}l.length?this._fns[a]=l:delete this._fns[a]};function n(o){var a=e[o]?e[o]:[],s=o.indexOf(":"),l=s===-1?[o]:[o.substring(0,s),o.substring(s+1)],c=Object.keys(e),d=0,p=c.length;for(d;d<p;d++){var v=c[d];if(v==="*"&&(a=a.concat(e[v])),l.length===2&&l[0]===v){a=a.concat(e[v]);break}}return a}function r(o,a,s){var l=0,c=a.length;for(l;l<c&&a[l];l++)a[l].event=o,a[l].apply(a[l],s)}return t}});var wl=q((oz,Sg)=>{function cC(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}Sg.exports=cC});var Eg=q((az,Pg)=>{var dC=typeof global=="object"&&global&&global.Object===Object&&global;Pg.exports=dC});var Ld=q((sz,Ig)=>{var pC=Eg(),uC=typeof self=="object"&&self&&self.Object===Object&&self,hC=pC||uC||Function("return this")();Ig.exports=hC});var kg=q((lz,Dg)=>{var mC=Ld(),fC=function(){return mC.Date.now()};Dg.exports=fC});var Mg=q((cz,Tg)=>{var gC=/\s/;function bC(i){for(var t=i.length;t--&&gC.test(i.charAt(t)););return t}Tg.exports=bC});var Fg=q((dz,Og)=>{var vC=Mg(),_C=/^\s+/;function yC(i){return i&&i.slice(0,vC(i)+1).replace(_C,"")}Og.exports=yC});var jd=q((pz,Ag)=>{var wC=Ld(),xC=wC.Symbol;Ag.exports=xC});var zg=q((uz,Ng)=>{var Rg=jd(),Bg=Object.prototype,CC=Bg.hasOwnProperty,SC=Bg.toString,ia=Rg?Rg.toStringTag:void 0;function PC(i){var t=CC.call(i,ia),e=i[ia];try{i[ia]=void 0;var n=!0}catch{}var r=SC.call(i);return n&&(t?i[ia]=e:delete i[ia]),r}Ng.exports=PC});var jg=q((hz,Lg)=>{var EC=Object.prototype,IC=EC.toString;function DC(i){return IC.call(i)}Lg.exports=DC});var Wg=q((mz,Ug)=>{var Hg=jd(),kC=zg(),TC=jg(),MC="[object Null]",OC="[object Undefined]",Vg=Hg?Hg.toStringTag:void 0;function FC(i){return i==null?i===void 0?OC:MC:Vg&&Vg in Object(i)?kC(i):TC(i)}Ug.exports=FC});var qg=q((fz,$g)=>{function AC(i){return i!=null&&typeof i=="object"}$g.exports=AC});var Yg=q((gz,Gg)=>{var RC=Wg(),BC=qg(),NC="[object Symbol]";function zC(i){return typeof i=="symbol"||BC(i)&&RC(i)==NC}Gg.exports=zC});var Zg=q((bz,Qg)=>{var LC=Fg(),Xg=wl(),jC=Yg(),Kg=NaN,HC=/^[-+]0x[0-9a-f]+$/i,VC=/^0b[01]+$/i,UC=/^0o[0-7]+$/i,WC=parseInt;function $C(i){if(typeof i=="number")return i;if(jC(i))return Kg;if(Xg(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=Xg(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=LC(i);var e=VC.test(i);return e||UC.test(i)?WC(i.slice(2),e?2:8):HC.test(i)?Kg:+i}Qg.exports=$C});var Vd=q((vz,e0)=>{var qC=wl(),Hd=kg(),Jg=Zg(),GC="Expected a function",YC=Math.max,XC=Math.min;function KC(i,t,e){var n,r,o,a,s,l,c=0,d=!1,p=!1,v=!0;if(typeof i!="function")throw new TypeError(GC);t=Jg(t)||0,qC(e)&&(d=!!e.leading,p="maxWait"in e,o=p?YC(Jg(e.maxWait)||0,t):o,v="trailing"in e?!!e.trailing:v);function g(y){var x=n,D=r;return n=r=void 0,c=y,a=i.apply(D,x),a}function w(y){return c=y,s=setTimeout(F,t),d?g(y):a}function E(y){var x=y-l,D=y-c,z=t-x;return p?XC(z,o-D):z}function L(y){var x=y-l,D=y-c;return l===void 0||x>=t||x<0||p&&D>=o}function F(){var y=Hd();if(L(y))return G(y);s=setTimeout(F,E(y))}function G(y){return s=void 0,v&&n?g(y):(n=r=void 0,a)}function he(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function me(){return s===void 0?a:G(Hd())}function ae(){var y=Hd(),x=L(y);if(n=arguments,r=this,l=y,x){if(s===void 0)return w(l);if(p)return clearTimeout(s),s=setTimeout(F,t),g(l)}return s===void 0&&(s=setTimeout(F,t)),a}return ae.cancel=he,ae.flush=me,ae}e0.exports=KC});var i0=q((_z,t0)=>{var QC=Vd(),ZC=wl(),JC="Expected a function";function eS(i,t,e){var n=!0,r=!0;if(typeof i!="function")throw new TypeError(JC);return ZC(e)&&(n="leading"in e?!!e.leading:n,r="trailing"in e?!!e.trailing:r),QC(i,t,{leading:n,maxWait:t,trailing:r})}t0.exports=eS});var ra=q((Rz,c0)=>{"use strict";c0.exports=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);let e=t<0,n=Math.abs(t);if(e&&(n=-n),n===0)return"0 B";let r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),a=Number(n/1024**o),s=r[o];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${s}`}});var u0=q((Bz,p0)=>{"use strict";function d0(i,t){this.text=i=i||"",this.hasWild=~i.indexOf("*"),this.separator=t,this.parts=i.split(t)}d0.prototype.match=function(i){var t=!0,e=this.parts,n,r=e.length,o;if(typeof i=="string"||i instanceof String)if(!this.hasWild&&this.text!=i)t=!1;else{for(o=(i||"").split(this.separator),n=0;t&&n<r;n++)e[n]!=="*"&&(n<o.length?t=e[n]===o[n]:t=!1);t=t&&o}else if(typeof i.splice=="function")for(t=[],n=i.length;n--;)this.match(i[n])&&(t[t.length]=i[n]);else if(typeof i=="object"){t={};for(var a in i)this.match(a)&&(t[a]=i[a])}return t};p0.exports=function(i,t,e){var n=new d0(i,e||/[\/\.]/);return typeof t<"u"?n.match(t):n}});var m0=q((Nz,h0)=>{var aS=u0(),sS=/[\/\+\.]/;h0.exports=function(i,t){function e(n){var r=aS(n,i,sS);return r&&r.length>=2}return t?e(t.split(";")[0]):e}});var Gt=q((v4,Al)=>{(function(){"use strict";var i={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=n(r,e(a)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)i.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(r,o){return o?r?r+" "+o:r+o:r}typeof Al<"u"&&Al.exports?(t.default=t,Al.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Rb=q((C8,Gp)=>{"use strict";var BP=Object.prototype.hasOwnProperty,Xt="~";function Aa(){}Object.create&&(Aa.prototype=Object.create(null),new Aa().__proto__||(Xt=!1));function NP(i,t,e){this.fn=i,this.context=t,this.once=e||!1}function Ab(i,t,e,n,r){if(typeof e!="function")throw new TypeError("The listener must be a function");var o=new NP(e,n||i,r),a=Xt?Xt+t:t;return i._events[a]?i._events[a].fn?i._events[a]=[i._events[a],o]:i._events[a].push(o):(i._events[a]=o,i._eventsCount++),i}function Jl(i,t){--i._eventsCount===0?i._events=new Aa:delete i._events[t]}function Ut(){this._events=new Aa,this._eventsCount=0}Ut.prototype.eventNames=function(){var t=[],e,n;if(this._eventsCount===0)return t;for(n in e=this._events)BP.call(e,n)&&t.push(Xt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};Ut.prototype.listeners=function(t){var e=Xt?Xt+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a};Ut.prototype.listenerCount=function(t){var e=Xt?Xt+t:t,n=this._events[e];return n?n.fn?1:n.length:0};Ut.prototype.emit=function(t,e,n,r,o,a){var s=Xt?Xt+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,d,p;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,o),!0;case 6:return l.fn.call(l.context,e,n,r,o,a),!0}for(p=1,d=new Array(c-1);p<c;p++)d[p-1]=arguments[p];l.fn.apply(l.context,d)}else{var v=l.length,g;for(p=0;p<v;p++)switch(l[p].once&&this.removeListener(t,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,e);break;case 3:l[p].fn.call(l[p].context,e,n);break;case 4:l[p].fn.call(l[p].context,e,n,r);break;default:if(!d)for(g=1,d=new Array(c-1);g<c;g++)d[g-1]=arguments[g];l[p].fn.apply(l[p].context,d)}}return!0};Ut.prototype.on=function(t,e,n){return Ab(this,t,e,n,!1)};Ut.prototype.once=function(t,e,n){return Ab(this,t,e,n,!0)};Ut.prototype.removeListener=function(t,e,n,r){var o=Xt?Xt+t:t;if(!this._events[o])return this;if(!e)return Jl(this,o),this;var a=this._events[o];if(a.fn)a.fn===e&&(!r||a.once)&&(!n||a.context===n)&&Jl(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:Jl(this,o)}return this};Ut.prototype.removeAllListeners=function(t){var e;return t?(e=Xt?Xt+t:t,this._events[e]&&Jl(this,e)):(this._events=new Aa,this._eventsCount=0),this};Ut.prototype.off=Ut.prototype.removeListener;Ut.prototype.addListener=Ut.prototype.on;Ut.prefixed=Xt;Ut.EventEmitter=Ut;typeof Gp<"u"&&(Gp.exports=Ut)});var Sv=q((Du,ku)=>{(function(i,t){typeof Du=="object"&&typeof ku<"u"?ku.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self,i.Compressor=t())})(Du,function(){"use strict";function i(A,I){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);I&&(M=M.filter(function(R){return Object.getOwnPropertyDescriptor(A,R).enumerable})),T.push.apply(T,M)}return T}function t(A){for(var I=1;I<arguments.length;I++){var T=arguments[I]!=null?arguments[I]:{};I%2?i(Object(T),!0).forEach(function(M){o(A,M,T[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):i(Object(T)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(T,M))})}return A}function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function n(A,I){for(var T=0;T<I.length;T++){var M=I[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,l(M.key),M)}}function r(A,I,T){return I&&n(A.prototype,I),T&&n(A,T),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,I,T){return I=l(I),I in A?Object.defineProperty(A,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):A[I]=T,A}function a(){return a=Object.assign?Object.assign.bind():function(A){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(A[M]=T[M])}return A},a.apply(this,arguments)}function s(A,I){if(typeof A!="object"||A===null)return A;var T=A[Symbol.toPrimitive];if(T!==void 0){var M=T.call(A,I||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(A)}function l(A){var I=s(A,"string");return typeof I=="symbol"?I:String(I)}var c={exports:{}};(function(A){typeof window>"u"||function(I){var T=I.HTMLCanvasElement&&I.HTMLCanvasElement.prototype,M=I.Blob&&function(){try{return!!new Blob}catch{return!1}}(),R=M&&I.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),Y=I.BlobBuilder||I.WebKitBlobBuilder||I.MozBlobBuilder||I.MSBlobBuilder,le=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,Z=(M||Y)&&I.atob&&I.ArrayBuffer&&I.Uint8Array&&function(Q){var te,de,ue,Pe,re,oe,De,ke,Zt;if(te=Q.match(le),!te)throw new Error("invalid data URI");for(de=te[2]?te[1]:"text/plain"+(te[3]||";charset=US-ASCII"),ue=!!te[4],Pe=Q.slice(te[0].length),ue?re=atob(Pe):re=decodeURIComponent(Pe),oe=new ArrayBuffer(re.length),De=new Uint8Array(oe),ke=0;ke<re.length;ke+=1)De[ke]=re.charCodeAt(ke);return M?new Blob([R?De:oe],{type:de}):(Zt=new Y,Zt.append(oe),Zt.getBlob(de))};I.HTMLCanvasElement&&!T.toBlob&&(T.mozGetAsFile?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){de&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.mozGetAsFile("blob",te))})}:T.toDataURL&&Z&&(T.msToBlob?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){(te&&te!=="image/png"||de)&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.msToBlob(te))})}:T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){Q(Z(ue.toDataURL(te,de)))})})),A.exports?A.exports=Z:I.dataURLtoBlob=Z}(window)})(c);var d=c.exports,p=function(I){return typeof Blob>"u"?!1:I instanceof Blob||Object.prototype.toString.call(I)==="[object Blob]"},v={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},g=typeof window<"u"&&typeof window.document<"u",w=g?window:{},E=function(I){return I>0&&I<1/0},L=Array.prototype.slice;function F(A){return Array.from?Array.from(A):L.call(A)}var G=/^image\/.+$/;function he(A){return G.test(A)}function me(A){var I=he(A)?A.substr(6):"";return I==="jpeg"&&(I="jpg"),".".concat(I)}var ae=String.fromCharCode;function y(A,I,T){var M="",R;for(T+=I,R=I;R<T;R+=1)M+=ae(A.getUint8(R));return M}var x=w.btoa;function D(A,I){for(var T=[],M=8192,R=new Uint8Array(A);R.length>0;)T.push(ae.apply(null,F(R.subarray(0,M)))),R=R.subarray(M);return"data:".concat(I,";base64,").concat(x(T.join("")))}function z(A){var I=new DataView(A),T;try{var M,R,Y;if(I.getUint8(0)===255&&I.getUint8(1)===216)for(var le=I.byteLength,Z=2;Z+1<le;){if(I.getUint8(Z)===255&&I.getUint8(Z+1)===225){R=Z;break}Z+=1}if(R){var Q=R+4,te=R+10;if(y(I,Q,4)==="Exif"){var de=I.getUint16(te);if(M=de===18761,(M||de===19789)&&I.getUint16(te+2,M)===42){var ue=I.getUint32(te+4,M);ue>=8&&(Y=te+ue)}}}if(Y){var Pe=I.getUint16(Y,M),re,oe;for(oe=0;oe<Pe;oe+=1)if(re=Y+oe*12+2,I.getUint16(re,M)===274){re+=8,T=I.getUint16(re,M),I.setUint16(re,1,M);break}}}catch{T=1}return T}function V(A){var I=0,T=1,M=1;switch(A){case 2:T=-1;break;case 3:I=-180;break;case 4:M=-1;break;case 5:I=90,M=-1;break;case 6:I=90;break;case 7:I=90,T=-1;break;case 8:I=-90;break}return{rotate:I,scaleX:T,scaleY:M}}var ie=/\.\d*(?:0|9){12}\d*$/;function Ie(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ie.test(A)?Math.round(A*I)/I:A}function it(A){var I=A.aspectRatio,T=A.height,M=A.width,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",Y=E(M),le=E(T);if(Y&&le){var Z=T*I;(R==="contain"||R==="none")&&Z>M||R==="cover"&&Z<M?T=M/I:M=T*I}else Y?T=M/I:le&&(M=T*I);return{width:M,height:T}}function Be(A){for(var I=F(new Uint8Array(A)),T=I.length,M=[],R=0;R+3<T;){var Y=I[R],le=I[R+1];if(Y===255&&le===218)break;if(Y===255&&le===216)R+=2;else{var Z=I[R+2]*256+I[R+3],Q=R+Z+2,te=I.slice(R,Q);M.push(te),R=Q}}return M.reduce(function(de,ue){return ue[0]===255&&ue[1]===225?de.concat(ue):de},[])}function Oe(A,I){var T=F(new Uint8Array(A));if(T[2]!==255||T[3]!==224)return A;var M=T[4]*256+T[5],R=[255,216].concat(I,T.slice(4+M));return new Uint8Array(R)}var ne=w.ArrayBuffer,nt=w.FileReader,se=w.URL||w.webkitURL,ai=/\.\w+$/,xe=w.Compressor,ee=function(){function A(I,T){e(this,A),this.file=I,this.exif=[],this.image=new Image,this.options=t(t({},v),T),this.aborted=!1,this.result=null,this.init()}return r(A,[{key:"init",value:function(){var T=this,M=this.file,R=this.options;if(!p(M)){this.fail(new Error("The first argument must be a File or Blob object."));return}var Y=M.type;if(!he(Y)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!se||!nt){this.fail(new Error("The current browser does not support image compression."));return}ne||(R.checkOrientation=!1,R.retainExif=!1);var le=Y==="image/jpeg",Z=le&&R.checkOrientation,Q=le&&R.retainExif;if(se&&!Z&&!Q)this.load({url:se.createObjectURL(M)});else{var te=new nt;this.reader=te,te.onload=function(de){var ue=de.target,Pe=ue.result,re={},oe=1;Z&&(oe=z(Pe),oe>1&&a(re,V(oe))),Q&&(T.exif=Be(Pe)),Z||Q?!se||oe>1?re.url=D(Pe,Y):re.url=se.createObjectURL(M):re.url=Pe,T.load(re)},te.onabort=function(){T.fail(new Error("Aborted to read the image with FileReader."))},te.onerror=function(){T.fail(new Error("Failed to read the image with FileReader."))},te.onloadend=function(){T.reader=null},Z||Q?te.readAsArrayBuffer(M):te.readAsDataURL(M)}}},{key:"load",value:function(T){var M=this,R=this.file,Y=this.image;Y.onload=function(){M.draw(t(t({},T),{},{naturalWidth:Y.naturalWidth,naturalHeight:Y.naturalHeight}))},Y.onabort=function(){M.fail(new Error("Aborted to load the image."))},Y.onerror=function(){M.fail(new Error("Failed to load the image."))},w.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(w.navigator.userAgent)&&(Y.crossOrigin="anonymous"),Y.alt=R.name,Y.src=T.url}},{key:"draw",value:function(T){var M=this,R=T.naturalWidth,Y=T.naturalHeight,le=T.rotate,Z=le===void 0?0:le,Q=T.scaleX,te=Q===void 0?1:Q,de=T.scaleY,ue=de===void 0?1:de,Pe=this.file,re=this.image,oe=this.options,De=document.createElement("canvas"),ke=De.getContext("2d"),Zt=Math.abs(Z)%180===90,si=(oe.resize==="contain"||oe.resize==="cover")&&E(oe.width)&&E(oe.height),ot=Math.max(oe.maxWidth,0)||1/0,Jt=Math.max(oe.maxHeight,0)||1/0,We=Math.max(oe.minWidth,0)||0,Mt=Math.max(oe.minHeight,0)||0,Ot=R/Y,Ke=oe.width,yt=oe.height;if(Zt){var tn=[Jt,ot];ot=tn[0],Jt=tn[1];var li=[Mt,We];We=li[0],Mt=li[1];var Pn=[yt,Ke];Ke=Pn[0],yt=Pn[1]}si&&(Ot=Ke/yt);var So=it({aspectRatio:Ot,width:ot,height:Jt},"contain");ot=So.width,Jt=So.height;var jh=it({aspectRatio:Ot,width:We,height:Mt},"cover");if(We=jh.width,Mt=jh.height,si){var Hh=it({aspectRatio:Ot,width:Ke,height:yt},oe.resize);Ke=Hh.width,yt=Hh.height}else{var Vh=it({aspectRatio:Ot,width:Ke,height:yt}),Uh=Vh.width;Ke=Uh===void 0?R:Uh;var Wh=Vh.height;yt=Wh===void 0?Y:Wh}Ke=Math.floor(Ie(Math.min(Math.max(Ke,We),ot))),yt=Math.floor(Ie(Math.min(Math.max(yt,Mt),Jt)));var dy=-Ke/2,py=-yt/2,uy=Ke,hy=yt,Ic=[];if(si){var $h=0,qh=0,Dc=R,kc=Y,Gh=it({aspectRatio:Ot,width:R,height:Y},{contain:"cover",cover:"contain"}[oe.resize]);Dc=Gh.width,kc=Gh.height,$h=(R-Dc)/2,qh=(Y-kc)/2,Ic.push($h,qh,Dc,kc)}if(Ic.push(dy,py,uy,hy),Zt){var Yh=[yt,Ke];Ke=Yh[0],yt=Yh[1]}De.width=Ke,De.height=yt,he(oe.mimeType)||(oe.mimeType=Pe.type);var Xh="transparent";Pe.size>oe.convertSize&&oe.convertTypes.indexOf(oe.mimeType)>=0&&(oe.mimeType="image/jpeg");var Kh=oe.mimeType==="image/jpeg";if(Kh&&(Xh="#fff"),ke.fillStyle=Xh,ke.fillRect(0,0,Ke,yt),oe.beforeDraw&&oe.beforeDraw.call(this,ke,De),!this.aborted&&(ke.save(),ke.translate(Ke/2,yt/2),ke.rotate(Z*Math.PI/180),ke.scale(te,ue),ke.drawImage.apply(ke,[re].concat(Ic)),ke.restore(),oe.drew&&oe.drew.call(this,ke,De),!this.aborted)){var Qh=function(Po){if(!M.aborted){var Zh=function(Eo){return M.done({naturalWidth:R,naturalHeight:Y,result:Eo})};if(Po&&Kh&&oe.retainExif&&M.exif&&M.exif.length>0){var Jh=function(Eo){return Zh(d(D(Oe(Eo,M.exif),oe.mimeType)))};if(Po.arrayBuffer)Po.arrayBuffer().then(Jh).catch(function(){M.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var xr=new nt;M.reader=xr,xr.onload=function(Tc){var Eo=Tc.target;Jh(Eo.result)},xr.onabort=function(){M.fail(new Error("Aborted to read the compressed image with FileReader."))},xr.onerror=function(){M.fail(new Error("Failed to read the compressed image with FileReader."))},xr.onloadend=function(){M.reader=null},xr.readAsArrayBuffer(Po)}}else Zh(Po)}};De.toBlob?De.toBlob(Qh,oe.mimeType,oe.quality):Qh(d(De.toDataURL(oe.mimeType,oe.quality)))}}},{key:"done",value:function(T){var M=T.naturalWidth,R=T.naturalHeight,Y=T.result,le=this.file,Z=this.image,Q=this.options;if(se&&Z.src.indexOf("blob:")===0&&se.revokeObjectURL(Z.src),Y)if(Q.strict&&!Q.retainExif&&Y.size>le.size&&Q.mimeType===le.type&&!(Q.width>M||Q.height>R||Q.minWidth>M||Q.minHeight>R||Q.maxWidth<M||Q.maxHeight<R))Y=le;else{var te=new Date;Y.lastModified=te.getTime(),Y.lastModifiedDate=te,Y.name=le.name,Y.name&&Y.type!==le.type&&(Y.name=Y.name.replace(ai,me(Y.type)))}else Y=le;this.result=Y,Q.success&&Q.success.call(this,Y)}},{key:"fail",value:function(T){var M=this.options;if(M.error)M.error.call(this,T);else throw T}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=xe,A}},{key:"setDefaults",value:function(T){a(v,T)}}]),A}();return ee})});var Dv=q((Mu,Ou)=>{((i,t)=>{typeof define=="function"&&define.amd?define([],t):typeof Ou=="object"&&typeof Mu<"u"?Ou.exports=t():i.Papa=t()})(Mu,function i(){var t=typeof self<"u"?self:typeof window<"u"?window:t!==void 0?t:{},e,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,o={},a=0,s={};function l(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(x){var D=he(x);D.chunkSize=parseInt(D.chunkSize),x.step||x.chunk||(D.chunkSize=null),this._handle=new g(D),(this._handle.streamer=this)._config=D}.call(this,y),this.parseChunk=function(x,D){var z=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<z){let ie=this._config.newline;ie||(V=this._config.quoteChar||'"',ie=this._handle.guessLineEndings(x,V)),x=[...x.split(ie).slice(z)].join(ie)}this.isFirstChunk&&ae(this._config.beforeFirstChunk)&&(V=this._config.beforeFirstChunk(x))!==void 0&&(x=V),this.isFirstChunk=!1,this._halted=!1;var z=this._partialLine+x,V=(this._partialLine="",this._handle.parse(z,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(x=V.meta.cursor,z=(this._finished||(this._partialLine=z.substring(x-this._baseIndex),this._baseIndex=x),V&&V.data&&(this._rowCount+=V.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:V,workerId:s.WORKER_ID,finished:z});else if(ae(this._config.chunk)&&!D){if(this._config.chunk(V,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=V=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(V.data),this._completeResults.errors=this._completeResults.errors.concat(V.errors),this._completeResults.meta=V.meta),this._completed||!z||!ae(this._config.complete)||V&&V.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||V&&V.meta.paused||this._nextChunk(),V}this._halted=!0},this._sendError=function(x){ae(this._config.error)?this._config.error(x):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:x,finished:!1})}}function c(y){var x;(y=y||{}).chunkSize||(y.chunkSize=s.RemoteChunkSize),l.call(this,y),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(x=new XMLHttpRequest,this._config.withCredentials&&(x.withCredentials=this._config.withCredentials),n||(x.onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)),x.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var D,z=this._config.downloadRequestHeaders;for(D in z)x.setRequestHeader(D,z[D])}var V;this._config.chunkSize&&(V=this._start+this._config.chunkSize-1,x.setRequestHeader("Range","bytes="+this._start+"-"+V));try{x.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}n&&x.status===0&&this._chunkError()}},this._chunkLoaded=function(){x.readyState===4&&(x.status<200||400<=x.status?this._chunkError():(this._start+=this._config.chunkSize||x.responseText.length,this._finished=!this._config.chunkSize||this._start>=(D=>(D=D.getResponseHeader("Content-Range"))!==null?parseInt(D.substring(D.lastIndexOf("/")+1)):-1)(x),this.parseChunk(x.responseText)))},this._chunkError=function(D){D=x.statusText||D,this._sendError(new Error(D))}}function d(y){(y=y||{}).chunkSize||(y.chunkSize=s.LocalChunkSize),l.call(this,y);var x,D,z=typeof FileReader<"u";this.stream=function(V){this._input=V,D=V.slice||V.webkitSlice||V.mozSlice,z?((x=new FileReader).onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)):x=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var V=this._input,ie=(this._config.chunkSize&&(ie=Math.min(this._start+this._config.chunkSize,this._input.size),V=D.call(V,this._start,ie)),x.readAsText(V,this._config.encoding));z||this._chunkLoaded({target:{result:ie}})},this._chunkLoaded=function(V){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(V.target.result)},this._chunkError=function(){this._sendError(x.error)}}function p(y){var x;l.call(this,y=y||{}),this.stream=function(D){return x=D,this._nextChunk()},this._nextChunk=function(){var D,z;if(!this._finished)return D=this._config.chunkSize,x=D?(z=x.substring(0,D),x.substring(D)):(z=x,""),this._finished=!x,this.parseChunk(z)}}function v(y){l.call(this,y=y||{});var x=[],D=!0,z=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(V){this._input=V,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&x.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),x.length?this.parseChunk(x.shift()):D=!0},this._streamData=me(function(V){try{x.push(typeof V=="string"?V:V.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(x.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=me(function(V){this._streamCleanUp(),this._sendError(V)},this),this._streamEnd=me(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=me(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(y){var x,D,z,V,ie=Math.pow(2,53),Ie=-ie,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Be=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oe=this,ne=0,nt=0,se=!1,ai=!1,xe=[],ee={data:[],errors:[],meta:{}};function A(R){return y.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function I(){if(ee&&z&&(M("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),z=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!A(Q)})),T()){let Q=function(te,de){ae(y.transformHeader)&&(te=y.transformHeader(te,de)),xe.push(te)};var Z=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;T()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function Y(Q,te){for(var de=y.header?{}:[],ue=0;ue<Q.length;ue++){var Pe=ue,re=Q[ue],re=((oe,De)=>(ke=>(y.dynamicTypingFunction&&y.dynamicTyping[ke]===void 0&&(y.dynamicTyping[ke]=y.dynamicTypingFunction(ke)),(y.dynamicTyping[ke]||y.dynamicTyping)===!0))(oe)?De==="true"||De==="TRUE"||De!=="false"&&De!=="FALSE"&&((ke=>{if(it.test(ke)&&(ke=parseFloat(ke),Ie<ke&&ke<ie))return 1})(De)?parseFloat(De):Be.test(De)?new Date(De):De===""?null:De):De)(Pe=y.header?ue>=xe.length?"__parsed_extra":xe[ue]:Pe,re=y.transform?y.transform(re,Pe):re);Pe==="__parsed_extra"?(de[Pe]=de[Pe]||[],de[Pe].push(re)):de[Pe]=re}return y.header&&(ue>xe.length?M("FieldMismatch","TooManyFields","Too many fields: expected "+xe.length+" fields but parsed "+ue,nt+te):ue<xe.length&&M("FieldMismatch","TooFewFields","Too few fields: expected "+xe.length+" fields but parsed "+ue,nt+te)),de}var le;ee&&(y.header||y.dynamicTyping||y.transform)&&(le=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(Y),le=ee.data.length):ee.data=Y(ee.data,0),y.header&&ee.meta&&(ee.meta.fields=xe),nt+=le)}function T(){return y.header&&xe.length===0}function M(R,Y,le,Z){R={type:R,code:Y,message:le},Z!==void 0&&(R.row=Z),ee.errors.push(R)}ae(y.step)&&(V=y.step,y.step=function(R){ee=R,T()?I():(I(),ee.data.length!==0&&(ne+=R.data.length,y.preview&&ne>y.preview?D.abort():(ee.data=ee.data[0],V(ee,Oe))))}),this.parse=function(R,Y,le){var Z=y.quoteChar||'"',Z=(y.newline||(y.newline=this.guessLineEndings(R,Z)),z=!1,y.delimiter?ae(y.delimiter)&&(y.delimiter=y.delimiter(R),ee.meta.delimiter=y.delimiter):((Z=((Q,te,de,ue,Pe)=>{var re,oe,De,ke;Pe=Pe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Zt=0;Zt<Pe.length;Zt++){for(var si,ot=Pe[Zt],Jt=0,We=0,Mt=0,Ot=(De=void 0,new E({comments:ue,delimiter:ot,newline:te,preview:10}).parse(Q)),Ke=0;Ke<Ot.data.length;Ke++)de&&A(Ot.data[Ke])?Mt++:(si=Ot.data[Ke].length,We+=si,De===void 0?De=si:0<si&&(Jt+=Math.abs(si-De),De=si));0<Ot.data.length&&(We/=Ot.data.length-Mt),(oe===void 0||Jt<=oe)&&(ke===void 0||ke<We)&&1.99<We&&(oe=Jt,re=ot,ke=We)}return{successful:!!(y.delimiter=re),bestDelimiter:re}})(R,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=Z.bestDelimiter:(z=!0,y.delimiter=s.DefaultDelimiter),ee.meta.delimiter=y.delimiter),he(y));return y.preview&&y.header&&Z.preview++,x=R,D=new E(Z),ee=D.parse(x,Y,le),I(),se?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return se},this.pause=function(){se=!0,D.abort(),x=ae(y.chunk)?"":x.substring(D.getCharIndex())},this.resume=function(){Oe.streamer._halted?(se=!1,Oe.streamer.parseChunk(x,!0)):setTimeout(Oe.resume,3)},this.aborted=function(){return ai},this.abort=function(){ai=!0,D.abort(),ee.meta.aborted=!0,ae(y.complete)&&y.complete(ee),x=""},this.guessLineEndings=function(Q,Z){Q=Q.substring(0,1048576);var Z=new RegExp(w(Z)+"([^]*?)"+w(Z),"gm"),le=(Q=Q.replace(Z,"")).split("\r"),Z=Q.split(`
|
|
1
|
+
import{a as Ss,b as Ls,c as Im}from"./chunk-BVFPFG2Y.js";import{a as js,b as $i,c as Di,d as Hs}from"./chunk-WV652PSI.js";import{a as Vc}from"./chunk-LNBGLQGG.js";import{$ as Em,B as kt,C as Vt,D as Es,F as Is,G as Ds,H as Ui,I as gt,J as bt,K as Br,L as ks,M as Ts,N as Ms,O as Os,P as Fs,Q as As,S as Cm,T as Sm,U as Rs,V as Bs,W as Ns,Y as zs,Z as Pm,a as Pi,aa as zr,b as xs,d as Cs,da as Wi,ia as $c,ja as Dm,k as vm,l as Vi,n as Ei,o as _m,q as ym,r as Rt,s as Dt,t as wm,u as Rr,v as ht,w as mt,x as xm,y as ft,z as Ps}from"./chunk-AJDEWWQT.js";import{$a as fs,$b as ce,$c as Hc,Aa as Ge,Ab as W,Ac as dm,Ad as et,Bc as pm,C as wt,Ca as U,Cb as ci,Cc as um,Cd as bm,D as us,Da as O,Dc as di,Ea as Fc,Eb as gs,Ec as fe,Fa as Ac,Fc as He,Gb as To,Gc as Fo,H as Hi,Ha as pe,Hb as kn,I as qe,Ia as _e,Id as Ao,J as em,Ja as Ve,Jb as zc,Jc as Je,Jd as $n,Ka as ms,Kb as B,Kc as pi,Kd as Ro,Lb as cm,Lc as Si,M as tm,Mb as Ci,Mc as jc,Md as Ii,N as im,Nc as we,Nd as sn,O as nm,Oa as sm,Ob as Lt,P as Hn,Pd as Nr,Qd as Uc,Ra as $t,Rb as H,Rd as Wc,S as Vn,Sa as X,Sb as Lc,Ta as K,Tb as Mo,U as at,Ua as Rc,Ub as $e,Uc as hm,Va as Bc,Vb as C,Wa as Ye,Wb as Oo,Xa as Ct,Xb as Ze,Xc as It,Y as Mc,Yb as rn,Z as En,Za as je,Zb as bs,Zc as xt,_a as Ue,_c as mm,a as _,aa as Pr,ab as ko,ac as kr,ad as fm,b as k,bb as Ce,bc as Tn,bd as an,c as Cr,ca as In,cb as Dn,cc as St,d as q,dc as Pt,e as Ne,ea as rm,ec as h,fa as Do,fc as m,g as j,gb as Nc,gc as J,h as Sr,ha as om,hb as Ir,hc as vs,hd as ze,i as cs,ib as lm,ic as _s,j as ds,jc as on,k as ps,kc as Se,l as ei,lc as Tr,md as ys,n as Ft,na as am,nc as N,oa as Oc,oc as S,od as Mn,pa as hs,pc as jt,q as Te,qa as Ai,qc as At,qd as Mr,r as Io,ra as nn,sa as ti,sb as Dr,sc as Et,ta as Ee,tc as ut,ub as Un,uc as Fe,ud as Or,vc as Ae,vd as Fr,wa as Er,wc as Wn,xa as be,xc as b,xd as ws,ya as ve,yc as P,yd as Ar,zb as f,zc as Ht,zd as gm}from"./chunk-PNNBJ4WR.js";var of=q((pA,rf)=>{var s1=4,l1=.001,c1=1e-7,d1=10,Vo=11,Ks=1/(Vo-1),p1=typeof Float32Array=="function";function Jm(i,t){return 1-3*t+3*i}function ef(i,t){return 3*t-6*i}function tf(i){return 3*i}function Qs(i,t,e){return((Jm(t,e)*i+ef(t,e))*i+tf(t))*i}function nf(i,t,e){return 3*Jm(t,e)*i*i+2*ef(t,e)*i+tf(t)}function u1(i,t,e,n,r){var o,a,s=0;do a=t+(e-t)/2,o=Qs(a,n,r)-i,o>0?e=a:t=a;while(Math.abs(o)>c1&&++s<d1);return a}function h1(i,t,e,n){for(var r=0;r<s1;++r){var o=nf(t,e,n);if(o===0)return t;var a=Qs(t,e,n)-i;t-=a/o}return t}function m1(i){return i}rf.exports=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return m1;for(var o=p1?new Float32Array(Vo):new Array(Vo),a=0;a<Vo;++a)o[a]=Qs(a*Ks,t,n);function s(l){for(var c=0,d=1,p=Vo-1;d!==p&&o[d]<=l;++d)c+=Ks;--d;var v=(l-o[d])/(o[d+1]-o[d]),g=c+v*Ks,w=nf(g,t,n);return w>=l1?h1(l,g,t,n):w===0?g:u1(l,c,c+Ks,t,n)}return function(c){return c===0?0:c===1?1:Qs(s(c),e,r)}}});var Cg=q((nz,xg)=>{xg.exports=function(){var t={},e=t._fns={};t.emit=function(a,s,l,c,d,p,v){var g=n(a);g.length&&r(a,g,[s,l,c,d,p,v])},t.on=function(a,s){e[a]||(e[a]=[]),e[a].push(s)},t.once=function(a,s){function l(){s.apply(this,arguments),t.off(a,l)}this.on(a,l)},t.off=function(a,s){var l=[];if(a&&s){var c=this._fns[a],d=0,p=c?c.length:0;for(d;d<p;d++)c[d]!==s&&l.push(c[d])}l.length?this._fns[a]=l:delete this._fns[a]};function n(o){var a=e[o]?e[o]:[],s=o.indexOf(":"),l=s===-1?[o]:[o.substring(0,s),o.substring(s+1)],c=Object.keys(e),d=0,p=c.length;for(d;d<p;d++){var v=c[d];if(v==="*"&&(a=a.concat(e[v])),l.length===2&&l[0]===v){a=a.concat(e[v]);break}}return a}function r(o,a,s){var l=0,c=a.length;for(l;l<c&&a[l];l++)a[l].event=o,a[l].apply(a[l],s)}return t}});var wl=q((oz,Sg)=>{function cC(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}Sg.exports=cC});var Eg=q((az,Pg)=>{var dC=typeof global=="object"&&global&&global.Object===Object&&global;Pg.exports=dC});var Ld=q((sz,Ig)=>{var pC=Eg(),uC=typeof self=="object"&&self&&self.Object===Object&&self,hC=pC||uC||Function("return this")();Ig.exports=hC});var kg=q((lz,Dg)=>{var mC=Ld(),fC=function(){return mC.Date.now()};Dg.exports=fC});var Mg=q((cz,Tg)=>{var gC=/\s/;function bC(i){for(var t=i.length;t--&&gC.test(i.charAt(t)););return t}Tg.exports=bC});var Fg=q((dz,Og)=>{var vC=Mg(),_C=/^\s+/;function yC(i){return i&&i.slice(0,vC(i)+1).replace(_C,"")}Og.exports=yC});var jd=q((pz,Ag)=>{var wC=Ld(),xC=wC.Symbol;Ag.exports=xC});var zg=q((uz,Ng)=>{var Rg=jd(),Bg=Object.prototype,CC=Bg.hasOwnProperty,SC=Bg.toString,ia=Rg?Rg.toStringTag:void 0;function PC(i){var t=CC.call(i,ia),e=i[ia];try{i[ia]=void 0;var n=!0}catch{}var r=SC.call(i);return n&&(t?i[ia]=e:delete i[ia]),r}Ng.exports=PC});var jg=q((hz,Lg)=>{var EC=Object.prototype,IC=EC.toString;function DC(i){return IC.call(i)}Lg.exports=DC});var Wg=q((mz,Ug)=>{var Hg=jd(),kC=zg(),TC=jg(),MC="[object Null]",OC="[object Undefined]",Vg=Hg?Hg.toStringTag:void 0;function FC(i){return i==null?i===void 0?OC:MC:Vg&&Vg in Object(i)?kC(i):TC(i)}Ug.exports=FC});var qg=q((fz,$g)=>{function AC(i){return i!=null&&typeof i=="object"}$g.exports=AC});var Yg=q((gz,Gg)=>{var RC=Wg(),BC=qg(),NC="[object Symbol]";function zC(i){return typeof i=="symbol"||BC(i)&&RC(i)==NC}Gg.exports=zC});var Zg=q((bz,Qg)=>{var LC=Fg(),Xg=wl(),jC=Yg(),Kg=NaN,HC=/^[-+]0x[0-9a-f]+$/i,VC=/^0b[01]+$/i,UC=/^0o[0-7]+$/i,WC=parseInt;function $C(i){if(typeof i=="number")return i;if(jC(i))return Kg;if(Xg(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=Xg(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=LC(i);var e=VC.test(i);return e||UC.test(i)?WC(i.slice(2),e?2:8):HC.test(i)?Kg:+i}Qg.exports=$C});var Vd=q((vz,e0)=>{var qC=wl(),Hd=kg(),Jg=Zg(),GC="Expected a function",YC=Math.max,XC=Math.min;function KC(i,t,e){var n,r,o,a,s,l,c=0,d=!1,p=!1,v=!0;if(typeof i!="function")throw new TypeError(GC);t=Jg(t)||0,qC(e)&&(d=!!e.leading,p="maxWait"in e,o=p?YC(Jg(e.maxWait)||0,t):o,v="trailing"in e?!!e.trailing:v);function g(y){var x=n,D=r;return n=r=void 0,c=y,a=i.apply(D,x),a}function w(y){return c=y,s=setTimeout(F,t),d?g(y):a}function E(y){var x=y-l,D=y-c,z=t-x;return p?XC(z,o-D):z}function L(y){var x=y-l,D=y-c;return l===void 0||x>=t||x<0||p&&D>=o}function F(){var y=Hd();if(L(y))return G(y);s=setTimeout(F,E(y))}function G(y){return s=void 0,v&&n?g(y):(n=r=void 0,a)}function he(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function me(){return s===void 0?a:G(Hd())}function ae(){var y=Hd(),x=L(y);if(n=arguments,r=this,l=y,x){if(s===void 0)return w(l);if(p)return clearTimeout(s),s=setTimeout(F,t),g(l)}return s===void 0&&(s=setTimeout(F,t)),a}return ae.cancel=he,ae.flush=me,ae}e0.exports=KC});var i0=q((_z,t0)=>{var QC=Vd(),ZC=wl(),JC="Expected a function";function eS(i,t,e){var n=!0,r=!0;if(typeof i!="function")throw new TypeError(JC);return ZC(e)&&(n="leading"in e?!!e.leading:n,r="trailing"in e?!!e.trailing:r),QC(i,t,{leading:n,maxWait:t,trailing:r})}t0.exports=eS});var ra=q((Rz,c0)=>{"use strict";c0.exports=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);let e=t<0,n=Math.abs(t);if(e&&(n=-n),n===0)return"0 B";let r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),a=Number(n/1024**o),s=r[o];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${s}`}});var u0=q((Bz,p0)=>{"use strict";function d0(i,t){this.text=i=i||"",this.hasWild=~i.indexOf("*"),this.separator=t,this.parts=i.split(t)}d0.prototype.match=function(i){var t=!0,e=this.parts,n,r=e.length,o;if(typeof i=="string"||i instanceof String)if(!this.hasWild&&this.text!=i)t=!1;else{for(o=(i||"").split(this.separator),n=0;t&&n<r;n++)e[n]!=="*"&&(n<o.length?t=e[n]===o[n]:t=!1);t=t&&o}else if(typeof i.splice=="function")for(t=[],n=i.length;n--;)this.match(i[n])&&(t[t.length]=i[n]);else if(typeof i=="object"){t={};for(var a in i)this.match(a)&&(t[a]=i[a])}return t};p0.exports=function(i,t,e){var n=new d0(i,e||/[\/\.]/);return typeof t<"u"?n.match(t):n}});var m0=q((Nz,h0)=>{var aS=u0(),sS=/[\/\+\.]/;h0.exports=function(i,t){function e(n){var r=aS(n,i,sS);return r&&r.length>=2}return t?e(t.split(";")[0]):e}});var Gt=q((v4,Al)=>{(function(){"use strict";var i={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=n(r,e(a)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)i.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(r,o){return o?r?r+" "+o:r+o:r}typeof Al<"u"&&Al.exports?(t.default=t,Al.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Rb=q((C8,Gp)=>{"use strict";var BP=Object.prototype.hasOwnProperty,Xt="~";function Aa(){}Object.create&&(Aa.prototype=Object.create(null),new Aa().__proto__||(Xt=!1));function NP(i,t,e){this.fn=i,this.context=t,this.once=e||!1}function Ab(i,t,e,n,r){if(typeof e!="function")throw new TypeError("The listener must be a function");var o=new NP(e,n||i,r),a=Xt?Xt+t:t;return i._events[a]?i._events[a].fn?i._events[a]=[i._events[a],o]:i._events[a].push(o):(i._events[a]=o,i._eventsCount++),i}function Jl(i,t){--i._eventsCount===0?i._events=new Aa:delete i._events[t]}function Ut(){this._events=new Aa,this._eventsCount=0}Ut.prototype.eventNames=function(){var t=[],e,n;if(this._eventsCount===0)return t;for(n in e=this._events)BP.call(e,n)&&t.push(Xt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};Ut.prototype.listeners=function(t){var e=Xt?Xt+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a};Ut.prototype.listenerCount=function(t){var e=Xt?Xt+t:t,n=this._events[e];return n?n.fn?1:n.length:0};Ut.prototype.emit=function(t,e,n,r,o,a){var s=Xt?Xt+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,d,p;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,o),!0;case 6:return l.fn.call(l.context,e,n,r,o,a),!0}for(p=1,d=new Array(c-1);p<c;p++)d[p-1]=arguments[p];l.fn.apply(l.context,d)}else{var v=l.length,g;for(p=0;p<v;p++)switch(l[p].once&&this.removeListener(t,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,e);break;case 3:l[p].fn.call(l[p].context,e,n);break;case 4:l[p].fn.call(l[p].context,e,n,r);break;default:if(!d)for(g=1,d=new Array(c-1);g<c;g++)d[g-1]=arguments[g];l[p].fn.apply(l[p].context,d)}}return!0};Ut.prototype.on=function(t,e,n){return Ab(this,t,e,n,!1)};Ut.prototype.once=function(t,e,n){return Ab(this,t,e,n,!0)};Ut.prototype.removeListener=function(t,e,n,r){var o=Xt?Xt+t:t;if(!this._events[o])return this;if(!e)return Jl(this,o),this;var a=this._events[o];if(a.fn)a.fn===e&&(!r||a.once)&&(!n||a.context===n)&&Jl(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:Jl(this,o)}return this};Ut.prototype.removeAllListeners=function(t){var e;return t?(e=Xt?Xt+t:t,this._events[e]&&Jl(this,e)):(this._events=new Aa,this._eventsCount=0),this};Ut.prototype.off=Ut.prototype.removeListener;Ut.prototype.addListener=Ut.prototype.on;Ut.prefixed=Xt;Ut.EventEmitter=Ut;typeof Gp<"u"&&(Gp.exports=Ut)});var Sv=q((Du,ku)=>{(function(i,t){typeof Du=="object"&&typeof ku<"u"?ku.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self,i.Compressor=t())})(Du,function(){"use strict";function i(A,I){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);I&&(M=M.filter(function(R){return Object.getOwnPropertyDescriptor(A,R).enumerable})),T.push.apply(T,M)}return T}function t(A){for(var I=1;I<arguments.length;I++){var T=arguments[I]!=null?arguments[I]:{};I%2?i(Object(T),!0).forEach(function(M){o(A,M,T[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):i(Object(T)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(T,M))})}return A}function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function n(A,I){for(var T=0;T<I.length;T++){var M=I[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,l(M.key),M)}}function r(A,I,T){return I&&n(A.prototype,I),T&&n(A,T),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,I,T){return I=l(I),I in A?Object.defineProperty(A,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):A[I]=T,A}function a(){return a=Object.assign?Object.assign.bind():function(A){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(A[M]=T[M])}return A},a.apply(this,arguments)}function s(A,I){if(typeof A!="object"||A===null)return A;var T=A[Symbol.toPrimitive];if(T!==void 0){var M=T.call(A,I||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(A)}function l(A){var I=s(A,"string");return typeof I=="symbol"?I:String(I)}var c={exports:{}};(function(A){typeof window>"u"||function(I){var T=I.HTMLCanvasElement&&I.HTMLCanvasElement.prototype,M=I.Blob&&function(){try{return!!new Blob}catch{return!1}}(),R=M&&I.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),Y=I.BlobBuilder||I.WebKitBlobBuilder||I.MozBlobBuilder||I.MSBlobBuilder,le=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,Z=(M||Y)&&I.atob&&I.ArrayBuffer&&I.Uint8Array&&function(Q){var te,de,ue,Pe,re,oe,De,ke,Zt;if(te=Q.match(le),!te)throw new Error("invalid data URI");for(de=te[2]?te[1]:"text/plain"+(te[3]||";charset=US-ASCII"),ue=!!te[4],Pe=Q.slice(te[0].length),ue?re=atob(Pe):re=decodeURIComponent(Pe),oe=new ArrayBuffer(re.length),De=new Uint8Array(oe),ke=0;ke<re.length;ke+=1)De[ke]=re.charCodeAt(ke);return M?new Blob([R?De:oe],{type:de}):(Zt=new Y,Zt.append(oe),Zt.getBlob(de))};I.HTMLCanvasElement&&!T.toBlob&&(T.mozGetAsFile?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){de&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.mozGetAsFile("blob",te))})}:T.toDataURL&&Z&&(T.msToBlob?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){(te&&te!=="image/png"||de)&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.msToBlob(te))})}:T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){Q(Z(ue.toDataURL(te,de)))})})),A.exports?A.exports=Z:I.dataURLtoBlob=Z}(window)})(c);var d=c.exports,p=function(I){return typeof Blob>"u"?!1:I instanceof Blob||Object.prototype.toString.call(I)==="[object Blob]"},v={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},g=typeof window<"u"&&typeof window.document<"u",w=g?window:{},E=function(I){return I>0&&I<1/0},L=Array.prototype.slice;function F(A){return Array.from?Array.from(A):L.call(A)}var G=/^image\/.+$/;function he(A){return G.test(A)}function me(A){var I=he(A)?A.substr(6):"";return I==="jpeg"&&(I="jpg"),".".concat(I)}var ae=String.fromCharCode;function y(A,I,T){var M="",R;for(T+=I,R=I;R<T;R+=1)M+=ae(A.getUint8(R));return M}var x=w.btoa;function D(A,I){for(var T=[],M=8192,R=new Uint8Array(A);R.length>0;)T.push(ae.apply(null,F(R.subarray(0,M)))),R=R.subarray(M);return"data:".concat(I,";base64,").concat(x(T.join("")))}function z(A){var I=new DataView(A),T;try{var M,R,Y;if(I.getUint8(0)===255&&I.getUint8(1)===216)for(var le=I.byteLength,Z=2;Z+1<le;){if(I.getUint8(Z)===255&&I.getUint8(Z+1)===225){R=Z;break}Z+=1}if(R){var Q=R+4,te=R+10;if(y(I,Q,4)==="Exif"){var de=I.getUint16(te);if(M=de===18761,(M||de===19789)&&I.getUint16(te+2,M)===42){var ue=I.getUint32(te+4,M);ue>=8&&(Y=te+ue)}}}if(Y){var Pe=I.getUint16(Y,M),re,oe;for(oe=0;oe<Pe;oe+=1)if(re=Y+oe*12+2,I.getUint16(re,M)===274){re+=8,T=I.getUint16(re,M),I.setUint16(re,1,M);break}}}catch{T=1}return T}function V(A){var I=0,T=1,M=1;switch(A){case 2:T=-1;break;case 3:I=-180;break;case 4:M=-1;break;case 5:I=90,M=-1;break;case 6:I=90;break;case 7:I=90,T=-1;break;case 8:I=-90;break}return{rotate:I,scaleX:T,scaleY:M}}var ie=/\.\d*(?:0|9){12}\d*$/;function Ie(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ie.test(A)?Math.round(A*I)/I:A}function it(A){var I=A.aspectRatio,T=A.height,M=A.width,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",Y=E(M),le=E(T);if(Y&&le){var Z=T*I;(R==="contain"||R==="none")&&Z>M||R==="cover"&&Z<M?T=M/I:M=T*I}else Y?T=M/I:le&&(M=T*I);return{width:M,height:T}}function Be(A){for(var I=F(new Uint8Array(A)),T=I.length,M=[],R=0;R+3<T;){var Y=I[R],le=I[R+1];if(Y===255&&le===218)break;if(Y===255&&le===216)R+=2;else{var Z=I[R+2]*256+I[R+3],Q=R+Z+2,te=I.slice(R,Q);M.push(te),R=Q}}return M.reduce(function(de,ue){return ue[0]===255&&ue[1]===225?de.concat(ue):de},[])}function Oe(A,I){var T=F(new Uint8Array(A));if(T[2]!==255||T[3]!==224)return A;var M=T[4]*256+T[5],R=[255,216].concat(I,T.slice(4+M));return new Uint8Array(R)}var ne=w.ArrayBuffer,nt=w.FileReader,se=w.URL||w.webkitURL,ai=/\.\w+$/,xe=w.Compressor,ee=function(){function A(I,T){e(this,A),this.file=I,this.exif=[],this.image=new Image,this.options=t(t({},v),T),this.aborted=!1,this.result=null,this.init()}return r(A,[{key:"init",value:function(){var T=this,M=this.file,R=this.options;if(!p(M)){this.fail(new Error("The first argument must be a File or Blob object."));return}var Y=M.type;if(!he(Y)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!se||!nt){this.fail(new Error("The current browser does not support image compression."));return}ne||(R.checkOrientation=!1,R.retainExif=!1);var le=Y==="image/jpeg",Z=le&&R.checkOrientation,Q=le&&R.retainExif;if(se&&!Z&&!Q)this.load({url:se.createObjectURL(M)});else{var te=new nt;this.reader=te,te.onload=function(de){var ue=de.target,Pe=ue.result,re={},oe=1;Z&&(oe=z(Pe),oe>1&&a(re,V(oe))),Q&&(T.exif=Be(Pe)),Z||Q?!se||oe>1?re.url=D(Pe,Y):re.url=se.createObjectURL(M):re.url=Pe,T.load(re)},te.onabort=function(){T.fail(new Error("Aborted to read the image with FileReader."))},te.onerror=function(){T.fail(new Error("Failed to read the image with FileReader."))},te.onloadend=function(){T.reader=null},Z||Q?te.readAsArrayBuffer(M):te.readAsDataURL(M)}}},{key:"load",value:function(T){var M=this,R=this.file,Y=this.image;Y.onload=function(){M.draw(t(t({},T),{},{naturalWidth:Y.naturalWidth,naturalHeight:Y.naturalHeight}))},Y.onabort=function(){M.fail(new Error("Aborted to load the image."))},Y.onerror=function(){M.fail(new Error("Failed to load the image."))},w.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(w.navigator.userAgent)&&(Y.crossOrigin="anonymous"),Y.alt=R.name,Y.src=T.url}},{key:"draw",value:function(T){var M=this,R=T.naturalWidth,Y=T.naturalHeight,le=T.rotate,Z=le===void 0?0:le,Q=T.scaleX,te=Q===void 0?1:Q,de=T.scaleY,ue=de===void 0?1:de,Pe=this.file,re=this.image,oe=this.options,De=document.createElement("canvas"),ke=De.getContext("2d"),Zt=Math.abs(Z)%180===90,si=(oe.resize==="contain"||oe.resize==="cover")&&E(oe.width)&&E(oe.height),ot=Math.max(oe.maxWidth,0)||1/0,Jt=Math.max(oe.maxHeight,0)||1/0,We=Math.max(oe.minWidth,0)||0,Mt=Math.max(oe.minHeight,0)||0,Ot=R/Y,Ke=oe.width,yt=oe.height;if(Zt){var tn=[Jt,ot];ot=tn[0],Jt=tn[1];var li=[Mt,We];We=li[0],Mt=li[1];var Pn=[yt,Ke];Ke=Pn[0],yt=Pn[1]}si&&(Ot=Ke/yt);var So=it({aspectRatio:Ot,width:ot,height:Jt},"contain");ot=So.width,Jt=So.height;var jh=it({aspectRatio:Ot,width:We,height:Mt},"cover");if(We=jh.width,Mt=jh.height,si){var Hh=it({aspectRatio:Ot,width:Ke,height:yt},oe.resize);Ke=Hh.width,yt=Hh.height}else{var Vh=it({aspectRatio:Ot,width:Ke,height:yt}),Uh=Vh.width;Ke=Uh===void 0?R:Uh;var Wh=Vh.height;yt=Wh===void 0?Y:Wh}Ke=Math.floor(Ie(Math.min(Math.max(Ke,We),ot))),yt=Math.floor(Ie(Math.min(Math.max(yt,Mt),Jt)));var dy=-Ke/2,py=-yt/2,uy=Ke,hy=yt,Ic=[];if(si){var $h=0,qh=0,Dc=R,kc=Y,Gh=it({aspectRatio:Ot,width:R,height:Y},{contain:"cover",cover:"contain"}[oe.resize]);Dc=Gh.width,kc=Gh.height,$h=(R-Dc)/2,qh=(Y-kc)/2,Ic.push($h,qh,Dc,kc)}if(Ic.push(dy,py,uy,hy),Zt){var Yh=[yt,Ke];Ke=Yh[0],yt=Yh[1]}De.width=Ke,De.height=yt,he(oe.mimeType)||(oe.mimeType=Pe.type);var Xh="transparent";Pe.size>oe.convertSize&&oe.convertTypes.indexOf(oe.mimeType)>=0&&(oe.mimeType="image/jpeg");var Kh=oe.mimeType==="image/jpeg";if(Kh&&(Xh="#fff"),ke.fillStyle=Xh,ke.fillRect(0,0,Ke,yt),oe.beforeDraw&&oe.beforeDraw.call(this,ke,De),!this.aborted&&(ke.save(),ke.translate(Ke/2,yt/2),ke.rotate(Z*Math.PI/180),ke.scale(te,ue),ke.drawImage.apply(ke,[re].concat(Ic)),ke.restore(),oe.drew&&oe.drew.call(this,ke,De),!this.aborted)){var Qh=function(Po){if(!M.aborted){var Zh=function(Eo){return M.done({naturalWidth:R,naturalHeight:Y,result:Eo})};if(Po&&Kh&&oe.retainExif&&M.exif&&M.exif.length>0){var Jh=function(Eo){return Zh(d(D(Oe(Eo,M.exif),oe.mimeType)))};if(Po.arrayBuffer)Po.arrayBuffer().then(Jh).catch(function(){M.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var xr=new nt;M.reader=xr,xr.onload=function(Tc){var Eo=Tc.target;Jh(Eo.result)},xr.onabort=function(){M.fail(new Error("Aborted to read the compressed image with FileReader."))},xr.onerror=function(){M.fail(new Error("Failed to read the compressed image with FileReader."))},xr.onloadend=function(){M.reader=null},xr.readAsArrayBuffer(Po)}}else Zh(Po)}};De.toBlob?De.toBlob(Qh,oe.mimeType,oe.quality):Qh(d(De.toDataURL(oe.mimeType,oe.quality)))}}},{key:"done",value:function(T){var M=T.naturalWidth,R=T.naturalHeight,Y=T.result,le=this.file,Z=this.image,Q=this.options;if(se&&Z.src.indexOf("blob:")===0&&se.revokeObjectURL(Z.src),Y)if(Q.strict&&!Q.retainExif&&Y.size>le.size&&Q.mimeType===le.type&&!(Q.width>M||Q.height>R||Q.minWidth>M||Q.minHeight>R||Q.maxWidth<M||Q.maxHeight<R))Y=le;else{var te=new Date;Y.lastModified=te.getTime(),Y.lastModifiedDate=te,Y.name=le.name,Y.name&&Y.type!==le.type&&(Y.name=Y.name.replace(ai,me(Y.type)))}else Y=le;this.result=Y,Q.success&&Q.success.call(this,Y)}},{key:"fail",value:function(T){var M=this.options;if(M.error)M.error.call(this,T);else throw T}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=xe,A}},{key:"setDefaults",value:function(T){a(v,T)}}]),A}();return ee})});var Dv=q((Mu,Ou)=>{((i,t)=>{typeof define=="function"&&define.amd?define([],t):typeof Ou=="object"&&typeof Mu<"u"?Ou.exports=t():i.Papa=t()})(Mu,function i(){var t=typeof self<"u"?self:typeof window<"u"?window:t!==void 0?t:{},e,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,o={},a=0,s={};function l(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(x){var D=he(x);D.chunkSize=parseInt(D.chunkSize),x.step||x.chunk||(D.chunkSize=null),this._handle=new g(D),(this._handle.streamer=this)._config=D}.call(this,y),this.parseChunk=function(x,D){var z=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<z){let ie=this._config.newline;ie||(V=this._config.quoteChar||'"',ie=this._handle.guessLineEndings(x,V)),x=[...x.split(ie).slice(z)].join(ie)}this.isFirstChunk&&ae(this._config.beforeFirstChunk)&&(V=this._config.beforeFirstChunk(x))!==void 0&&(x=V),this.isFirstChunk=!1,this._halted=!1;var z=this._partialLine+x,V=(this._partialLine="",this._handle.parse(z,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(x=V.meta.cursor,z=(this._finished||(this._partialLine=z.substring(x-this._baseIndex),this._baseIndex=x),V&&V.data&&(this._rowCount+=V.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:V,workerId:s.WORKER_ID,finished:z});else if(ae(this._config.chunk)&&!D){if(this._config.chunk(V,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=V=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(V.data),this._completeResults.errors=this._completeResults.errors.concat(V.errors),this._completeResults.meta=V.meta),this._completed||!z||!ae(this._config.complete)||V&&V.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||V&&V.meta.paused||this._nextChunk(),V}this._halted=!0},this._sendError=function(x){ae(this._config.error)?this._config.error(x):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:x,finished:!1})}}function c(y){var x;(y=y||{}).chunkSize||(y.chunkSize=s.RemoteChunkSize),l.call(this,y),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(x=new XMLHttpRequest,this._config.withCredentials&&(x.withCredentials=this._config.withCredentials),n||(x.onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)),x.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var D,z=this._config.downloadRequestHeaders;for(D in z)x.setRequestHeader(D,z[D])}var V;this._config.chunkSize&&(V=this._start+this._config.chunkSize-1,x.setRequestHeader("Range","bytes="+this._start+"-"+V));try{x.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}n&&x.status===0&&this._chunkError()}},this._chunkLoaded=function(){x.readyState===4&&(x.status<200||400<=x.status?this._chunkError():(this._start+=this._config.chunkSize||x.responseText.length,this._finished=!this._config.chunkSize||this._start>=(D=>(D=D.getResponseHeader("Content-Range"))!==null?parseInt(D.substring(D.lastIndexOf("/")+1)):-1)(x),this.parseChunk(x.responseText)))},this._chunkError=function(D){D=x.statusText||D,this._sendError(new Error(D))}}function d(y){(y=y||{}).chunkSize||(y.chunkSize=s.LocalChunkSize),l.call(this,y);var x,D,z=typeof FileReader<"u";this.stream=function(V){this._input=V,D=V.slice||V.webkitSlice||V.mozSlice,z?((x=new FileReader).onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)):x=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var V=this._input,ie=(this._config.chunkSize&&(ie=Math.min(this._start+this._config.chunkSize,this._input.size),V=D.call(V,this._start,ie)),x.readAsText(V,this._config.encoding));z||this._chunkLoaded({target:{result:ie}})},this._chunkLoaded=function(V){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(V.target.result)},this._chunkError=function(){this._sendError(x.error)}}function p(y){var x;l.call(this,y=y||{}),this.stream=function(D){return x=D,this._nextChunk()},this._nextChunk=function(){var D,z;if(!this._finished)return D=this._config.chunkSize,x=D?(z=x.substring(0,D),x.substring(D)):(z=x,""),this._finished=!x,this.parseChunk(z)}}function v(y){l.call(this,y=y||{});var x=[],D=!0,z=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(V){this._input=V,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&x.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),x.length?this.parseChunk(x.shift()):D=!0},this._streamData=me(function(V){try{x.push(typeof V=="string"?V:V.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(x.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=me(function(V){this._streamCleanUp(),this._sendError(V)},this),this._streamEnd=me(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=me(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(y){var x,D,z,V,ie=Math.pow(2,53),Ie=-ie,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Be=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oe=this,ne=0,nt=0,se=!1,ai=!1,xe=[],ee={data:[],errors:[],meta:{}};function A(R){return y.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function I(){if(ee&&z&&(M("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),z=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!A(Q)})),T()){let Q=function(te,de){ae(y.transformHeader)&&(te=y.transformHeader(te,de)),xe.push(te)};var Z=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;T()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function Y(Q,te){for(var de=y.header?{}:[],ue=0;ue<Q.length;ue++){var Pe=ue,re=Q[ue],re=((oe,De)=>(ke=>(y.dynamicTypingFunction&&y.dynamicTyping[ke]===void 0&&(y.dynamicTyping[ke]=y.dynamicTypingFunction(ke)),(y.dynamicTyping[ke]||y.dynamicTyping)===!0))(oe)?De==="true"||De==="TRUE"||De!=="false"&&De!=="FALSE"&&((ke=>{if(it.test(ke)&&(ke=parseFloat(ke),Ie<ke&&ke<ie))return 1})(De)?parseFloat(De):Be.test(De)?new Date(De):De===""?null:De):De)(Pe=y.header?ue>=xe.length?"__parsed_extra":xe[ue]:Pe,re=y.transform?y.transform(re,Pe):re);Pe==="__parsed_extra"?(de[Pe]=de[Pe]||[],de[Pe].push(re)):de[Pe]=re}return y.header&&(ue>xe.length?M("FieldMismatch","TooManyFields","Too many fields: expected "+xe.length+" fields but parsed "+ue,nt+te):ue<xe.length&&M("FieldMismatch","TooFewFields","Too few fields: expected "+xe.length+" fields but parsed "+ue,nt+te)),de}var le;ee&&(y.header||y.dynamicTyping||y.transform)&&(le=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(Y),le=ee.data.length):ee.data=Y(ee.data,0),y.header&&ee.meta&&(ee.meta.fields=xe),nt+=le)}function T(){return y.header&&xe.length===0}function M(R,Y,le,Z){R={type:R,code:Y,message:le},Z!==void 0&&(R.row=Z),ee.errors.push(R)}ae(y.step)&&(V=y.step,y.step=function(R){ee=R,T()?I():(I(),ee.data.length!==0&&(ne+=R.data.length,y.preview&&ne>y.preview?D.abort():(ee.data=ee.data[0],V(ee,Oe))))}),this.parse=function(R,Y,le){var Z=y.quoteChar||'"',Z=(y.newline||(y.newline=this.guessLineEndings(R,Z)),z=!1,y.delimiter?ae(y.delimiter)&&(y.delimiter=y.delimiter(R),ee.meta.delimiter=y.delimiter):((Z=((Q,te,de,ue,Pe)=>{var re,oe,De,ke;Pe=Pe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Zt=0;Zt<Pe.length;Zt++){for(var si,ot=Pe[Zt],Jt=0,We=0,Mt=0,Ot=(De=void 0,new E({comments:ue,delimiter:ot,newline:te,preview:10}).parse(Q)),Ke=0;Ke<Ot.data.length;Ke++)de&&A(Ot.data[Ke])?Mt++:(si=Ot.data[Ke].length,We+=si,De===void 0?De=si:0<si&&(Jt+=Math.abs(si-De),De=si));0<Ot.data.length&&(We/=Ot.data.length-Mt),(oe===void 0||Jt<=oe)&&(ke===void 0||ke<We)&&1.99<We&&(oe=Jt,re=ot,ke=We)}return{successful:!!(y.delimiter=re),bestDelimiter:re}})(R,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=Z.bestDelimiter:(z=!0,y.delimiter=s.DefaultDelimiter),ee.meta.delimiter=y.delimiter),he(y));return y.preview&&y.header&&Z.preview++,x=R,D=new E(Z),ee=D.parse(x,Y,le),I(),se?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return se},this.pause=function(){se=!0,D.abort(),x=ae(y.chunk)?"":x.substring(D.getCharIndex())},this.resume=function(){Oe.streamer._halted?(se=!1,Oe.streamer.parseChunk(x,!0)):setTimeout(Oe.resume,3)},this.aborted=function(){return ai},this.abort=function(){ai=!0,D.abort(),ee.meta.aborted=!0,ae(y.complete)&&y.complete(ee),x=""},this.guessLineEndings=function(Q,Z){Q=Q.substring(0,1048576);var Z=new RegExp(w(Z)+"([^]*?)"+w(Z),"gm"),le=(Q=Q.replace(Z,"")).split("\r"),Z=Q.split(`
|
|
2
2
|
`),Q=1<Z.length&&Z[0].length<le[0].length;if(le.length===1||Q)return`
|
|
3
3
|
`;for(var te=0,de=0;de<le.length;de++)le[de][0]===`
|
|
4
4
|
`&&te++;return te>=le.length/2?`\r
|
|
@@ -38,7 +38,9 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
|
|
|
38
38
|
display: flex;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
padding: 0;
|
|
41
|
-
-webkit-print-color-adjust: exact;
|
|
41
|
+
-webkit-print-color-adjust: exact; /* Chrome, Safari, Edge */
|
|
42
|
+
print-color-adjust: exact; /* Standard property (draft, mulai dipakai) */
|
|
43
|
+
color-adjust: exact; /* Firefox lama (deprecated) */
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
#print-wrapper {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne,b as ie,c as oe,d as re}from"./chunk-WV652PSI.js";import{a as A}from"./chunk-HUVXW473.js";import{A as K,D as J,F as Q,G as X,H as Y,J as ee,da as te,ja as E,n as O,v as $,w as y,y as W,z as Z}from"./chunk-AJDEWWQT.js";import{$b as v,C as U,Da as g,Ec as R,Fc as I,Ha as N,I as V,Jc as j,Kb as C,Kc as q,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as G,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-PNNBJ4WR.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=U([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/pages/v2/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(q(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,G,ee,J,$,W,Z,Q,X,oe,ie,ne,B],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.createUrlTree(["/pages/shelf/barcode"],{queryParams:{step:0}});case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var Ge=[{path:"",component:le,canActivate:[se]}];export{Ge as AUTH_ROUTES};
|
|
1
|
+
import{a as ne,b as ie,c as oe,d as re}from"./chunk-WV652PSI.js";import{a as A}from"./chunk-LNBGLQGG.js";import{A as K,D as J,F as Q,G as X,H as Y,J as ee,da as te,ja as E,n as O,v as $,w as y,y as W,z as Z}from"./chunk-AJDEWWQT.js";import{$b as v,C as U,Da as g,Ec as R,Fc as I,Ha as N,I as V,Jc as j,Kb as C,Kc as q,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as G,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-PNNBJ4WR.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=U([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/pages/v2/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(q(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,G,ee,J,$,W,Z,Q,X,oe,ie,ne,B],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.createUrlTree(["/pages/shelf/barcode"],{queryParams:{step:0}});case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var Ge=[{path:"",component:le,canActivate:[se]}];export{Ge as AUTH_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"25.
|
|
1
|
+
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"25.39.0"};export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as N,e as $,f as z,g as A,i as k}from"./chunk-
|
|
1
|
+
import{b as N,e as $,f as z,g as A,i as k}from"./chunk-GTRDHGVN.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-LNBGLQGG.js";import{da as H,l as I,n as B,r as q}from"./chunk-AJDEWWQT.js";import{Ad as F,C as u,Da as i,Ec as b,Ha as P,I as C,J as v,Kb as w,Nc as R,Rb as S,Vb as a,Xa as _,Z as g,a as h,b as f,ec as D,fc as T,gc as c,hc as s,ic as p,rd as x,sd as M,ta as y,td as E,zb as d}from"./chunk-PNNBJ4WR.js";function L(t,m){t&1&&(s(0),c(1,"choose-product"),p())}function O(t,m){if(t&1&&c(0,"app-barcode-preview",4),t&2){let e=m.$implicit;a("items",e)}}function U(t,m){t&1&&(s(0),D(1,"app-customize-label"),S(2,O,1,1,"ng-template",null,0,R),T(),p())}function V(t,m){t&1&&(s(0),c(1,"app-print-preview"),p())}var se=(()=>{class t{constructor(){this.storeService=i(N),this.httpService=i(H),this.destroyRef=i(_),this.routes=i(I),this.router=i(B),this.step=w(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(g(n=>u({error:n}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(n=>u({error:n})));v([o,r]).pipe(q(this.destroyRef),C(([n,l])=>this.normalizeResponses(n,l)),y(({paperConfig:n,taxs:l})=>this.applyDataToStore(n,l))).subscribe()}normalizeResponses(e,o){let r=n=>n&&"error"in n;return{paperConfig:r(e)?null:e,taxs:r(o)?null:o}}applyDataToStore(e,o){e&&(this.storeService.onChangePaperConfig(f(h({},e),{PaperFormats:e.PaperFormats.map(r=>f(h({},r),{OutletID:null}))})),e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[b],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,r){o&1&&(s(0,1),S(1,L,2,0,"ng-container",2)(2,U,4,0,"ng-container",2)(3,V,2,0,"ng-container",3),p()),o&2&&(a("ngSwitch",r.storeService.stepper$().state),d(),a("ngSwitchCase",0),d(),a("ngSwitchCase",1))},dependencies:[$,F,x,M,E,A,z,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{se as ShelfBarcodeComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as z,e as k,g as A,h as H,i as O}from"./chunk-
|
|
1
|
+
import{b as z,e as k,g as A,h as H,i as O}from"./chunk-GTRDHGVN.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-LNBGLQGG.js";import{da as N,l as E,r as F}from"./chunk-AJDEWWQT.js";import{Ad as R,C as d,Da as l,Ec as T,Ha as S,I as _,J as u,Nc as I,Rb as f,Vb as a,Xa as v,Z as g,ac as b,cc as y,dc as w,ec as D,fc as L,gc as p,hc as s,ic as m,qd as P,rd as x,sd as $,ta as C,td as M,zb as c}from"./chunk-PNNBJ4WR.js";function U(t,i){t&1&&(s(0),p(1,"choose-product"),m())}function V(t,i){t&1&&p(0,"div",7)}function j(t,i){if(t&1&&(p(0,"app-label-preview",5),f(1,V,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;a("item",e),c(),a("ngIf",n!==r-1)}}function q(t,i){if(t&1&&y(0,j,2,2,null,null,b),t&2){let e=i.$implicit;w(e)}}function B(t,i){t&1&&(s(0),D(1,"app-customize-label",4),f(2,q,2,0,"ng-template",null,0,I),L(),m())}function G(t,i){t&1&&(s(0),p(1,"app-print-preview"),m())}var pe=(()=>{class t{constructor(){this.store=l(z),this.httpService=l(N),this.destroyRef=l(v),this.routes=l(E)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.store.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let n=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(g(o=>d({error:o}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(o=>d({error:o})));u([n,r]).pipe(F(this.destroyRef),_(([o,h])=>this.normalizeResponses(o,h)),C(({paperConfig:o,taxs:h})=>this.applyDataToStore(o,h))).subscribe()}normalizeResponses(e,n){let r=o=>o&&"error"in o;return{paperConfig:r(e)?null:e,taxs:r(n)?null:n}}applyDataToStore(e,n){e&&this.store.onChangeShelfLabelConfig(e),n&&this.store.onChangeTaxs(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-shelf-label"]],standalone:!0,features:[T],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["sidebarConfig","label"],[3,"item"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){n&1&&(s(0,1),f(1,U,2,0,"ng-container",2)(2,B,4,0,"ng-container",2)(3,G,2,0,"ng-container",3),m()),n&2&&(a("ngSwitch",r.store.stepper$().state),c(),a("ngSwitchCase",0),c(),a("ngSwitchCase",1))},dependencies:[k,A,O,R,P,x,$,M,H],styles:["[_nghost-%COMP%]{display:block}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{pe as ShelfLabelComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as q,b as v,c as G,d as J,e as K,f as Q,g as X,h as Y,i as Z}from"./chunk-
|
|
1
|
+
import{a as q,b as v,c as G,d as J,e as K,f as Q,g as X,h as Y,i as Z}from"./chunk-GTRDHGVN.js";import"./chunk-BVFPFG2Y.js";import{d as W}from"./chunk-WV652PSI.js";import"./chunk-LNBGLQGG.js";import{I as j,J as O,R as $,_ as V,da as U,l as P,m as z,n as B,q as N,r as H}from"./chunk-AJDEWWQT.js";import{$b as w,Ab as L,Ad as E,C as k,Da as n,Ec as f,Fc as D,Ha as p,I as y,J as F,Nc as R,Rb as u,Ub as S,Vb as r,Xa as M,Z as g,a as x,b as C,ec as l,fc as m,gc as o,nc as h,oc as b,od as A,ta as T,wb as I,zb as _}from"./chunk-PNNBJ4WR.js";var se=e=>({"show-sidebar":e}),ee=(()=>{class e{constructor(i){this.router=i,this.storeService=n(v)}Logo(){this.storeService.onChangeOptions({expandLogo:!this.storeService.options().expandLogo})}ngOnInit(){this.storeService.onChangeOptions({defaultSidebar:this.storeService.options().sidebartype}),this.handleSidebar()}onResize(i){this.handleSidebar()}handleSidebar(){switch(this.storeService.onChangeOptions({innerWidth:window.innerWidth}),this.storeService.options().defaultSidebar){case"full":case"iconbar":this.storeService.options().innerWidth<1170?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;case"overlay":this.storeService.options().innerWidth<767?this.storeService.onChangeOptions({sidebartype:"mini-sidebar"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}toggleSidebarType(){switch(this.storeService.options().sidebartype){case"full":case"iconbar":this.storeService.onChangeOptions({sidebartype:"mini-sidebar"});break;case"overlay":this.storeService.onChangeOptions({showMobileMenu:!this.storeService.options().showMobileMenu});break;case"mini-sidebar":this.storeService.options().defaultSidebar==="mini-sidebar"?this.storeService.onChangeOptions({sidebartype:"full"}):this.storeService.onChangeOptions({sidebartype:this.storeService.options().defaultSidebar});break;default:}}handleClick(i){this.storeService.onChangeOptions({showMobileMenu:i})}static{this.\u0275fac=function(a){return new(a||e)(L(B))}}static{this.\u0275cmp=p({type:e,selectors:[["app-full-layout"]],hostBindings:function(a,t){a&1&&h("resize",function(d){return t.onResize(d)},!1,I)},standalone:!0,features:[f],decls:5,vars:12,consts:[["id","main-wrapper",2,"height","100vh",3,"ngClass","dir"],[1,"left-sidebar","pt-0",3,"mouseover","mouseout"],[3,"notify","showClass"],[1,"page-wrapper","flex-grow-1","pt-0","z-0",2,"height","inherit"]],template:function(a,t){a&1&&(l(0,"div",0)(1,"aside",1),h("mouseover",function(){return t.Logo()})("mouseout",function(){return t.Logo()}),l(2,"app-vertical-sidebar",2),h("notify",function(d){return t.handleClick(d)}),m()(),l(3,"div",3),o(4,"router-outlet"),m()()),a&2&&(r("ngClass",D(10,se,t.storeService.options().showMobileMenu))("dir",t.storeService.options().dir),S("data-theme",t.storeService.options().theme)("data-layout",t.storeService.options().layout)("data-sidebartype",t.storeService.options().sidebartype)("data-sidebar-position",t.storeService.options().sidebarpos)("data-header-position",t.storeService.options().headerpos)("data-boxed-layout",t.storeService.options().boxed),_(),S("data-sidebarbg",t.storeService.options().sidebarbg),_(),r("showClass",t.storeService.options().showMobileMenu))},dependencies:[N,z,J,G,V,j,O,E,A,$]})}}return e})();function ne(e,c){e&1&&o(0,"choose-product")}function oe(e,c){if(e&1&&o(0,"app-barcode-preview",1),e&2){let i=b().$implicit;r("items",i)}}function re(e,c){if(e&1&&o(0,"app-label-preview",2),e&2){let i=b(3);r("item",i.storeService.expandProductItem()[0])}}function le(e,c){if(e&1&&u(0,oe,1,1,"app-barcode-preview",1)(1,re,1,1,"app-label-preview",2),e&2){let i=b(2);w(i.printMode==="barcode"?0:1)}}function ce(e,c){e&1&&(l(0,"app-customize-label"),u(1,le,2,1,"ng-template",null,0,R),m())}function de(e,c){e&1&&o(0,"app-print-preview")}var te=(()=>{class e{constructor(){this.storeService=n(v),this.httpService=n(U),this.destroyRef=n(M),this.routes=n(P)}get printMode(){return console.log("printMode",this.routes.snapshot.queryParamMap.get("printMode")),this.routes.snapshot.queryParamMap.get("printMode")}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}checkProtocol(i){return!!i.match(/^(https?):\/\//)}ngAfterViewInit(){let i=localStorage.getItem("Domain"),a=this.checkProtocol(i)?new URL(i).hostname:i;F([this.httpService.post("api/Config/PaperConfig",{SubDomain:a},void 0).pipe(g(t=>k({error:t}))),this.httpService.get("/API/V3/Tax",void 0,`https://${a}`).pipe(g(t=>k({error:t})))]).pipe(H(this.destroyRef),W("response"),y(([t,s])=>"error"in t||"error"in s?(console.warn("Error in one or more requests",{paperConfig:t,taxs:s}),{paperConfig:null,taxs:null}):{paperConfig:t,taxs:s}),T(({paperConfig:t,taxs:s})=>{t&&(this.storeService.onChangePaperConfig(C(x({},t),{PaperFormats:t.PaperFormats.map(d=>C(x({},d),{OutletID:null}))})),t.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(t.PaperFormats[0])),s&&this.storeService.onChangeTaxs(s)})).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=p({type:e,selectors:[["app-dashboard"]],standalone:!0,features:[f],decls:3,vars:1,consts:[["content",""],[3,"items"],[3,"item"]],template:function(a,t){if(a&1&&u(0,ne,1,0,"choose-product")(1,ce,3,0,"app-customize-label")(2,de,1,0,"app-print-preview"),a&2){let s;w((s=t.storeService.stepper$().state)===0?0:s===1?1:s===2?2:-1)}},dependencies:[q,K,X,Z,Y,Q]})}}return e})();var lt=[{path:"",children:[{path:"",component:te},{path:"v2/print-mode",loadComponent:()=>import("./chunk-QCOAAL7X.js").then(e=>e.PrintModeSelectorComponent)},{path:"shelf",component:ee,children:[{path:"barcode",loadComponent:()=>import("./chunk-MGIQFFXS.js").then(e=>e.ShelfBarcodeComponent)},{path:"price-label",loadComponent:()=>import("./chunk-U22W4G5K.js").then(e=>e.ShelfLabelComponent)}]}]}];export{lt as dashboardRoutes};
|