PageSourceSearch

https://www.swift.com.br/assets/currency-BHNsXQmd.js

js swift.com.br collected 2026-09-24 11:32:59 UTC 3,981 bytes, 1 lines download raw bytes

1import{j as l}from"./jsx-runtime-BIofhA_A.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"default"};var t=new r.Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="f276aa2a-3848-4d52-a8e9-218b19120bdf",r._sentryDebugIdIdentifier="sentry-dbid-f276aa2a-3848-4d52-a8e9-218b19120bdf")}catch{}})();let f=new Map,c=!1;try{c=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let u=!1;try{u=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const m={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class p{format(t){let e="";if(!c&&this.options.signDisplay!=null?e=b(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!u){var s;let{unit:a,unitDisplay:i="short",locale:n}=this.resolvedOptions();if(!a)return e;let o=(s=m[a])===null||s===void 0?void 0:s[i];e+=o[n]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let s=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(e);return[...s.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!c&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!u&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=h(t,e),this.options=e}}function h(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!u){var s;let{unit:n,unitDisplay:o="short"}=t;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((s=m[n])===null||s===void 0)&&s[o]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=r+(t?Object.entries(t).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(f.has(a))return f.get(a);let i=new Intl.NumberFormat(r,t);return f.set(a,i),i}function b(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let s=!1;if(t==="always"?s=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):s=e>0),s){let a=r.format(-e),i=r.format(e),n=a.replace(i,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(i,"!!!").replace(n,"+").replace("!!!",i)}else return r.format(e)}}const g=r=>l.jsxs("svg",{height:"1em",viewBox:"0 0 18 18",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:[l.jsx("mask",{height:18,id:"add_svg__a",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},width:18,x:0,y:0,children:l.jsx("path",{d:"M0 0h18v18H0z"})}),l.jsx("g",{mask:"url(#add_svg__a)",children:l.jsx("path",{d:"M8.147 9.853h-4.55V8.147h4.55v-4.55h1.706v4.55h4.55v1.706h-4.55v4.55H8.147z"})})]}),d=new p("pt-BR",{style:"currency",currency:"BRL"}),v=r=>{if(/^\d+\.\d{2}$/.test(r.toString()))return d.format(Number(r));const t=r/100;return d.format(t)},w=r=>{const t=r/100;return d.format(t)||""},$=r=>{const t=parseFloat(r.replace(",","."));return new Intl.NumberFormat("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)};export{p as $,g as S,w as a,v as c,$ as f};

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.