!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=9)}({9:function(e,t,n){"use strict";async function r(e,t){const{nonce:n,ajaxUrl:r}=window.IssetVideoPublisherAjax;let o=new FormData;if(o.set("_ajax_nonce",n),o.set("action",e),t)for(const e of Object.keys(t))o.set(e,t[e]);let i=await fetch(r,{method:"POST",body:o});return new Promise((e,t)=>{i.json().then(t=>{e(t)}).catch(e=>{t(e)})})}async function o(e,t={},n="GET",r={}){const{archiveUrl:o,archiveToken:i}=window.IssetVideoArchiveAjax;return c(`${o}${e}?${a(t)}`,i,n,r)}async function i(e,t={},n="GET",r={},o=null){const{publisherUrl:i,publisherToken:u}=window.IssetVideoArchiveAjax;return c(`${i}${e}?${a(t)}`,u,n,r,o)}async function c(e,t,n="GET",r={},o=null){let i={};if(o instanceof File){const e=new FormData;e.append("file",o),Object.keys(r).forEach(t=>e.append(t,data[t])),i={method:n,headers:{Accept:"application/json","x-token-auth":t},body:e}}else i={method:n,headers:{Accept:"application/json","Content-Type":"application/json","x-token-auth":t}},Object.keys(r).length>0&&(i.body=JSON.stringify(r));let c=await fetch(e,i);return new Promise((e,t)=>{204===c.status&&e({}),c.json().then(t=>{e(t)}).catch(e=>{t(e)})})}function a(e){let t="";const n={};Object.keys(e).forEach(r=>{Array.isArray(e[r])?e[r].forEach(e=>t=`${t}&${r}[]=${e}`):n[r]=e[r]});return`${new URLSearchParams(n).toString()}${t}`}function u(){const{publisherUrl:e}=window.IssetVideoArchiveAjax;return e}n.r(t),n.d(t,"wpAjax",(function(){return r})),n.d(t,"archiveAjax",(function(){return o})),n.d(t,"publisherAjax",(function(){return i})),n.d(t,"getPublisherUrl",(function(){return u}))}});