芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/main/assets/prismic.min.js
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=231)}({0:function(e,t,n){"use strict";n.r(t);var i=n(8);n.d(t,"getCookie",(function(){return i.c})),n.d(t,"setCookie",(function(){return i.d})),n.d(t,"deleteCookie",(function(){return i.a})),n.d(t,"demolishCookie",(function(){return i.b}));var r=n(19);n.d(t,"Hooks",(function(){return r.a}));var o=n(20);n.d(t,"Sorter",(function(){return o.a}));var s=n(12);n.d(t,"toolbarEvents",(function(){return s.b})),n.d(t,"dispatchToolbarEvent",(function(){return s.a}));var a=n(1);n.d(t,"warn",(function(){return a.x})),n.d(t,"err",(function(){return a.g})),n.d(t,"isObject",(function(){return a.j})),n.d(t,"switchy",(function(){return a.u})),n.d(t,"fetchy",(function(){return a.h})),n.d(t,"ellipsis",(function(){return a.f})),n.d(t,"readyDOM",(function(){return a.q})),n.d(t,"wait",(function(){return a.w})),n.d(t,"delay",(function(){return a.c})),n.d(t,"stringCheck",(function(){return a.t})),n.d(t,"disabledCookies",(function(){return a.e})),n.d(t,"random",(function(){return a.p})),n.d(t,"query",(function(){return a.o})),n.d(t,"parseQuery",(function(){return a.n})),n.d(t,"copyText",(function(){return a.b})),n.d(t,"throttle",(function(){return a.v})),n.d(t,"memoize",(function(){return a.l})),n.d(t,"once",(function(){return a.m})),n.d(t,"localStorage",(function(){return a.k})),n.d(t,"getLocation",(function(){return a.i})),n.d(t,"shadow",(function(){return a.s})),n.d(t,"deleteNodes",(function(){return a.d})),n.d(t,"appendCSS",(function(){return a.a})),n.d(t,"script",(function(){return a.r}))},1:function(e,t,n){"use strict";n.d(t,"x",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"j",(function(){return s})),n.d(t,"u",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"c",(function(){return p})),n.d(t,"t",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"p",(function(){return f})),n.d(t,"o",(function(){return w})),n.d(t,"n",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"v",(function(){return y})),n.d(t,"l",(function(){return k})),n.d(t,"m",(function(){return P})),n.d(t,"k",(function(){return S})),n.d(t,"i",(function(){return j})),n.d(t,"s",(function(){return C})),n.d(t,"d",(function(){return O})),n.d(t,"a",(function(){return T})),n.d(t,"r",(function(){return E}));const i=(...e)=>String.raw(...e).split("\n").map(e=>e.trim()).join("\n").trim(),r=(...e)=>console.warn("Prismic Toolbar\n\n"+i(...e)),o=(...e)=>{throw new Error("Prismic Toolbar\n\n"+i(...e))},s=e=>Boolean(e&&"object"==typeof e&&e.constructor===Object),a=(e="")=>(t={})=>"function"==typeof t[e]?t[e]():t[e]||t._||null,c=({url:e,...t})=>fetch(e,t).then(e=>e.json()),u=(e,t)=>e.length>t?e.substring(0,t-1)+"…":e,d=async()=>("complete"!==document.readyState&&await l(0),!0),l=e=>new Promise(t=>setTimeout(t,1e3*e)),p=e=>new Promise(t=>setTimeout(t,e)),h=(e,t)=>e.length>=t?e.substring(0,t)+"...":e,m=()=>!navigator.cookieEnabled,f=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return[...Array(e)].map(()=>t[Math.floor(Math.random()*t.length)]).join("")},w=e=>e?Object.entries(e).filter(e=>e[1]).map(e=>e.map(encodeURIComponent).join("=")).join("&"):"",v=e=>{if(!e)return{};const t=e.split("?")[1];return t?t.split("&").filter(e=>e).map(e=>e.split("=")).reduce((e,t)=>Object.assign(e,{[decodeURIComponent(t[0])]:t[1]&&decodeURIComponent(t[1])}),{}):{}},g=e=>navigator.clipboard?navigator.clipboard.writeText(e):b(e),b=e=>{const t=document.createElement("textarea");return t.value=e,t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select(),document.queryCommandEnabled("copy")&&document.execCommand("copy"),document.body.removeChild(t),Promise.resolve(!0)},y=(e,t)=>{let n,i,r=-1/0;return function(){const o=Date.now()-r,s=o>=t,a=()=>{r=Date.now(),i=e.apply(this,arguments)};return clearTimeout(n),s?a():n=setTimeout(a,t-o),i}},k=(e,t)=>{const n=new Map;return function(...i){const r=t?t(...i):JSON.stringify(i);return n.has(r)||n.set(r,e(...i)),n.get(r)}},P=e=>{let t,n;return function(...i){return n||(t=e(...i),n=!0),t}},S=(e,t=null)=>({get(){const n=window.localStorage.getItem(e);return n?JSON.parse(n):t},set(t){window.localStorage.setItem(e,JSON.stringify(t))},remove(){window.localStorage.removeItem(e)}}),j=()=>{const{href:e,origin:t,protocol:n,host:i,hostname:r,port:o,pathname:s,search:a,hash:c}=window.location;return{href:e,origin:t,protocol:n,host:i,hostname:r,port:o,pathname:s,search:a,hash:c}},C=e=>{const t=document.createElement("div");Object.entries(e).forEach(([e,n])=>"style"===e?Object.assign(t.style,n):t.setAttribute(e,n));const n=document.head.attachShadow&&t.attachShadow({mode:"open"});return document.body.appendChild(t),n||t},O=e=>{document.querySelectorAll(e).forEach(e=>e.remove())},T=(e,t)=>{const n=document.createElement("style");n.type="text/css",n.appendChild(document.createTextNode(t)),e.appendChild(n)};function E(e){return new Promise(t=>{let n=document.getElementById(e);n||(n=document.createElement("script"),n.id=e,n.src=e,document.head.appendChild(n)),n.addEventListener("load",()=>t(n))})}},12:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const i={prismic:"prismic",previewUpdate:"prismicPreviewUpdate",previewEnd:"prismicPreviewEnd"},r=(e,t=null)=>window.dispatchEvent(new CustomEvent(e,{detail:t,cancelable:!0}))},14:function(e,t,n){"use strict";var i=n(0);const r=Object(i.getCookie)("io.prismic.previewSession");const o={getCurrent:Object(i.throttle)(async()=>{const e=await a.get(),t=encodeURIComponent(e.preview.ref),n=await Object(i.fetchy)({url:`/previews/${r}/ping?ref=${t}`});return"object"==typeof e.preview&&(e.preview.ref=n.ref,a.set(e)),n},2e3)},s={run:Object(i.memoize)(async(e,t)=>{const n=e.pathname.slice(1)+e.hash+r+".jpg",i=await s.getSession({location:e,imageName:n});return i.hasPreviewImage||s.uploadScreenshot(n,t),i.url},({href:e})=>e),async getSession({location:e,imageName:t}){const n=await a.get(),o=Object(i.query)({sessionId:r,pageURL:e.href,title:n.preview.title,imageName:t,_:n.csrf});return Object(i.fetchy)({url:`/previews/s?${o}`,method:"POST"})},async uploadScreenshot(e,t){const n=await Object(i.fetchy)({url:`/previews/${r}/acl`}),o=new FormData;return o.append("key",`${n.directory}/${e}`),o.append("AWSAccessKeyId",n.key),o.append("acl","public-read"),o.append("policy",n.policy),o.append("signature",n.signature),o.append("Content-Type","image/png"),o.append("Cache-Control","max-age=315360000"),o.append("Content-Disposition",`inline; filename=${e}`),o.append("file",t),fetch(n.url,{method:"POST",body:o})}},a={liveStateNeeded:Boolean(Object(i.getCookie)("is-logged-in"))||Boolean(Object(i.getCookie)("io.prismic.previewSession")),state:null,get:async()=>(a.state||await a.insert(),a.state),set:(e={})=>{a.state=e},setNormalized:(e={})=>{a.set(a.normalize(e))},insert:async()=>{a.liveStateNeeded?a.setNormalized(await Object(i.fetchy)({url:"/toolbar/state"})):a.setNormalized()},normalize:(e={})=>Object.assign({},{csrf:e.csrf||null,auth:Boolean(e.isAuthenticated),preview:e.previewState||null},e.previewState?{preview:{ref:e.previewState.ref,title:e.previewState.title,updated:e.previewState.lastUpdate,documents:[].concat(e.previewState.draftPreview).concat(e.previewState.releasePreview).filter(Boolean)}}:{})};t.a={getState:a.get,share:s.run,close:function(){Object(i.demolishCookie)("io.prismic.previewSession",{sameSite:"None",secure:!0})},getCurrentRef:o.getCurrent}},17:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));const i=()=>window.location.reload();let r;const o=e=>(r||(r=document.createElement("a")),r.href=e,r.href)},19:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(){i(this,"on",(e,t)=>(window.addEventListener(e,t),this.hooks.push({type:e,callback:t}),t)),i(this,"off",(e,t)=>{e&&t?this._removeHook(e,t):e?this._removeType(e):this._removeAll()}),this.hooks=[]}_removeHook(e,t){window.removeEventListener(e,t),this.hooks=this.hooks.filter(n=>!(n.type===e&&n.callback===t))}_removeType(e){this.hooks.filter(t=>t.type===e).forEach(t=>window.removeEventListener(e,t.callback)),this.hooks=this.hooks.filter(t=>t.type!==e)}_removeAll(){this.hooks.forEach(e=>window.removeEventListener(e.type,e.callback)),this.hooks=[]}}function o(e,t=null){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}const s=window.fetch;window.fetch=async(...e)=>{if(e[1]&&!1===e[1].emitEvents)return s(...e);o("beforeRequest",e);const t=await s(...e);return o("afterRequest",e),t};const a=function(e){const t=window.history[e];return function(){const e=t.apply(this,arguments),n=new CustomEvent("historyChange",{detail:arguments});return window.dispatchEvent(n),e}};window.history.pushState=a("pushState"),window.history.replaceState=a("replaceState"),window.addEventListener("focus",()=>{o("activeTab",!0)}),window.addEventListener("blur",()=>{o("activeTab",!1)})},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e){this.data=e,this.filters=[]}addFilter(e,t){return this.filters.push({computeValues:e,compare:t}),this}compareData(){const e=this.filters.map(e=>e.computeValues(this.data));return(t=e,t[0].map((e,n)=>t.map(e=>e[n]))).map((e,t)=>({nodes:e,index:t}));var t}compareFunction(){const e=this.filters.map(e=>e.compare);return function(t,n){let i=0;for(let r=0;r
t.map(t=>Boolean(e(t))),(e,t)=>({didFirstWin:e,tie:e===t}))}isNot(e){return this.addFilter(t=>t.map(t=>Boolean(e(t))),(e,t)=>({didFirstWin:!e,tie:e===t}))}min(e){return this.addFilter(t=>t.map(t=>e(t)),(e,t)=>({didFirstWin:e
t.map(t=>e(t)),(e,t)=>({didFirstWin:e>t,tie:e===t}))}missing(e,t){return this.addFilter(n=>n.map(n=>Boolean(e(n).match(t))),(e,t)=>({didFirstWin:e,tie:e===t}))}in(e,t){return this.addFilter(n=>n.map(n=>Boolean(t.match(e(n)))),(e,t)=>({didFirstWin:e,tie:e===t}))}fuzzy(e,t,n){return this.addFilter(i=>{const r=i.map(t=>e(t)),o={id:void 0,keys:void 0,shouldSort:!1,tokenize:!0,matchAllTokens:!0,includeScore:!0,findAllMatches:!0,includeMatches:!1},s=new Fuse([t],Object.assign({caseSensitive:!1,maxPatternLength:300,minMatchCharLength:4},n,o));return r.map(e=>s.search(e.slice(0,300).trim())[0]||{score:1}).map(e=>e.score)},(e,t)=>({didFirstWin:e
this.data[e.index])}}const r=(e,t)=>e.map((e,t)=>({item:e,index:t})).sort((e,n)=>t(e.item,n.item)||e.index-n.index).map(({item:e})=>e)},221:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),r=n(17),o=n(222);class s{constructor(e,t,n){var i,r,o;o=async()=>{const e=this.state.preview||{};this.active=Boolean(e.ref),this.ref=e.ref,this.title=e.title,this.updated=e.updated,this.documents=e.documents||[];const t=e.ref===this.cookie.getRefForDomain();return this.active&&t&&this.watchPreviewUpdates(),{isActive:this.active,initialRef:e.ref,upToDate:t}},(r="setup")in(i=this)?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,this.cookie=t,this.client=e,this.state=n,this.end=this.end.bind(this),this.share=this.share.bind(this)}watchPreviewUpdates(){this.active&&(this.interval=setInterval(()=>{"visible"===document.visibilityState&&(this.cookie.getRefForDomain()?this.updatePreview():this.end())},3e3))}cancelPreviewUpdates(){this.interval&&clearInterval(this.interval)}async updatePreview(){const{reload:e,ref:t}=await this.client.updatePreview();this.start(t),e&&Object(i.dispatchToolbarEvent)(i.toolbarEvents.previewUpdate,{ref:t})&&(this.cancelPreviewUpdates(),Object(r.b)())}async start(e){return e?e===this.cookie.getRefForDomain()?{displayPreview:!0,shouldReload:!1}:(this.cookie.upsertPreviewForDomain(e),{displayPreview:!1,shouldReload:!0}):(await this.end(),{displayPreview:!1,shouldReload:!1})}async end(){this.cancelPreviewUpdates(),await this.client.closePreviewSession(),this.cookie.deletePreviewForDomain(),Object(i.dispatchToolbarEvent)(i.toolbarEvents.previewEnd)&&Object(r.b)()}async share(){const e=await Object(o.a)();return this.client.sharePreview(Object(i.getLocation)(),e)}}},222:function(e,t,n){"use strict";let i;t.a=async()=>{var e;document.getElementById("prismic-toolbar-v2").setAttribute("data-html2canvas-ignore",!0),i||(e="https://html2canvas.hertzen.com/dist/html2canvas.min.js",i=new Promise(t=>{const n=document.createElement("script");n.src=e,document.head.appendChild(n),n.addEventListener("load",()=>t(n))})),await i;try{const e=await window.html2canvas(document.body,{logging:!1,width:"100%",height:window.innerHeight});return new Promise(t=>e.toBlob(t,"image/jpeg",.6))}catch(e){console.warn("Caught html2canvas error",e);const t=document.createElement("canvas");return new Promise(e=>t.toBlob(e,"image/jpeg",.6))}}},223:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(e,t){r(this,"buildApiEndpoint",()=>(this.client.hostname.includes(".test")?"http":"https")+"://"+this.client.hostname),r(this,"setup",async()=>{const e=this.cookie.getTracker();this.hooks.on("historyChange",()=>this.start()),await this.start(e)}),r(this,"start",async e=>{this.dispatchLoading(),await Object(i.wait)(2);const t=e||this.cookie.getTracker();await this.predict(t),this.cookie.refreshTracker()}),r(this,"predict",e=>new Promise(async t=>{const n=await this.client.getPredictionDocs({ref:this.cookie.getRefForDomain(),url:window.location.pathname,tracker:e,location:Object(i.getLocation)()}),r=await this.client.getDevModeQueriesResults({tracker:e});this.dispatch(n,r),t()})),r(this,"retryPrediction",()=>{const e=1e3*this.retry;setTimeout(this.predict,e)}),r(this,"dispatch",(e,t)=>{Object.values(this.documentHooks).forEach(n=>n(e,t))}),r(this,"dispatchLoading",()=>{Object.values(this.documentLoadingHooks).forEach(e=>e())}),r(this,"onDocumentsLoading",e=>{const t=this.count+=1;return this.documentLoadingHooks[t]=e,()=>delete this.documentLoadingHooks[t]}),r(this,"onDocuments",e=>{const t=this.count+=1;return this.documentHooks[t]=e,()=>delete this.documentHooks[t]}),this.client=e,this.cookie=t,this.hooks=new i.Hooks,this.documentHooks=[],this.documentLoadingHooks=[],this.count=0,this.retry=0,this.apiEndPoint=this.buildApiEndpoint()}}},224:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e){i(this,"trackDocumentClick",e=>this.client.trackDocumentClick(e)),i(this,"trackToolbarSetup",()=>this.client.trackToolbarSetup()),this.client=e}}},225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r=n(1);class o{constructor(e,t){this.isAuthenticated=e,this.domain=t}init(e){if(this.makeConvertLegacy())return{convertedLegacy:!0};const t=(()=>{const e=this.get();return e&&e._tracker})(),n=this.build({tracker:t,preview:e});return this.set(n),{convertedLegacy:!1}}makeConvertLegacy(){const e=Object(i.getCookie)("io.prismic.preview");if(e){return!(()=>{try{return JSON.parse(e)}catch(e){return null}})()&&(this.convertLegacyCookie(e),!0)}}get(){const e=Object(i.getCookie)("io.prismic.preview");if(e){const t=(()=>{try{return JSON.parse(e)}catch(e){return null}})();return t||this.convertLegacyCookie(e)}}set(e){e?Object(i.setCookie)("io.prismic.preview",e):Object(i.demolishCookie)("io.prismic.preview")}build({preview:e,tracker:t}={preview:null,tracker:null}){const n=(()=>{if(e)return Object(i.isObject)(e)?e:{[this.domain]:{preview:e}}})(),r=(()=>{if(this.isAuthenticated&&t)return{_tracker:t||this.generateTracker()}})();if(n||r)return Object.assign({},r||{},n||{})}convertLegacyCookie(e){const t=this.build({tracker:this.generateTracker(),preview:e});return this.set(t),t}generateTracker(){return Object(r.p)(8)}upsertPreviewForDomain(e){const t=(()=>{const e=this.get();return e&&e._tracker})(),n=this.build({tracker:t,preview:e});this.set(n)}deletePreviewForDomain(){const e=this.build();this.set(e)}getRefForDomain(){const e=this.get();if(e)return e[this.domain]&&e[this.domain].preview}getTracker(){const e=this.get();if(e)return e._tracker}refreshTracker(){const e=this.getRefForDomain(),t=this.build({preview:e,tracker:this.generateTracker()});this.set(t)}}},226:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);class r{get(){return Object(i.getCookie)("io.prismic.experiment")}set(e,t){const n=[e,t].join(" ");Object(i.setCookie)("io.prismic.experiment",n)}delete(){Object(i.deleteCookie)("io.prismic.experiment")}}},231:function(e,t,n){"use strict";n.r(t);n(232);var i=n(45),r=n(0),o=n(17),s=n(221),a=n(223),c=n(224),u=n(225);if(!(window.self!==window.top)){const e=(...e)=>n(0).warn` ${String.raw(...e)} Please remove your current Prismic Toolbar installation and replace it with For complete documentation on setting up the Prismic Toolbar, please refer to https://prismic.io/docs/javascript/beyond-the-api/in-website-preview`;window.prismic=window.PrismicToolbar={endpoint:null,...window.prismic,version:"4.1.1",setup:(...t)=>{e`window.prismic.setup is deprecated.`,t.forEach(d)},startExperiment:e=>{const{Experiment:t}=n(233);new t(e)},setupEditButton:()=>{e`window.prismic.setupEditButton is deprecated.`}};let t=new Set;Object(r.dispatchToolbarEvent)(r.toolbarEvents.prismic);const l=new URL(Object(o.a)(document.currentScript.getAttribute("src"))).searchParams.get("repo");null!==l&&(t=new Set([...t,...l.split(",")]));const p=function(){try{return new URL(window.prismic.endpoint).hostname.replace(".cdn","")}catch(e){return window.prismic.endpoint}}();p&&(e`window.prismic.endpoint is deprecated.`,t.add(p)),t.size||e`Your are not connected to a repository.`;let h=null;async function d(t){const n=function(e){if(!e)return null;if(!/^(https?:\/\/)?[-a-zA-Z0-9.\/]+/.test(e))return null;e.includes(".")||(e=`${e}.prismic.io`);return e}(t);if(!n)return e` Failed to setup. Expected a repository identifier (example | example.prismic.io) but got ${t||"nothing"}`;if(h)return e` Already connected to a repository (${h}).`;h=n;const d=n.match(".test$")?window.location.protocol:"https:",l=await i.a.getClient(`${d}//${n}/prismic-toolbar/4.1.1/iframe.html`),p=await l.getPreviewState(),m=new u.a(p.auth,l.hostname),f=new s.a(l,m,p),w=p.auth&&new a.a(l,m),v=p.auth&&new c.a(l),{initialRef:g,upToDate:b,isActive:y}=await f.setup(),{convertedLegacy:k}=m.init(g);!k&&b?((y||p.auth)&&(await Object(r.script)("https://prismic.io/prismic-toolbar/4.1.1/toolbar.js"),new window.prismic.Toolbar({displayPreview:y,auth:p.auth,preview:f,prediction:w,analytics:v}),v&&v.trackToolbarSetup()),y||(m.getRefForDomain()&&m.deletePreviewForDomain(),await l.closePreviewSession())):Object(o.b)()}t.forEach(d)}},232:function(e,t){const n=window.navigator.userAgent.indexOf("MSIE ")>0,i=window.navigator.userAgent.indexOf("Trident/")>0;if(n||i)throw new Error("Prismic does not support Internet Explorer.")},233:function(e,t,n){"use strict";n.r(t),n.d(t,"Experiment",(function(){return s}));var i=n(0),r=n(226),o=n(17);class s{constructor(e){this.cookie=new r.a,this.expId=e,this.setup()}async setup(){Object(i.disabledCookies)()||(await Object(i.script)(`//www.google-analytics.com/cx/api.js?experiment=${this.expId}`),this.variation=window.cxApi.chooseVariation(),this.variation===window.cxApi.NOT_PARTICIPATING?this.end():this.start())}async start(){const e=this.cookie.get();this.cookie.set(this.expId,this.variation),this.cookie.get()!==e&&Object(o.b)()}end(){const e=this.cookie.get();this.cookie.delete(),this.cookie.get()!==e&&Object(o.b)()}}},3:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const i={SetupPort:"setup_port",Ready:"ready"},r={PreviewState:"preview_state",PredictionDocs:"prediction_docs",DevModeQueriesResults:"dev_mode_queries_results",UpdatePreview:"update_preview",ClosePreviewSession:"close_preview_session",SharePreview:"share_preview",TrackDocumentClick:"track_document_click",TrackToolbarSetup:"track_toolbar_setup"}},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(0);async function r(e){return await fetch(`/toolbar/trackDocumentClick?isMain=${Boolean(e)}`),null}async function o(){const e=Object(i.localStorage)("toolbarSetupTracked");if(Object(i.getCookie)("is-logged-in")&&!e.get())return await fetch("/toolbar/trackToolbarSetup"),e.set(!0),null}},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(46),r=n(47),o=n(48),s=n(3);const a={async get(e){const t=await a.documentBodyReady(),n=a.buildIframe(e),{hostname:o}=new URL(e);t.appendChild(n);const s=await Object(i.a)(n,"load",()=>n),c=await a.establishConnection(s);return new r.a(c,o)},buildIframe(e){const t=document.createElement("iframe");return t.src=e,t.style.cssText="display:none!important",t},documentBodyReady:()=>new Promise(async e=>{document.body?e(document.body):document.addEventListener("DOMContentLoaded",()=>e(document.body))}),establishConnection:e=>new Promise(t=>{const{port1:n,port2:i}=new MessageChannel;if(n.onmessage=e=>{if(e.data!==s.b.Ready)throw new Error(`Unexpected message received before iframe ready: ${e.data}`);t(n)},!e.contentWindow)throw Error("Unable to post a message the the toolbar iframe.");e.contentWindow.postMessage(s.b.SetupPort,"*",[i])})},c={initializationDelayed:!1,initializationDelayedTimeouts:[],initialized:!1,async setup(){c.initializationDelayed=!1,c.initializationDelayedTimeouts=[],c.initialized=!1,window.addEventListener("message",e=>c.initialisationMessageHandler(e))},initialisationMessageHandler(e){if(e.data===s.b.SetupPort){c.initialized=!0,window.removeEventListener("message",e=>c.initialisationMessageHandler(e));const t=e.ports[0];Object(o.a)(t),t.postMessage(s.b.Ready),c.initializationDelayedTimeouts.forEach(e=>clearTimeout(e)),c.initializationDelayed&&console.info("%cPrismic toolbar initialized successfully! This message only appears when unexpected messages were received by the iframe during Prismic toolbar setup.\n","color: #52b256;")}else c.initialized||c.initializationDelayedTimeouts.push(setTimeout(()=>{c.initializationDelayed=!0,console.warn(`Unexpected message received by the iframe during Prismic toolbar setup.\n\nExpected: ${s.b.SetupPort}\nReceived: ${"string"==typeof e.data?e.data:JSON.stringify(e.data)}\n\nThis can happen due to an extension tampering with iframes (Dashlane, MetaMask, etc.)\n\nAn explicit message following this one will let you know if the toolbar was successfully initialized.`)},500))}},u={getClient:a.get,setupIframe:c.setup}},46:function(e,t,n){"use strict";function i(e,t,n){return new Promise(i=>{e.addEventListener(t,e=>{const t=n(e);i(t)},{once:!0})})}n.d(t,"a",(function(){return i}))},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(3);class r{constructor(e,t){this.port=e,this.hostname=t,this.events=document.createElement("span"),e.onmessage=e=>{const{type:t,data:n}=e.data,i=new CustomEvent(t,{detail:n});this.events.dispatchEvent(i)}}_messageToPromise(e,t){return new Promise(n=>{this.events.addEventListener(e,e=>n(e.detail),{once:!0}),this.port.postMessage({type:e,data:t})})}getPreviewState(){return this._messageToPromise(i.a.PreviewState)}getPredictionDocs(e){return this._messageToPromise(i.a.PredictionDocs,e)}getDevModeQueriesResults(e){return this._messageToPromise(i.a.DevModeQueriesResults,e)}updatePreview(){return this._messageToPromise(i.a.UpdatePreview)}closePreviewSession(){return this._messageToPromise(i.a.ClosePreviewSession)}sharePreview(e,t){return this._messageToPromise(i.a.SharePreview,{location:e,blob:t})}trackDocumentClick(e){return this._messageToPromise(i.a.TrackDocumentClick,e)}trackToolbarSetup(){return this._messageToPromise(i.a.TrackToolbarSetup)}}},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(49),r=n(50),o=n(14),s=n(31),a=n(3);function c(e){e.onmessage=async t=>{const{type:n,data:c}=t.data,u=await(()=>{switch(n){case a.a.PreviewState:return async function(){return o.a.getState()}();case a.a.PredictionDocs:return async function(e){return i.a(e)}(c);case a.a.DevModeQueriesResults:return async function({tracker:e}){return r.a(e)}(c);case a.a.UpdatePreview:return async function(){return o.a.getCurrentRef()}();case a.a.ClosePreviewSession:return async function(){return o.a.close()}();case a.a.SharePreview:return async function({location:e,blob:t}){return o.a.share(e,t)}(c);case a.a.TrackDocumentClick:return async function({isMain:e}){return s.a(e)}(c);case a.a.TrackToolbarSetup:return async function(){return s.b()}();default:return new Promise(null)}})();e.postMessage({type:n,data:u})}}},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(0);async function r({url:e,ref:t,tracker:n,location:r}){const s=await Object(i.fetchy)({url:`/toolbar/predict?${Object(i.query)({url:e,ref:t,tracker:n})}`}).then(e=>e.documents.map(o));return new i.Sorter(s).max(e=>e.updated).min(e=>e.queryTotal).is(e=>e.uid&&r.hash.match(e.uid)).is(e=>e.uid&&r.search.match(e.uid)).is(e=>e.uid&&r.pathname.match(e.uid)).min(e=>e.urls.length).min(e=>e.weight).is(e=>e.singleton).is(e=>e.uid&&r.hash.match(e.uid)&&!e.singleton).is(e=>e.uid&&r.search.match(e.uid)&&!e.singleton).is(e=>e.uid&&r.pathname.match(e.uid)&&!e.singleton).compute()}function o(e){const t=e.editorUrl.includes("c=unclassified")?"draft":e.editorUrl.includes("c=release")?"release":e.editorUrl.includes("c=variation")?"experiment":e.editorUrl.includes("c=published")?"live":null;return{...e,editorUrl:window.location.origin+e.editorUrl,status:t}}},50:function(e,t,n){"use strict";function i(e){return fetch(`/toolbar/devMode?tracker=${e}`).then(e=>200===e.status?e.json():[])}n.d(t,"a",(function(){return i}))},8:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=n(9),r=n.n(i);function o(e){return r.a.get(e)}function s(e,t,n=1/0){return r.a.set(e,t,{path:"/",expires:n,sameSite:"lax"})}function a(e){r.a.remove(e,{path:"/"})}function c(e,t){const n=window.location.hostname.split("."),i=window.location.pathname.slice(1).split("/"),o=[].concat(n.map((e,t)=>`${n.slice(t).join(".")}`)).concat(n.map((e,t)=>`.${n.slice(t).join(".")}`)).concat(null),s=[].concat(i.map((e,t)=>`/${i.slice(0,t+1).join("/")}`)).concat(i.map((e,t)=>`/${i.slice(0,t+1).join("/")}/`)).concat("/").concat(null);o.forEach(n=>s.forEach(i=>r.a.remove(e,{...t,domain:n,path:i})))}},9:function(e,t,n){var i,r; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(o){if(void 0===(r="function"==typeof(i=o)?i.call(t,n,t,e):i)||(e.exports=r),!0,e.exports=o(),!!0){var s=window.Cookies,a=window.Cookies=o();a.noConflict=function(){return window.Cookies=s,a}}}((function(){function e(){for(var e=0,t={};e