forked from bombastictranz/Slack-api-platform
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhighlight.js.download
1 lines (1 loc) · 34.8 KB
/
highlight.js.download
1
(()=>{"use strict";var t={417:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.endpoints=i.i=void 0;const s=e(734),n=e(983),o=e(131),r=e(846),h=e(989),u=e(844),c=e(20),l=e(116),a=e(675),d={o:"https://api.schemaapp.com/markup/markup?url=",h:"https://api.schemaapp.com/query-service/query",u:"https://apitst.schemaapp.com/query-service/query",l:"https://cdn.schemaapp.com/",v:"https://hunchwww.s3.amazonaws.com/",p:"https://data.schemaapp.com/",g:"https://datatst.schemaapp.com/"};i.endpoints=d;class v{constructor(t){this.m=t,void 0!==window.location.port&&""!=window.location.port?this.O=window.location.origin.replace(":"+window.location.port,"")+window.location.pathname:this.O=window.location.origin+window.location.pathname}P(t){this.O=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 T(){return Object.prototype.hasOwnProperty.call(window,"schema_highlighter")?window.schema_highlighter.key:""}static S(){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{_:i[0],N:i.length>1?i[1]:void 0,complete:i.join("/")}}return null}static j(){return void 0!==window.schema_highlighter&&window.schema_highlighter.environment?window.schema_highlighter.environment:null}static J(){return void 0!==window.schema_highlighter&&window.schema_highlighter.source?window.schema_highlighter.source:"HighlightJS"}static R(t="",i=!1,e=!0,s=!0){const n=btoa(window.location.protocol+"//"+window.location.host).replace(/=/g,""),o=""===t?n:n+"/"+btoa(t).replace(/=/g,""),r=i?"draft/v2/":"v2/",h=s?d.l:d.v,u=this.S();let c;const l=this.j();c=null!==l?l:e?"prod":"test";return"HighlightCrawl"==this.J()?`${h}highlighter/${c}/${null==u?void 0:u.complete}/${r}crawler/`+o:u&&u.complete?`${h}highlighter/${c}/${null==u?void 0:u.complete}/${r}`+o:`${h}highlighter/${c}/${r}`+o}F(){var t;if(this.accountId)return this.accountId;const i=v.S();if(i)return this.accountId=i,this.accountId;const e=null===(t=this.m.accountId)||void 0===t?void 0:t.replace("http://schemaapp.com/db/","").split("/");return e?(this.accountId={_:e[0],N:e.length>1?e[1]:void 0,complete:e.join("/")},this.accountId):null}M(){return Array.isArray(this.m.templates)?[...this.m.templates]:[]}A(t,i,e){let s=t.join("_");if(i&&(s+=i.join("_")),e){let t=new URL(e).pathname.split("/").pop();t&&(t=t.split("#").pop()),s+=t}return this.O+"#"+s}definedURI(t){return a.I.k(t,this.O)}L(t,i){return void 0===t.patterns?[]:this.createPattern(t.patterns,i)}D(t){return void 0===(null==t?void 0:t.excludePatterns)?[]:this.createPattern(t.excludePatterns,void 0)}U(t,i,e=document,a=!1){const d=[];if(void 0===t.hasHighlight)return d;for(const f of t.hasHighlight)switch(f["@type"]){case"TagConditional":case"TagXPathDefined":case"TagXPath":d.push(new n.$(f,this.F(),v.T(),e,a));break;case"TagLookup":case"TagStoredResource":d.push(new s.C(f,this.F(),v.T(),e,this));break;case"TagList":d.push(new o.H(f,this.F(),v.T(),i,this));break;case"TagListUnstructured":d.push(new u.X(f,this.F(),v.T(),i,this));break;case"TagConditionalDefined":case"TagDefined":d.push(new r.B(f,this.F(),v.T()));break;case"TagYouTube":d.push(new h.q(f,this.F(),v.T(),e,a));break;case"TagLookupLinkedEntity":case"TagLookupOmniLinkedEntity":d.push(new c.G(f,this.F(),v.T(),this.O,e,a));break;case"TagQueryService":d.push(new l.V(f,this.F(),v.T(),this.O,e,a))}return d}}i.i=v},369:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.W=void 0;i.W=class{constructor(t){this.content=t}}},762:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.Y=void 0;const s=e(369),n=e(42);class o extends s.W{K(t){if(Array.isArray(this.content))for(let i=0;i<this.content.length;i++)(0,n.Z)(t,this.content[i]);else(0,n.Z)(t,this.content);return t}}i.Y=o},892:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.tt=i.it=i.Append=i.Prepend=i.et=i.st=i.nt=i.ot=i.rt=void 0;const s=e(699);class n extends s.ht{evaluate(t){return void 0===this.ut?t:t.length>0?this.ut+t:""}getType(){return s.ct.Prepend}}i.Prepend=n;class o extends s.ht{evaluate(t){return void 0===this.ut?t:t.length>0?t+this.ut:""}getType(){return s.ct.Append}}i.Append=o;class r extends s.ht{evaluate(t){if(void 0===this.ut)return t;const i=t.indexOf(this.ut);return i>=0?t.slice(0,i):""}getType(){return s.ct.Before}}i.rt=r;class h extends s.ht{evaluate(t){var i;if(void 0===this.ut)return t;const e=t.indexOf(this.ut);return e>=0?t.slice(null!==(i=e+this.ut.length)&&void 0!==i?i:0):""}getType(){return s.ct.After}}i.ot=h;class u extends s.ht{evaluate(t){var i;const e=u.lt.exec(t);if(e){const t=e[0].replace(",","");return null!==(i=Number(t))&&void 0!==i?i:""}return""}getType(){return s.ct.Number}}i.nt=u,u.lt=/(\+|-)*((\d+[.,]\d*)|(\d*[.,]\d+)|\d+)/im;class c extends s.ht{evaluate(t){return t.replace(c.dt,"")}getType(){return s.ct.NonNumber}}i.st=c,c.dt=/\d+/gm;class l extends s.ht{evaluate(t){return this.ut?t.split(this.ut).join(""):t}getType(){return s.ct.Omit}}i.et=l,i.it=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 r(t);case"AFTER":return new h(t);case"OMIT":return new l(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.tt=function(t,i){for(let e=0;e<t.length;e++)i=t[e].evaluate(`${i}`);return i}},708:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.vt=i.ft=void 0;const s=e(892),n=e(675);class o{constructor(t,i,e,n=document){var o;if(this.id=t["@id"],this.wt=t,this.name=t["@type"],this.gt=i,this.yt=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;t<i.length;t++){let n=i[t];if(""===n)continue;n=n.endsWith('")')&&!n.match(e)?n:n+='")';const o=(0,s.it)(n);o&&this.filters.push(o)}}this.context=n}bt(t){let i=t.trim();return 0===i.indexOf("//")?i=i.slice(2):0===i.indexOf("/")?i=i.slice(1):-1===i.indexOf("contains")?i=0===i.indexOf("/")?i.slice(1):i:""===i&&(i="."),i}Ot(t){if("text()"!==t){const i=t.trim().split("|"),e=[];for(let t=0;t<i.length;t++)e.push(this.bt(i[t]));t=i.length>1?"( "+e.join(" | ")+" )":e[0]}else t=this.bt(t);return t}Pt(){const t=this.wt.definedURI;return t?n.I.k(t):null}}i.ft=o;i.vt=class extends o{Tt(){return this.value}constructor(t,i,e,s=document){super(t,i,e,s),this.value=void 0!==t.value?t.value:""}}},846:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.B=void 0;const s=e(899),n=e(708);class o extends n.ft{constructor(t,i,e){super(t,i,e,document),this.value=t.value,this.St=Object.prototype.hasOwnProperty.call(t,"xPathTest")?t.xPathTest:void 0}debug(){return""}evaluate(){let t=`${this.value}`,i=!1;return this.St&&(t=(0,s._t)(this.St)?this.value:void 0,i=void 0===t),{result:t,context:void 0,propertyPath:this.propertyPath,Nt:i}}}i.B=o},20:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.G=void 0;const s=e(708),n=e(967),o=e(555),r=e(892);class h extends s.ft{constructor(t,i,e,s,n=document,o=!1){super(t,i,e,n),this.O=s,this.xt=t,this.Et=t["xPath-input"],this.target=t.target,this.jt=o,o&&(this.Et=this.Ot(this.Et))}debug(){return""}evaluate(t){const i=(0,o.Jt)(this.Et,null!=t?t:this.context,!0);if(this.Et,this.jt,this.id,i.result){let t=i.result;return this.filters&&(t=(0,r.tt)(this.filters,t)),{result:"",promise:(0,n.Rt)(this.target,"",this.gt,JSON.stringify({content:t}),{highlight_id:this.xt["@id"],highlight_config:JSON.stringify(this.xt),url:this.O}),propertyPath:this.propertyPath,Nt:!1}}return{Nt:!0,propertyPath:this.propertyPath}}Tt(){return""}}i.G=h},131:function(t,i,e){var s=this&&this.Ft||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function r(t){try{u(s.next(t))}catch(t){o(t)}}function h(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(r,h)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.H=void 0;const n=e(983),o=e(948),r=e(42),h=e(555);class u extends n.${constructor(t,i,e,s,n,o=document){var r;super(t,i,e,o),this.Mt=null!==(r=this.propertyPath.pop())&&void 0!==r?r:"",this.At=!this.Mt.charAt(0).match(/[A-Z]/),this.At&&this.propertyPath.push(this.Mt),this.kt=s,this.templates=[],this.configuration=n,t.hasTemplate&&t.hasTemplate.length>0?(this.It=t.hasTemplate[0]["@id"],this.Lt=n.U(t.hasTemplate[0],this.kt,document.body,!0)):(this.Lt=[],this.It=""),this.Dt=document.evaluate(this.Ut,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),this.$t()}debug(){return""}evaluate(){const t=[];let i=!1;0===this.Dt.snapshotLength&&(this.Dt=document.evaluate(this.Ut,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),this.$t());for(let e=0;e<this.templates.length;e++){const s=this.templates[e].evaluate();Object.keys(this.templates[e].Ct()).length>0&&(i=!0),"ListItem"===this.Mt&&(0,r.Ht)("position",e+1,s),t.push(s)}if(this.At)for(let i=0;i<this.Dt.snapshotLength;i++){const e=this.Dt.snapshotItem(i);0===this.Lt.length&&e&&t.push((0,h.Xt)(e,!1));for(let i=0;i<this.Lt.length;i++){const n=this.Lt[i],o=this.Lt[i].evaluate(null!=e?e:document);o.promise&&o.promise.then((t=>s(this,void 0,void 0,(function*(){yield(0,r.Bt)(t,n,e).then((t=>{t.content&&this.kt.zt(t.content,t.source)}))})))),o.result&&!o.Nt&&t.push(o.result)}}return{result:t.length>0?t:void 0,propertyPath:this.propertyPath,context:void 0,Nt:0===t.length||0===this.Dt.snapshotLength||i}}$t(){if(!this.At)for(let t=0;t<this.Dt.snapshotLength;t++){const i=this.Dt.snapshotItem(t);if(i){const e=this.configuration.A([this.Mt],this.propertyPath,this.id)+t,s=this.wt.hasTemplate[0];this.templates.push(new o.qt(s,this.configuration,this.kt,i,this.Lt,e,!0,this.Mt))}}}}i.H=u},844:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.X=void 0;const s=e(983),n=e(948),o=e(899);class r extends s.${constructor(t,i,e,s,n,o=document){var r;super(t,i,e,o),this.Qt=null!==(r=this.propertyPath.pop())&&void 0!==r?r:"",this.Gt=n,this.kt=s,this.It=t.hasTemplate[0]["@id"],this.Lt=n.U(t.hasTemplate[0],s,document,!0),this.inclusionTest=void 0===this.wt.inclusionTest?void 0:this.wt.inclusionTest,this.nodeIterator=this.wt.nodeIterator,this.Vt=void 0===this.wt.tagListEnd?void 0:this.wt.tagListEnd}debug(){return""}evaluate(t){try{if(this.St&&!(0,o._t)(this.St))return{result:void 0,Nt:!0,propertyPath:this.propertyPath};const i=document.evaluate(this.Ut,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 r=null,h=0,u=0;if(0===e.snapshotLength||0===i.snapshotLength)return{result:void 0,Nt:!0,propertyPath:this.propertyPath};this.Vt&&(r=document.evaluate(this.Vt,null!=t?t:this.context,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE));let c=i.snapshotItem(0);const l=null!==r?r.snapshotItem(0):null,a=this.Wt(e,c);let d=a.Yt;for(u=a.Kt;h<i.snapshotLength&&null!=c;){const t=this.Gt.A([this.Qt],this.propertyPath)+h,o=this.wt.hasTemplate[0],r=new n.qt(o,this.Gt,this.kt,document,this.Lt,t,!0,this.Qt);d=e.snapshotItem(u);const a=this.Zt(d,e,i,l,h,u),v=a.ti;if(v.push(c),u=a.ii,this.ei(v)||s.push(r.evaluate(v)),h++,h>i.snapshotLength||l===c)break;c=i.snapshotItem(h)}return{result:s.length>0?s:void 0,Nt:0==s.length,propertyPath:this.propertyPath}}catch(t){return{result:"",Nt:!0,propertyPath:this.propertyPath}}}Wt(t,i){let e=t.snapshotItem(0),s=0;for(;e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING;)s++,e=t.snapshotItem(s);return{Yt:e,Kt:s}}Zt(t,i,e,s,n,o){const r=[];for(;(null!=t&&n+1<e.snapshotLength&&t.compareDocumentPosition(e.snapshotItem(n+1))&Node.DOCUMENT_POSITION_FOLLOWING||e.snapshotLength==n+1&&o<i.snapshotLength)&&!(null!==s&&t.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING);)r.push(t),o++,t=i.snapshotItem(o);return{ii:o,ti:r}}ei(t){if(this.inclusionTest){for(let i=0;i<t.length;i++)if((0,o._t)(this.inclusionTest,t[i]))return!1;return!0}return!1}}i.X=r},989:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.q=void 0;const s=e(983),n=e(899),o=e(555),r=e(967),h=e(417),u=e(892);class c extends s.${Tt(){var t;return null!==(t=this.value)&&void 0!==t?t:""}evaluate(t){var i;const e=(0,o.Jt)(this.Ut,null!=t?t:this.context);if(void 0!==this.St&&!(0,n._t)(this.St)||void 0===e.result||"string"!=typeof e.result)return{propertyPath:this.propertyPath,Nt:!0};let s=`${e.result}`;if(this.filters&&(s=(0,u.tt)(this.filters,s)),""===s||void 0===s)return{Nt:!0,propertyPath:this.propertyPath};const c=new URL(decodeURIComponent(s)),l=c.origin+c.pathname+c.search;return this.value=l,{result:{"@id":null!==(i=this.Pt())&&void 0!==i?i:this.value},promise:(0,r.si)(h.endpoints.o+encodeURIComponent(l),this.yt,this.gt),propertyPath:this.propertyPath,Nt:!1}}}i.q=c},116:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.V=void 0;const s=e(417),n=e(967),o=e(983),r=e(899),h=e(555),u=e(892);class c extends o.${constructor(t,i,e,n,o=document,r=!1){super(t,i,e),this.xt=t,this.O=n;const h=s.i.j();this.target="test"==h?s.endpoints.u:s.endpoints.h,Object.hasOwnProperty.call(t,"restrictToType")&&(this.restrictToType=t.restrictToType)}debug(){return""}evaluate(t){if(this.St&&!(0,r._t)(this.St)||null==this.restrictToType)return{result:void 0,context:void 0,propertyPath:this.propertyPath,Nt:!0};let i=`${(0,h.Jt)(this.Ut,null!=t?t:this.context,this.ni).result}`;return this.filters&&(i=(0,u.tt)(this.filters,i)),""===i||void 0===i?{Nt:!0,propertyPath:this.propertyPath}:{result:"",promise:(0,n.Rt)(this.target,this.yt,this.gt,JSON.stringify([{type:this.restrictToType,label:i}]),{highlight_id:this.xt["@id"],url:this.O}),propertyPath:this.propertyPath,Nt:!1}}Tt(){return""}}i.V=c},734:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.C=void 0;const s=e(967),n=e(899),o=e(708),r=e(555),h=e(723),u=e(892);class c extends o.vt{constructor(t,i,e,s=document,n){super(t,i,e),this.Gt=n,this.St=Object.prototype.hasOwnProperty.call(t,"xPathTest")?t.xPathTest:void 0,this._=Object.prototype.hasOwnProperty.call(t,"describedIn")?t.describedIn.replace("http://schemaapp.com/db/"):void 0;const o=this._?this._:this.gt.complete,r=btoa(this.value).replace(/=/g,"");this.oi=`https://data.schemaapp.com/${o}/${r}`,void 0!==t.target&&(this.target=t.target)}debug(){return""}evaluate(t){var i,e;return this.St&&!(0,n._t)(this.St)?{Nt:!0,propertyPath:this.propertyPath}:this.target?(this.ri(),{result:{"@id":null!==(i=this.Pt())&&void 0!==i?i:this.value},promise:(0,s.si)(this.target,this.yt,this.gt),propertyPath:this.propertyPath,Nt:!1}):{result:{"@id":null!==(e=this.Pt())&&void 0!==e?e:this.value},promise:(0,s.si)(this.oi,this.yt,this.gt),propertyPath:this.propertyPath,Nt:!1}}ri(){var t,i,e,s;if(!this.target)return;this.value="";let n="";this.wt["xPath-input"]&&(n=null!==(t=(0,r.Jt)(this.wt["xPath-input"]).result)&&void 0!==t?t:"",this.filters&&(n=null!==(i=(0,u.tt)(this.filters,n))&&void 0!==i?i:n),this.wt.encodeResult&&(this.value=n,n=btoa(n).replace(/=/g,""))),this.target=this.target.replace("baseURL",this.Gt.O),this.target=this.target.replace("xPath-input",n),this.target=this.target.replace("AccountID",null!==(s=null===(e=this.Gt.F())||void 0===e?void 0:e.complete)&&void 0!==s?s:""),this.target=this.target.replace(/{|}/gm,""),this.target=(0,h.hi)(this.target)}}i.C=c},983:(t,i,e)=>{Object.defineProperty(i,"t",{value:!0}),i.$=void 0;const s=e(555),n=e(899),o=e(708),r=e(892);class h extends o.ft{constructor(t,i,e,s=document,n=!1){if(super(t,i,e,s),this.jt=n,0==Object.prototype.hasOwnProperty.call(t,"xPath"))this.Ut="text()",this.ni=!1;else{let i=t.xPath;i=i.match(/^.*\(\)\s*$/g)?i:i.replace(/^\(([^|]+)\)$/gm,"$1"),this.Ut=i.replace(/(\/node\(\))/g,""),this.ni=i!=this.Ut,this.jt&&(this.Ut=this.Ot(this.Ut))}Object.hasOwnProperty.call(t,"xPathTest")&&(this.St=t.xPathTest)}debug(){return""}evaluate(t){var i;if(this.St&&!(0,n._t)(this.St))return{result:void 0,context:void 0,Nt:!0,propertyPath:this.propertyPath};const e=(0,s.Jt)(this.Ut,null!=t?t:this.context,this.ni);let o=e.result;return o=this.filters&&o?(0,r.tt)(this.filters,o):null!==(i=e.result)&&void 0!==i?i:"",{result:o,context:e.context,Nt:null===e.result||""===e.result,propertyPath:this.propertyPath}}}i.$=h},115:function(t,i,e){var s=this&&this.Ft||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function r(t){try{u(s.next(t))}catch(t){o(t)}}function h(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(r,h)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.ui=void 0;const n=e(417),o=e(967),r=e(699),h=e(899),u=e(948),c=e(798),l=e(723);class Highlighter{constructor(){this.ci=0,this.li=5,this.ai=750,this.di=6,this.vi=1,this.fi=!1,this.applyTemplateBaseLoopDelay=750,this.pi=window.location.protocol+"//"+window.location.host,this.wi=this.gi(),this.mi=this.yi(this.wi),this.bi=btoa(this.pi).replace(/=/g,""),this.Oi=[],this.kt=new c.Pi,this.fi=!1,(0,l.Ti)(Event)&&(this.fi=!0)}gi(){return[location.protocol,"//",location.host,location.pathname].join("")}yi(t){return btoa(t).replace(/=/g,"")}Si(){const t=n.i.S(),i=n.i.T(),e="test"==n.i.j()?n.endpoints.g:n.endpoints.p;void 0!==window.schema_highlighter&&window.schema_highlighter.outputCache&&(window.schema_highlighter.fetchFromHighlightJsCache&&(0,o.si)(e+(null==t?void 0:t.complete)+"/__highlighter_js/"+this.mi,i,t).then((t=>s(this,void 0,void 0,(function*(){var i;const e=yield t.text();""!==e&&(0,l._i)(e,null!==(i=t.headers.get("x-amz-meta-source"))&&void 0!==i?i:"",!0)})))),(0,o.si)(e+(null==t?void 0:t.complete)+"/"+this.mi,i,t).then((t=>s(this,void 0,void 0,(function*(){var i;const e=yield t.text();""!==e&&(0,l._i)(e,null!==(i=t.headers.get("x-amz-meta-source"))&&void 0!==i?i:"",!0)}))))),(0,o.si)(n.i.R(),i,t).then((t=>s(this,void 0,void 0,(function*(){const i=yield t.text();"{}"!==i&&""!==i&&(this.fi&&window.dispatchEvent(new Event("highlightJsConfigurationRetrieved")),this.configuration=new n.i(JSON.parse(i)),this.Ni())}))))}Ni(){this.xi(void 0),this.Ei(),this.fi&&window.dispatchEvent(new Event("highlightJsTitleObserverInitialized")),this.ji=new MutationObserver(this.Ji.bind(this)),this.ji.observe(document.querySelector("title"),{childList:!0}),this.Ri()}xi(t){this.Fi=this.Mi(t),this.Fi.length>0&&this.fi&&window.dispatchEvent(new Event("highlightJsTemplatesMatched"));for(let t=0;t<this.Fi.length;t++)if(this.configuration){const i=this.Fi[t]["@id"];let e=!1;for(let t=0;t<this.Oi.length;t++)i==this.Oi[t].It&&(e=!0);if(!e){const i=new u.qt(this.Fi[t],this.configuration,this.kt);this.Oi.push(i),i.It}}}applyTemplateBase(t,i=!1,e=!0,r=!0,h=!1,l){const a=n.i.S(),d=n.i.T(),v={},f={};let p=!1;const w={published:!1,draft:!1};this.kt=new c.Pi;const g={published:n.i.R(t,!1,e,r)};i&&(g.draft=n.i.R(t,i,e,r));const m=[];for(const i in g){const e=g[i];this.Oi=[],m.push((0,o.si)(e,d,a).then((e=>s(this,void 0,void 0,(function*(){if(!e.ok)return Promise.reject(e.statusText);w[i]=!0;const s=yield e.text();if(""!==s){this.configuration=new n.i(JSON.parse(s)),this.Fi=this.Mi(void 0),p||(p=this.Fi.length>0),""!==t&&0==this.Fi.length&&void 0!==t&&this.Fi.push(t);for(let t=0;t<this.Fi.length;t++){const e=new u.qt(this.Fi[t],this.configuration,this.kt);f[e.It]=e.Ct(),this.Oi.push(e),(!(this.Fi[t]["@id"]in v)||this.Fi[t]["@id"]in v&&v[this.Fi[t]["@id"]].isDraft)&&(v[this.Fi[t]["@id"]]={label:this.Fi[t].label,isDraft:"draft"==i})}this.Ei(),h&&(yield this.applyTemplateBaseEvaluateLoop())}})))).catch((t=>{})))}Promise.all(m).then((()=>{l({patternsMatched:p,templatesMatched:v,results:this.kt.Ai(),failedHighlights:f,fetchSuccessful:w})}))}applyTemplate(t,i=!1,e){this.applyTemplateBase(t,i,!0,!0,!0,e)}Ei(){for(let t=0;t<this.Oi.length;t++){const i=this.Oi[t];try{const t=i.evaluate();this.kt.ki(i.It,JSON.stringify(t),n.i.J()+":"+i.It)}catch(t){}}}Ri(){const t=this;this.Ii=setInterval((()=>{t.xi(r.Li.XPathCollection),t.vi+=1,t.Ei(),t.vi%3==0&&(t.ai+=Highlighter.Di,clearInterval(t.Ii),t.Ri()),t.vi>=t.di&&(this.fi&&window.dispatchEvent(new Event("highlightJsTemplatesEvaluated")),t.kt.Ui(t.configuration),clearInterval(t.Ii)),t.ai}),this.ai)}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.Ei(),e(!0)}),i))),i+=Highlighter.Di}))}Mi(t){var i,e;let s;const n=null===(i=this.configuration)||void 0===i?void 0:i.M(),o=[];if(n)for(s=0;s<n.length;s++){const i=null===(e=this.configuration)||void 0===e?void 0:e.L(n[s],t);i&&this.$i(i)&&o.push(n[s])}const r=o.filter((t=>{var i;const e=null===(i=this.configuration)||void 0===i?void 0:i.D(t);return!(e&&this.$i(e))}));return r}$i(t){for(const i of t){if(i.type===r.Li.PageCollection)return i.members.has(this.wi);if(i.type===r.Li.GlobCollection){for(const t of i.members)if((0,h.Ci)(this.wi,t))return!0}else for(const t of i.members){if((0,h._t)(t))return!0}}return!1}Ji(t,i){var e;this.ci++;const s=[location.protocol,"//",location.host,location.pathname].join("");null===(e=this.configuration)||void 0===e||e.P(s),this.wi!==s&&0==this.Oi.length&&(this.wi=s,this.pi=[location.protocol,"//",location.host].join(""),this.mi=this.yi(s),this.xi(void 0),this.Oi.length>0&&(this.Ei(),this.Ri(),i.disconnect(),this.fi&&window.dispatchEvent(new Event("highlightJsTitleObserverDisconnected")))),this.ci>=this.li&&(i.disconnect(),this.fi&&window.dispatchEvent(new Event("highlightJsTitleObserverDisconnected")))}}i.ui=Highlighter,Highlighter.Di=500,null==window.schema_highlighter_instance&&((0,l.Ti)(Event)&&window.dispatchEvent(new Event("highlightJsInitialized")),window.schema_highlighter_instance=new Highlighter,window.schema_highlighter_instance.Si()),window.addEventListener("message",(function(t){var i;if(t.data.Hi){if("highlightJsExecute"!==t.data.Hi.Xi)return;const e=t.data.Hi.It,s=t.data.Hi.draft,n=t.data.Hi.Bi,o=null!==(i=t.data.Hi.zi)&&void 0!==i&&i;window.schema_highlighter_instance.applyTemplateBase(e,s,n,o,!1,(t=>{const i=JSON.parse(JSON.stringify({Hi:{type:"jsonLdGenerated",result:t}}));window.postMessage(i)}))}}))},42:function(t,i,e){var s=this&&this.Ft||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function r(t){try{u(s.next(t))}catch(t){o(t)}}function h(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(r,h)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.Bt=i.Z=i.qi=i.Ht=void 0;const n=e(762),o=e(723),r=e(948);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 u(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 c(t,i,e,s,n){return 0===(null==t?void 0:t.length)?(t.push(u(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){const n=function(t,i){let e=t,s=!1;for(let t=0;t<e.length;t++)if(e[t]["@type"]===i){e=e[t],s=!0;break}return s?e:null}(t,i);return n||(t.push(u(e,s,t["@id"],i)),t[t.length-1])}(t,i,e,n)}function l(t,i,e,s,n){return s===e.length?h(t,n,i):void 0===t[i]?t[i]=[]:t[i].constructor!==Array&&(t[i]=[t[i]]),t[i]}function a(t,i,e){const s=function(t){return t.constructor===Array?t:t.split("~")}(t);let n=e;for(let t=1;t<=s.length;t++){const o=s[t-1];n=t%2==0?c(n,o,s,e,t):l(n,o,s,t,i)}}i.Ht=a,i.qi=function(t,i){t.forEach((t=>{""!==t.content&&a(t.propertyPath,t.content,i)}))},i.Z=function t(i,e){!function(t,i){if(void 0===i.Qi&&(i.Qi=[]),void 0===t.name||void 0===t["@type"])return;const e=t.name instanceof Array?t.name:[t.name],s=t["@type"]instanceof Array?new Set(t["@type"]):new Set([t["@type"]]),n=i.Qi.filter((t=>s.has(t)));e.includes(i.name)&&(n.length>0||s.has(i["@type"]))&&a("sameAs",i.sameAs,t)}(i,e);for(const s in i){if(!Object.prototype.hasOwnProperty.call(i,s))continue;const n=i[s];if(!("string"==typeof n||n instanceof String))if(Array.isArray(n))for(let i=0;i<n.length;i++)"string"==typeof n[i]||n[i]instanceof String||t(n[i],e);else t(n,e)}},i.Bt=function(t,i,e){var h,u,c;return s(this,void 0,void 0,(function*(){let s=yield t.text().catch((t=>{}));if(r.qt.Gi.includes(i.name))return{Vi:new n.Y(JSON.parse(null!=s?s:""))};if(r.qt.Wi.includes(i.name))return{Yi:{propertyPath:i.propertyPath,content:JSON.parse(null!=s?s:"")}};if(""==s)return{};const l=JSON.parse(null!=s?s:"");return l["@type"]&&l["@type"].includes("MarkupResponse")?l.items[i.Tt()]?(s=l.items[i.Tt()],s=(0,o.Ki)(null!=s?s:"",i.Tt(),null!==(h=i.Pt())&&void 0!==h?h:i.Tt())):s=void 0:""!==i.Tt()?s=(0,o.Ki)(null!=s?s:"",i.Tt(),null!==(u=i.Pt())&&void 0!==u?u:i.Tt()):(s=JSON.parse(JSON.stringify(e)),a(i.propertyPath,l,s)),"string"!=typeof s&&(s=JSON.stringify(s)),{source:null!==(c=t.headers.get("x-amz-meta-source"))&&void 0!==c?c:"",content:s}}))}},967:(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.Rt=i.si=void 0,i.Zi=e,i.si=function(t,i,n,o,r){return fetch(e(t,o),{headers:s(i,n,r),mode:"cors",cache:"default"})},i.Rt=function(t,i,n,o,r,h){return fetch(e(t,r),{method:"POST",headers:s(i,n,h),body:o,mode:"cors",cache:"default"})}},798:function(t,i,e){var s=this&&this.Ft||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function r(t){try{u(s.next(t))}catch(t){o(t)}}function h(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(r,h)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.Pi=void 0;const n=e(723),o=e(417),r=e(967);class h{constructor(){this.te={},this.ie={}}ee(t){return void 0!==this.te[t]}se(t,i,e){if(this.ee(t)){if(this.ie[t].content!==i){const s=this.te[t];this.ie[t]={content:i,source:e},s.innerText=i}}}zt(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.ki(s["@id"],t,i,e)}ki(t,i,e="",s=!1){this.ee(t)?this.se(t,i,e):(this.te[t]=(0,n._i)(i,e,s),this.ie[t]={content:i,source:e})}Ai(){return this.ie}ne(){return o.i.J()+":"}Ui(t){var i,e,o,u;const c=t.M(),l={};for(const[t,i]of c.entries())l[i["@id"]]=i;const a=new Set(c.map((t=>t["@id"]))),d={};let v,f;for(const t in this.ie)v=JSON.parse(this.ie[t].content),Array.isArray(v)?v.forEach((i=>{d[i["@id"]]={content:JSON.stringify(i),source:this.ie[t].source}})):(f=JSON.parse(this.ie[t].content),d[f["@id"]]={content:this.ie[t].content,source:this.ie[t].source});for(const c in this.te){if(!a.has(c))continue;const v=l[c];let f=null;v&&"updated"in v&&(f=Array.isArray(v.updated)?v.updated[0]:v.updated);const p={AccountId:null!==(e=null===(i=t.F())||void 0===i?void 0:i._)&&void 0!==e?e:"",SubAccount:null!==(u=null===(o=t.F())||void 0===o?void 0:o.N)&&void 0!==u?u:"",Source:this.ne()+c,Domain:window.location.origin,DateSeen:"2021-09-30",URL:t.O,Json:d};null!==f&&(p.TemplateLastUpdated=f);try{(0,r.Rt)(h.endpoint,"BiQcqdttWn7eunp8jvxM5oZl3DIx08J42LtTmaaj",t.F(),JSON.stringify(p),void 0,new Headers({"content-type":"application/json"})).then((t=>s(this,void 0,void 0,(function*(){t.ok&&(0,n.Ti)(Event)&&window.dispatchEvent(new Event("highlightJsOnComplete"))}))))}catch(t){console.debug(t)}}}}i.Pi=h,h.endpoint="https://api.schemaapp.com/pagecount"},723:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Ti=i.Ki=i.hi=i._i=void 0,i._i=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.hi=function(t){if(0===t.indexOf("http",1))return t;const i=document.createElement("a");return i.href=t,i.origin+i.pathname},i.Ki=function(t,i,e){let s=null;s="string"==typeof t?JSON.parse(t):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;t<s.length;t++)s[t]["@id"]=e;return s.length>1?s:s[0]},i.Ti=function(t){return/\{\s+\[native code\]/.test(Function.prototype.toString.call(t))}},899:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Ci=i._t=void 0,i.Ci=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,"[^/]*")).replace(e,".*");const s=new RegExp("^"+i+"$","i");return null!==t.match(s)},i._t=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()}},948:function(t,i,e){var s=this&&this.Ft||function(t,i,e,s){return new(e||(e=Promise))((function(n,o){function r(t){try{u(s.next(t))}catch(t){o(t)}}function h(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(r,h)}u((s=s.apply(t,i||[])).next())}))};Object.defineProperty(i,"t",{value:!0}),i.qt=void 0;const n=e(42);class o{constructor(t,i,e,s=document,n=[],o="",r=!1,h=null){this.oe=!0,this.It=t["@id"],this.Lt=n,this.configuration=i;const u=null!=h?h:t.categorizedBy;this.re=""!==o?o:i.A(u),this.he=s,this.ue=new Set,this.te=[],this.jt=r;const c=t.definedURI;c&&(this.re=i.definedURI(c)),this.ce=this.le={"@type":u,"@id":this.re},this.jt||(this.ce["@context"]={"@vocab":"http://schema.org/",kg:"http://g.co/kg"},(void 0===t.generateUrl||t.generateUrl)&&(this.ce.url=window.location.origin+window.location.pathname)),this.ae=JSON.parse(JSON.stringify(this.le)),n.length>0?this.Lt=n:this.Lt=i.U(t,e,s),this.kt=e,this.de={};const l=this.ve(this.Lt);this.fe=l[0],this.pe=l[1],this.we(),this.ge(),this.me={},this.ye=[],this.be=[]}getContext(){return this.ce}Oe(t,i){let e=0,s=!1;const o=i.constructor===Array?i:[i];let r="";for(let i=0;i<o.length;i++){const n=t.evaluate(o[i]);n.promise&&(e=this.Pe(t,n.promise)?e+1:e),!n.result&&n.Nt||(r=""===r?n.result:r+n.result,e+=1,this.Te(t,n)),n.Nt&&n.result&&(s=!0)}return(0===e||s)&&(this.me[t.id]=t),e>0&&(s||(this.de[t.id]={result:r,propertyPath:t.propertyPath},delete this.me[t.id]),(0,n.Ht)(t.propertyPath,JSON.parse(JSON.stringify(r)),this.ce)),e>0}evaluate(t){this.ge();let i=0,e=this.fe;if(!this.oe){e=[];for(const t in this.me)e.push(this.me[t])}if(e.forEach((e=>{const s=this.Oe(e,null!=t?t:this.he);i=s?i:i+1})),!this.oe)for(const t in this.de){const i=this.de[t];i.result&&(0,n.Ht)(i.propertyPath,JSON.parse(JSON.stringify(i.result)),this.ce)}return this.oe=!1,(0,n.qi)(this.be,this.ce),this.Se(),this.ce}Ct(){return this.me}ve(t){const i=[],e=[];return t.forEach((t=>{-1===o._e.indexOf(t.name)?i.push(t):e.push(t)})),this.fe=i,this.pe=e,[i,e]}we(){this.pe.forEach((t=>{const i=t.evaluate(this.he);i.promise&&this.Pe(t,i.promise,this.le),i.result&&!i.Nt&&(0,n.Ht)(t.propertyPath,i.result,this.le)}))}Pe(t,i,e=this.ce){const o=t;try{i.then((t=>s(this,void 0,void 0,(function*(){204!==t.status&&(yield(0,n.Bt)(t,o,this.ae).then((t=>{t.content&&this.kt.ki(o.Tt(),t.content,t.source),t.Yi&&this.be.push(t.Yi),t.Vi&&this.ye.push(t.Vi)})))})))).catch((i=>(this.me[t.id]=t,!1)))}catch(i){this.me[t.id]=t}return!0}Se(){for(let t=0;t<this.ye.length;t++)this.ye[t].K(this.ce)}Te(t,i){if(!this.ue.has(t.id)&&i.context){this.ue.add(t.id);new MutationObserver((()=>{this.me[t.id]=t})).observe(i.context,o.Ne)}}ge(){this.ce=JSON.parse(JSON.stringify(this.le))}}i.qt=o,o.Gi=["TagLookupLinkedEntity"],o.Wi=["TagLookupOmniLinkedEntity","TagQueryService"],o.Ne={attributes:!1,childList:!0,subtree:!0,characterData:!1},o._e=["TagDefined","TagStoredResource"]},675:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.I=void 0;i.I=class{static k(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)}}},555:(t,i)=>{Object.defineProperty(i,"t",{value:!0}),i.Xt=i.Jt=i.xe=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;s<i.length;s++){const r=i[s];if(t.hasAttribute(r)){e=t.getAttribute(r),"srcset"===r&&(e=o(e)),n=!0;break}}return n?e.startsWith("http")?e:s(e):t.textContent}function o(t){const i=t.split(",");return i.length>0?i[0].split(" ")[0]:""}function r(t){const i=[];for(let e=0;e<t.children.length;e++){const s=t.children.item(e);s&&(r(s),"script"===s.localName.toLowerCase()&&i.push(s))}for(let e=0;e<i.length;e++)t.removeChild(i[e])}function h(t,i){const h=new Set(["img","source","embed","script","link","iframe"]),u=new Set("a"),c=new Set(["video","audio","picture"]),l=new Set(["meta"]),a=new Set(["src","href"]);switch(t.nodeType){case Node.TEXT_NODE:return t.textContent;case Node.ATTRIBUTE_NODE:return a.has(t.nodeName.toLowerCase())?s(t.nodeValue):t.nodeValue}if(h.has(t.nodeName.toLowerCase()))return n(t);if(u.has(t.nodeName.toLowerCase()))return n(t,["href"]);if(l.has(t.nodeName.toLowerCase()))return t.hasAttribute("content")?t.getAttribute("content"):"";if(c.has(t.nodeName.toLowerCase()))return function(t){var i;let e="";if(t.hasChildNodes()){const i=t.getElementsByTagName("source");i.length>0&&(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 r(d),i?d.outerHTML:(v=d.textContent,e.textContent=v,e.innerHTML);var v}i.xe=function(t){return(t=t.trim()).startsWith("//")?t.slice(2):t.startsWith("/")?t.slice(1):""===t?".":t},i.Xt=h,i.Jt=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;t<o.snapshotLength;t++){const i=o.snapshotItem(t);i&&(s+=h(i,e)+"\n",n=i)}o.snapshotLength>1&&(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}}},699:(t,i)=>{var e,s;Object.defineProperty(i,"t",{value:!0}),i.ct=i.ht=i.Li=void 0,function(t){t.PageCollection="PageCollection",t.GlobCollection="GlobCollection",t.XPathCollection="XPathCollection"}(e||(e={})),i.Li=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.ct=s;class n{constructor(t){const i=t.match(n.Ee);i&&(this.ut=i.pop())}je(){return this.ut?this.ut:null}}i.ht=n,n.Ee=/"(.*)"/i}},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})(115)})();