(()=>{"use strict";var t={446:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.endpoints=i.i=void 0;const s=e(525),n=e(803),o=e(450),h=e(495),r=e(214),u=e(758),c=e(348),a=e(41),l={o:"https://cdn.schemaapp.com/",h:"https://hunchwww.s3.amazonaws.com/",u:"https://hunchwww.s3.amazonaws.com/",l:"https://data.schemaapp.com/",v:"https://datatst.schemaapp.com/",p:"https://datauat.schemaapp.com/",m:"https://api.schemaapp.com/markup/entities",T:"https://apitst.schemaapp.com/markup/entities",O:"https://apiuat.schemaapp.com/markup/entities",P:"https://api.schemaapp.com/markup/markup?url=",S:"https://apitst.schemaapp.com/markup/markup?url=",N:"https://apiuat.schemaapp.com/markup/markup?url=",_:"https://api.schemaapp.com/pagecount",A:"https://apitst.schemaapp.com/pagecount",R:"https://apiuat.schemaapp.com/pagecount",I:"https://api.schemaapp.com/markup/query",J:"https://apitst.schemaapp.com/markup/query",k:"https://apiuat.schemaapp.com/markup/query"};i.endpoints=l;class d{constructor(t,i=""){this.F=t,""===i?void 0!==window.location.port&&""!=window.location.port?this.M=window.location.origin.replace(":"+window.location.port,"")+window.location.pathname:this.M=window.location.origin+window.location.pathname:this.M=i}j(t){this.M=t}createPattern(t,i){const e=[];for(const s of t)null!=i&&s["@type"]!=i||e.push({type:s["@type"],members:new Set(s.members)});return e}static U(){return Object.prototype.hasOwnProperty.call(window,"schema_highlighter")?window.schema_highlighter.key:""}static C(){if(void 0!==window.schema_highlighter){const t=window.schema_highlighter.accountId;if(void 0===t)return null;const i=t.replace("http://schemaapp.com/db/","").split("/");return{D:i[0],L:i.length>1?i[1]:void 0,complete:i.join("/")}}return null}static $(){return void 0!==window.schema_highlighter&&window.schema_highlighter.environment?window.schema_highlighter.environment:null}static H(){return void 0!==window.schema_highlighter&&window.schema_highlighter.source?window.schema_highlighter.source:"HighlightJS"}static X(t){return"test"==t?l.v:"uat"==t?l.p:l.l}static B(t){return"test"==t?l.A:"uat"==t?l.R:l._}static G(t="",i=!1,e=!0,s=!0){const n=btoa(window.location.protocol+"//"+window.location.hostname).replace(/=/g,""),o=""===t?n:n+"/"+btoa(t).replace(/=/g,""),h=i?"draft/v2/":"v2/",r=s?l.o:l.h,u=this.C();let c;const a=this.$();c=null!==a?a:e?"prod":"test";return"HighlightCrawl"==this.H()?`${r}highlighter/${c}/${null==u?void 0:u.complete}/${h}crawler/`+o:u&&u.complete?`${r}highlighter/${c}/${null==u?void 0:u.complete}/${h}`+o:`${r}highlighter/${c}/${h}`+o}Y(){var t;if(this.accountId)return this.accountId;const i=d.C();if(i)return this.accountId=i,this.accountId;const e=null===(t=this.F.accountId)||void 0===t?void 0:t.replace("http://schemaapp.com/db/","").split("/");return e?(this.accountId={D:e[0],L:e.length>1?e[1]:void 0,complete:e.join("/")},this.accountId):null}K(){if(void 0!==window.schema_highlighter){const t=window.schema_highlighter.output;return void 0!==t&&t}return!1}V(){if(void 0!==window.schema_highlighter){const t=window.schema_highlighter.outputCache;return void 0!==t&&t}return!1}W(){if(void 0!==window.schema_highlighter){const t=window.schema_highlighter.fetchFromHighlightJsCache;return void 0!==t&&t}return!1}q(){return Array.isArray(this.F.templates)?[...this.F.templates]:[]}Z(t,i,e,s,n){let o=[];if(n){let t=new URL(n).pathname.split("/").pop();t&&(t=t.split("#").pop()),o.push(t)}return null!=i&&o.push(i.toString()),e&&(o=o.concat(e)),s&&(o=o.concat(s)),o=o.concat(t),this.M+"#"+o.join("_")}definedURI(t){return a.it.tt(t,this.M)}et(t,i){return void 0===t.patterns?[]:this.createPattern(t.patterns,i)}st(t){return void 0===(null==t?void 0:t.excludePatterns)?[]:this.createPattern(t.excludePatterns,void 0)}nt(t,i,e=document,a=!1){const l=[];if(void 0===t.hasHighlight)return l;for(const v of t.hasHighlight)switch(v["@type"]){case"TagConditional":case"TagXPathDefined":case"TagXPath":l.push(new n.ot(v,this.Y(),d.U(),e,a));break;case"TagLookup":case"TagStoredResource":l.push(new s.ht(v,this.Y(),d.U(),e,this));break;case"TagList":l.push(new o.rt(v,this.Y(),d.U(),i,this,t.categorizedBy));break;case"TagListUnstructured":l.push(new u.ut(v,this.Y(),d.U(),i,this,t.categorizedBy));break;case"TagConditionalDefined":case"TagDefined":l.push(new h.ct(v,this.Y(),d.U()));break;case"TagYouTube":l.push(new r.lt(v,this.Y(),d.U(),e,a));break;case"TagQueryService":case"TagLookupInternal":case"TagLookupOmniLinkedEntity":l.push(new c.dt(v,this.Y(),d.U(),this.M,e,a))}return l}}i.i=d},839:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.vt=i.ft=i.Append=i.Prepend=i.wt=i.gt=i.bt=i.yt=i.Tt=void 0;const s=e(613);class n extends s.Ot{evaluate(t){return void 0===this.Pt?t:t.length>0?this.Pt+t:""}getType(){return s.St.Prepend}}i.Prepend=n;class o extends s.Ot{evaluate(t){return void 0===this.Pt?t:t.length>0?t+this.Pt:""}getType(){return s.St.Append}}i.Append=o;class h extends s.Ot{evaluate(t){if(void 0===this.Pt)return t;const i=t.indexOf(this.Pt);return i>=0?t.slice(0,i):""}getType(){return s.St.Before}}i.Tt=h;class r extends s.Ot{evaluate(t){var i;if(void 0===this.Pt)return t;const e=t.indexOf(this.Pt);return e>=0?t.slice(null!==(i=e+this.Pt.length)&&void 0!==i?i:0):""}getType(){return s.St.After}}i.yt=r;class u extends s.Ot{evaluate(t){var i;const e=u.Nt.exec(t);if(!e)return"";const s=e[0].replace(/,/g,""),n=/^0*/.exec(s),o=n?n[0]:"";let h=null!==(i=Number(s))&&void 0!==i?i:"";return""!=o&&"string"!=typeof h&&(h=o+h.toString()),h}getType(){return s.St.Number}}i.bt=u,u.Nt=/(\+|-)*((\d+(,\d+)*)(\.\d+)?|\.\d+)/im;class c extends s.Ot{evaluate(t){return t.replace(c.Et,"")}getType(){return s.St.NonNumber}}i.gt=c,c.Et=/\d+/gm;class a extends s.Ot{evaluate(t){return this.Pt?t.split(this.Pt).join(""):t}getType(){return s.St.Omit}}i.wt=a,i.ft=function(t){const i=t.split("(");if(1===i.length)throw new RangeError(`Filter ${t} is missing parenthesis, unable to parse`);switch(i[0].toLocaleUpperCase()){case"BEFORE":return new h(t);case"AFTER":return new r(t);case"OMIT":return new a(t);case"NUMBER":return new u(t);case"NONNUMBER":return new c(t);case"PREPEND":return new n(t);case"APPEND":return new o(t)}return null},i.vt=function(t,i){for(let e=0;e{Object.defineProperty(i,"t",{value:!0}),i._t=i.Tag=void 0;const s=e(839),n=e(41);class o{constructor(t,i,e,n=document){var o;if(this.id=t["@id"],this.xt=t,this.name=t["@type"],this.At=i,this.Rt=e,this.propertyPath=null!==(o=t.propertyPath)&&void 0!==o?o:[],void 0!==t.filter){const i=t.filter.split('");');this.filters=[];const e=new RegExp('(BEFORE|AFTER|OMIT|NUMBER|NONNUMBER)\\("\\)',"i");for(let t=0;t1?"( "+e.join(" | ")+" )":e[0]}else t=this.It(t);return t}kt(){const t=this.xt.definedURI;return t?n.it.tt(t):null}}i.Tag=o;i._t=class extends o{Ft(){return this.value}constructor(t,i,e,s=document){super(t,i,e,s),this.value=void 0!==t.value?t.value:""}}},495:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.ct=void 0;const s=e(550),n=e(722);class o extends n.Tag{constructor(t,i,e){super(t,i,e,document),this.value=t.value,this.Mt=Object.prototype.hasOwnProperty.call(t,"xPathTest")?t.xPathTest:void 0}debug(){return""}evaluate(){let t=`${this.value}`,i=!1;return this.Mt&&(t=(0,s.jt)(this.Mt)?this.value:void 0,i=void 0===t),{result:t,context:void 0,propertyPath:this.propertyPath,Ut:i}}}i.ct=o},348:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.dt=void 0;const s=e(722),n=e(638),o=e(471),h=e(839),r=e(446);class u extends s.Tag{constructor(t,i,e,s,n=document,o=!1){super(t,i,e,n),this.M=s,this.Ct=t,this.Dt=t["xPath-input"],this.Lt=o,o&&(this.Dt=this.Jt(this.Dt));const h=r.i.$();this.target="test"==h?r.endpoints.T:"uat"==h?r.endpoints.O:r.endpoints.m}debug(){return""}evaluate(t){const i=(0,o.$t)(this.Dt,null!=t?t:this.context,!0);if(this.Dt,this.Lt,this.id,i.result){let t=i.result;return this.filters&&(t=(0,h.vt)(this.filters,t)),{result:"",promise:(0,n.Ht)(this.target,"",this.At,JSON.stringify({content:t}),{highlight_id:this.Ct["@id"],highlight_config:JSON.stringify(this.Ct),url:this.M}),propertyPath:this.propertyPath,Ut:!1}}return{Ut:!0,propertyPath:this.propertyPath}}Ft(){return""}}i.dt=u},450:function(t,i,e){var s=this&&this.Xt||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function h(t){try{u(s.next(t))}catch(t){o(t)}}function r(t){try{u(s.throw(t))}catch(t){o(t)}}function u(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(h,r)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.rt=void 0;const n=e(803),o=e(756),h=e(668),r=e(471);class u extends n.ot{constructor(t,i,e,s,n,o,h=document){var r;super(t,i,e,h),this.Bt=null!==(r=this.propertyPath.pop())&&void 0!==r?r:"",this.zt=!this.Bt.charAt(0).match(/[A-Z]/),this.zt&&this.propertyPath.push(this.Bt),this.Gt=s,this.templates=[],this.configuration=n,this.Yt=o,t.hasTemplate&&t.hasTemplate.length>0?(this.templateId=t.hasTemplate[0]["@id"],this.highlights=n.nt(t.hasTemplate[0],this.Gt,document.body,!0)):(this.highlights=[],this.templateId=""),this.Kt=document.evaluate(this.Qt,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),this.Vt()}debug(){return""}evaluate(){const t=[];let i=!1;0===this.Kt.snapshotLength&&(this.Kt=document.evaluate(this.Qt,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),this.Vt());for(let e=0;e0&&(i=!0),"ListItem"===this.Bt&&(0,h.qt)("position",e+1,s),t.push(s)}if(this.zt)for(let i=0;is(this,void 0,void 0,(function*(){yield(0,h.ti)(t,n,e).then((t=>{t.content&&this.Gt.ii(t.content,t.source)}))})))),o.result&&!o.Ut&&t.push(o.result)}}return{result:t.length>0?t:void 0,propertyPath:this.propertyPath,context:void 0,Ut:0===t.length||0===this.Kt.snapshotLength||i}}Vt(){if(!this.zt)for(let t=0;t{Object.defineProperty(i,"t",{value:!0}),i.ut=void 0;const s=e(803),n=e(756),o=e(550);class h extends s.ot{constructor(t,i,e,s,n,o,h=document){var r;super(t,i,e,h),this.contextType=null!==(r=this.propertyPath.pop())&&void 0!==r?r:"",this.config=n,this.Yt=o,this.Gt=s,this.templateId=t.hasTemplate[0]["@id"],this.highlights=n.nt(t.hasTemplate[0],s,document,!0),this.inclusionTest=void 0===this.xt.inclusionTest?void 0:this.xt.inclusionTest,this.nodeIterator=this.xt.nodeIterator,this.si=void 0===this.xt.tagListEnd?void 0:this.xt.tagListEnd}debug(){return""}evaluate(t){try{if(this.Mt&&!(0,o.jt)(this.Mt))return{result:void 0,Ut:!0,propertyPath:this.propertyPath};const i=document.evaluate(this.Qt,null!=t?t:this.context,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),e=document.evaluate(this.nodeIterator,null!=t?t:this.context,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),s=[];let h=null,r=0,u=0;if(0===e.snapshotLength||0===i.snapshotLength)return{result:void 0,Ut:!0,propertyPath:this.propertyPath};this.si&&(h=document.evaluate(this.si,null!=t?t:this.context,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE));let c=i.snapshotItem(0);const a=null!==h?h.snapshotItem(0):null,l=this.ni(e,c);let d=l.oi;for(u=l.hi;ri.snapshotLength||a===c)break;c=i.snapshotItem(r)}return{result:s.length>0?s:void 0,Ut:0==s.length,propertyPath:this.propertyPath}}catch(t){return{result:"",Ut:!0,propertyPath:this.propertyPath}}}ni(t,i){let e=t.snapshotItem(0),s=0;for(;e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING;)s++,e=t.snapshotItem(s);return{oi:e,hi:s}}ri(t,i,e,s,n,o){const h=[];for(;(null!=t&&n+1{Object.defineProperty(i,"t",{value:!0}),i.lt=void 0;const s=e(803),n=e(550),o=e(471),h=e(638),r=e(446),u=e(839);class c extends s.ot{constructor(t,i,e,s=document,n){super(t,i,e,s,n);const o=r.i.$();this.target="test"==o?r.endpoints.S:"uat"==o?r.endpoints.N:r.endpoints.P}Ft(){var t;return null!==(t=this.value)&&void 0!==t?t:""}evaluate(t){const i=(0,o.$t)(this.Qt,null!=t?t:this.context);if(void 0!==this.Mt&&!(0,n.jt)(this.Mt)||void 0===i.result||"string"!=typeof i.result)return{propertyPath:this.propertyPath,Ut:!0};let e=`${i.result}`;if(this.filters&&(e=(0,u.vt)(this.filters,e)),""===e||void 0===e)return{Ut:!0,propertyPath:this.propertyPath};try{const t=new URL(decodeURIComponent(e)),i=t.origin+t.pathname+t.search;return this.value=i,{promise:(0,h.li)(this.target+encodeURIComponent(i),this.Rt,this.At),propertyPath:this.propertyPath,Ut:!1}}catch(t){}return{propertyPath:this.propertyPath,Ut:!0}}}i.lt=c},525:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.ht=void 0;const s=e(638),n=e(550),o=e(722),h=e(471),r=e(446),u=e(417),c=e(839);class a extends o._t{constructor(t,i,e,s=document,n){super(t,i,e),this.config=n,this.Mt=Object.prototype.hasOwnProperty.call(t,"xPathTest")?t.xPathTest:void 0,this.D=Object.prototype.hasOwnProperty.call(t,"describedIn")?t.describedIn.replace("http://schemaapp.com/db/"):void 0;const o=this.D?this.D:this.At.complete,h=btoa(this.value).replace(/=/g,""),u=r.i.$(),c=r.i.X(u);this.di=`${c}${o}/${h}`,void 0!==t.target&&(this.target=t.target)}debug(){return""}evaluate(t){var i,e;return this.Mt&&!(0,n.jt)(this.Mt)?{Ut:!0,propertyPath:this.propertyPath}:this.target?(this.pi(),{result:{"@id":null!==(i=this.kt())&&void 0!==i?i:this.value},promise:(0,s.li)(this.target,this.Rt,this.At),propertyPath:this.propertyPath,Ut:!1}):{result:{"@id":null!==(e=this.kt())&&void 0!==e?e:this.value},promise:(0,s.li)(this.di,this.Rt,this.At),propertyPath:this.propertyPath,Ut:!1}}pi(){var t,i,e,s;if(!this.target)return;this.value="";let n="";this.xt["xPath-input"]&&(n=null!==(t=(0,h.$t)(this.xt["xPath-input"]).result)&&void 0!==t?t:"",this.filters&&(n=null!==(i=(0,c.vt)(this.filters,n))&&void 0!==i?i:n),this.xt.encodeResult&&(this.value=n,n=btoa(n).replace(/=/g,""))),this.target=this.target.replace("baseURL",this.config.M),this.target=this.target.replace("xPath-input",n),this.target=this.target.replace("AccountID",null!==(s=null===(e=this.config.Y())||void 0===e?void 0:e.complete)&&void 0!==s?s:""),this.target=this.target.replace(/{|}/gm,""),this.target=(0,u.fi)(this.target)}}i.ht=a},803:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.ot=void 0;const s=e(471),n=e(550),o=e(722),h=e(839);class r extends o.Tag{constructor(t,i,e,s=document,n=!1){if(super(t,i,e,s),this.Lt=n,0==Object.prototype.hasOwnProperty.call(t,"xPath")&&0==Object.prototype.hasOwnProperty.call(t,"overriddenXpath"))this.Qt="text()",this.wi=!1;else{let i;i=Object.prototype.hasOwnProperty.call(t,"overriddenXpath")?t.overriddenXpath:t.xPath,i=i.match(/^.*\(\)\s*$/g)?i:i.replace(/^\(([^|]+)\)$/gm,"$1"),this.Qt=i.replace(/(\/node\(\))/g,""),this.wi=i!=this.Qt,this.Lt&&(this.Qt=this.Jt(this.Qt))}Object.hasOwnProperty.call(t,"xPathTest")&&(this.Mt=t.xPathTest)}debug(){return""}evaluate(t){var i;if(this.Mt&&!(0,n.jt)(this.Mt))return{result:void 0,context:void 0,Ut:!0,propertyPath:this.propertyPath};const e=(0,s.$t)(this.Qt,null!=t?t:this.context,this.wi);let o=e.result;return o=this.filters&&o?(0,h.vt)(this.filters,o):null!==(i=e.result)&&void 0!==i?i:"",{result:o,context:e.context,Ut:null===e.result||""===e.result,propertyPath:this.propertyPath}}}i.ot=r},111:function(t,i,e){var s=this&&this.Xt||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function h(t){try{u(s.next(t))}catch(t){o(t)}}function r(t){try{u(s.throw(t))}catch(t){o(t)}}function u(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(h,r)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.mi=void 0;const n=e(446),o=e(638),h=e(613),r=e(550),u=e(756),c=e(984),a=e(417);class Highlighter{constructor(){this.gi=0,this.bi=5,this.yi=750,this.Ti=6,this.Oi=1,this.Pi=!1,this.applyTemplateBaseLoopDelay=750,this.Si=(0,a.Ni)(),this.Ei=this._i(this.Si),this.xi=[],this.Gt=new c.Ai,this.Pi=!1,(0,a.Ri)(Event)&&(this.Pi=!0)}_i(t){return btoa(t).replace(/=/g,"")}Ii(){const t=n.i.C(),i=n.i.U(),e=n.i.$(),h=n.i.X(e);void 0!==window.schema_highlighter&&window.schema_highlighter.outputCache&&(window.schema_highlighter.fetchFromHighlightJsCache&&(0,o.li)(h+(null==t?void 0:t.complete)+"/__highlighter_js/"+this.Ei,i,t).then((t=>s(this,void 0,void 0,(function*(){var i;const e=yield t.text();""!==e&&(0,a.Ji)(e,null!==(i=t.headers.get("x-amz-meta-source"))&&void 0!==i?i:"",!0)})))),(0,o.li)(h+(null==t?void 0:t.complete)+"/"+this.Ei,i,t).then((t=>s(this,void 0,void 0,(function*(){var i;const e=yield t.text();""!==e&&(0,a.Ji)(e,null!==(i=t.headers.get("x-amz-meta-source"))&&void 0!==i?i:"",!0)}))))),(0,o.li)(n.i.G(),i,t).then((t=>s(this,void 0,void 0,(function*(){const i=yield t.text();"{}"!==i&&""!==i&&(this.Pi&&window.dispatchEvent(new Event("highlightJsConfigurationRetrieved")),this.configuration=new n.i(JSON.parse(i),this.Si),this.ki())}))))}ki(){this.Fi(void 0),this.Mi(),this.Pi&&window.dispatchEvent(new Event("highlightJsTitleObserverInitialized"));const t=document.querySelector("title");t&&(this.ji=new MutationObserver(this.Ui.bind(this)),this.ji.observe(t,{childList:!0})),this.Ci()}Fi(t){this.Di=this.Li(t),this.Di.length>0&&this.Pi&&window.dispatchEvent(new Event("highlightJsTemplatesMatched"));for(let t=0;ts(this,void 0,void 0,(function*(){var s;if(!e.ok)return Promise.reject(e.statusText);w[i]=!0;const o=yield e.text();if(""!==o){this.configuration=new n.i(JSON.parse(o),this.Si),this.Di=this.Li(void 0),this.Di,f||(f=this.Di.length>0),""!==t&&0==this.Di.length&&void 0!==t&&this.Di.push(null===(s=this.configuration)||void 0===s?void 0:s.q()[0]);for(let t=0;t{})))}Promise.all(g).then((()=>{a({patternsMatched:f,templatesMatched:v,results:this.Gt.$i(),failedHighlights:p,fetchSuccessful:w})}))}applyTemplateBaseWithConfig(t,i=!1){return new Promise((e=>{var s;let o=!1;const h={},r={};this.configuration=new n.i(JSON.parse(t),this.Si),this.Di=this.configuration.q(),this.Di,o||(o=this.Li(void 0).length>0);for(let t=0;t0;i?this.applyTemplateBaseEvaluateLoop().then((()=>{e({patternsMatched:o,templatesMatched:h,results:this.Gt.$i(),failedHighlights:r,fetchSuccessful:{published:!1,draft:c}})})):e({patternsMatched:o,templatesMatched:h,results:this.Gt.$i(),failedHighlights:r,fetchSuccessful:{published:!1,draft:c}})}))}applyTemplate(t,i=!1,e){const s=i?"both":"published";this.applyTemplateBase(t,s,!0,!0,!0,e)}Mi(){for(let t=0;t{t.Fi(h.zi.XPathCollection),t.Oi+=1,t.Mi(),t.Oi%3==0&&(t.yi+=Highlighter.Gi,clearInterval(t.Bi),t.Ci()),t.Oi>=t.Ti&&(this.Pi&&window.dispatchEvent(new Event("highlightJsTemplatesEvaluated")),t.configuration,t.Gt.Yi(t.configuration,this.Si),clearInterval(t.Bi)),t.yi}),this.yi)}applyTemplateBaseEvaluateLoop(){return s(this,void 0,void 0,(function*(){const t=this;let i=this.applyTemplateBaseLoopDelay;for(let e=0;e<3;e++)yield new Promise((e=>setTimeout((function(){t.Mi(),e(!0)}),i))),i+=Highlighter.Gi}))}Li(t){var i,e;let s;const n=null===(i=this.configuration)||void 0===i?void 0:i.q(),o=[];if(n)for(s=0;s{var i;const e=null===(i=this.configuration)||void 0===i?void 0:i.st(t);return!(e&&this.patternMatches(e))}));return h}patternMatches(t,i){const e=i||this.Si;for(const i of t){if(i.type===h.zi.PageCollection)return i.members.has(e);if(i.type===h.zi.GlobCollection){for(const t of i.members)if((0,r.Ki)(e,t))return!0}else for(const t of i.members){if((0,r.jt)(t))return!0}}return!1}Ui(t,i){var e;this.gi++;const s=(0,a.Ni)();null===(e=this.configuration)||void 0===e||e.j(s),this.Si!==s&&0==this.xi.length&&(this.Si=s,this.Ei=this._i(s),this.Fi(void 0),this.xi.length>0&&(this.Mi(),clearInterval(this.Bi),this.Ci(),i.disconnect(),this.Pi&&window.dispatchEvent(new Event("highlightJsTitleObserverDisconnected")))),this.gi>=this.bi&&(i.disconnect(),this.Pi&&window.dispatchEvent(new Event("highlightJsTitleObserverDisconnected")))}}function l(t){delete t.failedHighlights;const i=JSON.parse(JSON.stringify({fromPageScript:{type:"jsonLdGenerated",result:t}}));window.postMessage(i)}i.mi=Highlighter,Highlighter.Gi=500,null==window.schema_highlighter_instance&&((0,a.Ri)(Event)&&window.dispatchEvent(new Event("highlightJsInitialized")),window.schema_highlighter_instance=new Highlighter,window.schema_highlighter_instance.Ii()),window.addEventListener("message",(function(t){var i;if(t.data.hasOwnProperty("fromPageScript")){const e=t.data.fromPageScript;if("highlightJsExecute"===e.operation){const t=e.templateId,s=e.draft?"draft":"published",n=e.prod,o=null!==(i=e.useCf)&&void 0!==i&&i;e.config?window.schema_highlighter_instance.applyTemplateBaseWithConfig(e.config,!0).then((t=>{l(t)})):window.schema_highlighter_instance.applyTemplateBase(t,s,n,o,!0,(t=>{l(t)}))}else"sendHighlightJsConfigCredentials"===e.operation&&(window.schema_highlighter={accountId:e.accountId,key:e.apiKey})}}))},668:function(t,i,e){var s=this&&this.Xt||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function h(t){try{u(s.next(t))}catch(t){o(t)}}function r(t){try{u(s.throw(t))}catch(t){o(t)}}function u(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(h,r)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.ti=i.Qi=i.qt=void 0;const n=e(417),o=e(756);function h(t,i,e){void 0!==t[e]&&t[e].constructor===Array?t[e]=t[e].concat(i):function(t,i,e){e.constructor===Object?t[i]=[e]:null!=t[i]?t[i]=[e,t[i]]:t[i]=e}(t,e,i)}function r(t,i,e,s){const n=t.slice(0,i).join("_");return{"@type":s,"@id":"#"===(e=null==e||""==e?window.location.origin+window.location.pathname+"#":e).charAt(e.length-1)?e+n:e+"_"+n}}function u(t,i,e,s,n){return 0===(null==t?void 0:t.length)?(t.push(r(e,n,s["@id"],i)),t[0]):t[0].constructor===Object&&void 0===t[0]["@type"]?(t[0]["@type"]=i,t[0]):function(t,i,e,s,n){const o=function(t,i){let e=t,s=!1;for(let t=0;t{""!==t.content&&a(t.propertyPath,t.content,i)}))},i.ti=function(t,i,e){var h,r,u;return s(this,void 0,void 0,(function*(){let s=yield t.text().catch((t=>{}));if(""==s)return{};let c=JSON.parse(null!=s?s:"");return c["@type"]&&c["@type"].includes("MarkupResponse")&&(c.items[i.Ft()]?(s=c.items[i.Ft()],s=(0,n.Vi)(null!=s?s:"",i.Ft(),null!==(h=i.kt())&&void 0!==h?h:i.Ft()),c=c.items[i.Ft()]):s=void 0),o.ei.Wi.includes(i.name)?{qi:{propertyPath:i.propertyPath,content:c}}:(""!==i.Ft()?s=(0,n.Vi)(null!=s?s:"",i.Ft(),null!==(r=i.kt())&&void 0!==r?r:i.Ft()):(s=JSON.parse(JSON.stringify(e)),a(i.propertyPath,c,s)),"string"!=typeof s&&(s=JSON.stringify(s)),{source:null!==(u=t.headers.get("x-amz-meta-source"))&&void 0!==u?u:"",content:s})}))}},638:(t,i)=>{function e(t,i){const e=new URLSearchParams(i);return""!==e.toString()?t+"?"+e:t}function s(t,i,e){const s=new Headers;return i&&s.set("x-account-id",i.complete),t&&s.set("x-api-key",t),s.set("accept","application/json"),e&&e.forEach(((t,i)=>s.set(i,t))),s}Object.defineProperty(i,"t",{value:!0}),i.Zi=i.Ht=i.li=void 0,i.Zi=e,i.li=function(t,i,n,o,h){return fetch(e(t,o),{headers:s(i,n,h),mode:"cors",cache:"default"})},i.Ht=function(t,i,n,o,h,r){return fetch(e(t,h),{method:"POST",headers:s(i,n,r),body:o,mode:"cors",cache:"default"})}},984:function(t,i,e){var s=this&&this.Xt||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function h(t){try{u(s.next(t))}catch(t){o(t)}}function r(t){try{u(s.throw(t))}catch(t){o(t)}}function u(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(h,r)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.Ai=void 0;const n=e(417),o=e(446),h=e(638),r={prod:"BiQcqdttWn7eunp8jvxM5oZl3DIx08J42LtTmaaj",test:"eX7mO8q8XD5DGBQ0bJTIV3a5vUvoOujd1iRHPV6l",te:"wWx6Ygk0taaPueWFhlRA32kPfBFOHBxu3tgoRUM8"};i.Ai=class{constructor(){this.ie={},this.ee={},this.environment=o.i.$()||"prod",this.endpoint=o.i.B(this.environment)}U(){return r[this.environment]}se(t,i){let e=!0;if(void 0!==i&&void 0!==window.document&&void 0!==window.document.querySelectorAll){const t=`[data-source="${i}"]`;e=0!=window.document.querySelectorAll(t).length}return e&&void 0!==this.ie[t]}ne(t,i,e){if(this.se(t,void 0)){if(this.ee[t].content!==i){const s=this.ie[t];this.ee[t]={content:i,source:e},s.innerText=i}}}ii(t,i="",e=!1){if(""===t)return;const s=JSON.parse(t);(s&&void 0!==s["@id"]||Array.isArray(s)&&void 0!==s[0]["@id"])&&this.Hi(s["@id"],t,i,e)}Hi(t,i,e="",s=!1){this.se(t,e)?this.ne(t,i,e):(this.ie[t]=(0,n.Ji)(i,e,s),this.ee[t]={content:i,source:e})}$i(){return this.ee}oe(){return o.i.H()+":"}Xi(){for(const t in this.ee){const i=this.ee[t].content,e=this.ee[t].source;this.Hi(t,i,e)}}Yi(t,i){var e,o,r,u;const c=t.q(),a={};for(const[t,i]of c.entries())a[i["@id"]]=i;const l=new Set(c.map((t=>t["@id"]))),d={};let v,p;for(const t in this.ee)v=JSON.parse(this.ee[t].content),Array.isArray(v)?v.forEach((i=>{d[i["@id"]]={content:JSON.stringify(i),source:this.ee[t].source}})):(p=JSON.parse(this.ee[t].content),d[p["@id"]]={content:this.ee[t].content,source:this.ee[t].source});for(const c in this.ie){if(!l.has(c))continue;const v=a[c];let p=null;v&&"updated"in v&&(p=Array.isArray(v.updated)?v.updated[0]:v.updated);const f={AccountId:null!==(o=null===(e=t.Y())||void 0===e?void 0:e.D)&&void 0!==o?o:"",SubAccount:null!==(u=null===(r=t.Y())||void 0===r?void 0:r.L)&&void 0!==u?u:"",Source:this.oe()+c,Domain:window.location.origin,DateSeen:"2024-07-18",URL:i,Json:d,Version:"1.78.0",ConfigurationVersion:"2",SelfHosted:!1,Output:t.K(),OutputCache:t.V(),FetchFromHighlightJsCache:t.W()};null!==p&&(f.TemplateLastUpdated=p);try{(0,h.Ht)(this.endpoint,this.U(),t.Y(),JSON.stringify(f),void 0,new Headers({"content-type":"application/json"})).then((t=>s(this,void 0,void 0,(function*(){t.ok&&(0,n.Ri)(Event)&&window.dispatchEvent(new Event("highlightJsOnComplete"))}))))}catch(t){console.debug(t)}}}}},417:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Ri=i.Vi=i.Ni=i.fi=i.Ji=void 0,i.Ji=function(t,i,e=!1){var s;const n=document.createElement("script");return n.type="application/ld+json",""!==i&&n.setAttribute("data-source",i),n.innerText=t,(null==window.schema_highlighter||window.schema_highlighter.output||void 0===window.schema_highlighter.output||e)&&(document.head.appendChild(n),performance.mark(null!==(s="[highlightjs]: JSON-LD from "+i)&&void 0!==s?s:" inserted into head element.")),n},i.fi=function(t){if(0===t.indexOf("http",1))return t;const i=document.createElement("a");return i.href=t,i.origin+i.pathname},i.Ni=function(){const t=[location.protocol,"//",location.host,location.pathname].join(""),i=document.querySelector("link[rel='canonical']");if(i){let e=i.getAttribute("href");if(e){e.startsWith("/")&&(e=location.protocol+"//"+location.host+e);try{const i=new URL(e);if("/"===i.pathname)return t;if(t!=e)return i.hash="",i.toString()}catch(t){}}}return t},i.Vi=function(t,i,e){let s=null;if("string"==typeof t){if(""===t)return;s=JSON.parse(t)}else s=t;s.constructor!==Array&&(s=[s]);const n=s.find((t=>t["@id"]==i));if(i!==e&&void 0!==n&&(n["@id"]=e),null==n)for(let t=0;t1?s:s[0]},i.Ri=function(t){return/\{\s+\[native code\]/.test(Function.prototype.toString.call(t))}},550:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Ki=i.jt=void 0,i.Ki=function(t,i){const e="{asterisk{asterisk}}";if(null===i.match(/^http/)){t=new URL(t).pathname}i=(i=(i=(i=i.replace(/\./g,"\\.")).replace(/\*\*+/g,e)).replace(/\*/g,"[^/]*")).replaceAll(e,".*");const s=new RegExp("^"+i+"$","i");return null!==t.match(s)},i.jt=function(t,i=document){const e=document.evaluate(t,i,null,XPathResult.ANY_TYPE);return e.resultType===e.BOOLEAN_TYPE&&e.booleanValue||e.resultType>=4&&e.resultType<=5&&null!==e.iterateNext()}},756:function(t,i,e){var s=this&&this.Xt||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function h(t){try{u(s.next(t))}catch(t){o(t)}}function r(t){try{u(s.throw(t))}catch(t){o(t)}}function u(t){var i;t.done?n(t.value):(i=t.value,i instanceof e?i:new e((function(t){t(i)}))).then(h,r)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.ei=void 0;const n=e(668),o=e(417);class h{constructor(t,i,e,s=document,n=[],h="",r=!1,u=null){this.he=!0,this.templateId=t["@id"],this.highlights=n,this.configuration=i;const c=null!=u?u:t.categorizedBy;this.re=""!==h?h:i.Z(c),this.ue=s,this.ce=new Set,this.ie=[],this.Lt=r;const a=t.definedURI;a&&(this.re=i.definedURI(a)),this.ae=this.le={"@type":c,"@id":this.re},this.Lt||(this.ae["@context"]={"@vocab":"http://schema.org/",kg:"http://g.co/kg"},this.ae.url=(0,o.Ni)()),this.de=JSON.parse(JSON.stringify(this.le)),n.length>0?this.highlights=n:this.highlights=i.nt(t,e,s),this.Gt=e,this.ve={};const l=this.pe(this.highlights);this.fe=l[0],this.we=l[1],this.me(),this.ge(),this.be={},this.ye=[],this.Te=[]}getContext(){return this.ae}Oe(t,i){let e=0,s=!1,o=!1;const h=i.constructor===Array?i:[i];let r="";for(let i=0;i0&&(s||(this.ve[t.id]={result:r,propertyPath:t.propertyPath},delete this.be[t.id]),o||(0,n.qt)(t.propertyPath,JSON.parse(JSON.stringify(r)),this.ae)),e>0}evaluate(t){this.ge();let i=0,e=this.fe;if(!this.he){e=[];for(const t in this.be)e.push(this.be[t])}if(e.forEach((e=>{const s=this.Oe(e,null!=t?t:this.ue);i=s?i:i+1})),!this.he)for(const t in this.ve){const i=this.ve[t];i.result&&(0,n.qt)(i.propertyPath,JSON.parse(JSON.stringify(i.result)),this.ae)}return this.he=!1,(0,n.Qi)(this.Te,this.ae),this.Ne(),this.ae}Wt(){return this.be}pe(t){const i=[],e=[];return t.forEach((t=>{-1===h.Ee.indexOf(t.name)?i.push(t):e.push(t)})),this.fe=i,this.we=e,[i,e]}me(){this.we.forEach((t=>{const i=t.evaluate(this.ue);i.promise&&this.Pe(t,i.promise,this.le),i.result&&!i.Ut&&(0,n.qt)(t.propertyPath,i.result,this.le)}))}Pe(t,i,e=this.ae){const o=t;try{i.then((t=>s(this,void 0,void 0,(function*(){204===t.status||t.status>299||(yield(0,n.ti)(t,o,this.de).then((t=>{t.content&&this.Gt.Hi(o.Ft(),t.content,t.source),t.qi&&this.Te.push(t.qi),t._e&&this.ye.push(t._e)})))})))).catch((i=>(this.be[t.id]=t,!1)))}catch(i){this.be[t.id]=t}return!0}Ne(){for(let t=0;t{this.be[t.id]=t})).observe(i.context,h.Ae)}}ge(){this.ae=JSON.parse(JSON.stringify(this.le))}}i.ei=h,h.Wi=["TagLookupOmniLinkedEntity","TagQueryService","TagLookupInternal","TagYouTube"],h.Ae={attributes:!1,childList:!0,subtree:!0,characterData:!1},h.Ee=["TagDefined","TagStoredResource"]},41:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.it=void 0;i.it=class{static tt(t,i=null){return i=null!=i?i:window.location.origin+window.location.pathname,(t=(t=t.trim()).replace(/\s+/g,"_")).startsWith("http")?t:"."===t?i:(t.startsWith("#")||t.startsWith("/")||(t="#"+t),i+t)}}},471:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Zt=i.$t=i.Re=void 0;const e=document.createElement("textarea");function s(t){const i=document.createElement("a");return i.href=t,i.href}function n(t,i=["src","srcset"]){let e="",n=!1;for(let s=0;s0?i[0].split(" ")[0]:""}function h(t){const i=[];for(let e=0;e0&&(e="picture"===t.tagName.toLowerCase()?o(i[0].srcset):i[0].src)}return t.hasAttribute("src")&&(e=null!==(i=t.getAttribute("src"))&&void 0!==i?i:""),""==e?t.textContent:e.startsWith("http")?e:s(e)}(t);const d=t.cloneNode(!0);return h(d),i?d.outerHTML:(v=d.textContent,e.textContent=v,e.innerHTML);var v}i.Re=function(t){return(t=t.trim()).startsWith("//")?t.slice(2):t.startsWith("/")?t.slice(1):""===t?".":t},i.Zt=r,i.$t=function(t,i=document,e=!1){let s,n;try{s="";const o=document.evaluate(t,i,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE);for(let t=0;t1&&(n=o.snapshotItem(0).parentNode)}catch(e){try{const e=document.evaluate(t,i,null,XPathResult.ANY_TYPE);switch(e.resultType){case XPathResult.BOOLEAN_TYPE:s=e.booleanValue;break;case XPathResult.STRING_TYPE:s=e.stringValue;break;case XPathResult.NUMBER_TYPE:s=e.numberValue}}catch(t){}}return"string"==typeof s&&(s=s.replace(/\n$/,"")),{result:s,context:n}}},613:(t,i)=>{var e,s;Object.defineProperty(i,"t",{value:!0}),i.St=i.Ot=i.zi=void 0,function(t){t.PageCollection="PageCollection",t.GlobCollection="GlobCollection",t.XPathCollection="XPathCollection"}(e||(e={})),i.zi=e,function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.Omit=2]="Omit",t[t.Number=3]="Number",t[t.NonNumber=4]="NonNumber",t[t.Prepend=5]="Prepend",t[t.Append=6]="Append"}(s||(s={})),i.St=s;class n{constructor(t){const i=t.match(n.Ie);i&&(this.Pt=i.pop(),this.Pt&&n.Je[this.Pt]&&(this.Pt=n.Je[this.Pt]))}ke(){return this.Pt?this.Pt:null}}i.Ot=n,n.Ie=/"(.*)"/i,n.Je={"[newline]":"\n"}}},i={};(function e(s){var n=i[s];if(void 0!==n)return n.exports;var o=i[s]={exports:{}};return t[s].call(o.exports,o,o.exports,e),o.exports})(111)})();