@seatlayer/js 0.109.0 → 0.109.1

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.
@@ -1407,7 +1407,8 @@ interface SeatManagerOptions {
1407
1407
  /**
1408
1408
  * Seats and tables with their own price, by label: each wears a violet ring
1409
1409
  * on the map so it can be found again. Display only; status, selection and
1410
- * hover are unchanged. Replace the list with `setPricedObjects()`.
1410
+ * hover are unchanged. Replace the list with `setPricedObjects()`. Absent, the
1411
+ * event's own seat prices (`seatPrices` on the chart) wear it; `[]` shows none.
1411
1412
  */
1412
1413
  pricedObjects?: readonly string[];
1413
1414
  /**
@@ -1758,6 +1759,8 @@ declare class SeatManager {
1758
1759
  * every chair, so a sold whole table reads as sold, not as eight free seats.
1759
1760
  */
1760
1761
  private tableChairIds;
1762
+ /** A table's label by its id: a chair's own price is set on its table. */
1763
+ private tableLabelById;
1761
1764
  /** A label's name where it differs: a standing place reads as its area (audit M1), from the chart and the server's `displayLabels`. */
1762
1765
  private labelNames;
1763
1766
  private status;
@@ -1407,7 +1407,8 @@ interface SeatManagerOptions {
1407
1407
  /**
1408
1408
  * Seats and tables with their own price, by label: each wears a violet ring
1409
1409
  * on the map so it can be found again. Display only; status, selection and
1410
- * hover are unchanged. Replace the list with `setPricedObjects()`.
1410
+ * hover are unchanged. Replace the list with `setPricedObjects()`. Absent, the
1411
+ * event's own seat prices (`seatPrices` on the chart) wear it; `[]` shows none.
1411
1412
  */
1412
1413
  pricedObjects?: readonly string[];
1413
1414
  /**
@@ -1758,6 +1759,8 @@ declare class SeatManager {
1758
1759
  * every chair, so a sold whole table reads as sold, not as eight free seats.
1759
1760
  */
1760
1761
  private tableChairIds;
1762
+ /** A table's label by its id: a chair's own price is set on its table. */
1763
+ private tableLabelById;
1761
1764
  /** A label's name where it differs: a standing place reads as its area (audit M1), from the chart and the server's `displayLabels`. */
1762
1765
  private labelNames;
1763
1766
  private status;
package/dist/index.cjs CHANGED
@@ -192,7 +192,7 @@ textarea.sl-hco-input{min-height:76px;resize:vertical}
192
192
  .sl-sales-ic svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
193
193
  .sl-sales-copy{flex:1;min-width:0}
194
194
  .sl-sales-copy b{display:block;font-size:15px;font-weight:750;line-height:1.3}
195
- .sl-sales-copy span{display:block;margin-top:3px;font-size:12.5px;line-height:1.45;color:var(--sl-muted)}`,Xh={lock:'<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>',flag:'<path d="M5 21V4M5 4h11l-2 4 2 4H5"/>',cart:'<circle cx="9" cy="20" r="1.4"/><circle cx="17" cy="20" r="1.4"/><path d="M3 4h2l2.4 11h10.2L20 8H6.2"/>'},Qs=i=>i.replace(/[&<>"']/g,e=>`&#${e.charCodeAt(0)};`);Ft=i=>ea(i.salesClosed,i.salesState,!!i.opts.readOnly),Qh=Ft;Zs=new WeakMap});var vg={};Qo(vg,{ApiError:()=>ne,BuyerAccessContext:()=>De,BuyerAccessUnavailableError:()=>he,BuyerRealtimeClient:()=>Ze,EmbeddedDesigner:()=>ko,PerformanceGroupDestroyedError:()=>ye,PerformanceGroupPicker:()=>Go,SEATING_CHART_CALLBACK_PROPS:()=>Mr,SEATING_CHART_HANDLE_METHODS:()=>Cr,SEATING_CHART_IDENTITY_PROPS:()=>Ar,SEATING_CHART_VALUE_PROPS:()=>Pr,SeasonApiError:()=>te,SeasonPicker:()=>Wo,SeasonPublicSessionRefused:()=>bn,SeasonRecoveryTimeoutError:()=>wn,SeatPicker:()=>dt,SeatingChart:()=>xo,attachPickerFrame:()=>zp,bindSeatingChartHandle:()=>Bl,buildSeatingChartOptions:()=>Fl,createBuyerAccessContext:()=>wi,createControllerSink:()=>li,parseTicketOfferAvailability:()=>To,prewarmSeatPicker:()=>bp,shortOperationReference:()=>Di,ticketOfferPrices:()=>Ir});module.exports=Xp(vg);var J=require("@seatlayer/core");var Qp=/^[0-9A-Za-z.+-]{1,24}$/,Zp=Qp.test("0.109.0")?"0.109.0":"",Jp={host:"web",platform:"web",bundle:Zp,protocol:0,chromeOwner:"web"},eh={...Jp},Ln=null,ks=null;function th(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():0}function ih(){let i=e=>Math.max(0,Math.round(e*100)/100);return{bootMs:i(th()),documentMs:Ln==null?0:i(Ln),handshakeMs:Ln==null||ks==null?0:i(ks-Ln)}}function Ss(){let{host:i,platform:e,bundle:t,protocol:n,chromeOwner:o}=eh,r=ih();return{host:i,platform:e,...t?{bundle:t}:{},...n?{protocol:n}:{},chromeOwner:o,bootMs:r.bootMs,documentMs:r.documentMs,handshakeMs:r.handshakeMs}}var Ts=new Set,Es=new Map;function ot(i){return Ts.has(i)?"repeat":"cold"}function Hn(i){let e=ot(i);return Ts.add(i),e}function Be(i){return typeof i=="number"&&Number.isFinite(i)&&i>=0?Math.round(i):0}function Zi(){return typeof location>"u"?!1:/^(localhost|127\.0\.0\.1|\[::1\])$/i.test(location.hostname)}function nh(i){if(!/^[A-Za-z0-9_-]{1,80}$/.test(i.event))return null;let e=i.performanceProfile??{};return{event:i.event,scope:i.scope,surface:i.surface,outcome:i.outcome,stage:i.stage?.slice(0,32)??"",ms:Be(i.ms),api:Be(e.loadChartAndStatuses)||Be(e.loadChart),scene:Be(e.buildScene),panel:Be(e.buildBuyerControls),paint:Be(e.firstPaint),normalize:Be(e.normalizeBuyerModel),renderer:Be(e.createRenderer),seats:Be(i.seats),floors:Be(i.floors),view:i.view??"map",load:i.load??ot(i.event),transport:i.transport??"pubapi",...Ss(),availabilityMs:Be(e.loadStatuses),...typeof i.revealWaitMs=="number"?{revealWaitMs:Be(i.revealWaitMs)}:{},...typeof i.handoverMs=="number"?{handoverMs:Be(i.handoverMs)}:{},mounts:(Es.get(i.event)??0)+1,reconnects:Be(i.reconnects)}}var oh=new Set;function Qe(i){let e=nh(i);if(e){Es.set(i.event,e.mounts);for(let t of oh)try{t(e)}catch{}typeof fetch>"u"||Zi()||fetch(`${i.apiBase.replace(/\/+$/,"")}/pub/telemetry/chart-load`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify(e),credentials:"omit",keepalive:!0}).catch(()=>{})}}var rh="realtime.fallback_polling",Cs=new Set;function sh(i){let e=/^(wss?):\/\/([^/]+)(.*?)\/pub\/events\/([^/?#]+)\/subscribe(?:[?#]|$)/.exec(i);if(!e)return null;let t;try{t=decodeURIComponent(e[4])}catch{return null}return/^[A-Za-z0-9_-]{1,80}$/.test(t)?{apiBase:`${e[1]==="wss"?"https":"http"}://${e[2]}${e[3]}`,eventKey:t}:null}function As(i){let e=sh(i);return!e||Cs.has(e.eventKey)||(Cs.add(e.eventKey),typeof fetch>"u"||Zi())?!1:(fetch(`${e.apiBase}/pub/telemetry/client-error`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify({surface:"picker",errorCode:rh,eventKey:e.eventKey}),credentials:"omit",keepalive:!0}).catch(()=>{}),!0)}var _t="seatlayer.v1",Ps="\0",Ms=4401,ah=15e3,lh=25e3,ch=1e4,Ls=5e3,dh=JSON.stringify({type:"resume"}),ph=3e4,hh=6e4,uh=["pointermove","touchstart","keydown"],mh=3,fh=15e3,Hs=6e4;function gh(i){let e=typeof i.default=="string"?i.default:"free",t={};if(i.seats&&typeof i.seats=="object")for(let[n,o]of Object.entries(i.seats))typeof o=="string"&&o!==e&&(t[n]=o);return{default:e,exceptions:t}}function bh(i,e){if(!i||i.default!==e.default)return null;let t=[];for(let[n,o]of Object.entries(e.exceptions))i.exceptions[n]!==o&&t.push({label:n,status:o});for(let n of Object.keys(i.exceptions))n in e.exceptions||t.push({label:n,status:e.default});return t}function yh(i,e){for(let t of e)t.status===i.default?delete i.exceptions[t.label]:i.exceptions[t.label]=t.status}function Rs(i){if(/(?:^|[?&#])(?:token|access_token|bearer|authorization|ticket|tkt|bse)=/i.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL");if(/\bbse_[A-Za-z0-9._-]+/.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL")}var Ze=class{constructor(e){this.ws=null;this.watched=null;this.stopped=!0;this.attempt=0;this.reconnectTimer=null;this.pingTimer=null;this.pongTimer=null;this.resumeTimer=null;this.projection=null;this.version=null;this.v1=!1;this.useQueryMarker=!1;this.hidden=null;this.closedSections=null;this.failedUpgrades=0;this.pollTimer=null;this.fellBack=!1;this.lastWake=-1/0;this.lastInput=0;this.detachWake=null;this.reconnectCount=0;this.opts=e,typeof e.url=="string"&&Rs(e.url)}get polling(){return this.pollTimer!==null}get protocol(){return this.ws?this.v1?"v1":"legacy":null}get snapshotVersion(){return this.version}start(){this.stopped&&(this.stopped=!1,this.attachWake(),this.connect())}stop(){this.stopped=!0,this.clearTimers(),this.stopPolling(),this.detachWake?.(),this.detachWake=null;let e=this.ws;if(this.ws=null,e){e.onopen=null,e.onmessage=null,e.onclose=null,e.onerror=null;try{e.close()}catch{}}}restart(){this.stop(),this.projection=null,this.version=null,this.attempt=0,this.failedUpgrades=0,this.start()}async connect(){if(this.stopped)return;let e=[_t];if(this.opts.mintTicket){let a;try{a=await this.opts.mintTicket()}catch(l){this.reportIfAccessError(l),this.scheduleReconnect();return}if(this.stopped)return;a?.protocols?.length?(e=[...a.protocols],e.includes(_t)||e.unshift(_t)):a?.ticket&&(e=[_t,`tkt.${a.ticket}`])}let t=this.version!==null;t&&e.push(`sv.${this.version}`);let n=typeof this.opts.url=="function"?this.opts.url():this.opts.url,o=this.useQueryMarker?`${n}${n.includes("?")?"&":"?"}pv=1`:n;Rs(o);let r;try{r=(this.opts.socketFactory??((l,c)=>new WebSocket(l,c)))(o,e)}catch{this.upgradeFailed(),this.scheduleReconnect();return}this.ws=r;let s=!1;r.onopen=()=>{this.ws===r&&(s=!0,this.attempt=0,this.failedUpgrades=0,this.stopPolling(),this.v1=r.protocol===_t,this.v1||(this.useQueryMarker=!0),this.startKeepalive(r),this.watched=null,this.watchHold(this.opts.heldHoldId?.()??null),t?this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync()},Ls):this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync({reason:"connect"})},Ls))},r.onmessage=a=>{if(this.ws!==r)return;let l;try{l=JSON.parse(typeof a.data=="string"?a.data:"")}catch{return}!l||typeof l!="object"||this.handleFrame(l)},r.onclose=a=>{if(this.ws===r){if(this.ws=null,this.clearTimers(),!s&&a?.code!==Ms&&this.upgradeFailed(),a?.code===Ms){if(a.reason==="access_expired"){this.scheduleReconnect();return}if(a.reason==="idle_expired"&&this.opts.onIdleExpired){this.stopped=!0,this.stopPolling(),this.opts.onIdleExpired();return}this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:"revoked",code:"access_revoked",retryable:!1});return}this.scheduleReconnect()}},r.onerror=()=>{try{r.close()}catch{}}}watchHold(e){let t=this.ws;if(!(!e||e===this.watched||!t||t.readyState!==1))try{t.send(JSON.stringify({type:"watch",holdId:e})),this.watched=e}catch{}}handleFrame(e){let t=typeof e.type=="string"?e.type:"";if(e.protocol===1&&(this.v1=!0),typeof e.snapshotVersion=="number"&&(this.version=e.snapshotVersion),t==="pong"){this.clearPongTimer();return}if(t==="sales"){this.opts.sink.onSales?.(e);return}if(Array.isArray(e.hidden)||Array.isArray(e.closed)){let n=Array.isArray(e.hidden)?e.hidden:[],o=Array.isArray(e.closed)?e.closed:[],r=n.join(Ps),s=o.join(Ps);(r!==this.hidden||s!==this.closedSections)&&(this.hidden=r,this.closedSections=s,this.opts.sink.onSections?.(n,o,{withInventory:t==="snapshot"||!!e.seats}))}if(t!=="hidden"){if(t==="hold"){typeof e.holdId=="string"&&typeof e.state=="string"&&this.opts.onHoldState?.(e.holdId,e.state);return}if(t==="presence"){this.opts.sink.onPresence?.({shoppingSessions:Number(e.shoppingSessions)||0,activeHolds:Number(e.activeHolds)||0});return}if(t!=="allocation"){if(t==="snapshot"||!t&&e.seats){this.answered();let n=gh(e),o=bh(this.projection,n);this.projection=n,o===null?this.opts.sink.applyProjection?this.opts.sink.applyProjection(n):this.opts.sink.resync():o.length&&this.opts.sink.applyStatuses(o);return}if(t==="delta"&&Array.isArray(e.changes)){this.answered();let n=e.changes.filter(o=>typeof o?.label=="string"&&typeof o?.status=="string").map(o=>({label:o.label,status:o.status}));if(!n.length)return;this.projection&&yh(this.projection,n),this.opts.sink.applyStatuses(n)}}}}answered(){this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null)}reportIfAccessError(e){let t=e?.reason;e?.name==="BuyerAccessUnavailableError"&&(this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:t??"invalid",code:e.code,status:e.status,retryable:t==="paused"}))}upgradeFailed(){this.failedUpgrades+=1,this.failedUpgrades>=mh&&this.startPolling()}startPolling(){if(!(this.pollTimer||this.stopped)){if(!this.fellBack){this.fellBack=!0;try{this.opts.onFallbackPolling?.()}catch{}let e=typeof this.opts.url=="function"?this.opts.url():this.opts.url;As(e)}this.pollTimer=setInterval(()=>{if(this.stopped){this.stopPolling();return}typeof document<"u"&&document.hidden||Promise.resolve().then(()=>this.opts.poll?this.opts.poll():this.opts.sink.resync({reason:"frame"})).catch(()=>{})},fh)}}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}now(){return this.opts.now?this.opts.now():Date.now()}attachWake(){if(this.detachWake||typeof document>"u"||typeof window>"u"||typeof document.addEventListener!="function"||typeof window.addEventListener!="function")return;this.lastInput=this.now();let e=()=>{document.visibilityState==="visible"&&this.wake()},t=()=>{let r=this.now(),s=r-this.lastInput>=hh;this.lastInput=r,s&&this.wake()},n={capture:!0,passive:!0},o=r=>{document[r]("visibilitychange",e),window[r]("focus",e);for(let s of uh)document[r](s,t,n)};o("addEventListener"),this.detachWake=()=>o("removeEventListener")}wake(){let e=this.ws;if(!e||e.readyState!==1)return;let t=this.now();if(!(t-this.lastWake<ph)){try{e.send(dh)}catch{return}this.lastWake=t}}startKeepalive(e){this.pingTimer=setInterval(()=>{if(this.ws===e){try{e.send(JSON.stringify({type:"ping"}))}catch{return}this.clearPongTimer(),this.pongTimer=setTimeout(()=>{this.pongTimer=null;try{e.close()}catch{}},ch)}},lh)}scheduleReconnect(){if(this.stopped||this.reconnectTimer)return;let e=Math.min(this.attempt++,5),t=Math.min(1e3*2**e,ah),n=this.pollTimer?Hs/2+Math.random()*Hs/2:Math.random()*t;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.reconnectCount+=1,this.connect()},n)}get reconnects(){return this.reconnectCount}clearPongTimer(){this.pongTimer&&(clearTimeout(this.pongTimer),this.pongTimer=null)}clearTimers(){this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null,this.clearPongTimer(),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=null}};function vh(i){return i==="blocked"?"not_for_sale":i==="unavailable"?"held":i==="held"||i==="booked"||i==="free"||i==="not_for_sale"?i:"free"}var wh="#f43f5e";function li(i,e={}){let t=n=>{let o=i.tableSelection(n);if(o)return o.physicalSeatIds;let r=i.idForLabel(n);return r?[r]:[]};return{applyStatuses(n){let o=new Set([...i.currentHold()?.labels??[],...e.ownLabels?.()??[]]),r={free:[],held:[],booked:[],not_for_sale:[]},s=[],a=[],l=new Map(i.getSelection().map(c=>[c.label,c.id]));for(let c of n){let d=t(c.label);if(!d.length)continue;let p=vh(c.status);if(r[p].push(...d),e.flashOnLiveChange&&p!=="free"&&!o.has(c.label)&&d.some(u=>i.getStatus(u)==="free"))for(let u of d)s.push({id:u,color:wh});p!=="free"&&!o.has(c.label)&&l.has(c.label)&&a.push(c.label)}for(let c of["free","held","booked","not_for_sale"])r[c].length&&i.setStatus(r[c],c);for(let c of s)i.flashSeat(c.id,c.color);if(a.length){let c=a.flatMap(p=>t(p));c.length&&i.deselect(c);let d=n.some(p=>p.status==="blocked"&&a.includes(p.label));e.onSelectedObjectUnavailable?.(a,d?"ineligible":"taken")}e.onStatusChange?.()},...i.applyProjection?{applyProjection:n=>{i.applyProjection(n)}}:{},async resync(n){await(i.resync?i.resync(n):i.refresh())},onSections(n,o,r){r?.withInventory||(i.resync?i.resync({reason:"frame"}):i.refresh()),e.onSections?.(n,o,r)}}}var Nt="pricingContract=matrix-v1&pricingContract=seat-v1",ne=class extends Error{constructor(e,t,n,o,r,s,a,l){super(t),this.name="ApiError",this.status=e,this.code=n,this.conflicts=o,this.reason=r,this.retryAfterS=s,this.notice=a,l?.fields&&(this.fields=l.fields),typeof l?.retryable=="boolean"&&(this.retryable=l.retryable),l?.hint&&(this.hint=l.hint),l?.serverMessage&&(this.serverMessage=l.serverMessage)}},Is=10,Os=1;function Ji(i,e){let t=(i??"").trim();if(t){let n=Number(t);if(Number.isFinite(n)&&n>=0)return Math.ceil(n);let o=Date.parse(t);if(Number.isFinite(o))return Math.max(0,Math.ceil((o-Date.now())/1e3))}if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return Math.ceil(e)}function xh(i){let e=i;return!!e&&typeof e.ticketKey=="string"&&typeof e.label=="string"&&Number.isFinite(e.unitIndex)&&Number.isFinite(e.quantity)&&(e.displayLabel===void 0||typeof e.displayLabel=="string")}var kh={seat_conflict:"taken",conflict:"taken",channel_assignment_conflict:"ineligible",allocation_exhausted:"exhausted"};function Sh(){return typeof crypto>"u"?null:typeof crypto.randomUUID=="function"?crypto.randomUUID():typeof crypto.getRandomValues!="function"?null:Array.from(crypto.getRandomValues(new Uint8Array(18)),i=>i.toString(16).padStart(2,"0")).join("")}function Th(i,e){let t=e.map(n=>[n.label,n.tierId??null,n.quantity??null]).sort((n,o)=>n[0]<o[0]?-1:n[0]>o[0]?1:0);return JSON.stringify([i,t])}function Eh(i){return i instanceof ne?i.status===408||i.status===429||i.status>=500:!0}function _s(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`viewer_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`}var bt=class{constructor(e,t={}){this.base=e;this.viewerId=_s();this.holdAttempt=null;this.holdIdempotency=!0;this.ticketKeysByHold=new Map;this.access=t.access,this.onObjectUnavailable=t.onObjectUnavailable;let n=t.referral?.trim();this.referral=n?n.slice(0,120):void 0}rotateViewerId(){this.viewerId=_s()}async pickerIdleMinutes(){return null}get accessScoped(){return!!this.access?.configured}async request(e,t={},n={}){let o=t.method??"GET",r={},s;t.body!==void 0&&(r["Content-Type"]="application/json",s=JSON.stringify(t.body));let a=await this.access?.authorization(n.auth?"unauthorized":"initial");if(a&&(r.Authorization=a),t.idempotency){let u=this.holdAttemptKey(`${t.idempotency.binding}\0${a??""}`);t.idempotency.used(u??void 0),u&&(r["Idempotency-Key"]=u)}let l=o==="GET"||e.endsWith("/hold/resume")?new AbortController:null,c=l?setTimeout(()=>l.abort(),4e4):null,d,p;try{d=await fetch(`${this.base}${e}`,{method:o,headers:r,body:s,credentials:"omit",...l?{signal:l.signal}:{}}),p=(d.headers.get("content-type")??"").includes("application/json")?await d.json().catch(h=>{if(l?.signal.aborted)throw h;return null}):null}finally{c!==null&&clearTimeout(c)}if(!d.ok){let u=p,h=u?.code??u?.error,b=d.status===401&&h==="buyer_access_invalid"&&e.endsWith("/hold/resume");if(this.access?.configured&&!b&&(d.status===401||d.status===403||d.status===422)&&await this.access.handleFailure(d.status,h)&&!n.auth)return this.request(e,t,{...n,auth:!0});if(d.status===409){let T=h?kh[h]:void 0,w=u?.conflicts?.map(v=>v.label)??t.labels??[];T&&this.onObjectUnavailable?.({labels:w,reason:T,code:h})}let f;if(d.status===429&&(f=Ji(d.headers.get("Retry-After"),u?.retryAfterSeconds)??Os,o==="GET"&&!n.rateLimit&&f<=Is))return await new Promise(T=>setTimeout(T,f*1e3)),this.request(e,t,{...n,rateLimit:!0});throw d.status===503&&(f=Ji(d.headers.get("Retry-After"),u?.retryAfterSeconds)),new ne(d.status,u?.error??`request_failed_${d.status}`,h,u?.conflicts,u?.reason,f,typeof u?.notice=="string"&&u.notice?u.notice:void 0,{...Array.isArray(u?.fields)?{fields:u.fields}:{},...typeof u?.retryable=="boolean"?{retryable:u.retryable}:{},...typeof u?.hint=="string"&&u.hint?{hint:u.hint}:{},...typeof u?.message=="string"&&u.message?{serverMessage:u.message}:{}})}return p}async requestBlob(e,t={}){let n={},o=await this.access?.authorization(t.auth?"unauthorized":"initial");o&&(n.Authorization=o);let r=await fetch(`${this.base}${e}`,{method:"GET",headers:n,credentials:"omit"});if(r.ok)return r.blob();let a=(r.headers.get("content-type")??"").includes("application/json")?await r.json().catch(()=>null):null,l=a?.code??a?.error;if(this.access?.configured&&(r.status===401||r.status===403||r.status===422)&&await this.access.handleFailure(r.status,l)&&!t.auth)return this.requestBlob(e,{...t,auth:!0});let c;if(r.status===429&&(c=Ji(r.headers.get("Retry-After"),a?.retryAfterSeconds)??Os,!t.rateLimit&&c<=Is))return await new Promise(d=>setTimeout(d,c*1e3)),this.requestBlob(e,{...t,rateLimit:!0});throw new ne(r.status,a?.error??`request_failed_${r.status}`,l,void 0,void 0,c)}chart(e){return this.request(`/pub/events/${encodeURIComponent(e)}/chart`)}eventConfiguration(e){return this.request(`/pub/events/${encodeURIComponent(e)}/event-configuration`)}reportViewEvidence(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/view-evidence-reports`,{method:"POST",body:{seatId:t.seatId,...t.evidenceId?{evidenceId:t.evidenceId}:{},...t.message?{message:t.message}:{}}})}asset(e,t){return/^[a-zA-Z0-9._-]+$/.test(t)?this.requestBlob(`/pub/events/${encodeURIComponent(e)}/assets/${encodeURIComponent(t)}`):Promise.reject(new ne(404,"not_found","not_found"))}async objects(e){return{...await this.request(`/pub/events/${encodeURIComponent(e)}/objects?compact=1&${Nt}`),fetchedAt:Date.now()}}hold(e,t,n,o){let r=`/pub/events/${encodeURIComponent(e)}/hold?${Nt}`,s={method:"POST",body:{selections:t,...n?{ttlMs:n}:{},...o?{replaceHoldId:o}:{},...this.referral?{referral:this.referral}:{}},labels:t.map(l=>l.label)};return(o||!this.holdIdempotency?this.request(r,s):this.keyedHold(r,s,Th(e,t))).then(l=>this.noteTicketKeys(l,o))}holdAttemptKey(e){if(this.holdAttempt?.binding===e)return this.holdAttempt.key;let t=Sh();return this.holdAttempt=t?{binding:e,key:t}:null,t}endHoldAttempt(e){e&&this.holdAttempt?.key===e&&(this.holdAttempt=null)}async keyedHold(e,t,n,o=!1){let r;try{let s=await this.request(e,{...t,idempotency:{binding:n,used:a=>{r=a}}});return this.endHoldAttempt(r),s}catch(s){if(Eh(s))throw s;this.endHoldAttempt(r);let a=s.code;if(a==="idempotency_key_reused"&&!o)return this.keyedHold(e,t,n,!0);if(a==="invalid_idempotency_key")return this.holdIdempotency=!1,this.request(e,t);throw s}}noteTicketKeys(e,t){if(t&&this.ticketKeysByHold.delete(t),!e?.holdId)return e;let n=Array.isArray(e.ticketKeys)&&e.ticketKeys.every(r=>typeof r=="string")?[...e.ticketKeys]:null,o=Array.isArray(e.ticketKeyDetails)&&e.ticketKeyDetails.every(xh)?e.ticketKeyDetails.map(({ticketKey:r,label:s,unitIndex:a,quantity:l,displayLabel:c})=>({ticketKey:r,label:s,unitIndex:a,quantity:l,...c?{displayLabel:c}:{}})):null;return n||o?this.ticketKeysByHold.set(e.holdId,{...n?{ticketKeys:n}:{},...o?{ticketKeyDetails:o}:{}}):this.ticketKeysByHold.delete(e.holdId),e}ticketKeysFor(e){let t=this.ticketKeysByHold.get(e);return t?{...t}:null}bestAvailable(e,t,n,o,r){return this.request(`/pub/events/${encodeURIComponent(e)}/best-available?${Nt}`,{method:"POST",body:{qty:t,...n?{categoryKey:n}:{},...o?{zoneId:o}:{},...r?{ttlMs:r}:{},...this.referral?{referral:this.referral}:{}}}).then(s=>this.noteTicketKeys(s))}resume(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/hold/resume`,{method:"POST",body:{holdId:t}}).then(n=>this.noteTicketKeys(n))}release(e,t,n){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/release`,{method:"POST",body:{labels:t,holdId:n}}).then(o=>{let r=this.ticketKeysByHold.get(n);if(r){let s=new Set(o?.released??t);this.ticketKeysByHold.set(n,{...r.ticketKeys?{ticketKeys:r.ticketKeys.filter(a=>!s.has(a))}:{},...r.ticketKeyDetails?{ticketKeyDetails:r.ticketKeyDetails.filter(a=>!s.has(a.ticketKey))}:{}})}return o})}extend(e,t,n){return this.request(`/pub/events/${encodeURIComponent(e)}/extend`,{method:"POST",body:{holdId:t,...n?{ttlMs:n}:{}}})}paymentOptions(e){return this.request(`/pub/events/${encodeURIComponent(e)}/payment-options`)}availability(e,t=!1){return this.request(`/pub/events/${encodeURIComponent(e)}/availability?${Nt}${t?"&live=1":""}`)}startCheckout(e,t){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/checkout`,{method:"POST",body:t})}orderStatus(e){return this.request(`/pub/orders/${encodeURIComponent(e)}/status`)}subscribeTicket(e){return this.request(`/pub/events/${encodeURIComponent(e)}/subscribe-tickets`,{method:"POST",body:{}})}subscribeUrl(e){let t=this.base.replace(/^http/,"ws"),n=new URLSearchParams({surface:"picker",viewerId:this.viewerId});return`${t}/pub/events/${encodeURIComponent(e)}/subscribe?${n}&${Nt}`}socketUrl(e){return this.accessScoped?"":this.subscribeUrl(e)}socketProtocols(e){return this.accessScoped?[]:[_t]}createRealtime(e,t){return this.accessScoped?null:new Ze({url:this.subscribeUrl(e),sink:t})}};var nn=require("@seatlayer/core");var Oe=require("@seatlayer/core"),ba=require("@seatlayer/core/core/seatConfidence");var tr=require("@seatlayer/core"),pi=require("@seatlayer/core/core/cdnAsset");var Ch=/^data:image\/(?:png|jpe?g|webp|gif|avif);base64,[a-z0-9+/]+={0,2}$/i,Ah=/[\s"'<>`\\]/;function Ph(i){return i.startsWith("//")?!1:i.startsWith("/")||i.startsWith("./")||i.startsWith("../")}function Mh(){try{let i=typeof location>"u"?"":location.origin;return i&&i!=="null"?i:null}catch{return null}}function ci(i){if(typeof i!="string"||!i||i.length>2e6||i!==i.trim())return!1;if(i.startsWith("data:"))return Ch.test(i);if(Ah.test(i))return!1;let e=Mh();if(Ph(i)){if(!e)return!1;try{let t=new URL(i,e);return t.origin===e&&!t.username&&!t.password}catch{return!1}}try{let t=new URL(i);return t.username||t.password?!1:t.protocol==="https:"||e!=null&&t.origin===e}catch{return!1}}var ru=require("@seatlayer/core/core/cdnAsset");function y(i,e){let t=(0,tr.t)(i);return t===i?e:t}function Vt(){return globalThis.matchMedia?.("(pointer: coarse)").matches??!1?y("picker.dragToLookTouch","Drag to look \xB7 pinch to zoom \xB7 tap \u2715 to close"):y("picker.dragToLookMouse","Drag to look \xB7 pinch or scroll to zoom \xB7 Esc to close")}function On(){return{rotate:y("picker.dragToRotateVenue","Drag to rotate the venue"),move:y("picker.dragToMoveVenue","Drag to move the venue"),zoomIn:y("picker.zoomIn","Zoom in"),zoomOut:y("picker.zoomOut","Zoom out"),fitView:y("picker.fitWholeVenue","Show whole venue")}}function sa(i,e){let t=e?i.toLocaleUpperCase(e):i.toLocaleUpperCase(),n=e?i.toLocaleLowerCase(e):i.toLocaleLowerCase();if(i!==t||t===n)return i;let o=[...n][0]??"";return(e?o.toLocaleUpperCase(e):o.toLocaleUpperCase())+n.slice(o.length)}function aa(i){if(typeof i=="string"){let e=document.querySelector(i);if(!e)throw new Error(`seatmap: container "${i}" not found`);return e}if(!(i instanceof HTMLElement))throw new Error("seatmap: container must be a CSS selector or an HTMLElement");return i}function q(i){return String(i??"").replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}function la(i,e,t){let n=e.find(r=>ci(r))??null;if(i.replaceChildren(),!n)return i.textContent=t.slice(0,1).toUpperCase(),null;let o=document.createElement("img");return o.alt="",o.referrerPolicy="no-referrer",o.src=n,i.appendChild(o),n}var di=null;function _n(){if(di!==null)return di;try{if(typeof document>"u")return di=!1;di=!!document.createElement("canvas").getContext("webgl2")}catch{di=!1}return di}var en=null;function tn(){return en||(en=(typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-view3d.mjs"):import("@seatlayer/core/view3d")).catch(e=>{throw en=null,e}),en)}function Nn(){(typeof navigator>"u"?void 0:navigator.connection)?.saveData||tn().catch(()=>{})}async function Dn(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-panorama.mjs"):import("@seatlayer/core")}async function hi(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-checkout.mjs"):Promise.resolve().then(()=>(Ys(),Ws))}async function ca(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-sales.mjs"):Promise.resolve().then(()=>(oa(),na))}function da(i){return i==="unavailable_for_event"||i==="payments_off_for_event"?i:"not_configured"}function pa(i){return i.lineItems.reduce((e,t)=>e+t.quantity,0)}function ir(i,e){if(i.objectType!=="ga")return i.displayLabel??i.label;let t=e.find(n=>n.id===i.objectId);return i.displayLabel??t?.displayLabel??t?.label??y("picker.generalAdmission","General admission")}function nu(i,e){let t=new Map;for(let n of i){let o=n.rowLabel&&n.seatNumber?[n.sectionLabel,`${y("picker.row","Row")} ${n.rowLabel}`,`${y("picker.seat","Seat")} ${n.seatNumber}`].filter(Boolean).join(" \xB7 "):ir(n,e),r=[n.categoryLabel,n.tierLabel].filter(Boolean).join(" \xB7 "),s=Math.max(1,Math.floor(n.quantity||1)),a=`${o}\0${r}`,l=t.get(a)??{label:o,detail:r,units:0,amount:0};l.units+=s,l.amount+=n.unitPrice*s,t.set(a,l)}return[...t.values()].map(n=>({label:n.units>1?`${n.label} \xD7${n.units}`:n.label,...n.detail?{detail:n.detail}:{},amount:n.amount}))}var ra=(i,e,t)=>(0,tr.t)("picker.bookingForm.guestOfCount",{label:i,index:e,total:t});function ou(i,e,t=[]){let n=new Map,o=[];for(let d of i.lineItems){let p=ir(d,t),u=Math.max(1,Math.floor(d.quantity)||1);if(d.objectType!=="ga"&&!(d.objectType==="table"&&u>1)){o.push({key:d.label,name:p,unitIndex:1,quantity:1});continue}for(let h=1;h<=u;h+=1){let b=(n.get(d.label)??0)+1;n.set(d.label,b),o.push({key:`${d.label}#${b}`,name:p,unitIndex:h,quantity:u})}}let r=e?.ticketKeyDetails??[],s=e?.ticketKeys??r.map(d=>d.ticketKey),a=(s.length===o.length?s:o.map(d=>d.key)).map(d=>{let p=o.find(h=>h.key===d),u=r.find(h=>h.ticketKey===d);return{key:d,name:u?.displayLabel??p?.name,unitIndex:u?.unitIndex??p?.unitIndex??1,quantity:u?.quantity??p?.quantity??1}}),l=new Map;for(let d of a)d.name&&d.quantity<=1&&l.set(d.name,(l.get(d.name)??0)+1);let c=new Map;return a.map(({key:d,name:p,unitIndex:u,quantity:h})=>{if(!p)return{key:d};if(h>1)return{key:d,title:ra(p,u,h)};let b=(c.get(p)??0)+1;c.set(p,b);let f=l.get(p)??1;return{key:d,title:f>1?ra(p,b,f):p}})}function ha(i,e,t,n,o=[]){let r=new Map;for(let s of i.lineItems){let a=ir(s,o);r.set(a,(r.get(a)??0)+1)}return{kind:"pay",provider:e,order:{holdId:i.holdId,expiresAt:i.expiresAt,currency:i.currency,total:i.total,labels:[...r].map(([s,a])=>a>1?`${s} \xD7${a}`:s),tickets:ou(i,n,o),lines:nu(i.lineItems,o)},bookingForm:t?.bookingForm??null,...t?.bookingMode==="free"?{free:!0}:{}}}function ua(i){return String(i?.code).startsWith("booking_form_")}function Bn(i,e,t){let n={month:"short",day:"numeric",hour:"numeric",minute:"2-digit"},o=new Date(i);if(e)try{return o.toLocaleString(t,{...n,timeZone:e})}catch{}return o.toLocaleString(t,n)}function nr(i){return/early[\s-]*bird/i.test(i?.trim()??"")}function ma(i){return nr(i)?'<svg class="sl-offer-icon sl-offer-icon-discount" viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="sl-offer-discount-gradient" x1="29.492" y1="0" x2="20.028" y2="36.183" gradientUnits="userSpaceOnUse"><stop stop-color="#FD6D00"/><stop offset="1" stop-color="#F8B302"/></linearGradient></defs><path d="M16 22.751a1.071 1.071 0 1 0 0-2.142 1.071 1.071 0 0 0 0 2.142ZM16 11.39a1.071 1.071 0 1 0 0-2.141 1.071 1.071 0 0 0 0 2.141Z" fill="url(#sl-offer-discount-gradient)"/><path d="M31.137.863A2.928 2.928 0 0 0 29.054 0H17.836c-.787 0-1.527.307-2.083.863L.863 15.753A2.93 2.93 0 0 0 0 17.836c0 .787.307 1.527.863 2.083l11.218 11.218A2.927 2.927 0 0 0 14.164 32c.787 0 1.527-.307 2.083-.863l14.89-14.89A2.928 2.928 0 0 0 32 14.164V2.946c0-.788-.307-1.527-.863-2.083ZM16 7.374a2.946 2.946 0 1 1 0 5.891 2.946 2.946 0 0 1 0-5.891Zm0 17.252a2.946 2.946 0 1 1 0-5.891 2.946 2.946 0 0 1 0 5.891Zm6.025-7.689H9.975a.938.938 0 0 1 0-1.875h12.05a.938.938 0 0 1 0 1.875Zm4.017-10.041a.938.938 0 1 1 0-1.875.938.938 0 0 1 0 1.875Z" fill="url(#sl-offer-discount-gradient)"/></svg>':'<svg class="sl-offer-icon sl-offer-icon-tag" viewBox="0 0 24 24" aria-hidden="true"><path d="M20.6 13.6 13.7 20.5a2 2 0 0 1-2.8 0L3.5 13.1A2 2 0 0 1 3 11.7V4h7.7a2 2 0 0 1 1.4.6l8.5 8.5a.7.7 0 0 1 0 .5Z"/><circle cx="7.5" cy="8.5" r="1"/></svg>'}function Fn(i,e){return`<span class="sl-offer-mark" role="img" aria-label="${e(i)}" title="${e(i)}">${ma(i)}</span>`}function Vn(i,e){return`<span class="sl-offer-badge">${ma(i)}<span>${e(i)}</span></span>`}function fa(i,e=Date.now()){let t=i-e;if(t<=0)return null;let n=Math.max(1,Math.ceil(t/6e4)),o=Math.floor(n/1440),r=Math.floor(n%1440/60),s=n%60;return`${(o>0?[`${o}d`,...r?[`${r}h`]:[]]:[...r?[`${r}h`]:[],...s||!r?[`${s}m`]:[]]).join(" ")} left`}function or(i){return String(i??"\u2014").replace(/[&<>"]/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[e])}function L(i){return String(i??"").replace(/[&<>"]/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[e])}function rr(i){return i?(0,Oe.seatNoteRowModel)(i).map(e=>({...e,title:y(e.titleKey,e.titleFallback)})):[]}function ya(i){return rr(i).map(e=>e.title)}function $t(i,e={}){return sr(rr(i),e)}function sr(i,e={}){if(!i.length)return"";let t=e.compact?15:17,n=i.map(o=>`<div class="sl-note sl-note-${L(o.tone)}"><span class="sl-note-i">${(0,Oe.seatTypeIconSvg)(o.icon,{size:t})}</span><span class="sl-note-t"><b>${L(o.title)}</b>`+(o.note?`<span class="sl-note-n">${L(o.note)}</span>`:"")+"</span></div>").join("");return`<div class="sl-notes${e.compact?" compact":""}">${n}</div>`}function va(i){return rr(i).map(e=>{let t=L(e.note?`${e.title}: ${e.note}`:e.title);return`<span class="sl-cx-mark sl-cx-mark-${L(e.tone)}" role="img" aria-label="${t}" title="${t}">${(0,Oe.seatTypeIconSvg)(e.icon,{size:13})}</span>`}).join("")}function $n(i){let e=[];return i?.restrictedView&&e.push(y("picker.restrictedView","Restricted view")),i?.obstructedView&&e.push(y("picker.obstructedView","Obstructed view")),e}function ar(i,e){if(!i)return"";let t=e?y("picker.viewFromThisSeat","View from this seat"):y("picker.seeItIn3d","See it in 3D"),n=e?y("picker.viewFromHere","View from here"):t;return`<button type="button" class="sl-confirm-3d" aria-label="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span>${n}</span></button>`}function wa(i,e){if(!e)return"";let t=e,n=t.includes(i.id),o=n?t.length>1?y("picker.openComparison","Open comparison"):y("picker.savedForComparison","Saved for comparison"):t.length?y("picker.compareWithSaved","Compare with saved"):y("picker.saveToCompare","Save to compare");return`<button type="button" class="sl-confirm-compare"${n&&t.length===1?" disabled":""}><span aria-hidden="true">\u21C4</span><span>${L(o)}</span></button>`}function xa(i,e,t){if(!t)return"";let n=(0,ba.seatConfidenceDisclosure)(i.confidenceEvidence),o=n.modeledTarget??n.reality;return`<button type="button" class="sl-confirm-confidence" aria-label="Open seat confidence passport for ${L(i.displayLabel??i.label)}"><span><em>${L(e)}</em><strong>${L(n.headline)}</strong><small>${L(o)}</small></span><b>Passport</b></button>`}function fe(i){let e=i?.rowLabel,t=i?.sectionLabel;if(!e||!t)return e;for(let n of["-"," ","\xB7","/","_"]){let o=`${t}${n}`;if(e.startsWith(o)&&e.length>o.length)return e.slice(o.length)}return(0,Oe.compactRowLabel)(e,t)}function su(i){switch(i){case"paused":return{title:y("picker.accessPausedTitle","These seats are on hold right now"),body:y("picker.accessPausedBody","The organizer has paused this selection. Try again in a few minutes."),action:y("picker.accessRetry","Try again")};case"revoked":return{title:y("picker.accessRevokedTitle","This access link is no longer active"),body:y("picker.accessRevokedBody","Ask whoever sent you here for a new link to keep booking these seats."),action:y("picker.accessRefresh","Refresh")};case"idle":return{title:y("picker.idlePausedTitle","Your session expired"),body:y("picker.idlePausedBody","You were away for a while. Refresh to see which seats are free now."),action:y("picker.idleRefresh","Show latest seats")};case"no_token":case"provider_failed":return{title:y("picker.accessExpiredTitle","The seat map timed out"),body:y("picker.accessExpiredBody","Any seats you\u2019re holding stay held. Refresh to see what\u2019s available now."),action:y("picker.accessRefresh","Refresh")};default:return{title:y("picker.accessInvalidTitle","We couldn\u2019t verify your access"),body:y("picker.accessInvalidBody","You can still book anything shown as available. Contact whoever sent you here for access to the rest."),action:y("picker.accessRefresh","Refresh")}}}var au=6;function ka(i,e,t){let n=or;return[i?.sectionLabel?`<div class="sl-confirm-field sl-confirm-sec${i.sectionLabel.length>au?" sl-confirm-sec-long":""}"><span class="sl-confirm-key">${y("picker.section","Section")}</span><span class="sl-confirm-value">${n(i.sectionLabel)}</span></div>`:"",i?.rowLabel||i?.objectType==="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${n(t)}</span><span class="sl-confirm-value">${n(fe(i)??i?.displayLabel??e)}</span></div>`:"",i?.objectType!=="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${y("picker.seat","Seat")}</span><span class="sl-confirm-value">${n(i?.seatNumber??i?.displayLabel??e)}</span></div>`:""].filter(Boolean).join("")}function Sa(i,e,t){let n=or,o=i?.objectType==="booth",r=i?.objectType==="table"&&!!i?.bookingMode,s=o||r||!i?.seatNumber,a=i?.sectionLabel??(s?void 0:i?.displayLabel),l=r?`${y("picker.guests","Guests")} ${i?.bookingMode==="variable"?`${i?.minOccupancy}\u2013${i?.maxOccupancy}`:i?.capacity}`:void 0,d=(s?[l,a?i?.rowLabel??i?.displayLabel:void 0]:[i?.rowLabel?`${t} ${fe(i)??""}`.trim():void 0,`${y("picker.seat","Seat")} ${i?.seatNumber??e}`]).filter(Boolean).join(" \xB7 ");return(a?`<span class="sl-confirm-place">${n(a)}</span>`:"")+(d?`<span class="sl-confirm-pos">${a?" \xB7 ":""}${n(d)}</span>`:"")+(a||d?"":`<span class="sl-confirm-pos">${n(e)}</span>`)}function Ta(i,e){if(!i)return"";let t=e?y("picker.viewFromThisSeat","View from this seat"):y("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-pill sl-confirm-3dpill" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function Ea(i,e){if(!i||e)return"";let t=y("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-3drow" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function ga(i){return i.buyerMessage?.trim()||(i.restriction==="companion"?y("picker.companionRequiresWheelchair","Requires the adjacent wheelchair place"):void 0)}function zn(i,e,t,n=()=>{}){let o=or;if(i.length>1)return`<fieldset class="sl-confirm-tiers"><legend><span>${y("picker.ticketType","Ticket type")}</span></legend>`+i.map(a=>{let l=ga(a),c=n(a);return`<button type="button" class="sl-confirm-tier" data-confirm-tier="${o(a.id)}"${c?` data-offer-name="${o(c)}"`:""} aria-pressed="${a.id===e}"><span class="sl-confirm-tier-copy"><span class="sl-confirm-tier-name">${o(a.name)}`+(c?`<span class="sl-confirm-tier-offer">${Vn(c,o)}</span>`:"")+"</span>"+(l?`<small class="sl-confirm-tier-note">${o(l)}</small>`:"")+`</span><span class="sl-confirm-tier-price">${o(t(a))}</span></button>`}).join("")+"</fieldset>";let r=i[0],s=r?ga(r):void 0;return s?`<p class="sl-confirm-tier-note">${o(s)}</p>`:""}function Ca(i){return'<div class="sl-confirm-grid">'+i.identityFields+`</div><div class="sl-confirm-cat"><span class="sl-confirm-cat-name">${L(i.categoryLabel)}</span>`+(i.priceLabel?`<span class="sl-confirm-price">${L(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-id">'+i.marker+`<span class="sl-confirm-dot" style="background:${L(i.categoryColor)}" aria-hidden="true"></span><span class="sl-sr">${L(i.categoryLabel)}</span><span class="sl-confirm-who">`+i.identity+"</span>"+(i.priceLabel?`<span class="sl-confirm-idprice">${L(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-body">'+i.commercial+i.tierChoices+i.groupDates+i.wheelchair+(i.thumb||i.see3dPill?`<div class="sl-confirm-strip">${i.thumb}<span class="sl-confirm-pills">${i.see3dPill}</span></div>`:"")+i.inspect+'<div class="sl-confirm-row">'+(i.see3dRow??"")+`<button type="button" class="sl-confirm-cancel">${L(i.cancelLabel)}</button><button type="button" class="sl-confirm-add"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4 4L19 7"/></svg><span class="sl-confirm-add-t">${L(i.selectLabel)}</span></button></div></div>`}function Aa(i,e){let t=q,{variable:n}=e;return`<section class="sl-table-dialog" role="dialog" aria-modal="true" aria-labelledby="sl-table-title" aria-describedby="sl-table-copy"><div class="sl-table-head"><div class="sl-table-eyebrow">${t(n?(0,Oe.t)("picker.flexiblePartyTypeWord",{typeWord:e.typeWord}):(0,Oe.t)("picker.wholeTypeWord",{typeWord:e.typeWord}))}</div><h2 class="sl-table-title" id="sl-table-title">${t(i.displayLabel??i.label)}</h2><p class="sl-table-copy" id="sl-table-copy">${t(n?y("picker.chooseGuestsCopy","Choose how many guests will sit together. This table is held exclusively for your party."):(0,Oe.t)("picker.allPlacesBookedTogether",{count:i.capacity}))}</p></div><div class="sl-table-body"><div class="sl-table-summary"><span>${t(e.categoryLabel)}</span>`+(e.suppressPricing?"":`<b data-table-unit>${t((0,Oe.t)("picker.perGuestPrice",{price:e.unitPrice}))}</b>`)+`<span class="muted">${t(y("picker.tableCapacity","Table capacity"))}</span><span>${t((0,Oe.t)("picker.guestsCount",{count:i.capacity}))}</span>`+(i.entrance?`<span class="muted">${t(y("picker.entrance","Entrance"))}</span><span>${t(i.entrance)}</span>`:"")+(e.suppressPricing?"":`<span class="muted">${t(y("picker.total","Total"))}</span><b data-table-total></b>`)+"</div>"+(n?`<label class="sl-table-qtylabel" id="sl-table-qty-label">${t(y("picker.numberOfGuests","Number of guests"))}</label><div class="sl-table-stepper" role="group" aria-labelledby="sl-table-qty-label"><button type="button" data-table-step="-1" aria-label="${t(y("picker.fewerGuests","Fewer guests"))}">\u2212</button><output aria-live="polite" data-table-qty>${i.quantity}</output><button type="button" data-table-step="1" aria-label="${t(y("picker.moreGuests","More guests"))}">+</button></div><div class="sl-table-range">${t((0,Oe.t)("picker.chooseMinMaxGuests",{min:i.minOccupancy,max:i.maxOccupancy}))}</div>`:`<input type="hidden" data-table-qty value="${i.capacity}">`)+`<div class="sl-table-actions"><button type="button" class="sl-table-cancel">${t((0,Oe.t)("common.cancel"))}</button><button type="button" class="sl-table-confirm">${t(e.held?y("picker.updateTable","Update table"):n?y("picker.selectTable","Select table"):y("picker.selectWholeTable","Select whole table"))}</button></div></div></section>`}function Pa(i,e){let t=su(i),n=document.createElement("div");n.className="sl-interrupt sl-access",n.setAttribute("role","status"),n.setAttribute("aria-live","polite");let o=document.createElement("div");o.className="sl-interrupt-card";let r=document.createElement("div");r.className="sl-interrupt-title",r.textContent=t.title;let s=document.createElement("div");s.className="sl-interrupt-body",s.textContent=t.body,o.append(r,s);let a=document.createElement("div");a.className="sl-interrupt-actions";let l=document.createElement("button");l.type="button",l.className="sl-interrupt-act";let c=document.createElement("span");c.className="sl-interrupt-act-icon",c.setAttribute("aria-hidden","true"),c.textContent="\u21BB";let d=document.createElement("span");return d.textContent=t.action,l.append(c,d),l.addEventListener("click",async()=>{n.classList.add("is-reloading"),l.disabled=!0;try{await e()}catch{}finally{n.isConnected&&(n.classList.remove("is-reloading"),l.disabled=!1)}}),a.appendChild(l),o.appendChild(a),n.appendChild(o),n}function Ma(i,e){return`<div class="sl-a11yhead"><span class="sl-a11yhead-t">${L(i)}</span><button type="button" class="sl-a11yclose" data-a11y-close aria-label="${q(e)}"><svg viewBox="0 0 24 24" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function La(i){return i.map(e=>{let t=`<button type="button" role="switch" class="sl-a11yrow${e.className?` ${e.className}`:""}${e.on?" on":""}" data-a11y-row="${L(e.key)}" aria-checked="${e.on}" aria-pressed="${e.on}"`+(e.disabled?' disabled aria-disabled="true"':"")+`><span class="sl-a11yrow-i" aria-hidden="true">${e.iconHtml}</span><span class="sl-a11yrow-t"><span class="sl-a11yrow-l">${L(e.label)}</span></span>`+(e.count?`<span class="sl-a11yrow-c">${L(e.count)}</span>`:"")+'<span class="sl-a11yrow-s" aria-hidden="true"></span></button>';return e.note?`<div class="sl-a11yrow-w">${t}${ui({id:`sl-info-${q(e.key.replace(/[^A-Za-z0-9]+/g,"-"))}`,label:e.note,text:L(e.note)})}</div>`:t}).join("")}function ui(i){return`<span class="sl-info"${i.wrapRef?` data-ref="${q(i.wrapRef)}"`:""}><button type="button" class="sl-info-btn" data-sl-info aria-label="${q(i.label)}" aria-describedby="${q(i.id)}" aria-expanded="false"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/></svg></button><span class="sl-info-pop" role="tooltip" id="${q(i.id)}"${i.ref?` data-ref="${q(i.ref)}"`:""}>${i.text}</span></span>`}function Ha(i){let e=Math.max(0,i),t=Math.floor(e/6e4),n=String(Math.floor(e%6e4/1e3)).padStart(2,"0");return`${t}:${n}`}function Ra(i){let e=i.performanceLabel?`<div class="sl-chip-when">${q(i.performanceLabel)}</div>`:"",t=i.performanceDates?.labels.length?`<div class="sl-chip-dates"><span class="sl-chip-dates-summary">${q(i.performanceDates.summary)}</span><span class="sl-chip-date-list">${i.performanceDates.labels.map(n=>`<span class="sl-chip-date">${q(n)}</span>`).join("")}</span></div>`:"";return e+lu(i)+t}function lu(i){let{d:e,area:t,label:n,objectType:o,quantity:r=1,identity:s}=i,a=F=>String(F??"\u2014").replace(/[&<>"]/g,X=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[X]),l=o==="ga"?"ga":e?.objectType??o,c=s?.displayType?.trim()||e?.displayType?.trim()||t?.displayType?.trim()||(l==="table"?y("picker.table","Table"):l==="booth"?y("picker.booth","Booth"):l==="ga"?y("picker.generalAdmission","General admission"):y("picker.row","Row")),d=s?.rowLabel??s?.displayLabel??e?.rowLabel??e?.displayLabel??t?.label??n,p=i.categoryLabel?.trim()??"",u="",h=[];l==="table"&&s?.bookingMode?(u=`${c} ${d}`,h.push([y("picker.guests","Guests"),String(r)])):l==="ga"?(u=String(t?.displayLabel??d),r>1&&h.push([y("picker.tickets","Tickets"),String(r)])):l==="booth"?(u=e?.sectionLabel??`${c} ${d}`,e?.sectionLabel&&h.push([c,String(d)])):!e?.sectionLabel&&!e?.rowLabel&&!e?.seatNumber?u=String(d):(u=e.sectionLabel??"",e.rowLabel&&h.push([c,String(fe(e)??e.rowLabel)]),e.seatNumber&&h.push([y("picker.seat","Seat"),String(e.seatNumber)]));let b=!u&&!!p,f=u||p||String(d),T=!!p&&!b&&p!==f,w=i.offerName?Fn(i.offerName,a):"",v=h.map(([F,X])=>`<span class="sl-chip-seg" data-fit-seg><span class="w">${a(F)}</span> <b>${a(X)}</b></span>`);T&&v.push(`<span class="sl-chip-seg" data-fit-seg data-fit-type><span class="w">${a(p)}</span>${w}</span>`);let M=[f,...h.map(([F,X])=>`${F} ${X}`),T?p:"",i.offerName??""].filter(Boolean).join(" \xB7 ");return`<div class="sl-chip-id"><span class="sl-sr">${a(M)}</span><span class="sl-chip-name" aria-hidden="true">${a(f)}${T?"":w}</span>`+(v.length?`<span class="sl-chip-pos" aria-hidden="true">${v.join("<i>\xB7</i>")}</span>`:"")+"</div>"}function lr(i,e,t){return i.map(n=>`<option value="${t(n.id)}"${n.id===e?" selected":""}>${t(n.name)}</option>`).join("")}function cu(i){let e=q;return` data-key="${e(i.key)}"`+(i.heldLabels.length?` data-held="${e(encodeURIComponent(i.heldLabels.join(`
195
+ .sl-sales-copy span{display:block;margin-top:3px;font-size:12.5px;line-height:1.45;color:var(--sl-muted)}`,Xh={lock:'<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>',flag:'<path d="M5 21V4M5 4h11l-2 4 2 4H5"/>',cart:'<circle cx="9" cy="20" r="1.4"/><circle cx="17" cy="20" r="1.4"/><path d="M3 4h2l2.4 11h10.2L20 8H6.2"/>'},Qs=i=>i.replace(/[&<>"']/g,e=>`&#${e.charCodeAt(0)};`);Ft=i=>ea(i.salesClosed,i.salesState,!!i.opts.readOnly),Qh=Ft;Zs=new WeakMap});var vg={};Qo(vg,{ApiError:()=>ne,BuyerAccessContext:()=>De,BuyerAccessUnavailableError:()=>he,BuyerRealtimeClient:()=>Ze,EmbeddedDesigner:()=>ko,PerformanceGroupDestroyedError:()=>ye,PerformanceGroupPicker:()=>Go,SEATING_CHART_CALLBACK_PROPS:()=>Mr,SEATING_CHART_HANDLE_METHODS:()=>Cr,SEATING_CHART_IDENTITY_PROPS:()=>Ar,SEATING_CHART_VALUE_PROPS:()=>Pr,SeasonApiError:()=>te,SeasonPicker:()=>Wo,SeasonPublicSessionRefused:()=>bn,SeasonRecoveryTimeoutError:()=>wn,SeatPicker:()=>dt,SeatingChart:()=>xo,attachPickerFrame:()=>zp,bindSeatingChartHandle:()=>Bl,buildSeatingChartOptions:()=>Fl,createBuyerAccessContext:()=>wi,createControllerSink:()=>li,parseTicketOfferAvailability:()=>To,prewarmSeatPicker:()=>bp,shortOperationReference:()=>Di,ticketOfferPrices:()=>Ir});module.exports=Xp(vg);var J=require("@seatlayer/core");var Qp=/^[0-9A-Za-z.+-]{1,24}$/,Zp=Qp.test("0.109.1")?"0.109.1":"",Jp={host:"web",platform:"web",bundle:Zp,protocol:0,chromeOwner:"web"},eh={...Jp},Ln=null,ks=null;function th(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():0}function ih(){let i=e=>Math.max(0,Math.round(e*100)/100);return{bootMs:i(th()),documentMs:Ln==null?0:i(Ln),handshakeMs:Ln==null||ks==null?0:i(ks-Ln)}}function Ss(){let{host:i,platform:e,bundle:t,protocol:n,chromeOwner:o}=eh,r=ih();return{host:i,platform:e,...t?{bundle:t}:{},...n?{protocol:n}:{},chromeOwner:o,bootMs:r.bootMs,documentMs:r.documentMs,handshakeMs:r.handshakeMs}}var Ts=new Set,Es=new Map;function ot(i){return Ts.has(i)?"repeat":"cold"}function Hn(i){let e=ot(i);return Ts.add(i),e}function Be(i){return typeof i=="number"&&Number.isFinite(i)&&i>=0?Math.round(i):0}function Zi(){return typeof location>"u"?!1:/^(localhost|127\.0\.0\.1|\[::1\])$/i.test(location.hostname)}function nh(i){if(!/^[A-Za-z0-9_-]{1,80}$/.test(i.event))return null;let e=i.performanceProfile??{};return{event:i.event,scope:i.scope,surface:i.surface,outcome:i.outcome,stage:i.stage?.slice(0,32)??"",ms:Be(i.ms),api:Be(e.loadChartAndStatuses)||Be(e.loadChart),scene:Be(e.buildScene),panel:Be(e.buildBuyerControls),paint:Be(e.firstPaint),normalize:Be(e.normalizeBuyerModel),renderer:Be(e.createRenderer),seats:Be(i.seats),floors:Be(i.floors),view:i.view??"map",load:i.load??ot(i.event),transport:i.transport??"pubapi",...Ss(),availabilityMs:Be(e.loadStatuses),...typeof i.revealWaitMs=="number"?{revealWaitMs:Be(i.revealWaitMs)}:{},...typeof i.handoverMs=="number"?{handoverMs:Be(i.handoverMs)}:{},mounts:(Es.get(i.event)??0)+1,reconnects:Be(i.reconnects)}}var oh=new Set;function Qe(i){let e=nh(i);if(e){Es.set(i.event,e.mounts);for(let t of oh)try{t(e)}catch{}typeof fetch>"u"||Zi()||fetch(`${i.apiBase.replace(/\/+$/,"")}/pub/telemetry/chart-load`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify(e),credentials:"omit",keepalive:!0}).catch(()=>{})}}var rh="realtime.fallback_polling",Cs=new Set;function sh(i){let e=/^(wss?):\/\/([^/]+)(.*?)\/pub\/events\/([^/?#]+)\/subscribe(?:[?#]|$)/.exec(i);if(!e)return null;let t;try{t=decodeURIComponent(e[4])}catch{return null}return/^[A-Za-z0-9_-]{1,80}$/.test(t)?{apiBase:`${e[1]==="wss"?"https":"http"}://${e[2]}${e[3]}`,eventKey:t}:null}function As(i){let e=sh(i);return!e||Cs.has(e.eventKey)||(Cs.add(e.eventKey),typeof fetch>"u"||Zi())?!1:(fetch(`${e.apiBase}/pub/telemetry/client-error`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify({surface:"picker",errorCode:rh,eventKey:e.eventKey}),credentials:"omit",keepalive:!0}).catch(()=>{}),!0)}var _t="seatlayer.v1",Ps="\0",Ms=4401,ah=15e3,lh=25e3,ch=1e4,Ls=5e3,dh=JSON.stringify({type:"resume"}),ph=3e4,hh=6e4,uh=["pointermove","touchstart","keydown"],mh=3,fh=15e3,Hs=6e4;function gh(i){let e=typeof i.default=="string"?i.default:"free",t={};if(i.seats&&typeof i.seats=="object")for(let[n,o]of Object.entries(i.seats))typeof o=="string"&&o!==e&&(t[n]=o);return{default:e,exceptions:t}}function bh(i,e){if(!i||i.default!==e.default)return null;let t=[];for(let[n,o]of Object.entries(e.exceptions))i.exceptions[n]!==o&&t.push({label:n,status:o});for(let n of Object.keys(i.exceptions))n in e.exceptions||t.push({label:n,status:e.default});return t}function yh(i,e){for(let t of e)t.status===i.default?delete i.exceptions[t.label]:i.exceptions[t.label]=t.status}function Rs(i){if(/(?:^|[?&#])(?:token|access_token|bearer|authorization|ticket|tkt|bse)=/i.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL");if(/\bbse_[A-Za-z0-9._-]+/.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL")}var Ze=class{constructor(e){this.ws=null;this.watched=null;this.stopped=!0;this.attempt=0;this.reconnectTimer=null;this.pingTimer=null;this.pongTimer=null;this.resumeTimer=null;this.projection=null;this.version=null;this.v1=!1;this.useQueryMarker=!1;this.hidden=null;this.closedSections=null;this.failedUpgrades=0;this.pollTimer=null;this.fellBack=!1;this.lastWake=-1/0;this.lastInput=0;this.detachWake=null;this.reconnectCount=0;this.opts=e,typeof e.url=="string"&&Rs(e.url)}get polling(){return this.pollTimer!==null}get protocol(){return this.ws?this.v1?"v1":"legacy":null}get snapshotVersion(){return this.version}start(){this.stopped&&(this.stopped=!1,this.attachWake(),this.connect())}stop(){this.stopped=!0,this.clearTimers(),this.stopPolling(),this.detachWake?.(),this.detachWake=null;let e=this.ws;if(this.ws=null,e){e.onopen=null,e.onmessage=null,e.onclose=null,e.onerror=null;try{e.close()}catch{}}}restart(){this.stop(),this.projection=null,this.version=null,this.attempt=0,this.failedUpgrades=0,this.start()}async connect(){if(this.stopped)return;let e=[_t];if(this.opts.mintTicket){let a;try{a=await this.opts.mintTicket()}catch(l){this.reportIfAccessError(l),this.scheduleReconnect();return}if(this.stopped)return;a?.protocols?.length?(e=[...a.protocols],e.includes(_t)||e.unshift(_t)):a?.ticket&&(e=[_t,`tkt.${a.ticket}`])}let t=this.version!==null;t&&e.push(`sv.${this.version}`);let n=typeof this.opts.url=="function"?this.opts.url():this.opts.url,o=this.useQueryMarker?`${n}${n.includes("?")?"&":"?"}pv=1`:n;Rs(o);let r;try{r=(this.opts.socketFactory??((l,c)=>new WebSocket(l,c)))(o,e)}catch{this.upgradeFailed(),this.scheduleReconnect();return}this.ws=r;let s=!1;r.onopen=()=>{this.ws===r&&(s=!0,this.attempt=0,this.failedUpgrades=0,this.stopPolling(),this.v1=r.protocol===_t,this.v1||(this.useQueryMarker=!0),this.startKeepalive(r),this.watched=null,this.watchHold(this.opts.heldHoldId?.()??null),t?this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync()},Ls):this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync({reason:"connect"})},Ls))},r.onmessage=a=>{if(this.ws!==r)return;let l;try{l=JSON.parse(typeof a.data=="string"?a.data:"")}catch{return}!l||typeof l!="object"||this.handleFrame(l)},r.onclose=a=>{if(this.ws===r){if(this.ws=null,this.clearTimers(),!s&&a?.code!==Ms&&this.upgradeFailed(),a?.code===Ms){if(a.reason==="access_expired"){this.scheduleReconnect();return}if(a.reason==="idle_expired"&&this.opts.onIdleExpired){this.stopped=!0,this.stopPolling(),this.opts.onIdleExpired();return}this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:"revoked",code:"access_revoked",retryable:!1});return}this.scheduleReconnect()}},r.onerror=()=>{try{r.close()}catch{}}}watchHold(e){let t=this.ws;if(!(!e||e===this.watched||!t||t.readyState!==1))try{t.send(JSON.stringify({type:"watch",holdId:e})),this.watched=e}catch{}}handleFrame(e){let t=typeof e.type=="string"?e.type:"";if(e.protocol===1&&(this.v1=!0),typeof e.snapshotVersion=="number"&&(this.version=e.snapshotVersion),t==="pong"){this.clearPongTimer();return}if(t==="sales"){this.opts.sink.onSales?.(e);return}if(Array.isArray(e.hidden)||Array.isArray(e.closed)){let n=Array.isArray(e.hidden)?e.hidden:[],o=Array.isArray(e.closed)?e.closed:[],r=n.join(Ps),s=o.join(Ps);(r!==this.hidden||s!==this.closedSections)&&(this.hidden=r,this.closedSections=s,this.opts.sink.onSections?.(n,o,{withInventory:t==="snapshot"||!!e.seats}))}if(t!=="hidden"){if(t==="hold"){typeof e.holdId=="string"&&typeof e.state=="string"&&this.opts.onHoldState?.(e.holdId,e.state);return}if(t==="presence"){this.opts.sink.onPresence?.({shoppingSessions:Number(e.shoppingSessions)||0,activeHolds:Number(e.activeHolds)||0});return}if(t!=="allocation"){if(t==="snapshot"||!t&&e.seats){this.answered();let n=gh(e),o=bh(this.projection,n);this.projection=n,o===null?this.opts.sink.applyProjection?this.opts.sink.applyProjection(n):this.opts.sink.resync():o.length&&this.opts.sink.applyStatuses(o);return}if(t==="delta"&&Array.isArray(e.changes)){this.answered();let n=e.changes.filter(o=>typeof o?.label=="string"&&typeof o?.status=="string").map(o=>({label:o.label,status:o.status}));if(!n.length)return;this.projection&&yh(this.projection,n),this.opts.sink.applyStatuses(n)}}}}answered(){this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null)}reportIfAccessError(e){let t=e?.reason;e?.name==="BuyerAccessUnavailableError"&&(this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:t??"invalid",code:e.code,status:e.status,retryable:t==="paused"}))}upgradeFailed(){this.failedUpgrades+=1,this.failedUpgrades>=mh&&this.startPolling()}startPolling(){if(!(this.pollTimer||this.stopped)){if(!this.fellBack){this.fellBack=!0;try{this.opts.onFallbackPolling?.()}catch{}let e=typeof this.opts.url=="function"?this.opts.url():this.opts.url;As(e)}this.pollTimer=setInterval(()=>{if(this.stopped){this.stopPolling();return}typeof document<"u"&&document.hidden||Promise.resolve().then(()=>this.opts.poll?this.opts.poll():this.opts.sink.resync({reason:"frame"})).catch(()=>{})},fh)}}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}now(){return this.opts.now?this.opts.now():Date.now()}attachWake(){if(this.detachWake||typeof document>"u"||typeof window>"u"||typeof document.addEventListener!="function"||typeof window.addEventListener!="function")return;this.lastInput=this.now();let e=()=>{document.visibilityState==="visible"&&this.wake()},t=()=>{let r=this.now(),s=r-this.lastInput>=hh;this.lastInput=r,s&&this.wake()},n={capture:!0,passive:!0},o=r=>{document[r]("visibilitychange",e),window[r]("focus",e);for(let s of uh)document[r](s,t,n)};o("addEventListener"),this.detachWake=()=>o("removeEventListener")}wake(){let e=this.ws;if(!e||e.readyState!==1)return;let t=this.now();if(!(t-this.lastWake<ph)){try{e.send(dh)}catch{return}this.lastWake=t}}startKeepalive(e){this.pingTimer=setInterval(()=>{if(this.ws===e){try{e.send(JSON.stringify({type:"ping"}))}catch{return}this.clearPongTimer(),this.pongTimer=setTimeout(()=>{this.pongTimer=null;try{e.close()}catch{}},ch)}},lh)}scheduleReconnect(){if(this.stopped||this.reconnectTimer)return;let e=Math.min(this.attempt++,5),t=Math.min(1e3*2**e,ah),n=this.pollTimer?Hs/2+Math.random()*Hs/2:Math.random()*t;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.reconnectCount+=1,this.connect()},n)}get reconnects(){return this.reconnectCount}clearPongTimer(){this.pongTimer&&(clearTimeout(this.pongTimer),this.pongTimer=null)}clearTimers(){this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null,this.clearPongTimer(),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=null}};function vh(i){return i==="blocked"?"not_for_sale":i==="unavailable"?"held":i==="held"||i==="booked"||i==="free"||i==="not_for_sale"?i:"free"}var wh="#f43f5e";function li(i,e={}){let t=n=>{let o=i.tableSelection(n);if(o)return o.physicalSeatIds;let r=i.idForLabel(n);return r?[r]:[]};return{applyStatuses(n){let o=new Set([...i.currentHold()?.labels??[],...e.ownLabels?.()??[]]),r={free:[],held:[],booked:[],not_for_sale:[]},s=[],a=[],l=new Map(i.getSelection().map(c=>[c.label,c.id]));for(let c of n){let d=t(c.label);if(!d.length)continue;let p=vh(c.status);if(r[p].push(...d),e.flashOnLiveChange&&p!=="free"&&!o.has(c.label)&&d.some(u=>i.getStatus(u)==="free"))for(let u of d)s.push({id:u,color:wh});p!=="free"&&!o.has(c.label)&&l.has(c.label)&&a.push(c.label)}for(let c of["free","held","booked","not_for_sale"])r[c].length&&i.setStatus(r[c],c);for(let c of s)i.flashSeat(c.id,c.color);if(a.length){let c=a.flatMap(p=>t(p));c.length&&i.deselect(c);let d=n.some(p=>p.status==="blocked"&&a.includes(p.label));e.onSelectedObjectUnavailable?.(a,d?"ineligible":"taken")}e.onStatusChange?.()},...i.applyProjection?{applyProjection:n=>{i.applyProjection(n)}}:{},async resync(n){await(i.resync?i.resync(n):i.refresh())},onSections(n,o,r){r?.withInventory||(i.resync?i.resync({reason:"frame"}):i.refresh()),e.onSections?.(n,o,r)}}}var Nt="pricingContract=matrix-v1&pricingContract=seat-v1",ne=class extends Error{constructor(e,t,n,o,r,s,a,l){super(t),this.name="ApiError",this.status=e,this.code=n,this.conflicts=o,this.reason=r,this.retryAfterS=s,this.notice=a,l?.fields&&(this.fields=l.fields),typeof l?.retryable=="boolean"&&(this.retryable=l.retryable),l?.hint&&(this.hint=l.hint),l?.serverMessage&&(this.serverMessage=l.serverMessage)}},Is=10,Os=1;function Ji(i,e){let t=(i??"").trim();if(t){let n=Number(t);if(Number.isFinite(n)&&n>=0)return Math.ceil(n);let o=Date.parse(t);if(Number.isFinite(o))return Math.max(0,Math.ceil((o-Date.now())/1e3))}if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return Math.ceil(e)}function xh(i){let e=i;return!!e&&typeof e.ticketKey=="string"&&typeof e.label=="string"&&Number.isFinite(e.unitIndex)&&Number.isFinite(e.quantity)&&(e.displayLabel===void 0||typeof e.displayLabel=="string")}var kh={seat_conflict:"taken",conflict:"taken",channel_assignment_conflict:"ineligible",allocation_exhausted:"exhausted"};function Sh(){return typeof crypto>"u"?null:typeof crypto.randomUUID=="function"?crypto.randomUUID():typeof crypto.getRandomValues!="function"?null:Array.from(crypto.getRandomValues(new Uint8Array(18)),i=>i.toString(16).padStart(2,"0")).join("")}function Th(i,e){let t=e.map(n=>[n.label,n.tierId??null,n.quantity??null]).sort((n,o)=>n[0]<o[0]?-1:n[0]>o[0]?1:0);return JSON.stringify([i,t])}function Eh(i){return i instanceof ne?i.status===408||i.status===429||i.status>=500:!0}function _s(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`viewer_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`}var bt=class{constructor(e,t={}){this.base=e;this.viewerId=_s();this.holdAttempt=null;this.holdIdempotency=!0;this.ticketKeysByHold=new Map;this.access=t.access,this.onObjectUnavailable=t.onObjectUnavailable;let n=t.referral?.trim();this.referral=n?n.slice(0,120):void 0}rotateViewerId(){this.viewerId=_s()}async pickerIdleMinutes(){return null}get accessScoped(){return!!this.access?.configured}async request(e,t={},n={}){let o=t.method??"GET",r={},s;t.body!==void 0&&(r["Content-Type"]="application/json",s=JSON.stringify(t.body));let a=await this.access?.authorization(n.auth?"unauthorized":"initial");if(a&&(r.Authorization=a),t.idempotency){let u=this.holdAttemptKey(`${t.idempotency.binding}\0${a??""}`);t.idempotency.used(u??void 0),u&&(r["Idempotency-Key"]=u)}let l=o==="GET"||e.endsWith("/hold/resume")?new AbortController:null,c=l?setTimeout(()=>l.abort(),4e4):null,d,p;try{d=await fetch(`${this.base}${e}`,{method:o,headers:r,body:s,credentials:"omit",...l?{signal:l.signal}:{}}),p=(d.headers.get("content-type")??"").includes("application/json")?await d.json().catch(h=>{if(l?.signal.aborted)throw h;return null}):null}finally{c!==null&&clearTimeout(c)}if(!d.ok){let u=p,h=u?.code??u?.error,b=d.status===401&&h==="buyer_access_invalid"&&e.endsWith("/hold/resume");if(this.access?.configured&&!b&&(d.status===401||d.status===403||d.status===422)&&await this.access.handleFailure(d.status,h)&&!n.auth)return this.request(e,t,{...n,auth:!0});if(d.status===409){let T=h?kh[h]:void 0,w=u?.conflicts?.map(v=>v.label)??t.labels??[];T&&this.onObjectUnavailable?.({labels:w,reason:T,code:h})}let f;if(d.status===429&&(f=Ji(d.headers.get("Retry-After"),u?.retryAfterSeconds)??Os,o==="GET"&&!n.rateLimit&&f<=Is))return await new Promise(T=>setTimeout(T,f*1e3)),this.request(e,t,{...n,rateLimit:!0});throw d.status===503&&(f=Ji(d.headers.get("Retry-After"),u?.retryAfterSeconds)),new ne(d.status,u?.error??`request_failed_${d.status}`,h,u?.conflicts,u?.reason,f,typeof u?.notice=="string"&&u.notice?u.notice:void 0,{...Array.isArray(u?.fields)?{fields:u.fields}:{},...typeof u?.retryable=="boolean"?{retryable:u.retryable}:{},...typeof u?.hint=="string"&&u.hint?{hint:u.hint}:{},...typeof u?.message=="string"&&u.message?{serverMessage:u.message}:{}})}return p}async requestBlob(e,t={}){let n={},o=await this.access?.authorization(t.auth?"unauthorized":"initial");o&&(n.Authorization=o);let r=await fetch(`${this.base}${e}`,{method:"GET",headers:n,credentials:"omit"});if(r.ok)return r.blob();let a=(r.headers.get("content-type")??"").includes("application/json")?await r.json().catch(()=>null):null,l=a?.code??a?.error;if(this.access?.configured&&(r.status===401||r.status===403||r.status===422)&&await this.access.handleFailure(r.status,l)&&!t.auth)return this.requestBlob(e,{...t,auth:!0});let c;if(r.status===429&&(c=Ji(r.headers.get("Retry-After"),a?.retryAfterSeconds)??Os,!t.rateLimit&&c<=Is))return await new Promise(d=>setTimeout(d,c*1e3)),this.requestBlob(e,{...t,rateLimit:!0});throw new ne(r.status,a?.error??`request_failed_${r.status}`,l,void 0,void 0,c)}chart(e){return this.request(`/pub/events/${encodeURIComponent(e)}/chart`)}eventConfiguration(e){return this.request(`/pub/events/${encodeURIComponent(e)}/event-configuration`)}reportViewEvidence(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/view-evidence-reports`,{method:"POST",body:{seatId:t.seatId,...t.evidenceId?{evidenceId:t.evidenceId}:{},...t.message?{message:t.message}:{}}})}asset(e,t){return/^[a-zA-Z0-9._-]+$/.test(t)?this.requestBlob(`/pub/events/${encodeURIComponent(e)}/assets/${encodeURIComponent(t)}`):Promise.reject(new ne(404,"not_found","not_found"))}async objects(e){return{...await this.request(`/pub/events/${encodeURIComponent(e)}/objects?compact=1&${Nt}`),fetchedAt:Date.now()}}hold(e,t,n,o){let r=`/pub/events/${encodeURIComponent(e)}/hold?${Nt}`,s={method:"POST",body:{selections:t,...n?{ttlMs:n}:{},...o?{replaceHoldId:o}:{},...this.referral?{referral:this.referral}:{}},labels:t.map(l=>l.label)};return(o||!this.holdIdempotency?this.request(r,s):this.keyedHold(r,s,Th(e,t))).then(l=>this.noteTicketKeys(l,o))}holdAttemptKey(e){if(this.holdAttempt?.binding===e)return this.holdAttempt.key;let t=Sh();return this.holdAttempt=t?{binding:e,key:t}:null,t}endHoldAttempt(e){e&&this.holdAttempt?.key===e&&(this.holdAttempt=null)}async keyedHold(e,t,n,o=!1){let r;try{let s=await this.request(e,{...t,idempotency:{binding:n,used:a=>{r=a}}});return this.endHoldAttempt(r),s}catch(s){if(Eh(s))throw s;this.endHoldAttempt(r);let a=s.code;if(a==="idempotency_key_reused"&&!o)return this.keyedHold(e,t,n,!0);if(a==="invalid_idempotency_key")return this.holdIdempotency=!1,this.request(e,t);throw s}}noteTicketKeys(e,t){if(t&&this.ticketKeysByHold.delete(t),!e?.holdId)return e;let n=Array.isArray(e.ticketKeys)&&e.ticketKeys.every(r=>typeof r=="string")?[...e.ticketKeys]:null,o=Array.isArray(e.ticketKeyDetails)&&e.ticketKeyDetails.every(xh)?e.ticketKeyDetails.map(({ticketKey:r,label:s,unitIndex:a,quantity:l,displayLabel:c})=>({ticketKey:r,label:s,unitIndex:a,quantity:l,...c?{displayLabel:c}:{}})):null;return n||o?this.ticketKeysByHold.set(e.holdId,{...n?{ticketKeys:n}:{},...o?{ticketKeyDetails:o}:{}}):this.ticketKeysByHold.delete(e.holdId),e}ticketKeysFor(e){let t=this.ticketKeysByHold.get(e);return t?{...t}:null}bestAvailable(e,t,n,o,r){return this.request(`/pub/events/${encodeURIComponent(e)}/best-available?${Nt}`,{method:"POST",body:{qty:t,...n?{categoryKey:n}:{},...o?{zoneId:o}:{},...r?{ttlMs:r}:{},...this.referral?{referral:this.referral}:{}}}).then(s=>this.noteTicketKeys(s))}resume(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/hold/resume`,{method:"POST",body:{holdId:t}}).then(n=>this.noteTicketKeys(n))}release(e,t,n){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/release`,{method:"POST",body:{labels:t,holdId:n}}).then(o=>{let r=this.ticketKeysByHold.get(n);if(r){let s=new Set(o?.released??t);this.ticketKeysByHold.set(n,{...r.ticketKeys?{ticketKeys:r.ticketKeys.filter(a=>!s.has(a))}:{},...r.ticketKeyDetails?{ticketKeyDetails:r.ticketKeyDetails.filter(a=>!s.has(a.ticketKey))}:{}})}return o})}extend(e,t,n){return this.request(`/pub/events/${encodeURIComponent(e)}/extend`,{method:"POST",body:{holdId:t,...n?{ttlMs:n}:{}}})}paymentOptions(e){return this.request(`/pub/events/${encodeURIComponent(e)}/payment-options`)}availability(e,t=!1){return this.request(`/pub/events/${encodeURIComponent(e)}/availability?${Nt}${t?"&live=1":""}`)}startCheckout(e,t){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/checkout`,{method:"POST",body:t})}orderStatus(e){return this.request(`/pub/orders/${encodeURIComponent(e)}/status`)}subscribeTicket(e){return this.request(`/pub/events/${encodeURIComponent(e)}/subscribe-tickets`,{method:"POST",body:{}})}subscribeUrl(e){let t=this.base.replace(/^http/,"ws"),n=new URLSearchParams({surface:"picker",viewerId:this.viewerId});return`${t}/pub/events/${encodeURIComponent(e)}/subscribe?${n}&${Nt}`}socketUrl(e){return this.accessScoped?"":this.subscribeUrl(e)}socketProtocols(e){return this.accessScoped?[]:[_t]}createRealtime(e,t){return this.accessScoped?null:new Ze({url:this.subscribeUrl(e),sink:t})}};var nn=require("@seatlayer/core");var Oe=require("@seatlayer/core"),ba=require("@seatlayer/core/core/seatConfidence");var tr=require("@seatlayer/core"),pi=require("@seatlayer/core/core/cdnAsset");var Ch=/^data:image\/(?:png|jpe?g|webp|gif|avif);base64,[a-z0-9+/]+={0,2}$/i,Ah=/[\s"'<>`\\]/;function Ph(i){return i.startsWith("//")?!1:i.startsWith("/")||i.startsWith("./")||i.startsWith("../")}function Mh(){try{let i=typeof location>"u"?"":location.origin;return i&&i!=="null"?i:null}catch{return null}}function ci(i){if(typeof i!="string"||!i||i.length>2e6||i!==i.trim())return!1;if(i.startsWith("data:"))return Ch.test(i);if(Ah.test(i))return!1;let e=Mh();if(Ph(i)){if(!e)return!1;try{let t=new URL(i,e);return t.origin===e&&!t.username&&!t.password}catch{return!1}}try{let t=new URL(i);return t.username||t.password?!1:t.protocol==="https:"||e!=null&&t.origin===e}catch{return!1}}var ru=require("@seatlayer/core/core/cdnAsset");function y(i,e){let t=(0,tr.t)(i);return t===i?e:t}function Vt(){return globalThis.matchMedia?.("(pointer: coarse)").matches??!1?y("picker.dragToLookTouch","Drag to look \xB7 pinch to zoom \xB7 tap \u2715 to close"):y("picker.dragToLookMouse","Drag to look \xB7 pinch or scroll to zoom \xB7 Esc to close")}function On(){return{rotate:y("picker.dragToRotateVenue","Drag to rotate the venue"),move:y("picker.dragToMoveVenue","Drag to move the venue"),zoomIn:y("picker.zoomIn","Zoom in"),zoomOut:y("picker.zoomOut","Zoom out"),fitView:y("picker.fitWholeVenue","Show whole venue")}}function sa(i,e){let t=e?i.toLocaleUpperCase(e):i.toLocaleUpperCase(),n=e?i.toLocaleLowerCase(e):i.toLocaleLowerCase();if(i!==t||t===n)return i;let o=[...n][0]??"";return(e?o.toLocaleUpperCase(e):o.toLocaleUpperCase())+n.slice(o.length)}function aa(i){if(typeof i=="string"){let e=document.querySelector(i);if(!e)throw new Error(`seatmap: container "${i}" not found`);return e}if(!(i instanceof HTMLElement))throw new Error("seatmap: container must be a CSS selector or an HTMLElement");return i}function q(i){return String(i??"").replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}function la(i,e,t){let n=e.find(r=>ci(r))??null;if(i.replaceChildren(),!n)return i.textContent=t.slice(0,1).toUpperCase(),null;let o=document.createElement("img");return o.alt="",o.referrerPolicy="no-referrer",o.src=n,i.appendChild(o),n}var di=null;function _n(){if(di!==null)return di;try{if(typeof document>"u")return di=!1;di=!!document.createElement("canvas").getContext("webgl2")}catch{di=!1}return di}var en=null;function tn(){return en||(en=(typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-view3d.mjs"):import("@seatlayer/core/view3d")).catch(e=>{throw en=null,e}),en)}function Nn(){(typeof navigator>"u"?void 0:navigator.connection)?.saveData||tn().catch(()=>{})}async function Dn(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-panorama.mjs"):import("@seatlayer/core")}async function hi(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-checkout.mjs"):Promise.resolve().then(()=>(Ys(),Ws))}async function ca(){return typeof __SEATLAYER_CDN__<"u"&&__SEATLAYER_CDN__?(0,pi.importCdnAsset)("seatlayer-sales.mjs"):Promise.resolve().then(()=>(oa(),na))}function da(i){return i==="unavailable_for_event"||i==="payments_off_for_event"?i:"not_configured"}function pa(i){return i.lineItems.reduce((e,t)=>e+t.quantity,0)}function ir(i,e){if(i.objectType!=="ga")return i.displayLabel??i.label;let t=e.find(n=>n.id===i.objectId);return i.displayLabel??t?.displayLabel??t?.label??y("picker.generalAdmission","General admission")}function nu(i,e){let t=new Map;for(let n of i){let o=n.rowLabel&&n.seatNumber?[n.sectionLabel,`${y("picker.row","Row")} ${n.rowLabel}`,`${y("picker.seat","Seat")} ${n.seatNumber}`].filter(Boolean).join(" \xB7 "):ir(n,e),r=[n.categoryLabel,n.tierLabel].filter(Boolean).join(" \xB7 "),s=Math.max(1,Math.floor(n.quantity||1)),a=`${o}\0${r}`,l=t.get(a)??{label:o,detail:r,units:0,amount:0};l.units+=s,l.amount+=n.unitPrice*s,t.set(a,l)}return[...t.values()].map(n=>({label:n.units>1?`${n.label} \xD7${n.units}`:n.label,...n.detail?{detail:n.detail}:{},amount:n.amount}))}var ra=(i,e,t)=>(0,tr.t)("picker.bookingForm.guestOfCount",{label:i,index:e,total:t});function ou(i,e,t=[]){let n=new Map,o=[];for(let d of i.lineItems){let p=ir(d,t),u=Math.max(1,Math.floor(d.quantity)||1);if(d.objectType!=="ga"&&!(d.objectType==="table"&&u>1)){o.push({key:d.label,name:p,unitIndex:1,quantity:1});continue}for(let h=1;h<=u;h+=1){let b=(n.get(d.label)??0)+1;n.set(d.label,b),o.push({key:`${d.label}#${b}`,name:p,unitIndex:h,quantity:u})}}let r=e?.ticketKeyDetails??[],s=e?.ticketKeys??r.map(d=>d.ticketKey),a=(s.length===o.length?s:o.map(d=>d.key)).map(d=>{let p=o.find(h=>h.key===d),u=r.find(h=>h.ticketKey===d);return{key:d,name:u?.displayLabel??p?.name,unitIndex:u?.unitIndex??p?.unitIndex??1,quantity:u?.quantity??p?.quantity??1}}),l=new Map;for(let d of a)d.name&&d.quantity<=1&&l.set(d.name,(l.get(d.name)??0)+1);let c=new Map;return a.map(({key:d,name:p,unitIndex:u,quantity:h})=>{if(!p)return{key:d};if(h>1)return{key:d,title:ra(p,u,h)};let b=(c.get(p)??0)+1;c.set(p,b);let f=l.get(p)??1;return{key:d,title:f>1?ra(p,b,f):p}})}function ha(i,e,t,n,o=[]){let r=new Map;for(let s of i.lineItems){let a=ir(s,o);r.set(a,(r.get(a)??0)+1)}return{kind:"pay",provider:e,order:{holdId:i.holdId,expiresAt:i.expiresAt,currency:i.currency,total:i.total,labels:[...r].map(([s,a])=>a>1?`${s} \xD7${a}`:s),tickets:ou(i,n,o),lines:nu(i.lineItems,o)},bookingForm:t?.bookingForm??null,...t?.bookingMode==="free"?{free:!0}:{}}}function ua(i){return String(i?.code).startsWith("booking_form_")}function Bn(i,e,t){let n={month:"short",day:"numeric",hour:"numeric",minute:"2-digit"},o=new Date(i);if(e)try{return o.toLocaleString(t,{...n,timeZone:e})}catch{}return o.toLocaleString(t,n)}function nr(i){return/early[\s-]*bird/i.test(i?.trim()??"")}function ma(i){return nr(i)?'<svg class="sl-offer-icon sl-offer-icon-discount" viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="sl-offer-discount-gradient" x1="29.492" y1="0" x2="20.028" y2="36.183" gradientUnits="userSpaceOnUse"><stop stop-color="#FD6D00"/><stop offset="1" stop-color="#F8B302"/></linearGradient></defs><path d="M16 22.751a1.071 1.071 0 1 0 0-2.142 1.071 1.071 0 0 0 0 2.142ZM16 11.39a1.071 1.071 0 1 0 0-2.141 1.071 1.071 0 0 0 0 2.141Z" fill="url(#sl-offer-discount-gradient)"/><path d="M31.137.863A2.928 2.928 0 0 0 29.054 0H17.836c-.787 0-1.527.307-2.083.863L.863 15.753A2.93 2.93 0 0 0 0 17.836c0 .787.307 1.527.863 2.083l11.218 11.218A2.927 2.927 0 0 0 14.164 32c.787 0 1.527-.307 2.083-.863l14.89-14.89A2.928 2.928 0 0 0 32 14.164V2.946c0-.788-.307-1.527-.863-2.083ZM16 7.374a2.946 2.946 0 1 1 0 5.891 2.946 2.946 0 0 1 0-5.891Zm0 17.252a2.946 2.946 0 1 1 0-5.891 2.946 2.946 0 0 1 0 5.891Zm6.025-7.689H9.975a.938.938 0 0 1 0-1.875h12.05a.938.938 0 0 1 0 1.875Zm4.017-10.041a.938.938 0 1 1 0-1.875.938.938 0 0 1 0 1.875Z" fill="url(#sl-offer-discount-gradient)"/></svg>':'<svg class="sl-offer-icon sl-offer-icon-tag" viewBox="0 0 24 24" aria-hidden="true"><path d="M20.6 13.6 13.7 20.5a2 2 0 0 1-2.8 0L3.5 13.1A2 2 0 0 1 3 11.7V4h7.7a2 2 0 0 1 1.4.6l8.5 8.5a.7.7 0 0 1 0 .5Z"/><circle cx="7.5" cy="8.5" r="1"/></svg>'}function Fn(i,e){return`<span class="sl-offer-mark" role="img" aria-label="${e(i)}" title="${e(i)}">${ma(i)}</span>`}function Vn(i,e){return`<span class="sl-offer-badge">${ma(i)}<span>${e(i)}</span></span>`}function fa(i,e=Date.now()){let t=i-e;if(t<=0)return null;let n=Math.max(1,Math.ceil(t/6e4)),o=Math.floor(n/1440),r=Math.floor(n%1440/60),s=n%60;return`${(o>0?[`${o}d`,...r?[`${r}h`]:[]]:[...r?[`${r}h`]:[],...s||!r?[`${s}m`]:[]]).join(" ")} left`}function or(i){return String(i??"\u2014").replace(/[&<>"]/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[e])}function L(i){return String(i??"").replace(/[&<>"]/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[e])}function rr(i){return i?(0,Oe.seatNoteRowModel)(i).map(e=>({...e,title:y(e.titleKey,e.titleFallback)})):[]}function ya(i){return rr(i).map(e=>e.title)}function $t(i,e={}){return sr(rr(i),e)}function sr(i,e={}){if(!i.length)return"";let t=e.compact?15:17,n=i.map(o=>`<div class="sl-note sl-note-${L(o.tone)}"><span class="sl-note-i">${(0,Oe.seatTypeIconSvg)(o.icon,{size:t})}</span><span class="sl-note-t"><b>${L(o.title)}</b>`+(o.note?`<span class="sl-note-n">${L(o.note)}</span>`:"")+"</span></div>").join("");return`<div class="sl-notes${e.compact?" compact":""}">${n}</div>`}function va(i){return rr(i).map(e=>{let t=L(e.note?`${e.title}: ${e.note}`:e.title);return`<span class="sl-cx-mark sl-cx-mark-${L(e.tone)}" role="img" aria-label="${t}" title="${t}">${(0,Oe.seatTypeIconSvg)(e.icon,{size:13})}</span>`}).join("")}function $n(i){let e=[];return i?.restrictedView&&e.push(y("picker.restrictedView","Restricted view")),i?.obstructedView&&e.push(y("picker.obstructedView","Obstructed view")),e}function ar(i,e){if(!i)return"";let t=e?y("picker.viewFromThisSeat","View from this seat"):y("picker.seeItIn3d","See it in 3D"),n=e?y("picker.viewFromHere","View from here"):t;return`<button type="button" class="sl-confirm-3d" aria-label="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span>${n}</span></button>`}function wa(i,e){if(!e)return"";let t=e,n=t.includes(i.id),o=n?t.length>1?y("picker.openComparison","Open comparison"):y("picker.savedForComparison","Saved for comparison"):t.length?y("picker.compareWithSaved","Compare with saved"):y("picker.saveToCompare","Save to compare");return`<button type="button" class="sl-confirm-compare"${n&&t.length===1?" disabled":""}><span aria-hidden="true">\u21C4</span><span>${L(o)}</span></button>`}function xa(i,e,t){if(!t)return"";let n=(0,ba.seatConfidenceDisclosure)(i.confidenceEvidence),o=n.modeledTarget??n.reality;return`<button type="button" class="sl-confirm-confidence" aria-label="Open seat confidence passport for ${L(i.displayLabel??i.label)}"><span><em>${L(e)}</em><strong>${L(n.headline)}</strong><small>${L(o)}</small></span><b>Passport</b></button>`}function fe(i){let e=i?.rowLabel,t=i?.sectionLabel;if(!e||!t)return e;for(let n of["-"," ","\xB7","/","_"]){let o=`${t}${n}`;if(e.startsWith(o)&&e.length>o.length)return e.slice(o.length)}return(0,Oe.compactRowLabel)(e,t)}function su(i){switch(i){case"paused":return{title:y("picker.accessPausedTitle","These seats are on hold right now"),body:y("picker.accessPausedBody","The organizer has paused this selection. Try again in a few minutes."),action:y("picker.accessRetry","Try again")};case"revoked":return{title:y("picker.accessRevokedTitle","This access link is no longer active"),body:y("picker.accessRevokedBody","Ask whoever sent you here for a new link to keep booking these seats."),action:y("picker.accessRefresh","Refresh")};case"idle":return{title:y("picker.idlePausedTitle","Your session expired"),body:y("picker.idlePausedBody","You were away for a while. Refresh to see which seats are free now."),action:y("picker.idleRefresh","Show latest seats")};case"no_token":case"provider_failed":return{title:y("picker.accessExpiredTitle","The seat map timed out"),body:y("picker.accessExpiredBody","Any seats you\u2019re holding stay held. Refresh to see what\u2019s available now."),action:y("picker.accessRefresh","Refresh")};default:return{title:y("picker.accessInvalidTitle","We couldn\u2019t verify your access"),body:y("picker.accessInvalidBody","You can still book anything shown as available. Contact whoever sent you here for access to the rest."),action:y("picker.accessRefresh","Refresh")}}}var au=6;function ka(i,e,t){let n=or;return[i?.sectionLabel?`<div class="sl-confirm-field sl-confirm-sec${i.sectionLabel.length>au?" sl-confirm-sec-long":""}"><span class="sl-confirm-key">${y("picker.section","Section")}</span><span class="sl-confirm-value">${n(i.sectionLabel)}</span></div>`:"",i?.rowLabel||i?.objectType==="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${n(t)}</span><span class="sl-confirm-value">${n(fe(i)??i?.displayLabel??e)}</span></div>`:"",i?.objectType!=="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${y("picker.seat","Seat")}</span><span class="sl-confirm-value">${n(i?.seatNumber??i?.displayLabel??e)}</span></div>`:""].filter(Boolean).join("")}function Sa(i,e,t){let n=or,o=i?.objectType==="booth",r=i?.objectType==="table"&&!!i?.bookingMode,s=o||r||!i?.seatNumber,a=i?.sectionLabel??(s?void 0:i?.displayLabel),l=r?`${y("picker.guests","Guests")} ${i?.bookingMode==="variable"?`${i?.minOccupancy}\u2013${i?.maxOccupancy}`:i?.capacity}`:void 0,d=(s?[l,a?i?.rowLabel??i?.displayLabel:void 0]:[i?.rowLabel?`${t} ${fe(i)??""}`.trim():void 0,`${y("picker.seat","Seat")} ${i?.seatNumber??e}`]).filter(Boolean).join(" \xB7 ");return(a?`<span class="sl-confirm-place">${n(a)}</span>`:"")+(d?`<span class="sl-confirm-pos">${a?" \xB7 ":""}${n(d)}</span>`:"")+(a||d?"":`<span class="sl-confirm-pos">${n(e)}</span>`)}function Ta(i,e){if(!i)return"";let t=e?y("picker.viewFromThisSeat","View from this seat"):y("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-pill sl-confirm-3dpill" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function Ea(i,e){if(!i||e)return"";let t=y("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-3drow" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function ga(i){return i.buyerMessage?.trim()||(i.restriction==="companion"?y("picker.companionRequiresWheelchair","Requires the adjacent wheelchair place"):void 0)}function zn(i,e,t,n=()=>{}){let o=or;if(i.length>1)return`<fieldset class="sl-confirm-tiers"><legend><span>${y("picker.ticketType","Ticket type")}</span></legend>`+i.map(a=>{let l=ga(a),c=n(a);return`<button type="button" class="sl-confirm-tier" data-confirm-tier="${o(a.id)}"${c?` data-offer-name="${o(c)}"`:""} aria-pressed="${a.id===e}"><span class="sl-confirm-tier-copy"><span class="sl-confirm-tier-name">${o(a.name)}`+(c?`<span class="sl-confirm-tier-offer">${Vn(c,o)}</span>`:"")+"</span>"+(l?`<small class="sl-confirm-tier-note">${o(l)}</small>`:"")+`</span><span class="sl-confirm-tier-price">${o(t(a))}</span></button>`}).join("")+"</fieldset>";let r=i[0],s=r?ga(r):void 0;return s?`<p class="sl-confirm-tier-note">${o(s)}</p>`:""}function Ca(i){return'<div class="sl-confirm-grid">'+i.identityFields+`</div><div class="sl-confirm-cat"><span class="sl-confirm-cat-name">${L(i.categoryLabel)}</span>`+(i.priceLabel?`<span class="sl-confirm-price">${L(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-id">'+i.marker+`<span class="sl-confirm-dot" style="background:${L(i.categoryColor)}" aria-hidden="true"></span><span class="sl-sr">${L(i.categoryLabel)}</span><span class="sl-confirm-who">`+i.identity+"</span>"+(i.priceLabel?`<span class="sl-confirm-idprice">${L(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-body">'+i.commercial+i.tierChoices+i.groupDates+i.wheelchair+(i.thumb||i.see3dPill?`<div class="sl-confirm-strip">${i.thumb}<span class="sl-confirm-pills">${i.see3dPill}</span></div>`:"")+i.inspect+'<div class="sl-confirm-row">'+(i.see3dRow??"")+`<button type="button" class="sl-confirm-cancel">${L(i.cancelLabel)}</button><button type="button" class="sl-confirm-add"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4 4L19 7"/></svg><span class="sl-confirm-add-t">${L(i.selectLabel)}</span></button></div></div>`}function Aa(i,e){let t=q,{variable:n}=e;return`<section class="sl-table-dialog" role="dialog" aria-modal="true" aria-labelledby="sl-table-title" aria-describedby="sl-table-copy"><div class="sl-table-head"><div class="sl-table-eyebrow">${t(n?(0,Oe.t)("picker.flexiblePartyTypeWord",{typeWord:e.typeWord}):(0,Oe.t)("picker.wholeTypeWord",{typeWord:e.typeWord}))}</div><h2 class="sl-table-title" id="sl-table-title">${t(i.displayLabel??i.label)}</h2><p class="sl-table-copy" id="sl-table-copy">${t(n?y("picker.chooseGuestsCopy","Choose how many guests will sit together. This table is held exclusively for your party."):(0,Oe.t)("picker.allPlacesBookedTogether",{count:i.capacity}))}</p></div><div class="sl-table-body"><div class="sl-table-summary"><span>${t(e.categoryLabel)}</span>`+(e.suppressPricing?"":`<b data-table-unit>${t((0,Oe.t)("picker.perGuestPrice",{price:e.unitPrice}))}</b>`)+`<span class="muted">${t(y("picker.tableCapacity","Table capacity"))}</span><span>${t((0,Oe.t)("picker.guestsCount",{count:i.capacity}))}</span>`+(i.entrance?`<span class="muted">${t(y("picker.entrance","Entrance"))}</span><span>${t(i.entrance)}</span>`:"")+(e.suppressPricing?"":`<span class="muted">${t(y("picker.total","Total"))}</span><b data-table-total></b>`)+"</div>"+(n?`<label class="sl-table-qtylabel" id="sl-table-qty-label">${t(y("picker.numberOfGuests","Number of guests"))}</label><div class="sl-table-stepper" role="group" aria-labelledby="sl-table-qty-label"><button type="button" data-table-step="-1" aria-label="${t(y("picker.fewerGuests","Fewer guests"))}">\u2212</button><output aria-live="polite" data-table-qty>${i.quantity}</output><button type="button" data-table-step="1" aria-label="${t(y("picker.moreGuests","More guests"))}">+</button></div><div class="sl-table-range">${t((0,Oe.t)("picker.chooseMinMaxGuests",{min:i.minOccupancy,max:i.maxOccupancy}))}</div>`:`<input type="hidden" data-table-qty value="${i.capacity}">`)+`<div class="sl-table-actions"><button type="button" class="sl-table-cancel">${t((0,Oe.t)("common.cancel"))}</button><button type="button" class="sl-table-confirm">${t(e.held?y("picker.updateTable","Update table"):n?y("picker.selectTable","Select table"):y("picker.selectWholeTable","Select whole table"))}</button></div></div></section>`}function Pa(i,e){let t=su(i),n=document.createElement("div");n.className="sl-interrupt sl-access",n.setAttribute("role","status"),n.setAttribute("aria-live","polite");let o=document.createElement("div");o.className="sl-interrupt-card";let r=document.createElement("div");r.className="sl-interrupt-title",r.textContent=t.title;let s=document.createElement("div");s.className="sl-interrupt-body",s.textContent=t.body,o.append(r,s);let a=document.createElement("div");a.className="sl-interrupt-actions";let l=document.createElement("button");l.type="button",l.className="sl-interrupt-act";let c=document.createElement("span");c.className="sl-interrupt-act-icon",c.setAttribute("aria-hidden","true"),c.textContent="\u21BB";let d=document.createElement("span");return d.textContent=t.action,l.append(c,d),l.addEventListener("click",async()=>{n.classList.add("is-reloading"),l.disabled=!0;try{await e()}catch{}finally{n.isConnected&&(n.classList.remove("is-reloading"),l.disabled=!1)}}),a.appendChild(l),o.appendChild(a),n.appendChild(o),n}function Ma(i,e){return`<div class="sl-a11yhead"><span class="sl-a11yhead-t">${L(i)}</span><button type="button" class="sl-a11yclose" data-a11y-close aria-label="${q(e)}"><svg viewBox="0 0 24 24" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function La(i){return i.map(e=>{let t=`<button type="button" role="switch" class="sl-a11yrow${e.className?` ${e.className}`:""}${e.on?" on":""}" data-a11y-row="${L(e.key)}" aria-checked="${e.on}" aria-pressed="${e.on}"`+(e.disabled?' disabled aria-disabled="true"':"")+`><span class="sl-a11yrow-i" aria-hidden="true">${e.iconHtml}</span><span class="sl-a11yrow-t"><span class="sl-a11yrow-l">${L(e.label)}</span></span>`+(e.count?`<span class="sl-a11yrow-c">${L(e.count)}</span>`:"")+'<span class="sl-a11yrow-s" aria-hidden="true"></span></button>';return e.note?`<div class="sl-a11yrow-w">${t}${ui({id:`sl-info-${q(e.key.replace(/[^A-Za-z0-9]+/g,"-"))}`,label:e.note,text:L(e.note)})}</div>`:t}).join("")}function ui(i){return`<span class="sl-info"${i.wrapRef?` data-ref="${q(i.wrapRef)}"`:""}><button type="button" class="sl-info-btn" data-sl-info aria-label="${q(i.label)}" aria-describedby="${q(i.id)}" aria-expanded="false"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/></svg></button><span class="sl-info-pop" role="tooltip" id="${q(i.id)}"${i.ref?` data-ref="${q(i.ref)}"`:""}>${i.text}</span></span>`}function Ha(i){let e=Math.max(0,i),t=Math.floor(e/6e4),n=String(Math.floor(e%6e4/1e3)).padStart(2,"0");return`${t}:${n}`}function Ra(i){let e=i.performanceLabel?`<div class="sl-chip-when">${q(i.performanceLabel)}</div>`:"",t=i.performanceDates?.labels.length?`<div class="sl-chip-dates"><span class="sl-chip-dates-summary">${q(i.performanceDates.summary)}</span><span class="sl-chip-date-list">${i.performanceDates.labels.map(n=>`<span class="sl-chip-date">${q(n)}</span>`).join("")}</span></div>`:"";return e+lu(i)+t}function lu(i){let{d:e,area:t,label:n,objectType:o,quantity:r=1,identity:s}=i,a=F=>String(F??"\u2014").replace(/[&<>"]/g,X=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[X]),l=o==="ga"?"ga":e?.objectType??o,c=s?.displayType?.trim()||e?.displayType?.trim()||t?.displayType?.trim()||(l==="table"?y("picker.table","Table"):l==="booth"?y("picker.booth","Booth"):l==="ga"?y("picker.generalAdmission","General admission"):y("picker.row","Row")),d=s?.rowLabel??s?.displayLabel??e?.rowLabel??e?.displayLabel??t?.label??n,p=i.categoryLabel?.trim()??"",u="",h=[];l==="table"&&s?.bookingMode?(u=`${c} ${d}`,h.push([y("picker.guests","Guests"),String(r)])):l==="ga"?(u=String(t?.displayLabel??d),r>1&&h.push([y("picker.tickets","Tickets"),String(r)])):l==="booth"?(u=e?.sectionLabel??`${c} ${d}`,e?.sectionLabel&&h.push([c,String(d)])):!e?.sectionLabel&&!e?.rowLabel&&!e?.seatNumber?u=String(d):(u=e.sectionLabel??"",e.rowLabel&&h.push([c,String(fe(e)??e.rowLabel)]),e.seatNumber&&h.push([y("picker.seat","Seat"),String(e.seatNumber)]));let b=!u&&!!p,f=u||p||String(d),T=!!p&&!b&&p!==f,w=i.offerName?Fn(i.offerName,a):"",v=h.map(([F,X])=>`<span class="sl-chip-seg" data-fit-seg><span class="w">${a(F)}</span> <b>${a(X)}</b></span>`);T&&v.push(`<span class="sl-chip-seg" data-fit-seg data-fit-type><span class="w">${a(p)}</span>${w}</span>`);let M=[f,...h.map(([F,X])=>`${F} ${X}`),T?p:"",i.offerName??""].filter(Boolean).join(" \xB7 ");return`<div class="sl-chip-id"><span class="sl-sr">${a(M)}</span><span class="sl-chip-name" aria-hidden="true">${a(f)}${T?"":w}</span>`+(v.length?`<span class="sl-chip-pos" aria-hidden="true">${v.join("<i>\xB7</i>")}</span>`:"")+"</div>"}function lr(i,e,t){return i.map(n=>`<option value="${t(n.id)}"${n.id===e?" selected":""}>${t(n.name)}</option>`).join("")}function cu(i){let e=q;return` data-key="${e(i.key)}"`+(i.heldLabels.length?` data-held="${e(encodeURIComponent(i.heldLabels.join(`
196
196
  `)))}"`:"")+(i.seatIds.length?` data-seat="${e(i.seatIds.join(" "))}"`:"")+(i.locateId?` data-locate="${e(i.locateId)}"`:"")}function Ia(i){let e=q;return`<div class="sl-chip${i.held?" sl-held":""}${i.fresh?" sl-enter":""}"`+cu(i)+">"+(i.held?i.stateHtml:`<span class="sl-chip-dot" style="background:${L(i.categoryColor)}" aria-hidden="true"></span>`)+`<div class="sl-chip-main">${i.identityHtml}`+(i.extrasHtml?`<div class="sl-chip-sub">${i.extrasHtml}</div>`:"")+`${i.noteHtml}</div>`+(i.amountText?`<span class="amt">${e(i.amountText)}</span>`:"")+i.railHtml+"</div>"}function cr(i,e){let t=q(i),n=e?q(e):"";return'<div class="sl-chip-rail">'+(e?`<button type="button" class="view" data-view-label="${n}" aria-label="${q((0,nn.t)("picker.viewFromSeat",{label:e}))}"><svg viewBox="0 0 24 24"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg></button>`:"")+`<button type="button" class="rm" aria-label="${t}"><svg viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function jn(i,e){return new Set(i.filter(t=>(e[t.key]??0)<=0).map(t=>t.key))}function Kn(i,e){let t=(i.doc?.categories??[]).filter(s=>!s.notForSale),n=e?t.filter(s=>s.key===e):t;if(!n.length)return null;let o=jn(n,i.categoryAvailability());return o.size<n.length||(i.currentHold()?.items??[]).some(s=>o.has(s.categoryKey))?null:Object.assign(new Error("seatlayer: that ticket type is sold out"),{status:409,code:"sold_out",reason:"sold_out"})}function Oa(i){return i.confirming?`<div class="sl-ba" role="alert"><div class="sl-ba-title"><span class="spark" aria-hidden="true">\u2726</span>${y("picker.replaceCurrentChoices","Replace your current choices?")}</div><div class="sl-ba-replace"><b>${(0,nn.t)("picker.willFindSeatsTogether",{count:i.quantity})}</b><span>${y("picker.manualTicketsRemovedNote","Your manually selected tickets will be removed only after a new group is secured.")}</span></div><div class="sl-ba-actions"><button type="button" data-ba-cancel>${y("picker.keepMine","Keep mine")}</button><button type="button" class="replace" data-ba-replace>${y("picker.findNewSeats","Find new seats")}</button></div></div>`:`<div class="sl-ba"><div class="sl-ba-title"><span class="sl-ba-title-t">${y("picker.findSeatsTogether","Find seats together")}</span>`+ui({id:"sl-info-best-seats",label:y("picker.aboutBestSeats","About finding seats together"),text:y("picker.closestGroupChosenInstantly","Closest available group, chosen instantly.")})+(i.offerPremium?`<button type="button" class="sl-ba-premium${i.premium?" on":""}" data-ba-premium aria-pressed="${i.premium?"true":"false"}"><span class="star" aria-hidden="true">\u2605</span>${y("picker.bestSeatsPremium","Best seats")}</button>`:"")+`</div><div class="sl-ba-qty"><button type="button" data-ba="-1" aria-label="${y("picker.fewerSeats","Fewer seats")}">\u2212</button><span>${i.quantity}</span><button type="button" data-ba="1" aria-label="${y("picker.moreSeats","More seats")}">+</button></div>`+(i.categories.length>1?`<select class="sl-ba-cat" aria-label="${q(y("picker.preferredTicketType","Preferred ticket type"))}" data-ba-cat><option value="">${q(y("picker.anyTicketType","Any ticket type"))}</option>`+i.categories.map(e=>e.soldOut?`<option value="${q(e.key)}" disabled>${q(`${e.label} \xB7 ${y("picker.soldOutTitle","Sold out")}`)}</option>`:`<option value="${q(e.key)}"${i.selectedCategory===e.key?" selected":""}>${q(e.label)}</option>`).join("")+"</select>":'<span class="sl-ba-cat" aria-hidden="true"></span>')+(i.zones.length?`<select class="sl-ba-zone" aria-label="${y("picker.preferredVenueZone","Preferred venue zone")}" data-ba-zone><option value="">${y("picker.anyVenueZone","Any venue zone")}</option>`+i.zones.map(e=>`<option value="${q(e.id)}"${i.selectedZone===e.id?" selected":""}>${q(e.label)}</option>`).join("")+"</select>":"")+`<button type="button" class="sl-ba-go${i.busy?" sl-busy":""}"${i.busy?" disabled":""}>`+(i.busy?`<span class="sl-ba-spin" aria-hidden="true"></span>${y("picker.findingBestSeats","Finding the best seats\u2026")}`:(0,nn.tCount)("picker.findBestSeatsCount",i.quantity))+"</button>"+(i.reopened?`<button type="button" class="sl-ba-back" data-ba-close>${y("picker.keepMyPicks","Keep my picks")}</button>`:"")+"</div>"}function _a(i){return i==="setup"||i==="testable"?{heading:y("picker.salesNotOpenPill","Sales haven\u2019t opened yet"),sentence:y("picker.salesNotOpenCopy","Tickets for this event aren\u2019t on sale yet.")}:i==="paused"?{heading:y("picker.salesPausedPill","Sales are paused"),sentence:y("picker.salesPausedCopy","Ticket sales are paused for now.")}:{heading:y("picker.salesClosedPill","Sales are closed"),sentence:y("picker.salesClosedCopy","Ticket sales for this event have ended.")}}function Na(i,e=!1){if(!e&&(i==="setup"||i==="testable"||i==="paused")){let t=_a(i);return{pill:t.heading,cta:t.heading,toast:t.sentence}}return{pill:y("picker.salesClosedPill","Sales are closed"),cta:y("picker.salesClosedCta","Sales closed"),toast:y("picker.salesClosedToast","Sales are closed for this event.")}}function Da(i){if(i.salesClosed&&!i.hasPicks){let e=i.whenText?`<span class="when">${q(i.whenText)}</span>`:"",t=i.note??_a(i.salesState);return`<div class="sl-closed-note" role="status"><b>${t.heading}</b><span>${t.sentence}${e}</span></div>`}return""}function Ba(i){return i.hasGaAreas?i.seated?i.venue3d?y("picker.trayHintChoose3dOrStanding","Choose a seat in the 3D venue, or grab standing tickets below."):y("picker.trayHintTapOrStanding","Tap a seat on the map or grab standing tickets below."):i.venue3d?y("picker.gaTrayHintChoose3dArea","Choose an area in the 3D venue to select tickets."):y("picker.gaTrayHintTapArea","Tap an area on the map to choose tickets."):i.groupMode==="per_performance"?y("picker.groupPerPerformanceTrayHint","Choose seats for this performance, then complete every date above."):i.groupMode?y("picker.groupTrayHint","Choose seats once. The same seats will be held for every performance."):i.venue3d?y("picker.trayHintChoose3dOrBest","Choose a seat in the 3D venue, or let us pick the best available for you."):y("picker.trayHintTapOrBest","Tap a seat on the map, or let us pick the best available for you.")}var Ae=require("@seatlayer/core");var gi=require("@seatlayer/core");var qn=require("@seatlayer/core/core/color");function st(i){if(!i)return null;let e=i.trim().toLowerCase();if(e==="white")return{r:255,g:255,b:255};if(e==="black")return{r:0,g:0,b:0};let t=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(e)?.[1];if(t){let o=t.length<=4?[...t].map(r=>`${r}${r}`).join(""):t;return{r:Number.parseInt(o.slice(0,2),16),g:Number.parseInt(o.slice(2,4),16),b:Number.parseInt(o.slice(4,6),16)}}let n=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*[\d.]+%?)?\s*\)$/i.exec(e);return n?{r:Math.max(0,Math.min(255,Number(n[1]))),g:Math.max(0,Math.min(255,Number(n[2]))),b:Math.max(0,Math.min(255,Number(n[3])))}:null}function Gn(i){return(0,qn.relativeLuminance255)([i.r,i.g,i.b])}function Ue(i,e){let t=st(i),n=st(e);if(!t||!n)return null;let o=Math.max(Gn(t),Gn(n)),r=Math.min(Gn(t),Gn(n));return(o+.05)/(r+.05)}function zt(i,e="#172033",t="#eef1f8"){return(Ue(e,i)??0)>=(Ue(t,i)??0)?e:t}function du(i){return(0,qn.rgb255ToHex)(i.r,i.g,i.b)}function dr(i,e,t){let n=st(i),o=st(e);if(!n||!o)return null;let r=Math.max(0,Math.min(1,t));return du({r:n.r*r+o.r*(1-r),g:n.g*r+o.g*(1-r),b:n.b*r+o.b*(1-r)})}var Un="#d8a425",pu=.18;function Fa(i,e){let t=dr(Un,e,pu)??e;if((Ue(Un,t)??0)>=4.5)return Un;for(let n=.15;n<=1;n+=.05){let o=dr(Un,i,1-n);if(o&&(Ue(o,t)??0)>=4.5)return o}return zt(t)}function Va(i,e,t,n){if((Ue(i,t)??4.5)>=4.5&&(Ue(i,n)??4.5)>=4.5)return i;if(!st(i)||!st(e))return e;for(let o=.15;o<=1;o+=.05){let r=dr(i,e,1-o);if(r&&(Ue(r,t)??0)>=4.5&&(Ue(r,n)??0)>=4.5)return r}return e}function $a(i){return{"--sl-chrome":i?"#d6dce6":"#556278","--sl-chrome-line":i?"rgba(23,32,51,.55)":"rgba(233,238,247,.55)"}}var za=["--sl-bg","--sl-surface","--sl-text","--sl-muted","--sl-line","--sl-accent-text","--sl-warn-text","--sl-chrome","--sl-chrome-line"];function ja(i,e){let t=e??i["--sl-bg"],n=st(t)?zt(t)==="#172033":!1,o=st(i["--sl-bg"])?zt(i["--sl-bg"])==="#172033":!1;if(n===o)return null;let r=n?"#ffffff":"#1a2234",s=zt(t),a=i["--sl-accent"];return{"--sl-bg":t,"--sl-surface":r,"--sl-text":s,"--sl-muted":n?"#667085":"#a5aec2","--sl-line":n?"rgba(23,32,51,.16)":"rgba(165,174,194,.24)","--sl-accent-text":Va(a,s,t,r),...$a(n),"--sl-warn-text":Fa(s,r)}}var hu="#f7f8fb",Ka={light:{background:"#ffffff",surface:"#f6f7fb",text:"#172033",muted:"#667085",line:"rgba(23,32,51,.16)",map:"#e9edf4"},dark:{background:"#0f1522",surface:"#1a2234",text:"#eef1f8",muted:"#a5aec2",line:"rgba(165,174,194,.24)",map:"#0f1522"}};function uu(){try{return window.matchMedia?.("(prefers-color-scheme: dark)").matches===!0}catch{return!1}}function on(i){if(i)return i==="auto"?uu()?"dark":"light":i}function mi(i,e=i?.mode){if(i?.map)return i.map;let t=on(e);return t?{background:Ka[t].map}:null}function Wn(i){let e;try{e=window.matchMedia?.("(prefers-color-scheme: dark)")}catch{return()=>{}}if(!e)return()=>{};let t=n=>i(n.matches);return typeof e.addEventListener=="function"?e.addEventListener("change",t):e.addListener?.(t),()=>{typeof e.removeEventListener=="function"?e.removeEventListener("change",t):e.removeListener?.(t)}}function fi(i,e,t){let n=t?Ka[t]:null,o=e?.background??n?.background??i?.background??hu,r=st(o)?zt(o)==="#172033":!1,s=e?.surface??n?.surface??(r?"#ffffff":"#1a2234"),a=e?.accent??i?.accent??"#f4b740",l=i?.accentInk,c=e?.accentInk??(l&&(Ue(l,a)??4.5)>=4.5?l:zt(a,"#1a1200","#ffffff")),d=n?void 0:i?.textColor,p=e?.text??n?.text??(d&&(Ue(d,o)??4.5)>=4.5&&(Ue(d,s)??4.5)>=4.5?d:zt(o));return{"--sl-accent":a,"--sl-accent-ink":c,"--sl-accent-text":Va(a,p,o,s),"--sl-warn-text":Fa(p,s),"--sl-bg":o,"--sl-surface":s,"--sl-text":p,"--sl-muted":e?.muted??n?.muted??(r?"#667085":"#a5aec2"),"--sl-line":e?.line??n?.line??(r?"rgba(23,32,51,.16)":"rgba(165,174,194,.24)"),...$a(r),"--sl-scrim-ink":r?"rgba(16,22,36,1)":"rgba(4,7,13,1)","--sl-font":e?.fontFamily??i?.fontFamily??"-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif","--sl-radius":`${e?.radius??14}px`}}function mu(){return`<svg class="sl-boot-venue" viewBox="0 0 200 140" preserveAspectRatio="xMidYMid meet" aria-hidden="true" focusable="false"><g class="sl-boot-shells">${["M20 92a80 52 0 0 1 160 0v14a94 62 0 0 0-160 0z","M32 74a68 42 0 0 1 136 0v12a80 50 0 0 0-136 0z","M46 58a54 32 0 0 1 108 0v10a64 38 0 0 0-108 0z"].map(e=>`<path d="${e}" />`).join("")}</g><rect class="sl-boot-stage" x="62" y="16" width="76" height="16" rx="4" /></svg>`}function Ga(i,e,t){let n=document.createElement("div");n.className="sl-picker",n.tabIndex=-1,n.lang=(0,gi.getLocale)(),n.dir=(0,gi.localeDirection)(),i.appendChild(n),Object.entries(fi(void 0,t)).forEach(([r,s])=>n.style.setProperty(r,s)),n.innerHTML=`
197
197
  <div class="sl-head">
198
198
  <div class="sl-logo" data-ref="logo"></div>
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-BbYRQd0-.cjs';
4
- export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-BbYRQd0-.cjs';
3
+ import { T as ThemeMode } from './channelsMode-CcOZSm0j.cjs';
4
+ export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CcOZSm0j.cjs';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
2
2
  export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
3
- import { T as ThemeMode } from './channelsMode-BbYRQd0-.js';
4
- export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-BbYRQd0-.js';
3
+ import { T as ThemeMode } from './channelsMode-CcOZSm0j.js';
4
+ export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CcOZSm0j.js';
5
5
  import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
6
6
  import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
7
7
  import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';