PageSourceSearch

https://www.editage.com/18102.bb0f387a30e9ffed.js

js editage.com collected 2026-10-01 10:22:38 UTC 13,164 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[18102],{44109:(F,C,c)=>{c.d(C,{T:()=>R});var m=c(10467),_=c(60177),b=c(15740),d=c(54438),i=c(80161),u=c(75777),P=c(80254);let R=(()=>{var O;class D{constructor(s,p,o){this.currencyExchangeService=s,this.siteService=p,this._helper=o,this.exchangeRates=null}transform(s,p=!1,o=null,v=!0,f=!1){var l=this;return(0,m.A)(function*(){if(!l._helper.inArray(l._helper.tld,b.a_["currency-conversion"]))return s;yield l.siteService.setCountry();try{const y=yield l.currencyExchangeService.getExchangeRates();if(l.exchangeRates=y,l.exchangeRates&&0===Object.keys(l.exchangeRates).length)return s;const g="string"==typeof s?s.replace(/[^\d.]/g,""):s;let w="";p&&"string"==typeof s&&s.split(""+g).pop()!==s&&s.split(""+g).pop().replace(/[\d., ]/g,"")&&(w=s.split(""+g).pop().replace(/[\d., ]/g,""));const I=l.formattedCurrency(s,o,v,g,w);return f?l.replacePrice(s,I):I}catch{return s}})()}replacePrice(s,p){return(0,m.A)(function*(){const o=String(s),v=yield p,f=String(v);return o===f?f:o.replace(/([^\s\d.,]*[\d.,]+(?:\s?\/\s?\S+)?)|([\d.,]+(?:\s?\/\s?\S+)?)/g,l=>{if(l.includes("/")){const y=l.split("/");return`${f}/${y[1]}`}return f})})()}formattedCurrency(s,p,o,v,f){var l=this;return(0,m.A)(function*(){const[y,g]=yield Promise.all([l.currencyExchangeService.getCurrencyByPartner(),l.currencyExchangeService.getCurrencyByGeoLocation()]);if(!(y&&g&&null!=g&&g.currency&&null!=g&&g.symbol&&v&&0!==v))return s;const w=l.calculateConvertedValue(v,y,g.currency);if(!w&&0!==w)return s;const T=(0,_.ZV)(w,"en_US",`1.${p||0}-${p||(0===w||w>=100?0:2)}`);return o?l.addCurrencySymbol(T,g.symbol)+f:T})()}calculateConvertedValue(s,p,o){const v=this.exchangeRates[p][o];return v?s*v:null}addCurrencySymbol(s,p){return s&&p?["\u20ac","\ufdfc","\u20bd"].indexOf(p)>-1?s+p:p+s:s}}return(O=D).\u0275fac=function(s){return new(s||O)(d.rXU(i.O,16),d.rXU(u.T,16),d.rXU(P.w,16))},O.\u0275pipe=d.EJ8({name:"localCurrency",type:O,pure:!0}),D})()},61251:(F,C,c)=>{c.d(C,{v:()=>_});var m=c(54438);let _=(()=>{var b;class d{}return(b=d).\u0275fac=function(u){return new(u||b)},b.\u0275mod=m.$C({type:b}),b.\u0275inj=m.G2t({}),d})()},80161:(F,C,c)=>{c.d(C,{O:()=>D});var m=c(10467),_=c(96354),b=c(79924),d=c(45312),i=c(54438),u=c(80254),P=c(21626),R=c(75777),O=c(81617);let D=(()=>{var S;class s{constructor(o,v,f,l){this._helper=o,this._http=v,this._siteService=f,this._storage=l}getExchangeRates(){return new Promise(o=>{const f=(new Date).toISOString().split("T")[0];if(!this._storage.getItem(f))return this._http.get(`https://${this._helper.isRunningInProduction?"":`${d.c.prefix}.`}${this._helper.apiUrl}/v1/get-exchange-rates`).pipe((0,_.T)(g=>(this._storage.setItem(f,btoa(JSON.stringify(g.data))),g.data))).subscribe(g=>{o(g)});o(JSON.parse(atob(this._storage.getItem(f))))})}getCurrencyByGeoLocation(){var o=this;return(0,m.A)(function*(){if(!o._siteService.country)return null;if(o._storage.getItem("GLBCD")){const v=o._storage.getItem("GLBCD");return JSON.parse(v).countryCode!==o._siteService.country?o._resetGLBCD():Promise.resolve(JSON.parse(v))}return o._setGLBCD()})()}_setGLBCD(){var o,v,f,l;if(!this._siteService.country)return null;const y={countryCode:this._siteService.country,currency:null!==(o=null===(v=b.rD[this._siteService.country])||void 0===v?void 0:v.currency)&&void 0!==o?o:null,symbol:null!==(f=null===(l=b.rD[this._siteService.country])||void 0===l?void 0:l.symbol)&&void 0!==f?f:null};return this._storage.setItem("GLBCD",JSON.stringify(y)),Promise.resolve(y)}_resetGLBCD(){return this._storage.removeItem("GLBCD"),this._setGLBCD()}getCurrencyByPartner(){var o;return null!==(o=b.x4[b.Ze[this._helper.tld].code])&&void 0!==o?o:null}}return(S=s).\u0275fac=function(o){return new(o||S)(i.KVO(u.w),i.KVO(P.Qq),i.KVO(R.T),i.KVO(O.s))},S.\u0275prov=i.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),s})()},87748:(F,C,c)=>{function _(e,t,r){(function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function b(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function d(e,t,r){return e.set(b(e,t),r),r}function i(e,t){return e.get(b(e,t))}c.d(C,{dQ:()=>dt,Hb:()=>he,Q5:()=>_t});var u=c(54438),P=c(92771),R=c(21413),O=c(60177),D=c(5964),S=c(56977),s="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,l=(s||o||Function("return this")()).Symbol,g=Object.prototype,w=g.hasOwnProperty,I=g.toString,T=l?l.toStringTag:void 0;var ge=Object.prototype.toString;var re=l?l.toStringTag:void 0;
1const j=function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":re&&re in Object(e)?function de(e){var t=w.call(e,T),r=e[T];try{e[T]=void 0;var n=!0}catch{}var a=I.call(e);return n&&(t?e[T]=r:delete e[T]),a}(e):function pe(e){return ge.call(e)}(e)},ne=function Ie(e){return null==e},ie=Array.isArray,W=function xe(e){return null!=e&&"object"==typeof e};var se=l?l.prototype:void 0,oe=se?se.toString:void 0;const Ne=function ce(e){if("string"==typeof e)return e;if(ie(e))return function Pe(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}(e,ce)+"";if(function Ve(e){return"symbol"==typeof e||W(e)&&"[object Symbol]"==j(e)}(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Fe=0;const ke=function Le(e){var t=++Fe;return function $e(e){return null==e?"":Ne(e)}(e)+t};let ae=(()=>{var e;class t{constructor(){this.destroyed$$=new P.m(1),this.destroyed$=this.destroyed$$.asObservable()}ngOnDestroy(){this.destroyed$$&&!this.destroyed$$.closed&&(this.destroyed$$.next(),this.destroyed$$.complete())}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=u.FsC({type:e,selectors:[["","inViewportDestroyable",""]],standalone:!0}),t})();const L=new WeakMap;var k=new WeakMap,G=new WeakMap;class tt{get value(){return i(k,this)}get id(){return i(G,this)}constructor(t){var r;_(this,k,void 0),_(this,G,void 0),d(k,this,function Ce(e){if(!function me(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?t:void 0);let n=null!==(r=L.get(t))&&void 0!==r?r:"in-viewport-empty-check-fn";!ne(t)&&!L.has(t)&&L.set(t,n=ke("in-viewport-check-fn-")),d(G,this,n)}}var B=function(e){return e.BOTH="both",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e}(B||{});class rt extends TypeError{constructor(){super(`The provided value for the direction is incorrect. The value must be any of \`${Object.values(B).join("|")}\`.`)}}class nt extends TypeError{constructor(){super("The provided value for the rootMargin is incorrect. The value must be specified in pixels or percent.")}}class it extends TypeError{constructor(){super("The provided value for the root is incorrect. The value must be of type '(Document or Element)'.")}}class st extends TypeError{constructor(){super("The provided values for the threshold are incorrect. The values must be numbers between 0 and 1.")}}var K=new WeakMap;class ot{get value(){return i(K,this)}constructor(t=B.VERTICAL){if(_(this,K,void 0),!Object.values(B).includes(t))throw new rt;d(K,this,t)}}var Y=new WeakMap;class ct{get value(){return i(Y,this)}constructor(t){_(this,Y,void 0),d(Y,this,!function Ke(e){return!0===e||!1===e||W(e)&&"[object Boolean]"==j(e)}(t)||t)}}var z=new WeakMap;class Q{get value(){return i(z,this)}constructor(t){_(this,z,void 0),d(z,this,Q.parse(t))}static parse(t){const n=(function Qe(e){return"string"==typeof e||!ie(e)&&W(e)&&"[object String]"==j(e)}(t)?t.trim():"0px").split(/\s+/);if(n.length<=4&&n.every(a=>/^-?\d*\.?\d+(px|%)$/.test(a))){const[a,h=a,E=a,vt=h]=n;return`${a} ${h} ${E} ${vt}`}throw new nt}}var X=new WeakMap;class H{get value(){return i(X,this)}constructor(t){_(this,X,void 0),d(X,this,H.validate(t))}static validate(t){if(ne(t))return null;if(t instanceof Element&&t.nodeType===Node.ELEMENT_NODE)return t;throw new it}}var J=new WeakMap;class x{get value(){return i(J,this)}constructor(t){_(this,J,void 0),d(J,this,x.validate(null!=t?t:[0,1]))}static validate(t){if(x.isValid(t))return[t];if(Array.isArray(t)&&t.every(r=>x.isValid(r)))return t.sort();throw new st}static isValid(t){return function Je(e){return"number"==typeof e||W(e)&&"[object Number]"==j(e)}(t)&&t>=0&&t<=1}}const le=Symbol("InViewportCheckFnId"),N=Symbol("InViewportConfigHash");var M=new WeakMap,Z=new WeakMap;class ue{get root(){return i(M,this).root.value}get rootMargin(){return i(M,this).rootMargin.value}get threshold(){return i(M,this).threshold.value}get partial(){return i(M,this).partial.value}get direction(){return i(M,this).direction.value}get checkFn(){return i(M,this).checkFn.value}get[le](){return i(M,this).checkFn.id}get[N](){return i(Z,this)}constructor(t){_(this,M,void 0),_(this,Z,void 0),null!=t||(t={}),d(M,this,Object.freeze({root:new H(t.root),rootMargin:new Q(t.rootMargin),threshold:new x(t.threshold),partial:new ct(t.partial),direction:new ot(t.direction),checkFn:new tt(t.checkFn)})),d(Z,this,ut(te({rootMargin:this.rootMargin,threshold:this.threshold,partial:this.partial,direction:this.direction,checkFn:this[le]})))}}var $=new WeakMap,A=new WeakMap,q=new WeakMap;class at{constructor(t,r){_(this,$,new Set),_(this,A,void 0),_(this,q,void 0),d(A,this,new IntersectionObserver((...n)=>{r.next(...n)},{root:t.root,rootMargin:t.rootMargin,threshold:[...t.threshold]})),d(q,this,()=>{i(A,this).disconnect(),r.complete()})}addNode(t){i($,this).add(t),i(A,this).observe(t)}deleteNode(t){i($,this).delete(t),i($,this).size?i(A,this).unobserve(t):i(q,this).call(this)}}var V=new WeakMap,ee=new WeakMap;class lt{constructor(t){_(this,V,new WeakMap),_(this,ee,void 0),d(ee,this,t)}addNode(t,r){var n,a;const h=null!==(n=i(V,this).get(null!==(a=r.root)&&void 0!==a?a:U._))&&void 0!==n?n:this.create(r),E=r[N];h.has(E)||this.insert(h,r),h.get(E).addNode(t)}deleteNode(t,r){var n;const a=i(V,this).get(null!==(n=r.root)&&void 0!==n?n:U._),h=r[N];var E;a&&a.has(h)&&a.get(h).deleteNode(t),a&&0===a.size&&i(V,this).delete(null!==(E=r.root)&&void 0!==E?E:U._)}create(t){var r;const n=new Map;return i(V,this).set(null!==(r=t.root)&&void 0!==r?r:U._,n),this.insert(n,t),n}insert(t,r){const n=r[N],a=new at(r,{next:(...h)=>{i(ee,this).call(this,...h)},complete:()=>{t.delete(n)}});t.set(n,a)}}var U={_:Object.create(null)};const te=e=>Array.isArray(e)?`[${e.map(te).join(",")}]`:(e=>"[object Object]"===Object.prototype.toString.call(e))(e)?Object.entries(e).sort(([t],[r])=>String(t).localeCompare(String(r))).map(([t,r])=>`${t}:${te(r)}`).join("|"):String(e),ut=e=>{try{const t=globalThis.encodeURI(e);return globalThis.btoa(t)}catch{return e}};let ht=(()=>{var e,t=new WeakMap,r=new WeakMap;
1class n{constructor(){_(this,t,void 0),_(this,r,void 0),d(t,this,new R.B),this.trigger$=i(t,this).asObservable(),this.zone=(0,u.WQX)(u.SKi),this.zone.runOutsideAngular(()=>{d(r,this,new lt(h=>this.onIntersectionEvent(h)))})}register(h,E){this.zone.runOutsideAngular(()=>{i(r,this).addNode(h,E)})}unregister(h,E){this.zone.runOutsideAngular(()=>{i(r,this).deleteNode(h,E)})}onIntersectionEvent(h=[]){this.zone.run(()=>h.forEach(E=>i(t,this).next(E)))}}return(e=n).\u0275fac=function(h){return new(h||e)},e.\u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),n})();const he=Symbol("InViewportMetadata");let dt=(()=>{var e;class t{constructor(){this.inViewportAction=new u.bkB,this.inViewportCustomCheck=new u.bkB,this.config=new ue({}),this.platformId=(0,u.WQX)(u.Agw),this.changeDetectorRef=(0,u.WQX)(u.gRc),this.elementRef=(0,u.WQX)(u.aKT),this.destroyable=(0,u.WQX)(ae,{self:!0}),this.inViewportService=(0,u.WQX)(ht)}set options(n){this.config=new ue(n)}get nativeElement(){return this.elementRef.nativeElement}ngAfterViewInit(){(0,O.UE)(this.platformId)?(this.inViewportService.trigger$.pipe((0,D.p)(n=>n.target===this.nativeElement),(0,S.Q)(this.destroyable.destroyed$)).subscribe(n=>{this.emit(n,!1),this.changeDetectorRef.markForCheck()}),this.inViewportService.register(this.nativeElement,this.config)):this.emit(void 0,!0,!0)}ngOnDestroy(){(0,O.UE)(this.platformId)&&(this.inViewportService.unregister(this.nativeElement,this.config),this.emit(void 0,!0,!1))}isVisible(n){return this.config.partial?n.isIntersecting||n.intersectionRatio>0:n.intersectionRatio>=1}emit(n,a,h){this.inViewportAction.emit({[he]:{entry:n},target:this.nativeElement,visible:a?!!h:!n||this.isVisible(n)}),this.config.checkFn&&this.inViewportCustomCheck.emit(this.config.checkFn(n,{force:a,forcedValue:a?!!h:void 0,config:this.config}))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=u.FsC({type:e,selectors:[["","inViewport",""]],inputs:{options:[u.Mj6.None,"inViewportOptions","options"]},outputs:{inViewportAction:"inViewportAction",inViewportCustomCheck:"inViewportCustomCheck"},standalone:!0,features:[u.nM4([ae])]}),t})(),_t=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=u.$C({type:e}),e.\u0275inj=u.G2t({}),t})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.