slice-machine-ui 2.10.5 → 2.10.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/_next/static/chunks/pages/{_app-3f803fc8588552c9.js → _app-7221829088368db8.js} +2 -2
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +5 -4
- package/src/features/sync/actions/trackPushChangesSuccess.ts +88 -0
- /package/out/_next/static/{-W9HS13l1a39Ytz6Gj69n → 7tRjvQTUh2QhvTN2l9Bik}/_buildManifest.js +0 -0
- /package/out/_next/static/{-W9HS13l1a39Ytz6Gj69n → 7tRjvQTUh2QhvTN2l9Bik}/_ssgManifest.js +0 -0
|
@@ -547,7 +547,7 @@ Error:`,t)}}function y(e,t=!1){return n=>{if(!n||a===n||function(e){if("keypress
|
|
|
547
547
|
*
|
|
548
548
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
549
549
|
* @license MIT
|
|
550
|
-
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|m(e,t),o=u(n),i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);var i=function(e){if(l.isBuffer(e)){var t,n=0|h(e.length),o=u(n);return 0===o.length||e.copy(o,0,0,n),o}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?u(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),u(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),n=u(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function p(e,t,n){var o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),l.prototype),o}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(i)return o?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i,a,u=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=t;a<n;++a)i+=R[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return function(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}(this,t,n);case"latin1":case"binary":return function(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}(this,t,n);case"base64":return i=t,a=n,0===i&&a===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var o=e.slice(t,n),i="",a=0;a<o.length-1;a+=2)i+=String.fromCharCode(o[a]+256*o[a+1]);return i}(this,t,n);default:if(u)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),u=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,i){var a;if(0===e.length)return -1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,o,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,n,o,i){var a,u=1,l=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;u=2,l/=2,s/=2,n/=2}function c(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(i){var d=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===s)return d*u}else -1!==d&&(a-=a-d),d=-1}else for(n+s>l&&(n=l-s),a=n;a>=0;a--){for(var f=!0,p=0;p<s;p++)if(c(e,a+p)!==c(t,p)){f=!1;break}if(f)return a}return -1}function A(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var a,u,l,s,c=e[i],d=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(d=c);break;case 2:(192&(a=e[i+1]))==128&&(s=(31&c)<<6|63&a)>127&&(d=s);break;case 3:a=e[i+1],u=e[i+2],(192&a)==128&&(192&u)==128&&(s=(15&c)<<12|(63&a)<<6|63&u)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:a=e[i+1],u=e[i+2],l=e[i+3],(192&a)==128&&(192&u)==128&&(192&l)==128&&(s=(15&c)<<18|(63&a)<<12|(63&u)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,f=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",o=0;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,o,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+o>e.length)throw RangeError("Index out of range")}function _(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,o,a){return t=+t,n>>>=0,a||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function C(e,t,n,o,a){return t=+t,n>>>=0,a||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,o,52,8),n+8}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?u(e):void 0!==t?"string"==typeof n?u(e).fill(t,n):u(e).fill(t):u(e)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(I(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,o=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array))i+a.length>o.length?l.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(l.isBuffer(a))a.copy(o,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?A(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(I(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,u=n-t,s=Math.min(a,u),c=this.slice(o,i),d=e.slice(t,n),f=0;f<s;++f)if(c[f]!==d[f]){a=c[f],u=d[f];break}return a<u?-1:u<a?1:0},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,u,l,s,c,d,f,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var h=!1;;)switch(o){case"hex":return function(e,t,n,o){n=Number(n)||0;var i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;var a=t.length;o>a/2&&(o=a/2);for(var u=0;u<o;++u){var l=parseInt(t.substr(2*u,2),16);if(l!=l)break;e[n+u]=l}return u}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,O(E(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return u=t,l=n,O(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,u,l);case"base64":return s=t,c=n,O(T(e),this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,f=n,O(function(e,t){for(var n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)o=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(o);return i}(e,this.length-d),this,d,f);default:if(h)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),h=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e],i=1,a=0;++a<t&&(i*=256);)o+=this[e+a]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e],i=1,a=0;++a<t&&(i*=256);)o+=this[e+a]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=t,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=1,u=0;for(this[t]=255&e;++u<n&&(a*=256);)this[t+u]=e/a&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=n-1,u=1;for(this[t+a]=255&e;--a>=0&&(u*=256);)this[t+a]=e/u&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,u=1,l=0;for(this[t]=255&e;++a<n&&(u*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/u>>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,u=1,l=0;for(this[t+a]=255&e;--a>=0&&(u*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/u>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===o&&a<128||"latin1"===o)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var u=l.isBuffer(e)?e:l.from(e,o),s=u.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=u[i%s]}return this};var k=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var n,o=e.length,i=null,a=[],u=0;u<o;++u){if((n=e.charCodeAt(u))>55295&&n<57344){if(!i){if(n>56319||u+1===o){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function T(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,o){for(var i=0;i<o&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var o=16*n,i=0;i<16;++i)t[o+i]=e[n]+e[i];return t}()},44005:function(e,t,n){var o,i=n(48834).lW,a=n(34406);o=function(e,t,n,o,u,l,s,c,d,f,p,h,m,g){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,(function(t){return e[t]}).bind(null,i));return o},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="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",function(){return nT}),n.d(t,"Cloudinary",function(){return nL}),n.d(t,"Condition",function(){return ts}),n.d(t,"Configuration",function(){return tp}),n.d(t,"crc32",function(){return b}),n.d(t,"Expression",function(){return ti}),n.d(t,"FetchLayer",function(){return tk}),n.d(t,"HtmlTag",function(){return t3}),n.d(t,"ImageTag",function(){return na}),n.d(t,"Layer",function(){return th}),n.d(t,"PictureTag",function(){return ng}),n.d(t,"SubtitlesLayer",function(){return tw}),n.d(t,"TextLayer",function(){return tv}),n.d(t,"Transformation",function(){return t2}),n.d(t,"utf8_encode",function(){return v}),n.d(t,"Util",function(){return y}),n.d(t,"VideoTag",function(){return nS});var o,u,l,s,c,d,f,p,h,m,g={};n.r(g),n.d(g,"VERSION",function(){return ei}),n.d(g,"CF_SHARED_CDN",function(){return ea}),n.d(g,"OLD_AKAMAI_SHARED_CDN",function(){return eu}),n.d(g,"AKAMAI_SHARED_CDN",function(){return el}),n.d(g,"SHARED_CDN",function(){return es}),n.d(g,"DEFAULT_TIMEOUT_MS",function(){return ec}),n.d(g,"DEFAULT_POSTER_OPTIONS",function(){return ed}),n.d(g,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return ef}),n.d(g,"SEO_TYPES",function(){return ep}),n.d(g,"DEFAULT_IMAGE_PARAMS",function(){return eh}),n.d(g,"DEFAULT_VIDEO_PARAMS",function(){return em}),n.d(g,"DEFAULT_VIDEO_SOURCES",function(){return eg}),n.d(g,"DEFAULT_EXTERNAL_LIBRARIES",function(){return ey}),n.d(g,"PLACEHOLDER_IMAGE_MODES",function(){return ev}),n.d(g,"ACCESSIBILITY_MODES",function(){return eb}),n.d(g,"URL_KEYS",function(){return eA});var y={};n.r(y),n.d(y,"getSDKAnalyticsSignature",function(){return C}),n.d(y,"getAnalyticsOptions",function(){return k}),n.d(y,"assign",function(){return T.a}),n.d(y,"cloneDeep",function(){return I.a}),n.d(y,"compact",function(){return M.a}),n.d(y,"difference",function(){return D.a}),n.d(y,"functions",function(){return F.a}),n.d(y,"identity",function(){return N.a}),n.d(y,"includes",function(){return B.a}),n.d(y,"isArray",function(){return z.a}),n.d(y,"isPlainObject",function(){return K.a}),n.d(y,"isString",function(){return H.a}),n.d(y,"merge",function(){return Z.a}),n.d(y,"contains",function(){return B.a}),n.d(y,"isIntersectionObserverSupported",function(){return en}),n.d(y,"isNativeLazyLoadSupported",function(){return er}),n.d(y,"detectIntersection",function(){return eo}),n.d(y,"omit",function(){return ew}),n.d(y,"allStrings",function(){return e_}),n.d(y,"without",function(){return eS}),n.d(y,"isNumberLike",function(){return eC}),n.d(y,"smartEscape",function(){return ek}),n.d(y,"defaults",function(){return eE}),n.d(y,"objectProto",function(){return eT}),n.d(y,"objToString",function(){return eO}),n.d(y,"isObject",function(){return eI}),n.d(y,"funcTag",function(){return eR}),n.d(y,"reWords",function(){return ej}),n.d(y,"camelCase",function(){return eD}),n.d(y,"snakeCase",function(){return eP}),n.d(y,"convertKeys",function(){return eF}),n.d(y,"withCamelCaseKeys",function(){return eL}),n.d(y,"withSnakeCaseKeys",function(){return eN}),n.d(y,"base64Encode",function(){return eU}),n.d(y,"base64EncodeURL",function(){return eB}),n.d(y,"extractUrlParams",function(){return eW}),n.d(y,"patchFetchFormat",function(){return ez}),n.d(y,"optionConsume",function(){return eV}),n.d(y,"isEmpty",function(){return eK}),n.d(y,"isAndroid",function(){return eH}),n.d(y,"isEdge",function(){return eq}),n.d(y,"isChrome",function(){return eZ}),n.d(y,"isSafari",function(){return eG}),n.d(y,"isElement",function(){return Y.a}),n.d(y,"isFunction",function(){return J.a}),n.d(y,"trim",function(){return ee.a}),n.d(y,"getData",function(){return eY}),n.d(y,"setData",function(){return eQ}),n.d(y,"getAttribute",function(){return eJ}),n.d(y,"setAttribute",function(){return eX}),n.d(y,"removeAttribute",function(){return e0}),n.d(y,"setAttributes",function(){return e1}),n.d(y,"hasClass",function(){return e2}),n.d(y,"addClass",function(){return e5}),n.d(y,"getStyles",function(){return e3}),n.d(y,"cssExpand",function(){return e4}),n.d(y,"domStyle",function(){return e6}),n.d(y,"curCSS",function(){return e8}),n.d(y,"cssValue",function(){return e9}),n.d(y,"augmentWidthOrHeight",function(){return e7}),n.d(y,"getWidthOrHeight",function(){return tt}),n.d(y,"width",function(){return tn});var v=function(e){var t,n,o,i,a,u,l,s;if(null==e)return"";for(u=e+"",s="",a=void 0,o=void 0,l=0,a=o=0,l=u.length,i=0;i<l;)t=u.charCodeAt(i),n=null,t<128?o++:n=t>127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(o>a&&(s+=u.slice(a,o)),s+=n,a=o=i+1),i++;return o>a&&(s+=u.slice(a,l)),s},b=function(e){var t,n,o,i,a,u;for(e=v(e),i="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",a=0,u=0,t=-1,n=0,o=e.length;n<o;)u=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*u,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function A(e,t,n){return(t>>=0,n=String(void 0!==n?n:" "),e.length>t)?String(e):((t-=e.length)>n.length&&(n+=function(e,t){for(var n="";t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var w=0,_={};function S(e){var t="",n=e.split(".").length,o=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(function(e){return A(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=A(o,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(function(e){t+=_[e]}),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t,n=(t=e.techVersion.split("."),"".concat(t[0],".").concat(t[1])),o=S(e.sdkSemver),i=S(n),a=e.feature,u=e.sdkCode;return"".concat("A").concat(u).concat(o).concat(i).concat(a)}catch(e){return"E"}}function k(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}((function(e){if(Array.isArray(e))return x(e)})(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return x(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(e){var t=w.toString(2);_[t=A(t,6,"0")]=e,w++});var E=n("lodash/assign"),T=n.n(E),O=n("lodash/cloneDeep"),I=n.n(O),R=n("lodash/compact"),M=n.n(R),j=n("lodash/difference"),D=n.n(j),P=n("lodash/functions"),F=n.n(P),L=n("lodash/identity"),N=n.n(L),U=n("lodash/includes"),B=n.n(U),W=n("lodash/isArray"),z=n.n(W),V=n("lodash/isPlainObject"),K=n.n(V),$=n("lodash/isString"),H=n.n($),q=n("lodash/merge"),Z=n.n(q),G=n("lodash/isElement"),Y=n.n(G),Q=n("lodash/isFunction"),J=n.n(Q),X=n("lodash/trim"),ee=n.n(X);function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(){return("undefined"==typeof window?"undefined":et(window))==="object"&&window.IntersectionObserver}function er(){return("undefined"==typeof HTMLImageElement?"undefined":et(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function eo(e,t){try{if(er()||!en()){t();return}var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t(),n.unobserve(e.target))})},{threshold:[0,.01]});n.observe(e)}catch(e){t()}}var ei="2.5.0",ea="d3jpl91pxevbkh.cloudfront.net",eu="cloudinary-a.akamaihd.net",el="res.cloudinary.com",es=el,ec=1e4,ed={format:"jpg",resource_type:"video"},ef=["webm","mp4","ogv"],ep={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},eh={resource_type:"image",transformation:[],type:"upload"},em={fallback_content:"",resource_type:"video",source_transformation:{},source_types:ef,transformation:[],type:"upload"},eg=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],ey={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ev={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},eb={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eA=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function ex(e){return(ex="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ew(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!B()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var e_=function(e){return e.length&&e.every(H.a)},eS=function(e,t){return e.filter(function(e){return e!==t})},eC=function(e){return null!=e&&!isNaN(parseFloat(e))},ek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,function(e){return e.split("").map(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}).join("")})},eE=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(function(e,t){var n,o;for(n in t)o=t[n],void 0===e[n]&&(e[n]=o);return e},e)},eT=Object.prototype,eO=eT.toString,eI=function(e){var t;return t=ex(e),!!e&&("object"===t||"function"===t)},eR="[object Function]",eM=function(e){return eI(e)&&eO.call(e)===eR},ej=RegExp((l="[A-Z]")+"+(?="+l+(u="[a-z]+")+")|"+l+"?"+u+"|"+l+"+|[0-9]+","g"),eD=function(e){var t=e.match(ej);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eP=function(e){var t=e.match(ej);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eF=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eK(i)||(n[i]=o);return n},eL=function(e){return eF(e,eD)},eN=function(e){return eF(e,eP)},eU="undefined"!=typeof btoa&&eM(btoa)?btoa:void 0!==i&&eM(i)?function(e){return e instanceof i||(e=new i.from(String(e),"binary")),e.toString("base64")}:function(e){throw Error("No base64 encoding function found")},eB=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return eU(e)};function eW(e){return eA.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function ez(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eV(e,"format"))}function eV(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eK(e){if(null==e)return!0;if("number"==typeof e.length)return 0===e.length;if("number"==typeof e.size)return 0===e.size;if("object"==ex(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function e$(){return navigator&&navigator.userAgent||""}function eH(){var e=e$();return/Android/i.test(e)}function eq(){var e=e$();return/Edg/i.test(e)}function eZ(){var e=e$();return!eq()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eG(){var e=e$();return/Safari/i.test(e)&&!eZ()&&!eH()&&!eq()}var eY=function(e,t){switch(!1){case null!=e:return;case!J()(e.getAttribute):return e.getAttribute("data-".concat(t));case!J()(e.getAttr):return e.getAttr("data-".concat(t));case!J()(e.data):return e.data(t);case!(J()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&Y()(e)):return jQuery(e).data(t)}},eQ=function(e,t,n){switch(!1){case null!=e:return;case!J()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!J()(e.setAttr):return e.setAttr("data-".concat(t),n);case!J()(e.data):return e.data(t,n);case!(J()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&Y()(e)):return jQuery(e).data(t,n)}},eJ=function(e,t){switch(!1){case null!=e:return;case!J()(e.getAttribute):return e.getAttribute(t);case!J()(e.attr):return e.attr(t);case!J()(e.getAttr):return e.getAttr(t)}},eX=function(e,t,n){switch(!1){case null!=e:return;case!J()(e.setAttribute):return e.setAttribute(t,n);case!J()(e.attr):return e.attr(t,n);case!J()(e.setAttr):return e.setAttr(t,n)}},e0=function(e,t){switch(!1){case null!=e:return;case!J()(e.removeAttribute):return e.removeAttribute(t);default:return eX(e,void 0)}},e1=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(eX(e,n,i)):o.push(e0(e,n));return o},e2=function(e,t){if(Y()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e5=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=ee()("".concat(e.className," ").concat(t))},e3=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e4=["Top","Right","Bottom","Left"];s=function(e,t){var n,o;return n=9===e.nodeType?e.documentElement:e,e===(o=t&&t.parentNode)||!!(o&&1===o.nodeType&&n.contains(o))};var e6=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},e8=function(e,t,n){var o,i,a,u,l,c;return(u=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e3(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||s(e.ownerDocument,e)||(a=e6(e,t)),te.test(a)&&u.test(t)&&(c=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=c,l.minWidth=i,l.maxWidth=o)),void 0!==a)?a+"":a},e9=function(e,t,n,o){var i;return(i=e8(e,t,o),n)?parseFloat(i):i},e7=function(e,t,n,o,i){var a,u,l,s,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,u=(s="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<u;a++)l=s[a],"margin"===n&&(c+=e9(e,n+l,!0,i)),o?("content"===n&&(c-=e9(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=e9(e,"border".concat(l,"Width"),!0,i))):(c+=e9(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=e9(e,"border".concat(l,"Width"),!0,i)));return c},te=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),tt=function(e,t,n){var o,i,a,u;if(u=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e3(e),o="border-box"===e9(e,"boxSizing",!1,i),a<=0||null==a){if(((a=e8(e,t,i))<0||null==a)&&(a=e.style[t]),te.test(a))return a;u=o&&a===e.style[t],a=parseFloat(a)||0}return a+e7(e,t,n||(o?"border":"content"),u,i)},tn=function(e){return tt(e,"width","content")};function tr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var to=function(){var e,t;function n(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.expressions=[],null!=e&&this.expressions.push(n.normalize(e))}return e=[{key:"serialize",value:function(){return n.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,o){return null!=n.OPERATORS[t]&&(t=n.OPERATORS[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(o)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],t=[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,function(e){return n.OPERATORS[e]});var o="("+Object.keys(n.PREDEFINED_VARS).map(function(e){return":".concat(e,"|").concat(e)}).join("|")+")",i=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(o),"g");return(e=e.replace(i,function(e){return n.PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],e&&tr(n.prototype,e),t&&tr(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();to.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},to.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},to.BOUNDRY="[ _]+";var ti=to;function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(e,t){return(tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tl(e){return(tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ts=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tu(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tl(i);return e=t?Reflect.construct(n,arguments,tl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return n=[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ti);function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var td=function(){var e;function t(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.configuration=null==e?{}:I()(e),eE(this.configuration,tf)}return e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return T()(this.configuration,I()(e)),this}},{key:"fromDocument",value:function(){var e,t,n,o;if(o="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=o.length;t<n;t++)e=o[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,o=this;return null!=a&&a.env&&a.env.CLOUDINARY_URL&&(e=a.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("="))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),2!==a.length);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tc(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tc(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];null==a&&(a=!0),o.configuration[i]=a}))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case!H()(e):return this.get(e);case!K()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return I()(this.configuration)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),tf={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"};td.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var tp=td,th=function(){var e;function t(e){var n=this;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach(function(t){var o;return n.options[t]=null!=(o=e[t])?o:e[eP(t)]})}return e=[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e;if(e=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),M()(e).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tm(e){return(tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tg(e,t){return(tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ty(e){return(ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=ty(i);return e=t?Reflect.construct(n,arguments,ty(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),n=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"],null!=e&&n.forEach(function(n){var o;return t.options[n]=null!=(o=e[n])?o:e[eP(n)]}),t.options.resourceType="text",t}return n=[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"textStyle",value:function(e){return this.options.textStyle=e,this}},{key:"toString",value:function(){var e,t,n,o,i,a,u,l,s,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eK(o),n=!eK(l),t&&n||!t&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,u=0,c=ek(this.options.text,/[,\/]/g),s="";a=i.exec(c);)s+=ek(c.slice(u,a.index))+a[0],u=a.index+a[0].length;s+=ek(c.slice(u))}return e=[this.options.resourceType,l,o,s],M()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eK(this.options.textStyle))return this.options.textStyle;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),eK(this.options.letterSpacing)&&!eC(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eK(this.options.lineSpacing)&&!eC(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eK(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eK(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eK(M()(e))){if(eK(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eK(this.options.fontSize)&&!eC(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=M()(e).join("_")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(th);function tb(e){return(tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tA(e,t){return(tA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tx(e){return(tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tA(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tx(o);return e=t?Reflect.construct(n,arguments,tx(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tb(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).options.resourceType="subtitles",t}return Object.defineProperty(o,"prototype",{writable:!1}),o}(tv);function t_(e){return(t_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tS(e,t){return(tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tC(e){return(tC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tC(i);return e=t?Reflect.construct(n,arguments,tC(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===t_(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),H()(e)?t.options.url=e:(null!=e?e.url:void 0)&&(t.options.url=e.url),t}return n=[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat(eB(this.options.url))}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(th);function tE(e){return(tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tT(){return(tT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tM(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function tO(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tI(e,t)}function tI(e,t){return(tI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=tM(e);return n=t?Reflect.construct(o,arguments,tM(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tE(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function tM(e){return(tM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tj(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tD(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tP(e,t,n){return t&&tD(e.prototype,t),n&&tD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tF=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.a;tj(this,e),this.name=t,this.shortName=n,this.process=o}return tP(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=z()(e)||K()(e)||H()(e)?!eK(e):null!=e,null!=this.shortName&&t)?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:z()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}]),e}(),tL=function(e){tO(n,e);var t=tR(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tj(this,n),(i=t.call(this,e,o,u)).sep=a,i}return tP(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eK(e))return"";if(H()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return J()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return z()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||z()(e)?tT(tM(n.prototype),"set",this).call(this,e):tT(tM(n.prototype),"set",this).call(this,[e])}}]),n}(tF),tN=function(e){tO(n,e);var t=tR(n);function n(e){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tj(this,n),(o=t.call(this,e,i,u)).sep=a,o}return tP(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eK(n))return t;if(e_(n)){var o=n.join(this.sep);eK(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return H()(t)&&!eK(t)?"".concat(e.shortName,"_").concat(t):J()(t.serialize)?t.serialize():K()(t)&&!eK(t)?new t2(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,z()(this.origValue))?tT(tM(n.prototype),"set",this).call(this,this.origValue):tT(tM(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tF),tU=function(e){tO(n,e);var t=tR(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tj(this,n),t.call(this,e,o,i)}return tP(n,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return ti.normalize(e)}}]),n}(tF),tB=function(e){tO(n,e);var t=tR(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.a;return tj(this,n),t.call(this,e,o,i)}return tP(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tF),tW=function(e){tO(n,e);var t=tR(n);function n(){return tj(this,n),t.apply(this,arguments)}return tP(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof th)e=this.origValue;else if(K()(this.origValue)){var e,t=eL(this.origValue);e="text"===t.resourceType||null!=t.text?new tv(t):"subtitles"===t.resourceType?new tw(t):"fetch"===t.resourceType||null!=t.url?new tk(t):new th(t)}else e=H()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tk(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tv(e).textStyleIdentifier()}}]),n}(tF);function tz(e){return(tz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tV(e,t){return(tV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tK(e){return(tK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tH(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tq(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tZ(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tG(e,t,n){return t&&tZ(e.prototype,t),n&&tZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tY(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}),e}var tQ=function(){function e(t){var n,o;tq(this,e),n=void 0,o={},this.toOptions=function(e){var t={};if(null==e&&(e=!0),Object.keys(o).forEach(function(e){return t[e]=o[e].origValue}),tY(t,this.otherOptions),e&&!eK(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tY(t={},this.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&this.fromOptions("function"==typeof e.toOptions?e.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(e,t,n,i,a){return null==a&&(a=J()(i)?i:N.a),o[t]=new tF(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=tX(arguments),o[t]=new tB(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=tX(arguments),o[t]=new tU(t,n,a).set(e),this},this.arrayParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=tX(arguments),o[t]=new tL(t,n,i,a).set(e),this},this.transformationParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=tX(arguments),o[t]=new tN(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tW(t,n).set(e),this},this.getValue=function(e){var t=o[e]&&o[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return o[e]},this.remove=function(e){var t;switch(!1){case null==o[e]:return t=o[e],delete o[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return(function(){var t;for(e in t=[],o)null!=e&&t.push(e.match(tJ)?e:eP(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),K()(e[t])&&(e[t]=I()(e[t]));return eK(this.chained)||((n=this.chained.map(function(e){return e.toPlainObject()})).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(o).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return o={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return tG(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(H()(t)||z()(t))&&(t={transformation:t}),(t=I()(t,function(t){if(t instanceof e||t instanceof Layer)return new t.clone})).if&&(this.set("if",t.if),delete t.if),t){var o=t[n];null!=o&&(n.match(tJ)?"$attr"!==n&&this.set("variable",n,o):this.set(n,o))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach(function(e){return n.set(e,t.get(e).origValue)}),this}},{key:"set",value:function(e){var t;t=eD(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return B()(t1.methods,t)?this[t].apply(this,o):this.otherOptions[e]=o[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,o,i,a,u,l,s,c,d,f,p,h,m,g,y;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),h=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,g=function(e){var t,n,o,i,a;if(!z()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var u=t$(e[t],2);o=u[0],a=u[1],i.push("".concat(o,"_").concat(ti.normalize(a)))}return i}(null!=(u=this.get("variables"))?u.value():void 0),o=D()(o,["transformation","if","variables"]),y=[],f=[],n=o.length;t<n;t++)(d=o[t]).match(tJ)?y.push(d+"_"+ti.normalize(null!=(l=this.get(d))?l.value():void 0)):f.push(null!=(s=this.get(d))?s.serialize():void 0);switch(!1){case!H()(h):f.push(h);break;case!z()(h):c=c.concat(h)}return f=function(){var e,t,n;for(e=0,n=[],t=f.length;e<t;e++)m=f[e],(z()(m)&&!eK(m)||!z()(m)&&m)&&n.push(m);return n}(),f=y.sort().concat(g).concat(f.sort()),"if_end"===e?f.push(e):eK(e)||f.unshift(e),eK(p=M()(f).join(this.param_separator))||c.push(p),M()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,u,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],u=eP(e),B()(t1.PARAM_NAMES,u)||B()(eA,u)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eD(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||B()(["fit","limit","lfill"],this.getValue("crop")))&&(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==t.width&&(t.width=a),parseFloat(e)>=1&&null==t.height&&(t.height=e)),t}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return t1.methods}},{key:"isValidParamName",value:function(e){return t1.methods.indexOf(eD(e))>=0}}]),e}(),tJ=/^\$[a-zA-Z0-9]+$/;function tX(e){var t;return(t=null!=e?e[e.length-1]:void 0,J()(t))?t:void 0}function t0(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}tQ.prototype.trans_separator="/",tQ.prototype.param_separator=",";var t1=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tV(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tK(o);return e=t?Reflect.construct(n,arguments,tK(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tz(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){return tq(this,o),n.call(this,e)}return tG(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",ti.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",ti.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tF.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",function(e){return K()(e)?(e=T()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tF.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tF.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",function(){return t0(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t0(e))?"fn_pre:".concat(e):e})}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":ti.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",ti.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",function(e){return H()(e)?e:z()(e)?e.join("-"):e})}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ti.normalize(e):null})}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,t,n,i,a,u,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(l){case"else":return this.chain(),this.param(l,"if","if");case"end":for(this.chain(),e=n=i=this.chained.length-1;n>=0&&"end"!==(t=this.chained[e].getValue("if"))&&(null==t||(a=o.new().if(t),this.chained[e].remove("if"),u=this.chained[e],this.chained[e]=o.new().transformation([a,u]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return ts.new().setParent(this);default:return this.param(l,"if","if",function(e){return ts.new(e).toString()})}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,o=t$(J()(null!=e?e.split:void 0)?e.split(".."):z()(e)?e:[null,null],2);if(n=o[0],t=o[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",ti.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",ti.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",ti.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(J()(null!=e?e.split:void 0)){var o=t$(e.split("x"),2);return n=o[0],t=o[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",tF.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ti.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",ti.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",ti.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",ti.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(tQ);t1.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],t1.PARAM_NAMES=t1.methods.map(eP).concat(tp.CONFIG_PARAMS);var t2=t1;function t5(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t3=function(){var e,t;function n(e,t,o){var i;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.name=e,this.publicId=t,null==o&&(K()(t)?(o=t,this.publicId=void 0):o={}),(i=new t2(o)).setParent(this),this.transformation=function(){return i}}return e=[{key:"htmlAttrs",value:function(e){var t,n;return(function(){var o,i;for(t in o=[],e)i=e[t],(n=H()(i)?i.replace('"',""").replace("'","'"):i)&&o.push(n?!0===n?t:"".concat(t,'="').concat(n,'"'):void 0);return o})().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(e){return this.transformation().getValue(e)}},{key:"attributes",value:function(){var e=this.transformation().toHtmlAttributes();return Object.keys(e).forEach(function(t){K()(e[t])&&delete e[t]}),e.attributes&&(Z()(e,e.attributes),delete e.attributes),e}},{key:"setAttr",value:function(e,t){return this.transformation().set("html_".concat(e),t),this}},{key:"getAttr",value:function(e){return this.attributes()["html_".concat(e)]||this.attributes()[e]}},{key:"removeAttr",value:function(e){var t;return null!=(t=this.transformation().remove("html_".concat(e)))?t:this.transformation().remove(e)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var e="<"+this.name,t=this.htmlAttrs(this.attributes());return t&&t.length>0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,o;if(!J()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())o=n[t],e.setAttribute(t,o);return e}}],t=[{key:"new",value:function(e,t,n){return new this(e,t,n)}},{key:"isResponsive",value:function(e,t){var n;return n=eY(e,"src-cache")||eY(e,"src"),e2(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t5(n.prototype,e),t&&t5(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t4=["placeholder","accessibility"];function t6(e){return!!e&&!!e.match(/^https?:\//)}function t8(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function t9(e){var t,n,o,i,a,u,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=s)instanceof t2&&(t=t.toOptions()),"fetch"===(t=eE({},t,c,eh)).type&&(t.fetch_format=t.fetch_format||t.format),s=t,n=e,o=s.type,e=t6(n)||"fetch"!==o?n:(i=document.location.protocol+"//"+document.location.host,"?"===n[0]?i+=document.location.pathname:"/"!==n[0]&&(i+=document.location.pathname.replace(/\/[^\/]*$/,"/")),i+n);var d=(u=(a=s).cloud_name,l=a.url_suffix,u?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var f=function(e,t){if(t6(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,u,l,s,c,d,f=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t6(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),p=(u=(a=t||{}).placeholder,l=a.accessibility,s=new t2(function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(a,t4)),l&&eb[l]&&s.chain().effect(eb[l]),u&&("predominant-color"===u&&s.getValue("width")&&s.getValue("height")&&(u+="-pixel"),(ev[u]||ev.blur).forEach(function(e){return s.chain().transformation(e)})),s.serialize()),h=function(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",o="",i="res",a=".cloudinary.com",u="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",u=""),t.cdn_subdomain&&(i="res-"+(b(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==eu&&t.secure_distribution!==es&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(b(e)%5+1)+".":"",a=t.cname),[n,o,i,a,u].join("")}(e,t),m=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),g=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,u=e.use_root_path,l=e.shorten,s=void 0===n?"image":n;if(K()(s)&&(s=(t=s).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(s=ep["".concat(s,"/").concat(i)],i=null,null==s))throw Error("URL Suffix only supported for ".concat(Object.keys(ep).join(", ")));if(u){if("image"===s&&"upload"===i||"images"===s)s=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===s&&"upload"===i&&(s="iu",i=null),[s,i].join("/")}(t);return e=function(e,t){if(t6(e))e=t8(e);else{try{e=decodeURIComponent(e)}catch(e){}e=t8(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),M()([h,g,m,p,f,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,s);if(s.urlAnalytics){var p=C(k(s)),h="?";f.indexOf("?")>=0&&(h="&"),f="".concat(f).concat(h,"_a=").concat(p)}if(s.auth_token){var m=f.indexOf("?")>=0?"&":"?";f="".concat(f).concat(m,"__cld_token__=").concat(s.auth_token)}return f}function t7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=eK;function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={};if(ne(n))return i;var a=!t.sizes&&!0===n.sizes,u=!t.srcset;if(u||a){var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return arguments.length>2&&void 0!==arguments[2]&&arguments[2],function(e){var t,n=e.breakpoints||[];if(n.length)return n;var o=function(e){if(Array.isArray(e))return e}(t=[e.min_width,e.max_width,e.max_images].map(Number))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),3!==a.length);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return t7(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t7(e,3)}}(t,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],u=o[2];if([i,a,u].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(i>a)throw"min_width must be less than max_width";if(u<=0)throw"max_images must be a positive integer";1===u&&(i=a);for(var l=Math.ceil((a-i)/Math.max(u-1,1)),s=i;s<a;s+=l)n.push(s);return n.push(a),n}(t)}(e,n,o);if(u){var s,c=n.transformation,d=(s=o,ez(s=I.a(s)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eW(o);return n=n||o,i.raw_transformation=new t2([Z.a({},n),{crop:"scale",width:t}]).toString(),t9(e,i)}(e,t,c,s)," ").concat(t,"w")}).join(", "));ne(d)||(i.srcset=d)}if(a){var f=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");ne(f)||(i.sizes=f)}}return i}function nn(e){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(){return(nr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ni(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function no(e,t){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){return(ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=ni(i);return e=t?Reflect.construct(n,arguments,ni(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nn(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"img",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){e=nr(ni(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,u={};return H()(a)?u.srcset=a:u=nt(this.publicId,o,a,t),eK(u)||(delete e.width,delete e.height),Z()(e,u),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=t9(this.publicId,this.getOptions())),e}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nu(e){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nl(){return(nl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nc(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ns(e,t){return(ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nc(i);return e=t?Reflect.construct(n,arguments,nc(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nu(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"source",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,t,n=this.getOption("srcset"),o=nl(nc(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Z()(o,nt(this.publicId,o,n,a)),o.srcset||(o.srcset=t9(this.publicId,a)),!o.media&&a.media&&(o.media=(e=a.media,t=[],null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and "))),o}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function np(){return(np="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nm(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nh(e,t){return(nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nm(e){return(nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ng=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nh(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nm(i);return e=t?Reflect.construct(n,arguments,nm(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nf(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,"picture",e,n)).widthList=a,t}return n=[{key:"content",value:function(){var e=this;return this.widthList.map(function(t){var n=t.min_width,o=t.max_width,i=t.transformation,a=e.getOptions(),u=new t2(a);return u.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eW(a)).media={min_width:n,max_width:o},a.transformation=u,new nd(e.publicId,a).toHtml()}).join("")+new na(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=np(nm(i.prototype),"attributes",this).call(this);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return"</"+this.name+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function ny(e){return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nv(){return(nv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nA(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nb(e,t){return(nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nA(e){return(nA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nx=["source_types","source_transformation","fallback_content","poster","sources"],nw=["webm","mp4","ogv"],n_={format:"jpg",resource_type:"video"},nS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nb(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nA(i);return e=t?Reflect.construct(n,arguments,nA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ny(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=eE({},t,em),o.call(this,"video",e.replace(/\.(mp4|ogv|webm)$/,""),t)}return n=[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),o=this.transformation().getValue("fallback_content"),i=this.getOption("sources"),a=[];return z()(i)&&!eK(i)?a=i.map(function(t){var n=t9(e.publicId,eE({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eK(t)&&(t=nw),z()(t)&&(a=t.map(function(t){var o=t9(e.publicId,eE({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(o,t)}))),a.join("")+o}},{key:"attributes",value:function(){var e=this.getOption("source_types"),t=this.getOption("poster");if(void 0===t&&(t={}),K()(t)){var n=null!=t.public_id?eh:n_;t=t9(t.public_id||this.publicId,eE({},t,n,this.getOptions()))}var o=nv(nA(i.prototype),"attributes",this).call(this)||{};return o=ew(o,nx),!eK(this.getOption("sources"))||eK(e)||z()(e)||(o.src=t9(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=t&&(o.poster=t),o}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null;return eK(t)||(o="video/"+("ogv"===t?"ogg":t),eK(n)||(o+="; codecs="+(z()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:e,type:o})+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nC(e){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nk(e,t){return(nk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nE(e){return(nE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nk(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nE(i);return e=t?Reflect.construct(n,arguments,nE(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nC(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"meta",void 0,T()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},e))}return n=[{key:"closeTag",value:function(){return""}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nI=function(e,t){e.transformation?e.transformation.push({flags:[t]}):(e.flags||(e.flags=[]),"string"==typeof e.flags&&(e.flags=[e.flags]),e.flags.push(t))},nR=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ec,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=ey.seeThru),nI(e,"alpha")},nM=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,u=e.blobURL,l=e.videoURL,s=document.createElement("video");return s.style.visibility="hidden",s.position="absolute",s.x=0,s.y=0,s.src=u,s.setAttribute("data-video-url",l),t&&s.setAttribute("autoplay",t),n&&s.setAttribute("playsinline",n),o&&s.setAttribute("loop",o),i&&s.setAttribute("muted",i),i&&(s.muted=i),a&&s.setAttribute("poster",a),s.onload=function(){URL.revokeObjectURL(u)},s},nj=function(e,t,n,o){var i=window,a=i.seeThru,u=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,s){var c=u(function(){s({status:"error",message:"Timeout instantiating seeThru instance"})},t);if(a)var d=a.create(e).ready(function(){l(c);var e=d.getCanvas();e.style.width="100%",e.className+=" "+n,o&&d.play(),i(d)});else s({status:"error",message:"Error instantiating seeThru instance"})})},nD=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,u=n.loop,l=n.muted;return t+=".mp4",new Promise(function(s,c){var d,f,p;(d=n.externalLibraries.seeThru,f=n.max_timeout_ms,p=window.seeThru,new Promise(function(e,t){if(p)e();else{var n=document.createElement("script");n.src=d;var o=setTimeout(function(){t({status:"error",message:"Timeout loading script ".concat(d)})},f);n.onerror=function(){clearTimeout(o),t({status:"error",message:"Error loading ".concat(d)})},n.onload=function(){clearTimeout(o),e()},document.head.appendChild(n)}})).then(function(){var d,f;(d=t,f=n.max_timeout_ms,new Promise(function(e,t){var n=setTimeout(function(){t({status:"error",message:"Timeout loading Blob URL"})},f);("undefined"!=typeof fetch&&fetch?function(e){return new Promise(function(t,n){fetch(e).then(function(e){e.blob().then(function(e){t(e)})}).catch(function(){n("error")})})}:function(e){return new Promise(function(t,n){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(e){t(o.response)},o.onerror=function(){n("error")},o.open("GET",e,!0),o.send()})})(d).then(function(t){e({status:"success",payload:{blobURL:URL.createObjectURL(t)}})}).catch(function(){t({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(n)})})).then(function(d){var f=nM({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:u,muted:l});e.appendChild(f),nj(f,n.max_timeout_ms,n.class,n.autoplay).then(function(){s(e)}).catch(function(e){c(e)})}).catch(function(e){c({status:e.status,message:e.message})})}).catch(function(e){c({status:e.status,message:e.message})})})};function nP(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},d=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},c=function(e,t,n,o){var i,a,u,l;return(l=null!=(i=null!=(a=null!=(u=o.responsive_use_breakpoints)?u:o.responsive_use_stoppoints)?a:this.config("responsive_use_breakpoints"))?i:this.config("responsive_use_stoppoints"))&&("resize"!==l||o.resizing)?this.calc_breakpoint(e,t,n):t},p=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=tn(e));return t},m=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},h=function(e,t){var n;return e>(n=eY(t,"width")||0)&&(n=e,eQ(t,"width",e)),n};var nF=function(){var e,t;function n(e){var t;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,t=new tp(e),this.config=function(e,n){return t.config(e,n)},this.fromDocument=function(){return t.fromDocument(),this},this.fromEnvironment=function(){return t.fromEnvironment(),this},this.init=function(){return t.init(),this}}return e=[{key:"url",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t9(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=T()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=T()({},ed,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t2(e).serialize()}},{key:"image",value:function(e){var t,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,i),t=null!=(o=null!=i.client_hints?i.client_hints:this.config("client_hints"))&&o,null!=i.src||t||n.setAttr("src",""),n=n.toDOM(),t||(eQ(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new na(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new ng(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nd(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Z()({},ed,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,T()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,T()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,T()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,T()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,T()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return new nS(e,t=eE({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=T()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,u=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Z()(this.responsiveConfig||{},e),i=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),l&&this.cloudinary_update("img.".concat(i,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(o=this.responsiveConfig.responsive_resize)?o:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,a=null;var s=function(){var e,t,n,o,l,s,c;return(e=null!=(t=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return u.cloudinary_update("img.".concat(i),u.responsiveConfig)},c=function(){return o(),l()},s=function(){o(),a=setTimeout(c,e)},e)?s():l()};return window.addEventListener("resize",s),function(){return window.removeEventListener("resize",s)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eY(e,"breakpoints")||eY(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||f;return J()(o)?o(t,n):(H()(o)&&(o=o.split(",").map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})),d(o,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||t===0/0)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(eK(e))return this;t=eE({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=T()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),o=n.source||n.src;delete n.source,delete n.src;var i=new t2(n).toHtmlAttributes();return eQ(e,"src-cache",t9(o,n)),e.setAttribute("width",i.width),e.setAttribute("height",i.height),e});return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,o,i,a,u,l,s=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=z()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nO(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return nO(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nO(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():H()(n)?Array.prototype.slice.call(document.querySelectorAll(n),0):[n],l=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var f=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach(function(n){if(/img/i.test(n.tagName)){var g=!0;if(d&&e5(n,l),!eK(i=eY(n,"src-cache")||eY(n,"src"))){i=m.call(s,i,f),t3.isResponsive(n,l)&&(0!==(o=p(n))?(/w_auto:breakpoints/.test(i)?(u=h(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(u)):g=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((u=h(u=c.call(s,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(u)):g=!1),e0(n,"width"),t.responsive_preserve_height||e0(n,"height")):g=!1);var y="lazy"===t.loading&&!s.isNativeLazyLoadSupported()&&s.isLazyLoadSupported()&&!e[0].getAttribute("src");(g||y)&&s.setAttributeIfExists(e[0],"width","data-width"),g&&!y&&eX(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&eX(e,t,o)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return t2.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,a){e||a({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),nR(o);var u=n.video_url(t,o);new Promise(function(e,t){eG()&&e(!1);var n=document.createElement("video"),o=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');e("maybe"===o||"probably"===o)}).then(function(l){var s;l?(s=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):s=nD(e,u,o),s.then(function(){i(e)}).catch(function(e){a({status:e.status,message:e.message})})}).catch(function(e){a({status:e.status,message:e.message})})})}}],t=[{key:"new",value:function(e){return new this(e)}}],e&&nP(n.prototype,e),t&&nP(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();T()(nF,g);var nL=nF;t.default={ClientHintsMetaTag:nT,Cloudinary:nL,Condition:ts,Configuration:tp,crc32:b,Expression:ti,FetchLayer:tk,HtmlTag:t3,ImageTag:na,Layer:th,PictureTag:ng,SubtitlesLayer:tw,TextLayer:tv,Transformation:t2,utf8_encode:v,Util:y,VideoTag:nS}},"lodash/assign":function(t,n){t.exports=e},"lodash/cloneDeep":function(e,n){e.exports=t},"lodash/compact":function(e,t){e.exports=n},"lodash/difference":function(e,t){e.exports=o},"lodash/functions":function(e,t){e.exports=u},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=s},"lodash/isArray":function(e,t){e.exports=c},"lodash/isElement":function(e,t){e.exports=d},"lodash/isFunction":function(e,t){e.exports=f},"lodash/isPlainObject":function(e,t){e.exports=p},"lodash/isString":function(e,t){e.exports=h},"lodash/merge":function(e,t){e.exports=m},"lodash/trim":function(e,t){e.exports=g}})},e.exports=o(n(60019),n(9850),n(60417),n(17335),n(1910),n(23059),n(11886),n(86152),n(92301),n(61049),n(97030),n(85505),n(98537),n(5648))},36887:function(e,t,n){"use strict";n.d(t,{nk:function(){return W}});var o=n(2784),i=n(13980),a=n.n(i),u=n(44005);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=["public_id"],p=["publicId"],h=["children"],m=["children","accessibility","placeholder"],g=u.Util.camelCase,y=u.Util.withCamelCaseKeys,v=u.Util.isEmpty,b=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],A={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},x={m4a:"mp4",wav:"vnd.wav",m3u:"x-mpegurl",mp3:"mpeg",ogv:"ogg",aif:"x-aiff",aifc:"x-aiff",aiff:"x-aiff"},w=[].concat(u.Transformation.PARAM_NAMES,b).map(u.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),_=function(e){var t=d(Object.entries(e).reduce(function(e,t){var n,o=t[0],i=t[1];return null==i?e:l({},e,((n={})[o]=i,n))},{}),f),n=u.Util.withSnakeCaseKeys(t);return u.Cloudinary.new(n)},S=function(e,t){var n=e.publicId,o=d(e,p);return _(o)[t+"Tag"](n,u.Util.withSnakeCaseKeys(o))},C=function(e,t){var n=u.Util.withSnakeCaseKeys(t),o=_(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},k=function(e){var t=e.children,n=d(e,h),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=u.Util.camelCase(e),i=n[e];w[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},E=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},T=function(){return[].slice.call(arguments).reduce(function(e,t){return Object.keys(t||{}).forEach(function(n){var o=t[n];null!=o&&(e[n]=o)}),e},{})},O=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return E(e,"CloudinaryPlaceholder")})),t},I=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return E(e,"CloudinaryTransformation")}).map(function(t){var n=T(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},R=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=y(d(e,m)),((void 0===(n=u.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),s=I(o);v(s)||(l.transformation=s);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},M=(0,o.createContext)(),j=u.Util.camelCase,D=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).getContext=function(){return i.context||{}},i.onIntersect=function(){i.setState({isInView:!0})},i.getExtendedProps=function(e,t){return void 0===e&&(e=i.props),void 0===t&&(t=i.getContext()),T(t,e)},i.attachRef=function(e){var t=i.props.innerRef;i.element.current=e,t&&(t instanceof Function?t(e):t.current=e)},i.element=(0,o.createRef)(),i}return s(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);D.defaultProps={innerRef:null,publicId:null},D.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[g(e[n])]=a().any;return t}(u.Transformation.PARAM_NAMES.map(j)),{innerRef:a().any,publicId:a().string}),D.contextType=M;var P=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=k(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(M.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(D);P.propTypes=l({},D.propTypes,{includeOwnBody:a().bool}),P.defaultProps={includeOwnBody:!1};var F=["children","innerRef"],L="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),N=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).isResponsive=function(){var e=i.getExtendedProps(),t=e.responsive,n=e.width;return t&&"auto"!==n&&console.warn(L),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,R(e)),F);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=k(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,s=n.cloudinaryReactProps,c=S(l({},o,s),"image"),d=u.Util.withCamelCaseKeys(c.attributes()),f=l({},d,a);return f.dataSrc&&(f["data-src"]=f.dataSrc),t&&f.id&&(f.id+="-cld-placeholder"),i.shouldLazyLoad()&&(f["data-src"]=f.dataSrc||f.src,delete f.src),b.forEach(function(e){delete f[e]}),f},i.update=function(){if(i.shouldLazyLoad())u.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=C(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=C(i.element.current,e);i.listenerRemovers.push(o)}},i.shouldLazyLoad=function(){var e=i.getExtendedProps().loading;return!i.state.isInView&&("lazy"===e||"auto"===e)},i.handleImageLoaded=function(){var e=i.props.onLoad;i.setState({isLoaded:!0},function(){e&&e()})},i.renderPlaceholder=function(e,t){t.style=l({},t.style||{},{opacity:0,position:"absolute"}),t.onLoad=i.handleImageLoaded;var n=i.getAttributes({placeholder:e});return o.createElement(o.Fragment,null,i.renderImage(t),o.createElement("div",{style:{display:"inline"}},o.createElement("img",l({ref:i.placeholderElement},n))))},i.renderImage=function(e){return o.createElement("img",l({ref:i.attachRef},e))},i.getPlaceholderType=function(){var e=O(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}s(t,e);var n=t.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach(function(e){return e()})},n.render=function(){var e=this.state.isLoaded,t=this.getAttributes(),n=this.getPlaceholderType();return!e&&n?this.renderPlaceholder(n,t):this.renderImage(t)},t}(D);N.defaultProps={},N.propTypes=D.propTypes,N.propTypes.responsive=a().bool,N.propTypes.loading=a().string,N.propTypes.accessibility=a().string;var U=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return null},t}(D);U.propTypes=D.propTypes,U.defaultProps={},U.exposesProps=!0,U.displayName="CloudinaryTransformation";var B=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],W=function(e){function t(){for(var t,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).mimeType="video",t.mimeSubTypes=A,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=u.Util.withSnakeCaseKeys(u.Util.defaults({},o,n,{resource_type:"video",format:i}));return e.url(t,a)},t.generateUsingSourceTypes=function(e,n,o,i,a){return a.map(function(a){return t.toSourceTag(e,n,o,i[a]||{},a,t.buildMimeType(a))})},t.generateUsingSources=function(e,n,o,i){return i.map(function(i){var a=i.transformations,u=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,u,t.buildMimeType(u,l))})},t.toSourceTag=function(e,n,i,a,u,l){var s=t.generateVideoUrl(e,n,i,a,u);return o.createElement("source",{key:s+l,src:s,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return u.Util.isEmpty(n)||(o+="; codecs="+(u.Util.isArray(n)?n.join(", "):n)),o},t.getVideoTagProps=function(){var e=t.getMergedProps(),n=e.publicId,o=e.children,i=e.sourceTypes,a=e.sourceTransformation,s=void 0===a?{}:a,c=e.sources,f=d(e,B),p=k(f=T(f,{})),h=p.cloudinaryProps,m=p.cloudinaryReactProps,g=p.nonCloudinaryProps;f=l({},h,m);var y=u.Util.withSnakeCaseKeys(f),v=u.Cloudinary.new(y),b=v.videoTag(n,f).attributes();b=l({},u.Util.withCamelCaseKeys(b),g);var A=R(l({},f,{children:o})),x=null;return u.Util.isArray(c)&&!u.Util.isEmpty(c)?x=t.generateUsingSources(v,n,A,c):u.Util.isArray(i)?x=t.generateUsingSourceTypes(v,n,A,s,i):b.src=t.generateVideoUrl(v,n,A,s[i]||{},i),{sources:x,tagAttributes:b}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}s(t,e);var n=t.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var e=this.props,t=e.fallback,n=e.children,i=this.getVideoTagProps(),a=i.tagAttributes,u=i.sources;return o.createElement("video",l({ref:this.attachRef},a),u,t,n)},t}(D);W.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},W.defaultProps={sourceTypes:u.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var z=function(e){function t(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).mimeType="audio",t.mimeSubTypes=x,t}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),u=a.tagAttributes,s=a.sources;return delete u.poster,o.createElement("audio",l({ref:t},u),s,n,i)},t}(W);z.propTypes={publicId:a().string},z.defaultProps={sourceTypes:["aac","mp3","ogg"]};var V=function(e){return null};V.propTypes={type:a().string},V.defaultProps={type:"blur"},V.displayName="CloudinaryPlaceholder"},6277:function(e,t,n){"use strict";function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{W:function(){return o}}),t.Z=o},39714:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function u(e,t){try{return t in e}catch(e){return!1}}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=o;var c,d,f=Array.isArray(n);return f!==Array.isArray(e)?o(n,s):f?s.arrayMerge(e,n,s):(d={},(c=s).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!u(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(u(e,t)&&c.isMergeableObject(n[t])?d[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,c)(e[t],n[t],c):d[t]=o(n[t],c))}),d)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},85978:function(e,t,n){var o,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(o=(function(){return a}).call(t,n,t,e))&&(e.exports=o)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;0!=i--;){var o,i,a,u=a[i];if(!e(t[u],n[u]))return!1}return!0}return t!=t&&n!=n}},63397:function(e,t,n){"use strict";n.d(t,{gN:function(){return ng},F2:function(){return nC},l0:function(){return ny},J9:function(){return nd},U$:function(){return nm},u6:function(){return nu}});var o,i,a,u,l,s=n(2784),c=n(78435),d=n.n(c),f=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==p},p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(e,t){return!1!==t.clone&&t.isMergeableObject(e)?g(Array.isArray(e)?[]:{},e,t):e}function m(e,t,n){return e.concat(t).map(function(e){return h(e,n)})}function g(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||m,n.isMergeableObject=n.isMergeableObject||f;var o,i,a=Array.isArray(t);return a!==Array.isArray(e)?h(t,n):a?n.arrayMerge(e,t,n):(i={},(o=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=h(e[t],o)}),Object.keys(t).forEach(function(n){o.isMergeableObject(t[n])&&e[n]?i[n]=g(e[n],t[n],o):i[n]=h(t[n],o)}),i)}g.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return g(e,n,t)},{})};var y=g,v="object"==typeof global&&global&&global.Object===Object&&global,b="object"==typeof self&&self&&self.Object===Object&&self,A=v||b||Function("return this")(),x=A.Symbol,w=Object.prototype,_=w.hasOwnProperty,S=w.toString,C=x?x.toStringTag:void 0,k=function(e){var t=_.call(e,C),n=e[C];try{e[C]=void 0;var o=!0}catch(e){}var i=S.call(e);return o&&(t?e[C]=n:delete e[C]),i},E=Object.prototype.toString,T=x?x.toStringTag:void 0,O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?k(e):E.call(e)},I=function(e,t){return function(n){return e(t(n))}},R=I(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},j=Object.prototype,D=Function.prototype.toString,P=j.hasOwnProperty,F=D.call(Object),L=function(e){if(!M(e)||"[object Object]"!=O(e))return!1;var t=R(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==F},N=function(e,t){return e===t||e!=e&&t!=t},U=function(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return -1},B=Array.prototype.splice;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}W.prototype.clear=function(){this.__data__=[],this.size=0},W.prototype.delete=function(e){var t=this.__data__,n=U(t,e);return!(n<0)&&(n==t.length-1?t.pop():B.call(t,n,1),--this.size,!0)},W.prototype.get=function(e){var t=this.__data__,n=U(t,e);return n<0?void 0:t[n][1]},W.prototype.has=function(e){return U(this.__data__,e)>-1},W.prototype.set=function(e,t){var n=this.__data__,o=U(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=function(e){if(!z(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=A["__core-js_shared__"],$=(o=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",H=Function.prototype.toString,q=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Z=/^\[object .+?Constructor\]$/,G=Object.prototype,Y=Function.prototype.toString,Q=G.hasOwnProperty,J=RegExp("^"+Y.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var n,o=null==e?void 0:e[t];return z(n=o)&&(!$||!($ in n))&&(V(n)?J:Z).test(q(n))?o:void 0},ee=X(A,"Map"),et=X(Object,"create"),en=Object.prototype.hasOwnProperty,er=Object.prototype.hasOwnProperty;function eo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}eo.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},eo.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eo.prototype.get=function(e){var t=this.__data__;if(et){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return en.call(t,e)?t[e]:void 0},eo.prototype.has=function(e){var t=this.__data__;return et?void 0!==t[e]:er.call(t,e)},eo.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&void 0===t?"__lodash_hash_undefined__":t,this};var ei=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ea=function(e,t){var n=e.__data__;return ei(t)?n["string"==typeof t?"string":"hash"]:n.map};function eu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function el(e){var t=this.__data__=new W(e);this.size=t.size}eu.prototype.clear=function(){this.size=0,this.__data__={hash:new eo,map:new(ee||W),string:new eo}},eu.prototype.delete=function(e){var t=ea(this,e).delete(e);return this.size-=t?1:0,t},eu.prototype.get=function(e){return ea(this,e).get(e)},eu.prototype.has=function(e){return ea(this,e).has(e)},eu.prototype.set=function(e,t){var n=ea(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},el.prototype.clear=function(){this.__data__=new W,this.size=0},el.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},el.prototype.get=function(e){return this.__data__.get(e)},el.prototype.has=function(e){return this.__data__.has(e)},el.prototype.set=function(e,t){var n=this.__data__;if(n instanceof W){var o=n.__data__;if(!ee||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new eu(o)}return n.set(e,t),this.size=n.size,this};var es=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e},ec=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ed=function(e,t,n){"__proto__"==t&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ef=Object.prototype.hasOwnProperty,ep=function(e,t,n){var o=e[t];ef.call(e,t)&&N(o,n)&&(void 0!==n||t in e)||ed(e,t,n)},eh=function(e,t,n,o){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],s=o?o(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?ed(n,l,s):ep(n,l,s)}return n},em=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},eg=function(e){return M(e)&&"[object Arguments]"==O(e)},ey=Object.prototype,ev=ey.hasOwnProperty,eb=ey.propertyIsEnumerable,eA=eg(function(){return arguments}())?eg:function(e){return M(e)&&ev.call(e,"callee")&&!eb.call(e,"callee")},ex=Array.isArray,ew="object"==typeof exports&&exports&&!exports.nodeType&&exports,e_=ew&&"object"==typeof module&&module&&!module.nodeType&&module,eS=e_&&e_.exports===ew?A.Buffer:void 0,eC=(eS?eS.isBuffer:void 0)||function(){return!1},ek=/^(?:0|[1-9]\d*)$/,eE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ek.test(e))&&e>-1&&e%1==0&&e<t},eT=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eO={};eO["[object Float32Array]"]=eO["[object Float64Array]"]=eO["[object Int8Array]"]=eO["[object Int16Array]"]=eO["[object Int32Array]"]=eO["[object Uint8Array]"]=eO["[object Uint8ClampedArray]"]=eO["[object Uint16Array]"]=eO["[object Uint32Array]"]=!0,eO["[object Arguments]"]=eO["[object Array]"]=eO["[object ArrayBuffer]"]=eO["[object Boolean]"]=eO["[object DataView]"]=eO["[object Date]"]=eO["[object Error]"]=eO["[object Function]"]=eO["[object Map]"]=eO["[object Number]"]=eO["[object Object]"]=eO["[object RegExp]"]=eO["[object Set]"]=eO["[object String]"]=eO["[object WeakMap]"]=!1;var eI=function(e){return function(t){return e(t)}},eR="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eR&&"object"==typeof module&&module&&!module.nodeType&&module,ej=eM&&eM.exports===eR&&v.process,eD=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return ej&&ej.binding&&ej.binding("util")}catch(e){}}(),eP=eD&&eD.isTypedArray,eF=eP?eI(eP):function(e){return M(e)&&eT(e.length)&&!!eO[O(e)]},eL=Object.prototype.hasOwnProperty,eN=function(e,t){var n=ex(e),o=!n&&eA(e),i=!n&&!o&&eC(e),a=!n&&!o&&!i&&eF(e),u=n||o||i||a,l=u?em(e.length,String):[],s=l.length;for(var c in e)(t||eL.call(e,c))&&!(u&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||eE(c,s)))&&l.push(c);return l},eU=Object.prototype,eB=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eU)},eW=I(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eV=function(e){if(!eB(e))return eW(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eK=function(e){return null!=e&&eT(e.length)&&!V(e)},e$=function(e){return eK(e)?eN(e):eV(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eq=Object.prototype.hasOwnProperty,eZ=function(e){if(!z(e))return eH(e);var t=eB(e),n=[];for(var o in e)"constructor"==o&&(t||!eq.call(e,o))||n.push(o);return n},eG=function(e){return eK(e)?eN(e,!0):eZ(e)},eY="object"==typeof exports&&exports&&!exports.nodeType&&exports,eQ=eY&&"object"==typeof module&&module&&!module.nodeType&&module,eJ=eQ&&eQ.exports===eY?A.Buffer:void 0,eX=eJ?eJ.allocUnsafe:void 0,e0=function(e,t){if(t)return e.slice();var n=e.length,o=eX?eX(n):new e.constructor(n);return e.copy(o),o},e1=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},e2=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a},e5=function(){return[]},e3=Object.prototype.propertyIsEnumerable,e4=Object.getOwnPropertySymbols,e6=e4?function(e){return null==e?[]:e2(e4(e=Object(e)),function(t){return e3.call(e,t)})}:e5,e8=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e},e9=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)e8(t,e6(e)),e=R(e);return t}:e5,e7=function(e,t,n){var o=t(e);return ex(e)?o:e8(o,n(e))},te=function(e){return e7(e,e$,e6)},tt=function(e){return e7(e,eG,e9)},tn=X(A,"DataView"),tr=X(A,"Promise"),to=X(A,"Set"),ti=X(A,"WeakMap"),ta="[object Map]",tu="[object Promise]",tl="[object Set]",ts="[object WeakMap]",tc="[object DataView]",td=q(tn),tf=q(ee),tp=q(tr),th=q(to),tm=q(ti),tg=O;(tn&&tg(new tn(new ArrayBuffer(1)))!=tc||ee&&tg(new ee)!=ta||tr&&tg(tr.resolve())!=tu||to&&tg(new to)!=tl||ti&&tg(new ti)!=ts)&&(tg=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,o=n?q(n):"";if(o)switch(o){case td:return tc;case tf:return ta;case tp:return tu;case th:return tl;case tm:return ts}return t});var ty=tg,tv=Object.prototype.hasOwnProperty,tb=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tv.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tA=A.Uint8Array,tx=function(e){var t=new e.constructor(e.byteLength);return new tA(t).set(new tA(e)),t},tw=function(e,t){var n=t?tx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},t_=/\w*$/,tS=function(e){var t=new e.constructor(e.source,t_.exec(e));return t.lastIndex=e.lastIndex,t},tC=x?x.prototype:void 0,tk=tC?tC.valueOf:void 0,tE=function(e,t){var n=t?tx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tT=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return tx(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return tw(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tE(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return tS(e);case"[object Symbol]":return tk?Object(tk.call(e)):{}}},tO=Object.create,tI=function(){function e(){}return function(t){if(!z(t))return{};if(tO)return tO(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tR=eD&&eD.isMap,tM=tR?eI(tR):function(e){return M(e)&&"[object Map]"==ty(e)},tj=eD&&eD.isSet,tD=tj?eI(tj):function(e){return M(e)&&"[object Set]"==ty(e)},tP="[object Arguments]",tF="[object Function]",tL="[object Object]",tN={};tN[tP]=tN["[object Array]"]=tN["[object ArrayBuffer]"]=tN["[object DataView]"]=tN["[object Boolean]"]=tN["[object Date]"]=tN["[object Float32Array]"]=tN["[object Float64Array]"]=tN["[object Int8Array]"]=tN["[object Int16Array]"]=tN["[object Int32Array]"]=tN["[object Map]"]=tN["[object Number]"]=tN[tL]=tN["[object RegExp]"]=tN["[object Set]"]=tN["[object String]"]=tN["[object Symbol]"]=tN["[object Uint8Array]"]=tN["[object Uint8ClampedArray]"]=tN["[object Uint16Array]"]=tN["[object Uint32Array]"]=!0,tN["[object Error]"]=tN[tF]=tN["[object WeakMap]"]=!1;var tU=function e(t,n,o,i,a,u){var l,s=1&n,c=2&n,d=4&n;if(o&&(l=a?o(t,i,a,u):o(t)),void 0!==l)return l;if(!z(t))return t;var f=ex(t);if(f){if(l=tb(t),!s)return e1(t,l)}else{var p,h,m,g,y=ty(t),v=y==tF||"[object GeneratorFunction]"==y;if(eC(t))return e0(t,s);if(y==tL||y==tP||v&&!a){if(l=c||v?{}:"function"!=typeof t.constructor||eB(t)?{}:tI(R(t)),!s)return c?(h=(p=l)&&eh(t,eG(t),p),eh(t,e9(t),h)):(g=(m=l)&&eh(t,e$(t),m),eh(t,e6(t),g))}else{if(!tN[y])return a?t:{};l=tT(t,y,s)}}u||(u=new el);var b=u.get(t);if(b)return b;u.set(t,l),tD(t)?t.forEach(function(i){l.add(e(i,n,o,i,t,u))}):tM(t)&&t.forEach(function(i,a){l.set(a,e(i,n,o,a,t,u))});var A=d?c?tt:te:c?eG:e$,x=f?void 0:A(t);return es(x||t,function(i,a){x&&(i=t[a=i]),ep(l,a,e(i,n,o,a,t,u))}),l},tB=function(e){return tU(e,4)},tW=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i},tz=function(e){return"symbol"==typeof e||M(e)&&"[object Symbol]"==O(e)};function tV(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,o);return n.cache=a.set(i,u)||a,u};return n.cache=new(tV.Cache||eu),n}tV.Cache=eu;var tK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t$=/\\(\\)?/g,tH=(a=(i=tV(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tK,function(e,n,o,i){t.push(o?i.replace(t$,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,i),tq=1/0,tZ=function(e){if("string"==typeof e||tz(e))return e;var t=e+"";return"0"==t&&1/e==-tq?"-0":t},tG=1/0,tY=x?x.prototype:void 0,tQ=tY?tY.toString:void 0,tJ=function e(t){if("string"==typeof t)return t;if(ex(t))return tW(t,e)+"";if(tz(t))return tQ?tQ.call(t):"";var n=t+"";return"0"==n&&1/t==-tG?"-0":n},tX=function(e){return ex(e)?tW(e,tZ):tz(e)?[e]:e1(tH(null==e?"":tJ(e)))},t0=function(e,t){},t1=n(73463),t2=n.n(t1);function t5(){return(t5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function t3(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function t4(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t6=function(e){return Array.isArray(e)&&0===e.length},t8=function(e){return"function"==typeof e},t9=function(e){return null!==e&&"object"==typeof e},t7=function(e){return"[object String]"===Object.prototype.toString.call(e)},ne=function(e){return 0===s.Children.count(e)},nt=function(e){return t9(e)&&t8(e.then)};function nn(e,t,n,o){void 0===o&&(o=0);for(var i=tX(t);e&&o<i.length;)e=e[i[o++]];return o===i.length||e?void 0===e?n:e:n}function nr(e,t,n){for(var o=tB(e),i=o,a=0,u=tX(t);a<u.length-1;a++){var l=u[a],s=nn(e,u.slice(0,a+1));if(s&&(t9(s)||Array.isArray(s)))i=i[l]=tB(s);else{var c=u[a+1];i=i[l]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===a?e:i)[u[a]]===n?e:(void 0===n?delete i[u[a]]:i[u[a]]=n,0===a&&void 0===n&&delete o[u[a]],o)}var no=(0,s.createContext)(void 0);no.displayName="FormikContext";var ni=no.Provider,na=no.Consumer;function nu(){var e=(0,s.useContext)(no);return e||t0(!1),e}function nl(e,t){switch(t.type){case"SET_VALUES":return t5({},e,{values:t.payload});case"SET_TOUCHED":return t5({},e,{touched:t.payload});case"SET_ERRORS":if(d()(e.errors,t.payload))return e;return t5({},e,{errors:t.payload});case"SET_STATUS":return t5({},e,{status:t.payload});case"SET_ISSUBMITTING":return t5({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return t5({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return t5({},e,{values:nr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return t5({},e,{touched:nr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return t5({},e,{errors:nr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return t5({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return t5({},e,{touched:function e(t,n,o,i){void 0===o&&(o=new WeakMap),void 0===i&&(i={});for(var a=0,u=Object.keys(t);a<u.length;a++){var l=u[a],s=t[l];t9(s)?o.get(s)||(o.set(s,!0),i[l]=Array.isArray(s)?[]:{},e(s,n,o,i[l])):i[l]=n}return i}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return t5({},e,{isSubmitting:!1});default:return e}}var ns={},nc={};function nd(e){var t,n,o,i,a,u,l,c,f,p,h,m,g,v,b,A,x,w,_,S,C,k,E,T,O,I,R,M,j,D,P,F,N,U,B,W,z,V,K,$,H,q,Z,G,Y,Q,J,X,ee,et,en,er,eo,ei,ea=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(o=e.validateOnBlur)||o,u=void 0!==(a=e.validateOnMount)&&a,l=e.isInitialValid,f=void 0!==(c=e.enableReinitialize)&&c,p=e.onSubmit,h=t3(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=t5({validateOnChange:n,validateOnBlur:i,validateOnMount:u,onSubmit:p},h),g=(0,s.useRef)(m.initialValues),v=(0,s.useRef)(m.initialErrors||ns),b=(0,s.useRef)(m.initialTouched||nc),A=(0,s.useRef)(m.initialStatus),x=(0,s.useRef)(!1),w=(0,s.useRef)({}),(0,s.useEffect)(function(){return x.current=!0,function(){x.current=!1}},[]),S=(_=(0,s.useReducer)(nl,{values:m.initialValues,errors:m.initialErrors||ns,touched:m.initialTouched||nc,status:m.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],C=_[1],k=(0,s.useCallback)(function(e,t){return new Promise(function(n,o){var i=m.validate(e,t);null==i?n(ns):nt(i)?i.then(function(e){n(e||ns)},function(e){o(e)}):n(i)})},[m.validate]),E=(0,s.useCallback)(function(e,t){var n,o,i=m.validationSchema,a=t8(i)?i(t):i,u=t&&a.validateAt?a.validateAt(t,e):(void 0===n&&(n=!1),o=function e(t){var n=Array.isArray(t)?[]:{};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=String(o);!0===Array.isArray(t[i])?n[i]=t[i].map(function(t){return!0===Array.isArray(t)||L(t)?e(t):""!==t?t:void 0}):L(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e),a[n?"validateSync":"validate"](o,{abortEarly:!1,context:o}));return new Promise(function(e,t){u.then(function(){e(ns)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return nr(t,e.path,e.message);for(var n=e.inner,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){if(o){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,u=a;nn(t,u.path)||(t=nr(t,u.path,u.message))}}return t}(n)):t(n)})})},[m.validationSchema]),T=(0,s.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),O=(0,s.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t8(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return T(t,nn(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,o){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=nr(e,t[o],n)),e},{})})},[T]),I=(0,s.useCallback)(function(e){return Promise.all([O(e),m.validationSchema?E(e):{},m.validate?k(e):{}]).then(function(e){var t=e[0],n=e[1],o=e[2];return y.all([t,n,o],{arrayMerge:nf})})},[m.validate,m.validationSchema,O,k,E]),R=nh(function(e){return void 0===e&&(e=S.values),C({type:"SET_ISVALIDATING",payload:!0}),I(e).then(function(e){return x.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:e})),e})}),(0,s.useEffect)(function(){u&&!0===x.current&&d()(g.current,m.initialValues)&&R(g.current)},[u,R]),M=(0,s.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:v.current?v.current:m.initialErrors||{},o=e&&e.touched?e.touched:b.current?b.current:m.initialTouched||{},i=e&&e.status?e.status:A.current?A.current:m.initialStatus;g.current=t,v.current=n,b.current=o,A.current=i;var a=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:o,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var u=m.onReset(S.values,J);nt(u)?u.then(a):a()}else a()},[m.initialErrors,m.initialStatus,m.initialTouched]),(0,s.useEffect)(function(){!0===x.current&&!d()(g.current,m.initialValues)&&f&&(g.current=m.initialValues,M(),u&&R(g.current))},[f,m.initialValues,M,u,R]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(v.current,m.initialErrors)&&(v.current=m.initialErrors||ns,C({type:"SET_ERRORS",payload:m.initialErrors||ns}))},[f,m.initialErrors]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(b.current,m.initialTouched)&&(b.current=m.initialTouched||nc,C({type:"SET_TOUCHED",payload:m.initialTouched||nc}))},[f,m.initialTouched]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(A.current,m.initialStatus)&&(A.current=m.initialStatus,C({type:"SET_STATUS",payload:m.initialStatus}))},[f,m.initialStatus,m.initialTouched]),j=nh(function(e){if(w.current[e]&&t8(w.current[e].validate)){var t=nn(S.values,e),n=w.current[e].validate(t);return nt(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(C({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:nn(t,e)}}),C({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),D=(0,s.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),P=(0,s.useCallback)(function(e){delete w.current[e]},[]),F=nh(function(e,t){return C({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?R(S.values):Promise.resolve()}),N=(0,s.useCallback)(function(e){C({type:"SET_ERRORS",payload:e})},[]),U=nh(function(e,t){var o=t8(e)?e(S.values):e;return C({type:"SET_VALUES",payload:o}),(void 0===t?n:t)?R(o):Promise.resolve()}),B=(0,s.useCallback)(function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),W=nh(function(e,t,o){return C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===o?n:o)?R(nr(S.values,e,t)):Promise.resolve()}),z=(0,s.useCallback)(function(e,t){var n,o=t,i=e;if(!t7(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,u=a.type,l=a.name,s=a.id,c=a.value,d=a.checked,f=(a.outerHTML,a.options),p=a.multiple;o=t||l||s,i=/number|range/.test(u)?isNaN(n=parseFloat(c))?"":n:/checkbox/.test(u)?function(e,t,n){if("boolean"==typeof e)return!!t;var o=[],i=!1,a=-1;if(Array.isArray(e))o=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?o.concat(n):i?o.slice(0,a).concat(o.slice(a+1)):o}(nn(S.values,o),d,c):f&&p?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}o&&W(o,i)},[W,S.values]),V=nh(function(e){if(t7(e))return function(t){return z(t,e)};z(e)}),K=nh(function(e,t,n){return void 0===t&&(t=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?R(S.values):Promise.resolve()}),$=(0,s.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,o=n.name,i=n.id;n.outerHTML,K(t||o||i,!0)},[K]),H=nh(function(e){if(t7(e))return function(t){return $(t,e)};$(e)}),q=(0,s.useCallback)(function(e){t8(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),Z=(0,s.useCallback)(function(e){C({type:"SET_STATUS",payload:e})},[]),G=(0,s.useCallback)(function(e){C({type:"SET_ISSUBMITTING",payload:e})},[]),Y=nh(function(){return C({type:"SUBMIT_ATTEMPT"}),R().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=X(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&C({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw C({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(C({type:"SUBMIT_FAILURE"}),n))throw e})}),Q=nh(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:M,validateForm:R,validateField:j,setErrors:N,setFieldError:B,setFieldTouched:K,setFieldValue:W,setStatus:Z,setSubmitting:G,setTouched:F,setValues:U,setFormikState:q,submitForm:Y},X=nh(function(){return p(S.values,J)}),ee=nh(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),M()}),et=(0,s.useCallback)(function(e){return{value:nn(S.values,e),error:nn(S.errors,e),touched:!!nn(S.touched,e),initialValue:nn(g.current,e),initialTouched:!!nn(b.current,e),initialError:nn(v.current,e)}},[S.errors,S.touched,S.values]),en=(0,s.useCallback)(function(e){return{setValue:function(t,n){return W(e,t,n)},setTouched:function(t,n){return K(e,t,n)},setError:function(t){return B(e,t)}}},[W,K,B]),er=(0,s.useCallback)(function(e){var t=t9(e),n=t?e.name:e,o=nn(S.values,n),i={name:n,value:o,onChange:V,onBlur:H};if(t){var a=e.type,u=e.value,l=e.as,s=e.multiple;"checkbox"===a?void 0===u?i.checked=!!o:(i.checked=!!(Array.isArray(o)&&~o.indexOf(u)),i.value=u):"radio"===a?(i.checked=o===u,i.value=u):"select"===l&&s&&(i.value=i.value||[],i.multiple=!0)}return i},[H,V,S.values]),eo=(0,s.useMemo)(function(){return!d()(g.current,S.values)},[g.current,S.values]),ei=(0,s.useMemo)(function(){return void 0!==l?eo?S.errors&&0===Object.keys(S.errors).length:!1!==l&&t8(l)?l(m):l:S.errors&&0===Object.keys(S.errors).length},[l,eo,S.errors,m]),t5({},S,{initialValues:g.current,initialErrors:v.current,initialTouched:b.current,initialStatus:A.current,handleBlur:H,handleChange:V,handleReset:ee,handleSubmit:Q,resetForm:M,setErrors:N,setFormikState:q,setFieldTouched:K,setFieldValue:W,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:F,setValues:U,submitForm:Y,validateForm:R,validateField:j,isValid:ei,dirty:eo,unregisterField:P,registerField:D,getFieldProps:er,getFieldMeta:et,getFieldHelpers:en,validateOnBlur:i,validateOnChange:n,validateOnMount:u})),eu=e.component,el=e.children,es=e.render,ec=e.innerRef;return(0,s.useImperativeHandle)(ec,function(){return ea}),(0,s.createElement)(ni,{value:ea},eu?(0,s.createElement)(eu,ea):es?es(ea):el?t8(el)?el(ea):ne(el)?null:s.Children.only(el):null)}function nf(e,t,n){var o=e.slice();return t.forEach(function(t,i){if(void 0===o[i]){var a=!1!==n.clone&&n.isMergeableObject(t);o[i]=a?y(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?o[i]=y(e[i],t,n):-1===e.indexOf(t)&&o.push(t)}),o}var np="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;function nh(e){var t=(0,s.useRef)(e);return np(function(){t.current=e}),(0,s.useCallback)(function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.current.apply(void 0,n)},[])}function nm(e){var t=nu(),n=t.getFieldProps,o=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=t9(e)?e:{name:e},c=l.name,d=l.validate;(0,s.useEffect)(function(){return c&&a(c,{validate:d}),function(){c&&u(c)}},[a,u,c,d]),c||t0(!1);var f=(0,s.useMemo)(function(){return i(c)},[i,c]);return[n(l),o(c),f]}function ng(e){var t=e.validate,n=e.name,o=e.render,i=e.children,a=e.as,u=e.component,l=t3(e,["validate","name","render","children","as","component"]),c=t3(nu(),["validate","validationSchema"]),d=c.registerField,f=c.unregisterField;(0,s.useEffect)(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=c.getFieldProps(t5({name:n},l)),h=c.getFieldMeta(n),m={field:p,form:c};if(o)return o(t5({},m,{meta:h}));if(t8(i))return i(t5({},m,{meta:h}));if(u){if("string"==typeof u){var g=l.innerRef,y=t3(l,["innerRef"]);return(0,s.createElement)(u,t5({ref:g},p,y),i)}return(0,s.createElement)(u,t5({field:p,form:c},l),i)}var v=a||"input";if("string"==typeof v){var b=l.innerRef,A=t3(l,["innerRef"]);return(0,s.createElement)(v,t5({ref:b},p,A),i)}return(0,s.createElement)(v,t5({},p,l),i)}var ny=(0,s.forwardRef)(function(e,t){var n=e.action,o=t3(e,["action"]),i=nu(),a=i.handleReset,u=i.handleSubmit;return(0,s.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:a,action:null!=n?n:"#"},o))});ny.displayName="Form";var nv=function(e,t,n){var o=nw(e),i=o[t];return o.splice(t,1),o.splice(n,0,i),o},nb=function(e,t,n){var o=nw(e),i=o[t];return o[t]=o[n],o[n]=i,o},nA=function(e,t,n){var o=nw(e);return o.splice(t,0,n),o},nx=function(e,t,n){var o=nw(e);return o[t]=n,o},nw=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(t5({},e,{length:t+1}))},n_=function(e,t){var n="function"==typeof e?e:t;return function(e){return Array.isArray(e)||t9(e)?n(nw(e)):e}},nS=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,o){var i=n.props,a=i.name;(0,i.formik.setFormikState)(function(n){var i=n_(o,e),u=n_(t,e),l=nr(n.values,a,e(nn(n.values,a))),s=o?i(nn(n.errors,a)):void 0,c=t?u(nn(n.touched,a)):void 0;return t6(s)&&(s=void 0),t6(c)&&(c=void 0),t5({},n,{values:l,errors:o?nr(n.errors,a,s):n.errors,touched:t?nr(n.touched,a,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nw(t),[tU(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return nb(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return nv(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return nA(n,e,t)},function(t){return nA(t,e,null)},function(t){return nA(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nx(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var o=n?[e].concat(n):[e];return t<0&&(t=o.length),o},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t4(n)),n.pop=n.pop.bind(t4(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!d()(nn(e.formik.values,e.name),nn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var o=n?nw(n):[];return t||(t=o[e]),t8(o.splice)&&o.splice(e,1),t8(o.every)&&o.every(function(e){return void 0===e})?[]:o},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,o=t.render,i=t.children,a=t.name,u=t3(t.formik,["validate","validationSchema"]),l=t5({},e,{form:u,name:a});return n?(0,s.createElement)(n,l):o?o(l):i?"function"==typeof i?i(l):ne(i)?null:s.Children.only(i):null},t}(s.Component);nS.defaultProps={validateOnChange:!0};var nC=(u=function(e){return(0,s.createElement)(na,null,function(t){return t||t0(!1),(0,s.createElement)(nS,Object.assign({},e,{formik:t}))})},l=nS.displayName||nS.name||nS.constructor&&nS.constructor.name||"Component",u.WrappedComponent=nS,u.displayName="FormikConnect("+l+")",t2()(u,nS))},73463:function(e,t,n){"use strict";var o=n(48570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?u:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=u;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var i=h(n);i&&i!==m&&e(t,i,o)}var u=d(n);f&&(u=u.concat(f(n)));for(var l=s(t),g=s(n),y=0;y<u.length;++y){var v=u[y];if(!a[v]&&!(o&&o[v])&&!(g&&g[v])&&!(l&&l[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,o,i){var a,u,l=8*i-o-1,s=(1<<l)-1,c=s>>1,d=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=256*a+e[t+f],f+=p,d-=8);for(u=a&(1<<-d)-1,a>>=-d,d+=o;d>0;u=256*u+e[t+f],f+=p,d-=8);if(0===a)a=1-c;else{if(a===s)return u?NaN:1/0*(h?-1:1);u+=Math.pow(2,o),a-=c}return(h?-1:1)*u*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var u,l,s,c=8*a-i-1,d=(1<<c)-1,f=d>>1,p=23===i?5960464477539062e-23:0,h=o?0:a-1,m=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,u=d):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+f>=1?t+=p/s:t+=p*Math.pow(2,1-f),t*s>=2&&(u++,s/=2),u+f>=d?(l=0,u=d):u+f>=1?(l=(t*s-1)*Math.pow(2,i),u+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;e[n+h]=255&l,h+=m,l/=256,i-=8);for(u=u<<i|l,c+=i;c>0;e[n+h]=255&u,h+=m,u/=256,c-=8);e[n+h-m]|=128*g}},39515:function(e,t,n){var o=n(38761)(n(37772),"DataView");e.exports=o},89612:function(e,t,n){var o=n(52118),i=n(96909),a=n(98138),u=n(4174),l=n(7942);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),u=n(72344),l=n(94769);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},10326:function(e,t,n){var o=n(38761)(n(37772),"Map");e.exports=o},96738:function(e,t,n){var o=n(92411),i=n(36417),a=n(86928),u=n(79493),l=n(24150);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},52760:function(e,t,n){var o=n(38761)(n(37772),"Promise");e.exports=o},2143:function(e,t,n){var o=n(38761)(n(37772),"Set");e.exports=o},45386:function(e,t,n){var o=n(96738),i=n(52842),a=n(52482);function u(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}u.prototype.add=u.prototype.push=i,u.prototype.has=a,e.exports=u},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),u=n(4417),l=n(8605),s=n(71418);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=u,c.prototype.has=l,c.prototype.set=s,e.exports=c},50857:function(e,t,n){var o=n(37772).Symbol;e.exports=o},79162:function(e,t,n){var o=n(37772).Uint8Array;e.exports=o},93215:function(e,t,n){var o=n(38761)(n(37772),"WeakMap");e.exports=o},49432:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72517:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},67552:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}},38333:function(e,t,n){var o=n(77832);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},34893:function(e){e.exports=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},1634:function(e,t,n){var o=n(36473),i=n(79631),a=n(86152),u=n(73226),l=n(39045),s=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),f=!n&&!d&&u(e),p=!n&&!d&&!f&&s(e),h=n||d||f||p,m=h?o(e.length,String):[],g=m.length;for(var y in e)(t||c.call(e,y))&&!(h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,g)))&&m.push(y);return m}},50343:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},65067:function(e){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},87064:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},50217:function(e){e.exports=function(e){return e.split("")}},28582:function(e,t,n){var o=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}},60091:function(e,t,n){var o=n(13940),i=n(41225),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var u=e[t];a.call(e,t)&&i(u,n)&&(void 0!==n||t in e)||o(e,t,n)}},22218:function(e,t,n){var o=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return -1}},67993:function(e,t,n){var o=n(752),i=n(90249);e.exports=function(e,t){return e&&o(t,i(t),e)}},55906:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e,t){return e&&o(t,i(t),e)}},13940:function(e,t,n){var o=n(83043);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},18874:function(e,t,n){var o=n(86571),i=n(72517),a=n(60091),u=n(67993),l=n(55906),s=n(92175),c=n(51522),d=n(7680),f=n(19987),p=n(13483),h=n(76939),m=n(70940),g=n(99917),y=n(8222),v=n(78725),b=n(86152),A=n(73226),x=n(4714),w=n(29259),_=n(43679),S=n(90249),C=n(18582),k="[object Arguments]",E="[object Function]",T="[object Object]",O={};O[k]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[E]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,I,R,M,j){var D,P=1&n,F=2&n,L=4&n;if(I&&(D=M?I(t,R,M,j):I(t)),void 0!==D)return D;if(!w(t))return t;var N=b(t);if(N){if(D=g(t),!P)return c(t,D)}else{var U=m(t),B=U==E||"[object GeneratorFunction]"==U;if(A(t))return s(t,P);if(U==T||U==k||B&&!M){if(D=F||B?{}:v(t),!P)return F?f(t,l(D,t)):d(t,u(D,t))}else{if(!O[U])return M?t:{};D=y(t,U,P)}}j||(j=new o);var W=j.get(t);if(W)return W;j.set(t,D),_(t)?t.forEach(function(o){D.add(e(o,n,I,o,t,j))}):x(t)&&t.forEach(function(o,i){D.set(i,e(o,n,I,i,t,j))});var z=L?F?h:p:F?C:S,V=N?void 0:z(t);return i(V||t,function(o,i){V&&(o=t[i=o]),a(D,i,e(o,n,I,i,t,j))}),D}},39413:function(e,t,n){var o=n(29259),i=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},85246:function(e,t,n){var o=n(45386),i=n(38333),a=n(34893),u=n(50343),l=n(47826),s=n(59950);e.exports=function(e,t,n,c){var d=-1,f=i,p=!0,h=e.length,m=[],g=t.length;if(!h)return m;n&&(t=u(t,l(n))),c?(f=a,p=!1):t.length>=200&&(f=s,p=!1,t=new o(t));t:for(;++d<h;){var y=e[d],v=null==n?y:n(y);if(y=c||0!==y?y:0,p&&v==v){for(var b=g;b--;)if(t[b]===v)continue t;m.push(y)}else f(t,v,c)||m.push(y)}return m}},21359:function(e){e.exports=function(e,t,n,o){for(var i=e.length,a=n+(o?1:-1);o?a--:++a<i;)if(t(e[a],a,e))return a;return -1}},62034:function(e,t,n){var o=n(65067),i=n(95882);e.exports=function e(t,n,a,u,l){var s=-1,c=t.length;for(a||(a=i),l||(l=[]);++s<c;){var d=t[s];n>0&&a(d)?n>1?e(d,n-1,a,u,l):o(l,d):u||(l[l.length]=d)}return l}},15308:function(e,t,n){var o=n(55463)();e.exports=o},26548:function(e,t,n){var o=n(15308),i=n(90249);e.exports=function(e,t){return e&&o(e,t,i)}},23919:function(e,t,n){var o=n(67552),i=n(61049);e.exports=function(e,t){return o(t,function(t){return i(e[t])})}},13324:function(e,t,n){var o=n(17297),i=n(33812);e.exports=function(e,t){t=o(t,e);for(var n=0,a=t.length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},1897:function(e,t,n){var o=n(65067),i=n(86152);e.exports=function(e,t,n){var a=t(e);return i(e)?a:o(a,n(e))}},53366:function(e,t,n){var o=n(50857),i=n(62107),a=n(37157),u=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?i(e):a(e)}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var o=n(21359),i=n(22195),a=n(66024);e.exports=function(e,t,n){return t==t?a(e,t,n):o(e,i,n)}},15183:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},88746:function(e,t,n){var o=n(51952),i=n(15125);e.exports=function e(t,n,a,u,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,u,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),u=n(17416),l=n(70940),s=n(86152),c=n(73226),d=n(77598),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,v){var b=s(e),A=s(t),x=b?p:l(e),w=A?p:l(t);x=x==f?h:x,w=w==f?h:w;var _=x==h,S=w==h,C=x==w;if(C&&c(e)){if(!c(t))return!1;b=!0,_=!1}if(C&&!_)return v||(v=new o),b||d(e)?i(e,t,n,g,y,v):a(e,t,x,n,g,y,v);if(!(1&n)){var k=_&&m.call(e,"__wrapped__"),E=S&&m.call(t,"__wrapped__");if(k||E){var T=k?e.value():e,O=E?t.value():t;return v||(v=new o),y(T,O,n,g,v)}}return!!C&&(v||(v=new o),u(e,t,n,g,y,v))}},74511:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},37036:function(e,t,n){var o=n(86571),i=n(88746);e.exports=function(e,t,n,a){var u=n.length,l=u,s=!a;if(null==e)return!l;for(e=Object(e);u--;){var c=n[u];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++u<l;){var d=(c=n[u])[0],f=e[d],p=c[1];if(s&&c[2]){if(void 0===f&&!(d in e))return!1}else{var h=new o;if(a)var m=a(f,p,d,e,t,h);if(!(void 0===m?i(p,f,3,a,h):m))return!1}}return!0}},22195:function(e){e.exports=function(e){return e!=e}},6840:function(e,t,n){var o=n(61049),i=n(47394),a=n(29259),u=n(87035),l=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(o(e)?f:l).test(u(e))}},8109:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},35522:function(e,t,n){var o=n(53366),i=n(61158),a=n(15125),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!u[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),u=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?u(e)?i(e[0],e[1]):o(e):l(e)}},86411:function(e,t,n){var o=n(16001),i=n(54248),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:function(e,t,n){var o=n(29259),i=n(16001),a=n(62966),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=i(e),n=[];for(var l in e)"constructor"==l&&(t||!u.call(e,l))||n.push(l);return n}},26423:function(e,t,n){var o=n(37036),i=n(49882),a=n(73477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},74716:function(e,t,n){var o=n(88746),i=n(72579),a=n(95041),u=n(21401),l=n(28792),s=n(73477),c=n(33812);e.exports=function(e,t){return u(e)&&l(t)?s(c(e),t):function(n){var u=i(n,e);return void 0===u&&u===t?a(n,e):o(t,u,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),u=n(25561),l=n(29259),s=n(18582),c=n(52434);e.exports=function e(t,n,d,f,p){t!==n&&a(n,function(a,s){if(p||(p=new o),l(a))u(t,n,s,d,e,f,p);else{var h=f?f(c(t,s),a,s+"",t,n,p):void 0;void 0===h&&(h=a),i(t,s,h)}},s)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),u=n(51522),l=n(78725),s=n(79631),c=n(86152),d=n(93746),f=n(73226),p=n(61049),h=n(29259),m=n(97030),g=n(77598),y=n(52434),v=n(63329);e.exports=function(e,t,n,b,A,x,w){var _=y(e,n),S=y(t,n),C=w.get(S);if(C){o(e,n,C);return}var k=x?x(_,S,n+"",e,t,w):void 0,E=void 0===k;if(E){var T=c(S),O=!T&&f(S),I=!T&&!O&&g(S);k=S,T||O||I?c(_)?k=_:d(_)?k=u(_):O?(E=!1,k=i(S,!0)):I?(E=!1,k=a(S,!0)):k=[]:m(S)||s(S)?(k=_,s(_)?k=v(_):(!h(_)||p(_))&&(k=l(S))):E=!1}E&&(w.set(S,k),A(k,S,b,x,w),w.delete(S)),o(e,n,k)}},20256:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:function(e,t,n){var o=n(13324);e.exports=function(e){return function(t){return o(t,e)}}},36060:function(e,t,n){var o=n(23059),i=n(43114),a=n(75251);e.exports=function(e,t){return a(i(e,t,o),e+"")}},86532:function(e,t,n){var o=n(86874),i=n(83043),a=n(23059),u=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=u},39872:function(e){e.exports=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+t];return a}},36473:function(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},1054:function(e,t,n){var o=n(50857),i=n(50343),a=n(86152),u=n(4795),l=1/0,s=o?o.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(u(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},51704:function(e,t,n){var o=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},29078:function(e,t,n){var o=n(17297),i=n(56974),a=n(62721),u=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[u(i(t))]}},50753:function(e,t,n){var o=n(50343);e.exports=function(e,t){return o(t,function(t){return e[t]})}},59950:function(e){e.exports=function(e,t){return e.has(t)}},17297:function(e,t,n){var o=n(86152),i=n(21401),a=n(54452),u=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(u(e))}},23895:function(e,t,n){var o=n(39872);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:o(e,t,n)}},10768:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&o(t,e[n],0)>-1;);return n}},79882:function(e,t,n){var o=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},92175:function(e,t,n){e=n.nmd(e);var o=n(37772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?o.Buffer:void 0,l=u?u.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}},34727:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var o=n(50857),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},6190:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},51522:function(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},752:function(e,t,n){var o=n(60091),i=n(13940);e.exports=function(e,t,n,a){var u=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),u?i(n,c,d):o(n,c,d)}return n}},7680:function(e,t,n){var o=n(752),i=n(80633);e.exports=function(e,t){return o(e,i(e),t)}},19987:function(e,t,n){var o=n(752),i=n(12680);e.exports=function(e,t){return o(e,i(e),t)}},24019:function(e,t,n){var o=n(37772)["__core-js_shared__"];e.exports=o},97263:function(e,t,n){var o=n(36060),i=n(82406);e.exports=function(e){return o(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(u=e.length>3&&"function"==typeof u?(a--,u):void 0,l&&i(n[0],n[1],l)&&(u=a<3?void 0:u,a=1),t=Object(t);++o<a;){var s=n[o];s&&e(t,s,o,u)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),u=o(t),l=u.length;l--;){var s=u[e?l:++i];if(!1===n(a[s],s,a))break}return t}}},48642:function(e,t,n){var o=n(97030);e.exports=function(e){return o(e)?void 0:e}},83043:function(e,t,n){var o=n(38761),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var o=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,u,l,s){var c=1&n,d=e.length,f=t.length;if(d!=f&&!(c&&f>d))return!1;var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=-1,g=!0,y=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++m<d;){var v=e[m],b=t[m];if(u)var A=c?u(b,v,m,t,e,s):u(v,b,m,e,t,s);if(void 0!==A){if(A)continue;g=!1;break}if(y){if(!i(t,function(e,t){if(!a(y,t)&&(v===e||l(v,e,n,u,s)))return y.push(t)})){g=!1;break}}else if(!(v===b||l(v,b,n,u,s))){g=!1;break}}return s.delete(e),s.delete(t),g}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),u=n(74871),l=n(75179),s=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=l;case"[object Set]":var m=1&o;if(h||(h=s),e.size!=t.size&&!m)break;var g=p.get(e);if(g)return g==t;o|=2,p.set(e,t);var y=u(h(e),h(t),o,c,f,p);return p.delete(e),y;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},17416:function(e,t,n){var o=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,u,l){var s=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!s)return!1;for(var f=d;f--;){var p=c[f];if(!(s?p in t:i.call(t,p)))return!1}var h=l.get(e),m=l.get(t);if(h&&m)return h==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var y=s;++f<d;){var v=e[p=c[f]],b=t[p];if(a)var A=s?a(b,v,p,t,e,l):a(v,b,p,e,t,l);if(!(void 0===A?v===b||u(v,b,n,a,l):A)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(g=!1)}return l.delete(e),l.delete(t),g}},29097:function(e,t,n){var o=n(35676),i=n(43114),a=n(75251);e.exports=function(e){return a(i(e,void 0,o),e+"")}},51242:function(e,t,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},13483:function(e,t,n){var o=n(1897),i=n(80633),a=n(90249);e.exports=function(e){return o(e,a,i)}},76939:function(e,t,n){var o=n(1897),i=n(12680),a=n(18582);e.exports=function(e){return o(e,a,i)}},27937:function(e,t,n){var o=n(98304);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:function(e,t,n){var o=n(28792),i=n(90249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],u=e[a];t[n]=[a,u,o(u)]}return t}},38761:function(e,t,n){var o=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return o(n)?n:void 0}},47353:function(e,t,n){var o=n(60241)(Object.getPrototypeOf,Object);e.exports=o},62107:function(e,t,n){var o=n(50857),i=Object.prototype,a=i.hasOwnProperty,u=i.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var i=u.call(e);return o&&(t?e[l]=n:delete e[l]),i}},80633:function(e,t,n){var o=n(67552),i=n(30981),a=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,l=u?function(e){return null==e?[]:o(u(e=Object(e)),function(t){return a.call(e,t)})}:i;e.exports=l},12680:function(e,t,n){var o=n(65067),i=n(47353),a=n(80633),u=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:u;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),u=n(2143),l=n(93215),s=n(53366),c=n(87035),d="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",g=c(o),y=c(i),v=c(a),b=c(u),A=c(l),x=s;(o&&x(new o(new ArrayBuffer(1)))!=m||i&&x(new i)!=d||a&&x(a.resolve())!=f||u&&x(new u)!=p||l&&x(new l)!=h)&&(x=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case g:return m;case y:return d;case v:return f;case b:return p;case A:return h}return t}),e.exports=x},98109:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1369:function(e,t,n){var o=n(17297),i=n(79631),a=n(86152),u=n(39045),l=n(61158),s=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,f=!1;++c<d;){var p=s(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=d?f:!!(d=null==e?0:e.length)&&l(d)&&u(p,d)&&(a(e)||i(e))}},33880:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52118:function(e,t,n){var o=n(99191);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},96909:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}},7942:function(e,t,n){var o=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},8222:function(e,t,n){var o=n(79882),i=n(34727),a=n(96058),u=n(70169),l=n(6190);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return u(e)}}},78725:function(e,t,n){var o=n(39413),i=n(47353),a=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}},95882:function(e,t,n){var o=n(50857),i=n(79631),a=n(86152),u=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(u&&e&&e[u])}},39045:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:function(e,t,n){var o=n(41225),i=n(67878),a=n(39045),u=n(29259);e.exports=function(e,t,n){if(!u(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&a(t,n.length)):"string"==l&&t in n)&&o(n[t],e)}},21401:function(e,t,n){var o=n(86152),i=n(4795),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||u.test(e)||!a.test(e)||null!=t&&e in Object(t)}},98304:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:function(e,t,n){var o,i=n(24019),a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},16001:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:function(e,t,n){var o=n(29259);e.exports=function(e){return e==e&&!o(e)}},3945:function(e){e.exports=function(){this.__data__=[],this.size=0}},21846:function(e,t,n){var o=n(22218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},88028:function(e,t,n){var o=n(22218);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},72344:function(e,t,n){var o=n(22218);e.exports=function(e){return o(this.__data__,e)>-1}},94769:function(e,t,n){var o=n(22218);e.exports=function(e,t){var n=this.__data__,i=o(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var o=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}},36417:function(e,t,n){var o=n(27937);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).get(e)}},79493:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).has(e)}},24150:function(e,t,n){var o=n(27937);e.exports=function(e,t){var n=o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var o=n(30733);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var o=n(38761)(Object,"create");e.exports=o},54248:function(e,t,n){var o=n(60241)(Object.keys,Object);e.exports=o},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var o=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=l},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var o=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,u=-1,l=i(a.length-t,0),s=Array(l);++u<l;)s[u]=a[t+u];u=-1;for(var c=Array(t+1);++u<t;)c[u]=a[u];return c[t]=n(s),o(e,this,c)}}},62721:function(e,t,n){var o=n(13324),i=n(39872);e.exports=function(e,t){return t.length<2?e:o(e,i(t,0,-1))}},37772:function(e,t,n){var o=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},52434:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},75251:function(e,t,n){var o=n(86532),i=n(97787)(o);e.exports=i},97787:function(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var i=t(),a=16-(i-o);if(o=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var o=n(80235);e.exports=function(){this.__data__=new o,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var o=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var u=n.__data__;if(!i||u.length<199)return u.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(u)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return -1}},8435:function(e,t,n){var o=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):o(e)}},54452:function(e,t,n){var o=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,u=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,o,i){t.push(o?i.replace(a,"$1"):n||e)}),t});e.exports=u},33812:function(e,t,n){var o=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,u].join("|")+")"+s+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,u,"["+t+"]"].join("|")+")"+(s+l+c),"g");e.exports=function(e){return e.match(d)||[]}},60019:function(e,t,n){var o=n(60091),i=n(752),a=n(97263),u=n(67878),l=n(16001),s=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||u(t)){i(t,s(t),e);return}for(var n in t)c.call(t,n)&&o(e,n,t[n])});e.exports=d},9850:function(e,t,n){var o=n(18874);e.exports=function(e){return o(e,5)}},60417:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var a=e[t];a&&(i[o++]=a)}return i}},86874:function(e){e.exports=function(e){return function(){return e}}},17335:function(e,t,n){var o=n(85246),i=n(62034),a=n(36060),u=n(93746),l=a(function(e,t){return u(e)?o(e,i(t,1,u,!0)):[]});e.exports=l},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var o=n(62034);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},1910:function(e,t,n){var o=n(23919),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},72579:function(e,t,n){var o=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:o(e,t);return void 0===i?n:i}},95041:function(e,t,n){var o=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,o)}},23059:function(e){e.exports=function(e){return e}},11886:function(e,t,n){var o=n(77832),i=n(67878),a=n(85505),u=n(38101),l=n(98346),s=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?u(n):0;var d=e.length;return n<0&&(n=s(d+n,0)),a(e)?n<=d&&e.indexOf(t,n)>-1:!!d&&o(e,t,n)>-1}},79631:function(e,t,n){var o=n(15183),i=n(15125),a=Object.prototype,u=a.hasOwnProperty,l=a.propertyIsEnumerable,s=o(function(){return arguments}())?o:function(e){return i(e)&&u.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var o=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},93746:function(e,t,n){var o=n(67878),i=n(15125);e.exports=function(e){return i(e)&&o(e)}},73226:function(e,t,n){e=n.nmd(e);var o=n(37772),i=n(36330),a=t&&!t.nodeType&&t,u=a&&e&&!e.nodeType&&e,l=u&&u.exports===a?o.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||i},92301:function(e,t,n){var o=n(15125),i=n(97030);e.exports=function(e){return o(e)&&1===e.nodeType&&!i(e)}},61049:function(e,t,n){var o=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var o=n(74511),i=n(47826),a=n(4146),u=a&&a.isMap,l=u?i(u):o;e.exports=l},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var o=n(53366),i=n(47353),a=n(15125),u=Object.prototype,l=Function.prototype.toString,s=u.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},43679:function(e,t,n){var o=n(8109),i=n(47826),a=n(4146),u=a&&a.isSet,l=u?i(u):o;e.exports=l},85505:function(e,t,n){var o=n(53366),i=n(86152),a=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==o(e)}},4795:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},77598:function(e,t,n){var o=n(35522),i=n(47826),a=n(4146),u=a&&a.isTypedArray,l=u?i(u):o;e.exports=l},90249:function(e,t,n){var o=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?o(e):i(e)}},18582:function(e,t,n){var o=n(1634),i=n(18390),a=n(67878);e.exports=function(e){return a(e)?o(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},34519:function(e,t,n){var o=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){o(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var o=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,o);return n.cache=a.set(i,u)||a,u};return n.cache=new(i.Cache||o),n}i.Cache=o,e.exports=i},98537:function(e,t,n){var o=n(84565),i=n(97263)(function(e,t,n){o(e,t,n)});e.exports=i},17620:function(e,t,n){var o=n(50343),i=n(18874),a=n(29078),u=n(17297),l=n(752),s=n(48642),c=n(29097),d=n(76939),f=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=o(t,function(t){return t=u(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,s));for(var f=t.length;f--;)a(n,t[f]);return n});e.exports=f},65798:function(e,t,n){var o=n(20256),i=n(82952),a=n(21401),u=n(33812);e.exports=function(e){return a(e)?o(u(e)):i(e)}},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},5707:function(e,t,n){var o=n(7642),i=1/0;e.exports=function(e){return e?(e=o(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var o=n(5707);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var o=n(51704),i=n(29259),a=n(4795),u=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return u;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=s.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?u:+e}},63329:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e){return o(e,i(e))}},66188:function(e,t,n){var o=n(1054);e.exports=function(e){return null==e?"":o(e)}},5648:function(e,t,n){var o=n(1054),i=n(51704),a=n(23895),u=n(10768),l=n(51821),s=n(8435),c=n(66188);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return i(e);if(!e||!(t=o(t)))return e;var d=s(e),f=s(t),p=l(d,f),h=u(d,f)+1;return a(d,p,h).join("")}},74930:function(e,t,n){var o=n(66188),i=0;e.exports=function(e){var t=++i;return o(e)+t}},98346:function(e,t,n){var o=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},70314:function(e,t,n){e.exports=n(11809)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(91853)}])},27501:function(e,t,n){"use strict";var o=n(77859),i=n(70314),a=n.n(i),u=window;u.__sentryRewritesTunnelPath__=void 0,u.SENTRY_RELEASE={id:"144d070ab52d6a2dd0df48087f02d11582236b7d"},u.__rewriteFramesAssetPrefixPath__="";let{publicRuntimeConfig:l}=a()();o.S1({dsn:"https://".concat("52e42fce46f0404c92a1169b0dc636dc","@").concat("o146123.ingest.sentry.io","/").concat("4504179265437696"),tracesSampleRate:.05,tunnel:"/api/t",environment:l.sentryEnvironment})},94684:function(e,t){"use strict";var n,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return d},ACTION_REFRESH:function(){return u},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return h}});let u="refresh",l="navigate",s="restore",c="server-patch",d="prefetch",f="fast-refresh",p="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=o||(o={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8250:function(e,t,n){"use strict";function o(e,t,n,o){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}}),n(62476),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let o=n(17653),i=n(52322),a=o._(n(2784)),u=n(98047),l=n(26790),s=n(47973),c=n(49274),d=n(78074),f=n(17942),p=n(1586),h=n(70514),m=n(8250),g=n(87891),y=n(94684),v=new Set;function b(e,t,n,o,i,a){if(a||(0,l.isLocalURL)(t)){if(!o.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function A(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:s,as:v,children:x,prefetch:w=null,passHref:_,replace:S,shallow:C,scroll:k,locale:E,onClick:T,onMouseEnter:O,onTouchStart:I,legacyBehavior:R=!1,...M}=e;n=x,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let j=a.default.useContext(f.RouterContext),D=a.default.useContext(p.AppRouterContext),P=null!=j?j:D,F=!j,L=!1!==w,N=null===w?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:U,as:B}=a.default.useMemo(()=>{if(!j){let e=A(s);return{href:e,as:v?A(v):e}}let[e,t]=(0,u.resolveHref)(j,s,!0);return{href:e,as:v?(0,u.resolveHref)(j,v):t||e}},[j,s,v]),W=a.default.useRef(U),z=a.default.useRef(B);R&&(o=a.default.Children.only(n));let V=R?o&&"object"==typeof o&&o.ref:t,[K,$,H]=(0,h.useIntersection)({rootMargin:"200px"}),q=a.default.useCallback(e=>{(z.current!==B||W.current!==U)&&(H(),z.current=B,W.current=U),K(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[B,V,U,H,K]);a.default.useEffect(()=>{P&&$&&L&&b(P,U,B,{locale:E},{kind:N},F)},[B,U,$,E,L,null==j?void 0:j.locale,P,F,N]);let Z={ref:q,onClick(e){R||"function"!=typeof T||T(e),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),P&&!e.defaultPrevented&&function(e,t,n,o,i,u,s,c,d){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:u,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(p):p()}(e,P,U,B,S,C,k,E,F)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),P&&(L||!F)&&b(P,U,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},F)},onTouchStart:function(e){R||"function"!=typeof I||I(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),P&&(L||!F)&&b(P,U,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},F)}};if((0,c.isAbsoluteUrl)(B))Z.href=B;else if(!R||_||"a"===o.type&&!("href"in o.props)){let e=void 0!==E?E:null==j?void 0:j.locale,t=(null==j?void 0:j.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==j?void 0:j.locales,null==j?void 0:j.domainLocales);Z.href=t||(0,g.addBasePath)((0,d.addLocale)(B,e,null==j?void 0:j.defaultLocale))}return R?a.default.cloneElement(o,Z):(0,i.jsx)("a",{...M,...Z,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let o=n(2784),i=n(25132),a="function"==typeof IntersectionObserver,u=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[d,f]=(0,o.useState)(!1),p=(0,o.useRef)(null),h=(0,o.useCallback)(e=>{p.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:o,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},o=l.find(e=>e.root===n.root&&e.margin===n.margin);if(o&&(t=u.get(o)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),u.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),u.delete(o);let e=l.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!d){let e=(0,i.requestIdleCallback)(()=>f(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,d,p.current]),[h,d,(0,o.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return u}});let o=n(17653);n(52322),n(2784);let i=o._(n(56800));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let n=i.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e});let l=(o={...o,...t}).loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete o.webpack,delete o.modules,u(n,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let o=n(17653)._(n(2784)).default.createContext(null)},56800:function(e,t,n){"use strict";/**
|
|
550
|
+
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|m(e,t),o=u(n),i=o.write(e,t);return i!==n&&(o=o.slice(0,i)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(I(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);var i=function(e){if(l.isBuffer(e)){var t,n=0|h(e.length),o=u(n);return 0===o.length||e.copy(o,0,0,n),o}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?u(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),u(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),n=u(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function p(e,t,n){var o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),l.prototype),o}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(i)return o?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i,a,u=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=t;a<n;++a)i+=R[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return function(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}(this,t,n);case"latin1":case"binary":return function(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}(this,t,n);case"base64":return i=t,a=n,0===i&&a===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var o=e.slice(t,n),i="",a=0;a<o.length-1;a+=2)i+=String.fromCharCode(o[a]+256*o[a+1]);return i}(this,t,n);default:if(u)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),u=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,i){var a;if(0===e.length)return -1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,o,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,n,o,i){var a,u=1,l=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;u=2,l/=2,s/=2,n/=2}function c(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(i){var d=-1;for(a=n;a<l;a++)if(c(e,a)===c(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===s)return d*u}else -1!==d&&(a-=a-d),d=-1}else for(n+s>l&&(n=l-s),a=n;a>=0;a--){for(var f=!0,p=0;p<s;p++)if(c(e,a+p)!==c(t,p)){f=!1;break}if(f)return a}return -1}function A(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var a,u,l,s,c=e[i],d=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(d=c);break;case 2:(192&(a=e[i+1]))==128&&(s=(31&c)<<6|63&a)>127&&(d=s);break;case 3:a=e[i+1],u=e[i+2],(192&a)==128&&(192&u)==128&&(s=(15&c)<<12|(63&a)<<6|63&u)>2047&&(s<55296||s>57343)&&(d=s);break;case 4:a=e[i+1],u=e[i+2],l=e[i+3],(192&a)==128&&(192&u)==128&&(192&l)==128&&(s=(15&c)<<18|(63&a)<<12|(63&u)<<6|63&l)>65535&&s<1114112&&(d=s)}null===d?(d=65533,f=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",o=0;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}function x(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,o,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+o>e.length)throw RangeError("Index out of range")}function _(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,o,a){return t=+t,n>>>=0,a||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function C(e,t,n,o,a){return t=+t,n>>>=0,a||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,o,52,8),n+8}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?u(e):void 0!==t?"string"==typeof n?u(e).fill(t,n):u(e).fill(t):u(e)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(I(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),I(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,o=t.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,o=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(I(a,Uint8Array))i+a.length>o.length?l.from(a).copy(o,i):Uint8Array.prototype.set.call(o,a,i);else if(l.isBuffer(a))a.copy(o,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return o},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?A(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(I(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,u=n-t,s=Math.min(a,u),c=this.slice(o,i),d=e.slice(t,n),f=0;f<s;++f)if(c[f]!==d[f]){a=c[f],u=d[f];break}return a<u?-1:u<a?1:0},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,u,l,s,c,d,f,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var h=!1;;)switch(o){case"hex":return function(e,t,n,o){n=Number(n)||0;var i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;var a=t.length;o>a/2&&(o=a/2);for(var u=0;u<o;++u){var l=parseInt(t.substr(2*u,2),16);if(l!=l)break;e[n+u]=l}return u}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,O(E(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return u=t,l=n,O(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,u,l);case"base64":return s=t,c=n,O(T(e),this,s,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,f=n,O(function(e,t){for(var n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)o=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(o);return i}(e,this.length-d),this,d,f);default:if(h)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),h=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e],i=1,a=0;++a<t&&(i*=256);)o+=this[e+a]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=this[e],i=1,a=0;++a<t&&(i*=256);)o+=this[e+a]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var o=t,i=1,a=this[e+--o];o>0&&(i*=256);)a+=this[e+--o]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=1,u=0;for(this[t]=255&e;++u<n&&(a*=256);)this[t+u]=e/a&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var a=n-1,u=1;for(this[t+a]=255&e;--a>=0&&(u*=256);)this[t+a]=e/u&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,u=1,l=0;for(this[t]=255&e;++a<n&&(u*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/u>>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,u=1,l=0;for(this[t+a]=255&e;--a>=0&&(u*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/u>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===o&&a<128||"latin1"===o)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var u=l.isBuffer(e)?e:l.from(e,o),s=u.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=u[i%s]}return this};var k=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var n,o=e.length,i=null,a=[],u=0;u<o;++u){if((n=e.charCodeAt(u))>55295&&n<57344){if(!i){if(n>56319||u+1===o){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function T(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,o){for(var i=0;i<o&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var o=16*n,i=0;i<16;++i)t[o+i]=e[n]+e[i];return t}()},44005:function(e,t,n){var o,i=n(48834).lW,a=n(34406);o=function(e,t,n,o,u,l,s,c,d,f,p,h,m,g){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,(function(t){return e[t]}).bind(null,i));return o},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="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ClientHintsMetaTag",function(){return nT}),n.d(t,"Cloudinary",function(){return nL}),n.d(t,"Condition",function(){return ts}),n.d(t,"Configuration",function(){return tp}),n.d(t,"crc32",function(){return b}),n.d(t,"Expression",function(){return ti}),n.d(t,"FetchLayer",function(){return tk}),n.d(t,"HtmlTag",function(){return t3}),n.d(t,"ImageTag",function(){return na}),n.d(t,"Layer",function(){return th}),n.d(t,"PictureTag",function(){return ng}),n.d(t,"SubtitlesLayer",function(){return tw}),n.d(t,"TextLayer",function(){return tv}),n.d(t,"Transformation",function(){return t2}),n.d(t,"utf8_encode",function(){return v}),n.d(t,"Util",function(){return y}),n.d(t,"VideoTag",function(){return nS});var o,u,l,s,c,d,f,p,h,m,g={};n.r(g),n.d(g,"VERSION",function(){return ei}),n.d(g,"CF_SHARED_CDN",function(){return ea}),n.d(g,"OLD_AKAMAI_SHARED_CDN",function(){return eu}),n.d(g,"AKAMAI_SHARED_CDN",function(){return el}),n.d(g,"SHARED_CDN",function(){return es}),n.d(g,"DEFAULT_TIMEOUT_MS",function(){return ec}),n.d(g,"DEFAULT_POSTER_OPTIONS",function(){return ed}),n.d(g,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return ef}),n.d(g,"SEO_TYPES",function(){return ep}),n.d(g,"DEFAULT_IMAGE_PARAMS",function(){return eh}),n.d(g,"DEFAULT_VIDEO_PARAMS",function(){return em}),n.d(g,"DEFAULT_VIDEO_SOURCES",function(){return eg}),n.d(g,"DEFAULT_EXTERNAL_LIBRARIES",function(){return ey}),n.d(g,"PLACEHOLDER_IMAGE_MODES",function(){return ev}),n.d(g,"ACCESSIBILITY_MODES",function(){return eb}),n.d(g,"URL_KEYS",function(){return eA});var y={};n.r(y),n.d(y,"getSDKAnalyticsSignature",function(){return C}),n.d(y,"getAnalyticsOptions",function(){return k}),n.d(y,"assign",function(){return T.a}),n.d(y,"cloneDeep",function(){return I.a}),n.d(y,"compact",function(){return M.a}),n.d(y,"difference",function(){return D.a}),n.d(y,"functions",function(){return F.a}),n.d(y,"identity",function(){return N.a}),n.d(y,"includes",function(){return B.a}),n.d(y,"isArray",function(){return z.a}),n.d(y,"isPlainObject",function(){return K.a}),n.d(y,"isString",function(){return H.a}),n.d(y,"merge",function(){return Z.a}),n.d(y,"contains",function(){return B.a}),n.d(y,"isIntersectionObserverSupported",function(){return en}),n.d(y,"isNativeLazyLoadSupported",function(){return er}),n.d(y,"detectIntersection",function(){return eo}),n.d(y,"omit",function(){return ew}),n.d(y,"allStrings",function(){return e_}),n.d(y,"without",function(){return eS}),n.d(y,"isNumberLike",function(){return eC}),n.d(y,"smartEscape",function(){return ek}),n.d(y,"defaults",function(){return eE}),n.d(y,"objectProto",function(){return eT}),n.d(y,"objToString",function(){return eO}),n.d(y,"isObject",function(){return eI}),n.d(y,"funcTag",function(){return eR}),n.d(y,"reWords",function(){return ej}),n.d(y,"camelCase",function(){return eD}),n.d(y,"snakeCase",function(){return eP}),n.d(y,"convertKeys",function(){return eF}),n.d(y,"withCamelCaseKeys",function(){return eL}),n.d(y,"withSnakeCaseKeys",function(){return eN}),n.d(y,"base64Encode",function(){return eU}),n.d(y,"base64EncodeURL",function(){return eB}),n.d(y,"extractUrlParams",function(){return eW}),n.d(y,"patchFetchFormat",function(){return ez}),n.d(y,"optionConsume",function(){return eV}),n.d(y,"isEmpty",function(){return eK}),n.d(y,"isAndroid",function(){return eH}),n.d(y,"isEdge",function(){return eq}),n.d(y,"isChrome",function(){return eZ}),n.d(y,"isSafari",function(){return eG}),n.d(y,"isElement",function(){return Y.a}),n.d(y,"isFunction",function(){return J.a}),n.d(y,"trim",function(){return ee.a}),n.d(y,"getData",function(){return eY}),n.d(y,"setData",function(){return eQ}),n.d(y,"getAttribute",function(){return eJ}),n.d(y,"setAttribute",function(){return eX}),n.d(y,"removeAttribute",function(){return e0}),n.d(y,"setAttributes",function(){return e1}),n.d(y,"hasClass",function(){return e2}),n.d(y,"addClass",function(){return e5}),n.d(y,"getStyles",function(){return e3}),n.d(y,"cssExpand",function(){return e4}),n.d(y,"domStyle",function(){return e6}),n.d(y,"curCSS",function(){return e8}),n.d(y,"cssValue",function(){return e9}),n.d(y,"augmentWidthOrHeight",function(){return e7}),n.d(y,"getWidthOrHeight",function(){return tt}),n.d(y,"width",function(){return tn});var v=function(e){var t,n,o,i,a,u,l,s;if(null==e)return"";for(u=e+"",s="",a=void 0,o=void 0,l=0,a=o=0,l=u.length,i=0;i<l;)t=u.charCodeAt(i),n=null,t<128?o++:n=t>127&&t<2048?String.fromCharCode(t>>6|192,63&t|128):String.fromCharCode(t>>12|224,t>>6&63|128,63&t|128),null!==n&&(o>a&&(s+=u.slice(a,o)),s+=n,a=o=i+1),i++;return o>a&&(s+=u.slice(a,l)),s},b=function(e){var t,n,o,i,a,u;for(e=v(e),i="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",a=0,u=0,t=-1,n=0,o=e.length;n<o;)u=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*u,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function A(e,t,n){return(t>>=0,n=String(void 0!==n?n:" "),e.length>t)?String(e):((t-=e.length)>n.length&&(n+=function(e,t){for(var n="";t>0;)n+=e,t--;return n}(n,t/n.length)),n.slice(0,t)+String(e))}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var w=0,_={};function S(e){var t="",n=e.split(".").length,o=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(function(e){return A(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=A(o,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(function(e){t+=_[e]}),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t,n=(t=e.techVersion.split("."),"".concat(t[0],".").concat(t[1])),o=S(e.sdkSemver),i=S(n),a=e.feature,u=e.sdkCode;return"".concat("A").concat(u).concat(o).concat(i).concat(a)}catch(e){return"E"}}function k(e){var t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,feature:"0"};return e.urlAnalytics?(e.accessibility&&(t.feature="D"),"lazy"===e.loading&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t):{}}((function(e){if(Array.isArray(e))return x(e)})(o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return x(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach(function(e){var t=w.toString(2);_[t=A(t,6,"0")]=e,w++});var E=n("lodash/assign"),T=n.n(E),O=n("lodash/cloneDeep"),I=n.n(O),R=n("lodash/compact"),M=n.n(R),j=n("lodash/difference"),D=n.n(j),P=n("lodash/functions"),F=n.n(P),L=n("lodash/identity"),N=n.n(L),U=n("lodash/includes"),B=n.n(U),W=n("lodash/isArray"),z=n.n(W),V=n("lodash/isPlainObject"),K=n.n(V),$=n("lodash/isString"),H=n.n($),q=n("lodash/merge"),Z=n.n(q),G=n("lodash/isElement"),Y=n.n(G),Q=n("lodash/isFunction"),J=n.n(Q),X=n("lodash/trim"),ee=n.n(X);function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(){return("undefined"==typeof window?"undefined":et(window))==="object"&&window.IntersectionObserver}function er(){return("undefined"==typeof HTMLImageElement?"undefined":et(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function eo(e,t){try{if(er()||!en()){t();return}var n=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t(),n.unobserve(e.target))})},{threshold:[0,.01]});n.observe(e)}catch(e){t()}}var ei="2.5.0",ea="d3jpl91pxevbkh.cloudfront.net",eu="cloudinary-a.akamaihd.net",el="res.cloudinary.com",es=el,ec=1e4,ed={format:"jpg",resource_type:"video"},ef=["webm","mp4","ogv"],ep={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},eh={resource_type:"image",transformation:[],type:"upload"},em={fallback_content:"",resource_type:"video",source_transformation:{},source_types:ef,transformation:[],type:"upload"},eg=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],ey={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ev={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},eb={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eA=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function ex(e){return(ex="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ew(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!B()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var e_=function(e){return e.length&&e.every(H.a)},eS=function(e,t){return e.filter(function(e){return e!==t})},eC=function(e){return null!=e&&!isNaN(parseFloat(e))},ek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,function(e){return e.split("").map(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}).join("")})},eE=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(function(e,t){var n,o;for(n in t)o=t[n],void 0===e[n]&&(e[n]=o);return e},e)},eT=Object.prototype,eO=eT.toString,eI=function(e){var t;return t=ex(e),!!e&&("object"===t||"function"===t)},eR="[object Function]",eM=function(e){return eI(e)&&eO.call(e)===eR},ej=RegExp((l="[A-Z]")+"+(?="+l+(u="[a-z]+")+")|"+l+"?"+u+"|"+l+"+|[0-9]+","g"),eD=function(e){var t=e.match(ej);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eP=function(e){var t=e.match(ej);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eF=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eK(i)||(n[i]=o);return n},eL=function(e){return eF(e,eD)},eN=function(e){return eF(e,eP)},eU="undefined"!=typeof btoa&&eM(btoa)?btoa:void 0!==i&&eM(i)?function(e){return e instanceof i||(e=new i.from(String(e),"binary")),e.toString("base64")}:function(e){throw Error("No base64 encoding function found")},eB=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return eU(e)};function eW(e){return eA.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function ez(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eV(e,"format"))}function eV(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eK(e){if(null==e)return!0;if("number"==typeof e.length)return 0===e.length;if("number"==typeof e.size)return 0===e.size;if("object"==ex(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function e$(){return navigator&&navigator.userAgent||""}function eH(){var e=e$();return/Android/i.test(e)}function eq(){var e=e$();return/Edg/i.test(e)}function eZ(){var e=e$();return!eq()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eG(){var e=e$();return/Safari/i.test(e)&&!eZ()&&!eH()&&!eq()}var eY=function(e,t){switch(!1){case null!=e:return;case!J()(e.getAttribute):return e.getAttribute("data-".concat(t));case!J()(e.getAttr):return e.getAttr("data-".concat(t));case!J()(e.data):return e.data(t);case!(J()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&Y()(e)):return jQuery(e).data(t)}},eQ=function(e,t,n){switch(!1){case null!=e:return;case!J()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!J()(e.setAttr):return e.setAttr("data-".concat(t),n);case!J()(e.data):return e.data(t,n);case!(J()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&Y()(e)):return jQuery(e).data(t,n)}},eJ=function(e,t){switch(!1){case null!=e:return;case!J()(e.getAttribute):return e.getAttribute(t);case!J()(e.attr):return e.attr(t);case!J()(e.getAttr):return e.getAttr(t)}},eX=function(e,t,n){switch(!1){case null!=e:return;case!J()(e.setAttribute):return e.setAttribute(t,n);case!J()(e.attr):return e.attr(t,n);case!J()(e.setAttr):return e.setAttr(t,n)}},e0=function(e,t){switch(!1){case null!=e:return;case!J()(e.removeAttribute):return e.removeAttribute(t);default:return eX(e,void 0)}},e1=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(eX(e,n,i)):o.push(e0(e,n));return o},e2=function(e,t){if(Y()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e5=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=ee()("".concat(e.className," ").concat(t))},e3=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e4=["Top","Right","Bottom","Left"];s=function(e,t){var n,o;return n=9===e.nodeType?e.documentElement:e,e===(o=t&&t.parentNode)||!!(o&&1===o.nodeType&&n.contains(o))};var e6=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},e8=function(e,t,n){var o,i,a,u,l,c;return(u=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e3(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||s(e.ownerDocument,e)||(a=e6(e,t)),te.test(a)&&u.test(t)&&(c=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=c,l.minWidth=i,l.maxWidth=o)),void 0!==a)?a+"":a},e9=function(e,t,n,o){var i;return(i=e8(e,t,o),n)?parseFloat(i):i},e7=function(e,t,n,o,i){var a,u,l,s,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,u=(s="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<u;a++)l=s[a],"margin"===n&&(c+=e9(e,n+l,!0,i)),o?("content"===n&&(c-=e9(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=e9(e,"border".concat(l,"Width"),!0,i))):(c+=e9(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=e9(e,"border".concat(l,"Width"),!0,i)));return c},te=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),tt=function(e,t,n){var o,i,a,u;if(u=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e3(e),o="border-box"===e9(e,"boxSizing",!1,i),a<=0||null==a){if(((a=e8(e,t,i))<0||null==a)&&(a=e.style[t]),te.test(a))return a;u=o&&a===e.style[t],a=parseFloat(a)||0}return a+e7(e,t,n||(o?"border":"content"),u,i)},tn=function(e){return tt(e,"width","content")};function tr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var to=function(){var e,t;function n(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.expressions=[],null!=e&&this.expressions.push(n.normalize(e))}return e=[{key:"serialize",value:function(){return n.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,o){return null!=n.OPERATORS[t]&&(t=n.OPERATORS[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(o)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],t=[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,function(e){return n.OPERATORS[e]});var o="("+Object.keys(n.PREDEFINED_VARS).map(function(e){return":".concat(e,"|").concat(e)}).join("|")+")",i=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(o),"g");return(e=e.replace(i,function(e){return n.PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],e&&tr(n.prototype,e),t&&tr(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();to.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},to.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},to.BOUNDRY="[ _]+";var ti=to;function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(e,t){return(tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tl(e){return(tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ts=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tu(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tl(i);return e=t?Reflect.construct(n,arguments,tl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return n=[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(ti);function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var td=function(){var e;function t(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.configuration=null==e?{}:I()(e),eE(this.configuration,tf)}return e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return T()(this.configuration,I()(e)),this}},{key:"fromDocument",value:function(){var e,t,n,o;if(o="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=o.length;t<n;t++)e=o[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,o=this;return null!=a&&a.env&&a.env.CLOUDINARY_URL&&(e=a.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split("="))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),2!==a.length);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tc(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tc(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],a=n[1];null==a&&(a=!0),o.configuration[i]=a}))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case!H()(e):return this.get(e);case!K()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return I()(this.configuration)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),tf={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"};td.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var tp=td,th=function(){var e;function t(e){var n=this;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach(function(t){var o;return n.options[t]=null!=(o=e[t])?o:e[eP(t)]})}return e=[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e;if(e=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),M()(e).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tm(e){return(tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tg(e,t){return(tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ty(e){return(ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=ty(i);return e=t?Reflect.construct(n,arguments,ty(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),n=["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"],null!=e&&n.forEach(function(n){var o;return t.options[n]=null!=(o=e[n])?o:e[eP(n)]}),t.options.resourceType="text",t}return n=[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"textStyle",value:function(e){return this.options.textStyle=e,this}},{key:"toString",value:function(){var e,t,n,o,i,a,u,l,s,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eK(o),n=!eK(l),t&&n||!t&&!n)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,u=0,c=ek(this.options.text,/[,\/]/g),s="";a=i.exec(c);)s+=ek(c.slice(u,a.index))+a[0],u=a.index+a[0].length;s+=ek(c.slice(u))}return e=[this.options.resourceType,l,o,s],M()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eK(this.options.textStyle))return this.options.textStyle;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),eK(this.options.letterSpacing)&&!eC(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eK(this.options.lineSpacing)&&!eC(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eK(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eK(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eK(M()(e))){if(eK(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eK(this.options.fontSize)&&!eC(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=M()(e).join("_")}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(th);function tb(e){return(tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tA(e,t){return(tA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tx(e){return(tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tA(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tx(o);return e=t?Reflect.construct(n,arguments,tx(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tb(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).options.resourceType="subtitles",t}return Object.defineProperty(o,"prototype",{writable:!1}),o}(tv);function t_(e){return(t_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tS(e,t){return(tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tC(e){return(tC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tC(i);return e=t?Reflect.construct(n,arguments,tC(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===t_(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),H()(e)?t.options.url=e:(null!=e?e.url:void 0)&&(t.options.url=e.url),t}return n=[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat(eB(this.options.url))}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(th);function tE(e){return(tE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tT(){return(tT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tM(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function tO(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tI(e,t)}function tI(e,t){return(tI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=tM(e);return n=t?Reflect.construct(o,arguments,tM(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tE(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function tM(e){return(tM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tj(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tD(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tP(e,t,n){return t&&tD(e.prototype,t),n&&tD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tF=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.a;tj(this,e),this.name=t,this.shortName=n,this.process=o}return tP(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=z()(e)||K()(e)||H()(e)?!eK(e):null!=e,null!=this.shortName&&t)?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:z()(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level,"b_frames"in e&&!1===e.b_frames&&(t+=":bframes_no")))),t;case String:return e;default:return null}}}]),e}(),tL=function(e){tO(n,e);var t=tR(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tj(this,n),(i=t.call(this,e,o,u)).sep=a,i}return tP(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eK(e))return"";if(H()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return J()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return z()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||z()(e)?tT(tM(n.prototype),"set",this).call(this,e):tT(tM(n.prototype),"set",this).call(this,[e])}}]),n}(tF),tN=function(e){tO(n,e);var t=tR(n);function n(e){var o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tj(this,n),(o=t.call(this,e,i,u)).sep=a,o}return tP(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eK(n))return t;if(e_(n)){var o=n.join(this.sep);eK(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return H()(t)&&!eK(t)?"".concat(e.shortName,"_").concat(t):J()(t.serialize)?t.serialize():K()(t)&&!eK(t)?new t2(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,z()(this.origValue))?tT(tM(n.prototype),"set",this).call(this,this.origValue):tT(tM(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tF),tU=function(e){tO(n,e);var t=tR(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tj(this,n),t.call(this,e,o,i)}return tP(n,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return ti.normalize(e)}}]),n}(tF),tB=function(e){tO(n,e);var t=tR(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.a;return tj(this,n),t.call(this,e,o,i)}return tP(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tF),tW=function(e){tO(n,e);var t=tR(n);function n(){return tj(this,n),t.apply(this,arguments)}return tP(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof th)e=this.origValue;else if(K()(this.origValue)){var e,t=eL(this.origValue);e="text"===t.resourceType||null!=t.text?new tv(t):"subtitles"===t.resourceType?new tw(t):"fetch"===t.resourceType||null!=t.url?new tk(t):new th(t)}else e=H()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tk(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tv(e).textStyleIdentifier()}}]),n}(tF);function tz(e){return(tz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tV(e,t){return(tV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tK(e){return(tK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tH(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function tq(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tZ(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tG(e,t,n){return t&&tZ(e.prototype,t),n&&tZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tY(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.forEach(function(t){Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}),e}var tQ=function(){function e(t){var n,o;tq(this,e),n=void 0,o={},this.toOptions=function(e){var t={};if(null==e&&(e=!0),Object.keys(o).forEach(function(e){return t[e]=o[e].origValue}),tY(t,this.otherOptions),e&&!eK(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tY(t={},this.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&this.fromOptions("function"==typeof e.toOptions?e.toOptions():void 0),this},this.getParent=function(){return n},this.param=function(e,t,n,i,a){return null==a&&(a=J()(i)?i:N.a),o[t]=new tF(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=tX(arguments),o[t]=new tB(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=tX(arguments),o[t]=new tU(t,n,a).set(e),this},this.arrayParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=tX(arguments),o[t]=new tL(t,n,i,a).set(e),this},this.transformationParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return a=tX(arguments),o[t]=new tN(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tW(t,n).set(e),this},this.getValue=function(e){var t=o[e]&&o[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return o[e]},this.remove=function(e){var t;switch(!1){case null==o[e]:return t=o[e],delete o[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return(function(){var t;for(e in t=[],o)null!=e&&t.push(e.match(tJ)?e:eP(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),K()(e[t])&&(e[t]=I()(e[t]));return eK(this.chained)||((n=this.chained.map(function(e){return e.toPlainObject()})).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(o).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return o={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return tG(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t instanceof e)this.fromTransformation(t);else for(var n in(H()(t)||z()(t))&&(t={transformation:t}),(t=I()(t,function(t){if(t instanceof e||t instanceof Layer)return new t.clone})).if&&(this.set("if",t.if),delete t.if),t){var o=t[n];null!=o&&(n.match(tJ)?"$attr"!==n&&this.set("variable",n,o):this.set(n,o))}return this}},{key:"fromTransformation",value:function(t){var n=this;return t instanceof e&&t.keys().forEach(function(e){return n.set(e,t.get(e).origValue)}),this}},{key:"set",value:function(e){var t;t=eD(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return B()(t1.methods,t)?this[t].apply(this,o):this.otherOptions[e]=o[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,o,i,a,u,l,s,c,d,f,p,h,m,g,y;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),h=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,g=function(e){var t,n,o,i,a;if(!z()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var u=t$(e[t],2);o=u[0],a=u[1],i.push("".concat(o,"_").concat(ti.normalize(a)))}return i}(null!=(u=this.get("variables"))?u.value():void 0),o=D()(o,["transformation","if","variables"]),y=[],f=[],n=o.length;t<n;t++)(d=o[t]).match(tJ)?y.push(d+"_"+ti.normalize(null!=(l=this.get(d))?l.value():void 0)):f.push(null!=(s=this.get(d))?s.serialize():void 0);switch(!1){case!H()(h):f.push(h);break;case!z()(h):c=c.concat(h)}return f=function(){var e,t,n;for(e=0,n=[],t=f.length;e<t;e++)m=f[e],(z()(m)&&!eK(m)||!z()(m)&&m)&&n.push(m);return n}(),f=y.sort().concat(g).concat(f.sort()),"if_end"===e?f.push(e):eK(e)||f.unshift(e),eK(p=M()(f).join(this.param_separator))||c.push(p),M()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,u,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],u=eP(e),B()(t1.PARAM_NAMES,u)||B()(eA,u)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eD(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||B()(["fit","limit","lfill"],this.getValue("crop")))&&(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==t.width&&(t.width=a),parseFloat(e)>=1&&null==t.height&&(t.height=e)),t}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return t1.methods}},{key:"isValidParamName",value:function(e){return t1.methods.indexOf(eD(e))>=0}}]),e}(),tJ=/^\$[a-zA-Z0-9]+$/;function tX(e){var t;return(t=null!=e?e[e.length-1]:void 0,J()(t))?t:void 0}function t0(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}tQ.prototype.trans_separator="/",tQ.prototype.param_separator=",";var t1=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tV(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=tK(o);return e=t?Reflect.construct(n,arguments,tK(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tz(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e){return tq(this,o),n.call(this,e)}return tG(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",ti.normalize)}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac")}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af")}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",ti.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tF.norm_color)}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br")}},{key:"border",value:function(e){return this.param(e,"border","bo",function(e){return K()(e)?(e=T()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tF.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tF.norm_color)}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs")}},{key:"crop",value:function(e){return this.param(e,"crop","c")}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",function(){return t0(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t0(e))?"fn_pre:".concat(e):e})}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d")}},{key:"delay",value:function(e){return this.param(e,"delay","dl")}},{key:"density",value:function(e){return this.param(e,"density","dn")}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du")}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":ti.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",ti.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo")}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content")}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f")}},{key:"format",value:function(e){return this.param(e,"format")}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl",".")}},{key:"gravity",value:function(e){return this.param(e,"gravity","g")}},{key:"fps",value:function(e){return this.param(e,"fps","fps",function(e){return H()(e)?e:z()(e)?e.join("-"):e})}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ti.normalize(e):null})}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height")}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width")}},{key:"if",value:function(){var e,t,n,i,a,u,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(l){case"else":return this.chain(),this.param(l,"if","if");case"end":for(this.chain(),e=n=i=this.chained.length-1;n>=0&&"end"!==(t=this.chained[e].getValue("if"))&&(null==t||(a=o.new().if(t),this.chained[e].remove("if"),u=this.chained[e],this.chained[e]=o.new().transformation([a,u]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return ts.new().setParent(this);default:return this.param(l,"if","if",function(e){return ts.new(e).toString()})}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki")}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr")}},{key:"offset",value:function(e){var t,n,o=t$(J()(null!=e?e.split:void 0)?e.split(".."):z()(e)?e:[null,null],2);if(n=o[0],t=o[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",ti.normalize)}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l")}},{key:"page",value:function(e){return this.param(e,"page","pg")}},{key:"poster",value:function(e){return this.param(e,"poster")}},{key:"prefix",value:function(e){return this.param(e,"prefix","p")}},{key:"quality",value:function(e){return this.param(e,"quality","q",ti.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",ti.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(J()(null!=e?e.split:void 0)){var o=t$(e.split("x"),2);return n=o[0],t=o[1],this.width(n),this.height(t)}}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types")}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so")}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp")}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t")}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u")}},{key:"variable",value:function(e,t){return this.param(t,e,e)}},{key:"variables",value:function(e){return this.arrayParam(e,"variables")}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",tF.process_video_params)}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs")}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?ti.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",ti.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",ti.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",ti.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(tQ);t1.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],t1.PARAM_NAMES=t1.methods.map(eP).concat(tp.CONFIG_PARAMS);var t2=t1;function t5(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t3=function(){var e,t;function n(e,t,o){var i;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.name=e,this.publicId=t,null==o&&(K()(t)?(o=t,this.publicId=void 0):o={}),(i=new t2(o)).setParent(this),this.transformation=function(){return i}}return e=[{key:"htmlAttrs",value:function(e){var t,n;return(function(){var o,i;for(t in o=[],e)i=e[t],(n=H()(i)?i.replace('"',""").replace("'","'"):i)&&o.push(n?!0===n?t:"".concat(t,'="').concat(n,'"'):void 0);return o})().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(e){return this.transformation().getValue(e)}},{key:"attributes",value:function(){var e=this.transformation().toHtmlAttributes();return Object.keys(e).forEach(function(t){K()(e[t])&&delete e[t]}),e.attributes&&(Z()(e,e.attributes),delete e.attributes),e}},{key:"setAttr",value:function(e,t){return this.transformation().set("html_".concat(e),t),this}},{key:"getAttr",value:function(e){return this.attributes()["html_".concat(e)]||this.attributes()[e]}},{key:"removeAttr",value:function(e){var t;return null!=(t=this.transformation().remove("html_".concat(e)))?t:this.transformation().remove(e)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var e="<"+this.name,t=this.htmlAttrs(this.attributes());return t&&t.length>0&&(e+=" "+t),e+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var e,t,n,o;if(!J()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(t in e=document.createElement(this.name),n=this.attributes())o=n[t],e.setAttribute(t,o);return e}}],t=[{key:"new",value:function(e,t,n){return new this(e,t,n)}},{key:"isResponsive",value:function(e,t){var n;return n=eY(e,"src-cache")||eY(e,"src"),e2(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t5(n.prototype,e),t&&t5(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t4=["placeholder","accessibility"];function t6(e){return!!e&&!!e.match(/^https?:\//)}function t8(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function t9(e){var t,n,o,i,a,u,l,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=s)instanceof t2&&(t=t.toOptions()),"fetch"===(t=eE({},t,c,eh)).type&&(t.fetch_format=t.fetch_format||t.format),s=t,n=e,o=s.type,e=t6(n)||"fetch"!==o?n:(i=document.location.protocol+"//"+document.location.host,"?"===n[0]?i+=document.location.pathname:"/"!==n[0]&&(i+=document.location.pathname.replace(/\/[^\/]*$/,"/")),i+n);var d=(u=(a=s).cloud_name,l=a.url_suffix,u?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var f=function(e,t){if(t6(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,u,l,s,c,d,f=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t6(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),p=(u=(a=t||{}).placeholder,l=a.accessibility,s=new t2(function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(a,t4)),l&&eb[l]&&s.chain().effect(eb[l]),u&&("predominant-color"===u&&s.getValue("width")&&s.getValue("height")&&(u+="-pixel"),(ev[u]||ev.blur).forEach(function(e){return s.chain().transformation(e)})),s.serialize()),h=function(e,t){if(t.cloud_name&&"/"===t.cloud_name[0])return"/res"+t.cloud_name;var n="http://",o="",i="res",a=".cloudinary.com",u="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",u=""),t.cdn_subdomain&&(i="res-"+(b(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==eu&&t.secure_distribution!==es&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(b(e)%5+1)+".":"",a=t.cname),[n,o,i,a,u].join("")}(e,t),m=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),g=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,u=e.use_root_path,l=e.shorten,s=void 0===n?"image":n;if(K()(s)&&(s=(t=s).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(s=ep["".concat(s,"/").concat(i)],i=null,null==s))throw Error("URL Suffix only supported for ".concat(Object.keys(ep).join(", ")));if(u){if("image"===s&&"upload"===i||"images"===s)s=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===s&&"upload"===i&&(s="iu",i=null),[s,i].join("/")}(t);return e=function(e,t){if(t6(e))e=t8(e);else{try{e=decodeURIComponent(e)}catch(e){}e=t8(e),t.url_suffix&&(e=e+"/"+t.url_suffix),t.format&&(t.trust_public_id||(e=e.replace(/\.(jpg|png|gif|webp)$/,"")),e=e+"."+t.format)}return e}(e,t),M()([h,g,m,p,f,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,s);if(s.urlAnalytics){var p=C(k(s)),h="?";f.indexOf("?")>=0&&(h="&"),f="".concat(f).concat(h,"_a=").concat(p)}if(s.auth_token){var m=f.indexOf("?")>=0?"&":"?";f="".concat(f).concat(m,"__cld_token__=").concat(s.auth_token)}return f}function t7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=eK;function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={};if(ne(n))return i;var a=!t.sizes&&!0===n.sizes,u=!t.srcset;if(u||a){var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return arguments.length>2&&void 0!==arguments[2]&&arguments[2],function(e){var t,n=e.breakpoints||[];if(n.length)return n;var o=function(e){if(Array.isArray(e))return e}(t=[e.min_width,e.max_width,e.max_images].map(Number))||function(e,t){var n,o,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],u=!0,l=!1;try{for(i=i.call(e);!(u=(n=i.next()).done)&&(a.push(n.value),3!==a.length);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return t7(e,3);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t7(e,3)}}(t,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1],u=o[2];if([i,a,u].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(i>a)throw"min_width must be less than max_width";if(u<=0)throw"max_images must be a positive integer";1===u&&(i=a);for(var l=Math.ceil((a-i)/Math.max(u-1,1)),s=i;s<a;s+=l)n.push(s);return n.push(a),n}(t)}(e,n,o);if(u){var s,c=n.transformation,d=(s=o,ez(s=I.a(s)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eW(o);return n=n||o,i.raw_transformation=new t2([Z.a({},n),{crop:"scale",width:t}]).toString(),t9(e,i)}(e,t,c,s)," ").concat(t,"w")}).join(", "));ne(d)||(i.srcset=d)}if(a){var f=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");ne(f)||(i.sizes=f)}}return i}function nn(e){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(){return(nr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ni(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function no(e,t){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){return(ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=ni(i);return e=t?Reflect.construct(n,arguments,ni(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nn(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"img",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){e=nr(ni(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,u={};return H()(a)?u.srcset=a:u=nt(this.publicId,o,a,t),eK(u)||(delete e.width,delete e.height),Z()(e,u),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=t9(this.publicId,this.getOptions())),e}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nu(e){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nl(){return(nl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nc(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ns(e,t){return(ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nc(i);return e=t?Reflect.construct(n,arguments,nc(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nu(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"source",e,t)}return n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var e,t,n=this.getOption("srcset"),o=nl(nc(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Z()(o,nt(this.publicId,o,n,a)),o.srcset||(o.srcset=t9(this.publicId,a)),!o.media&&a.media&&(o.media=(e=a.media,t=[],null!=e&&(null!=e.min_width&&t.push("(min-width: ".concat(e.min_width,"px)")),null!=e.max_width&&t.push("(max-width: ".concat(e.max_width,"px)"))),t.join(" and "))),o}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function np(){return(np="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nm(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nh(e,t){return(nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nm(e){return(nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ng=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nh(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nm(i);return e=t?Reflect.construct(n,arguments,nm(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nf(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,"picture",e,n)).widthList=a,t}return n=[{key:"content",value:function(){var e=this;return this.widthList.map(function(t){var n=t.min_width,o=t.max_width,i=t.transformation,a=e.getOptions(),u=new t2(a);return u.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eW(a)).media={min_width:n,max_width:o},a.transformation=u,new nd(e.publicId,a).toHtml()}).join("")+new na(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=np(nm(i.prototype),"attributes",this).call(this);return delete e.width,delete e.height,e}},{key:"closeTag",value:function(){return"</"+this.name+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function ny(e){return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nv(){return(nv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nA(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function nb(e,t){return(nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nA(e){return(nA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nx=["source_types","source_transformation","fallback_content","poster","sources"],nw=["webm","mp4","ogv"],n_={format:"jpg",resource_type:"video"},nS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nb(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nA(i);return e=t?Reflect.construct(n,arguments,nA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ny(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),t=eE({},t,em),o.call(this,"video",e.replace(/\.(mp4|ogv|webm)$/,""),t)}return n=[{key:"setSourceTransformation",value:function(e){return this.transformation().sourceTransformation(e),this}},{key:"setSourceTypes",value:function(e){return this.transformation().sourceTypes(e),this}},{key:"setPoster",value:function(e){return this.transformation().poster(e),this}},{key:"setFallbackContent",value:function(e){return this.transformation().fallbackContent(e),this}},{key:"content",value:function(){var e=this,t=this.transformation().getValue("source_types"),n=this.transformation().getValue("source_transformation"),o=this.transformation().getValue("fallback_content"),i=this.getOption("sources"),a=[];return z()(i)&&!eK(i)?a=i.map(function(t){var n=t9(e.publicId,eE({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eK(t)&&(t=nw),z()(t)&&(a=t.map(function(t){var o=t9(e.publicId,eE({},n[t]||{},{resource_type:"video",format:t}),e.getOptions());return e.createSourceTag(o,t)}))),a.join("")+o}},{key:"attributes",value:function(){var e=this.getOption("source_types"),t=this.getOption("poster");if(void 0===t&&(t={}),K()(t)){var n=null!=t.public_id?eh:n_;t=t9(t.public_id||this.publicId,eE({},t,n,this.getOptions()))}var o=nv(nA(i.prototype),"attributes",this).call(this)||{};return o=ew(o,nx),!eK(this.getOption("sources"))||eK(e)||z()(e)||(o.src=t9(this.publicId,this.getOptions(),{resource_type:"video",format:e})),null!=t&&(o.poster=t),o}},{key:"createSourceTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=null;return eK(t)||(o="video/"+("ogv"===t?"ogg":t),eK(n)||(o+="; codecs="+(z()(n)?n.join(", "):n))),"<source "+this.htmlAttrs({src:e,type:o})+">"}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nC(e){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nk(e,t){return(nk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nE(e){return(nE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nk(e,t)}(i,e);var t,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nE(i);return e=t?Reflect.construct(n,arguments,nE(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nC(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),o.call(this,"meta",void 0,T()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},e))}return n=[{key:"closeTag",value:function(){return""}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(t3);function nO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var nI=function(e,t){e.transformation?e.transformation.push({flags:[t]}):(e.flags||(e.flags=[]),"string"==typeof e.flags&&(e.flags=[e.flags]),e.flags.push(t))},nR=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ec,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=ey.seeThru),nI(e,"alpha")},nM=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,u=e.blobURL,l=e.videoURL,s=document.createElement("video");return s.style.visibility="hidden",s.position="absolute",s.x=0,s.y=0,s.src=u,s.setAttribute("data-video-url",l),t&&s.setAttribute("autoplay",t),n&&s.setAttribute("playsinline",n),o&&s.setAttribute("loop",o),i&&s.setAttribute("muted",i),i&&(s.muted=i),a&&s.setAttribute("poster",a),s.onload=function(){URL.revokeObjectURL(u)},s},nj=function(e,t,n,o){var i=window,a=i.seeThru,u=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,s){var c=u(function(){s({status:"error",message:"Timeout instantiating seeThru instance"})},t);if(a)var d=a.create(e).ready(function(){l(c);var e=d.getCanvas();e.style.width="100%",e.className+=" "+n,o&&d.play(),i(d)});else s({status:"error",message:"Error instantiating seeThru instance"})})},nD=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,u=n.loop,l=n.muted;return t+=".mp4",new Promise(function(s,c){var d,f,p;(d=n.externalLibraries.seeThru,f=n.max_timeout_ms,p=window.seeThru,new Promise(function(e,t){if(p)e();else{var n=document.createElement("script");n.src=d;var o=setTimeout(function(){t({status:"error",message:"Timeout loading script ".concat(d)})},f);n.onerror=function(){clearTimeout(o),t({status:"error",message:"Error loading ".concat(d)})},n.onload=function(){clearTimeout(o),e()},document.head.appendChild(n)}})).then(function(){var d,f;(d=t,f=n.max_timeout_ms,new Promise(function(e,t){var n=setTimeout(function(){t({status:"error",message:"Timeout loading Blob URL"})},f);("undefined"!=typeof fetch&&fetch?function(e){return new Promise(function(t,n){fetch(e).then(function(e){e.blob().then(function(e){t(e)})}).catch(function(){n("error")})})}:function(e){return new Promise(function(t,n){var o=new XMLHttpRequest;o.responseType="blob",o.onload=function(e){t(o.response)},o.onerror=function(){n("error")},o.open("GET",e,!0),o.send()})})(d).then(function(t){e({status:"success",payload:{blobURL:URL.createObjectURL(t)}})}).catch(function(){t({status:"error",message:"Error loading Blob URL"})}).finally(function(){clearTimeout(n)})})).then(function(d){var f=nM({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:u,muted:l});e.appendChild(f),nj(f,n.max_timeout_ms,n.class,n.autoplay).then(function(){s(e)}).catch(function(e){c(e)})}).catch(function(e){c({status:e.status,message:e.message})})}).catch(function(e){c({status:e.status,message:e.message})})})};function nP(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return t*Math.ceil(e/t)},d=function(e,t){var n;for(n=e.length-2;n>=0&&e[n]>=t;)n--;return e[n+1]},c=function(e,t,n,o){var i,a,u,l;return(l=null!=(i=null!=(a=null!=(u=o.responsive_use_breakpoints)?u:o.responsive_use_stoppoints)?a:this.config("responsive_use_breakpoints"))?i:this.config("responsive_use_stoppoints"))&&("resize"!==l||o.resizing)?this.calc_breakpoint(e,t,n):t},p=function(e){var t,n;for(t=0;(e=null!=e?e.parentNode:void 0)instanceof Element&&!t;)n=window.getComputedStyle(e),/^inline/.test(n.display)||(t=tn(e));return t},m=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},h=function(e,t){var n;return e>(n=eY(t,"width")||0)&&(n=e,eQ(t,"width",e)),n};var nF=function(){var e,t;function n(e){var t;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,t=new tp(e),this.config=function(e,n){return t.config(e,n)},this.fromDocument=function(){return t.fromDocument(),this},this.fromEnvironment=function(){return t.fromEnvironment(),this},this.init=function(){return t.init(),this}}return e=[{key:"url",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t9(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=T()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=T()({},ed,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t2(e).serialize()}},{key:"image",value:function(e){var t,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=this.imageTag(e,i),t=null!=(o=null!=i.client_hints?i.client_hints:this.config("client_hints"))&&o,null!=i.src||t||n.setAttr("src",""),n=n.toDOM(),t||(eQ(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new na(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new ng(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nd(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Z()({},ed,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,T()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,T()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,T()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,T()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,T()({type:"fetch"},t))}},{key:"video",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(e,t).toHtml()}},{key:"videoTag",value:function(e,t){return new nS(e,t=eE({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=T()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,u=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Z()(this.responsiveConfig||{},e),i=null!=(t=this.responsiveConfig.responsive_class)?t:this.config("responsive_class"),l&&this.cloudinary_update("img.".concat(i,", img.cld-hidpi"),this.responsiveConfig),(null==(n=null!=(o=this.responsiveConfig.responsive_resize)?o:this.config("responsive_resize"))||n)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,a=null;var s=function(){var e,t,n,o,l,s,c;return(e=null!=(t=null!=(n=u.responsiveConfig.responsive_debounce)?n:u.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return u.cloudinary_update("img.".concat(i),u.responsiveConfig)},c=function(){return o(),l()},s=function(){o(),a=setTimeout(c,e)},e)?s():l()};return window.addEventListener("resize",s),function(){return window.removeEventListener("resize",s)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eY(e,"breakpoints")||eY(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||f;return J()(o)?o(t,n):(H()(o)&&(o=o.split(",").map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})),d(o,t))}},{key:"calc_stoppoint",value:function(e,t,n){return this.calc_breakpoint(e,t,n)}},{key:"device_pixel_ratio",value:function(e){e=null==e||e;var t=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;e&&(t=Math.ceil(t)),(t<=0||t===0/0)&&(t=1);var n=t.toString();return n.match(/^\d+$/)&&(n+=".0"),n}},{key:"processImageTags",value:function(e,t){if(eK(e))return this;t=eE({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=T()({width:e.getAttribute("width"),height:e.getAttribute("height"),src:e.getAttribute("src")},t),o=n.source||n.src;delete n.source,delete n.src;var i=new t2(n).toHtmlAttributes();return eQ(e,"src-cache",t9(o,n)),e.setAttribute("width",i.width),e.setAttribute("height",i.height),e});return this.cloudinary_update(n,t),this}},{key:"cloudinary_update",value:function(e,t){var n,o,i,a,u,l,s=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=z()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nO(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return nO(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nO(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():H()(n)?Array.prototype.slice.call(document.querySelectorAll(n),0):[n],l=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=t.responsive_class?t.responsive_class:this.config("responsive_class");var f=null!=t.round_dpr?t.round_dpr:this.config("round_dpr");return e.forEach(function(n){if(/img/i.test(n.tagName)){var g=!0;if(d&&e5(n,l),!eK(i=eY(n,"src-cache")||eY(n,"src"))){i=m.call(s,i,f),t3.isResponsive(n,l)&&(0!==(o=p(n))?(/w_auto:breakpoints/.test(i)?(u=h(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(u)):g=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((u=h(u=c.call(s,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(u)):g=!1),e0(n,"width"),t.responsive_preserve_height||e0(n,"height")):g=!1);var y="lazy"===t.loading&&!s.isNativeLazyLoadSupported()&&s.isLazyLoadSupported()&&!e[0].getAttribute("src");(g||y)&&s.setAttributeIfExists(e[0],"width","data-width"),g&&!y&&eX(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&eX(e,t,o)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(e){return t2.new(this.config()).fromOptions(e).setParent(this)}},{key:"injectTransparentVideoElement",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,a){e||a({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),nR(o);var u=n.video_url(t,o);new Promise(function(e,t){eG()&&e(!1);var n=document.createElement("video"),o=n.canPlayType&&n.canPlayType('video/webm; codecs="vp9"');e("maybe"===o||"probably"===o)}).then(function(l){var s;l?(s=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):s=nD(e,u,o),s.then(function(){i(e)}).catch(function(e){a({status:e.status,message:e.message})})}).catch(function(e){a({status:e.status,message:e.message})})})}}],t=[{key:"new",value:function(e){return new this(e)}}],e&&nP(n.prototype,e),t&&nP(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();T()(nF,g);var nL=nF;t.default={ClientHintsMetaTag:nT,Cloudinary:nL,Condition:ts,Configuration:tp,crc32:b,Expression:ti,FetchLayer:tk,HtmlTag:t3,ImageTag:na,Layer:th,PictureTag:ng,SubtitlesLayer:tw,TextLayer:tv,Transformation:t2,utf8_encode:v,Util:y,VideoTag:nS}},"lodash/assign":function(t,n){t.exports=e},"lodash/cloneDeep":function(e,n){e.exports=t},"lodash/compact":function(e,t){e.exports=n},"lodash/difference":function(e,t){e.exports=o},"lodash/functions":function(e,t){e.exports=u},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=s},"lodash/isArray":function(e,t){e.exports=c},"lodash/isElement":function(e,t){e.exports=d},"lodash/isFunction":function(e,t){e.exports=f},"lodash/isPlainObject":function(e,t){e.exports=p},"lodash/isString":function(e,t){e.exports=h},"lodash/merge":function(e,t){e.exports=m},"lodash/trim":function(e,t){e.exports=g}})},e.exports=o(n(60019),n(9850),n(60417),n(17335),n(1910),n(23059),n(11886),n(86152),n(92301),n(61049),n(97030),n(85505),n(98537),n(5648))},36887:function(e,t,n){"use strict";n.d(t,{nk:function(){return W}});var o=n(2784),i=n(13980),a=n.n(i),u=n(44005);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var f=["public_id"],p=["publicId"],h=["children"],m=["children","accessibility","placeholder"],g=u.Util.camelCase,y=u.Util.withCamelCaseKeys,v=u.Util.isEmpty,b=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],A={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},x={m4a:"mp4",wav:"vnd.wav",m3u:"x-mpegurl",mp3:"mpeg",ogv:"ogg",aif:"x-aiff",aifc:"x-aiff",aiff:"x-aiff"},w=[].concat(u.Transformation.PARAM_NAMES,b).map(u.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),_=function(e){var t=d(Object.entries(e).reduce(function(e,t){var n,o=t[0],i=t[1];return null==i?e:l({},e,((n={})[o]=i,n))},{}),f),n=u.Util.withSnakeCaseKeys(t);return u.Cloudinary.new(n)},S=function(e,t){var n=e.publicId,o=d(e,p);return _(o)[t+"Tag"](n,u.Util.withSnakeCaseKeys(o))},C=function(e,t){var n=u.Util.withSnakeCaseKeys(t),o=_(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},k=function(e){var t=e.children,n=d(e,h),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=u.Util.camelCase(e),i=n[e];w[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},E=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},T=function(){return[].slice.call(arguments).reduce(function(e,t){return Object.keys(t||{}).forEach(function(n){var o=t[n];null!=o&&(e[n]=o)}),e},{})},O=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return E(e,"CloudinaryPlaceholder")})),t},I=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return E(e,"CloudinaryTransformation")}).map(function(t){var n=T(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},R=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=y(d(e,m)),((void 0===(n=u.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),s=I(o);v(s)||(l.transformation=s);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},M=(0,o.createContext)(),j=u.Util.camelCase,D=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).getContext=function(){return i.context||{}},i.onIntersect=function(){i.setState({isInView:!0})},i.getExtendedProps=function(e,t){return void 0===e&&(e=i.props),void 0===t&&(t=i.getContext()),T(t,e)},i.attachRef=function(e){var t=i.props.innerRef;i.element.current=e,t&&(t instanceof Function?t(e):t.current=e)},i.element=(0,o.createRef)(),i}return s(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);D.defaultProps={innerRef:null,publicId:null},D.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[g(e[n])]=a().any;return t}(u.Transformation.PARAM_NAMES.map(j)),{innerRef:a().any,publicId:a().string}),D.contextType=M;var P=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=k(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(M.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(D);P.propTypes=l({},D.propTypes,{includeOwnBody:a().bool}),P.defaultProps={includeOwnBody:!1};var F=["children","innerRef"],L="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),N=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).isResponsive=function(){var e=i.getExtendedProps(),t=e.responsive,n=e.width;return t&&"auto"!==n&&console.warn(L),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,R(e)),F);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=k(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,s=n.cloudinaryReactProps,c=S(l({},o,s),"image"),d=u.Util.withCamelCaseKeys(c.attributes()),f=l({},d,a);return f.dataSrc&&(f["data-src"]=f.dataSrc),t&&f.id&&(f.id+="-cld-placeholder"),i.shouldLazyLoad()&&(f["data-src"]=f.dataSrc||f.src,delete f.src),b.forEach(function(e){delete f[e]}),f},i.update=function(){if(i.shouldLazyLoad())u.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=C(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=C(i.element.current,e);i.listenerRemovers.push(o)}},i.shouldLazyLoad=function(){var e=i.getExtendedProps().loading;return!i.state.isInView&&("lazy"===e||"auto"===e)},i.handleImageLoaded=function(){var e=i.props.onLoad;i.setState({isLoaded:!0},function(){e&&e()})},i.renderPlaceholder=function(e,t){t.style=l({},t.style||{},{opacity:0,position:"absolute"}),t.onLoad=i.handleImageLoaded;var n=i.getAttributes({placeholder:e});return o.createElement(o.Fragment,null,i.renderImage(t),o.createElement("div",{style:{display:"inline"}},o.createElement("img",l({ref:i.placeholderElement},n))))},i.renderImage=function(e){return o.createElement("img",l({ref:i.attachRef},e))},i.getPlaceholderType=function(){var e=O(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}s(t,e);var n=t.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach(function(e){return e()})},n.render=function(){var e=this.state.isLoaded,t=this.getAttributes(),n=this.getPlaceholderType();return!e&&n?this.renderPlaceholder(n,t):this.renderImage(t)},t}(D);N.defaultProps={},N.propTypes=D.propTypes,N.propTypes.responsive=a().bool,N.propTypes.loading=a().string,N.propTypes.accessibility=a().string;var U=function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return null},t}(D);U.propTypes=D.propTypes,U.defaultProps={},U.exposesProps=!0,U.displayName="CloudinaryTransformation";var B=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],W=function(e){function t(){for(var t,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).mimeType="video",t.mimeSubTypes=A,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=u.Util.withSnakeCaseKeys(u.Util.defaults({},o,n,{resource_type:"video",format:i}));return e.url(t,a)},t.generateUsingSourceTypes=function(e,n,o,i,a){return a.map(function(a){return t.toSourceTag(e,n,o,i[a]||{},a,t.buildMimeType(a))})},t.generateUsingSources=function(e,n,o,i){return i.map(function(i){var a=i.transformations,u=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,u,t.buildMimeType(u,l))})},t.toSourceTag=function(e,n,i,a,u,l){var s=t.generateVideoUrl(e,n,i,a,u);return o.createElement("source",{key:s+l,src:s,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return u.Util.isEmpty(n)||(o+="; codecs="+(u.Util.isArray(n)?n.join(", "):n)),o},t.getVideoTagProps=function(){var e=t.getMergedProps(),n=e.publicId,o=e.children,i=e.sourceTypes,a=e.sourceTransformation,s=void 0===a?{}:a,c=e.sources,f=d(e,B),p=k(f=T(f,{})),h=p.cloudinaryProps,m=p.cloudinaryReactProps,g=p.nonCloudinaryProps;f=l({},h,m);var y=u.Util.withSnakeCaseKeys(f),v=u.Cloudinary.new(y),b=v.videoTag(n,f).attributes();b=l({},u.Util.withCamelCaseKeys(b),g);var A=R(l({},f,{children:o})),x=null;return u.Util.isArray(c)&&!u.Util.isEmpty(c)?x=t.generateUsingSources(v,n,A,c):u.Util.isArray(i)?x=t.generateUsingSourceTypes(v,n,A,s,i):b.src=t.generateVideoUrl(v,n,A,s[i]||{},i),{sources:x,tagAttributes:b}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}s(t,e);var n=t.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var e=this.props,t=e.fallback,n=e.children,i=this.getVideoTagProps(),a=i.tagAttributes,u=i.sources;return o.createElement("video",l({ref:this.attachRef},a),u,t,n)},t}(D);W.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},W.defaultProps={sourceTypes:u.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var z=function(e){function t(){for(var t,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).mimeType="audio",t.mimeSubTypes=x,t}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),u=a.tagAttributes,s=a.sources;return delete u.poster,o.createElement("audio",l({ref:t},u),s,n,i)},t}(W);z.propTypes={publicId:a().string},z.defaultProps={sourceTypes:["aac","mp3","ogg"]};var V=function(e){return null};V.propTypes={type:a().string},V.defaultProps={type:"blur"},V.displayName="CloudinaryPlaceholder"},6277:function(e,t,n){"use strict";function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,o,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(o=e(t[n]))&&(i&&(i+=" "),i+=o);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{W:function(){return o}}),t.Z=o},39714:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function u(e,t){try{return t in e}catch(e){return!1}}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=o;var c,d,f=Array.isArray(n);return f!==Array.isArray(e)?o(n,s):f?s.arrayMerge(e,n,s):(d={},(c=s).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!u(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(u(e,t)&&c.isMergeableObject(n[t])?d[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,c)(e[t],n[t],c):d[t]=o(n[t],c))}),d)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},85978:function(e,t,n){var o,i,a;a={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(o=(function(){return a}).call(t,n,t,e))&&(e.exports=o)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;0!=i--;){var o,i,a,u=a[i];if(!e(t[u],n[u]))return!1}return!0}return t!=t&&n!=n}},63397:function(e,t,n){"use strict";n.d(t,{gN:function(){return ng},F2:function(){return nC},l0:function(){return ny},J9:function(){return nd},U$:function(){return nm},u6:function(){return nu}});var o,i,a,u,l,s=n(2784),c=n(78435),d=n.n(c),f=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==p},p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(e,t){return!1!==t.clone&&t.isMergeableObject(e)?g(Array.isArray(e)?[]:{},e,t):e}function m(e,t,n){return e.concat(t).map(function(e){return h(e,n)})}function g(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||m,n.isMergeableObject=n.isMergeableObject||f;var o,i,a=Array.isArray(t);return a!==Array.isArray(e)?h(t,n):a?n.arrayMerge(e,t,n):(i={},(o=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=h(e[t],o)}),Object.keys(t).forEach(function(n){o.isMergeableObject(t[n])&&e[n]?i[n]=g(e[n],t[n],o):i[n]=h(t[n],o)}),i)}g.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return g(e,n,t)},{})};var y=g,v="object"==typeof global&&global&&global.Object===Object&&global,b="object"==typeof self&&self&&self.Object===Object&&self,A=v||b||Function("return this")(),x=A.Symbol,w=Object.prototype,_=w.hasOwnProperty,S=w.toString,C=x?x.toStringTag:void 0,k=function(e){var t=_.call(e,C),n=e[C];try{e[C]=void 0;var o=!0}catch(e){}var i=S.call(e);return o&&(t?e[C]=n:delete e[C]),i},E=Object.prototype.toString,T=x?x.toStringTag:void 0,O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?k(e):E.call(e)},I=function(e,t){return function(n){return e(t(n))}},R=I(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},j=Object.prototype,D=Function.prototype.toString,P=j.hasOwnProperty,F=D.call(Object),L=function(e){if(!M(e)||"[object Object]"!=O(e))return!1;var t=R(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==F},N=function(e,t){return e===t||e!=e&&t!=t},U=function(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return -1},B=Array.prototype.splice;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}W.prototype.clear=function(){this.__data__=[],this.size=0},W.prototype.delete=function(e){var t=this.__data__,n=U(t,e);return!(n<0)&&(n==t.length-1?t.pop():B.call(t,n,1),--this.size,!0)},W.prototype.get=function(e){var t=this.__data__,n=U(t,e);return n<0?void 0:t[n][1]},W.prototype.has=function(e){return U(this.__data__,e)>-1},W.prototype.set=function(e,t){var n=this.__data__,o=U(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=function(e){if(!z(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=A["__core-js_shared__"],$=(o=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",H=Function.prototype.toString,q=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Z=/^\[object .+?Constructor\]$/,G=Object.prototype,Y=Function.prototype.toString,Q=G.hasOwnProperty,J=RegExp("^"+Y.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var n,o=null==e?void 0:e[t];return z(n=o)&&(!$||!($ in n))&&(V(n)?J:Z).test(q(n))?o:void 0},ee=X(A,"Map"),et=X(Object,"create"),en=Object.prototype.hasOwnProperty,er=Object.prototype.hasOwnProperty;function eo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}eo.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},eo.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eo.prototype.get=function(e){var t=this.__data__;if(et){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return en.call(t,e)?t[e]:void 0},eo.prototype.has=function(e){var t=this.__data__;return et?void 0!==t[e]:er.call(t,e)},eo.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=et&&void 0===t?"__lodash_hash_undefined__":t,this};var ei=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},ea=function(e,t){var n=e.__data__;return ei(t)?n["string"==typeof t?"string":"hash"]:n.map};function eu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function el(e){var t=this.__data__=new W(e);this.size=t.size}eu.prototype.clear=function(){this.size=0,this.__data__={hash:new eo,map:new(ee||W),string:new eo}},eu.prototype.delete=function(e){var t=ea(this,e).delete(e);return this.size-=t?1:0,t},eu.prototype.get=function(e){return ea(this,e).get(e)},eu.prototype.has=function(e){return ea(this,e).has(e)},eu.prototype.set=function(e,t){var n=ea(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},el.prototype.clear=function(){this.__data__=new W,this.size=0},el.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},el.prototype.get=function(e){return this.__data__.get(e)},el.prototype.has=function(e){return this.__data__.has(e)},el.prototype.set=function(e,t){var n=this.__data__;if(n instanceof W){var o=n.__data__;if(!ee||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new eu(o)}return n.set(e,t),this.size=n.size,this};var es=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e},ec=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ed=function(e,t,n){"__proto__"==t&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ef=Object.prototype.hasOwnProperty,ep=function(e,t,n){var o=e[t];ef.call(e,t)&&N(o,n)&&(void 0!==n||t in e)||ed(e,t,n)},eh=function(e,t,n,o){var i=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],s=o?o(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?ed(n,l,s):ep(n,l,s)}return n},em=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},eg=function(e){return M(e)&&"[object Arguments]"==O(e)},ey=Object.prototype,ev=ey.hasOwnProperty,eb=ey.propertyIsEnumerable,eA=eg(function(){return arguments}())?eg:function(e){return M(e)&&ev.call(e,"callee")&&!eb.call(e,"callee")},ex=Array.isArray,ew="object"==typeof exports&&exports&&!exports.nodeType&&exports,e_=ew&&"object"==typeof module&&module&&!module.nodeType&&module,eS=e_&&e_.exports===ew?A.Buffer:void 0,eC=(eS?eS.isBuffer:void 0)||function(){return!1},ek=/^(?:0|[1-9]\d*)$/,eE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ek.test(e))&&e>-1&&e%1==0&&e<t},eT=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eO={};eO["[object Float32Array]"]=eO["[object Float64Array]"]=eO["[object Int8Array]"]=eO["[object Int16Array]"]=eO["[object Int32Array]"]=eO["[object Uint8Array]"]=eO["[object Uint8ClampedArray]"]=eO["[object Uint16Array]"]=eO["[object Uint32Array]"]=!0,eO["[object Arguments]"]=eO["[object Array]"]=eO["[object ArrayBuffer]"]=eO["[object Boolean]"]=eO["[object DataView]"]=eO["[object Date]"]=eO["[object Error]"]=eO["[object Function]"]=eO["[object Map]"]=eO["[object Number]"]=eO["[object Object]"]=eO["[object RegExp]"]=eO["[object Set]"]=eO["[object String]"]=eO["[object WeakMap]"]=!1;var eI=function(e){return function(t){return e(t)}},eR="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eR&&"object"==typeof module&&module&&!module.nodeType&&module,ej=eM&&eM.exports===eR&&v.process,eD=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return ej&&ej.binding&&ej.binding("util")}catch(e){}}(),eP=eD&&eD.isTypedArray,eF=eP?eI(eP):function(e){return M(e)&&eT(e.length)&&!!eO[O(e)]},eL=Object.prototype.hasOwnProperty,eN=function(e,t){var n=ex(e),o=!n&&eA(e),i=!n&&!o&&eC(e),a=!n&&!o&&!i&&eF(e),u=n||o||i||a,l=u?em(e.length,String):[],s=l.length;for(var c in e)(t||eL.call(e,c))&&!(u&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||eE(c,s)))&&l.push(c);return l},eU=Object.prototype,eB=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eU)},eW=I(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eV=function(e){if(!eB(e))return eW(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eK=function(e){return null!=e&&eT(e.length)&&!V(e)},e$=function(e){return eK(e)?eN(e):eV(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eq=Object.prototype.hasOwnProperty,eZ=function(e){if(!z(e))return eH(e);var t=eB(e),n=[];for(var o in e)"constructor"==o&&(t||!eq.call(e,o))||n.push(o);return n},eG=function(e){return eK(e)?eN(e,!0):eZ(e)},eY="object"==typeof exports&&exports&&!exports.nodeType&&exports,eQ=eY&&"object"==typeof module&&module&&!module.nodeType&&module,eJ=eQ&&eQ.exports===eY?A.Buffer:void 0,eX=eJ?eJ.allocUnsafe:void 0,e0=function(e,t){if(t)return e.slice();var n=e.length,o=eX?eX(n):new e.constructor(n);return e.copy(o),o},e1=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},e2=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a},e5=function(){return[]},e3=Object.prototype.propertyIsEnumerable,e4=Object.getOwnPropertySymbols,e6=e4?function(e){return null==e?[]:e2(e4(e=Object(e)),function(t){return e3.call(e,t)})}:e5,e8=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e},e9=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)e8(t,e6(e)),e=R(e);return t}:e5,e7=function(e,t,n){var o=t(e);return ex(e)?o:e8(o,n(e))},te=function(e){return e7(e,e$,e6)},tt=function(e){return e7(e,eG,e9)},tn=X(A,"DataView"),tr=X(A,"Promise"),to=X(A,"Set"),ti=X(A,"WeakMap"),ta="[object Map]",tu="[object Promise]",tl="[object Set]",ts="[object WeakMap]",tc="[object DataView]",td=q(tn),tf=q(ee),tp=q(tr),th=q(to),tm=q(ti),tg=O;(tn&&tg(new tn(new ArrayBuffer(1)))!=tc||ee&&tg(new ee)!=ta||tr&&tg(tr.resolve())!=tu||to&&tg(new to)!=tl||ti&&tg(new ti)!=ts)&&(tg=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,o=n?q(n):"";if(o)switch(o){case td:return tc;case tf:return ta;case tp:return tu;case th:return tl;case tm:return ts}return t});var ty=tg,tv=Object.prototype.hasOwnProperty,tb=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tv.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tA=A.Uint8Array,tx=function(e){var t=new e.constructor(e.byteLength);return new tA(t).set(new tA(e)),t},tw=function(e,t){var n=t?tx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},t_=/\w*$/,tS=function(e){var t=new e.constructor(e.source,t_.exec(e));return t.lastIndex=e.lastIndex,t},tC=x?x.prototype:void 0,tk=tC?tC.valueOf:void 0,tE=function(e,t){var n=t?tx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tT=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return tx(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return tw(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tE(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return tS(e);case"[object Symbol]":return tk?Object(tk.call(e)):{}}},tO=Object.create,tI=function(){function e(){}return function(t){if(!z(t))return{};if(tO)return tO(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tR=eD&&eD.isMap,tM=tR?eI(tR):function(e){return M(e)&&"[object Map]"==ty(e)},tj=eD&&eD.isSet,tD=tj?eI(tj):function(e){return M(e)&&"[object Set]"==ty(e)},tP="[object Arguments]",tF="[object Function]",tL="[object Object]",tN={};tN[tP]=tN["[object Array]"]=tN["[object ArrayBuffer]"]=tN["[object DataView]"]=tN["[object Boolean]"]=tN["[object Date]"]=tN["[object Float32Array]"]=tN["[object Float64Array]"]=tN["[object Int8Array]"]=tN["[object Int16Array]"]=tN["[object Int32Array]"]=tN["[object Map]"]=tN["[object Number]"]=tN[tL]=tN["[object RegExp]"]=tN["[object Set]"]=tN["[object String]"]=tN["[object Symbol]"]=tN["[object Uint8Array]"]=tN["[object Uint8ClampedArray]"]=tN["[object Uint16Array]"]=tN["[object Uint32Array]"]=!0,tN["[object Error]"]=tN[tF]=tN["[object WeakMap]"]=!1;var tU=function e(t,n,o,i,a,u){var l,s=1&n,c=2&n,d=4&n;if(o&&(l=a?o(t,i,a,u):o(t)),void 0!==l)return l;if(!z(t))return t;var f=ex(t);if(f){if(l=tb(t),!s)return e1(t,l)}else{var p,h,m,g,y=ty(t),v=y==tF||"[object GeneratorFunction]"==y;if(eC(t))return e0(t,s);if(y==tL||y==tP||v&&!a){if(l=c||v?{}:"function"!=typeof t.constructor||eB(t)?{}:tI(R(t)),!s)return c?(h=(p=l)&&eh(t,eG(t),p),eh(t,e9(t),h)):(g=(m=l)&&eh(t,e$(t),m),eh(t,e6(t),g))}else{if(!tN[y])return a?t:{};l=tT(t,y,s)}}u||(u=new el);var b=u.get(t);if(b)return b;u.set(t,l),tD(t)?t.forEach(function(i){l.add(e(i,n,o,i,t,u))}):tM(t)&&t.forEach(function(i,a){l.set(a,e(i,n,o,a,t,u))});var A=d?c?tt:te:c?eG:e$,x=f?void 0:A(t);return es(x||t,function(i,a){x&&(i=t[a=i]),ep(l,a,e(i,n,o,a,t,u))}),l},tB=function(e){return tU(e,4)},tW=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i},tz=function(e){return"symbol"==typeof e||M(e)&&"[object Symbol]"==O(e)};function tV(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,o);return n.cache=a.set(i,u)||a,u};return n.cache=new(tV.Cache||eu),n}tV.Cache=eu;var tK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t$=/\\(\\)?/g,tH=(a=(i=tV(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tK,function(e,n,o,i){t.push(o?i.replace(t$,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,i),tq=1/0,tZ=function(e){if("string"==typeof e||tz(e))return e;var t=e+"";return"0"==t&&1/e==-tq?"-0":t},tG=1/0,tY=x?x.prototype:void 0,tQ=tY?tY.toString:void 0,tJ=function e(t){if("string"==typeof t)return t;if(ex(t))return tW(t,e)+"";if(tz(t))return tQ?tQ.call(t):"";var n=t+"";return"0"==n&&1/t==-tG?"-0":n},tX=function(e){return ex(e)?tW(e,tZ):tz(e)?[e]:e1(tH(null==e?"":tJ(e)))},t0=function(e,t){},t1=n(73463),t2=n.n(t1);function t5(){return(t5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function t3(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function t4(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t6=function(e){return Array.isArray(e)&&0===e.length},t8=function(e){return"function"==typeof e},t9=function(e){return null!==e&&"object"==typeof e},t7=function(e){return"[object String]"===Object.prototype.toString.call(e)},ne=function(e){return 0===s.Children.count(e)},nt=function(e){return t9(e)&&t8(e.then)};function nn(e,t,n,o){void 0===o&&(o=0);for(var i=tX(t);e&&o<i.length;)e=e[i[o++]];return o===i.length||e?void 0===e?n:e:n}function nr(e,t,n){for(var o=tB(e),i=o,a=0,u=tX(t);a<u.length-1;a++){var l=u[a],s=nn(e,u.slice(0,a+1));if(s&&(t9(s)||Array.isArray(s)))i=i[l]=tB(s);else{var c=u[a+1];i=i[l]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===a?e:i)[u[a]]===n?e:(void 0===n?delete i[u[a]]:i[u[a]]=n,0===a&&void 0===n&&delete o[u[a]],o)}var no=(0,s.createContext)(void 0);no.displayName="FormikContext";var ni=no.Provider,na=no.Consumer;function nu(){var e=(0,s.useContext)(no);return e||t0(!1),e}function nl(e,t){switch(t.type){case"SET_VALUES":return t5({},e,{values:t.payload});case"SET_TOUCHED":return t5({},e,{touched:t.payload});case"SET_ERRORS":if(d()(e.errors,t.payload))return e;return t5({},e,{errors:t.payload});case"SET_STATUS":return t5({},e,{status:t.payload});case"SET_ISSUBMITTING":return t5({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return t5({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return t5({},e,{values:nr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return t5({},e,{touched:nr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return t5({},e,{errors:nr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return t5({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return t5({},e,{touched:function e(t,n,o,i){void 0===o&&(o=new WeakMap),void 0===i&&(i={});for(var a=0,u=Object.keys(t);a<u.length;a++){var l=u[a],s=t[l];t9(s)?o.get(s)||(o.set(s,!0),i[l]=Array.isArray(s)?[]:{},e(s,n,o,i[l])):i[l]=n}return i}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return t5({},e,{isSubmitting:!1});default:return e}}var ns={},nc={};function nd(e){var t,n,o,i,a,u,l,c,f,p,h,m,g,v,b,A,x,w,_,S,C,k,E,T,O,I,R,M,j,D,P,F,N,U,B,W,z,V,K,$,H,q,Z,G,Y,Q,J,X,ee,et,en,er,eo,ei,ea=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(o=e.validateOnBlur)||o,u=void 0!==(a=e.validateOnMount)&&a,l=e.isInitialValid,f=void 0!==(c=e.enableReinitialize)&&c,p=e.onSubmit,h=t3(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=t5({validateOnChange:n,validateOnBlur:i,validateOnMount:u,onSubmit:p},h),g=(0,s.useRef)(m.initialValues),v=(0,s.useRef)(m.initialErrors||ns),b=(0,s.useRef)(m.initialTouched||nc),A=(0,s.useRef)(m.initialStatus),x=(0,s.useRef)(!1),w=(0,s.useRef)({}),(0,s.useEffect)(function(){return x.current=!0,function(){x.current=!1}},[]),S=(_=(0,s.useReducer)(nl,{values:m.initialValues,errors:m.initialErrors||ns,touched:m.initialTouched||nc,status:m.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],C=_[1],k=(0,s.useCallback)(function(e,t){return new Promise(function(n,o){var i=m.validate(e,t);null==i?n(ns):nt(i)?i.then(function(e){n(e||ns)},function(e){o(e)}):n(i)})},[m.validate]),E=(0,s.useCallback)(function(e,t){var n,o,i=m.validationSchema,a=t8(i)?i(t):i,u=t&&a.validateAt?a.validateAt(t,e):(void 0===n&&(n=!1),o=function e(t){var n=Array.isArray(t)?[]:{};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=String(o);!0===Array.isArray(t[i])?n[i]=t[i].map(function(t){return!0===Array.isArray(t)||L(t)?e(t):""!==t?t:void 0}):L(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e),a[n?"validateSync":"validate"](o,{abortEarly:!1,context:o}));return new Promise(function(e,t){u.then(function(){e(ns)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return nr(t,e.path,e.message);for(var n=e.inner,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){if(o){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var a,u=a;nn(t,u.path)||(t=nr(t,u.path,u.message))}}return t}(n)):t(n)})})},[m.validationSchema]),T=(0,s.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),O=(0,s.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t8(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return T(t,nn(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,o){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=nr(e,t[o],n)),e},{})})},[T]),I=(0,s.useCallback)(function(e){return Promise.all([O(e),m.validationSchema?E(e):{},m.validate?k(e):{}]).then(function(e){var t=e[0],n=e[1],o=e[2];return y.all([t,n,o],{arrayMerge:nf})})},[m.validate,m.validationSchema,O,k,E]),R=nh(function(e){return void 0===e&&(e=S.values),C({type:"SET_ISVALIDATING",payload:!0}),I(e).then(function(e){return x.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:e})),e})}),(0,s.useEffect)(function(){u&&!0===x.current&&d()(g.current,m.initialValues)&&R(g.current)},[u,R]),M=(0,s.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:v.current?v.current:m.initialErrors||{},o=e&&e.touched?e.touched:b.current?b.current:m.initialTouched||{},i=e&&e.status?e.status:A.current?A.current:m.initialStatus;g.current=t,v.current=n,b.current=o,A.current=i;var a=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:o,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var u=m.onReset(S.values,J);nt(u)?u.then(a):a()}else a()},[m.initialErrors,m.initialStatus,m.initialTouched]),(0,s.useEffect)(function(){!0===x.current&&!d()(g.current,m.initialValues)&&f&&(g.current=m.initialValues,M(),u&&R(g.current))},[f,m.initialValues,M,u,R]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(v.current,m.initialErrors)&&(v.current=m.initialErrors||ns,C({type:"SET_ERRORS",payload:m.initialErrors||ns}))},[f,m.initialErrors]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(b.current,m.initialTouched)&&(b.current=m.initialTouched||nc,C({type:"SET_TOUCHED",payload:m.initialTouched||nc}))},[f,m.initialTouched]),(0,s.useEffect)(function(){f&&!0===x.current&&!d()(A.current,m.initialStatus)&&(A.current=m.initialStatus,C({type:"SET_STATUS",payload:m.initialStatus}))},[f,m.initialStatus,m.initialTouched]),j=nh(function(e){if(w.current[e]&&t8(w.current[e].validate)){var t=nn(S.values,e),n=w.current[e].validate(t);return nt(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(C({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then(function(e){return e}).then(function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:nn(t,e)}}),C({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),D=(0,s.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),P=(0,s.useCallback)(function(e){delete w.current[e]},[]),F=nh(function(e,t){return C({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?R(S.values):Promise.resolve()}),N=(0,s.useCallback)(function(e){C({type:"SET_ERRORS",payload:e})},[]),U=nh(function(e,t){var o=t8(e)?e(S.values):e;return C({type:"SET_VALUES",payload:o}),(void 0===t?n:t)?R(o):Promise.resolve()}),B=(0,s.useCallback)(function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),W=nh(function(e,t,o){return C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===o?n:o)?R(nr(S.values,e,t)):Promise.resolve()}),z=(0,s.useCallback)(function(e,t){var n,o=t,i=e;if(!t7(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,u=a.type,l=a.name,s=a.id,c=a.value,d=a.checked,f=(a.outerHTML,a.options),p=a.multiple;o=t||l||s,i=/number|range/.test(u)?isNaN(n=parseFloat(c))?"":n:/checkbox/.test(u)?function(e,t,n){if("boolean"==typeof e)return!!t;var o=[],i=!1,a=-1;if(Array.isArray(e))o=e,i=(a=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?o.concat(n):i?o.slice(0,a).concat(o.slice(a+1)):o}(nn(S.values,o),d,c):f&&p?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}o&&W(o,i)},[W,S.values]),V=nh(function(e){if(t7(e))return function(t){return z(t,e)};z(e)}),K=nh(function(e,t,n){return void 0===t&&(t=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?R(S.values):Promise.resolve()}),$=(0,s.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,o=n.name,i=n.id;n.outerHTML,K(t||o||i,!0)},[K]),H=nh(function(e){if(t7(e))return function(t){return $(t,e)};$(e)}),q=(0,s.useCallback)(function(e){t8(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),Z=(0,s.useCallback)(function(e){C({type:"SET_STATUS",payload:e})},[]),G=(0,s.useCallback)(function(e){C({type:"SET_ISSUBMITTING",payload:e})},[]),Y=nh(function(){return C({type:"SUBMIT_ATTEMPT"}),R().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=X(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&C({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw C({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(C({type:"SUBMIT_FAILURE"}),n))throw e})}),Q=nh(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:M,validateForm:R,validateField:j,setErrors:N,setFieldError:B,setFieldTouched:K,setFieldValue:W,setStatus:Z,setSubmitting:G,setTouched:F,setValues:U,setFormikState:q,submitForm:Y},X=nh(function(){return p(S.values,J)}),ee=nh(function(e){e&&e.preventDefault&&t8(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t8(e.stopPropagation)&&e.stopPropagation(),M()}),et=(0,s.useCallback)(function(e){return{value:nn(S.values,e),error:nn(S.errors,e),touched:!!nn(S.touched,e),initialValue:nn(g.current,e),initialTouched:!!nn(b.current,e),initialError:nn(v.current,e)}},[S.errors,S.touched,S.values]),en=(0,s.useCallback)(function(e){return{setValue:function(t,n){return W(e,t,n)},setTouched:function(t,n){return K(e,t,n)},setError:function(t){return B(e,t)}}},[W,K,B]),er=(0,s.useCallback)(function(e){var t=t9(e),n=t?e.name:e,o=nn(S.values,n),i={name:n,value:o,onChange:V,onBlur:H};if(t){var a=e.type,u=e.value,l=e.as,s=e.multiple;"checkbox"===a?void 0===u?i.checked=!!o:(i.checked=!!(Array.isArray(o)&&~o.indexOf(u)),i.value=u):"radio"===a?(i.checked=o===u,i.value=u):"select"===l&&s&&(i.value=i.value||[],i.multiple=!0)}return i},[H,V,S.values]),eo=(0,s.useMemo)(function(){return!d()(g.current,S.values)},[g.current,S.values]),ei=(0,s.useMemo)(function(){return void 0!==l?eo?S.errors&&0===Object.keys(S.errors).length:!1!==l&&t8(l)?l(m):l:S.errors&&0===Object.keys(S.errors).length},[l,eo,S.errors,m]),t5({},S,{initialValues:g.current,initialErrors:v.current,initialTouched:b.current,initialStatus:A.current,handleBlur:H,handleChange:V,handleReset:ee,handleSubmit:Q,resetForm:M,setErrors:N,setFormikState:q,setFieldTouched:K,setFieldValue:W,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:F,setValues:U,submitForm:Y,validateForm:R,validateField:j,isValid:ei,dirty:eo,unregisterField:P,registerField:D,getFieldProps:er,getFieldMeta:et,getFieldHelpers:en,validateOnBlur:i,validateOnChange:n,validateOnMount:u})),eu=e.component,el=e.children,es=e.render,ec=e.innerRef;return(0,s.useImperativeHandle)(ec,function(){return ea}),(0,s.createElement)(ni,{value:ea},eu?(0,s.createElement)(eu,ea):es?es(ea):el?t8(el)?el(ea):ne(el)?null:s.Children.only(el):null)}function nf(e,t,n){var o=e.slice();return t.forEach(function(t,i){if(void 0===o[i]){var a=!1!==n.clone&&n.isMergeableObject(t);o[i]=a?y(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?o[i]=y(e[i],t,n):-1===e.indexOf(t)&&o.push(t)}),o}var np="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;function nh(e){var t=(0,s.useRef)(e);return np(function(){t.current=e}),(0,s.useCallback)(function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.current.apply(void 0,n)},[])}function nm(e){var t=nu(),n=t.getFieldProps,o=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,u=t.unregisterField,l=t9(e)?e:{name:e},c=l.name,d=l.validate;(0,s.useEffect)(function(){return c&&a(c,{validate:d}),function(){c&&u(c)}},[a,u,c,d]),c||t0(!1);var f=(0,s.useMemo)(function(){return i(c)},[i,c]);return[n(l),o(c),f]}function ng(e){var t=e.validate,n=e.name,o=e.render,i=e.children,a=e.as,u=e.component,l=t3(e,["validate","name","render","children","as","component"]),c=t3(nu(),["validate","validationSchema"]),d=c.registerField,f=c.unregisterField;(0,s.useEffect)(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=c.getFieldProps(t5({name:n},l)),h=c.getFieldMeta(n),m={field:p,form:c};if(o)return o(t5({},m,{meta:h}));if(t8(i))return i(t5({},m,{meta:h}));if(u){if("string"==typeof u){var g=l.innerRef,y=t3(l,["innerRef"]);return(0,s.createElement)(u,t5({ref:g},p,y),i)}return(0,s.createElement)(u,t5({field:p,form:c},l),i)}var v=a||"input";if("string"==typeof v){var b=l.innerRef,A=t3(l,["innerRef"]);return(0,s.createElement)(v,t5({ref:b},p,A),i)}return(0,s.createElement)(v,t5({},p,l),i)}var ny=(0,s.forwardRef)(function(e,t){var n=e.action,o=t3(e,["action"]),i=nu(),a=i.handleReset,u=i.handleSubmit;return(0,s.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:a,action:null!=n?n:"#"},o))});ny.displayName="Form";var nv=function(e,t,n){var o=nw(e),i=o[t];return o.splice(t,1),o.splice(n,0,i),o},nb=function(e,t,n){var o=nw(e),i=o[t];return o[t]=o[n],o[n]=i,o},nA=function(e,t,n){var o=nw(e);return o.splice(t,0,n),o},nx=function(e,t,n){var o=nw(e);return o[t]=n,o},nw=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(t5({},e,{length:t+1}))},n_=function(e,t){var n="function"==typeof e?e:t;return function(e){return Array.isArray(e)||t9(e)?n(nw(e)):e}},nS=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,o){var i=n.props,a=i.name;(0,i.formik.setFormikState)(function(n){var i=n_(o,e),u=n_(t,e),l=nr(n.values,a,e(nn(n.values,a))),s=o?i(nn(n.errors,a)):void 0,c=t?u(nn(n.touched,a)):void 0;return t6(s)&&(s=void 0),t6(c)&&(c=void 0),t5({},n,{values:l,errors:o?nr(n.errors,a,s):n.errors,touched:t?nr(n.touched,a,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nw(t),[tU(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return nb(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return nv(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return nA(n,e,t)},function(t){return nA(t,e,null)},function(t){return nA(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nx(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var o=n?[e].concat(n):[e];return t<0&&(t=o.length),o},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t4(n)),n.pop=n.pop.bind(t4(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!d()(nn(e.formik.values,e.name),nn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var o=n?nw(n):[];return t||(t=o[e]),t8(o.splice)&&o.splice(e,1),t8(o.every)&&o.every(function(e){return void 0===e})?[]:o},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,o=t.render,i=t.children,a=t.name,u=t3(t.formik,["validate","validationSchema"]),l=t5({},e,{form:u,name:a});return n?(0,s.createElement)(n,l):o?o(l):i?"function"==typeof i?i(l):ne(i)?null:s.Children.only(i):null},t}(s.Component);nS.defaultProps={validateOnChange:!0};var nC=(u=function(e){return(0,s.createElement)(na,null,function(t){return t||t0(!1),(0,s.createElement)(nS,Object.assign({},e,{formik:t}))})},l=nS.displayName||nS.name||nS.constructor&&nS.constructor.name||"Component",u.WrappedComponent=nS,u.displayName="FormikConnect("+l+")",t2()(u,nS))},73463:function(e,t,n){"use strict";var o=n(48570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?u:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=u;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var i=h(n);i&&i!==m&&e(t,i,o)}var u=d(n);f&&(u=u.concat(f(n)));for(var l=s(t),g=s(n),y=0;y<u.length;++y){var v=u[y];if(!a[v]&&!(o&&o[v])&&!(g&&g[v])&&!(l&&l[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,o,i){var a,u,l=8*i-o-1,s=(1<<l)-1,c=s>>1,d=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=256*a+e[t+f],f+=p,d-=8);for(u=a&(1<<-d)-1,a>>=-d,d+=o;d>0;u=256*u+e[t+f],f+=p,d-=8);if(0===a)a=1-c;else{if(a===s)return u?NaN:1/0*(h?-1:1);u+=Math.pow(2,o),a-=c}return(h?-1:1)*u*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var u,l,s,c=8*a-i-1,d=(1<<c)-1,f=d>>1,p=23===i?5960464477539062e-23:0,h=o?0:a-1,m=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,u=d):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+f>=1?t+=p/s:t+=p*Math.pow(2,1-f),t*s>=2&&(u++,s/=2),u+f>=d?(l=0,u=d):u+f>=1?(l=(t*s-1)*Math.pow(2,i),u+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;e[n+h]=255&l,h+=m,l/=256,i-=8);for(u=u<<i|l,c+=i;c>0;e[n+h]=255&u,h+=m,u/=256,c-=8);e[n+h-m]|=128*g}},39515:function(e,t,n){var o=n(38761)(n(37772),"DataView");e.exports=o},89612:function(e,t,n){var o=n(52118),i=n(96909),a=n(98138),u=n(4174),l=n(7942);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),u=n(72344),l=n(94769);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},10326:function(e,t,n){var o=n(38761)(n(37772),"Map");e.exports=o},96738:function(e,t,n){var o=n(92411),i=n(36417),a=n(86928),u=n(79493),l=n(24150);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=l,e.exports=s},52760:function(e,t,n){var o=n(38761)(n(37772),"Promise");e.exports=o},2143:function(e,t,n){var o=n(38761)(n(37772),"Set");e.exports=o},45386:function(e,t,n){var o=n(96738),i=n(52842),a=n(52482);function u(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}u.prototype.add=u.prototype.push=i,u.prototype.has=a,e.exports=u},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),u=n(4417),l=n(8605),s=n(71418);function c(e){var t=this.__data__=new o(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=u,c.prototype.has=l,c.prototype.set=s,e.exports=c},50857:function(e,t,n){var o=n(37772).Symbol;e.exports=o},79162:function(e,t,n){var o=n(37772).Uint8Array;e.exports=o},93215:function(e,t,n){var o=n(38761)(n(37772),"WeakMap");e.exports=o},49432:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72517:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},67552:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var u=e[n];t(u,n,e)&&(a[i++]=u)}return a}},38333:function(e,t,n){var o=n(77832);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},34893:function(e){e.exports=function(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},1634:function(e,t,n){var o=n(36473),i=n(79631),a=n(86152),u=n(73226),l=n(39045),s=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),f=!n&&!d&&u(e),p=!n&&!d&&!f&&s(e),h=n||d||f||p,m=h?o(e.length,String):[],g=m.length;for(var y in e)(t||c.call(e,y))&&!(h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,g)))&&m.push(y);return m}},50343:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},65067:function(e){e.exports=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},87064:function(e){e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},50217:function(e){e.exports=function(e){return e.split("")}},28582:function(e,t,n){var o=n(13940),i=n(41225);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||o(e,t,n)}},60091:function(e,t,n){var o=n(13940),i=n(41225),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var u=e[t];a.call(e,t)&&i(u,n)&&(void 0!==n||t in e)||o(e,t,n)}},22218:function(e,t,n){var o=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return -1}},67993:function(e,t,n){var o=n(752),i=n(90249);e.exports=function(e,t){return e&&o(t,i(t),e)}},55906:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e,t){return e&&o(t,i(t),e)}},13940:function(e,t,n){var o=n(83043);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},18874:function(e,t,n){var o=n(86571),i=n(72517),a=n(60091),u=n(67993),l=n(55906),s=n(92175),c=n(51522),d=n(7680),f=n(19987),p=n(13483),h=n(76939),m=n(70940),g=n(99917),y=n(8222),v=n(78725),b=n(86152),A=n(73226),x=n(4714),w=n(29259),_=n(43679),S=n(90249),C=n(18582),k="[object Arguments]",E="[object Function]",T="[object Object]",O={};O[k]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[E]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,I,R,M,j){var D,P=1&n,F=2&n,L=4&n;if(I&&(D=M?I(t,R,M,j):I(t)),void 0!==D)return D;if(!w(t))return t;var N=b(t);if(N){if(D=g(t),!P)return c(t,D)}else{var U=m(t),B=U==E||"[object GeneratorFunction]"==U;if(A(t))return s(t,P);if(U==T||U==k||B&&!M){if(D=F||B?{}:v(t),!P)return F?f(t,l(D,t)):d(t,u(D,t))}else{if(!O[U])return M?t:{};D=y(t,U,P)}}j||(j=new o);var W=j.get(t);if(W)return W;j.set(t,D),_(t)?t.forEach(function(o){D.add(e(o,n,I,o,t,j))}):x(t)&&t.forEach(function(o,i){D.set(i,e(o,n,I,i,t,j))});var z=L?F?h:p:F?C:S,V=N?void 0:z(t);return i(V||t,function(o,i){V&&(o=t[i=o]),a(D,i,e(o,n,I,i,t,j))}),D}},39413:function(e,t,n){var o=n(29259),i=Object.create,a=function(){function e(){}return function(t){if(!o(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},85246:function(e,t,n){var o=n(45386),i=n(38333),a=n(34893),u=n(50343),l=n(47826),s=n(59950);e.exports=function(e,t,n,c){var d=-1,f=i,p=!0,h=e.length,m=[],g=t.length;if(!h)return m;n&&(t=u(t,l(n))),c?(f=a,p=!1):t.length>=200&&(f=s,p=!1,t=new o(t));t:for(;++d<h;){var y=e[d],v=null==n?y:n(y);if(y=c||0!==y?y:0,p&&v==v){for(var b=g;b--;)if(t[b]===v)continue t;m.push(y)}else f(t,v,c)||m.push(y)}return m}},21359:function(e){e.exports=function(e,t,n,o){for(var i=e.length,a=n+(o?1:-1);o?a--:++a<i;)if(t(e[a],a,e))return a;return -1}},62034:function(e,t,n){var o=n(65067),i=n(95882);e.exports=function e(t,n,a,u,l){var s=-1,c=t.length;for(a||(a=i),l||(l=[]);++s<c;){var d=t[s];n>0&&a(d)?n>1?e(d,n-1,a,u,l):o(l,d):u||(l[l.length]=d)}return l}},15308:function(e,t,n){var o=n(55463)();e.exports=o},26548:function(e,t,n){var o=n(15308),i=n(90249);e.exports=function(e,t){return e&&o(e,t,i)}},23919:function(e,t,n){var o=n(67552),i=n(61049);e.exports=function(e,t){return o(t,function(t){return i(e[t])})}},13324:function(e,t,n){var o=n(17297),i=n(33812);e.exports=function(e,t){t=o(t,e);for(var n=0,a=t.length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},1897:function(e,t,n){var o=n(65067),i=n(86152);e.exports=function(e,t,n){var a=t(e);return i(e)?a:o(a,n(e))}},53366:function(e,t,n){var o=n(50857),i=n(62107),a=n(37157),u=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?i(e):a(e)}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var o=n(21359),i=n(22195),a=n(66024);e.exports=function(e,t,n){return t==t?a(e,t,n):o(e,i,n)}},15183:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return i(e)&&"[object Arguments]"==o(e)}},88746:function(e,t,n){var o=n(51952),i=n(15125);e.exports=function e(t,n,a,u,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,u,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),u=n(17416),l=n(70940),s=n(86152),c=n(73226),d=n(77598),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,y,v){var b=s(e),A=s(t),x=b?p:l(e),w=A?p:l(t);x=x==f?h:x,w=w==f?h:w;var _=x==h,S=w==h,C=x==w;if(C&&c(e)){if(!c(t))return!1;b=!0,_=!1}if(C&&!_)return v||(v=new o),b||d(e)?i(e,t,n,g,y,v):a(e,t,x,n,g,y,v);if(!(1&n)){var k=_&&m.call(e,"__wrapped__"),E=S&&m.call(t,"__wrapped__");if(k||E){var T=k?e.value():e,O=E?t.value():t;return v||(v=new o),y(T,O,n,g,v)}}return!!C&&(v||(v=new o),u(e,t,n,g,y,v))}},74511:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Map]"==o(e)}},37036:function(e,t,n){var o=n(86571),i=n(88746);e.exports=function(e,t,n,a){var u=n.length,l=u,s=!a;if(null==e)return!l;for(e=Object(e);u--;){var c=n[u];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++u<l;){var d=(c=n[u])[0],f=e[d],p=c[1];if(s&&c[2]){if(void 0===f&&!(d in e))return!1}else{var h=new o;if(a)var m=a(f,p,d,e,t,h);if(!(void 0===m?i(p,f,3,a,h):m))return!1}}return!0}},22195:function(e){e.exports=function(e){return e!=e}},6840:function(e,t,n){var o=n(61049),i=n(47394),a=n(29259),u=n(87035),l=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(o(e)?f:l).test(u(e))}},8109:function(e,t,n){var o=n(70940),i=n(15125);e.exports=function(e){return i(e)&&"[object Set]"==o(e)}},35522:function(e,t,n){var o=n(53366),i=n(61158),a=n(15125),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!u[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),u=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?u(e)?i(e[0],e[1]):o(e):l(e)}},86411:function(e,t,n){var o=n(16001),i=n(54248),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:function(e,t,n){var o=n(29259),i=n(16001),a=n(62966),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return a(e);var t=i(e),n=[];for(var l in e)"constructor"==l&&(t||!u.call(e,l))||n.push(l);return n}},26423:function(e,t,n){var o=n(37036),i=n(49882),a=n(73477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}},74716:function(e,t,n){var o=n(88746),i=n(72579),a=n(95041),u=n(21401),l=n(28792),s=n(73477),c=n(33812);e.exports=function(e,t){return u(e)&&l(t)?s(c(e),t):function(n){var u=i(n,e);return void 0===u&&u===t?a(n,e):o(t,u,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),u=n(25561),l=n(29259),s=n(18582),c=n(52434);e.exports=function e(t,n,d,f,p){t!==n&&a(n,function(a,s){if(p||(p=new o),l(a))u(t,n,s,d,e,f,p);else{var h=f?f(c(t,s),a,s+"",t,n,p):void 0;void 0===h&&(h=a),i(t,s,h)}},s)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),u=n(51522),l=n(78725),s=n(79631),c=n(86152),d=n(93746),f=n(73226),p=n(61049),h=n(29259),m=n(97030),g=n(77598),y=n(52434),v=n(63329);e.exports=function(e,t,n,b,A,x,w){var _=y(e,n),S=y(t,n),C=w.get(S);if(C){o(e,n,C);return}var k=x?x(_,S,n+"",e,t,w):void 0,E=void 0===k;if(E){var T=c(S),O=!T&&f(S),I=!T&&!O&&g(S);k=S,T||O||I?c(_)?k=_:d(_)?k=u(_):O?(E=!1,k=i(S,!0)):I?(E=!1,k=a(S,!0)):k=[]:m(S)||s(S)?(k=_,s(_)?k=v(_):(!h(_)||p(_))&&(k=l(S))):E=!1}E&&(w.set(S,k),A(k,S,b,x,w),w.delete(S)),o(e,n,k)}},20256:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:function(e,t,n){var o=n(13324);e.exports=function(e){return function(t){return o(t,e)}}},36060:function(e,t,n){var o=n(23059),i=n(43114),a=n(75251);e.exports=function(e,t){return a(i(e,t,o),e+"")}},86532:function(e,t,n){var o=n(86874),i=n(83043),a=n(23059),u=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=u},39872:function(e){e.exports=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+t];return a}},36473:function(e){e.exports=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},1054:function(e,t,n){var o=n(50857),i=n(50343),a=n(86152),u=n(4795),l=1/0,s=o?o.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(u(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},51704:function(e,t,n){var o=n(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},29078:function(e,t,n){var o=n(17297),i=n(56974),a=n(62721),u=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[u(i(t))]}},50753:function(e,t,n){var o=n(50343);e.exports=function(e,t){return o(t,function(t){return e[t]})}},59950:function(e){e.exports=function(e,t){return e.has(t)}},17297:function(e,t,n){var o=n(86152),i=n(21401),a=n(54452),u=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(u(e))}},23895:function(e,t,n){var o=n(39872);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:o(e,t,n)}},10768:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&o(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var o=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&o(t,e[n],0)>-1;);return n}},79882:function(e,t,n){var o=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},92175:function(e,t,n){e=n.nmd(e);var o=n(37772),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?o.Buffer:void 0,l=u?u.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}},34727:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var o=n(50857),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},6190:function(e,t,n){var o=n(79882);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},51522:function(e){e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},752:function(e,t,n){var o=n(60091),i=n(13940);e.exports=function(e,t,n,a){var u=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),u?i(n,c,d):o(n,c,d)}return n}},7680:function(e,t,n){var o=n(752),i=n(80633);e.exports=function(e,t){return o(e,i(e),t)}},19987:function(e,t,n){var o=n(752),i=n(12680);e.exports=function(e,t){return o(e,i(e),t)}},24019:function(e,t,n){var o=n(37772)["__core-js_shared__"];e.exports=o},97263:function(e,t,n){var o=n(36060),i=n(82406);e.exports=function(e){return o(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(u=e.length>3&&"function"==typeof u?(a--,u):void 0,l&&i(n[0],n[1],l)&&(u=a<3?void 0:u,a=1),t=Object(t);++o<a;){var s=n[o];s&&e(t,s,o,u)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),u=o(t),l=u.length;l--;){var s=u[e?l:++i];if(!1===n(a[s],s,a))break}return t}}},48642:function(e,t,n){var o=n(97030);e.exports=function(e){return o(e)?void 0:e}},83043:function(e,t,n){var o=n(38761),i=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,n){var o=n(45386),i=n(87064),a=n(59950);e.exports=function(e,t,n,u,l,s){var c=1&n,d=e.length,f=t.length;if(d!=f&&!(c&&f>d))return!1;var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=-1,g=!0,y=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++m<d;){var v=e[m],b=t[m];if(u)var A=c?u(b,v,m,t,e,s):u(v,b,m,e,t,s);if(void 0!==A){if(A)continue;g=!1;break}if(y){if(!i(t,function(e,t){if(!a(y,t)&&(v===e||l(v,e,n,u,s)))return y.push(t)})){g=!1;break}}else if(!(v===b||l(v,b,n,u,s))){g=!1;break}}return s.delete(e),s.delete(t),g}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),u=n(74871),l=n(75179),s=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=l;case"[object Set]":var m=1&o;if(h||(h=s),e.size!=t.size&&!m)break;var g=p.get(e);if(g)return g==t;o|=2,p.set(e,t);var y=u(h(e),h(t),o,c,f,p);return p.delete(e),y;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},17416:function(e,t,n){var o=n(13483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,u,l){var s=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!s)return!1;for(var f=d;f--;){var p=c[f];if(!(s?p in t:i.call(t,p)))return!1}var h=l.get(e),m=l.get(t);if(h&&m)return h==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var y=s;++f<d;){var v=e[p=c[f]],b=t[p];if(a)var A=s?a(b,v,p,t,e,l):a(v,b,p,e,t,l);if(!(void 0===A?v===b||u(v,b,n,a,l):A)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(g=!1)}return l.delete(e),l.delete(t),g}},29097:function(e,t,n){var o=n(35676),i=n(43114),a=n(75251);e.exports=function(e){return a(i(e,void 0,o),e+"")}},51242:function(e,t,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},13483:function(e,t,n){var o=n(1897),i=n(80633),a=n(90249);e.exports=function(e){return o(e,a,i)}},76939:function(e,t,n){var o=n(1897),i=n(12680),a=n(18582);e.exports=function(e){return o(e,a,i)}},27937:function(e,t,n){var o=n(98304);e.exports=function(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:function(e,t,n){var o=n(28792),i=n(90249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],u=e[a];t[n]=[a,u,o(u)]}return t}},38761:function(e,t,n){var o=n(6840),i=n(98109);e.exports=function(e,t){var n=i(e,t);return o(n)?n:void 0}},47353:function(e,t,n){var o=n(60241)(Object.getPrototypeOf,Object);e.exports=o},62107:function(e,t,n){var o=n(50857),i=Object.prototype,a=i.hasOwnProperty,u=i.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var o=!0}catch(e){}var i=u.call(e);return o&&(t?e[l]=n:delete e[l]),i}},80633:function(e,t,n){var o=n(67552),i=n(30981),a=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,l=u?function(e){return null==e?[]:o(u(e=Object(e)),function(t){return a.call(e,t)})}:i;e.exports=l},12680:function(e,t,n){var o=n(65067),i=n(47353),a=n(80633),u=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:u;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),u=n(2143),l=n(93215),s=n(53366),c=n(87035),d="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",g=c(o),y=c(i),v=c(a),b=c(u),A=c(l),x=s;(o&&x(new o(new ArrayBuffer(1)))!=m||i&&x(new i)!=d||a&&x(a.resolve())!=f||u&&x(new u)!=p||l&&x(new l)!=h)&&(x=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case g:return m;case y:return d;case v:return f;case b:return p;case A:return h}return t}),e.exports=x},98109:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1369:function(e,t,n){var o=n(17297),i=n(79631),a=n(86152),u=n(39045),l=n(61158),s=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,f=!1;++c<d;){var p=s(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=d?f:!!(d=null==e?0:e.length)&&l(d)&&u(p,d)&&(a(e)||i(e))}},33880:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},52118:function(e,t,n){var o=n(99191);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},96909:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4174:function(e,t,n){var o=n(99191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:i.call(t,e)}},7942:function(e,t,n){var o=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,o=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(o.index=e.index,o.input=e.input),o}},8222:function(e,t,n){var o=n(79882),i=n(34727),a=n(96058),u=n(70169),l=n(6190);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return u(e)}}},78725:function(e,t,n){var o=n(39413),i=n(47353),a=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}},95882:function(e,t,n){var o=n(50857),i=n(79631),a=n(86152),u=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(u&&e&&e[u])}},39045:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:function(e,t,n){var o=n(41225),i=n(67878),a=n(39045),u=n(29259);e.exports=function(e,t,n){if(!u(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&a(t,n.length)):"string"==l&&t in n)&&o(n[t],e)}},21401:function(e,t,n){var o=n(86152),i=n(4795),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||u.test(e)||!a.test(e)||null!=t&&e in Object(t)}},98304:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:function(e,t,n){var o,i=n(24019),a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";e.exports=function(e){return!!a&&a in e}},16001:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:function(e,t,n){var o=n(29259);e.exports=function(e){return e==e&&!o(e)}},3945:function(e){e.exports=function(){this.__data__=[],this.size=0}},21846:function(e,t,n){var o=n(22218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},88028:function(e,t,n){var o=n(22218);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},72344:function(e,t,n){var o=n(22218);e.exports=function(e){return o(this.__data__,e)>-1}},94769:function(e,t,n){var o=n(22218);e.exports=function(e,t){var n=this.__data__,i=o(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var o=n(89612),i=n(80235),a=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}},36417:function(e,t,n){var o=n(27937);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).get(e)}},79493:function(e,t,n){var o=n(27937);e.exports=function(e){return o(this,e).has(e)}},24150:function(e,t,n){var o=n(27937);e.exports=function(e,t){var n=o(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var o=n(30733);e.exports=function(e){var t=o(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var o=n(38761)(Object,"create");e.exports=o},54248:function(e,t,n){var o=n(60241)(Object.keys,Object);e.exports=o},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var o=n(51242),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=l},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var o=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,u=-1,l=i(a.length-t,0),s=Array(l);++u<l;)s[u]=a[t+u];u=-1;for(var c=Array(t+1);++u<t;)c[u]=a[u];return c[t]=n(s),o(e,this,c)}}},62721:function(e,t,n){var o=n(13324),i=n(39872);e.exports=function(e,t){return t.length<2?e:o(e,i(t,0,-1))}},37772:function(e,t,n){var o=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},52434:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},75251:function(e,t,n){var o=n(86532),i=n(97787)(o);e.exports=i},97787:function(e){var t=Date.now;e.exports=function(e){var n=0,o=0;return function(){var i=t(),a=16-(i-o);if(o=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var o=n(80235);e.exports=function(){this.__data__=new o,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var o=n(80235),i=n(10326),a=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof o){var u=n.__data__;if(!i||u.length<199)return u.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(u)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return -1}},8435:function(e,t,n){var o=n(50217),i=n(33880),a=n(63344);e.exports=function(e){return i(e)?a(e):o(e)}},54452:function(e,t,n){var o=n(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,u=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,o,i){t.push(o?i.replace(a,"$1"):n||e)}),t});e.exports=u},33812:function(e,t,n){var o=n(4795),i=1/0;e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},63344:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,u].join("|")+")"+s+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,u,"["+t+"]"].join("|")+")"+(s+l+c),"g");e.exports=function(e){return e.match(d)||[]}},60019:function(e,t,n){var o=n(60091),i=n(752),a=n(97263),u=n(67878),l=n(16001),s=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||u(t)){i(t,s(t),e);return}for(var n in t)c.call(t,n)&&o(e,n,t[n])});e.exports=d},9850:function(e,t,n){var o=n(18874);e.exports=function(e){return o(e,5)}},60417:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var a=e[t];a&&(i[o++]=a)}return i}},86874:function(e){e.exports=function(e){return function(){return e}}},17335:function(e,t,n){var o=n(85246),i=n(62034),a=n(36060),u=n(93746),l=a(function(e,t){return u(e)?o(e,i(t,1,u,!0)):[]});e.exports=l},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var o=n(62034);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},1910:function(e,t,n){var o=n(23919),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},72579:function(e,t,n){var o=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:o(e,t);return void 0===i?n:i}},95041:function(e,t,n){var o=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,o)}},23059:function(e){e.exports=function(e){return e}},11886:function(e,t,n){var o=n(77832),i=n(67878),a=n(85505),u=n(38101),l=n(98346),s=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?u(n):0;var d=e.length;return n<0&&(n=s(d+n,0)),a(e)?n<=d&&e.indexOf(t,n)>-1:!!d&&o(e,t,n)>-1}},79631:function(e,t,n){var o=n(15183),i=n(15125),a=Object.prototype,u=a.hasOwnProperty,l=a.propertyIsEnumerable,s=o(function(){return arguments}())?o:function(e){return i(e)&&u.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var o=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!o(e)}},93746:function(e,t,n){var o=n(67878),i=n(15125);e.exports=function(e){return i(e)&&o(e)}},73226:function(e,t,n){e=n.nmd(e);var o=n(37772),i=n(36330),a=t&&!t.nodeType&&t,u=a&&e&&!e.nodeType&&e,l=u&&u.exports===a?o.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||i},92301:function(e,t,n){var o=n(15125),i=n(97030);e.exports=function(e){return o(e)&&1===e.nodeType&&!i(e)}},61049:function(e,t,n){var o=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var o=n(74511),i=n(47826),a=n(4146),u=a&&a.isMap,l=u?i(u):o;e.exports=l},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var o=n(53366),i=n(47353),a=n(15125),u=Object.prototype,l=Function.prototype.toString,s=u.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=o(e))return!1;var t=i(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},43679:function(e,t,n){var o=n(8109),i=n(47826),a=n(4146),u=a&&a.isSet,l=u?i(u):o;e.exports=l},85505:function(e,t,n){var o=n(53366),i=n(86152),a=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==o(e)}},4795:function(e,t,n){var o=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==o(e)}},77598:function(e,t,n){var o=n(35522),i=n(47826),a=n(4146),u=a&&a.isTypedArray,l=u?i(u):o;e.exports=l},90249:function(e,t,n){var o=n(1634),i=n(86411),a=n(67878);e.exports=function(e){return a(e)?o(e):i(e)}},18582:function(e,t,n){var o=n(1634),i=n(18390),a=n(67878);e.exports=function(e){return a(e)?o(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},34519:function(e,t,n){var o=n(13940),i=n(26548),a=n(68286);e.exports=function(e,t){var n={};return t=a(t,3),i(e,function(e,i,a){o(n,i,t(e,i,a))}),n}},30733:function(e,t,n){var o=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var u=e.apply(this,o);return n.cache=a.set(i,u)||a,u};return n.cache=new(i.Cache||o),n}i.Cache=o,e.exports=i},98537:function(e,t,n){var o=n(84565),i=n(97263)(function(e,t,n){o(e,t,n)});e.exports=i},17620:function(e,t,n){var o=n(50343),i=n(18874),a=n(29078),u=n(17297),l=n(752),s=n(48642),c=n(29097),d=n(76939),f=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=o(t,function(t){return t=u(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,s));for(var f=t.length;f--;)a(n,t[f]);return n});e.exports=f},65798:function(e,t,n){var o=n(20256),i=n(82952),a=n(21401),u=n(33812);e.exports=function(e){return a(e)?o(u(e)):i(e)}},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},5707:function(e,t,n){var o=n(7642),i=1/0;e.exports=function(e){return e?(e=o(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var o=n(5707);e.exports=function(e){var t=o(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var o=n(51704),i=n(29259),a=n(4795),u=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return u;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=s.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?u:+e}},63329:function(e,t,n){var o=n(752),i=n(18582);e.exports=function(e){return o(e,i(e))}},66188:function(e,t,n){var o=n(1054);e.exports=function(e){return null==e?"":o(e)}},5648:function(e,t,n){var o=n(1054),i=n(51704),a=n(23895),u=n(10768),l=n(51821),s=n(8435),c=n(66188);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return i(e);if(!e||!(t=o(t)))return e;var d=s(e),f=s(t),p=l(d,f),h=u(d,f)+1;return a(d,p,h).join("")}},74930:function(e,t,n){var o=n(66188),i=0;e.exports=function(e){var t=++i;return o(e)+t}},98346:function(e,t,n){var o=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:o(e,i(e))}},70314:function(e,t,n){e.exports=n(11809)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(91853)}])},27501:function(e,t,n){"use strict";var o=n(77859),i=n(70314),a=n.n(i),u=window;u.__sentryRewritesTunnelPath__=void 0,u.SENTRY_RELEASE={id:"2f67adb97ac48b138b7a176fa436fbc9b6e76a79"},u.__rewriteFramesAssetPrefixPath__="";let{publicRuntimeConfig:l}=a()();o.S1({dsn:"https://".concat("52e42fce46f0404c92a1169b0dc636dc","@").concat("o146123.ingest.sentry.io","/").concat("4504179265437696"),tracesSampleRate:.05,tunnel:"/api/t",environment:l.sentryEnvironment})},94684:function(e,t){"use strict";var n,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return d},ACTION_REFRESH:function(){return u},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return h}});let u="refresh",l="navigate",s="restore",c="server-patch",d="prefetch",f="fast-refresh",p="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=o||(o={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8250:function(e,t,n){"use strict";function o(e,t,n,o){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}}),n(62476),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let o=n(17653),i=n(52322),a=o._(n(2784)),u=n(98047),l=n(26790),s=n(47973),c=n(49274),d=n(78074),f=n(17942),p=n(1586),h=n(70514),m=n(8250),g=n(87891),y=n(94684),v=new Set;function b(e,t,n,o,i,a){if(a||(0,l.isLocalURL)(t)){if(!o.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function A(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:s,as:v,children:x,prefetch:w=null,passHref:_,replace:S,shallow:C,scroll:k,locale:E,onClick:T,onMouseEnter:O,onTouchStart:I,legacyBehavior:R=!1,...M}=e;n=x,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let j=a.default.useContext(f.RouterContext),D=a.default.useContext(p.AppRouterContext),P=null!=j?j:D,F=!j,L=!1!==w,N=null===w?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:U,as:B}=a.default.useMemo(()=>{if(!j){let e=A(s);return{href:e,as:v?A(v):e}}let[e,t]=(0,u.resolveHref)(j,s,!0);return{href:e,as:v?(0,u.resolveHref)(j,v):t||e}},[j,s,v]),W=a.default.useRef(U),z=a.default.useRef(B);R&&(o=a.default.Children.only(n));let V=R?o&&"object"==typeof o&&o.ref:t,[K,$,H]=(0,h.useIntersection)({rootMargin:"200px"}),q=a.default.useCallback(e=>{(z.current!==B||W.current!==U)&&(H(),z.current=B,W.current=U),K(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[B,V,U,H,K]);a.default.useEffect(()=>{P&&$&&L&&b(P,U,B,{locale:E},{kind:N},F)},[B,U,$,E,L,null==j?void 0:j.locale,P,F,N]);let Z={ref:q,onClick(e){R||"function"!=typeof T||T(e),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),P&&!e.defaultPrevented&&function(e,t,n,o,i,u,s,c,d){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!d&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:u,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(p):p()}(e,P,U,B,S,C,k,E,F)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),P&&(L||!F)&&b(P,U,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},F)},onTouchStart:function(e){R||"function"!=typeof I||I(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),P&&(L||!F)&&b(P,U,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},F)}};if((0,c.isAbsoluteUrl)(B))Z.href=B;else if(!R||_||"a"===o.type&&!("href"in o.props)){let e=void 0!==E?E:null==j?void 0:j.locale,t=(null==j?void 0:j.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==j?void 0:j.locales,null==j?void 0:j.domainLocales);Z.href=t||(0,g.addBasePath)((0,d.addLocale)(B,e,null==j?void 0:j.defaultLocale))}return R?a.default.cloneElement(o,Z):(0,i.jsx)("a",{...M,...Z,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let o=n(2784),i=n(25132),a="function"==typeof IntersectionObserver,u=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[d,f]=(0,o.useState)(!1),p=(0,o.useRef)(null),h=(0,o.useCallback)(e=>{p.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:o,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},o=l.find(e=>e.root===n.root&&e.margin===n.margin);if(o&&(t=u.get(o)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},l.push(n),u.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),u.delete(o);let e=l.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!d){let e=(0,i.requestIdleCallback)(()=>f(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,d,p.current]),[h,d,(0,o.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},noSSR:function(){return u}});let o=n(17653);n(52322),n(2784);let i=o._(n(56800));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let n=i.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e});let l=(o={...o,...t}).loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?n({...o,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete o.webpack,delete o.modules,u(n,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46085:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let o=n(17653)._(n(2784)).default.createContext(null)},56800:function(e,t,n){"use strict";/**
|
|
551
551
|
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
|
|
552
552
|
MIT License
|
|
553
553
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -566,7 +566,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
566
566
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
567
567
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
568
568
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
|
|
569
|
-
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let o=n(17653)._(n(2784)),i=n(46085),a=[],u=[],l=!1;function s(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new c(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&u.push(t=>{for(let n of e)if(t.includes(n))return s()})}function d(e,t){!function(){s();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let u=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return u.loading||u.error?o.default.createElement(n.loading,{isLoading:u.loading,pastDelay:u.pastDelay,timedOut:u.timedOut,error:u.error,retry:a.retry}):u.loaded?o.default.createElement((t=u.loaded)&&t.default?t.default:t,e):null},[e,u])}return d.preload=()=>s(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(s,e)}function f(e,t){let n=[];for(;e.length;){let o=e.pop();n.push(o(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(u,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},30988:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var o=n(52322),i=n(33760),a=n(37792),u=n(2784),l=n(52762);let s=e=>{let t=(0,u.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.SV,{...e,onError:e=>{t.current=e},ref:(0,u.useCallback)(e=>{if(null===e)return;let n=t.current;((0,a.ff)(n)||(0,a.TW)(n))&&(t.current=void 0,e.reset())},[n])})}},93188:function(e,t,n){"use strict";n.d(t,{KA:function(){return l},Ve:function(){return p},X$:function(){return s},XQ:function(){return f},Xe:function(){return b},Xi:function(){return d},Yf:function(){return m},eH:function(){return c},pL:function(){return y},t0:function(){return g},tI:function(){return h},y0:function(){return u},y3:function(){return v}});var o=n(95799),i=n(80410),a=n(70647);let u=async()=>{let e=await a.managerClient.getState();return{...e,libraries:e.libraries.map(e=>({...e,components:e.components.map(e=>({...e,model:i.id.toSM(e.model),screenshots:Object.fromEntries(Object.entries(e.screenshots).map(e=>{let[t,n]=e;return[t,{...n,url:URL.createObjectURL(n.data)}]}))}))})),customTypes:e.customTypes.map(e=>o.Dc.toSM(e)),remoteCustomTypes:e.remoteCustomTypes.map(e=>o.Dc.toSM(e)),remoteSlices:e.remoteSlices.map(e=>i.id.toSM(e))}},l=async e=>await a.managerClient.customTypes.updateCustomType({model:e}),s=async(e,t)=>{let{model:n,errors:o}=await a.managerClient.slices.readSlice({libraryID:e,sliceID:t});return{slice:n?i.id.toSM(n):void 0,errors:o}},c=async(e,t)=>await a.managerClient.slices.renameSliceVariation({libraryID:e.from,sliceID:e.model.id,variationID:t.id,model:i.bB.fromSM(t)}),d=a.managerClient.slices.deleteSliceVariation,f=async e=>{let{errors:t}=await a.managerClient.slices.updateSliceScreenshot({libraryID:e.libraryName,sliceID:e.sliceId,variationID:e.variationId,data:e.file});return{url:URL.createObjectURL(e.file),errors:t}},p=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),h=async e=>await a.managerClient.prismicRepository.pushChanges(e),m=async()=>await a.managerClient.user.logout(),g=async()=>{if(!await a.managerClient.user.checkIsLoggedIn())return{status:"pending"};{let e=await a.managerClient.user.getProfile();return{status:"ok",shortId:e.shortId,intercomHash:e.intercomHash}}},y=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),v=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),b={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},23335:function(e,t,n){"use strict";n.d(t,{a:function(){return s},g:function(){return c}});var o=n(52322),i=n(33760),a=n(2784),u=n(63853),l=n.n(u);let s=e=>{let{children:t,...n}=e,i=a.Children.count(t);return(0,o.jsx)("nav",{"aria-label":"Breadcrumb",...n,children:(0,o.jsx)("ol",{className:l().items,children:a.Children.map(t,(e,t)=>(0,o.jsxs)(o.Fragment,{children:[e,t<i-1?(0,o.jsx)(d,{}):null]}))})})},c=e=>{let{active:t=!1,children:n,...a}=e;return(0,o.jsx)("li",{...a,children:(0,o.jsx)(i.xv,{component:"span",color:t?"grey12":"grey11",variant:t?"bold":"normal",children:n})})},d=()=>(0,o.jsx)("li",{"aria-hidden":!0,children:(0,o.jsx)(i.xv,{component:"span",color:"grey11",children:"/"})})},99044:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return th},Rp:function(){return tx},OJ:function(){return tA},LB:function(){return tb},Ev:function(){return tv}});var a=n(52322),u=n(33760),l=n(36887),s=n(6277),c=n(2784),d=n(10635),f=n(7896);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function h(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,c.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,c.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=(0,c.createContext)(o),a=n.length;function u(t){let{scope:n,children:o,...u}=t,l=(null==n?void 0:n[e][a])||i,s=(0,c.useMemo)(()=>u,Object.values(u));return(0,c.createElement)(l.Provider,{value:s},o)}return n=[...n,o],u.displayName=t+"Provider",[u,function(n,u){let l=(null==u?void 0:u[e][a])||i,s=(0,c.useContext)(l);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:o})=>{let i=n(e)[`__scope${o}`];return{...t,...i}},{});return(0,c.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function m(e){let t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),(0,c.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function g(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function y(...e){return(0,c.useCallback)(g(...e),e)}function v(e){return e.split("-")[1]}function b(e){return"y"===e?"height":"width"}function A(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(A(e))?"x":"y"}function w(e,t,n){let o,{reference:i,floating:a}=e,u=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,s=x(t),c=b(s),d=i[c]/2-a[c]/2,f="x"===s;switch(A(t)){case"top":o={x:u,y:i.y-a.height};break;case"bottom":o={x:u,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:l};break;case"left":o={x:i.x-a.width,y:l};break;default:o={x:i.x,y:i.y}}switch(v(t)){case"start":o[s]-=d*(n&&f?-1:1);break;case"end":o[s]+=d*(n&&f?-1:1)}return o}let _=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:u}=n,l=a.filter(Boolean),s=await (null==u.isRTL?void 0:u.isRTL(t)),c=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=w(c,o,s),p=o,h={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:g}=l[n],{x:y,y:v,data:b,reset:A}=await g({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:c,platform:u,elements:{reference:e,floating:t}});d=null!=y?y:d,f=null!=v?v:f,h={...h,[a]:{...h[a],...b}},A&&m<=50&&(m++,"object"==typeof A&&(A.placement&&(p=A.placement),A.rects&&(c=!0===A.rects?await u.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:d,y:f}=w(c,p,s)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};function S(e,t){return"function"==typeof e?e(t):e}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function E(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:u,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=S(t,e),m=C(h),g=l[p?"floating"===f?"reference":"floating":f],y=k(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),v="floating"===f?{...u.floating,x:o,y:i}:u.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),A=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=k(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:s}):v);return{top:(y.top-x.top+m.top)/A.y,bottom:(x.bottom-y.bottom+m.bottom)/A.y,left:(y.left-x.left+m.left)/A.x,right:(x.right-y.right+m.right)/A.x}}let T=Math.min,O=Math.max,I=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:u,elements:l}=t,{element:s,padding:c=0}=S(e,t)||{};if(null==s)return{};let d=C(c),f={x:n,y:o},p=x(i),h=b(p),m=await u.getDimensions(s),g="y"===p,y=g?"clientHeight":"clientWidth",A=a.reference[h]+a.reference[p]-f[p]-a.floating[h],w=f[p]-a.reference[p],_=await (null==u.getOffsetParent?void 0:u.getOffsetParent(s)),k=_?_[y]:0;k&&await (null==u.isElement?void 0:u.isElement(_))||(k=l.floating[y]||a.floating[h]);let E=k/2-m[h]/2-1,I=T(d[g?"top":"left"],E),R=T(d[g?"bottom":"right"],E),M=k-m[h]-R,j=k/2-m[h]/2+(A/2-w/2),D=O(I,T(j,M)),P=null!=v(i)&&j!=D&&a.reference[h]/2-(j<I?I:R)-m[h]/2<0?j<I?I-j:M-j:0;return{[p]:f[p]-P,data:{[p]:D,centerOffset:j-D+P}}}}),R=["top","right","bottom","left"],M=(R.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function j(e){return e.replace(/left|right|bottom|top/g,e=>M[e])}let D={start:"end",end:"start"};function P(e){return e.replace(/start|end/g,e=>D[e])}function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return R.some(t=>e[t]>=0)}function N(e){return"x"===e?"y":"x"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){return U(e).getComputedStyle(e)}function W(e){return e instanceof U(e).Node}function z(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){return e instanceof U(e).HTMLElement}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof U(e).ShadowRoot||e instanceof ShadowRoot)}function $(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function H(e){let t=q(),n=B(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(z(e))}let G=Math.min,Y=Math.max,Q=Math.round,J=Math.floor,X=e=>({x:e,y:e});function ee(e){let t=B(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=V(e),a=i?e.offsetWidth:n,u=i?e.offsetHeight:o,l=Q(n)!==a||Q(o)!==u;return l&&(n=a,o=u),{width:n,height:o,$:l}}function et(e){return e instanceof U(e).Element}function en(e){return et(e)?e:e.contextElement}function er(e){let t=en(e);if(!V(t))return X(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=ee(t),u=(a?Q(n.width):n.width)/o,l=(a?Q(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),l&&Number.isFinite(l)||(l=1),{x:u,y:l}}let eo=X(0);function ei(e){let t=U(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),u=en(e),l=X(1);t&&(o?et(o)&&(l=er(o)):l=er(e));let s=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==U(u))&&i)?ei(u):X(0),c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,f=a.width/l.x,p=a.height/l.y;if(u){let e=U(u),t=o&&et(o)?U(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=er(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=a,n=U(n).frameElement}}return k({width:f,height:p,x:c,y:d})}function eu(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function el(e){return((W(e)?e.ownerDocument:e.document)||window.document).documentElement}function es(e){return ea(el(e)).left+eu(e).scrollLeft}function ec(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||K(e)&&e.host||el(e);return K(t)?t.host:t}function ed(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ec(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&$(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=U(o);return i?t.concat(a,a.visualViewport||[],$(o)?o:[]):t.concat(o,ed(o))}function ef(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=U(e),o=el(e),i=n.visualViewport,a=o.clientWidth,u=o.clientHeight,l=0,s=0;if(i){a=i.width,u=i.height;let e=q();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:u,x:l,y:s}}(e,n);else if("document"===t)o=function(e){let t=el(e),n=eu(e),o=e.ownerDocument.body,i=Y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+es(e),l=-n.scrollTop;return"rtl"===B(o).direction&&(u+=Y(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:u,y:l}}(el(e));else if(et(t))o=function(e,t){let n=ea(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=V(e)?er(e):X(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,n);else{let n=ei(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return k(o)}function ep(e,t){return V(e)&&"fixed"!==B(e).position?t?t(e):e.offsetParent:null}function eh(e,t){let n=U(e);if(!V(e))return n;let o=ep(e,t);for(;o&&["table","td","th"].includes(z(o))&&"static"===B(o).position;)o=ep(o,t);return o&&("html"===z(o)||"body"===z(o)&&"static"===B(o).position&&!H(o))?n:o||function(e){let t=ec(e);for(;V(t)&&!Z(t);){if(H(t))return t;t=ec(t)}return null}(e)||n}let em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=V(n),a=el(n);if(n===a)return t;let u={scrollLeft:0,scrollTop:0},l=X(1),s=X(0);if((i||!i&&"fixed"!==o)&&(("body"!==z(n)||$(a))&&(u=eu(n)),V(n))){let e=ea(n);l=er(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-u.scrollLeft*l.x+s.x,y:t.y*l.y-u.scrollTop*l.y+s.y}},getDocumentElement:el,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let o=ed(e).filter(e=>et(e)&&"body"!==z(e)),i=null,a="fixed"===B(e).position,u=a?ec(e):e;for(;et(u)&&!Z(u);){let t=B(u),n=H(u);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||$(u)&&!n&&function e(t,n){let o=ec(t);return!(o===n||!et(o)||Z(o))&&("fixed"===B(o).position||e(o,n))}(e,u))?o=o.filter(e=>e!==u):i=t,u=ec(u)}return t.set(e,o),o}(t,this._c):[].concat(n),o],u=a[0],l=a.reduce((e,n)=>{let o=ef(t,n,i);return e.top=Y(o.top,e.top),e.right=G(o.right,e.right),e.bottom=G(o.bottom,e.bottom),e.left=Y(o.left,e.left),e},ef(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eh,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||eh,a=this.getDimensions;return{reference:function(e,t,n){let o=V(t),i=el(t),a="fixed"===n,u=ea(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=X(0);if(o||!o&&!a){if(("body"!==z(t)||$(i))&&(l=eu(t)),V(t)){let e=ea(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=es(i))}return{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}(t,await i(n),o),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ee(e)},getScale:er,isElement:et,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eg(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=en(e),d=i||a?[...c?ed(c):[],...ed(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,o=null,i=el(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function u(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;let h={rootMargin:-J(d)+"px "+-J(i.clientWidth-(c+f))+"px "+-J(i.clientHeight-(d+p))+"px "+-J(c)+"px",threshold:Y(0,G(1,s))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==s){if(!m)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}(!0),a}(c,n):null,p,h=-1,m=null;u&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let g=s?ea(e):null;return s&&function t(){let o=ea(e);g&&(o.x!==g.x||o.y!==g.y||o.width!==g.width||o.height!==g.height)&&n(),g=o,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,s&&cancelAnimationFrame(p)}}let ey=(e,t,n)=>{let o=new Map,i={platform:em,...n},a={...i.platform,_c:o};return _(e,t,{...i,platform:a})};var ev=n(28316);let eb=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return I({element:n.current,padding:o}).fn(t)}else if(n)return I({element:n,padding:o}).fn(t);return{}}});var eA="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function ex(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!ex(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!e.$$typeof)&&!ex(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ew(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let n=ew(e);return Math.round(t*n)/n}function eS(e){let t=c.useRef(e);return eA(()=>{t.current=e}),t}let eC=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null);return(0,c.createElement)(ek,(0,f.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(ek,(0,f.Z)({},o,{ref:t}),n)});eC.displayName="Slot";let ek=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?g(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});ek.displayName="SlotClone";let eE=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eT(e){return(0,c.isValidElement)(e)&&e.type===eE}let eO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,c.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eC:t;return(0,c.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,c.createElement)(a,(0,f.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eI=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eO.svg,(0,f.Z)({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),eR=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eM="Popper",[ej,eD]=h(eM),[eP,eF]=ej(eM),eL=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eF("PopperAnchor",n),u=(0,c.useRef)(null),l=y(t,u);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,c.createElement)(eO.div,(0,f.Z)({},i,{ref:l}))}),eN="PopperContent",[eU,eB]=ej(eN),eW=(0,c.forwardRef)((e,t)=>{var n,o,i,a,u,l,s,d,p,h,g,w,_,C;let{__scopePopper:k,side:I="bottom",sideOffset:R=0,align:M="center",alignOffset:D=0,arrowPadding:U=0,collisionBoundary:B=[],collisionPadding:W=0,sticky:z="partial",hideWhenDetached:V=!1,avoidCollisions:K=!0,onPlaced:$,...H}=e,q=eF(eN,k),[Z,G]=(0,c.useState)(null),Y=y(t,e=>G(e)),[Q,J]=(0,c.useState)(null),X=function(e){let[t,n]=(0,c.useState)(void 0);return eR(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(Q),ee=null!==(n=null==X?void 0:X.width)&&void 0!==n?n:0,et=null!==(o=null==X?void 0:X.height)&&void 0!==o?o:0,en="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},er=Array.isArray(B)?B:[B],eo=er.length>0,ei={padding:en,boundary:er.filter(eK),altBoundary:eo},{refs:ea,floatingStyles:eu,placement:el,isPositioned:es,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:u}={},transform:l=!0,whileElementsMounted:s,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(o);ex(h,o)||m(o);let[g,y]=c.useState(null),[v,b]=c.useState(null),A=c.useCallback(e=>{e!=S.current&&(S.current=e,y(e))},[y]),x=c.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[b]),w=a||g,_=u||v,S=c.useRef(null),C=c.useRef(null),k=c.useRef(f),E=eS(s),T=eS(i),O=c.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:h};T.current&&(e.platform=T.current),ey(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!ex(k.current,t)&&(k.current=t,ev.flushSync(()=>{p(t)}))})},[h,t,n,T]);eA(()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let I=c.useRef(!1);eA(()=>(I.current=!0,()=>{I.current=!1}),[]),eA(()=>{if(w&&(S.current=w),_&&(C.current=_),w&&_){if(E.current)return E.current(w,_,O);O()}},[w,_,O,E]);let R=c.useMemo(()=>({reference:S,floating:C,setReference:A,setFloating:x}),[A,x]),M=c.useMemo(()=>({reference:w,floating:_}),[w,_]),j=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=e_(M.floating,f.x),o=e_(M.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...ew(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:O,refs:R,elements:M,floatingStyles:j}),[f,O,R,M,j])}({strategy:"fixed",placement:I+("center"!==M?"-"+M:""),whileElementsMounted:eg,elements:{reference:q.anchor},middleware:[{name:"offset",options:p={mainAxis:R+et,alignmentAxis:D},async fn(e){let{x:t,y:n}=e,o=await async function(e,t){let{placement:n,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=A(n),l=v(n),s="x"===x(n),c=["left","top"].includes(u)?-1:1,d=a&&s?-1:1,f=S(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof m&&(h="end"===l?-1*m:m),s?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(e,p);return{x:t+o.x,y:n+o.y,data:o}}},K&&{name:"shift",options:g={mainAxis:!0,crossAxis:!1,limiter:"partial"===z?(void 0===h&&(h={}),{options:h,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:u=0,mainAxis:l=!0,crossAxis:s=!0}=S(h,e),c={x:t,y:n},d=x(o),f=N(d),p=c[d],m=c[f],g=S(u,e),y="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,n=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var v,b;let e="y"===d?"width":"height",t=["top","left"].includes(A(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[f])||0)+(t?0:y.crossAxis),u=i.reference[f]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[f])||0)-(t?y.crossAxis:0);m<n?m=n:m>u&&(m=u)}return{[d]:p,[f]:m}}}):void 0,...ei},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=S(g,e),s={x:t,y:n},c=await E(e,l),d=x(A(o)),f=N(d),p=s[d],h=s[f];if(i){let e="y"===d?"bottom":"right";p=O(p+c["y"===d?"top":"left"],T(p,p-c[e]))}if(a){let e="y"===f?"bottom":"right";h=O(h+c["y"===f?"top":"left"],T(h,h-c[e]))}let m=u.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-t,y:m.y-n}}}},K&&{name:"flip",options:w={...ei},async fn(e){var t,n,o,i;let{placement:a,middlewareData:u,rects:l,initialPlacement:s,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,..._}=S(w,e),C=A(a),k=A(s)===s,T=await (null==c.isRTL?void 0:c.isRTL(d.floating)),O=h||(k||!y?[j(s)]:function(e){let t=j(e);return[P(e),t,P(t)]}(s));h||"none"===g||O.push(...function(e,t,n,o){let i=v(e),a=function(e,t,n){let o=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(A(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(P)))),a}(s,y,g,T));let I=[s,...O],R=await E(e,_),M=[],D=(null==(t=u.flip)?void 0:t.overflows)||[];if(f&&M.push(R[C]),p){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=v(e),i=x(e),a=b(i),u="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(u=j(u)),{main:u,cross:j(u)}}(a,l,T);M.push(R[e],R[t])}if(D=[...D,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(n=u.flip)?void 0:n.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let l=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(m){case"bestFit":{let e=null==(i=D.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(l=e);break}case"initialPlacement":l=s}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:_={...ei,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,u=e.floating.style;u.setProperty("--radix-popper-available-width",`${n}px`),u.setProperty("--radix-popper-available-height",`${o}px`),u.setProperty("--radix-popper-anchor-width",`${i}px`),u.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:u}=e,{apply:l=()=>{},...s}=S(_,e),c=await E(e,s),d=A(o),f=v(o),p="x"===x(o),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let g=m-c[t],y=h-c[n],b=!e.middlewareData.shift,w=g,C=y;if(p){let e=h-c.left-c.right;C=f||b?T(y,e):e}else{let e=m-c.top-c.bottom;w=f||b?T(g,e):e}if(b&&!f){let e=O(c.left,0),t=O(c.right,0),n=O(c.top,0),o=O(c.bottom,0);p?C=h-2*(0!==e||0!==t?e+t:O(c.left,c.right)):w=m-2*(0!==n||0!==o?n+o:O(c.top,c.bottom))}await l({...e,availableWidth:C,availableHeight:w});let k=await a.getDimensions(u.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}},Q&&eb({element:Q,padding:U}),e$({arrowWidth:ee,arrowHeight:et}),V&&{name:"hide",options:C={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=S(C,e);switch(n){case"referenceHidden":{let n=F(await E(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:L(n)}}}case"escaped":{let n=F(await E(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:L(n)}}}default:return{}}}}]}),[ed,ef]=eH(el),ep=m($);eR(()=>{es&&(null==ep||ep())},[es,ep]);let eh=null===(i=ec.arrow)||void 0===i?void 0:i.x,em=null===(a=ec.arrow)||void 0===a?void 0:a.y,eC=(null===(u=ec.arrow)||void 0===u?void 0:u.centerOffset)!==0,[ek,eE]=(0,c.useState)();return eR(()=>{Z&&eE(window.getComputedStyle(Z).zIndex)},[Z]),(0,c.createElement)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:es?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null===(l=ec.transformOrigin)||void 0===l?void 0:l.x,null===(s=ec.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},(0,c.createElement)(eU,{scope:k,placedSide:ed,onArrowChange:J,arrowX:eh,arrowY:em,shouldHideArrow:eC},(0,c.createElement)(eO.div,(0,f.Z)({"data-side":ed,"data-align":ef},H,{ref:Y,style:{...H.style,animation:es?void 0:"none",opacity:null!==(d=ec.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),ez={top:"bottom",right:"left",bottom:"top",left:"right"},eV=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eB("PopperArrow",n),a=ez[i.placedSide];return(0,c.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(eI,(0,f.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eK(e){return null!==e}let e$=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,u;let{placement:l,rects:s,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,m]=eH(l),g={start:"0%",center:"50%",end:"100%"}[m],y=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+f/2,v=(null!==(a=null===(u=c.arrow)||void 0===u?void 0:u.y)&&void 0!==a?a:0)+p/2,b="",A="";return"bottom"===h?(b=d?g:`${y}px`,A=`${-p}px`):"top"===h?(b=d?g:`${y}px`,A=`${s.floating.height+p}px`):"right"===h?(b=`${-p}px`,A=d?g:`${v}px`):"left"===h&&(b=`${s.floating.width+p}px`,A=d?g:`${v}px`),{data:{x:b,y:A}}}});function eH(e){let[t,n="center"]=e.split("-");return[t,n]}let eq=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eP,{scope:t,anchor:o,onAnchorChange:i},n)},eZ=(0,c.forwardRef)((e,t)=>{var n;let{container:o=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return o?ev.createPortal((0,c.createElement)(eO.div,(0,f.Z)({},i,{ref:t})),o):null}),eG=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),u=(0,c.useRef)(e),l=(0,c.useRef)("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,c.useReducer)((e,t)=>{let o=n[e][t];return null!=o?o:e},t));return(0,c.useEffect)(()=>{let e=eY(a.current);l.current="mounted"===s?e:"none"},[s]),eR(()=>{let t=a.current,n=u.current;if(n!==e){let o=l.current,i=eY(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),eR(()=>{if(o){let e=e=>{let t=eY(a.current).includes(e.animationName);e.target===o&&t&&(0,ev.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eY(a.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,c.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):c.Children.only(n),a=y(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eY(e){return(null==e?void 0:e.animationName)||"none"}eG.displayName="Presence";let eQ="dismissableLayer.update",eJ=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eX=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:s,onDismiss:d,...h}=e,g=(0,c.useContext)(eJ),[v,b]=(0,c.useState)(null),A=null!==(n=null==v?void 0:v.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),w=y(t,e=>b(e)),_=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),C=_.indexOf(S),k=v?_.indexOf(v):-1,E=g.layersWithOutsidePointerEventsDisabled.size>0,T=k>=C,O=function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e),o=(0,c.useRef)(!1),i=(0,c.useRef)(()=>{});return(0,c.useEffect)(()=>{let e=e=>{if(e.target&&!o.current){let o={originalEvent:e};function a(){e1("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!T||n||(null==u||u(e),null==s||s(e),e.defaultPrevented||null==d||d())},A),I=function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e1("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==d||d())},A);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{k!==g.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},A),(0,c.useEffect)(()=>{if(v)return i&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(o=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),e0(),()=>{i&&1===g.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=o)}},[v,A,i,g]),(0,c.useEffect)(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),e0())},[v,g]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(eQ,e),()=>document.removeEventListener(eQ,e)},[]),(0,c.createElement)(eO.div,(0,f.Z)({},h,{ref:w,style:{pointerEvents:E?T?"auto":"none":void 0,...e.style},onFocusCapture:p(e.onFocusCapture,I.onFocusCapture),onBlurCapture:p(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:p(e.onPointerDownCapture,O.onPointerDownCapture)}))});function e0(){let e=new CustomEvent(eQ);document.dispatchEvent(e)}function e1(e,t,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&(0,ev.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e2="HoverCard",[e5,e3]=h(e2,[eD]),e4=eD(),[e6,e8]=e5(e2),e9=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e8("HoverCardTrigger",n),a=e4(n);return(0,c.createElement)(eL,(0,f.Z)({asChild:!0},a),(0,c.createElement)(eO.a,(0,f.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:p(e.onPointerEnter,ta(i.onOpen)),onPointerLeave:p(e.onPointerLeave,ta(i.onClose)),onFocus:p(e.onFocus,i.onOpen),onBlur:p(e.onBlur,i.onClose),onTouchStart:p(e.onTouchStart,e=>e.preventDefault())})))}),e7="HoverCardPortal",[te,tt]=e5(e7,{forceMount:void 0}),tn="HoverCardContent",tr=(0,c.forwardRef)((e,t)=>{let n=tt(tn,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=e8(tn,e.__scopeHoverCard);return(0,c.createElement)(eG,{present:o||a.open},(0,c.createElement)(to,(0,f.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:p(e.onPointerEnter,ta(a.onOpen)),onPointerLeave:p(e.onPointerLeave,ta(a.onClose)),ref:t})))}),to=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,...s}=e,d=e8(tn,n),h=e4(n),m=(0,c.useRef)(null),g=y(t,m),[v,b]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(v){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[v]),(0,c.useEffect)(()=>{if(m.current){let e=()=>{b(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),(0,c.useEffect)(()=>{m.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(m.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(eX,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:p(u,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eW,(0,f.Z)({},h,s,{onPointerDown:p(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&b(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:g,style:{...s.style,userSelect:v?"text":void 0,WebkitUserSelect:v?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}),ti=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e4(n);return(0,c.createElement)(eV,(0,f.Z)({},i,o,{ref:t}))});function ta(e){return t=>"touch"===t.pointerType?void 0:e()}let tu=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:u=700,closeDelay:l=300}=e,s=e4(t),d=(0,c.useRef)(0),f=(0,c.useRef)(0),p=(0,c.useRef)(!1),h=(0,c.useRef)(!1),[g=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=(0,c.useState)(e),[o]=n,i=(0,c.useRef)(o),a=m(t);return(0,c.useEffect)(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:o,l=m(n);return[u,(0,c.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}({prop:o,defaultProp:i,onChange:a}),v=(0,c.useCallback)(()=>{clearTimeout(f.current),d.current=window.setTimeout(()=>y(!0),u)},[u,y]),b=(0,c.useCallback)(()=>{clearTimeout(d.current),p.current||h.current||(f.current=window.setTimeout(()=>y(!1),l))},[l,y]),A=(0,c.useCallback)(()=>y(!1),[y]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]),(0,c.createElement)(e6,{scope:t,open:g,onOpenChange:y,onOpen:v,onClose:b,onDismiss:A,hasSelectionRef:p,isPointerDownOnContentRef:h},(0,c.createElement)(eq,s,n))},tl=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=e8(e7,t);return(0,c.createElement)(te,{scope:t,forceMount:n},(0,c.createElement)(eG,{present:n||a.open},(0,c.createElement)(eZ,{asChild:!0,container:i},o)))};var ts=n(13821),tc=n.n(ts);let td=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(u.rS.space[16]),side:s,sideOffset:d=4,trigger:f,...p}=e,{arrowWidth:h,arrowHeight:m}=(0,c.useMemo)(()=>{if(void 0===o)return{arrowWidth:10,arrowHeight:5};let e=Math.SQRT2*o;return{arrowWidth:e,arrowHeight:e/2}},[o]);return(0,a.jsxs)(tu,{...p,children:[(0,a.jsx)(e9,{asChild:!0,children:f}),(0,a.jsx)(tl,{children:(0,a.jsxs)(tr,{align:t,alignOffset:n,className:tc().container,collisionPadding:l,side:s,sideOffset:d,children:[i,(0,a.jsx)(ti,{className:tc().arrow,height:m,width:h})]})})]})};var tf=n(77452),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:u,onClose:l,open:s,openDelay:d=5e3,side:f,sideOffset:p,trigger:h}=e,[m,g]=(0,c.useState)(!1),y=(0,c.useCallback)(()=>{l&&l(),g(!1)},[l,g]);return!function(e){let{condition:t,action:n,delay:o}=e,[i,a]=(0,c.useState)(null);(0,c.useEffect)(()=>(t&&null===i&&a(setTimeout(n,o)),()=>{null!==i&&(clearTimeout(i),a(null))}),[t,n,o,i,a])}({condition:!0===s,action:(0,c.useCallback)(()=>g(e=>!1===e),[g]),delay:d}),(0,a.jsx)(td,{align:t,alignOffset:n,arrowSize:o,collisionPadding:u,onOpenChange:e=>{!0===e&&!0===s&&g(e)},open:m,openDelay:d,side:f,sideOffset:p,trigger:h,children:(0,a.jsx)(tm,{handleClose:y,children:i})})},tm=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tg.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tp().root,children:n})})},tg=(0,c.createContext)({handleClose:()=>void 0});function ty(){return(0,c.useContext)(tg)}let tv=e=>{let{children:t}=e,{handleClose:n}=ty();return(0,a.jsxs)("div",{className:tp().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tp().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tb=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tp().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,s.W)(tp().media,n.className)})})},tA=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tp().description,children:t})},tx=e=>{let{children:t}=e,{handleClose:n}=ty();return(0,a.jsx)("div",{className:tp().closeButtonContainer,children:(0,a.jsx)(u.zx,{sx:{width:"100%"},onClick:n,children:t})})}},3181:function(e,t,n){"use strict";n.d(t,{AK:function(){return h},Dj:function(){return c},Kp:function(){return p},L4:function(){return m},Oh:function(){return A},PQ:function(){return b},cx:function(){return s},d7:function(){return d},fo:function(){return v},gR:function(){return y},ux:function(){return f},xS:function(){return g}});var o=n(88866),i=n(2439),a=n(80410),u=n(99510);let l="default";function s(e){return e.model.variations.length-Object.keys(e.screenshots).length}function c(e){var t,n,o;return null!==(o=null!==(n=null===(t=e.config)||void 0===t?void 0:t.label)&&void 0!==n?n:"Group"===e.type||"Slice"===e.type||"Boolean"!==e.type&&"Separator"!==e.type?e.fieldset:void 0)&&void 0!==o?o:e.type}function d(e,t){var n;return null===(n=e.screenshots[t.id])||void 0===n?void 0:n.url}function f(e,t){var n,o,i,a,u;let l={},s={};if("type"in e){if("Slice"===e.type){for(let t in e["non-repeat"])l[t]=e["non-repeat"][t].type;for(let t in e.repeat)s[t]=e.repeat[t].type}else if("Group"===e.type)for(let t in null===(n=e.config)||void 0===n?void 0:n.fields)s[t]=null!==(i=null===(o=e.config)||void 0===o?void 0:o.fields[t].type)&&void 0!==i?i:"";else l[t]=e.type}else if("id"in e){for(let{key:t,value:n}of null!==(a=e.primary)&&void 0!==a?a:[])l[t]=n.type;for(let{key:t,value:n}of null!==(u=e.items)&&void 0!==u?u:[])s[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(s).sort().map(e=>[e,s[e]]))}}function p(e){let{slice:t,id:n,name:o,copiedVariation:i}=e,a={...i,id:n,name:o};return{slice:{...t,model:{...t.model,variations:t.model.variations.concat([a])}},variation:a}}function h(e){let{slice:t,variationId:n,widgetArea:o,fieldId:i}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.filter(e=>e.key!==i)}}return e})}}}function m(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.map(e=>e.key===i?{key:a,value:u}:e)}}return e})}}}function g(e){let{slice:t,variationId:n,widgetArea:u,newFieldId:l,newField:s}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:s.type!==o.GroupFieldType?{...e,[u]:null===(c=e[u])||void 0===c?void 0:c.concat([{key:l,value:s}])}:u===a.Rt.Items?e:{...e,[u]:null===(t=e[u])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(s)}])}})}}}function y(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:u,destinationIndex:l}=e,s=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=s.splice(u,1);return s.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:s}:e)}}}function v(e){return{id:(0,u.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,u.MP)(l),docURL:"...",version:"initial",description:(0,u.MP)(l),imageUrl:""}]}}function b(e,t){return{...e,model:{...e.model,name:t}}}function A(e){let{slice:t,variationId:n}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){let t={...e};return delete t.items,t}return e})}}}},63447:function(e,t,n){"use strict";n.d(t,{cd:function(){return i},ne:function(){return a},Ag:function(){return u}});var o=n(52322);let i={page:{blankSlateImage:"/blank-slate-page-types.png",builderPageDynamicSegment:"pageTypeId",getBuilderPagePathname:e=>"/page-types/".concat(e),matchesTablePagePathname:e=>e===i.page.tablePagePathname||e.startsWith("/page-types"),tablePagePathname:"/",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6048 8.0111C15.4571 7.97946 15.3031 8.01624 15.1857 8.11117C15.0682 8.2061 15 8.34901 15 8.5V23.5C15 23.651 15.0682 23.7939 15.1857 23.8888C15.3031 23.9838 15.4571 24.0205 15.6048 23.9889L21.8143 22.6583C22.5059 22.5101 23 21.8989 23 21.1916V14V10.8084C23 10.1011 22.5059 9.48991 21.8143 9.34171L15.6048 8.0111ZM16 22.8815V9.1185L21.6048 10.3195C21.8353 10.3689 22 10.5726 22 10.8084V14V21.1916C22 21.4274 21.8353 21.6311 21.6048 21.6805L16 22.8815ZM9.5 8C9.77614 8 10 8.22386 10 8.5V23.5C10 23.7761 9.77614 24 9.5 24C9.22386 24 9 23.7761 9 23.5V8.5C9 8.22386 9.22386 8 9.5 8ZM12.5 8C12.7761 8 13 8.22386 13 8.5V23.5C13 23.7761 12.7761 24 12.5 24C12.2239 24 12 23.7761 12 23.5V8.5C12 8.22386 12.2239 8 12.5 8Z",fill:"currentColor"})})},custom:{blankSlateImage:"/blank-slate-custom-types.png",builderPageDynamicSegment:"customTypeId",getBuilderPagePathname:e=>"/custom-types/".concat(e),matchesTablePagePathname:e=>e.startsWith(i.custom.tablePagePathname),tablePagePathname:"/custom-types",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0651 10.0686C23.0656 10.0687 23.0628 10.0727 23.0551 10.0805C23.0607 10.0724 23.0646 10.0685 23.0651 10.0686ZM22.7102 10.3001C22.4175 10.1539 21.9868 9.9991 21.4143 9.85598C20.0667 9.51907 18.152 9.30005 16 9.30005C13.848 9.30005 11.9333 9.51907 10.5857 9.85598C10.0132 9.9991 9.58249 10.1539 9.28975 10.3C9.58249 10.4462 10.0132 10.601 10.5857 10.7441C11.9333 11.081 13.848 11.3 16 11.3C18.152 11.3 20.0667 11.081 21.4143 10.7441C21.9868 10.601 22.4175 10.4462 22.7102 10.3001ZM8.93492 10.0686C8.93545 10.0685 8.93931 10.0724 8.94491 10.0805C8.93719 10.0727 8.93439 10.0687 8.93492 10.0686ZM24 10.3C24 9.19548 20.4183 8.30005 16 8.30005C11.5817 8.30005 8 9.19548 8 10.3V16.3V22.3C8 22.8286 8.36652 23.2227 8.77269 23.4942C9.19392 23.7758 9.77503 24.0088 10.4612 24.1965C11.8404 24.5739 13.7629 24.8 16 24.8C18.2371 24.8 20.1596 24.5739 21.5388 24.1965C22.225 24.0088 22.8061 23.7758 23.2273 23.4942C23.6335 23.2227 24 22.8286 24 22.3V16.3V10.3ZM23 16.3V11.2691C21.6353 11.8839 19.012 12.3 16 12.3C12.988 12.3 10.3647 11.8839 9 11.2691V16.3C9 16.3238 9.0187 16.4558 9.32842 16.6629C9.62308 16.8598 10.0885 17.0578 10.7251 17.232C11.9913 17.5784 13.8188 17.8 16 17.8C18.1812 17.8 20.0087 17.5784 21.2749 17.232C21.9115 17.0578 22.3769 16.8598 22.6716 16.6629C22.9813 16.4558 23 16.3238 23 16.3ZM23 17.633V22.3C23 22.3238 22.9813 22.4558 22.6716 22.6629C22.3769 22.8598 21.9115 23.0578 21.2749 23.232C20.0087 23.5784 18.1812 23.8 16 23.8C13.8188 23.8 11.9913 23.5784 10.7251 23.232C10.0885 23.0578 9.62308 22.8598 9.32842 22.6629C9.0187 22.4558 9 22.3238 9 22.3V17.633C9.3936 17.8534 9.89115 18.0406 10.4612 18.1965C11.8404 18.5739 13.7629 18.8 16 18.8C18.2371 18.8 20.1596 18.5739 21.5388 18.1965C22.1089 18.0406 22.6064 17.8534 23 17.633Z",fill:"currentColor"})})}};function a(e,t){return Object.values(i).some(n=>{let{getBuilderPagePathname:o}=n;return e.startsWith(o(t))})}function u(e){for(let{builderPageDynamicSegment:t}of Object.values(i)){let n=e[t];if("string"==typeof n)return n}}},77507:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});let o={page:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Page":"page"," ").concat(n?"types":"type")},hintSingle:"e.g. home, privacy policy, sign up",hintRepeatable:"e.g. product, landing page, blog post",inputPlaceholder:"ID to query the page type in the API (e.g. 'BlogPost')",blankSlateDescription:"Page types are models that your editors will use to create website pages in the Page Builder.",autoSaveFailed:"Failed to save page type. Check your browser's console for more information."},custom:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Custom":"custom"," ").concat(n?"types":"type")},hintSingle:"e.g. global nav, settings, footer",hintRepeatable:"e.g. side menu, testimonial, author",inputPlaceholder:"ID to query the custom type in the API (e.g. 'Author')",blankSlateDescription:"Custom types are models that your editors can use to create menus or objects in the Page Builder.",autoSaveFailed:"Failed to save custom type. Check your browser's console for more information."}}},69765:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var o=n(37792),i=n(70647);async function a(){try{let{activeEnvironment:e}=await i.managerClient.project.fetchActiveEnvironment();return{activeEnvironment:e}}catch(e){if((0,o.sp)(e))return await i.managerClient.project.updateEnvironment({environment:void 0}),await a();return{error:e}}}},53047:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var o=n(18566),i=n(69765);function a(){return(0,o.QT)(i.j,[])}},65856:function(e,t,n){"use strict";n.d(t,{k:function(){return p}});var o=n(74217),i=n(18566),a=n(88932),u=n(72432);let{fetchOnboarding:l,toggleOnboarding:s,toggleOnboardingStep:c}=n(70647).managerClient.prismicRepository;async function d(){try{return await l()}catch(e){console.error("Failed to fetch onboarding",e);return}}let f=()=>Promise.resolve(void 0);function p(){let e=(0,u.d)().eligible,t=(0,i.QT)(e?d:f,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function p(t){if(!e)return[];let o=n();if(!o)return[];try{let{completedSteps:e}=await c(String(t));return l({...o,completedSteps:e}),e}catch(e){return a.Am.error("Failed to complete/undo step"),console.error("Failed to toggle onboarding step",e),o.completedSteps}}async function h(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await p(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:p,completeStep:h,toggleGuide:async function(){if(!e)return;let t=n();if(!t)return;let o=t.isDismissed;try{l({...t,isDismissed:!o});let{isDismissed:e}=await s();l({...t,isDismissed:e})}catch(e){l({...t,isDismissed:o}),a.Am.error("Failed to hide/show onboarding"),console.error("Failed to toggle onboarding",e)}}}}},41791:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(53085);let i=()=>{let e=(0,o.L)("slicemachine-onboarding");return{eligible:(null==e?void 0:e.value)==="on"}}},72432:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var o=n(53085);let i=()=>{let e=(0,o.L)("shared-onboarding");return{eligible:(null==e?void 0:e.value)==="with-shared-onboarding"}}},52677:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var o=n(53085);function i(){let e=(0,o.L)("slicemachine-git-integration");return{eligible:(null==e?void 0:e.value)==="on"}}},80546:function(e,t,n){"use strict";n.d(t,{E:function(){return w},g:function(){return _}});var o=n(52322),i=n(74217),a=n(37792),u=n(2784),l=n(93188),s=n(52762),c=n(85647),d=n(58161),f=n(41067),p=n(43874),h=n(53047),m=n(6529),g=n(75665),y=n(29040),v=n(99757);async function b(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,y.R)(o.libraries,o.remoteSlices),a=Object.values((0,g.d)(o.customTypes,o.remoteCustomTypes));return(0,v.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var A=n(65821);let x=(0,u.createContext)(void 0),w=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:g}=(0,A.X)(),y=(0,c.L)(),v=(0,s.n)(),{refreshState:w,pushChangesSuccess:_}=(0,f.Z)(),S=(0,i.R9)(w),C=(0,i.R9)(_),{activeEnvironment:k}=(0,h.J)(),{setNextAction:E,actionQueueStatus:T}=(0,p.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),O=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=k,loggedIn:n=y&&v===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&E(async()=>{let{changedCustomTypes:e,changedSlices:t}=await b({isOnline:y,authStatus:v});if(0!==e.length||0!==t.length)try{let n=await (0,m.t)({changedCustomTypes:e,changedSlices:t,confirmDeleteDocuments:!0});if(n&&"HARD"===n.type)throw console.error("Manual action required. ".concat(n.details.customTypes.length>1?"These types have":"This type has"," too many associated Documents. Archive and delete these documents\n manually and then try deleting the types again.")),Error();let o=await (0,l.y0)();S(o),C()}catch(e){if((0,a.ff)(e))return;throw e}})},[S,C,E,y,v,k]);(0,u.useEffect)(()=>{(n.length>0||g.length>0)&&O()},[]),(0,i.pQ)(y,()=>{y&&(n.length>0||g.length>0)&&O()});let I=(0,u.useMemo)(()=>(function(e){let{activeEnvironment:t,isOnline:n,authStatus:o,actionQueueStatus:i}=e;return void 0===t||"dev"!==t.kind?"not-active":n?o!==d.t.AUTHORIZED?"not-logged-in":"failed"===i?"failed":"pending"===i?"syncing":"synced":"offline"})({activeEnvironment:k,isOnline:y,authStatus:v,actionQueueStatus:T}),[T,v,y,k]),R=(0,u.useMemo)(()=>({syncChanges:O,autoSyncStatus:I}),[O,I]);return(0,o.jsx)(x.Provider,{value:R,children:t})};function _(){let e=(0,u.useContext)(x);if(void 0===e)throw Error("useAutoSync must be used within a AutoSyncProvider");return e}},6529:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var o=n(93188),i=n(3181),a=n(5274);async function u(e){let{changedSlices:t,changedCustomTypes:n,confirmDeleteDocuments:u=!1}=e,l=Date.now(),s={confirmDeleteDocuments:u,changes:[...t.map(e=>({id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status})),...n.map(e=>({id:e.customType.id,type:"CustomType",status:e.status}))]},c=await (0,o.tI)(s);if(c)return o.Xe.track({event:"changes:limit-reach",limitType:c.type}),c;!function(e){let{startTime:t,hasDeletedDocuments:n,changedCustomTypes:u,changedSlices:l}=e,s=u.reduce((e,t)=>t.status===a.GJ.New?{...e,customTypesCreated:e.customTypesCreated+1}:t.status===a.GJ.Modified?{...e,customTypesModified:e.customTypesModified+1}:t.status===a.GJ.Deleted?{...e,customTypesDeleted:e.customTypesDeleted+1}:e,{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),c=l.reduce((e,t)=>t.status===a.GJ.New?{...e,slicesCreated:e.slicesCreated+1}:t.status===a.GJ.Modified?{...e,slicesModified:e.slicesModified+1}:t.status===a.GJ.Deleted?{...e,slicesDeleted:e.slicesDeleted+1}:e,{slicesCreated:0,slicesModified:0,slicesDeleted:0}),d=l.length+u.length,f=l.reduce((e,t)=>e+(0,i.cx)(t.slice),0),p=Date.now()-t;o.Xe.track({event:"changes:pushed",...s,...c,total:d,missingScreenshots:f,duration:p,hasDeletedDocuments:n,_includeEnvironmentKind:!0})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:u,startTime:l})}},99757:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(1744),i=n(5274),a=n(58161);let u=[i.GJ.New,i.GJ.Modified,i.GJ.Deleted];function l(e){let{customTypes:t,libraries:n,slices:i,isOnline:a,authStatus:l}=e,d=c({slices:i,customTypes:t,isOnline:a,authStatus:l}),f=n.flatMap(e=>e.components),p=i.filter(o.yp).map(s),h=f.concat(p).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&u.includes(d.slices[e.model.id])),m=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&u.includes(d.customTypes[(0,o.n5)(e)])),g=h.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>u.includes(e.status));return{changedCustomTypes:m.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>u.includes(e.status)),changedSlices:g,unSyncedCustomTypes:m,unSyncedSlices:h,modelsStatuses:d}}function s(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:u}=e,l=o&&u!=a.t.FORBIDDEN&&u!=a.t.UNAUTHORIZED;return{slices:(0,i.zb)(t,l),customTypes:(0,i.zb)(n,l)}}},65821:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(2784),i=n(56580),a=n(52762),u=n(40572),l=n(68916),s=n(85647),c=n(99757);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,u.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,s.L)(),f=(0,a.n)(),p=(0,c.m)({authStatus:f,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>p,[p])}},43874:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(33760),a=n(74930),u=n.n(a),l=n(2784),s=n(88932);let c=e=>{let{actionQueueStatusDelay:t=300,errorMessage:n,retryDelay:a=1e3,retryMessage:c="Retry"}=e,[d,f]=(0,l.useState)({pendingAction:void 0,nextAction:void 0}),[p,h]=(0,l.useState)("done"),[m,g]=(0,l.useState)(p),y=(0,l.useCallback)(e=>{f(t=>({...t,nextAction:e}))},[]),v=(0,l.useCallback)(async e=>{if(e){h("pending");try{await e(),h("done")}catch(e){h("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=u()();s.Am.error(()=>(0,o.jsxs)(i.xu,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.xv,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.zx,{size:"small",color:"grey",onClick:()=>{s.Am.dismiss(d),l("pending"),setTimeout(()=>{l("done"),c(e=>{var t;return{nextAction:null!==(t=e.nextAction)&&void 0!==t?t:e.pendingAction,pendingAction:void 0}})},n)},children:a})]}),{autoClose:!1,closeOnClick:!1,draggable:!1,toastId:d})}({errorMessage:n,retryDelay:a,retryMessage:c,setActionQueueStatusActual:h,setActionQueueStack:f})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===p&&d.nextAction&&(v(d.nextAction),f({pendingAction:d.nextAction,nextAction:void 0}))},[p,d,v]),(0,l.useEffect)(()=>{if("pending"===p)g("pending");else{let e=setTimeout(()=>{g(p)},t);return()=>{clearTimeout(e)}}},[p,t]),(0,l.useMemo)(()=>({actionQueueStatus:m,setNextAction:y}),[m,y])}},58133:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var o=n(18566),i=n(70647);async function a(){try{return await i.managerClient.project.getAdapterName()}catch(e){throw Error("Error while trying to get adapter name")}}function u(){return(0,o.QT)(a,[])}},52762:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var o=n(56580),i=n(79546);function a(){let{authStatus:e}=(0,o.v9)(e=>({authStatus:(0,i.TA)(e)}));return e}},53085:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var o=n(18566),i=n(70647);async function a(e){try{return await i.managerClient.telemetry.getExperimentVariant(e)}catch(e){console.error("Error while trying to get experiment value",e);return}}function u(e){return(0,o.QT)(a,[e])}},85647:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var o=n(2784);let i=()=>{let[e,t]=(0,o.useState)(window.navigator.onLine),n=(0,o.useCallback)(()=>{t(window.navigator.onLine)},[]);return(0,o.useEffect)(()=>(window.addEventListener("offline",n),window.addEventListener("online",n),()=>{window.removeEventListener("offline",n),window.removeEventListener("online",n)}),[n]),e}},4315:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var o=n(2784);function i(e,t,n){let{schema:i}=null!=n?n:{},a="".concat("slice-machine","_").concat(e),[u,l]=(0,o.useState)(()=>{try{let e=localStorage.getItem(a);if(null==e)return t;if(!i)return JSON.parse(e);return i.parse(JSON.parse(e))}catch(e){return console.warn("Error reading localStorage key “".concat(a,"”:"),e),t}});return(0,o.useEffect)(()=>{try{localStorage.setItem(a,JSON.stringify(u))}catch(e){console.warn("Error setting localStorage key “".concat(a,"”:"),e)}},[a,u]),[u,l]}},99579:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var o=n(56580),i=n(79546);function a(){let{repositoryName:e,apiEndpoint:t}=(0,o.v9)(e=>({repositoryName:(0,i.MY)(e),apiEndpoint:(0,i.Lq)(e)}));return{repositoryName:e,repositoryDomain:new URL(t).hostname.replace(".cdn",""),repositoryUrl:t.replace(".cdn.",".").replace("/api/v2","")}}},5813:function(e,t,n){"use strict";n.d(t,{e:function(){return l},l:function(){return s}});var o=n(52322),i=n(5632),a=n(2784);let u=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(u.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,u]=(0,a.useState)(n),[l,s]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(u(n),s({source:o,destination:n})),l}()});function s(){let e=(0,a.useContext)(u);if(void 0===e)throw Error("useRouteChange must be used within a RouteChangeProvider.");return e}},54991:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var o=n(18566),i=n(70647);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function u(){return(0,o.QT)(a,[])}},85404:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var o=n(18566),i=n(70647);async function a(){let[e,t]=await Promise.all([i.managerClient.versions.checkIsSliceMachineUpdateAvailable(),i.managerClient.versions.checkIsAdapterUpdateAvailable()]);return{sliceMachineUpdateAvailable:e,adapterUpdateAvailable:t}}function u(){return(0,o.QT)(a,[])}},10635:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8536 6.85355C18.0488 6.65829 18.0488 6.34171 17.8536 6.14645C17.6583 5.95118 17.3417 5.95118 17.1464 6.14645L12 11.2929L6.85355 6.14645C6.65829 5.95118 6.34171 5.95118 6.14645 6.14645C5.95118 6.34171 5.95118 6.65829 6.14645 6.85355L11.2929 12L6.14645 17.1464C5.95118 17.3417 5.95118 17.6583 6.14645 17.8536C6.34171 18.0488 6.65829 18.0488 6.85355 17.8536L12 12.7071L17.1464 17.8536C17.3417 18.0488 17.6583 18.0488 17.8536 17.8536C18.0488 17.6583 18.0488 17.3417 17.8536 17.1464L12.7071 12L17.8536 6.85355Z",fill:"currentColor"})})},29184:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 16C23 19.866 19.866 23 16 23C12.134 23 9 19.866 9 16C9 12.134 12.134 9 16 9C19.866 9 23 12.134 23 16ZM24 16C24 20.4183 20.4183 24 16 24C11.5817 24 8 20.4183 8 16C8 11.5817 11.5817 8 16 8C20.4183 8 24 11.5817 24 16ZM14.75 18.5981L18.5 16L14.75 13.4019V18.5981Z",fill:"currentColor"})})},67677:function(e,t,n){"use strict";n.d(t,{LN:function(){return e3},K2:function(){return te},Xq:function(){return e9},Cx:function(){return e7},RN:function(){return tt},wd:function(){return e8}});var o=n(52322),i=n(33760),a=n(5632),u=n(2784),l=n(23335),s=n(6277),c=n(27149),d=n.n(c);let f=e=>{let{borderTopColor:t="purple",children:n,...i}=e;return(0,o.jsxs)("div",{...i,className:d().root,children:[n,(0,o.jsx)("div",{className:(0,s.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},p=e=>(0,o.jsx)("div",{...e,className:d().pane}),h=e=>(0,o.jsx)("header",{...e,className:d().header}),m=e=>{let{children:t,...n}=e;return(0,o.jsx)("main",{...n,className:d().content,children:(0,o.jsx)("div",{className:d().contentChildren,children:t})})};var g=n(30988),y=n(53047),v=n(93188),b=n(63447),A=n(77507),x=n(58133);let w={"@slicemachine/adapter-next":{tutorial:{url:"https://prismic.dev/course/next"},masterSliceLibrary:{exampleLinkUrl:"https://slicify-app.vercel.app/slice-library",codeLinkUrl:"https://github.com/prismicio-solution-engineering/slicify-library#readme",previewVideoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1715957263/Slice_library_video_oemhy0.mp4"}},"@slicemachine/adapter-nuxt":{tutorial:{url:"https://prismic.dev/course/nuxt"}},"@slicemachine/adapter-sveltekit":{tutorial:{url:"https://prismic.dev/course/sveltekit"}}};function _(){var e;return null!==(e=w[(0,x.p)()])&&void 0!==e?e:{}}let S=e=>{let{isOpen:t,onClose:n}=e,{masterSliceLibrary:a}=_();if(!a)return null;let{exampleLinkUrl:u,codeLinkUrl:l,previewVideoUrl:s}=a;return(0,o.jsxs)(i.Vq,{size:"small",open:t,onOpenChange:e=>!e&&n(),children:[(0,o.jsx)(i.fK,{title:"Master Slice Library Generator (BETA)"}),(0,o.jsx)(i.cZ,{children:(0,o.jsxs)(i.xu,{flexDirection:"column",padding:16,gap:16,children:[(0,o.jsx)(i.xv,{variant:"h2",children:"Create a Master Slice Library"}),(0,o.jsx)(i.nk,{src:s,sizing:"contain",autoPlay:!0,loop:!0}),(0,o.jsxs)(i.xv,{children:["This is an"," ",(0,o.jsx)("a",{href:u,target:"_blank",children:"example slice library"}),",\xa0 which provides you with an overview of all your slices in one place. Build it yourself in a few steps."]}),(0,o.jsx)(i.zx,{size:"large",onClick:()=>{v.Xe.track({event:"slice-library:beta:code-opened"}),window.open(l,"_blank")},children:"Get the code"})]})})]})};var C=n(99579);function k(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,C.U)(),a=(0,i.ac)({max:"medium"});return(0,o.jsxs)(i.xu,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.xu,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.xv,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.xv,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.u,{content:"Open Prismic repository",side:"right",children:(0,o.jsx)(i.hU,{"data-testid":"prismic-repository-link",icon:"openInNew",onClick:()=>{window.open(n,"_blank")}})})]})}var E=n(41791),T=n(85404),O=n(23280),I=n(29184),R=n(39097),M=n.n(R);function j(e){let{title:t,href:n,target:a,active:l,Icon:s,RightElement:c,onClick:d}=e,f=(0,i.ac)({max:"medium"}),p=(0,u.useCallback)(()=>(0,o.jsx)(s,{width:f?28:32}),[s,f]),h=(0,o.jsx)(i.F8,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:p,endAdornment:c,selected:l,children:f?null:t});return(0,o.jsx)(i.u,{content:t,side:"right",visible:f,children:void 0!==n?(0,o.jsx)(M(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,children:h}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:h})})}var D=n(65856);function P(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,D.k)();return e?e.isDismissed?(0,o.jsx)(j,{title:"Get Started",Icon:I.z,onClick:()=>void n()}):(0,o.jsx)(O.TI,{tracking:{track:e=>v.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var F={};Object.defineProperty(F,"__esModule",{value:!0});var L=F.confetti=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({},N,(!n.stagger&&n.delay&&(n.stagger=n.delay),n)),i=o.elementCount,a=o.colors,u=o.width,l=o.height,s=o.perspective,c=o.angle,d=o.spread,f=o.startVelocity,p=o.decay,h=o.dragFriction,m=o.duration,g=o.stagger,y=o.random;e.style.perspective=s;var v=Array.from({length:i}).map(function(t,n){var o=document.createElement("div"),i=a[n%a.length];return o.style["background-color"]=i,o.style.width=u,o.style.height=l,o.style.position="absolute",o.style.willChange="transform, opacity",o.style.visibility="hidden",e.appendChild(o),o}).map(function(e){var t;return{element:e,physics:(t=Math.PI/180*d,{x:0,y:0,z:0,wobble:10*y(),wobbleSpeed:.1+.1*y(),velocity:.5*f+y()*f,angle2D:-(Math.PI/180*c)+(.5*t-y()*t),angle3D:-(Math.PI/4)+y()*(Math.PI/2),tiltAngle:y()*Math.PI,tiltAngleSpeed:.1+.3*y()})}});return t=void 0,new Promise(function(n){requestAnimationFrame(function o(i){t||(t=i);var a=i-t,u=t===i?0:(i-t)/m;v.slice(0,Math.ceil(a/g)).forEach(function(e){var t,n,o,i,a,l;e.physics.x+=Math.cos(e.physics.angle2D)*e.physics.velocity,e.physics.y+=Math.sin(e.physics.angle2D)*e.physics.velocity,e.physics.z+=Math.sin(e.physics.angle3D)*e.physics.velocity,e.physics.wobble+=e.physics.wobbleSpeed,p?e.physics.velocity*=p:e.physics.velocity-=e.physics.velocity*h,e.physics.y+=3,e.physics.tiltAngle+=e.physics.tiltAngleSpeed,n=(t=e.physics).x,o=t.y,i=t.z,a=t.tiltAngle,l=t.wobble,e.element.style.visibility="visible",e.element.style.transform="translate3d("+(n+10*Math.cos(l))+"px, "+(o+10*Math.sin(l))+"px, "+i+"px) rotate3d(1, 1, 1, "+a+"rad)",e.element.style.opacity=1-u}),i-t<m?requestAnimationFrame(o):(v.forEach(function(t){if(t.element.parentNode===e)return e.removeChild(t.element)}),n())})})},N={angle:90,spread:45,startVelocity:45,elementCount:50,width:"10px",height:"10px",perspective:"",colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"],duration:3e3,stagger:0,dragFriction:.1,random:Math.random};let U={colors:["var(--logo-purple, #8E44EC)","var(--logo-blue, #E8C7FF)","var(--logo-yellow, #59B5F8)","var(--logo-red, #C3EEFE)"],elementCount:300,width:"8px",height:"8px",stagger:.2,startVelocity:35,spread:90,duration:3e3};var B=n(57077),W=n.n(B);let z=[{id:"createProject",title:"Create your Prismic website",description:"Create and set up your project",defaultCompleted:!0},{id:"createPageType",title:"Create your first Page Type",description:"Build the structure of your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/Create_page_type_xdn13j.mp4",content:()=>(0,o.jsx)(i.xv,{children:"A page type is a base content structure editors will use to create pages in the Page Builder (Prismic's content creation UI). A page type can be reusable (e.g., for multiple blog posts) or single (e.g., for a one-time page like the homepage)."})},{id:"codePage",title:"Code your Page",description:"Prepare code to fetch content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/Step2_code_your_page_jatiur.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Prepare your code to query the content from the Prismic API."})},{id:"createSlice",title:"Create your first Slice",description:"Build a reusable section",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918322/DEV_TOOLS/ONBOARDING_GUIDE/Step3_add_slice_qzmvxf.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Slices are website sections that can be reused on different pages with different content. Each slice has a code component automatically generated by Slice Machine. Start with a template and look at your code to see how it's structured."})},{id:"reviewAndPush",title:"Review & push changes",description:"Enable editors to create content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/DevTools_Squad_push_changes_ovvmul.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Your page types and slices currently exist only in your local project. Push them to your repository to make them available for your content editors."})},{id:"createContent",title:"Create content for your page",description:"Publish your page to the API",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918324/DEV_TOOLS/ONBOARDING_GUIDE/Cre%CC%81er_contenu_e%CC%81tape_4_z9vlzt.mp4",content:()=>(0,o.jsx)(i.xv,{children:"In Prismic, content creation takes place in the Prismic Page Builder UI. Open the Page Builder and start creating your first page."})},{id:"renderPage",title:"Preview your page",description:"View your page in the browser",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918321/DEV_TOOLS/ONBOARDING_GUIDE/Step_6_Render_Page_tnauh9.mp4",content:()=>(0,o.jsxs)(i.xv,{children:["Now that your content is published, you can run your project in your terminal and visit the page on your local server (e.g.,"," ",(0,o.jsx)(i.xv,{component:"code",children:"localhost:3000/example-page"}),"). Your content should now be visible!"]})}];var V=n(30195);let K=V.z.object({createProject:V.z.boolean().optional(),createPageType:V.z.boolean(),codePage:V.z.boolean(),createSlice:V.z.boolean(),reviewAndPush:V.z.boolean(),createContent:V.z.boolean(),renderPage:V.z.boolean()});var $=n(4315);let H=(0,u.createContext)(void 0),q=e=>{let t="false"===localStorage.getItem("slice-machine_isInAppGuideOpen");return Object.fromEntries(e.map(e=>{var n;return[e.id,null!==(n=e.defaultCompleted)&&void 0!==n?n:t]}))},Z=e=>{let{children:t,onComplete:n}=e,[i,a]=G(),u=e=>!!i[e.id]||!!e.defaultCompleted,l=z.filter(e=>u(e)).length;return(0,o.jsx)(H.Provider,{value:{steps:z,toggleStepComplete:e=>{let t=!u(e),o={...i,[e.id]:t};a(o),t&&v.Xe.track({event:"onboarding:step-completed",stepId:e.id,stepTitle:e.title}),Object.values(o).every(Boolean)&&(null==n||n(),v.Xe.track({event:"onboarding:completed"}))},isStepComplete:u,getStepIndex:e=>z.findIndex(t=>{let{id:n}=t;return n===e}),completedStepCount:l,isComplete:l===z.length},children:t})};function G(){return(0,$.V)("onboardingSteps",q(z),{schema:K})}let Y=()=>{let e=(0,u.useContext)(H);if(null==e)throw Error("useOnboardingContext must be used within an OnboardingProvider");return e};function Q(e){let{step:t}=e,{getStepIndex:n}=Y(),{content:a,videoUrl:u,title:l=t.title}=t;return(0,o.jsx)(i.xr,{children:(0,o.jsxs)(i.xu,{as:"article",flexDirection:"column",padding:16,gap:16,children:[(0,o.jsxs)("section",{children:[(0,o.jsxs)(i.xv,{sx:{marginBottom:4},color:"purple9",variant:"bold",children:["Step ",n(t.id)+1]}),(0,o.jsx)(i.xv,{variant:"h3",children:l}),a&&(0,o.jsx)(a,{})]}),"string"==typeof u&&(0,o.jsx)(i.nk,{src:u,sizing:"contain",autoPlay:!0,loop:!0})]})})}let J=e=>{let{step:t,isOpen:n,onClose:a}=e,{toggleStepComplete:l,isStepComplete:s}=Y(),[c,d]=(0,u.useState)(f);function f(){return s(t)?"Undo step":"Mark as done"}let p=()=>{n&&d(f())};return(0,o.jsxs)(i.Vq,{open:n,onOpenChange:a,onAnimationEnd:p,onAnimationStart:p,size:"small",children:[(0,o.jsx)(i.fK,{title:"Onboarding"}),(0,o.jsxs)(i.cZ,{children:[(0,o.jsx)(Q,{step:t}),(0,o.jsxs)(i.kX,{children:[(0,o.jsx)(i.PO,{size:"medium",children:"Close"}),(0,o.jsx)(i._d,{size:"medium",onClick:()=>{n&&(l(t),a())},children:c})]})]})]})},X=()=>(0,o.jsx)(i.I5,{name:"playCircle",size:"small",color:"grey11"});function ee(e){let{buttonSize:t="medium"}=e,{completedStepCount:n,steps:a,isStepComplete:l,isComplete:s}=Y(),[c,d]=(0,u.useState)(!1),[f,p]=(0,u.useState)(!1),[h,m]=(0,u.useState)(a[0]),g=e=>{m(e),p(!0),v.Xe.track({event:"onboarding:step-opened",stepId:e.id,stepTitle:e.title})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{step:h,isOpen:f,onClose:()=>p(!1)}),(0,o.jsxs)(i.h_,{open:c,onOpenChange:d,children:[(0,o.jsx)(i.$F,{children:(0,o.jsx)(i.zx,{disabled:s,size:t,color:"grey",sx:{width:"100%"},renderEndIcon:X,onMouseEnter:()=>d(!0),children:n>0?"Continue":"Start now"})}),(0,o.jsx)(i.AW,{align:"center",sideOffset:-50,minWidth:256,children:(0,o.jsxs)("div",{onMouseLeave:()=>d(!1),children:[(0,o.jsx)(i.Ju,{children:(0,o.jsx)(i.xv,{variant:"small",color:"grey11",sx:{marginInline:8},children:"Progress"})}),a.map((e,t)=>{let n=l(e);return(0,o.jsx)(i.Xi,{onSelect:()=>g(e),description:e.description,completed:n,readOnly:e.defaultCompleted,endAdornment:!0!==e.defaultCompleted&&(0,o.jsx)(i.I5,{name:"chevronRight",size:"small",color:"grey11"}),children:"".concat(t+1," ").concat(e.title)},e.id)})]})})]})]})}function et(){let{tutorial:e}=_(),t=null==e?void 0:e.url;return void 0===t?null:(0,o.jsx)(i.xu,{justifyContent:"center",padding:{block:6},children:(0,o.jsxs)(i.xv,{href:t,variant:"smallBold",color:"grey11",children:["Or watch our full course",(0,o.jsx)(i.I5,{name:"playCircle",color:"grey11",size:"small",sx:{marginLeft:4}})]})})}function en(){let e=function(){let[e]=G();return z.filter(t=>!!e[t.id]||!!t.defaultCompleted).length===z.length}(),[t,n]=(0,u.useState)(!e),i=function(e){let{config:t,onAnimationEnd:n}=e??{},o=(0,u.useRef)(null),i=(0,u.useRef)(null);return{throwConfetti:(0,u.useCallback)(()=>{let e=o.current,a=i.current,u={...U,...t};if(e){if(a||n){let e=a&&a.style.overflow;a&&(a.style.overflow="hidden"),setTimeout(()=>{a&&e&&(a.style.overflow=e),null==n||n()},u.duration)}L(e,u)}},[t]),confettiCannonRef:o,confettiContainerRef:i}}({onAnimationEnd:()=>n(!1)});return t?(0,o.jsx)(Z,{onComplete:i.throwConfetti,children:(0,o.jsxs)("div",{ref:i.confettiContainerRef,className:W().container,children:[(0,o.jsx)(er,{}),(0,o.jsx)("div",{ref:i.confettiCannonRef,className:W().confettiCannon})]})}):null}function er(){let{steps:e,completedStepCount:t,isComplete:n}=Y();return(0,i.ac)({min:"medium"})?(0,o.jsx)("div",{className:n?W().invisible:W().visible,style:{padding:1},children:(0,o.jsx)(i.Zb,{variant:"animated-light",paddingBlock:16,children:(0,o.jsxs)(i.aY,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(i.xv,{variant:"bold",color:"grey12",children:"Build your first Prismic Page in ".concat(e.length.toString()," simple steps")}),(0,o.jsx)(i.xv,{color:"grey11",children:"Render a live page with content coming from Prismic in 5 mins"})]}),(0,o.jsx)(i.ko,{value:t,max:e.length,displayLabel:!0,getValueLabel:(e,t)=>"".concat(e,"/").concat(t)}),(0,o.jsx)(ee,{buttonSize:"large"}),(0,o.jsx)(et,{})]})})}):null}var eo=n(72432);function ei(){let e=function(){let e=(0,i.ac)({min:"medium"}),t=(0,E.z)().eligible,n=(0,T.P)();return e&&t&&!n.sliceMachineUpdateAvailable&&!n.adapterUpdateAvailable}(),t=(0,eo.d)().eligible;return e?t?(0,o.jsx)(P,{}):(0,o.jsx)(en,{}):null}var ea=n(52677);let eu=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9.5C8 8.67157 8.67157 8 9.5 8H13.382C13.9501 8 14.4695 8.321 14.7236 8.82918L15.809 11H18H22.5C23.3284 11 24 11.6716 24 12.5V22.5001C24 23.3285 23.3284 24.0001 22.5 24.0001H12.25H9.5C8.67157 24.0001 8 23.3285 8 22.5001V11.5V9.5ZM14.691 11L13.8292 9.27639C13.7445 9.107 13.5714 9 13.382 9H9.5C9.22386 9 9 9.22386 9 9.5V11H14.691ZM9 12V22.5001C9 22.7762 9.22386 23.0001 9.5 23.0001H12.25H22.5C22.7761 23.0001 23 22.7762 23 22.5001V12.5C23 12.2239 22.7761 12 22.5 12H18H15.5H9Z",fill:"currentColor"})}),el=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3775 24.9684C14.4175 24.9884 14.5075 24.9884 14.5075 24.9884C14.6775 24.9884 14.8475 24.8984 14.9375 24.7484L20.9375 14.7484C21.0275 14.5984 21.0275 14.3984 20.9375 14.2484C20.8475 14.0984 20.6775 13.9984 20.4975 13.9984H16.9975V7.49842C16.9975 7.27842 16.8475 7.07842 16.6275 7.01842C16.4175 6.95842 16.1875 7.04842 16.0675 7.23842L10.0675 17.2384C9.9775 17.3884 9.9775 17.5884 10.0675 17.7384C10.1575 17.8884 10.3275 17.9884 10.5075 17.9884H14.0075V24.4884C14.0075 24.7084 14.1575 24.9084 14.3775 24.9684ZM11.3875 16.9884H14.5075C14.7875 16.9884 15.0075 17.2084 15.0075 17.4884V22.6784L19.6275 14.9884H16.5075C16.2275 14.9884 16.0075 14.7684 16.0075 14.4884V9.29842L11.3875 16.9884Z",fill:"currentColor"})}),es=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.0111 16.3952C7.97946 16.5429 8.01624 16.6969 8.11117 16.8143C8.2061 16.9318 8.34901 17 8.5 17H23.5C23.651 17 23.7939 16.9318 23.8888 16.8143C23.9838 16.6969 24.0205 16.5429 23.9889 16.3952L22.6583 10.1857C22.5101 9.4941 21.8989 9 21.1916 9H14H10.8084C10.1011 9 9.48992 9.4941 9.34171 10.1857L8.0111 16.3952ZM22.8815 16H9.1185L10.3195 10.3952C10.3689 10.1647 10.5727 10 10.8084 10H14H21.1916C21.4274 10 21.6311 10.1647 21.6805 10.3952L22.8815 16ZM8 22.5C8 22.2239 8.22386 22 8.5 22H23.5C23.7761 22 24 22.2239 24 22.5C24 22.7761 23.7761 23 23.5 23H8.5C8.22386 23 8 22.7761 8 22.5ZM8 19.5C8 19.2239 8.22386 19 8.5 19H23.5C23.7761 19 24 19.2239 24 19.5C24 19.7761 23.7761 20 23.5 20H8.5C8.22386 20 8 19.7761 8 19.5Z",fill:"currentColor"})}),ec=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12C16 13.1046 15.1046 14 14 14C12.8954 14 12 13.1046 12 12C12 10.8954 12.8954 10 14 10C15.1046 10 16 10.8954 16 12ZM14 9C15.4865 9 16.7205 10.0811 16.9585 11.5H23.5C23.7761 11.5 24 11.7239 24 12C24 12.2761 23.7761 12.5 23.5 12.5H16.9585C16.7205 13.9189 15.4865 15 14 15C12.5135 15 11.2795 13.9189 11.0415 12.5H8.5C8.22386 12.5 8 12.2761 8 12C8 11.7239 8.22386 11.5 8.5 11.5H11.0415C11.2795 10.0811 12.5135 9 14 9ZM21 20C21 21.1046 20.1046 22 19 22C17.8954 22 17 21.1046 17 20C17 18.8954 17.8954 18 19 18C20.1046 18 21 18.8954 21 20ZM16.0415 20.5C16.2795 21.9189 17.5135 23 19 23C20.4865 23 21.7205 21.9189 21.9585 20.5H23.5C23.7761 20.5 24 20.2761 24 20C24 19.7239 23.7761 19.5 23.5 19.5H21.9585C21.7205 18.0811 20.4865 17 19 17C17.5135 17 16.2795 18.0811 16.0415 19.5H8.5C8.22386 19.5 8 19.7239 8 20C8 20.2761 8.22386 20.5 8.5 20.5H16.0415Z",fill:"currentColor"})});var ed=n(99044),ef=n(80546);let ep=e=>(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M15.5 6L8 15.5L4.5 11",stroke:"#6F6E77",strokeLinecap:"round",strokeLinejoin:"round"})}),eh=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_11119_1080440)",children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.32913 10.1715C7.13387 10.3667 7.13387 10.6833 7.32913 10.8786L9.45048 12.9999L7.32906 15.1213C7.1338 15.3166 7.1338 15.6332 7.32906 15.8285C7.52432 16.0237 7.8409 16.0237 8.03616 15.8285L10.1576 13.707L12.2789 15.8283C12.4741 16.0236 12.7907 16.0236 12.986 15.8283C13.1812 15.6331 13.1812 15.3165 12.986 15.1212L10.8647 12.9999L12.9859 10.8787C13.1812 10.6834 13.1812 10.3669 12.9859 10.1716C12.7906 9.97634 12.4741 9.97634 12.2788 10.1716L10.1576 12.2928L8.03624 10.1715C7.84098 9.97621 7.5244 9.97621 7.32913 10.1715Z",fill:"#6F6E77"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11119_1080440",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),em=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 9.79289L13.3536 13.1464L12.6464 13.8536L10.5 11.7071V17.5H9.5V11.7071L7.35355 13.8536L6.64645 13.1464L10 9.79289Z",fill:"#6F6E77"})]});var eg=n(60821),ey=n.n(eg);let ev=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(em,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)(ep,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(eh,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.u,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:ey().root,children:[t.icon,(0,o.jsx)(i.xv,{className:ey().text,color:"grey11",children:t.text})]})}):t.icon};var eb=n(65821),eA=n(52762),ex=n(85647);let ew=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53868 5.08412L11.9985 7.96822V2.20001L8.53868 5.08412ZM16.5459 16.5508L17.3035 17.3084C18.3522 16.2597 19.0664 14.9235 19.3557 13.4689C19.6451 12.0143 19.4966 10.5066 18.929 9.13639C18.3614 7.76618 17.4003 6.59505 16.1672 5.77109C14.934 4.94712 13.4842 4.50733 12.0011 4.50733V5.57857C15.5508 5.57866 18.4284 8.45629 18.4284 12.006C18.4284 13.7809 17.709 15.3877 16.5459 16.5508ZM15.4609 18.9278L11.9989 16.0437L11.9989 21.8119L15.4609 18.9278ZM7.45385 7.46112L6.69631 6.70357C5.6476 7.75228 4.93342 9.08842 4.64408 10.543C4.35474 11.9976 4.50324 13.5054 5.0708 14.8756C5.63835 16.2458 6.59948 17.4169 7.83263 18.2409C9.06578 19.0648 10.5156 19.5046 11.9987 19.5046V18.4333C8.44897 18.4332 5.57139 15.5556 5.57139 12.0059C5.57139 10.2311 6.29077 8.62425 7.45385 7.46112Z",fill:"currentColor"})});var e_=n(58161),eS=n(41067);let eC=()=>{let{setSeenChangesToolTip:e}=(0,eS.Z)(),t=eE(),n=(0,a.useRouter)(),{autoSyncStatus:u}=(0,ef.g)(),l=(0,i.ac)({max:"medium"});return(0,o.jsxs)(ed.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.xu,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===u||"synced"===u||"syncing"===u?(0,o.jsx)(ev,{autoSyncStatus:u}):l?(0,o.jsx)(i.u,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.xu,{position:"relative",children:[(0,o.jsx)(i.hU,{icon:(0,o.jsx)(ew,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.xu,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(ek,{color:"purple"})})]})}):(0,o.jsx)(i.zx,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.xu,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.xv,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(ek,{color:"grey"})]})})}),children:[(0,o.jsx)(ed.Ev,{children:"Push your changes"}),(0,o.jsx)(ed.LB,{component:"image",src:"/push.png"}),(0,o.jsx)(ed.OJ,{children:"When you click Save, your changes are saved locally. Then, you can push your models to Prismic from the Changes page."}),(0,o.jsx)(ed.Rp,{children:"Got it"})]})},ek=e=>{let{color:t}=e,n=(0,ex.L)(),a=(0,eA.n)(),{unSyncedSlices:u,unSyncedCustomTypes:l}=(0,eb.X)(),s=u.length+l.length;return n&&a!==e_.t.UNAUTHORIZED&&a!==e_.t.FORBIDDEN&&0!==s?(0,o.jsx)(i.xu,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.xv,{color:"grey"===t?"grey11":"grey1",variant:"small",children:s>9?"+9":s})}):null},eE=()=>!1;var eT=n(37792),eO=n(18566),eI=n(70647),eR=n(69765);async function eM(e){await eI.managerClient.project.updateEnvironment({environment:e.domain}),(0,eO.gw)(eR.j,[]),(0,eO.gw)(v.y0,[])}async function ej(){try{let{environments:e}=await eI.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var eD=n(99757),eP=n(75665),eF=n(29040),eL=n(7896);n(28316);let eN=(0,u.forwardRef)((e,t)=>{let{children:n,...o}=e,i=u.Children.toArray(n),a=i.find(eW);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:u.Children.count(e)>1?u.Children.only(null):(0,u.isValidElement)(e)?e.props.children:null);return(0,u.createElement)(eU,(0,eL.Z)({},o,{ref:t}),(0,u.isValidElement)(e)?(0,u.cloneElement)(e,void 0,n):null)}return(0,u.createElement)(eU,(0,eL.Z)({},o,{ref:t}),n)});eN.displayName="Slot";let eU=(0,u.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});eU.displayName="SlotClone";let eB=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function eW(e){return(0,u.isValidElement)(e)&&e.type===eB}let ez=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,u.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eN:t;return(0,u.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,u.createElement)(a,(0,eL.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eV=(0,u.forwardRef)((e,t)=>(0,u.createElement)(ez.span,(0,eL.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),eK=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("path",{d:"M0 0h24v24H0z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M7.5 4A1.5 1.5 0 0 0 6 5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-3a.5.5 0 1 0-1 0v3A1.5 1.5 0 0 0 7.5 20h10a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 17.5 4H13zm6.25 8L10 15v-2.5H3.5a.5.5 0 1 1 0-1H10V9z"})]})}),e$=(0,u.forwardRef)((e,t)=>(0,o.jsxs)("svg",{...e,fill:"none",height:"32",ref:t,viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#1A1523",height:"32",rx:"6",width:"32"}),(0,o.jsx)("path",{clipRule:"evenodd",d:"M16.2519 22.6786C19.7531 22.6786 22.5913 19.8404 22.5913 16.3393C22.5913 14.8061 22.0469 13.3999 21.141 12.3037L23.8238 10.7547C23.9923 10.6574 24.05 10.4421 23.9528 10.2736C23.8555 10.1052 23.6401 10.0474 23.4717 10.1447L20.65 11.7738C19.5101 10.6754 17.9599 10 16.2519 10C12.7508 10 9.91263 12.8382 9.91263 16.3393C9.91263 17.7073 10.3459 18.9741 11.0828 20.0099L8.17615 21.688C8.0077 21.7853 7.94999 22.0006 8.04724 22.1691C8.1445 22.3375 8.35989 22.3953 8.52834 22.298L11.5276 20.5664C12.6883 21.8628 14.3749 22.6786 16.2519 22.6786ZM11.5276 20.5664C11.3692 20.3895 11.2207 20.2038 11.0828 20.0099L17.3262 16.4052C17.4946 16.308 17.71 16.3657 17.8073 16.5341C17.9045 16.7026 17.8468 16.918 17.6784 17.0152L11.5276 20.5664ZM20.65 11.7738L14.3216 15.4275C14.1532 15.5247 14.0955 15.7401 14.1927 15.9086C14.29 16.077 14.5054 16.1347 14.6738 16.0375L21.141 12.3037C20.9874 12.1178 20.8235 11.9409 20.65 11.7738Z",fill:"white",fillRule:"evenodd"})]}));var eH=n(41173),eq=n.n(eH);let eZ=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:u=[],loading:l=!1,variant:s="default",onLogInClick:c,onSelect:d}=e,f=(0,i.ac)({max:"medium"}),p=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.xu,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.xu,{position:"relative",children:[f&&u.length>1?(0,o.jsx)(eG,{activeEnvironment:n,disabled:a||l,environments:u,onSelect:d,trigger:(0,o.jsx)(e$,{className:eq().logo})}):(0,o.jsx)(e$,{className:eq().logo}),u.length>1&&(0,o.jsx)(eJ,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:eq().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!f&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.xu,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===s?(0,o.jsx)(i.xv,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===s?(0,o.jsx)(i.zx,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===s?(0,o.jsx)(i.xv,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===s?(0,o.jsx)(i.xv,{component:"span",className:eq().activeEnvironmentName,"data-testid":"active-environment-name",children:p||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.xu,{flexShrink:0,children:["unauthenticated"===s?(0,o.jsx)(i.u,{content:"Log in",side:"right",children:(0,o.jsx)(i.hU,{icon:(0,o.jsx)(eK,{className:eq().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,u.length>1?(0,o.jsx)(eG,{activeEnvironment:n,disabled:a,environments:u,onSelect:d,trigger:(0,o.jsx)(i.hU,{icon:l?(0,o.jsx)(i._3,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eG=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:u,trigger:l}=e,s=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.h_,{modal:!0,children:[(0,o.jsx)(i.u,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.$F,{disabled:n,children:l})}),(0,o.jsxs)(i.AW,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.Ju,{children:"Regular Environments"}):void 0,s.map(e=>(0,o.jsx)(eY,{environment:e,onSelect:u,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Ju,{children:"Personal Environment"}),(0,o.jsx)(eY,{environment:c,onSelect:u,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eY=e=>{let{environment:t,onSelect:n,isActive:a}=e,u="prod"===t.kind;return(0,o.jsx)(i.Xi,{startIcon:(0,o.jsx)(eJ,{kind:t.kind,className:eq().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.I5,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:u?"Production":t.name})},eQ={prod:"Production",stage:"Staging",dev:"Development"},eJ=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,u=eQ[t];return(0,o.jsx)("div",{className:(0,s.W)(eq()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(eV,{children:[u," environment"]}):null})};function eX(){let{environments:e,error:t}=(0,eO.QT)(ej,[]),{activeEnvironment:n}=(0,y.J)(),{refreshState:i,openLoginModal:a}=(0,eS.Z)(),{syncChanges:l}=(0,ef.g)(),s=(0,ex.L)(),c=(0,eA.n)(),[d,f]=(0,u.useState)(!1),{autoSyncStatus:p}=(0,ef.g)();async function h(e){if((null==n?void 0:n.name)===e.name)return;f(!0),v.Xe.track({event:"environment:switch",domain:e.domain}),await eM(e);let t=await (0,v.y0)();i(t);let o=(0,eF.R)(t.libraries,t.remoteSlices),a=Object.values((0,eP.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:u,changedSlices:d}=(0,eD.m)({authStatus:c,customTypes:a,isOnline:s,libraries:t.libraries,slices:o});"dev"===e.kind&&(u.length>0||d.length>0)&&l({environment:e,changedCustomTypes:u,changedSlices:d}),f(!1)}if(!s)return(0,o.jsx)(eZ,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eZ,{environments:e,activeEnvironment:n,onSelect:h,disabled:d||"syncing"===p,loading:d});if((0,eT.ff)(t)||(0,eT.TW)(t))return(0,o.jsx)(eZ,{variant:(0,eT.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var e0=n(54991);function e1(){let e=(0,e0.d)();return(0,i.ac)({max:"medium"})?null:(0,o.jsxs)(i.xv,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function e2(){let e=(0,i.ac)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,T.P)();return(t||n)&&!e?(0,o.jsx)(i.Zb,{color:"grey3",padding:16,children:(0,o.jsxs)(i.aY,{children:[(0,o.jsx)(i.xv,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.xv,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.zx,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(M(),{href:"/changelog",children:"Learn more"})})]})}):null}function e5(){let e=(0,a.useRouter)(),t=(0,ea.M)(),[n,l]=(0,u.useState)(!1),{masterSliceLibrary:s}=_();function c(t){let{type:n}=t;return(0,o.jsx)(j,{title:A.$[n].name({start:!0,plural:!0}),href:b.cd[n].tablePagePathname,active:b.cd[n].matchesTablePagePathname(e.asPath),Icon:b.cd[n].Icon})}return(0,o.jsxs)(i.xu,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.xu,{flexDirection:"column",gap:16,children:[(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{fallback:(0,o.jsx)(i.Od,{height:40}),children:(0,o.jsx)(eX,{})})}),(0,o.jsx)(i.Z0,{style:"dashed"}),(0,o.jsx)(k,{}),(0,o.jsx)(eC,{})]}),(0,o.jsxs)(i.xu,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.S0,{variant:"compact",children:[(0,o.jsx)(c,{type:"page"}),(0,o.jsx)(c,{type:"custom"}),(0,o.jsx)(j,{title:"Slices",href:"/slices",Icon:eu,active:e.asPath.startsWith("/slices")})]}),(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsx)(e2,{})})})]}),(0,o.jsx)(i.xu,{flexDirection:"column",children:(0,o.jsxs)(i.S0,{variant:"compact",children:[(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsx)(ei,{})})}),s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S,{isOpen:n,onClose:()=>{l(!1)}}),(0,o.jsx)(j,{title:"Master Slice Library",Icon:es,onClick:()=>{v.Xe.track({event:"slice-library:beta:modal-opened"}),l(!0)}})]}),t.eligible&&(0,o.jsx)(j,{title:"Settings",href:"/settings",Icon:ec,active:e.asPath.startsWith("/settings")}),(0,o.jsx)(j,{title:"Changelog",href:"/changelog",Icon:el,active:e.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{fallback:(0,o.jsx)(i.Od,{height:16}),children:(0,o.jsx)(e1,{})})})})]})})]})}let e3=e=>{let{children:t,...n}=e;return(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsxs)(e6,{...n,children:[(0,o.jsx)(p,{children:(0,o.jsx)(e5,{})}),t]})})})},e4={prod:"purple",stage:"indigo",dev:"amber"},e6=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,y.J)(),a=i?e4[i.kind]:"purple";return(0,o.jsx)(f,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},e8=e=>{let{children:t,...n}=e;return(0,o.jsx)(h,{...n,children:(0,o.jsx)(i.xu,{alignItems:"center",gap:8,children:t})})},e9=e=>{let{url:t,...n}=e,u=(0,a.useRouter)();return(0,o.jsx)(i.zx,{...n,onClick:()=>{u.push(t)},startIcon:"arrowBack",color:"grey"})},e7=e=>(0,o.jsx)(i.xu,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),te=e=>(0,o.jsx)(i.hE,{...e}),tt=e=>(0,o.jsx)(m,{...e})},11104:function(e,t,n){"use strict";var o=n(52322);n(2784);var i=n(37149),a=n.n(i);t.Z=e=>{var t,n;let i={content:{padding:"0px",top:"10%",maxWidth:"950px",margin:"auto",border:"0",background:"0",borderRadius:"6px",...null===(t=e.style)||void 0===t?void 0:t.content},overlay:{backgroundColor:"rgba(11, 11, 12, 0.9)",backdropFilter:"blur(3px)",overflow:"auto",...null===(n=e.style)||void 0===n?void 0:n.overlay}};return(0,o.jsx)(a(),{...e,style:i})}},91133:function(e,t,n){"use strict";n.d(t,{GX:function(){return l},kQ:function(){return s}});var o=n(52322);n(2784);var i=n(65186),a=n(88932);let u=e=>{let{type:t}=e;switch(t){case a.Am.TYPE.INFO:return(0,o.jsx)(i.vVM,{});case a.Am.TYPE.ERROR:return(0,o.jsx)(i.JSF,{});case a.Am.TYPE.SUCCESS:return(0,o.jsx)(i.vB0,{});case a.Am.TYPE.WARNING:return(0,o.jsx)(i.YTL,{});default:return null}};t.ZP=()=>(0,o.jsx)(a.Ix,{autoClose:2500,hideProgressBar:!0,transition:a.Mi,closeButton:!1,position:a.Am.POSITION.TOP_CENTER,icon:u,style:{left:"50%"}});let l=e=>{let{message:t,path:n}=e,i=n.length<=28?n:n.slice(0,28)+"...";return(0,o.jsxs)("span",{children:[t,(0,o.jsx)("code",{children:i})]})},s=e=>(0,o.jsx)(l,{message:"Slice saved successfully at ",...e})},95799:function(e,t,n){"use strict";n.d(t,{Dc:function(){return b},L$:function(){return y}});var o=n(88866),i=n(10082),a=n(45974),u=n(32521),l=n(40878),s=n(2439),c=n(44772),d=n(13365);let f=u.type({key:u.string,value:u.array(u.type({key:u.string,value:u.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),p={fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM slicezone")})(d.DynamicSlices.decode({type:"Slices",fieldset:"Slice Zone",config:{choices:e.value.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}})),toSM(e,t){var n;return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic slicezone")})(f.decode({key:e,value:Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||[]).map(e=>{let[t,n]=e;return{key:t,value:n}})}))}},h=u.array(u.type({key:u.string,value:u.union([o.NestableWidget,o.UID,s.GT])})),m=u.intersection([u.type({key:u.string,value:h}),u.partial({sliceZone:f})]),g={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&p.toSM(n[0],n[1]);return{key:e,value:Object.entries(t).reduce((e,t)=>{let[n,o]=t;switch(o.type){case"Choice":case"Slices":return e;case"Group":return[...e,{key:n,value:s.Fl.toSM(o)}];default:return[...e,{key:n,value:o}]}},[]),...o?{sliceZone:o}:{}}},fromSM:e=>e.value.reduce((e,t)=>{let{key:n,value:o}=t;return"Group"===o.type?[...e,[n,s.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,p.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},y={fromSM:e=>"Group"===e.type?s.Fl.fromSM(e):e},v=u.exact(u.intersection([u.type({id:u.string,label:i.StringOrNull,format:(0,l.X)(u.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(u.boolean,!0),tabs:u.array(m),status:(0,l.X)(u.boolean,!0)}),u.partial({hash:u.string})])),b={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return g.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(v.decode({...e,tabs:t}))},fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM custom type.")})(o.CustomType.decode({...e,json:e.tabs.reduce((e,t)=>({...e,[t.key]:g.fromSM(t)}),{})}))}},26534:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var o=n(88866),i=n(32521);let a=i.array(i.type({key:i.string,value:o.NestableWidget}))},2439:function(e,t,n){"use strict";n.d(t,{Fl:function(){return h},GT:function(){return p}});var o=n(88866),i=n(59050),a=n(10082),u=n(45974),l=n(32521),s=n(26534);let c=e=>l.exact(l.partial({label:a.StringOrNull,repeat:l.boolean,fields:e})),d=e=>l.exact(l.intersection([l.type({type:l.literal("Group")}),l.partial({fieldset:a.StringOrNull,icon:l.string,description:l.string,config:c(e)})])),f=d(s.F),p=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,f])}))),h={fromSM(e){let t=(()=>{var t;if(null===(t=e.config)||void 0===t?void 0:t.fields)return e.config.fields.reduce((e,t)=>{let{key:n,value:o}=t;return o.type===i.GroupFieldType?{...e,[n]:h.fromSM(o)}:{...e,[n]:o}},{})})();return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(i.Group.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))},toSM(e){let t=(()=>{var t,n;if(null===(t=e.config)||void 0===t?void 0:t.fields)return Object.entries((null===(n=e.config)||void 0===n?void 0:n.fields)||{}).map(e=>{let[t,n]=e;return n.type===i.GroupFieldType?{key:t,value:h.toSM(n)}:{key:t,value:n}})})();return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(p.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))}}},1744:function(e,t,n){"use strict";function o(e){return"local"in e&&"remote"in e}function i(e){return"local"in e}function a(e){return"remote"in e}function u(e){return a(e)&&!i(e)}function l(e){return i(e)?e.local.id:e.remote.id}n.d(t,{TG:function(){return i},n5:function(){return l},qt:function(){return o},wU:function(){return a},yp:function(){return u}})},5274:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(1744),u=n(69378),l=n.n(u);let s=e=>({...e,variations:e.variations.map(e=>({...e,imageUrl:void 0}))});(o=i||(i={})).New="NEW",o.Modified="MODIFIED",o.Synced="SYNCED",o.Deleted="DELETED",o.Unknown="UNKNOWN";let c=e=>"variations"in e.local&&"variations"in e.remote;function d(e,t){return e.reduce((e,n)=>{var o,u,d;let{status:f}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(u=o.remote,d=o.localScreenshots,u.variations.every(e=>{var t;let n=null===(t=d[e.id])||void 0===t?void 0:t.hash,o=e.imageUrl;return void 0===n?void 0===o:null==o?void 0:o.includes(n)})&&l()(s(o.local),s(o.remote)))?i.Synced:i.Modified:l()(o.local,o.remote)?i.Synced:i.Modified,model:o}:{status:"NEW",model:o}:{status:"DELETED",model:o}:{status:"UNKNOWN",model:o});return{...e,[(0,a.TG)(n)?n.local.id:n.remote.id]:f}},{})}},80410:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},bB:function(){return m},id:function(){return g}});var o,i,a=n(88866),u=n(45974),l=n(32521),s=n(26534),c=n(2439);(o=i||(i={})).Primary="primary",o.Items="items";let d=l.union([c.GT,a.NestableWidget]),f=l.array(l.type({key:l.string,value:d})),p=l.intersection([l.type({id:l.string,name:l.string,description:l.string,docURL:l.string,version:l.string}),l.partial({imageUrl:l.string,primary:f,items:s.F,display:l.string})]),h=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(p)}),l.partial({description:l.string})]),m={fromSM(e){var t,n;return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM slice variation.")})(a.Variation.decode({...e,primary:null===(t=e.primary)||void 0===t?void 0:t.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o.type===a.GroupFieldType?c.Fl.fromSM(o):o}},{}),items:null===(n=e.items)||void 0===n?void 0:n.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}))},toSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(p.decode({...e,imageUrl:"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"===e.imageUrl?void 0:e.imageUrl,primary:Object.entries(e.primary||{}).map(e=>{let[t,n]=e;return{key:t,value:n.type===a.GroupFieldType?c.Fl.toSM(n):n}}),items:Object.entries(e.items||{}).map(e=>{let[t,n]=e;return{key:t,value:n}})}))},g={fromSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(m.fromSM)})),toSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(h.decode({...e,variations:e.variations.map(m.toSM)}))}},75665:function(e,t,n){"use strict";n.d(t,{$:function(){return o},d:function(){return i}});let o=(e,t)=>t?{[e.id]:{local:e,remote:t}}:{[e.id]:{local:e}},i=(e,t)=>{let n={};return e.forEach(e=>n[e.id]={local:e}),t.forEach(e=>n[e.id]={...n[e.id],remote:e}),n}},29040:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});let o=(e,t)=>{let n={};return e.flatMap(e=>e.components).forEach(e=>{n[e.model.id]={local:e.model,localScreenshots:e.screenshots}}),t.forEach(e=>{n[e.id]={...n[e.id],remote:e}}),Object.values(n)}},99510:function(e,t,n){"use strict";n.d(t,{MP:function(){return a},T3:function(){return l},Ti:function(){return i},lV:function(){return s}});let o=/-(\w)/g;function i(e){return e.includes("-")?"['".concat(e,"']"):".".concat(e)}function a(e){return e?(e=e.replace(/_/g,"-").replace(o,(e,t)=>t?t.toUpperCase():""))[0].toUpperCase()+e.slice(1):""}let u=/\B([A-Z])/g;function l(e){return e.replace(u,"-$1").toLowerCase().replace(/-/g,"_")}let s=e=>e.trim().replace(/ /g,"_").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},70647:function(e,t,n){"use strict";let o;function i(e,t,n){e.setUint32(t,Math.floor(n/4294967296)),e.setUint32(t+4,n)}function a(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}n.d(t,{managerClient:function(){return Q}});var u,l,s,c,d=n(34406),f=(void 0===d||(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function p(e){for(var t=e.length,n=0,o=0;o<t;){var i=e.charCodeAt(o++);if((4294967168&i)==0){n++;continue}if((4294965248&i)==0)n+=2;else{if(i>=55296&&i<=56319&&o<t){var a=e.charCodeAt(o);(64512&a)==56320&&(++o,i=((1023&i)<<10)+(1023&a)+65536)}(4294901760&i)==0?n+=3:n+=4}}return n}var h=f?new TextEncoder:void 0,m=f?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,g=(null==h?void 0:h.encodeInto)?function(e,t,n){h.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(h.encode(e),n)};function y(e,t,n){for(var o=t,i=o+n,a=[],u="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var s=63&e[o++];a.push((31&l)<<6|s)}else if((240&l)==224){var s=63&e[o++],c=63&e[o++];a.push((31&l)<<12|s<<6|c)}else if((248&l)==240){var s=63&e[o++],c=63&e[o++],d=(7&l)<<18|s<<12|c<<6|63&e[o++];d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d)}else a.push(l);a.length>=4096&&(u+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(u+=String.fromCharCode.apply(String,a)),u}var v=f?new TextDecoder:null,b=f?void 0!==d&&(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_DECODER)!=="force"?200:0:4294967295,A=function(e,t){this.type=e,this.data=t},x=globalThis&&globalThis.__extends||(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,Object.create(t.prototype)),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:t.name}),o}return x(t,e),t}(Error),_={type:-1,encode:function(e){var t,n,o,a;return e instanceof Date?function(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=17179869183){if(0===n&&t<=4294967295){var o=new Uint8Array(4),a=new DataView(o.buffer);return a.setUint32(0,t),o}var u=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&u),a.setUint32(4,4294967295&t),o}var o=new Uint8Array(12),a=new DataView(o.buffer);return a.setUint32(0,n),i(a,4,t),o}((n=Math.floor((t=e.getTime())/1e3),a=Math.floor((o=(t-1e3*n)*1e6)/1e9),{sec:n+a,nsec:o-1e9*a})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:var n=t.getUint32(0),o=0;return{sec:n,nsec:0};case 8:var i=t.getUint32(0),n=(3&i)*4294967296+t.getUint32(4),o=i>>>2;return{sec:n,nsec:o};case 12:var n=a(t,4),o=t.getUint32(0);return{sec:n,nsec:o};default:throw new w("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},S=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(_)}return e.prototype.register=function(e){var t=e.type,n=e.encode,o=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=o;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=o}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++){var o=this.builtInEncoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=-1-n;return new A(a,i)}}}for(var n=0;n<this.encoders.length;n++){var o=this.encoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=n;return new A(a,i)}}}return e instanceof A?e:null},e.prototype.decode=function(e,t,n){var o=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return o?o(e,t,n):new A(t,e)},e.defaultCodec=new e,e}();function C(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var k=function(){function e(e,t,n,o,i,a,u,l){void 0===e&&(e=S.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===o&&(o=2048),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===u&&(u=!1),void 0===l&&(l=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=o,this.sortKeys=i,this.forceFloat32=a,this.ignoreUndefined=u,this.forceIntegerToFloat=l,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),o=new DataView(t);n.set(this.bytes),this.view=o,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw Error("Too long string: ".concat(e," bytes in UTF-8"))},e.prototype.encodeString=function(e){if(e.length>m){var t=p(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),g(e,this.bytes,this.pos),this.pos+=t}else{var t=p(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var u=e.charCodeAt(a++);if((4294967168&u)==0){t[i++]=u;continue}if((4294965248&u)==0)t[i++]=u>>6&31|192;else{if(u>=55296&&u<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,u=((1023&u)<<10)+(1023&l)+65536)}(4294901760&u)==0?t[i++]=u>>12&15|224:(t[i++]=u>>18&7|240,t[i++]=u>>12&63|128),t[i++]=u>>6&63|128}t[i++]=63&u|128}}(e,this.bytes,this.pos),this.pos+=t}},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if("object"==typeof e)this.encodeMap(e,t);else throw Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else if(t<4294967296)this.writeU8(198),this.writeU32(t);else throw Error("Too large binary: ".concat(t));var n=C(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw Error("Too large array: ".concat(n));for(var o=0;o<e.length;o++){var i=e[o];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,o=0;o<t.length;o++)void 0!==e[t[o]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw Error("Too large map object: ".concat(o));for(var i=0;i<n.length;i++){var a=n[i],u=e[a];this.ignoreUndefined&&void 0===u||(this.encodeString(a),this.doEncode(u,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else if(t<4294967296)this.writeU8(201),this.writeU32(t);else throw Error("Too large extension object: ".concat(t));this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){var t,n;this.ensureBufferSizeToWrite(8),t=this.view,n=this.pos,t.setUint32(n,e/4294967296),t.setUint32(n+4,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),i(this.view,this.pos,e),this.pos+=8},e}();function E(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var T=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){var o=this.caches[n-1];n:for(var i=0;i<o.length;i++){for(var a=o[i],u=a.bytes,l=0;l<n;l++)if(u[l]!==e[t+l])continue n;return a.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],o={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=o:n.push(o)},e.prototype.decode=function(e,t,n){var o=this.find(e,t,n);if(null!=o)return this.hit++,o;this.miss++;var i=y(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),O=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function u(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,l)}s((o=o.apply(e,t||[])).next())})},I=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,o=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},R=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,i){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,i,(t=e[n](t)).done,t.value)})}}},M=globalThis&&globalThis.__await||function(e){return this instanceof M?(this.v=e,this):new M(e)},j=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),a=[];return o={},u("next"),u("throw"),u("return"),o[Symbol.asyncIterator]=function(){return this},o;function u(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){a.push([e,t,n,o])>1||l(e,t)})})}function l(e,t){try{var n;(n=i[e](t)).value instanceof M?Promise.resolve(n.value.v).then(s,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function s(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},D=function(e){var t=typeof e;return"string"===t||"number"===t},P=new DataView(new ArrayBuffer(0)),F=new Uint8Array(P.buffer),L=function(){try{P.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),N=new L("Insufficient data"),U=new T,B=function(){function e(e,t,n,o,i,a,u,l){void 0===e&&(e=S.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===o&&(o=4294967295),void 0===i&&(i=4294967295),void 0===a&&(a=4294967295),void 0===u&&(u=4294967295),void 0===l&&(l=U),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=u,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=P,this.bytes=F,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=C(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=C(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=C(e),o=new Uint8Array(t.length+n.length);o.set(t),o.set(n,t.length),this.setBuffer(o)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return I(this,function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:if(!this.hasRemaining(1))return[3,3];return[4,this.doDecodeSync()];case 2:return t.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(e){var t,n,o,i;return O(this,void 0,void 0,function(){var a,u,l,s,c,d,f;return I(this,function(p){switch(p.label){case 0:a=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),t=R(e),p.label=2;case 2:return[4,t.next()];case 3:if((n=p.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{u=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof L))throw e}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:p.sent()},[3,12];case 7:if(p.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(o)throw o.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,u]}throw s=this,c=s.headByte,d=s.pos,f=s.totalPos,RangeError("Insufficient data in parsing ".concat(E(c)," at ").concat(f," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return j(this,arguments,function(){var n,o,i,a,u,l,s,c;return I(this,function(d){switch(d.label){case 0:n=t,o=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),i=R(e),d.label=2;case 2:return[4,M(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(u=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(u),n&&(o=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,M(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:if(d.sent(),0==--o)return[3,8];return[3,5];case 8:return[3,10];case 9:if(!((l=d.sent())instanceof L))throw l;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return s={error:d.sent()},[3,19];case 14:if(d.trys.push([14,,17,18]),!(a&&!a.done&&(c=i.return)))return[3,16];return[4,M(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(s)throw s.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){r:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192){if(e<128)t=e;else if(e<144){var n=e-128;if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(e<160){var n=e-144;if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else{var o=e-160;t=this.decodeUtf8String(o,0)}}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e){var o=this.lookU8();t=this.decodeUtf8String(o,1)}else if(218===e){var o=this.lookU16();t=this.decodeUtf8String(o,2)}else if(219===e){var o=this.lookU32();t=this.decodeUtf8String(o,4)}else if(220===e){var n=this.readU16();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(221===e){var n=this.readU32();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(222===e){var n=this.readU16();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(223===e){var n=this.readU32();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(196===e){var n=this.lookU8();t=this.decodeBinary(n,1)}else if(197===e){var n=this.lookU16();t=this.decodeBinary(n,2)}else if(198===e){var n=this.lookU32();t=this.decodeBinary(n,4)}else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e){var n=this.lookU8();t=this.decodeExtension(n,1)}else if(200===e){var n=this.lookU16();t=this.decodeExtension(n,2)}else if(201===e){var n=this.lookU32();t=this.decodeExtension(n,4)}else throw new w("Unrecognized type byte: ".concat(E(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(0===a.type){if(a.array[a.position]=t,a.position++,a.position===a.size)i.pop(),t=a.array;else continue r}else if(1===a.type){if(!D(t))throw new w("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new w("The key __proto__ is not allowed");a.key=t,a.type=2;continue r}else if(a.map[a.key]=t,a.readCount++,a.readCount===a.size)i.pop(),t=a.map;else{a.key=null,a.type=1;continue r}}return t}},e.prototype.readHeadByte=function(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new w("Unrecognized array type byte: ".concat(E(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new w("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new w("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){if(e>this.maxStrLength)throw new w("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw N;var n,o,i,a=this.pos+t;return this.stateIsMapKey()&&(null===(o=this.keyDecoder)||void 0===o?void 0:o.canBeCached(e))?i=this.keyDecoder.decode(this.bytes,a,e):e>b?(n=this.bytes.subarray(a,a+e),i=v.decode(n)):i=y(this.bytes,a,e),this.pos+=t+e,i},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new w("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw N;var n=this.pos+t,o=this.bytes.subarray(n,n+e);return this.pos+=t+e,o},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new w("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),o=this.decodeBinary(e,t+1);return this.extensionCodec.decode(o,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=a(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),W={};let z=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,V=e=>z(e)&&"R19Error"===e.name&&"procedurePath"in e,K=e=>{if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await $(e[o],t);return n}if(K(e)){let n={};for(let o in e)n[o]=await $(e[o],t);return n}return await t(e)};var H=Object.defineProperty,q=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t,n)=>(q(e,"symbol"!=typeof t?t+"":t,n),n);class G extends Error{constructor(e,t={}){super(),Z(this,"procedurePath"),Z(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,G),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let Y=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>Y(e,[...t,o.toString()])}),Q=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return Y(async(n,o)=>{var i,a,u,l;let s=await $(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new G("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:s},new k((a={ignoreUndefined:!0}).extensionCodec,a.context,a.maxDepth,a.initialBufferSize,a.sortKeys,a.forceFloat32,a.ignoreUndefined,a.forceIntegerToFloat).encodeSharedRef(i)),d=await t(e.serverURL,{method:"POST",body:c,headers:{"Content-Type":"application/msgpack"}}),f=(u=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=W),new B(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(u));if(!("error"in f))return $(f.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=f.error;if(V(e)){let t=new G(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(z(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new G("An unexpected response was received from the RPC server.",{procedurePath:n,procedureArgs:o,cause:f})}})})({serverURL:(o={serverURL:"/_manager"}).serverURL,fetch:o.fetch})},40572:function(e,t,n){"use strict";n.d(t,{Vo:function(){return A},t7:function(){return p},Hm:function(){return m},jP:function(){return h},hr:function(){return f},W6:function(){return y},YS:function(){return v},Ch:function(){return g},Jk:function(){return b}});var o=n(17620),i=n.n(o),a=n(32145),u=n(1744),l=n(75665);let s=(e,t)=>void 0===e?e:{...e,tabs:e.tabs.map(e=>{var n;return e.sliceZone?{...e,sliceZone:{...e.sliceZone,value:null===(n=e.sliceZone)||void 0===n?void 0:n.value.filter(e=>e.key!==t)}}:e})};var c=n(79546),d=n(68916);let f=(0,a.createAction)("CUSTOM_TYPE/SAVE_SUCCESS")(),p=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),h=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),g=e=>Object.values(e.availableCustomTypes),y=e=>Object.keys(e.availableCustomTypes),v=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),b=(e,t)=>e.availableCustomTypes[t],A=(e,t)=>{if(!e)return null;switch(t.type){case(0,a.getType)(c.U1):return{...(0,l.d)(t.payload.localCustomTypes,t.payload.remoteCustomTypes)};case(0,a.getType)(p):{let n=(0,l.$)(t.payload.newCustomType);return{...e,...n}}case(0,a.getType)(f):{let n=t.payload.newCustomType;return{...e,[n.id]:{...e[n.id],local:n}}}case(0,a.getType)(h):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(m):{let n=e[t.payload.customTypeId];if((0,u.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,u.TG)(n))return i()(e,t.payload.customTypeId);return e}case(0,a.getType)(d.xg):{let n=t.payload.sliceId;return Object.entries(e).map(e=>{let[t,o]=e;return(0,u.TG)(o)?[t,{...o,local:s(o.local,n)}]:[t,o]}).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})}default:return e}}},79546:function(e,t,n){"use strict";n.d(t,{Ak:function(){return f},Lq:function(){return c},MY:function(){return s},TA:function(){return p},U1:function(){return i},gZ:function(){return d},wW:function(){return h},x0:function(){return l},zj:function(){return u}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),u=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,s=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,f=e=>e.environment.packageManager,p=e=>e.userContext.authStatus,h=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(i):return{...e,...t.payload.env};case(0,o.getType)(a):return{...e,manifest:{...e.manifest,localSliceSimulatorURL:t.payload.value}};default:return e}}},23798:function(e,t,n){"use strict";n.d(t,{CK:function(){return c},HP:function(){return s},U:function(){return f},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),u=n(93017);let l={...i()(u.z,()=>!1)},s=(0,a.createAction)("LOADING/START")(),c=(0,a.createAction)("LOADING/STOP")(),d=(e,t)=>e.loading[t],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(s):return{...e,[t.payload.loadingKey]:!0};case(0,a.getType)(c):return{...e,[t.payload.loadingKey]:!1};default:return e}}},93017:function(e,t,n){"use strict";var o,i;n.d(t,{z:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.REVIEW="REVIEW"},27078:function(e,t,n){"use strict";n.d(t,{XV:function(){return f},ZR:function(){return c},gP:function(){return d},re:function(){return s}});var o=n(34519),i=n.n(o),a=n(32145),u=n(46962);let l={...i()(u.q,()=>!1)},s=(0,a.createAction)("MODAL/CLOSE")(),c=(0,a.createAction)("MODAL/OPEN")(),d=(e,t)=>e.modal[t],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(s):return l;case(0,a.getType)(c):return{...l,[t.payload.modalKey]:!0};default:return e}}},46962:function(e,t,n){"use strict";var o,i;n.d(t,{q:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.SCREENSHOT_PREVIEW="SCREENSHOT_PREVIEW",i.SCREENSHOTS="SCREENSHOTS"},68916:function(e,t,n){"use strict";n.d(t,{Kg:function(){return l},Sd:function(){return p},dS:function(){return u},ek:function(){return d},og:function(){return f},sT:function(){return h},xB:function(){return g},xC:function(){return m},xg:function(){return s},zy:function(){return c}});var o=n(32145),i=n(29040),a=n(79546);let u=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),s=(0,o.createAction)("SLICES/DELETE_SUCCESS")(),c=(0,o.createAction)("SLICE/UPDATE_SUCCESS")(),d=(0,o.createAction)("SLICE/GENERATE_CUSTOM_SCREENSHOT_SUCCESS")(),f=(0,o.createAction)("SLICE/UPDATE_MOCK_SUCCESS")(),p=e=>e.slices.libraries,h=e=>e.slices.remoteSlices,m=e=>(0,i.R)(e.slices.libraries,h(e)),g=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(a.U1):return{...e,libraries:t.payload.libraries,remoteSlices:t.payload.remoteSlices};case(0,o.getType)(u):return{...e,libraries:t.payload.libraries};case(0,o.getType)(l):{let{libName:n,renamedSlice:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.map(e=>e.model.id!==o.id?e:{...e,model:o})});return{...e,libraries:i}}case(0,o.getType)(c):{let n=t.payload.component,o=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id!==n.model.id?e:n)});return{...e,libraries:o}}case(0,o.getType)(d):{let{component:n,screenshot:o,variationId:i}=t.payload,a=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id===n.model.id?{...n,screenshots:{...n.screenshots,[i]:o}}:e)});return{...e,libraries:a}}case(0,o.getType)(s):{let{libName:n,sliceId:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.filter(e=>e.model.id!==o)});return{...e,libraries:i}}case(0,o.getType)(f):{let{libraryID:n,sliceID:o,mocks:i}=t.payload,a=e.libraries.map(e=>{if(e.name!==n)return e;let t=e.components.map(e=>e.model.id!==o?e:{...e,mocks:i});return{...e,components:t}});return{...e,libraries:a}}default:return e}}},41067:function(e,t,n){"use strict";var o=n(56580),i=n(95799),a=n(40572),u=n(79546),l=n(23798),s=n(93017),c=n(27078),d=n(46962),f=n(68916),p=n(17467);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,u.U1)({env:t.env,remoteCustomTypes:t.remoteCustomTypes,localCustomTypes:t.customTypes,libraries:t.libraries,remoteSlices:t.remoteSlices,clientError:t.clientError}))},openScreenshotsModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOTS})),openLoginModal:()=>e((0,c.ZR)({modalKey:d.q.LOGIN})),startLoadingLogin:()=>e((0,l.HP)({loadingKey:s.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:s.z.LOGIN})),stopLoadingReview:()=>e((0,l.CK)({loadingKey:s.z.REVIEW})),startLoadingReview:()=>e((0,l.HP)({loadingKey:s.z.REVIEW})),deleteCustomTypeSuccess:t=>e((0,a.Hm)({customTypeId:t})),renameCustomTypeSuccess:t=>e((0,a.jP)({renamedCustomType:i.Dc.toSM(t)})),saveCustomTypeSuccess:t=>e((0,a.hr)({newCustomType:i.Dc.toSM(t)})),saveSliceSuccess:t=>{e((0,f.zy)({component:t}))},saveSliceCustomScreenshotSuccess:(t,n,o)=>{e((0,f.ek)({variationId:t,screenshot:n,component:o}))},createSliceSuccess:t=>e((0,f.dS)({libraries:t})),renameSliceSuccess:(t,n)=>e((0,f.Kg)({renamedSlice:n,libName:t})),deleteSliceSuccess:(t,n)=>e((0,f.xg)({sliceId:t,libName:n})),sendAReview:t=>e((0,p.dR)({reviewType:t})),skipReview:t=>e((0,p.jv)({reviewType:t})),setSeenSimulatorToolTip:()=>e((0,p.kd)()),setSeenChangesToolTip:()=>e((0,p.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,p.po)()),createCustomTypeSuccess:t=>e((0,a.t7)({newCustomType:i.Dc.toSM(t)})),updateSliceMockSuccess:t=>e((0,f.og)(t))}}},17467:function(e,t,n){"use strict";n.d(t,{Eq:function(){return p},bv:function(){return h},dR:function(){return l},e4:function(){return g},jv:function(){return s},kd:function(){return c},mw:function(){return d},ov:function(){return m},po:function(){return f}});var o=n(32145),i=n(58161),a=n(79546);let u={userReview:{onboarding:!1,advancedRepository:!1},hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/SEND_REVIEW")(),s=(0,o.createAction)("USER_CONTEXT/SKIP_REVIEW")(),c=(0,o.createAction)("USER_CONTEXT/VIEW_SIMULATOR_TOOL_TIP")(),d=(0,o.createAction)("USER_CONTEXT/VIEW_CHANGES_TOOL_TIP")(),f=(0,o.createAction)("USER_CONTEXT/CHANGES_PUSH_SUCCESS")(),p=e=>{var t,n;return null!==(n=e.userContext.userReview)&&void 0!==n?n:{onboarding:null!==(t=e.userContext.hasSendAReview)&&void 0!==t&&t,advancedRepository:!1}},h=e=>e.userContext.hasSeenSimulatorToolTip||!1,m=e=>e.userContext.lastSyncChange,g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):case(0,o.getType)(s):return{...e,userReview:{...e.userReview,[t.payload.reviewType]:!0}};case(0,o.getType)(c):return{...e,hasSeenSimulatorToolTip:!0};case(0,o.getType)(d):return{...e,hasSeenChangesToolTip:!0};case(0,o.getType)(a.U1):return{...e,authStatus:y(t.payload.clientError)};case(0,o.getType)(f):return{...e,lastSyncChange:Date.now()};default:return e}},y=e=>{switch(null==e?void 0:e.status){case void 0:return i.t.AUTHORIZED;case 403:return i.t.UNAUTHORIZED;case 401:return i.t.FORBIDDEN;default:return i.t.UNKNOWN}}},58161:function(e,t,n){"use strict";var o,i;n.d(t,{t:function(){return o}}),(i=o||(o={})).AUTHORIZED="authorized",i.UNAUTHORIZED="unauthorized",i.FORBIDDEN="forbidden",i.UNKNOWN="unknown"},91853:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tN}});var o,i,a,u,l,s,c,d,f,p,h,m,g=n(52322);n(65497),n(99400),n(21412),n(33916),n(47125),n(31704),n(83658),n(49345),n(70978),n(24193),n(53498),n(59289),n(90330),n(54303);var y=n(33760),v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},b={fromJS:function(e){return e},getIn:function(e,t){for(var n=e,o=0;o<t.length&&n;++o)n=n[t[o]];return n},merge:function(e,t){return v(v({},e),t)}},A=n(2784),x=n(56580),w=n(5632),_=n.n(w),S="@@router/LOCATION_CHANGE",C=function(e){return{type:S,payload:{location:e}}},k=n(38398),E=function(e){var t=(0,k.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},T=n(28316),O=function(e,t){var n={set:e.router.set};return e.router.set=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.set?new Promise(function(i,a){T.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(C(E(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},I=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:E(e)})}};I(b);var R=(p=b.merge,h=I(b)(),function(e,t){return(void 0===e&&(e=h),t.type===S)?p(e,t.payload):e}),M=(m=b.getIn,function(e){var t=e.Router||_(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,A.useRef)(0),u=(0,A.useRef)(!0),l=(0,A.useRef)(!1);function s(){u.current=--a.current<=0}function c(){u.current=++a.current<=0}return(0,A.useEffect)(function(){return i.subscribe(function(){if(u.current){var e=m(i.getState(),[o,"location"]),n=e.pathname,a=e.search,s=e.hash,c=e.href,d=E(t.asPath),f=d.pathname,p=d.search,h=d.hash;if(f!==n||p!==a||s!==h){var g="".concat(n).concat(a).concat(s);l.current=!0,t.replace(c,g)}}})},[t,i,o]),(0,A.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==m(i.getState(),[o,"location"]).href&&i.dispatch(C(E(e))),s()}return t.ready(function(){e=O(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",s),t.events.on("routeChangeComplete",n),t.events.on("hashChangeStart",c),t.events.on("hashChangeComplete",n)}),function(){e(),t.events.off("routeChangeStart",c),t.events.off("routeChangeError",s),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),A.createElement(A.Fragment,{},e.children)}),j=n(25237),D=n.n(j),P=n(97729),F=n.n(P);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){var t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var e,t,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return o=(e=(t=N(n)).call.apply(t,[this].concat(a)))&&("object"===L(e)||"function"==typeof e)?e:U(this),W(U(o),"state",{bootstrapped:!1}),W(U(o),"_unsubscribe",void 0),W(U(o),"handlePersistorState",function(){o.props.persistor.getState().bootstrapped&&(o.props.onBeforeLift?Promise.resolve(o.props.onBeforeLift()).finally(function(){return o.setState({bootstrapped:!0})}):o.setState({bootstrapped:!0}),o._unsubscribe&&o._unsubscribe())}),o}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(A.PureComponent);W(z,"defaultProps",{children:null,loading:null});var V=n(59326),K=n(62273),$=n(28165);function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var q=function(e){return"--theme-ui-"+e.replace("-__default","")},Z=function(e){return"var("+q(e)+")"},G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},Y=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),Q=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],u=G(n,i);if(a&&"object"==typeof a){o[i]=e(a,u);continue}if(Y.has(i)){o[i]=a;continue}o[i]=Z(u)}return o},J=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=G(t,i),u=n[i];u&&"object"==typeof u?o=H({},o,e(a,u)):o[q(a)]=u}return o},X=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,u=e.rawColors||e.colors;if(!u||!1===a)return{};if(!1===n)return(0,K.iv)({color:"text",bg:"background"})(e);var l=u.modes||{},s=ee(u,l);if(i){var c=l[i];c||i!==o||(c=u),c?s["@media print"]=J("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:u,printColorModeName:i})}var d=function(e){return Z("colors-"+e)};return(0,K.iv)(H({},s,{color:d("text"),bg:d("background")}))(e)};function ee(e,t){var n=J("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=J("colors",t[e])}),n}var et="theme-ui-color-mode",en="(prefers-color-scheme: dark)",er={get:function(){try{return window.localStorage.getItem(et)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}},set:function(e){try{window.localStorage.setItem(et,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},eo=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(en).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},ei="undefined"==typeof window?function(){}:A.useLayoutEffect,ea=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,u=i.useColorSchemeMediaQuery,l=i.useLocalStorage,s=(0,A.useState)(function(){return!1!==u&&eo()||a}),c=s[0],d=s[1];ei(function(){var e=!1!==l&&er.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==u&&e&&e!==c&&(c=e,d(e))},[]),(0,A.useEffect)(function(){c&&!1!==l&&er.set(c)},[c,l]);var f=(0,A.useCallback)(function(){d(eo()||a)},[a]);(0,A.useEffect)(function(){if("system"===u&&window.matchMedia){var e=window.matchMedia(en);"function"==typeof e.addEventListener?e.addEventListener("change",f):"function"==typeof e.addListener&&e.addListener(f)}return function(){if("system"===u&&window.matchMedia){var e=window.matchMedia(en);"function"==typeof e.removeEventListener?e.removeEventListener("change",f):"function"==typeof e.removeListener&&e.removeListener(f)}}},[u,f]);var p=el({colorMode:c,outerTheme:o}),h=H({},t,{theme:p,colorMode:c,setColorMode:d});return A.createElement(V.vg,{context:h},A.createElement(es,{theme:p}),n)},eu=function(e){var t=H({},e);return delete t.modes,t};function el(e){var t=e.outerTheme,n=e.colorMode;return(0,A.useMemo)(function(){var e=H({},t),o=(0,K.U2)(e,"colors.modes",{}),i=(0,K.U2)(o,n,{});n&&(e.colors=H({},e.colors,i));var a=t.config||t,u=a.useCustomProperties,l=a.initialColorModeName,s=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==u){var d=null!=e.rawColors,f=e.colors||{};if(d)!function e(t,n){for(var o=0,i=Object.entries(t);o<i.length;o++){var a=i[o],u=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var s=H({},n[u]);e(l,s),n[u]=s}}else n[u]=l}}(f,c=H({},c)),c.modes&&(c.modes[s]=eu(c)),e.rawColors=c;else if("modes"in c){var p,h=H(((p={})[s]=eu(c),p),c.modes);e.rawColors=H({},f,{modes:h})}else e.rawColors=f;e.colors=Q(eu(c),"colors")}return e},[n,t])}function es(e){var t=e.theme;return(0,V.tZ)($.xB,{styles:function(){return{html:X(t)}}})}function ec(e){var t,n=e.outerCtx,o=e.children,i=el({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,A.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),u=a[0],l=a[1];ei(function(){l(!1)},[]);var s=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,A.useMemo)(function(){if(!1===c)return{};var e=s||{};return(0,K.iv)(ee(e,e.modes||{}))(i)},[i,s,c]);return A.createElement(V.vg,{context:H({},n,{theme:i})},(0,V.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(u),suppressHydrationWarning:!0,css:d,children:o}))}var ed=function(e){var t=e.children,n=(0,V.B7)();return"function"!=typeof n.setColorMode?A.createElement(ea,{outerCtx:n},t):A.createElement(ec,{outerCtx:n},t)},ef=function(){return(0,V.tZ)($.xB,{styles:function(e){if(!1===(e.config||e).useRootStyles||e.styles&&!e.styles.root)return null;var t,n=(null==(t=e.config)?void 0:t.useBorderBox)===!1?void 0:"border-box";return(0,K.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},ep=function(e){var t=e.theme,n=e.children,o=(0,V.B7)()===V.yo;return A.createElement(V.f6,{theme:t},A.createElement(ed,null,o&&A.createElement(ef,null),n))},eh=n(93188),em=n(30988),eg=n(41791),ey=n(4315);let ev=(0,A.createContext)(void 0),eb=e=>{let{children:t}=e,{eligible:n}=(0,eg.z)(),[o,i]=(0,ey.V)("isInAppGuideOpen",!0),a=(0,A.useMemo)(()=>n?{isInAppGuideOpen:!1,setIsInAppGuideOpen:()=>void 0}:{isInAppGuideOpen:o,setIsInAppGuideOpen:i},[o,i,n]);return(0,g.jsx)(ev.Provider,{value:a,children:t})},eA=()=>{let e=(0,A.useContext)(ev);if(void 0===e)throw Error("useInAppGuide must be used within an InAppGuideProvider");return e},ex=e=>(0,g.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,g.jsx)("path",{d:"M16 8C15.9847 7.44998 15.8169 6.91443 15.5147 6.45381C15.2133 5.99404 14.7893 5.62622 14.2903 5.39293C14.4802 4.87612 14.5202 4.31673 14.4095 3.77778C14.298 3.23797 14.0375 2.74074 13.6586 2.34142C13.2584 1.96254 12.762 1.70285 12.2222 1.59046C11.6833 1.47978 11.1239 1.5198 10.6071 1.70966C10.3746 1.20988 10.0077 0.785015 9.54704 0.48361C9.08642 0.182205 8.55087 0.0136228 8 0C7.44998 0.0144742 6.91613 0.181354 6.45636 0.48361C5.99659 0.785866 5.63133 1.21073 5.4006 1.70966C4.88293 1.5198 4.32184 1.47808 3.78118 1.59046C3.24053 1.70115 2.74244 1.96169 2.34227 2.34142C1.96339 2.74159 1.70456 3.23968 1.59472 3.77863C1.48404 4.31758 1.52661 4.87697 1.71733 5.39293C1.21754 5.62622 0.791826 5.99319 0.488719 6.45296C0.185611 6.91273 0.0161771 7.44913 0 8C0.0170285 8.55087 0.185611 9.08642 0.488719 9.54704C0.791826 10.0068 1.21754 10.3746 1.71733 10.6071C1.52661 11.123 1.48404 11.6824 1.59472 12.2214C1.70541 12.7612 1.96339 13.2584 2.34142 13.6586C2.74159 14.0358 3.23882 14.2946 3.77778 14.4061C4.31673 14.5185 4.87612 14.4777 5.39293 14.2903C5.62622 14.7893 5.99319 15.2133 6.45381 15.5155C6.91358 15.8169 7.44998 15.9847 8 16C8.55087 15.9864 9.08642 15.8186 9.54704 15.5172C10.0077 15.2158 10.3746 14.7901 10.6071 14.2912C11.1213 14.4947 11.685 14.5432 12.2273 14.4308C12.7688 14.3184 13.2661 14.0502 13.6577 13.6586C14.0494 13.2669 14.3184 12.7697 14.4308 12.2273C14.5432 11.685 14.4947 11.1213 14.2903 10.6071C14.7893 10.3738 15.2133 10.0068 15.5155 9.54619C15.8169 9.08642 15.9847 8.55002 16 8Z",fill:"#6E56CF"})});var ew=n(93451),e_=n.n(ew);let eS=e=>{let{children:t}=e;return(0,g.jsxs)("div",{className:e_().root,children:[(0,g.jsx)(ex,{}),(0,g.jsx)("span",{className:e_().count,children:t})]})};var eC=n(18566),ek=n(70647);async function eE(){let[{errors:e,models:t},{errors:n,models:o}]=await Promise.all([ek.managerClient.customTypes.readAllCustomTypes(void 0),ek.managerClient.slices.readAllSlices()]);if(e.length>0||n.length>0)throw[...e,...n];return(null==t?void 0:t.length)===0&&(null==o?void 0:o.length)===0}let eT=e=>(0,g.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 18.9824C15.9675 18.7377 18.7377 15.9675 18.9824 12.5H15.9691C15.7434 14.3094 14.3094 15.7434 12.5 15.9691V18.9824ZM15.9691 11.5H18.9824C18.7377 8.03251 15.9675 5.2623 12.5 5.01758V8.03095C14.3094 8.25657 15.7434 9.69064 15.9691 11.5ZM11.5 18.9824V15.9691C9.69064 15.7434 8.25657 14.3094 8.03095 12.5H5.01758C5.2623 15.9675 8.03251 18.7377 11.5 18.9824ZM5.01758 11.5H8.03095C8.25657 9.69064 9.69064 8.25657 11.5 8.03095V5.01758C8.03251 5.2623 5.2623 8.03251 5.01758 11.5ZM9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:"#EDEDEF"})});var eO=n(99579);let eI=()=>{let e=(0,eC.QT)(eE,[]),{isInAppGuideOpen:t,setIsInAppGuideOpen:n}=eA(),o=function(){let{repositoryUrl:e}=(0,eO.U)();return{title:"Build a page in 5 minutes",description:"Great, now that you have a page type, let's make it a live page!",steps:[{title:"Add slices to your page type",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/ADD_SLICE.mp4",description:"Use slice templates and add them to your page type."},{title:"Code your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/CODE_SNIP.mp4",description:"If you don't already have a page component, copy-paste the page snippets provided in your page type to create one."},{title:"Push to your Page Builder",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/PUSH.mp4",description:"You have just created some models, but you can't use them yet. First, you must push them to the Page Builder. The Page Builder is where you create content. Go head — push your models."},{title:"Create content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/WRITE.mp4",description:(0,g.jsxs)(g.Fragment,{children:["Open your"," ",(0,g.jsx)(y.xv,{href:e,underline:!0,children:"Page Builder"}),", create a page, add slices, save, and publish. Then, come back here."]})},{title:"Render your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/PREVIEW.mp4",description:(0,g.jsxs)(g.Fragment,{children:["To render the page, run your project in your terminal and visit the page on localhost (e.g."," ",(0,g.jsx)(y.xv,{component:"code",children:"localhost:3000/example-page"}),")."]})}],successTitle:"Next",successDescription:"Create more slices and then go back to the Page Builder to build out your website."}}(),{eligible:i}=(0,eg.z)(),a=e||i?void 0:(0,g.jsx)(y.xu,{position:"fixed",right:16,bottom:16,children:(0,g.jsx)(y.hU,{color:"purple",icon:(0,g.jsx)(eT,{}),onClick:()=>{n(!t)},radius:"full",variant:"solid"})});return(0,g.jsxs)(y.Vq,{trigger:a,modal:!1,open:t&&!e,onOpenChange:e=>{n(e)},position:"bottomRight",size:{width:360,height:456},children:[(0,g.jsx)(y.fK,{title:o.title}),(0,g.jsx)(y.cZ,{children:(0,g.jsxs)(y.xr,{children:[(0,g.jsx)(y.xu,{flexDirection:"column",padding:{inline:16,block:8},children:(0,g.jsx)(y.xv,{children:o.description})}),(0,g.jsx)(y.xu,{children:(0,g.jsx)(y.Z0,{})}),o.steps.map((e,t)=>(0,g.jsxs)(y.xu,{flexDirection:"column",children:[(0,g.jsxs)(y.xu,{flexDirection:"column",padding:16,gap:8,children:[(0,g.jsxs)(y.xu,{alignItems:"center",gap:8,children:[(0,g.jsx)(eS,{children:t+1}),(0,g.jsx)(y.xv,{component:"h3",variant:"bold",children:e.title})]}),(0,g.jsx)(y.nk,{src:e.videoUrl,sizing:"contain",autoPlay:!0,loop:!0}),(0,g.jsx)(y.xv,{children:e.description})]}),(0,g.jsx)(y.Z0,{})]},t)),(0,g.jsxs)(y.xu,{flexDirection:"column",padding:16,gap:4,children:[(0,g.jsx)(y.xv,{variant:"bold",children:o.successTitle}),(0,g.jsx)(y.xv,{children:o.successDescription})]})]})})]})};var eR=n(80546),eM=n(5813),ej=n(65077),eD=n(77859),eP=n(49857),eF=n(41067),eL=()=>{let{refreshState:e}=(0,eF.Z)(),t=(0,A.useCallback)(e,[]),{data:n}=(0,eP.ZP)("getState",async()=>await (0,eh.y0)());(0,A.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),eD.av({id:n.env.shortId}),eD.YA("repository",n.env.repo),eD.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},eN=n(68916),eU=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,eN.Sd)(e)})),t=(0,w.useRouter)();(0,A.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);eh.Xe.group({manualLibsCount:e.filter(e=>e.meta.isManual).length,downloadedLibsCount:t.length,npmLibsCount:e.filter(e=>e.meta.isNodeModule).length,downloadedLibs:t.map(e=>{var t;return null!==(t=e.meta.name)&&void 0!==t?t:"Unknown"})})})(e),eB()},[]),(0,A.useEffect)(()=>{let e=()=>{eB()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eB(){let e=await ek.managerClient.project.getAdapterName();return eh.Xe.track({event:"page-view",url:window.location.href,path:window.location.pathname,search:window.location.search,title:document.title,referrer:document.referrer,adapter:e,outerWidth:window.outerWidth,outerHeight:window.outerHeight,screenWidth:window.screen.width,screenHeight:window.screen.height})}var eW=n(67677),ez=n(37149),eV=n.n(ez),eK=n(88932),e$=n(75289),eH=n(69765),eq=n(99757),eZ=n(11104),eG=n(75665),eY=n(29040);async function eQ(e,t,n,o){let i=0,a=(u,l)=>{Promise.resolve(e()).then(e=>{t(e)?u(e):i<o?(i+=1,setTimeout(a,n,u,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eJ=n(79546),eX=n(23798),e0=n(93017),e1=n(27078),e2=n(46962),e5=n(58161),e3=()=>{eV().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,e1.gP)(e,e2.q.LOGIN),isLoginLoading:(0,eX.hg)(e,e0.z.LOGIN),env:(0,eJ.zj)(e)})),{syncChanges:o}=(0,eR.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:u}=(0,eF.Z)(),l=function(e){try{let t=new URL(e);if(t.hostname.endsWith(".wroom.io"))return t.hostname="wroom.io",t.origin;if(t.hostname.endsWith(".wroom.test"))return t.hostname="wroom.test",t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),s="".concat(function(e){let t=t=>"".concat(e).concat(t);return{Dashboard:{index:t("dashboard"),cliLogin:t("dashboard/cli/login?source=slice-machine"),cliSignup:t("dashboard/cli/signup?source=slice-machine")}}}(l+"/").Dashboard.cliLogin,"&port=").concat(window.location.port||"9999","&path=/api/auth"),c=async()=>{if(s)try{a(),await (0,eh.Yf)(),window.open(s,"_blank"),await eQ(eh.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),eK.Am.success("Logged in"),u(),i();let e=await (0,eh.y0)(),t=(0,eY.R)(e.libraries,e.remoteSlices),n=Object.values((0,eG.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eq.m)({authStatus:e5.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eH.j)();(null==d?void 0:d.kind)==="dev"&&(l.length>0||c.length>0)&&o({environment:d,loggedIn:!0,changedCustomTypes:l,changedSlices:c})}catch(e){u(),eK.Am.error("Login failed")}};return(0,g.jsx)(eZ.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:i,contentLabel:"login_modal",style:{content:{position:"static",display:"flex",margin:"auto",minHeight:"initial"},overlay:{display:"flex"}},children:(0,g.jsxs)(e$.Zb,{children:[(0,g.jsxs)(e$.kC,{sx:{p:"16px",bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,g.jsx)(e$.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,g.jsx)(e$.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,g.jsxs)(e$.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,g.jsx)(e$.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,g.jsxs)(g.Fragment,{children:["Not seeing the browser tab? ",(0,g.jsx)("br",{}),(0,g.jsx)(e$.rU,{target:"_blank",href:s,children:"Click here"})]}):(0,g.jsxs)(g.Fragment,{children:["Your session has expired.",(0,g.jsx)("br",{}),"Please log in again."]})}),(0,g.jsx)(e$.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,g.jsx)(e$.$j,{color:"#FFF",size:16}):(0,g.jsx)(g.Fragment,{children:"Log in to Prismic"})})]})]})})};let e4=()=>(0,g.jsxs)(e$.xu,{children:[(0,g.jsxs)("p",{children:["We could not find any local library in your project.",(0,g.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,g.jsxs)("p",{children:[(0,g.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,g.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var e6=n(1744),e8=n(40572),e9=n(17467),e7=n(63397);let te=[1,2,3,4,5],tt=e=>{let{field:t,form:n}=e;return(0,g.jsx)(e$.xu,{sx:{mb:3,display:"flex",justifyContent:"space-between"},children:te.map((e,o)=>(0,g.jsx)(e$.zx,{variant:"secondary",type:"button",onClick:()=>void n.setFieldValue("rating",e),className:t.value===e?"selected":"",sx:{"&:not(:last-of-type)":{mr:1},"&.selected":{backgroundColor:"code.gray",color:"white"}},"data-testid":"review-form-score-".concat(e),children:e},o))})};eV().setAppElement("#__next");let tn=e=>{let{reviewType:t}=e,{isReviewLoading:n,isLoginModalOpen:o}=(0,x.v9)(e=>({isReviewLoading:(0,eX.hg)(e,e0.z.REVIEW),isLoginModalOpen:(0,e1.gP)(e,e2.q.LOGIN)})),{skipReview:i,sendAReview:a,startLoadingReview:u,stopLoadingReview:l}=(0,eF.Z)(),s=(e,n)=>{u(),eh.Xe.track({event:"review",rating:e,comment:n,type:"advancedRepository"===t?"advanced repository":"onboarding"}),a(t),l()};return(0,g.jsx)(eZ.Z,{isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:()=>i(t),closeTimeoutMS:500,contentLabel:"Review Modal",portalClassName:"ReviewModal",style:{content:{display:"flex",position:"initial",padding:"none",top:"initial",left:"initial",minHeight:"initial"},overlay:{top:"initial",left:"initial",right:16,bottom:16,position:"absolute",height:"fit-content",width:"fit-content",backgroundColor:"unset"}},children:(0,g.jsx)(e7.J9,{validateOnMount:!0,initialValues:{rating:0,comment:""},validate:e=>{let{rating:t}=e;if(!t)return{id:"Please choose a rating"}},onSubmit:e=>{s(e.rating,e.comment)},children:e=>{let{isValid:a}=e;return(0,g.jsx)(e7.l0,{id:"review-form",children:(0,g.jsxs)(e$.Zb,{children:[(0,g.jsxs)(e$.kC,{sx:{p:"16px",pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(null===(t=e.colors)||void 0===t?void 0:t.borders)}},children:[(0,g.jsx)(e$.X6,{sx:{fontSize:"20px",mr:4},children:"Share feedback"}),(0,g.jsx)(e$.x8,{type:"button",onClick:()=>i(t)})]}),(0,g.jsxs)(e$.kC,{sx:{flexDirection:"column",padding:"16px 24px 32px",bg:"headSection"},children:[(0,g.jsx)(e$.xv,{variant:"xs",as:"p",sx:{maxWidth:302,mb:3},children:"Overall, how satisfied or dissatisfied are you with your Slice Machine experience so far?"}),(0,g.jsxs)(e$.xu,{mb:2,sx:{display:"flex",flex:1,justifyContent:"space-between"},children:[(0,g.jsx)(e$.xv,{variant:"xs",as:"p",children:"Very unsatisfied"}),(0,g.jsx)(e$.xv,{variant:"xs",as:"p",children:"Very satisfied"})]}),(0,g.jsx)(e7.gN,{name:"rating",component:tt}),(0,g.jsx)(e7.gN,{name:"comment",type:"text",placeholder:"Tell us more...",as:e$.gx,autoComplete:"off",sx:{height:80,mb:3},"data-testid":"review-form-comment"}),(0,g.jsx)(e$.zx,{form:"review-form",type:"submit",disabled:!a||n||o,children:"Submit"})]})]})})}})})},tr=()=>{let{isInAppGuideOpen:e}=eA(),{userReview:t,customTypes:n,libraries:o,lastSyncChange:i}=(0,x.v9)(e=>({userReview:(0,e9.Eq)(e),customTypes:(0,e8.Ch)(e),libraries:(0,eN.Sd)(e),lastSyncChange:(0,e9.ov)(e)}));if(e)return null;let a=o&&o.length?o.reduce((e,t)=>t?e+t.components.length:e,0):0,u=n.some(e=>(0,e6.TG)(e)&&e.local.tabs.some(e=>{var t;return e.sliceZone&&(null===(t=e.sliceZone)||void 0===t?void 0:t.value.length)>0})),l=!!(i&&Date.now()-i>=36e5),s=a>=6&&n.length>=6&&u&&l;if(!t.advancedRepository&&s)return(0,g.jsx)(tn,{reviewType:"advancedRepository"});let c=a>=1&&n.length>=1&&u&&l;return t.onboarding||t.advancedRepository||!c?null:(0,g.jsx)(tn,{reviewType:"onboarding"})};var to=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,eN.Sd)(e)}));return eU(),eL(),(0,g.jsxs)(g.Fragment,{children:[n.length>0?t:(0,g.jsx)(eW.LN,{children:(0,g.jsx)(eW.RN,{children:(0,g.jsx)(ej.xR,{children:(0,g.jsx)(e4,{})})})}),(0,g.jsx)(e3,{}),(0,g.jsx)(tr,{})]})},ti=e=>{let{children:t}=e;return(0,g.jsx)(e$.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},ta=()=>(0,g.jsx)(ti,{children:(0,g.jsx)(e$.$j,{variant:"styles.spinner",id:"spinner"})}),tu=n(91133),tl=n(18717),ts="persist:",tc="persist/FLUSH",td="persist/REHYDRATE",tf="persist/PAUSE",tp="persist/PERSIST",th="persist/PURGE",tm="persist/REGISTER";function tg(e){return(tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tv(e,t,n,o){o.debug;var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===tg(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function tb(e){return JSON.stringify(e)}function tA(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:ts).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:tx,i.getItem(o).then(function(e){if(e)try{var o={},i=t(e);return Object.keys(i).forEach(function(e){o[e]=n.reduceRight(function(t,n){return n.out(t,e,i)},t(i[e]))}),o}catch(e){throw e}})}function tx(e){return JSON.parse(e)}function tw(e){}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t_(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tC(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tk(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tk(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tT={registry:[],bootstrapped:!1},tO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case tm:return tE({},e,{registry:[].concat(tC(e.registry),[t.key])});case td:var n=e.registry.indexOf(t.key),o=tC(e.registry);return o.splice(n,1),tE({},e,{registry:o,bootstrapped:0===o.length});default:return e}},tI=n(14549),tR=()=>(0,tl.UY)({modal:e1.XV,loading:eX.U,userContext:e9.e4,environment:eJ.wW,availableCustomTypes:e8.Vo,slices:eN.xB,router:R});let tM={key:"root",storage:tI.Z,whitelist:["userContext"]},tj=(void 0===o&&(o={}),u=void 0===(a=o.Router)?_():a,s=void 0===(l=o.methods)?{}:l,d=void 0===(c=o.reducerKey)?"router":c,f=["push","prefetch","replace"].reduce(function(e,t){return e[t]=s[t]?s[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(u&&!i&&o!==S){var a=b.getIn(e.getState(),[d,"location"]);u.asPath!==a.href&&t(C(E(u.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,s=l.args,c=f[l.method];"go"!==c||i||"number"!=typeof s[0]?c&&Object.prototype.hasOwnProperty.call(u,c)&&u[c].apply(u,s):window.history.go(s[0])}}});var tD=n(12170),tP=()=>({initialColorModeName:"light",colors:{text:"#25252D",textClear:"#6F6E77",grayLight:"#E8E8ED",hoverBackground:"#f2f2f2",background:"#FFF",backgroundClear:"#FFF",primary:"#5D40F7",purpleLight:"#F6F1FC",purpleLight01:"#6548FF1A",purple12:"#F1EEFE",purpleStrong:"#5842C3",whiteButtonText:"#1A1523",codeBlockBackground:"#32275F",failedConnectText:"#86848D",changesWarning:{background:"#FFECC7",color:"#5C0C17"},greyIcon:"#6F6E77",greyIconDisabled:"#C9D0D8",missingScreenshotBanner:{color:"#5C0C17",bg:"#FFECC7"},badge:{new:{bg:"#DBEDDB",color:"#05644D"},modified:{bg:"#FFECC7",color:"#5C0C17"},synced:{bg:"purple12",color:"#5842C3"},deleted:{bg:"rgba(203, 36, 49, 0.1)"},unknown:{bg:"#F3F5F7",color:"#9AA4AF"}},codeBlockBorder:"#545454",secondary:"#F9FAFB",danger:"#CB2431",highlight:"hsl(10, 40%, 90%)",purple:"#5B3DF5",purple08:"#5842C3",muted:"#F9F9FB",icons:"#8091A5",gray:"#F8F9FA",grey01:"#F3F5F7",grey02:"#E6E6EA",grey03:"#F4F2F4",grey04:"#9AA4AF",grey05:"#667587",grey07:"#F9F8F9",grey10:"#86848D",grey12:"#1A1523",greyTransparent:"rgba(37, 37, 45, 0.4)",borders:"#E4E2E4",bordersFocused:"#6E56CF",deep:"#0E2150",deep1:"#A0ADE7",lightGreen:"#EBF8F1",lightOrange:"#FDF4EC",darkOrange:"#C17C10",error:"#E55737",success:"#3AB97A",headSection:"#fff",warning:"#E67E22",warning02:"#ED811C",sidebar:"#F1F1F4",link:"#6E56CF",choggleBox:"#5163BA",darkBorder:"#DCDBDD",code:{border:"#DFE1E5",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},modes:{dark:{text:"#fff",textClear:"#6E707B",hoverBackground:"#202020",grey02:"#E6E6EA",background:"#202022",backgroundClear:"#28282C",primary:"#4E54D7",secondary:"#28282C",icons:"#5D5D71",gray:"#1D1D1F",borders:"#3A3A46",deep:"#28282C",headSection:"#28282C",warning:"#E67E22",sidebar:"#28282C",code:{border:"#5D5D6F",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},link:"#A9A9C6",choggleBox:"#fff"}}},fonts:{body:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",monospace:"Menlo, monospace"},fontSizes:[12,14,16,20,24,32,48,64,72],breakpoints:["40em","56em","64em"],fontWeights:{thin:300,body:400,heading:500,label:500,bold:600,display:900},lineHeights:{body:1.5,heading:1.25},textStyles:{heading:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"},display:{variant:"textStyles.heading",fontSize:[5,6],fontWeight:"display",letterSpacing:"-0.03em",mt:3}},sizes:{leftSidebar:220,sidebar:340},text:{xs:{fontWeight:"400",color:"textClear",fontSize:1,fontFamily:"body"},small:{fontWeight:"500",fontSize:2,fontFamily:"body"},labelError:{color:"error",fontWeight:"body",fontSize:1,marginLeft:2,marginBottom:"0!important"},secondary:{color:"greyIcon",fontSize:1},pre:{fontSize:1,fontWeight:"400",color:"textClear",bg:"grey01",p:"2px"},heading:{fontWeight:"500"},grey:{color:"#4E4E55"}},badges:{SYNCED:{fontWeight:"body",color:"badge.synced.color",bg:"badge.synced.bg",px:1,py:"1px"},NEW:{fontWeight:"body",color:"badge.new.color",bg:"badge.new.bg",px:1,py:"1px"},MODIFIED:{fontWeight:"body",color:"badge.modified.color",bg:"badge.modified.bg",px:1,py:"1px"},DELETED:{fontWeight:"body",color:"danger",bg:"badge.deleted.bg",px:1,py:"1px"},UNKNOWN:{fontWeight:"body",color:"badge.unknown.color",bg:"badge.unknown.bg",px:1,py:"1px"},circle:{borderRadius:"50%",fontSize:"10px"},primary:{color:"text",bg:"primary"},"circle-right":{top:"-8px",right:"-8px",height:"24px",width:"24px",display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",borderRadius:"50%"},outline:{color:"primary",fontSize:"14px",fontWeight:"500",bg:"transparent",border:"none",borderColor:"borders"}},boxes:{centered:{height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"}},buttons:{primary:{color:"white",fontSize:1,fontFamily:"body",fontWeight:"body",lineHeight:"24px",padding:"7px 15px",borderRadius:"4px",userSelect:"none",bg:(0,tD.Fq)("primary",.9),borderColor:"primary",borderStyle:"solid",borderWidth:"1px",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{cursor:"pointer",bg:"primary"},"&:focus":{boxShadow:"0px 0px 0px 1px var(--theme-ui-colors-primary)",borderColor:"white",bg:"primary",outline:"none"},"&:disabled":{cursor:"not-allowed",bg:(0,tD.Fq)("primary",.5),borderColor:"transparent"}},screenSize:{p:0,fontFamily:"body",display:"flex",justifyContent:"center",alignItems:"center",height:"32px",width:"32px",bg:"text",color:"white",cursor:"pointer",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)"},secondary:{bg:"secondary",fontFamily:"body",fontWeight:"body",fontSize:"1",color:"textClear",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))},"&:hover:enabled":{bg:(0,tD._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,tD._j)("secondary",.05),borderColor:(0,tD._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,tD._j)("secondary",.06),outline:"none"}},danger:{bg:"danger",fontFamily:"body",fontWeight:"bold",fontSize:"1",color:"purple12",px:"16px",py:"8px",borderRadius:"6px",border:"1px solid #C61926","&:hover":{bg:(0,tD._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,tD._j)("danger",.05),borderColor:(0,tD._j)("danger",.15),outline:"none"},"&:active":{bg:(0,tD._j)("danger",.06),outline:"none"}},dropDownButton:{fontSize:"1",p:"3px",pl:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"6px",border:"1px solid #DCDBDD",fontWeight:"bold",bg:"secondary",fontFamily:"body",color:"textClear","&:hover":{"&:not([disabled])":{bg:(0,tD._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,tD._j)("secondary",.05),borderColor:(0,tD._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,tD._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,tD.Fq)("textClear",.6)},"&>svg":{pointerEvents:"none"}},small:{bg:"primary",borderRadius:"4px",pl:2,pr:2,pb:1,pt:1,fontFamily:"body",fontSize:"12px",fontWeight:"body"},secondarySmall:{background:"#FFFFFF",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",color:"#1A1523",fontFamily:"body",fontSize:"12px",lineHeight:"16px",pl:2,pr:2,py:"5px",cursor:"pointer","&:hover:enabled":{background:"#F4F2F4"},"&:active:enabled":{background:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"},"&:disabled":{cursor:"not-allowed",opacity:.5}},secondaryMedium:{padding:"4px 8px",borderRadius:"6px",fontSize:"14px",fontWeight:"bold",fontFamily:"body",lineHeight:"24px",letterSpacing:"-0.15px",color:"whiteButtonText",border:"1px solid #DCDBDD",backgroundColor:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer","&:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)",border:"1px solid #6E56CF"},"&:hover":{"&:not([disabled])":{backgroundColor:"#F4F2F4",cursor:"pointer"}},"&:active":{"&:not([disabled])":{backgroundColor:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"}},"&:disabled":{color:"#908E96",cursor:"not-allowed"}},darkSmall:{borderRadius:"4px",color:"white",fontFamily:"body",fontSize:"12px",fontWeight:"body",bg:"text",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD.$n)("text",.05),cursor:"pointer"}},lightSmall:{borderRadius:"4px",color:"text",fontSize:"12px",fontWeight:"body",fontFamily:"body",bg:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD._j)("white",.05),cursor:"pointer"}},actionDelete:{width:"100%",borderRadius:"4px",color:"error",fontSize:"16px",fontFamily:"body",fontWeight:"body",bg:"grey02",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD._j)("white",.05),cursor:"pointer"}},disabled:{bg:"#D6CEFC",fontSize:"1",color:"white",fontFamily:"body",cursor:"not-allowed",borderColor:"transparent"},disabledSecondary:{bg:"#F9F9FA",fontSize:"1",color:"#C9D0D8",fontFamily:"body",cursor:"not-allowed",border:"1px solid",borderColor:"1px solid rgba(62, 62, 72, 0.15)"},transparent:{background:"transparent",border:"none",fontFamily:"body",p:1,color:"primary",cursor:"pointer"},selectIcon:{fontFamily:"body","&:hover":{cursor:"pointer"},"&:focus, &:active":{outline:"none"}},textButton:{fontFamily:"body",border:"none",color:"primary",background:"transparent",p:1,position:"relative",top:"1px",ml:1,cursor:"pointer","&:hover":{background:"rgba(0,0,0,0.06) !important",borderRadius:"3px"}},close:{fontFamily:"body",color:"icons","&:hover":{bg:"rgba(0,0,0,0.08)",cursor:"pointer"},"&:focus":{outline:"none"}},icon:{fontFamily:"body","&:hover":{bg:"rgba(0,0,0,0.08)"},"&:focus":{outline:"none"}},round:{fontFamily:"body",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%"},white:{bg:"#FFF",color:"#1A1523",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",fontFamily:"body",fontWeight:"600",fontSize:1,px:3,cursor:"pointer"}},success:{done:{position:"absolute",top:"57px",width:"100%",p:2,bg:"success"},error:{position:"absolute",top:"57px",width:"100%",p:2,bg:"error"},warning:{position:"absolute",top:"57px",width:"100%",p:2,bg:"warning"}},cards:{primary:{bg:"gray",border:"1px solid",borderRadius:4,borderColor:"borders"},large:{py:2,bg:"gray",borderRadius:4,boxShadow:"0 0 8px rgba(0, 0, 0, 0.125)"},drawerCard:{backgroundColor:"white",boxShadow:"0px 2px 1px rgba(0, 0, 0, 0.05)",borderRadius:6,border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},px:16,py:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},forms:{disabled:{bg:"muted",cursor:"not-allowed",pointerEvents:"none"},checkbox:{color:"icons",dark:{color:"#161618",cursor:"pointer"}},radio:{color:"borders","&:checked":{color:"purple"}},input:{fontSize:1,bg:"headSection",borderColor:"borders",fontFamily:"body","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,tD._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},textarea:{fontSize:1,resize:"none",bg:"headSection",fontFamily:"body",borderColor:"borders","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,tD._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.choggleBox}},label:{fontSize:1,primary:{mb:2,fontSize:1,fontWeight:"label",position:"relative","& > span":{mb:1,display:"inline-block",fontWeight:"label"}},border:{fontSize:1,mb:1,fontWeight:"body",pt:"7px",pb:"6px",px:1,borderRadius:"3px",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))}},large:{fontSize:1,color:"grey12"}},switch:{height:"24px",width:"45px",bg:"#EDECEE","input:checked ~ &":{bg:"#6E56CF"},"input ~ & > div":{height:"20px",width:"20px",border:"1px solid #DCDBDD",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ & > div":{height:"20px",width:"20px",border:"1px solid #5842C3",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ &:hover":{bg:"#5842C3"},"input:checked ~ & > div:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)"}}},links:{hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.link},margin:"0 4px",textDecoration:"none",cursor:"pointer",display:"inline-block"},default:{color:"link"},invisible:{color:"text",textDecoration:"none",cursor:"pointer"},sidebar:{fontSize:1,color:"textClear",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{color:"text",bg:"grey02"}},sidebarEmphasis:{fontSize:1,color:"purple",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey02"}},cardSmall:{color:"purple08",fontSize:"12px",textDecoration:"none","&:hover":{textDecoration:"underline"}}},styles:{navLink:{color:"#FFF","&:hover":{color:"#FFF"}},deepNavLink:{color:"deep1"},listItem:{borderRadius:"3px",my:3,listStyleType:"none",justifyContent:"space-between"},Container:{p:3,maxWidth:1024},fixedHeader:{position:"fixed",alignItems:"center",justifyContent:"space-between",height:"48px",width:"100%",bg:"background",p:2,top:"0",left:"0"},success:{position:"absolute",width:"100%",p:2},disabledBox:{position:"absolute",zIndex:"1",height:"100%",width:"100%",background:"rgba(0, 0, 0, .1)"},root:{fontFamily:"body",lineHeight:"body",fontWeight:"body"},h1:{variant:"textStyles.display",fontSize:1},h2:{variant:"textStyles.heading",fontSize:5},h4:{variant:"textStyles.heading",fontSize:3},h5:{variant:"textStyles.heading",fontSize:2},h6:{variant:"textStyles.heading",fontSize:1},ul:{p:0,m:0},li:{listStyleType:"none"},hint:{display:"block",fontStyle:"normal",fontWeight:"normal"},inlineCode:{fontFamily:"monospace",color:"#6E56CF",bg:"#F1EEFE"},"table[data-legacy-component]":{width:"100%",borderCollapse:"collapse",borderSpacing:0,"td, th":{textAlign:"left",borderColor:"muted",borderBottomStyle:"solid"},td:{p:"24px"},"thead tr":{bg:"grey02",borderRadius:"4px",th:{p:"12px 24px"},"th:first-of-type":{borderBottomLeftRadius:"4px",borderTopLeftRadius:"4px"},"th:last-of-type":{borderBottomRightRadius:"4px",borderTopRightRadius:"4px"}},"thead tr.transparent":{bg:"transparent",color:"greyTransparent"},"thead tr.small":{fontSize:"12px"},"tbody tr:not(.disabled)":{cursor:"pointer",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey01"}},"tbody tr.disabled":{cursor:"not-allowed"}},th:{verticalAlign:"bottom",borderBottomWidth:"2px"},td:{verticalAlign:"top",borderBottomWidth:"1px"},hr:{border:0,borderBottom:"1px solid",borderColor:"code.border"},img:{maxWidth:"100%"}},alerts:{primary:{color:"background",bg:"primary"},muted:{color:"text",bg:"muted"}}});let tF=e=>{let{children:t}=e,{setColorMode:n}=(0,V.B7)();return(0,A.useEffect)(()=>{n&&n("light")},[]),(0,g.jsx)(g.Fragment,{children:t})};function tL(e){let{Component:t,pageProps:n}=e,[o,i]=(0,A.useState)(null),[a,u]=(0,A.useState)(null);(0,A.useEffect)(()=>{(async function(){i(await (0,eh.y0)())})()},[]),(0,A.useEffect)(()=>{if(!o||a)return;let e=(0,eG.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,u,l,s,c,d,f,p,h;let m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=[(0,tl.md)(tj)],y=tl.qC,v=tR(),b=(e=void 0!==tM.version?tM.version:-1,tM.debug,t=void 0===tM.stateReconciler?tv:tM.stateReconciler,n=tM.getStoredState||tA,o=void 0!==tM.timeout?tM.timeout:5e3,i=null,a=!1,u=!0,l=function(e){return e._persist.rehydrated&&i&&!u&&i.update(e),e},function(s,c){var d,f,p=s||{},h=p._persist,m=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(p,["_persist"]);if(c.type===tp){var g=!1,y=function(e,t){g||(c.rehydrate(tM.key,e,t),g=!0)};if(o&&setTimeout(function(){g||y(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tM.key,'"')))},o),u=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,u="".concat(void 0!==e.keyPrefix?e.keyPrefix:ts).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:tb;var s=e.writeFailHandler||null,c={},d={},f=[],p=null,h=null;function m(){if(0===f.length){p&&clearInterval(p),p=null;return}var e=f.shift(),n=i.reduce(function(t,n){return n.in(t,e,c)},c[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===f.length&&(Object.keys(d).forEach(function(e){void 0===c[e]&&delete d[e]}),h=l.setItem(u,t(d)).catch(y))}function g(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function y(e){s&&s(e)}return{update:function(e){Object.keys(e).forEach(function(t){g(t)&&c[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&g(t)&&-1===f.indexOf(t)&&void 0!==c[t]&&f.push(t)}),null===p&&(p=setInterval(m,a)),c=e},flush:function(){for(;0!==f.length;)m();return h||Promise.resolve()}}}(tM)),h)return tS({},v(m,c),{_persist:h});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(tM.key),n(tM).then(function(t){(tM.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){y(e)},function(e){y(void 0,e)})},function(e){y(void 0,e)}),tS({},v(m,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===th)return a=!0,c.result((d=tM.storage,f="".concat(void 0!==tM.keyPrefix?tM.keyPrefix:ts).concat(tM.key),d.removeItem(f,tw))),tS({},v(m,c),{_persist:h});if(c.type===tc)return c.result(i&&i.flush()),tS({},v(m,c),{_persist:h});if(c.type===tf)u=!0;else if(c.type===td){if(a)return tS({},m,{_persist:tS({},h,{rehydrated:!0})});if(c.key===tM.key){var b=v(m,c),A=c.payload;return l(tS({},!1!==t&&void 0!==A?t(A,s,b,tM):b,{_persist:tS({},h,{rehydrated:!0})}))}}if(!h)return v(s,c);var x=v(m,c);return x===m?s:l(tS({},x,{_persist:h}))}),A=(0,tl.MT)(b,m,y(...g)),x=(c=!1,d=(0,tl.MT)(tO,tT,void 0),f=function(e){d.dispatch({type:tm,key:e})},p=function(e,t,n){var o={type:td,payload:t,err:n,key:e};A.dispatch(o),d.dispatch(o),c&&h.getState().bootstrapped&&(c(),c=!1)},h=tE({},d,{purge:function(){var e=[];return A.dispatch({type:th,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return A.dispatch({type:tc,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){A.dispatch({type:tf})},persist:function(){A.dispatch({type:tp,register:f,rehydrate:p})}}),s&&s.manualPersist||h.persist(),h);return{store:A,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});u({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||to;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(F(),{children:(0,g.jsx)("title",{children:"Slice Machine"})}),(0,g.jsx)(ep,{theme:tP,children:(0,g.jsx)(tF,{children:(0,g.jsx)(y.f6,{mode:"light",children:(0,g.jsx)(y.pn,{children:a&&o?(0,g.jsxs)(x.zt,{store:a.store,children:[(0,g.jsx)(M,{Router:_(),children:(0,g.jsx)(z,{loading:null,persistor:a.persistor,children:(0,g.jsx)(em.S,{renderError:()=>(0,g.jsx)(y.xu,{justifyContent:"center",width:"100%",padding:80,children:(0,g.jsx)(y.Iq,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,g.jsx)(A.Suspense,{fallback:(0,g.jsx)(ta,{}),children:(0,g.jsx)(eR.E,{children:(0,g.jsxs)(eb,{children:[(0,g.jsx)(eM.e,{children:(0,g.jsx)(l,{children:(0,g.jsx)(t,{...n})})}),(0,g.jsx)(em.S,{children:(0,g.jsx)(A.Suspense,{children:(0,g.jsx)(eI,{})})})]})})})})})}),(0,g.jsx)(tu.ZP,{})]}):(0,g.jsx)(ta,{})})})})})]})}var tN=D()(()=>Promise.resolve(tL),{ssr:!1})},65497:function(){},47125:function(){},99400:function(){},21412:function(){},33916:function(){},31704:function(){},83658:function(){},49345:function(){},70978:function(){},24193:function(){},53498:function(){},59289:function(){},90330:function(){},54303:function(){},13821:function(e){e.exports={reset:"BaseHoverCard_reset__HckHR",container:"BaseHoverCard_container__IZMCG BaseHoverCard_reset__HckHR",arrow:"BaseHoverCard_arrow__gvcjD BaseHoverCard_reset__HckHR"}},63853:function(e){e.exports={items:"Breadcrumb_items__eNDGh"}},93451:function(e){e.exports={root:"Count_root__aoGb8",count:"Count_count__p6R5P"}},77452:function(e){e.exports={block:"HoverCard_block__Fubs4",blockWithDisplayRevert:"HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",root:"HoverCard_root__OaRBr HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",title:"HoverCard_title__dO_Y9 HoverCard_block__Fubs4",titleCloseIcon:"HoverCard_titleCloseIcon__DlZJS HoverCard_block__Fubs4",mediaContainer:"HoverCard_mediaContainer__4Lt3z HoverCard_block__Fubs4",media:"HoverCard_media__U7jSc HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",description:"HoverCard_description__HZ9_z HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",closeButtonContainer:"HoverCard_closeButtonContainer__7JiLA HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4"}},27149:function(e){e.exports={grid:"PageLayout_grid__7Uz4n",root:"PageLayout_root___Ig6N PageLayout_grid__7Uz4n",borderTop:"PageLayout_borderTop__7ioR4","borderTopColor-amber":"PageLayout_borderTopColor-amber__S4eiH","borderTopColor-indigo":"PageLayout_borderTopColor-indigo__kxNiR","borderTopColor-purple":"PageLayout_borderTopColor-purple__xhEfx",pane:"PageLayout_pane__UIqt5 PageLayout_grid__7Uz4n",header:"PageLayout_header__hiJ6I PageLayout_grid__7Uz4n",content:"PageLayout_content__LanfI PageLayout_grid__7Uz4n",contentChildren:"PageLayout_contentChildren__ZjEbL PageLayout_grid__7Uz4n"}},57077:function(e){e.exports={container:"OnboardingGuide_container__0_meV",confettiCannon:"OnboardingGuide_confettiCannon__sE5Vb",visible:"OnboardingGuide_visible__3_Gfm",invisible:"OnboardingGuide_invisible__v6NZj"}},60821:function(e){e.exports={root:"AutoSyncStatusIndicator_root__5KDU5",text:"AutoSyncStatusIndicator_text__UHXHm"}},41173:function(e){e.exports={logo:"SideNavEnvironmentSelector_logo__IFs4z",environmentDotBase:"SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-prod":"SideNavEnvironmentSelector_environmentDot-prod__Acp7Z SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-stage":"SideNavEnvironmentSelector_environmentDot-stage__DaYWK SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-dev":"SideNavEnvironmentSelector_environmentDot-dev__O5Gy7 SideNavEnvironmentSelector_environmentDotBase__abxi3",menuItemEnvironmentDot:"SideNavEnvironmentSelector_menuItemEnvironmentDot__oaC3y",activeEnvironmentDot:"SideNavEnvironmentSelector_activeEnvironmentDot__82bDR",activeEnvironmentName:"SideNavEnvironmentSelector_activeEnvironmentName__qy4rk",loginIcon:"SideNavEnvironmentSelector_loginIcon___VsYZ"}},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}},u=!0;try{t[e](a,a.exports,i),u=!1}finally{u&&delete o[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=v(e));var o,i,a,u,l,s,c,d,f,p=(i=(o=e).auth,a=o.hostname,u=o.protocol||"",l=o.pathname||"",s=o.hash||"",c=o.query||"",d=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",o.host?d=i+o.host:a&&(d=i+(~a.indexOf(":")?"["+a+"]":a),o.port&&(d+=":"+o.port)),c&&"object"==typeof c&&(c=t.encode(c)),f=o.search||c&&"?"+c||"",u&&":"!==u.substr(-1)&&(u+=":"),o.slashes||(!u||n.test(u))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),s&&"#"!==s[0]&&(s="#"+s),f&&"?"!==f[0]&&(f="?"+f),{protocol:u,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:s});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var u="http://",l=u+"w.w",s=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?o(e):e;var i=v(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var d=e.match(s);d&&!i.protocol&&(e=e.substr((a=d[1]+(d[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var f=new URL(e,l+"/"),p=new URL(t,f).toString().replace(l,""),h=i.protocol||n.protocol;return h+=n.slashes||i.slashes?"//":"",!a&&h?p=p.replace(u,h):a&&(p=p.replace(u,"")),c.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),a&&(p=a+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=v,f.prototype.format=o,f.prototype.resolve=d,f.prototype.resolveObject=d;var p=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof f)return e;var a=(e=e.trim()).match(h);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var u=!/(^javascript)/.test(e)&&e.match(m),s=g.test(e),c="";u&&(p.test(u[1])||(c=u[1].toLowerCase(),e=""+u[2]+u[3]),u[2]||(s=!1,p.test(u[1])?(c=u[1],e=""+u[3]):e="//"+u[3]),3!==u[2].length&&1!==u[2].length||(c=u[1],e="/"+u[3]));var d,v=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=v&&v[1],A=new f,x="",w="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return A.protocol=c,A.href=c,A}}A.slashes=s&&!w,A.host="w.w"===d.host?"":d.host,A.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),A.protocol=x?c||null:d.protocol,A.search=d.search.replace(/\\/g,"%5C"),A.hash=d.hash.replace(/\\/g,"%5C");var _=e.split("#");!A.search&&~_[0].indexOf("?")&&(A.search="?"),A.hash||""!==_[1]||(A.hash="#"),A.query=n?t.decode(d.search.substr(1)):A.search.substr(1),A.pathname=w+(u?d.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):d.pathname),"about:"===A.protocol&&"blank"===A.pathname&&(A.protocol="",A.pathname=""),x&&"/"!==e[0]&&(A.pathname=A.pathname.substr(1)),c&&!p.test(c)&&"/"!==e.slice(-1)&&"/"===A.pathname&&(A.pathname=""),A.path=A.pathname+A.search,A.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),A.port=d.port,b&&!A.host.endsWith(b)&&(A.host+=b,A.port=b.slice(1)),A.href=w?""+A.pathname+A.search+A.hash:o(A);var S=/^(file)/.test(A.href)?["host","hostname"]:[];return Object.keys(A).forEach(function(e){~S.indexOf(e)||(A[e]=A[e]||null)}),A}a.parse=v,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return v(d(e,t))},a.Url=f}(),e.exports=a}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,o,i){n=n||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var c=0;c<s;++c){var d,f,p,h,m=e[c].replace(u,"%20"),g=m.indexOf(o);(g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(a,p))?t(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,u,l){return(a=a||"&",u=u||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+u;return n(e[i])?o(e[i],function(e){return l+encodeURIComponent(t(e))}).join(a):l+encodeURIComponent(t(e[i]))}).join(a):l?encodeURIComponent(t(l))+u+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},u=!0;try{t[e](a,a.exports,o),u=!1}finally{u&&delete n[e]}return a.exports}o.ab="//";var i={};i.decode=i.parse=o(815),i.encode=i.stringify=o(577),e.exports=i}()},25237:function(e,t,n){e.exports=n(67328)},97729:function(e,t,n){e.exports=n(50044)},39097:function(e,t,n){e.exports=n(26713)},5632:function(e,t,n){e.exports=n(69442)},34406:function(e){var t,n,o,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(e){n=u}}();var s=[],c=!1,d=-1;function f(){c&&o&&(c=!1,o.length?s=o.concat(s):d=-1,s.length&&p())}function p(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(o=s,s=[];++d<t;)o&&o[d].run();d=-1,t=s.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},68262:function(e,t,n){"use strict";var o=n(23586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,u){if(u!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,u){if(a===u)return!0;if(a&&u&&"object"==typeof a&&"object"==typeof u){var l,s,c,d=t(a),f=t(u);if(d&&f){if((s=a.length)!=u.length)return!1;for(l=s;0!=l--;)if(!e(a[l],u[l]))return!1;return!0}if(d!=f)return!1;var p=a instanceof Date,h=u instanceof Date;if(p!=h)return!1;if(p&&h)return a.getTime()==u.getTime();var m=a instanceof RegExp,g=u instanceof RegExp;if(m!=g)return!1;if(m&&g)return a.toString()==u.toString();var y=n(a);if((s=y.length)!==n(u).length)return!1;for(l=s;0!=l--;)if(!o.call(u,y[l]))return!1;if(i&&a instanceof Element&&u instanceof Element)return a===u;for(l=s;0!=l--;)if(("_owner"!==(c=y[l])||!a.$$typeof)&&!e(a[c],u[c]))return!1;return!0}return a!=a&&u!=u}(e,a)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},68281:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var o=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),u=function(){return(u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function s(e){return function(t){return o.createElement(c,u({attr:u({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,u({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,s=e.title,c=l(e,["attr","size","title"]),d=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),e.children)};return void 0!==a?o.createElement(a.Consumer,null,function(e){return t(e)}):t(i)}},65186:function(e,t,n){"use strict";n.d(t,{$l_:function(){return m},$vK:function(){return w},B4e:function(){return A},BAW:function(){return v},Fwj:function(){return k},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return _},SQS:function(){return b},U8L:function(){return C},XN7:function(){return g},YTL:function(){return h},_b$:function(){return y},eJU:function(){return s},f$3:function(){return u},hs8:function(){return O},iy3:function(){return S},k71:function(){return c},lPv:function(){return E},nwY:function(){return T},vB0:function(){return l},vVM:function(){return p},wr$:function(){return f},xoN:function(){return i}});var o=n(68281);function i(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}}]})(e)}function a(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74L15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z"}}]})(e)}function u(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}}]})(e)}function l(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(e)}function s(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function c(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(e)}function d(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"}}]})(e)}function f(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function p(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function h(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function m(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function g(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4h4zm-6 4h-4v-4h4v4z"}}]})(e)}function y(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}function v(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function b(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M5 4v3h5.5v12h3V7H19V4z"}}]})(e)}function A(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function x(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function w(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}}]})(e)}function _(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"}},{tag:"path",attr:{d:"M6.49 10.5V15h1.15V9h-.87l-1.76 1.27.58.89zM11.47 10.05c.5 0 .81.32.81.72 0 .37-.14.64-.54 1.06-.36.38-1.06 1.08-2.13 2.15V15h3.89v-.99h-2.37l-.03-.05c.68-.68 1.15-1.14 1.4-1.39.61-.6.92-1.22.92-1.86 0-.24-.05-1.04-.91-1.48-.47-.23-1.26-.36-1.95-.03-.82.39-.99 1.13-1 1.15l1.01.42c.1-.33.38-.72.9-.72zM16.99 13.94c-.83 0-.99-.76-1.02-.86l-1.03.41c.45 1.59 2.01 1.51 2.05 1.51 1.2 0 1.68-.72 1.76-.85.32-.49.36-1.24-.01-1.76-.17-.24-.4-.41-.68-.52v-.07c.2-.1.37-.26.52-.48.26-.41.31-1.07-.02-1.57-.08-.11-.53-.75-1.62-.75-1.26 0-1.74.9-1.85 1.24l.99.41c.11-.32.35-.64.85-.64.44 0 .75.26.75.65 0 .58-.55.72-.88.72h-.46v1h.5c.56 0 1.04.24 1.04.79 0 .49-.48.77-.89.77z"}}]})(e)}function S(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-8-4h2v2h2v-2h2v-2h-2v-2h-2v2h-2z"}}]})(e)}function C(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(e)}function k(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}}]})(e)}function E(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(e)}function T(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13l-4-4h8z"}}]})(e)}function O(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}},66866:function(e,t){"use strict";/** @license React v16.13.1
|
|
569
|
+
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let o=n(17653)._(n(2784)),i=n(46085),a=[],u=[],l=!1;function s(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new c(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&u.push(t=>{for(let n of e)if(t.includes(n))return s()})}function d(e,t){!function(){s();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let u=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return u.loading||u.error?o.default.createElement(n.loading,{isLoading:u.loading,pastDelay:u.pastDelay,timedOut:u.timedOut,error:u.error,retry:a.retry}):u.loaded?o.default.createElement((t=u.loaded)&&t.default?t.default:t,e):null},[e,u])}return d.preload=()=>s(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(s,e)}function f(e,t){let n=[];for(;e.length;){let o=e.pop();n.push(o(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(u,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},30988:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var o=n(52322),i=n(33760),a=n(37792),u=n(2784),l=n(52762);let s=e=>{let t=(0,u.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.SV,{...e,onError:e=>{t.current=e},ref:(0,u.useCallback)(e=>{if(null===e)return;let n=t.current;((0,a.ff)(n)||(0,a.TW)(n))&&(t.current=void 0,e.reset())},[n])})}},93188:function(e,t,n){"use strict";n.d(t,{KA:function(){return l},Ve:function(){return p},X$:function(){return s},XQ:function(){return f},Xe:function(){return b},Xi:function(){return d},Yf:function(){return m},eH:function(){return c},pL:function(){return y},t0:function(){return g},tI:function(){return h},y0:function(){return u},y3:function(){return v}});var o=n(95799),i=n(80410),a=n(70647);let u=async()=>{let e=await a.managerClient.getState();return{...e,libraries:e.libraries.map(e=>({...e,components:e.components.map(e=>({...e,model:i.id.toSM(e.model),screenshots:Object.fromEntries(Object.entries(e.screenshots).map(e=>{let[t,n]=e;return[t,{...n,url:URL.createObjectURL(n.data)}]}))}))})),customTypes:e.customTypes.map(e=>o.Dc.toSM(e)),remoteCustomTypes:e.remoteCustomTypes.map(e=>o.Dc.toSM(e)),remoteSlices:e.remoteSlices.map(e=>i.id.toSM(e))}},l=async e=>await a.managerClient.customTypes.updateCustomType({model:e}),s=async(e,t)=>{let{model:n,errors:o}=await a.managerClient.slices.readSlice({libraryID:e,sliceID:t});return{slice:n?i.id.toSM(n):void 0,errors:o}},c=async(e,t)=>await a.managerClient.slices.renameSliceVariation({libraryID:e.from,sliceID:e.model.id,variationID:t.id,model:i.bB.fromSM(t)}),d=a.managerClient.slices.deleteSliceVariation,f=async e=>{let{errors:t}=await a.managerClient.slices.updateSliceScreenshot({libraryID:e.libraryName,sliceID:e.sliceId,variationID:e.variationId,data:e.file});return{url:URL.createObjectURL(e.file),errors:t}},p=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),h=async e=>await a.managerClient.prismicRepository.pushChanges(e),m=async()=>await a.managerClient.user.logout(),g=async()=>{if(!await a.managerClient.user.checkIsLoggedIn())return{status:"pending"};{let e=await a.managerClient.user.getProfile();return{status:"ok",shortId:e.shortId,intercomHash:e.intercomHash}}},y=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),v=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),b={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},23335:function(e,t,n){"use strict";n.d(t,{a:function(){return s},g:function(){return c}});var o=n(52322),i=n(33760),a=n(2784),u=n(63853),l=n.n(u);let s=e=>{let{children:t,...n}=e,i=a.Children.count(t);return(0,o.jsx)("nav",{"aria-label":"Breadcrumb",...n,children:(0,o.jsx)("ol",{className:l().items,children:a.Children.map(t,(e,t)=>(0,o.jsxs)(o.Fragment,{children:[e,t<i-1?(0,o.jsx)(d,{}):null]}))})})},c=e=>{let{active:t=!1,children:n,...a}=e;return(0,o.jsx)("li",{...a,children:(0,o.jsx)(i.xv,{component:"span",color:t?"grey12":"grey11",variant:t?"bold":"normal",children:n})})},d=()=>(0,o.jsx)("li",{"aria-hidden":!0,children:(0,o.jsx)(i.xv,{component:"span",color:"grey11",children:"/"})})},99044:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return th},Rp:function(){return tx},OJ:function(){return tA},LB:function(){return tb},Ev:function(){return tv}});var a=n(52322),u=n(33760),l=n(36887),s=n(6277),c=n(2784),d=n(10635),f=n(7896);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null==e||e(o),!1===n||!o.defaultPrevented)return null==t?void 0:t(o)}}function h(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,c.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,c.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=(0,c.createContext)(o),a=n.length;function u(t){let{scope:n,children:o,...u}=t,l=(null==n?void 0:n[e][a])||i,s=(0,c.useMemo)(()=>u,Object.values(u));return(0,c.createElement)(l.Provider,{value:s},o)}return n=[...n,o],u.displayName=t+"Provider",[u,function(n,u){let l=(null==u?void 0:u[e][a])||i,s=(0,c.useContext)(l);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:o})=>{let i=n(e)[`__scope${o}`];return{...t,...i}},{});return(0,c.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function m(e){let t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),(0,c.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function g(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function y(...e){return(0,c.useCallback)(g(...e),e)}function v(e){return e.split("-")[1]}function b(e){return"y"===e?"height":"width"}function A(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(A(e))?"x":"y"}function w(e,t,n){let o,{reference:i,floating:a}=e,u=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,s=x(t),c=b(s),d=i[c]/2-a[c]/2,f="x"===s;switch(A(t)){case"top":o={x:u,y:i.y-a.height};break;case"bottom":o={x:u,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:l};break;case"left":o={x:i.x-a.width,y:l};break;default:o={x:i.x,y:i.y}}switch(v(t)){case"start":o[s]-=d*(n&&f?-1:1);break;case"end":o[s]+=d*(n&&f?-1:1)}return o}let _=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:u}=n,l=a.filter(Boolean),s=await (null==u.isRTL?void 0:u.isRTL(t)),c=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=w(c,o,s),p=o,h={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:g}=l[n],{x:y,y:v,data:b,reset:A}=await g({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:c,platform:u,elements:{reference:e,floating:t}});d=null!=y?y:d,f=null!=v?v:f,h={...h,[a]:{...h[a],...b}},A&&m<=50&&(m++,"object"==typeof A&&(A.placement&&(p=A.placement),A.rects&&(c=!0===A.rects?await u.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:d,y:f}=w(c,p,s)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};function S(e,t){return"function"==typeof e?e(t):e}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function E(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:u,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=S(t,e),m=C(h),g=l[p?"floating"===f?"reference":"floating":f],y=k(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),v="floating"===f?{...u.floating,x:o,y:i}:u.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),A=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=k(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:s}):v);return{top:(y.top-x.top+m.top)/A.y,bottom:(x.bottom-y.bottom+m.bottom)/A.y,left:(y.left-x.left+m.left)/A.x,right:(x.right-y.right+m.right)/A.x}}let T=Math.min,O=Math.max,I=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:u,elements:l}=t,{element:s,padding:c=0}=S(e,t)||{};if(null==s)return{};let d=C(c),f={x:n,y:o},p=x(i),h=b(p),m=await u.getDimensions(s),g="y"===p,y=g?"clientHeight":"clientWidth",A=a.reference[h]+a.reference[p]-f[p]-a.floating[h],w=f[p]-a.reference[p],_=await (null==u.getOffsetParent?void 0:u.getOffsetParent(s)),k=_?_[y]:0;k&&await (null==u.isElement?void 0:u.isElement(_))||(k=l.floating[y]||a.floating[h]);let E=k/2-m[h]/2-1,I=T(d[g?"top":"left"],E),R=T(d[g?"bottom":"right"],E),M=k-m[h]-R,j=k/2-m[h]/2+(A/2-w/2),D=O(I,T(j,M)),P=null!=v(i)&&j!=D&&a.reference[h]/2-(j<I?I:R)-m[h]/2<0?j<I?I-j:M-j:0;return{[p]:f[p]-P,data:{[p]:D,centerOffset:j-D+P}}}}),R=["top","right","bottom","left"],M=(R.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function j(e){return e.replace(/left|right|bottom|top/g,e=>M[e])}let D={start:"end",end:"start"};function P(e){return e.replace(/start|end/g,e=>D[e])}function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return R.some(t=>e[t]>=0)}function N(e){return"x"===e?"y":"x"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){return U(e).getComputedStyle(e)}function W(e){return e instanceof U(e).Node}function z(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){return e instanceof U(e).HTMLElement}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof U(e).ShadowRoot||e instanceof ShadowRoot)}function $(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function H(e){let t=q(),n=B(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(z(e))}let G=Math.min,Y=Math.max,Q=Math.round,J=Math.floor,X=e=>({x:e,y:e});function ee(e){let t=B(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=V(e),a=i?e.offsetWidth:n,u=i?e.offsetHeight:o,l=Q(n)!==a||Q(o)!==u;return l&&(n=a,o=u),{width:n,height:o,$:l}}function et(e){return e instanceof U(e).Element}function en(e){return et(e)?e:e.contextElement}function er(e){let t=en(e);if(!V(t))return X(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=ee(t),u=(a?Q(n.width):n.width)/o,l=(a?Q(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),l&&Number.isFinite(l)||(l=1),{x:u,y:l}}let eo=X(0);function ei(e){let t=U(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),u=en(e),l=X(1);t&&(o?et(o)&&(l=er(o)):l=er(e));let s=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==U(u))&&i)?ei(u):X(0),c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,f=a.width/l.x,p=a.height/l.y;if(u){let e=U(u),t=o&&et(o)?U(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=er(n),t=n.getBoundingClientRect(),o=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=a,n=U(n).frameElement}}return k({width:f,height:p,x:c,y:d})}function eu(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function el(e){return((W(e)?e.ownerDocument:e.document)||window.document).documentElement}function es(e){return ea(el(e)).left+eu(e).scrollLeft}function ec(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||K(e)&&e.host||el(e);return K(t)?t.host:t}function ed(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ec(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&$(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=U(o);return i?t.concat(a,a.visualViewport||[],$(o)?o:[]):t.concat(o,ed(o))}function ef(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=U(e),o=el(e),i=n.visualViewport,a=o.clientWidth,u=o.clientHeight,l=0,s=0;if(i){a=i.width,u=i.height;let e=q();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:u,x:l,y:s}}(e,n);else if("document"===t)o=function(e){let t=el(e),n=eu(e),o=e.ownerDocument.body,i=Y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+es(e),l=-n.scrollTop;return"rtl"===B(o).direction&&(u+=Y(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:u,y:l}}(el(e));else if(et(t))o=function(e,t){let n=ea(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=V(e)?er(e):X(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,n);else{let n=ei(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return k(o)}function ep(e,t){return V(e)&&"fixed"!==B(e).position?t?t(e):e.offsetParent:null}function eh(e,t){let n=U(e);if(!V(e))return n;let o=ep(e,t);for(;o&&["table","td","th"].includes(z(o))&&"static"===B(o).position;)o=ep(o,t);return o&&("html"===z(o)||"body"===z(o)&&"static"===B(o).position&&!H(o))?n:o||function(e){let t=ec(e);for(;V(t)&&!Z(t);){if(H(t))return t;t=ec(t)}return null}(e)||n}let em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=V(n),a=el(n);if(n===a)return t;let u={scrollLeft:0,scrollTop:0},l=X(1),s=X(0);if((i||!i&&"fixed"!==o)&&(("body"!==z(n)||$(a))&&(u=eu(n)),V(n))){let e=ea(n);l=er(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-u.scrollLeft*l.x+s.x,y:t.y*l.y-u.scrollTop*l.y+s.y}},getDocumentElement:el,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let o=ed(e).filter(e=>et(e)&&"body"!==z(e)),i=null,a="fixed"===B(e).position,u=a?ec(e):e;for(;et(u)&&!Z(u);){let t=B(u),n=H(u);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||$(u)&&!n&&function e(t,n){let o=ec(t);return!(o===n||!et(o)||Z(o))&&("fixed"===B(o).position||e(o,n))}(e,u))?o=o.filter(e=>e!==u):i=t,u=ec(u)}return t.set(e,o),o}(t,this._c):[].concat(n),o],u=a[0],l=a.reduce((e,n)=>{let o=ef(t,n,i);return e.top=Y(o.top,e.top),e.right=G(o.right,e.right),e.bottom=G(o.bottom,e.bottom),e.left=Y(o.left,e.left),e},ef(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eh,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||eh,a=this.getDimensions;return{reference:function(e,t,n){let o=V(t),i=el(t),a="fixed"===n,u=ea(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=X(0);if(o||!o&&!a){if(("body"!==z(t)||$(i))&&(l=eu(t)),V(t)){let e=ea(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=es(i))}return{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}(t,await i(n),o),floating:{x:0,y:0,...await a(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ee(e)},getScale:er,isElement:et,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eg(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=en(e),d=i||a?[...c?ed(c):[],...ed(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,o=null,i=el(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function u(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;let h={rootMargin:-J(d)+"px "+-J(i.clientWidth-(c+f))+"px "+-J(i.clientHeight-(d+p))+"px "+-J(c)+"px",threshold:Y(0,G(1,s))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==s){if(!m)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}(!0),a}(c,n):null,p,h=-1,m=null;u&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let g=s?ea(e):null;return s&&function t(){let o=ea(e);g&&(o.x!==g.x||o.y!==g.y||o.width!==g.width||o.height!==g.height)&&n(),g=o,p=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),f&&f(),m&&m.disconnect(),m=null,s&&cancelAnimationFrame(p)}}let ey=(e,t,n)=>{let o=new Map,i={platform:em,...n},a={...i.platform,_c:o};return _(e,t,{...i,platform:a})};var ev=n(28316);let eb=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return I({element:n.current,padding:o}).fn(t)}else if(n)return I({element:n,padding:o}).fn(t);return{}}});var eA="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function ex(e,t){let n,o,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!ex(e[o],t[o]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!({}).hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){let n=i[o];if(("_owner"!==n||!e.$$typeof)&&!ex(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ew(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let n=ew(e);return Math.round(t*n)/n}function eS(e){let t=c.useRef(e);return eA(()=>{t.current=e}),t}let eC=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null);return(0,c.createElement)(ek,(0,f.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(ek,(0,f.Z)({},o,{ref:t}),n)});eC.displayName="Slot";let ek=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?g(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});ek.displayName="SlotClone";let eE=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eT(e){return(0,c.isValidElement)(e)&&e.type===eE}let eO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,c.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eC:t;return(0,c.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,c.createElement)(a,(0,f.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eI=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eO.svg,(0,f.Z)({},a,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),eR=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eM="Popper",[ej,eD]=h(eM),[eP,eF]=ej(eM),eL=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eF("PopperAnchor",n),u=(0,c.useRef)(null),l=y(t,u);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,c.createElement)(eO.div,(0,f.Z)({},i,{ref:l}))}),eN="PopperContent",[eU,eB]=ej(eN),eW=(0,c.forwardRef)((e,t)=>{var n,o,i,a,u,l,s,d,p,h,g,w,_,C;let{__scopePopper:k,side:I="bottom",sideOffset:R=0,align:M="center",alignOffset:D=0,arrowPadding:U=0,collisionBoundary:B=[],collisionPadding:W=0,sticky:z="partial",hideWhenDetached:V=!1,avoidCollisions:K=!0,onPlaced:$,...H}=e,q=eF(eN,k),[Z,G]=(0,c.useState)(null),Y=y(t,e=>G(e)),[Q,J]=(0,c.useState)(null),X=function(e){let[t,n]=(0,c.useState)(void 0);return eR(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(Q),ee=null!==(n=null==X?void 0:X.width)&&void 0!==n?n:0,et=null!==(o=null==X?void 0:X.height)&&void 0!==o?o:0,en="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},er=Array.isArray(B)?B:[B],eo=er.length>0,ei={padding:en,boundary:er.filter(eK),altBoundary:eo},{refs:ea,floatingStyles:eu,placement:el,isPositioned:es,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:u}={},transform:l=!0,whileElementsMounted:s,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(o);ex(h,o)||m(o);let[g,y]=c.useState(null),[v,b]=c.useState(null),A=c.useCallback(e=>{e!=S.current&&(S.current=e,y(e))},[y]),x=c.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[b]),w=a||g,_=u||v,S=c.useRef(null),C=c.useRef(null),k=c.useRef(f),E=eS(s),T=eS(i),O=c.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:h};T.current&&(e.platform=T.current),ey(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!ex(k.current,t)&&(k.current=t,ev.flushSync(()=>{p(t)}))})},[h,t,n,T]);eA(()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let I=c.useRef(!1);eA(()=>(I.current=!0,()=>{I.current=!1}),[]),eA(()=>{if(w&&(S.current=w),_&&(C.current=_),w&&_){if(E.current)return E.current(w,_,O);O()}},[w,_,O,E]);let R=c.useMemo(()=>({reference:S,floating:C,setReference:A,setFloating:x}),[A,x]),M=c.useMemo(()=>({reference:w,floating:_}),[w,_]),j=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=e_(M.floating,f.x),o=e_(M.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...ew(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:O,refs:R,elements:M,floatingStyles:j}),[f,O,R,M,j])}({strategy:"fixed",placement:I+("center"!==M?"-"+M:""),whileElementsMounted:eg,elements:{reference:q.anchor},middleware:[{name:"offset",options:p={mainAxis:R+et,alignmentAxis:D},async fn(e){let{x:t,y:n}=e,o=await async function(e,t){let{placement:n,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=A(n),l=v(n),s="x"===x(n),c=["left","top"].includes(u)?-1:1,d=a&&s?-1:1,f=S(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof m&&(h="end"===l?-1*m:m),s?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(e,p);return{x:t+o.x,y:n+o.y,data:o}}},K&&{name:"shift",options:g={mainAxis:!0,crossAxis:!1,limiter:"partial"===z?(void 0===h&&(h={}),{options:h,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:u=0,mainAxis:l=!0,crossAxis:s=!0}=S(h,e),c={x:t,y:n},d=x(o),f=N(d),p=c[d],m=c[f],g=S(u,e),y="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+y.mainAxis,n=i.reference[d]+i.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var v,b;let e="y"===d?"width":"height",t=["top","left"].includes(A(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[f])||0)+(t?0:y.crossAxis),u=i.reference[f]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[f])||0)-(t?y.crossAxis:0);m<n?m=n:m>u&&(m=u)}return{[d]:p,[f]:m}}}):void 0,...ei},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=S(g,e),s={x:t,y:n},c=await E(e,l),d=x(A(o)),f=N(d),p=s[d],h=s[f];if(i){let e="y"===d?"bottom":"right";p=O(p+c["y"===d?"top":"left"],T(p,p-c[e]))}if(a){let e="y"===f?"bottom":"right";h=O(h+c["y"===f?"top":"left"],T(h,h-c[e]))}let m=u.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-t,y:m.y-n}}}},K&&{name:"flip",options:w={...ei},async fn(e){var t,n,o,i;let{placement:a,middlewareData:u,rects:l,initialPlacement:s,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,..._}=S(w,e),C=A(a),k=A(s)===s,T=await (null==c.isRTL?void 0:c.isRTL(d.floating)),O=h||(k||!y?[j(s)]:function(e){let t=j(e);return[P(e),t,P(t)]}(s));h||"none"===g||O.push(...function(e,t,n,o){let i=v(e),a=function(e,t,n){let o=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(A(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(P)))),a}(s,y,g,T));let I=[s,...O],R=await E(e,_),M=[],D=(null==(t=u.flip)?void 0:t.overflows)||[];if(f&&M.push(R[C]),p){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=v(e),i=x(e),a=b(i),u="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(u=j(u)),{main:u,cross:j(u)}}(a,l,T);M.push(R[e],R[t])}if(D=[...D,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(n=u.flip)?void 0:n.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let l=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(m){case"bestFit":{let e=null==(i=D.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(l=e);break}case"initialPlacement":l=s}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:_={...ei,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,u=e.floating.style;u.setProperty("--radix-popper-available-width",`${n}px`),u.setProperty("--radix-popper-available-height",`${o}px`),u.setProperty("--radix-popper-anchor-width",`${i}px`),u.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:u}=e,{apply:l=()=>{},...s}=S(_,e),c=await E(e,s),d=A(o),f=v(o),p="x"===x(o),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let g=m-c[t],y=h-c[n],b=!e.middlewareData.shift,w=g,C=y;if(p){let e=h-c.left-c.right;C=f||b?T(y,e):e}else{let e=m-c.top-c.bottom;w=f||b?T(g,e):e}if(b&&!f){let e=O(c.left,0),t=O(c.right,0),n=O(c.top,0),o=O(c.bottom,0);p?C=h-2*(0!==e||0!==t?e+t:O(c.left,c.right)):w=m-2*(0!==n||0!==o?n+o:O(c.top,c.bottom))}await l({...e,availableWidth:C,availableHeight:w});let k=await a.getDimensions(u.floating);return h!==k.width||m!==k.height?{reset:{rects:!0}}:{}}},Q&&eb({element:Q,padding:U}),e$({arrowWidth:ee,arrowHeight:et}),V&&{name:"hide",options:C={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=S(C,e);switch(n){case"referenceHidden":{let n=F(await E(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:L(n)}}}case"escaped":{let n=F(await E(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:L(n)}}}default:return{}}}}]}),[ed,ef]=eH(el),ep=m($);eR(()=>{es&&(null==ep||ep())},[es,ep]);let eh=null===(i=ec.arrow)||void 0===i?void 0:i.x,em=null===(a=ec.arrow)||void 0===a?void 0:a.y,eC=(null===(u=ec.arrow)||void 0===u?void 0:u.centerOffset)!==0,[ek,eE]=(0,c.useState)();return eR(()=>{Z&&eE(window.getComputedStyle(Z).zIndex)},[Z]),(0,c.createElement)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:es?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null===(l=ec.transformOrigin)||void 0===l?void 0:l.x,null===(s=ec.transformOrigin)||void 0===s?void 0:s.y].join(" ")},dir:e.dir},(0,c.createElement)(eU,{scope:k,placedSide:ed,onArrowChange:J,arrowX:eh,arrowY:em,shouldHideArrow:eC},(0,c.createElement)(eO.div,(0,f.Z)({"data-side":ed,"data-align":ef},H,{ref:Y,style:{...H.style,animation:es?void 0:"none",opacity:null!==(d=ec.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),ez={top:"bottom",right:"left",bottom:"top",left:"right"},eV=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eB("PopperArrow",n),a=ez[i.placedSide];return(0,c.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(eI,(0,f.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eK(e){return null!==e}let e$=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,u;let{placement:l,rects:s,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,m]=eH(l),g={start:"0%",center:"50%",end:"100%"}[m],y=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+f/2,v=(null!==(a=null===(u=c.arrow)||void 0===u?void 0:u.y)&&void 0!==a?a:0)+p/2,b="",A="";return"bottom"===h?(b=d?g:`${y}px`,A=`${-p}px`):"top"===h?(b=d?g:`${y}px`,A=`${s.floating.height+p}px`):"right"===h?(b=`${-p}px`,A=d?g:`${v}px`):"left"===h&&(b=`${s.floating.width+p}px`,A=d?g:`${v}px`),{data:{x:b,y:A}}}});function eH(e){let[t,n="center"]=e.split("-");return[t,n]}let eq=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eP,{scope:t,anchor:o,onAnchorChange:i},n)},eZ=(0,c.forwardRef)((e,t)=>{var n;let{container:o=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return o?ev.createPortal((0,c.createElement)(eO.div,(0,f.Z)({},i,{ref:t})),o):null}),eG=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),u=(0,c.useRef)(e),l=(0,c.useRef)("none"),[s,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,c.useReducer)((e,t)=>{let o=n[e][t];return null!=o?o:e},t));return(0,c.useEffect)(()=>{let e=eY(a.current);l.current="mounted"===s?e:"none"},[s]),eR(()=>{let t=a.current,n=u.current;if(n!==e){let o=l.current,i=eY(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),eR(()=>{if(o){let e=e=>{let t=eY(a.current).includes(e.animationName);e.target===o&&t&&(0,ev.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eY(a.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,c.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):c.Children.only(n),a=y(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eY(e){return(null==e?void 0:e.animationName)||"none"}eG.displayName="Presence";let eQ="dismissableLayer.update",eJ=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eX=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:s,onDismiss:d,...h}=e,g=(0,c.useContext)(eJ),[v,b]=(0,c.useState)(null),A=null!==(n=null==v?void 0:v.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),w=y(t,e=>b(e)),_=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),C=_.indexOf(S),k=v?_.indexOf(v):-1,E=g.layersWithOutsidePointerEventsDisabled.size>0,T=k>=C,O=function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e),o=(0,c.useRef)(!1),i=(0,c.useRef)(()=>{});return(0,c.useEffect)(()=>{let e=e=>{if(e.target&&!o.current){let o={originalEvent:e};function a(){e1("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!T||n||(null==u||u(e),null==s||s(e),e.defaultPrevented||null==d||d())},A),I=function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e1("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==d||d())},A);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=m(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{k!==g.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},A),(0,c.useEffect)(()=>{if(v)return i&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(o=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),e0(),()=>{i&&1===g.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=o)}},[v,A,i,g]),(0,c.useEffect)(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),e0())},[v,g]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(eQ,e),()=>document.removeEventListener(eQ,e)},[]),(0,c.createElement)(eO.div,(0,f.Z)({},h,{ref:w,style:{pointerEvents:E?T?"auto":"none":void 0,...e.style},onFocusCapture:p(e.onFocusCapture,I.onFocusCapture),onBlurCapture:p(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:p(e.onPointerDownCapture,O.onPointerDownCapture)}))});function e0(){let e=new CustomEvent(eQ);document.dispatchEvent(e)}function e1(e,t,n,{discrete:o}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&(0,ev.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e2="HoverCard",[e5,e3]=h(e2,[eD]),e4=eD(),[e6,e8]=e5(e2),e9=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e8("HoverCardTrigger",n),a=e4(n);return(0,c.createElement)(eL,(0,f.Z)({asChild:!0},a),(0,c.createElement)(eO.a,(0,f.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:p(e.onPointerEnter,ta(i.onOpen)),onPointerLeave:p(e.onPointerLeave,ta(i.onClose)),onFocus:p(e.onFocus,i.onOpen),onBlur:p(e.onBlur,i.onClose),onTouchStart:p(e.onTouchStart,e=>e.preventDefault())})))}),e7="HoverCardPortal",[te,tt]=e5(e7,{forceMount:void 0}),tn="HoverCardContent",tr=(0,c.forwardRef)((e,t)=>{let n=tt(tn,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=e8(tn,e.__scopeHoverCard);return(0,c.createElement)(eG,{present:o||a.open},(0,c.createElement)(to,(0,f.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:p(e.onPointerEnter,ta(a.onOpen)),onPointerLeave:p(e.onPointerLeave,ta(a.onClose)),ref:t})))}),to=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,...s}=e,d=e8(tn,n),h=e4(n),m=(0,c.useRef)(null),g=y(t,m),[v,b]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(v){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[v]),(0,c.useEffect)(()=>{if(m.current){let e=()=>{b(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),(0,c.useEffect)(()=>{m.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(m.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(eX,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:p(u,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eW,(0,f.Z)({},h,s,{onPointerDown:p(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&b(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:g,style:{...s.style,userSelect:v?"text":void 0,WebkitUserSelect:v?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))}),ti=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e4(n);return(0,c.createElement)(eV,(0,f.Z)({},i,o,{ref:t}))});function ta(e){return t=>"touch"===t.pointerType?void 0:e()}let tu=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:u=700,closeDelay:l=300}=e,s=e4(t),d=(0,c.useRef)(0),f=(0,c.useRef)(0),p=(0,c.useRef)(!1),h=(0,c.useRef)(!1),[g=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=(0,c.useState)(e),[o]=n,i=(0,c.useRef)(o),a=m(t);return(0,c.useEffect)(()=>{i.current!==o&&(a(o),i.current=o)},[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:o,l=m(n);return[u,(0,c.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}({prop:o,defaultProp:i,onChange:a}),v=(0,c.useCallback)(()=>{clearTimeout(f.current),d.current=window.setTimeout(()=>y(!0),u)},[u,y]),b=(0,c.useCallback)(()=>{clearTimeout(d.current),p.current||h.current||(f.current=window.setTimeout(()=>y(!1),l))},[l,y]),A=(0,c.useCallback)(()=>y(!1),[y]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]),(0,c.createElement)(e6,{scope:t,open:g,onOpenChange:y,onOpen:v,onClose:b,onDismiss:A,hasSelectionRef:p,isPointerDownOnContentRef:h},(0,c.createElement)(eq,s,n))},tl=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=e8(e7,t);return(0,c.createElement)(te,{scope:t,forceMount:n},(0,c.createElement)(eG,{present:n||a.open},(0,c.createElement)(eZ,{asChild:!0,container:i},o)))};var ts=n(13821),tc=n.n(ts);let td=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(u.rS.space[16]),side:s,sideOffset:d=4,trigger:f,...p}=e,{arrowWidth:h,arrowHeight:m}=(0,c.useMemo)(()=>{if(void 0===o)return{arrowWidth:10,arrowHeight:5};let e=Math.SQRT2*o;return{arrowWidth:e,arrowHeight:e/2}},[o]);return(0,a.jsxs)(tu,{...p,children:[(0,a.jsx)(e9,{asChild:!0,children:f}),(0,a.jsx)(tl,{children:(0,a.jsxs)(tr,{align:t,alignOffset:n,className:tc().container,collisionPadding:l,side:s,sideOffset:d,children:[i,(0,a.jsx)(ti,{className:tc().arrow,height:m,width:h})]})})]})};var tf=n(77452),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:u,onClose:l,open:s,openDelay:d=5e3,side:f,sideOffset:p,trigger:h}=e,[m,g]=(0,c.useState)(!1),y=(0,c.useCallback)(()=>{l&&l(),g(!1)},[l,g]);return!function(e){let{condition:t,action:n,delay:o}=e,[i,a]=(0,c.useState)(null);(0,c.useEffect)(()=>(t&&null===i&&a(setTimeout(n,o)),()=>{null!==i&&(clearTimeout(i),a(null))}),[t,n,o,i,a])}({condition:!0===s,action:(0,c.useCallback)(()=>g(e=>!1===e),[g]),delay:d}),(0,a.jsx)(td,{align:t,alignOffset:n,arrowSize:o,collisionPadding:u,onOpenChange:e=>{!0===e&&!0===s&&g(e)},open:m,openDelay:d,side:f,sideOffset:p,trigger:h,children:(0,a.jsx)(tm,{handleClose:y,children:i})})},tm=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tg.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tp().root,children:n})})},tg=(0,c.createContext)({handleClose:()=>void 0});function ty(){return(0,c.useContext)(tg)}let tv=e=>{let{children:t}=e,{handleClose:n}=ty();return(0,a.jsxs)("div",{className:tp().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tp().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tb=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tp().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,s.W)(tp().media,n.className)})})},tA=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tp().description,children:t})},tx=e=>{let{children:t}=e,{handleClose:n}=ty();return(0,a.jsx)("div",{className:tp().closeButtonContainer,children:(0,a.jsx)(u.zx,{sx:{width:"100%"},onClick:n,children:t})})}},3181:function(e,t,n){"use strict";n.d(t,{AK:function(){return h},Dj:function(){return c},Kp:function(){return p},L4:function(){return m},Oh:function(){return A},PQ:function(){return b},cx:function(){return s},d7:function(){return d},fo:function(){return v},gR:function(){return y},ux:function(){return f},xS:function(){return g}});var o=n(88866),i=n(2439),a=n(80410),u=n(99510);let l="default";function s(e){return e.model.variations.length-Object.keys(e.screenshots).length}function c(e){var t,n,o;return null!==(o=null!==(n=null===(t=e.config)||void 0===t?void 0:t.label)&&void 0!==n?n:"Group"===e.type||"Slice"===e.type||"Boolean"!==e.type&&"Separator"!==e.type?e.fieldset:void 0)&&void 0!==o?o:e.type}function d(e,t){var n;return null===(n=e.screenshots[t.id])||void 0===n?void 0:n.url}function f(e,t){var n,o,i,a,u;let l={},s={};if("type"in e){if("Slice"===e.type){for(let t in e["non-repeat"])l[t]=e["non-repeat"][t].type;for(let t in e.repeat)s[t]=e.repeat[t].type}else if("Group"===e.type)for(let t in null===(n=e.config)||void 0===n?void 0:n.fields)s[t]=null!==(i=null===(o=e.config)||void 0===o?void 0:o.fields[t].type)&&void 0!==i?i:"";else l[t]=e.type}else if("id"in e){for(let{key:t,value:n}of null!==(a=e.primary)&&void 0!==a?a:[])l[t]=n.type;for(let{key:t,value:n}of null!==(u=e.items)&&void 0!==u?u:[])s[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(s).sort().map(e=>[e,s[e]]))}}function p(e){let{slice:t,id:n,name:o,copiedVariation:i}=e,a={...i,id:n,name:o};return{slice:{...t,model:{...t.model,variations:t.model.variations.concat([a])}},variation:a}}function h(e){let{slice:t,variationId:n,widgetArea:o,fieldId:i}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.filter(e=>e.key!==i)}}return e})}}}function m(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){var t;return{...e,[o]:null===(t=e[o])||void 0===t?void 0:t.map(e=>e.key===i?{key:a,value:u}:e)}}return e})}}}function g(e){let{slice:t,variationId:n,widgetArea:u,newFieldId:l,newField:s}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:s.type!==o.GroupFieldType?{...e,[u]:null===(c=e[u])||void 0===c?void 0:c.concat([{key:l,value:s}])}:u===a.Rt.Items?e:{...e,[u]:null===(t=e[u])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(s)}])}})}}}function y(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:u,destinationIndex:l}=e,s=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=s.splice(u,1);return s.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:s}:e)}}}function v(e){return{id:(0,u.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,u.MP)(l),docURL:"...",version:"initial",description:(0,u.MP)(l),imageUrl:""}]}}function b(e,t){return{...e,model:{...e.model,name:t}}}function A(e){let{slice:t,variationId:n}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{if(e.id===n){let t={...e};return delete t.items,t}return e})}}}},63447:function(e,t,n){"use strict";n.d(t,{cd:function(){return i},ne:function(){return a},Ag:function(){return u}});var o=n(52322);let i={page:{blankSlateImage:"/blank-slate-page-types.png",builderPageDynamicSegment:"pageTypeId",getBuilderPagePathname:e=>"/page-types/".concat(e),matchesTablePagePathname:e=>e===i.page.tablePagePathname||e.startsWith("/page-types"),tablePagePathname:"/",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6048 8.0111C15.4571 7.97946 15.3031 8.01624 15.1857 8.11117C15.0682 8.2061 15 8.34901 15 8.5V23.5C15 23.651 15.0682 23.7939 15.1857 23.8888C15.3031 23.9838 15.4571 24.0205 15.6048 23.9889L21.8143 22.6583C22.5059 22.5101 23 21.8989 23 21.1916V14V10.8084C23 10.1011 22.5059 9.48991 21.8143 9.34171L15.6048 8.0111ZM16 22.8815V9.1185L21.6048 10.3195C21.8353 10.3689 22 10.5726 22 10.8084V14V21.1916C22 21.4274 21.8353 21.6311 21.6048 21.6805L16 22.8815ZM9.5 8C9.77614 8 10 8.22386 10 8.5V23.5C10 23.7761 9.77614 24 9.5 24C9.22386 24 9 23.7761 9 23.5V8.5C9 8.22386 9.22386 8 9.5 8ZM12.5 8C12.7761 8 13 8.22386 13 8.5V23.5C13 23.7761 12.7761 24 12.5 24C12.2239 24 12 23.7761 12 23.5V8.5C12 8.22386 12.2239 8 12.5 8Z",fill:"currentColor"})})},custom:{blankSlateImage:"/blank-slate-custom-types.png",builderPageDynamicSegment:"customTypeId",getBuilderPagePathname:e=>"/custom-types/".concat(e),matchesTablePagePathname:e=>e.startsWith(i.custom.tablePagePathname),tablePagePathname:"/custom-types",Icon:e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0651 10.0686C23.0656 10.0687 23.0628 10.0727 23.0551 10.0805C23.0607 10.0724 23.0646 10.0685 23.0651 10.0686ZM22.7102 10.3001C22.4175 10.1539 21.9868 9.9991 21.4143 9.85598C20.0667 9.51907 18.152 9.30005 16 9.30005C13.848 9.30005 11.9333 9.51907 10.5857 9.85598C10.0132 9.9991 9.58249 10.1539 9.28975 10.3C9.58249 10.4462 10.0132 10.601 10.5857 10.7441C11.9333 11.081 13.848 11.3 16 11.3C18.152 11.3 20.0667 11.081 21.4143 10.7441C21.9868 10.601 22.4175 10.4462 22.7102 10.3001ZM8.93492 10.0686C8.93545 10.0685 8.93931 10.0724 8.94491 10.0805C8.93719 10.0727 8.93439 10.0687 8.93492 10.0686ZM24 10.3C24 9.19548 20.4183 8.30005 16 8.30005C11.5817 8.30005 8 9.19548 8 10.3V16.3V22.3C8 22.8286 8.36652 23.2227 8.77269 23.4942C9.19392 23.7758 9.77503 24.0088 10.4612 24.1965C11.8404 24.5739 13.7629 24.8 16 24.8C18.2371 24.8 20.1596 24.5739 21.5388 24.1965C22.225 24.0088 22.8061 23.7758 23.2273 23.4942C23.6335 23.2227 24 22.8286 24 22.3V16.3V10.3ZM23 16.3V11.2691C21.6353 11.8839 19.012 12.3 16 12.3C12.988 12.3 10.3647 11.8839 9 11.2691V16.3C9 16.3238 9.0187 16.4558 9.32842 16.6629C9.62308 16.8598 10.0885 17.0578 10.7251 17.232C11.9913 17.5784 13.8188 17.8 16 17.8C18.1812 17.8 20.0087 17.5784 21.2749 17.232C21.9115 17.0578 22.3769 16.8598 22.6716 16.6629C22.9813 16.4558 23 16.3238 23 16.3ZM23 17.633V22.3C23 22.3238 22.9813 22.4558 22.6716 22.6629C22.3769 22.8598 21.9115 23.0578 21.2749 23.232C20.0087 23.5784 18.1812 23.8 16 23.8C13.8188 23.8 11.9913 23.5784 10.7251 23.232C10.0885 23.0578 9.62308 22.8598 9.32842 22.6629C9.0187 22.4558 9 22.3238 9 22.3V17.633C9.3936 17.8534 9.89115 18.0406 10.4612 18.1965C11.8404 18.5739 13.7629 18.8 16 18.8C18.2371 18.8 20.1596 18.5739 21.5388 18.1965C22.1089 18.0406 22.6064 17.8534 23 17.633Z",fill:"currentColor"})})}};function a(e,t){return Object.values(i).some(n=>{let{getBuilderPagePathname:o}=n;return e.startsWith(o(t))})}function u(e){for(let{builderPageDynamicSegment:t}of Object.values(i)){let n=e[t];if("string"==typeof n)return n}}},77507:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});let o={page:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Page":"page"," ").concat(n?"types":"type")},hintSingle:"e.g. home, privacy policy, sign up",hintRepeatable:"e.g. product, landing page, blog post",inputPlaceholder:"ID to query the page type in the API (e.g. 'BlogPost')",blankSlateDescription:"Page types are models that your editors will use to create website pages in the Page Builder.",autoSaveFailed:"Failed to save page type. Check your browser's console for more information."},custom:{name:e=>{let{start:t,plural:n}=e;return"".concat(t?"Custom":"custom"," ").concat(n?"types":"type")},hintSingle:"e.g. global nav, settings, footer",hintRepeatable:"e.g. side menu, testimonial, author",inputPlaceholder:"ID to query the custom type in the API (e.g. 'Author')",blankSlateDescription:"Custom types are models that your editors can use to create menus or objects in the Page Builder.",autoSaveFailed:"Failed to save custom type. Check your browser's console for more information."}}},69765:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var o=n(37792),i=n(70647);async function a(){try{let{activeEnvironment:e}=await i.managerClient.project.fetchActiveEnvironment();return{activeEnvironment:e}}catch(e){if((0,o.sp)(e))return await i.managerClient.project.updateEnvironment({environment:void 0}),await a();return{error:e}}}},53047:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var o=n(18566),i=n(69765);function a(){return(0,o.QT)(i.j,[])}},65856:function(e,t,n){"use strict";n.d(t,{k:function(){return p}});var o=n(74217),i=n(18566),a=n(88932),u=n(72432);let{fetchOnboarding:l,toggleOnboarding:s,toggleOnboardingStep:c}=n(70647).managerClient.prismicRepository;async function d(){try{return await l()}catch(e){console.error("Failed to fetch onboarding",e);return}}let f=()=>Promise.resolve(void 0);function p(){let e=(0,u.d)().eligible,t=(0,i.QT)(e?d:f,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function p(t){if(!e)return[];let o=n();if(!o)return[];try{let{completedSteps:e}=await c(String(t));return l({...o,completedSteps:e}),e}catch(e){return a.Am.error("Failed to complete/undo step"),console.error("Failed to toggle onboarding step",e),o.completedSteps}}async function h(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await p(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:p,completeStep:h,toggleGuide:async function(){if(!e)return;let t=n();if(!t)return;let o=t.isDismissed;try{l({...t,isDismissed:!o});let{isDismissed:e}=await s();l({...t,isDismissed:e})}catch(e){l({...t,isDismissed:o}),a.Am.error("Failed to hide/show onboarding"),console.error("Failed to toggle onboarding",e)}}}}},41791:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(53085);let i=()=>{let e=(0,o.L)("slicemachine-onboarding");return{eligible:(null==e?void 0:e.value)==="on"}}},72432:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var o=n(53085);let i=()=>{let e=(0,o.L)("shared-onboarding");return{eligible:(null==e?void 0:e.value)==="with-shared-onboarding"}}},52677:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var o=n(53085);function i(){let e=(0,o.L)("slicemachine-git-integration");return{eligible:(null==e?void 0:e.value)==="on"}}},80546:function(e,t,n){"use strict";n.d(t,{E:function(){return w},g:function(){return _}});var o=n(52322),i=n(74217),a=n(37792),u=n(2784),l=n(93188),s=n(52762),c=n(85647),d=n(58161),f=n(41067),p=n(43874),h=n(53047),m=n(6529),g=n(75665),y=n(29040),v=n(99757);async function b(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,y.R)(o.libraries,o.remoteSlices),a=Object.values((0,g.d)(o.customTypes,o.remoteCustomTypes));return(0,v.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var A=n(65821);let x=(0,u.createContext)(void 0),w=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:g}=(0,A.X)(),y=(0,c.L)(),v=(0,s.n)(),{refreshState:w,pushChangesSuccess:_}=(0,f.Z)(),S=(0,i.R9)(w),C=(0,i.R9)(_),{activeEnvironment:k}=(0,h.J)(),{setNextAction:E,actionQueueStatus:T}=(0,p.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),O=(0,u.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=k,loggedIn:n=y&&v===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&E(async()=>{let{changedCustomTypes:e,changedSlices:t}=await b({isOnline:y,authStatus:v});if(0!==e.length||0!==t.length)try{let n=await (0,m.t)({changedCustomTypes:e,changedSlices:t,confirmDeleteDocuments:!0});if(n&&"HARD"===n.type)throw console.error("Manual action required. ".concat(n.details.customTypes.length>1?"These types have":"This type has"," too many associated Documents. Archive and delete these documents\n manually and then try deleting the types again.")),Error();let o=await (0,l.y0)();S(o),C()}catch(e){if((0,a.ff)(e))return;throw e}})},[S,C,E,y,v,k]);(0,u.useEffect)(()=>{(n.length>0||g.length>0)&&O()},[]),(0,i.pQ)(y,()=>{y&&(n.length>0||g.length>0)&&O()});let I=(0,u.useMemo)(()=>(function(e){let{activeEnvironment:t,isOnline:n,authStatus:o,actionQueueStatus:i}=e;return void 0===t||"dev"!==t.kind?"not-active":n?o!==d.t.AUTHORIZED?"not-logged-in":"failed"===i?"failed":"pending"===i?"syncing":"synced":"offline"})({activeEnvironment:k,isOnline:y,authStatus:v,actionQueueStatus:T}),[T,v,y,k]),R=(0,u.useMemo)(()=>({syncChanges:O,autoSyncStatus:I}),[O,I]);return(0,o.jsx)(x.Provider,{value:R,children:t})};function _(){let e=(0,u.useContext)(x);if(void 0===e)throw Error("useAutoSync must be used within a AutoSyncProvider");return e}},6529:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var o=n(93188),i=n(3181),a=n(5274);function u(e,t,n){if(!t)return e;let o=e.slice();return t.forEach(e=>{var t;if("Group"===e.value.type&&(null===(t=e.value.config)||void 0===t?void 0:t.fields)){let t={};e.value.config.fields.forEach(e=>{var n;let{value:o}=e,i=null!==(n=t[o.type])&&void 0!==n?n:0;t[o.type]=i+1}),o.push({isInStaticZone:"custom-type"===n,isInSlice:"slice"===n,...t})}}),o}async function l(e){let{changedSlices:t,changedCustomTypes:n,confirmDeleteDocuments:l=!1}=e,s=Date.now(),c={confirmDeleteDocuments:l,changes:[...t.map(e=>({id:e.slice.model.id,type:"Slice",libraryID:e.slice.from,status:e.status})),...n.map(e=>({id:e.customType.id,type:"CustomType",status:e.status}))]},d=await (0,o.tI)(c);if(d)return o.Xe.track({event:"changes:limit-reach",limitType:d.type}),d;!function(e){let{startTime:t,hasDeletedDocuments:n,changedCustomTypes:l,changedSlices:s}=e,c=l.reduce((e,t)=>t.status===a.GJ.New?{...e,customTypesCreated:e.customTypesCreated+1}:t.status===a.GJ.Modified?{...e,customTypesModified:e.customTypesModified+1}:t.status===a.GJ.Deleted?{...e,customTypesDeleted:e.customTypesDeleted+1}:e,{customTypesCreated:0,customTypesModified:0,customTypesDeleted:0}),d=s.reduce((e,t)=>t.status===a.GJ.New?{...e,slicesCreated:e.slicesCreated+1}:t.status===a.GJ.Modified?{...e,slicesModified:e.slicesModified+1}:t.status===a.GJ.Deleted?{...e,slicesDeleted:e.slicesDeleted+1}:e,{slicesCreated:0,slicesModified:0,slicesDeleted:0}),f=s.length+l.length,p=s.reduce((e,t)=>e+(0,i.cx)(t.slice),0),h=Date.now()-t;o.Xe.track({event:"changes:pushed",...c,...d,total:f,missingScreenshots:p,duration:h,hasDeletedDocuments:n,_includeEnvironmentKind:!0}),function(e){let{changedCustomTypes:t,changedSlices:n}=e,i=t.reduce((e,t)=>(t.status!==a.GJ.New||t.customType.tabs.forEach(t=>{let n=u(e,t.value,"custom-type");e.push(...n)}),e),[]);[...n.reduce((e,t)=>(t.status!==a.GJ.New||t.slice.model.variations.forEach(t=>{let n=u(e,t.primary,"slice");e.push(...n)}),e),[]),...i].forEach(e=>{o.Xe.track({event:"changes:group-pushed",...e})})}({changedCustomTypes:l,changedSlices:s})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:l,startTime:s})}},99757:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(1744),i=n(5274),a=n(58161);let u=[i.GJ.New,i.GJ.Modified,i.GJ.Deleted];function l(e){let{customTypes:t,libraries:n,slices:i,isOnline:a,authStatus:l}=e,d=c({slices:i,customTypes:t,isOnline:a,authStatus:l}),f=n.flatMap(e=>e.components),p=i.filter(o.yp).map(s),h=f.concat(p).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&u.includes(d.slices[e.model.id])),m=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&u.includes(d.customTypes[(0,o.n5)(e)])),g=h.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>u.includes(e.status));return{changedCustomTypes:m.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>u.includes(e.status)),changedSlices:g,unSyncedCustomTypes:m,unSyncedSlices:h,modelsStatuses:d}}function s(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:u}=e,l=o&&u!=a.t.FORBIDDEN&&u!=a.t.UNAUTHORIZED;return{slices:(0,i.zb)(t,l),customTypes:(0,i.zb)(n,l)}}},65821:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var o=n(2784),i=n(56580),a=n(52762),u=n(40572),l=n(68916),s=n(85647),c=n(99757);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,u.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,s.L)(),f=(0,a.n)(),p=(0,c.m)({authStatus:f,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>p,[p])}},43874:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(33760),a=n(74930),u=n.n(a),l=n(2784),s=n(88932);let c=e=>{let{actionQueueStatusDelay:t=300,errorMessage:n,retryDelay:a=1e3,retryMessage:c="Retry"}=e,[d,f]=(0,l.useState)({pendingAction:void 0,nextAction:void 0}),[p,h]=(0,l.useState)("done"),[m,g]=(0,l.useState)(p),y=(0,l.useCallback)(e=>{f(t=>({...t,nextAction:e}))},[]),v=(0,l.useCallback)(async e=>{if(e){h("pending");try{await e(),h("done")}catch(e){h("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=u()();s.Am.error(()=>(0,o.jsxs)(i.xu,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.xv,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.zx,{size:"small",color:"grey",onClick:()=>{s.Am.dismiss(d),l("pending"),setTimeout(()=>{l("done"),c(e=>{var t;return{nextAction:null!==(t=e.nextAction)&&void 0!==t?t:e.pendingAction,pendingAction:void 0}})},n)},children:a})]}),{autoClose:!1,closeOnClick:!1,draggable:!1,toastId:d})}({errorMessage:n,retryDelay:a,retryMessage:c,setActionQueueStatusActual:h,setActionQueueStack:f})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===p&&d.nextAction&&(v(d.nextAction),f({pendingAction:d.nextAction,nextAction:void 0}))},[p,d,v]),(0,l.useEffect)(()=>{if("pending"===p)g("pending");else{let e=setTimeout(()=>{g(p)},t);return()=>{clearTimeout(e)}}},[p,t]),(0,l.useMemo)(()=>({actionQueueStatus:m,setNextAction:y}),[m,y])}},58133:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var o=n(18566),i=n(70647);async function a(){try{return await i.managerClient.project.getAdapterName()}catch(e){throw Error("Error while trying to get adapter name")}}function u(){return(0,o.QT)(a,[])}},52762:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var o=n(56580),i=n(79546);function a(){let{authStatus:e}=(0,o.v9)(e=>({authStatus:(0,i.TA)(e)}));return e}},53085:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var o=n(18566),i=n(70647);async function a(e){try{return await i.managerClient.telemetry.getExperimentVariant(e)}catch(e){console.error("Error while trying to get experiment value",e);return}}function u(e){return(0,o.QT)(a,[e])}},85647:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var o=n(2784);let i=()=>{let[e,t]=(0,o.useState)(window.navigator.onLine),n=(0,o.useCallback)(()=>{t(window.navigator.onLine)},[]);return(0,o.useEffect)(()=>(window.addEventListener("offline",n),window.addEventListener("online",n),()=>{window.removeEventListener("offline",n),window.removeEventListener("online",n)}),[n]),e}},4315:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var o=n(2784);function i(e,t,n){let{schema:i}=null!=n?n:{},a="".concat("slice-machine","_").concat(e),[u,l]=(0,o.useState)(()=>{try{let e=localStorage.getItem(a);if(null==e)return t;if(!i)return JSON.parse(e);return i.parse(JSON.parse(e))}catch(e){return console.warn("Error reading localStorage key “".concat(a,"”:"),e),t}});return(0,o.useEffect)(()=>{try{localStorage.setItem(a,JSON.stringify(u))}catch(e){console.warn("Error setting localStorage key “".concat(a,"”:"),e)}},[a,u]),[u,l]}},99579:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var o=n(56580),i=n(79546);function a(){let{repositoryName:e,apiEndpoint:t}=(0,o.v9)(e=>({repositoryName:(0,i.MY)(e),apiEndpoint:(0,i.Lq)(e)}));return{repositoryName:e,repositoryDomain:new URL(t).hostname.replace(".cdn",""),repositoryUrl:t.replace(".cdn.",".").replace("/api/v2","")}}},5813:function(e,t,n){"use strict";n.d(t,{e:function(){return l},l:function(){return s}});var o=n(52322),i=n(5632),a=n(2784);let u=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(u.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,u]=(0,a.useState)(n),[l,s]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(u(n),s({source:o,destination:n})),l}()});function s(){let e=(0,a.useContext)(u);if(void 0===e)throw Error("useRouteChange must be used within a RouteChangeProvider.");return e}},54991:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var o=n(18566),i=n(70647);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function u(){return(0,o.QT)(a,[])}},85404:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var o=n(18566),i=n(70647);async function a(){let[e,t]=await Promise.all([i.managerClient.versions.checkIsSliceMachineUpdateAvailable(),i.managerClient.versions.checkIsAdapterUpdateAvailable()]);return{sliceMachineUpdateAvailable:e,adapterUpdateAvailable:t}}function u(){return(0,o.QT)(a,[])}},10635:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8536 6.85355C18.0488 6.65829 18.0488 6.34171 17.8536 6.14645C17.6583 5.95118 17.3417 5.95118 17.1464 6.14645L12 11.2929L6.85355 6.14645C6.65829 5.95118 6.34171 5.95118 6.14645 6.14645C5.95118 6.34171 5.95118 6.65829 6.14645 6.85355L11.2929 12L6.14645 17.1464C5.95118 17.3417 5.95118 17.6583 6.14645 17.8536C6.34171 18.0488 6.65829 18.0488 6.85355 17.8536L12 12.7071L17.1464 17.8536C17.3417 18.0488 17.6583 18.0488 17.8536 17.8536C18.0488 17.6583 18.0488 17.3417 17.8536 17.1464L12.7071 12L17.8536 6.85355Z",fill:"currentColor"})})},29184:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var o=n(52322);let i=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 16C23 19.866 19.866 23 16 23C12.134 23 9 19.866 9 16C9 12.134 12.134 9 16 9C19.866 9 23 12.134 23 16ZM24 16C24 20.4183 20.4183 24 16 24C11.5817 24 8 20.4183 8 16C8 11.5817 11.5817 8 16 8C20.4183 8 24 11.5817 24 16ZM14.75 18.5981L18.5 16L14.75 13.4019V18.5981Z",fill:"currentColor"})})},67677:function(e,t,n){"use strict";n.d(t,{LN:function(){return e3},K2:function(){return te},Xq:function(){return e9},Cx:function(){return e7},RN:function(){return tt},wd:function(){return e8}});var o=n(52322),i=n(33760),a=n(5632),u=n(2784),l=n(23335),s=n(6277),c=n(27149),d=n.n(c);let f=e=>{let{borderTopColor:t="purple",children:n,...i}=e;return(0,o.jsxs)("div",{...i,className:d().root,children:[n,(0,o.jsx)("div",{className:(0,s.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},p=e=>(0,o.jsx)("div",{...e,className:d().pane}),h=e=>(0,o.jsx)("header",{...e,className:d().header}),m=e=>{let{children:t,...n}=e;return(0,o.jsx)("main",{...n,className:d().content,children:(0,o.jsx)("div",{className:d().contentChildren,children:t})})};var g=n(30988),y=n(53047),v=n(93188),b=n(63447),A=n(77507),x=n(58133);let w={"@slicemachine/adapter-next":{tutorial:{url:"https://prismic.dev/course/next"},masterSliceLibrary:{exampleLinkUrl:"https://slicify-app.vercel.app/slice-library",codeLinkUrl:"https://github.com/prismicio-solution-engineering/slicify-library#readme",previewVideoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1715957263/Slice_library_video_oemhy0.mp4"}},"@slicemachine/adapter-nuxt":{tutorial:{url:"https://prismic.dev/course/nuxt"}},"@slicemachine/adapter-sveltekit":{tutorial:{url:"https://prismic.dev/course/sveltekit"}}};function _(){var e;return null!==(e=w[(0,x.p)()])&&void 0!==e?e:{}}let S=e=>{let{isOpen:t,onClose:n}=e,{masterSliceLibrary:a}=_();if(!a)return null;let{exampleLinkUrl:u,codeLinkUrl:l,previewVideoUrl:s}=a;return(0,o.jsxs)(i.Vq,{size:"small",open:t,onOpenChange:e=>!e&&n(),children:[(0,o.jsx)(i.fK,{title:"Master Slice Library Generator (BETA)"}),(0,o.jsx)(i.cZ,{children:(0,o.jsxs)(i.xu,{flexDirection:"column",padding:16,gap:16,children:[(0,o.jsx)(i.xv,{variant:"h2",children:"Create a Master Slice Library"}),(0,o.jsx)(i.nk,{src:s,sizing:"contain",autoPlay:!0,loop:!0}),(0,o.jsxs)(i.xv,{children:["This is an"," ",(0,o.jsx)("a",{href:u,target:"_blank",children:"example slice library"}),",\xa0 which provides you with an overview of all your slices in one place. Build it yourself in a few steps."]}),(0,o.jsx)(i.zx,{size:"large",onClick:()=>{v.Xe.track({event:"slice-library:beta:code-opened"}),window.open(l,"_blank")},children:"Get the code"})]})})]})};var C=n(99579);function k(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,C.U)(),a=(0,i.ac)({max:"medium"});return(0,o.jsxs)(i.xu,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.xu,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.xv,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.xv,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.u,{content:"Open Prismic repository",side:"right",children:(0,o.jsx)(i.hU,{"data-testid":"prismic-repository-link",icon:"openInNew",onClick:()=>{window.open(n,"_blank")}})})]})}var E=n(41791),T=n(85404),O=n(23280),I=n(29184),R=n(39097),M=n.n(R);function j(e){let{title:t,href:n,target:a,active:l,Icon:s,RightElement:c,onClick:d}=e,f=(0,i.ac)({max:"medium"}),p=(0,u.useCallback)(()=>(0,o.jsx)(s,{width:f?28:32}),[s,f]),h=(0,o.jsx)(i.F8,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:p,endAdornment:c,selected:l,children:f?null:t});return(0,o.jsx)(i.u,{content:t,side:"right",visible:f,children:void 0!==n?(0,o.jsx)(M(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,children:h}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:h})})}var D=n(65856);function P(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,D.k)();return e?e.isDismissed?(0,o.jsx)(j,{title:"Get Started",Icon:I.z,onClick:()=>void n()}):(0,o.jsx)(O.TI,{tracking:{track:e=>v.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var F={};Object.defineProperty(F,"__esModule",{value:!0});var L=F.confetti=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({},N,(!n.stagger&&n.delay&&(n.stagger=n.delay),n)),i=o.elementCount,a=o.colors,u=o.width,l=o.height,s=o.perspective,c=o.angle,d=o.spread,f=o.startVelocity,p=o.decay,h=o.dragFriction,m=o.duration,g=o.stagger,y=o.random;e.style.perspective=s;var v=Array.from({length:i}).map(function(t,n){var o=document.createElement("div"),i=a[n%a.length];return o.style["background-color"]=i,o.style.width=u,o.style.height=l,o.style.position="absolute",o.style.willChange="transform, opacity",o.style.visibility="hidden",e.appendChild(o),o}).map(function(e){var t;return{element:e,physics:(t=Math.PI/180*d,{x:0,y:0,z:0,wobble:10*y(),wobbleSpeed:.1+.1*y(),velocity:.5*f+y()*f,angle2D:-(Math.PI/180*c)+(.5*t-y()*t),angle3D:-(Math.PI/4)+y()*(Math.PI/2),tiltAngle:y()*Math.PI,tiltAngleSpeed:.1+.3*y()})}});return t=void 0,new Promise(function(n){requestAnimationFrame(function o(i){t||(t=i);var a=i-t,u=t===i?0:(i-t)/m;v.slice(0,Math.ceil(a/g)).forEach(function(e){var t,n,o,i,a,l;e.physics.x+=Math.cos(e.physics.angle2D)*e.physics.velocity,e.physics.y+=Math.sin(e.physics.angle2D)*e.physics.velocity,e.physics.z+=Math.sin(e.physics.angle3D)*e.physics.velocity,e.physics.wobble+=e.physics.wobbleSpeed,p?e.physics.velocity*=p:e.physics.velocity-=e.physics.velocity*h,e.physics.y+=3,e.physics.tiltAngle+=e.physics.tiltAngleSpeed,n=(t=e.physics).x,o=t.y,i=t.z,a=t.tiltAngle,l=t.wobble,e.element.style.visibility="visible",e.element.style.transform="translate3d("+(n+10*Math.cos(l))+"px, "+(o+10*Math.sin(l))+"px, "+i+"px) rotate3d(1, 1, 1, "+a+"rad)",e.element.style.opacity=1-u}),i-t<m?requestAnimationFrame(o):(v.forEach(function(t){if(t.element.parentNode===e)return e.removeChild(t.element)}),n())})})},N={angle:90,spread:45,startVelocity:45,elementCount:50,width:"10px",height:"10px",perspective:"",colors:["#a864fd","#29cdff","#78ff44","#ff718d","#fdff6a"],duration:3e3,stagger:0,dragFriction:.1,random:Math.random};let U={colors:["var(--logo-purple, #8E44EC)","var(--logo-blue, #E8C7FF)","var(--logo-yellow, #59B5F8)","var(--logo-red, #C3EEFE)"],elementCount:300,width:"8px",height:"8px",stagger:.2,startVelocity:35,spread:90,duration:3e3};var B=n(57077),W=n.n(B);let z=[{id:"createProject",title:"Create your Prismic website",description:"Create and set up your project",defaultCompleted:!0},{id:"createPageType",title:"Create your first Page Type",description:"Build the structure of your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/Create_page_type_xdn13j.mp4",content:()=>(0,o.jsx)(i.xv,{children:"A page type is a base content structure editors will use to create pages in the Page Builder (Prismic's content creation UI). A page type can be reusable (e.g., for multiple blog posts) or single (e.g., for a one-time page like the homepage)."})},{id:"codePage",title:"Code your Page",description:"Prepare code to fetch content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/Step2_code_your_page_jatiur.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Prepare your code to query the content from the Prismic API."})},{id:"createSlice",title:"Create your first Slice",description:"Build a reusable section",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918322/DEV_TOOLS/ONBOARDING_GUIDE/Step3_add_slice_qzmvxf.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Slices are website sections that can be reused on different pages with different content. Each slice has a code component automatically generated by Slice Machine. Start with a template and look at your code to see how it's structured."})},{id:"reviewAndPush",title:"Review & push changes",description:"Enable editors to create content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918320/DEV_TOOLS/ONBOARDING_GUIDE/DevTools_Squad_push_changes_ovvmul.mp4",content:()=>(0,o.jsx)(i.xv,{children:"Your page types and slices currently exist only in your local project. Push them to your repository to make them available for your content editors."})},{id:"createContent",title:"Create content for your page",description:"Publish your page to the API",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918324/DEV_TOOLS/ONBOARDING_GUIDE/Cre%CC%81er_contenu_e%CC%81tape_4_z9vlzt.mp4",content:()=>(0,o.jsx)(i.xv,{children:"In Prismic, content creation takes place in the Prismic Page Builder UI. Open the Page Builder and start creating your first page."})},{id:"renderPage",title:"Preview your page",description:"View your page in the browser",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1721918321/DEV_TOOLS/ONBOARDING_GUIDE/Step_6_Render_Page_tnauh9.mp4",content:()=>(0,o.jsxs)(i.xv,{children:["Now that your content is published, you can run your project in your terminal and visit the page on your local server (e.g.,"," ",(0,o.jsx)(i.xv,{component:"code",children:"localhost:3000/example-page"}),"). Your content should now be visible!"]})}];var V=n(30195);let K=V.z.object({createProject:V.z.boolean().optional(),createPageType:V.z.boolean(),codePage:V.z.boolean(),createSlice:V.z.boolean(),reviewAndPush:V.z.boolean(),createContent:V.z.boolean(),renderPage:V.z.boolean()});var $=n(4315);let H=(0,u.createContext)(void 0),q=e=>{let t="false"===localStorage.getItem("slice-machine_isInAppGuideOpen");return Object.fromEntries(e.map(e=>{var n;return[e.id,null!==(n=e.defaultCompleted)&&void 0!==n?n:t]}))},Z=e=>{let{children:t,onComplete:n}=e,[i,a]=G(),u=e=>!!i[e.id]||!!e.defaultCompleted,l=z.filter(e=>u(e)).length;return(0,o.jsx)(H.Provider,{value:{steps:z,toggleStepComplete:e=>{let t=!u(e),o={...i,[e.id]:t};a(o),t&&v.Xe.track({event:"onboarding:step-completed",stepId:e.id,stepTitle:e.title}),Object.values(o).every(Boolean)&&(null==n||n(),v.Xe.track({event:"onboarding:completed"}))},isStepComplete:u,getStepIndex:e=>z.findIndex(t=>{let{id:n}=t;return n===e}),completedStepCount:l,isComplete:l===z.length},children:t})};function G(){return(0,$.V)("onboardingSteps",q(z),{schema:K})}let Y=()=>{let e=(0,u.useContext)(H);if(null==e)throw Error("useOnboardingContext must be used within an OnboardingProvider");return e};function Q(e){let{step:t}=e,{getStepIndex:n}=Y(),{content:a,videoUrl:u,title:l=t.title}=t;return(0,o.jsx)(i.xr,{children:(0,o.jsxs)(i.xu,{as:"article",flexDirection:"column",padding:16,gap:16,children:[(0,o.jsxs)("section",{children:[(0,o.jsxs)(i.xv,{sx:{marginBottom:4},color:"purple9",variant:"bold",children:["Step ",n(t.id)+1]}),(0,o.jsx)(i.xv,{variant:"h3",children:l}),a&&(0,o.jsx)(a,{})]}),"string"==typeof u&&(0,o.jsx)(i.nk,{src:u,sizing:"contain",autoPlay:!0,loop:!0})]})})}let J=e=>{let{step:t,isOpen:n,onClose:a}=e,{toggleStepComplete:l,isStepComplete:s}=Y(),[c,d]=(0,u.useState)(f);function f(){return s(t)?"Undo step":"Mark as done"}let p=()=>{n&&d(f())};return(0,o.jsxs)(i.Vq,{open:n,onOpenChange:a,onAnimationEnd:p,onAnimationStart:p,size:"small",children:[(0,o.jsx)(i.fK,{title:"Onboarding"}),(0,o.jsxs)(i.cZ,{children:[(0,o.jsx)(Q,{step:t}),(0,o.jsxs)(i.kX,{children:[(0,o.jsx)(i.PO,{size:"medium",children:"Close"}),(0,o.jsx)(i._d,{size:"medium",onClick:()=>{n&&(l(t),a())},children:c})]})]})]})},X=()=>(0,o.jsx)(i.I5,{name:"playCircle",size:"small",color:"grey11"});function ee(e){let{buttonSize:t="medium"}=e,{completedStepCount:n,steps:a,isStepComplete:l,isComplete:s}=Y(),[c,d]=(0,u.useState)(!1),[f,p]=(0,u.useState)(!1),[h,m]=(0,u.useState)(a[0]),g=e=>{m(e),p(!0),v.Xe.track({event:"onboarding:step-opened",stepId:e.id,stepTitle:e.title})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(J,{step:h,isOpen:f,onClose:()=>p(!1)}),(0,o.jsxs)(i.h_,{open:c,onOpenChange:d,children:[(0,o.jsx)(i.$F,{children:(0,o.jsx)(i.zx,{disabled:s,size:t,color:"grey",sx:{width:"100%"},renderEndIcon:X,onMouseEnter:()=>d(!0),children:n>0?"Continue":"Start now"})}),(0,o.jsx)(i.AW,{align:"center",sideOffset:-50,minWidth:256,children:(0,o.jsxs)("div",{onMouseLeave:()=>d(!1),children:[(0,o.jsx)(i.Ju,{children:(0,o.jsx)(i.xv,{variant:"small",color:"grey11",sx:{marginInline:8},children:"Progress"})}),a.map((e,t)=>{let n=l(e);return(0,o.jsx)(i.Xi,{onSelect:()=>g(e),description:e.description,completed:n,readOnly:e.defaultCompleted,endAdornment:!0!==e.defaultCompleted&&(0,o.jsx)(i.I5,{name:"chevronRight",size:"small",color:"grey11"}),children:"".concat(t+1," ").concat(e.title)},e.id)})]})})]})]})}function et(){let{tutorial:e}=_(),t=null==e?void 0:e.url;return void 0===t?null:(0,o.jsx)(i.xu,{justifyContent:"center",padding:{block:6},children:(0,o.jsxs)(i.xv,{href:t,variant:"smallBold",color:"grey11",children:["Or watch our full course",(0,o.jsx)(i.I5,{name:"playCircle",color:"grey11",size:"small",sx:{marginLeft:4}})]})})}function en(){let e=function(){let[e]=G();return z.filter(t=>!!e[t.id]||!!t.defaultCompleted).length===z.length}(),[t,n]=(0,u.useState)(!e),i=function(e){let{config:t,onAnimationEnd:n}=e??{},o=(0,u.useRef)(null),i=(0,u.useRef)(null);return{throwConfetti:(0,u.useCallback)(()=>{let e=o.current,a=i.current,u={...U,...t};if(e){if(a||n){let e=a&&a.style.overflow;a&&(a.style.overflow="hidden"),setTimeout(()=>{a&&e&&(a.style.overflow=e),null==n||n()},u.duration)}L(e,u)}},[t]),confettiCannonRef:o,confettiContainerRef:i}}({onAnimationEnd:()=>n(!1)});return t?(0,o.jsx)(Z,{onComplete:i.throwConfetti,children:(0,o.jsxs)("div",{ref:i.confettiContainerRef,className:W().container,children:[(0,o.jsx)(er,{}),(0,o.jsx)("div",{ref:i.confettiCannonRef,className:W().confettiCannon})]})}):null}function er(){let{steps:e,completedStepCount:t,isComplete:n}=Y();return(0,i.ac)({min:"medium"})?(0,o.jsx)("div",{className:n?W().invisible:W().visible,style:{padding:1},children:(0,o.jsx)(i.Zb,{variant:"animated-light",paddingBlock:16,children:(0,o.jsxs)(i.aY,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(i.xv,{variant:"bold",color:"grey12",children:"Build your first Prismic Page in ".concat(e.length.toString()," simple steps")}),(0,o.jsx)(i.xv,{color:"grey11",children:"Render a live page with content coming from Prismic in 5 mins"})]}),(0,o.jsx)(i.ko,{value:t,max:e.length,displayLabel:!0,getValueLabel:(e,t)=>"".concat(e,"/").concat(t)}),(0,o.jsx)(ee,{buttonSize:"large"}),(0,o.jsx)(et,{})]})})}):null}var eo=n(72432);function ei(){let e=function(){let e=(0,i.ac)({min:"medium"}),t=(0,E.z)().eligible,n=(0,T.P)();return e&&t&&!n.sliceMachineUpdateAvailable&&!n.adapterUpdateAvailable}(),t=(0,eo.d)().eligible;return e?t?(0,o.jsx)(P,{}):(0,o.jsx)(en,{}):null}var ea=n(52677);let eu=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9.5C8 8.67157 8.67157 8 9.5 8H13.382C13.9501 8 14.4695 8.321 14.7236 8.82918L15.809 11H18H22.5C23.3284 11 24 11.6716 24 12.5V22.5001C24 23.3285 23.3284 24.0001 22.5 24.0001H12.25H9.5C8.67157 24.0001 8 23.3285 8 22.5001V11.5V9.5ZM14.691 11L13.8292 9.27639C13.7445 9.107 13.5714 9 13.382 9H9.5C9.22386 9 9 9.22386 9 9.5V11H14.691ZM9 12V22.5001C9 22.7762 9.22386 23.0001 9.5 23.0001H12.25H22.5C22.7761 23.0001 23 22.7762 23 22.5001V12.5C23 12.2239 22.7761 12 22.5 12H18H15.5H9Z",fill:"currentColor"})}),el=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3775 24.9684C14.4175 24.9884 14.5075 24.9884 14.5075 24.9884C14.6775 24.9884 14.8475 24.8984 14.9375 24.7484L20.9375 14.7484C21.0275 14.5984 21.0275 14.3984 20.9375 14.2484C20.8475 14.0984 20.6775 13.9984 20.4975 13.9984H16.9975V7.49842C16.9975 7.27842 16.8475 7.07842 16.6275 7.01842C16.4175 6.95842 16.1875 7.04842 16.0675 7.23842L10.0675 17.2384C9.9775 17.3884 9.9775 17.5884 10.0675 17.7384C10.1575 17.8884 10.3275 17.9884 10.5075 17.9884H14.0075V24.4884C14.0075 24.7084 14.1575 24.9084 14.3775 24.9684ZM11.3875 16.9884H14.5075C14.7875 16.9884 15.0075 17.2084 15.0075 17.4884V22.6784L19.6275 14.9884H16.5075C16.2275 14.9884 16.0075 14.7684 16.0075 14.4884V9.29842L11.3875 16.9884Z",fill:"currentColor"})}),es=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.0111 16.3952C7.97946 16.5429 8.01624 16.6969 8.11117 16.8143C8.2061 16.9318 8.34901 17 8.5 17H23.5C23.651 17 23.7939 16.9318 23.8888 16.8143C23.9838 16.6969 24.0205 16.5429 23.9889 16.3952L22.6583 10.1857C22.5101 9.4941 21.8989 9 21.1916 9H14H10.8084C10.1011 9 9.48992 9.4941 9.34171 10.1857L8.0111 16.3952ZM22.8815 16H9.1185L10.3195 10.3952C10.3689 10.1647 10.5727 10 10.8084 10H14H21.1916C21.4274 10 21.6311 10.1647 21.6805 10.3952L22.8815 16ZM8 22.5C8 22.2239 8.22386 22 8.5 22H23.5C23.7761 22 24 22.2239 24 22.5C24 22.7761 23.7761 23 23.5 23H8.5C8.22386 23 8 22.7761 8 22.5ZM8 19.5C8 19.2239 8.22386 19 8.5 19H23.5C23.7761 19 24 19.2239 24 19.5C24 19.7761 23.7761 20 23.5 20H8.5C8.22386 20 8 19.7761 8 19.5Z",fill:"currentColor"})}),ec=e=>(0,o.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12C16 13.1046 15.1046 14 14 14C12.8954 14 12 13.1046 12 12C12 10.8954 12.8954 10 14 10C15.1046 10 16 10.8954 16 12ZM14 9C15.4865 9 16.7205 10.0811 16.9585 11.5H23.5C23.7761 11.5 24 11.7239 24 12C24 12.2761 23.7761 12.5 23.5 12.5H16.9585C16.7205 13.9189 15.4865 15 14 15C12.5135 15 11.2795 13.9189 11.0415 12.5H8.5C8.22386 12.5 8 12.2761 8 12C8 11.7239 8.22386 11.5 8.5 11.5H11.0415C11.2795 10.0811 12.5135 9 14 9ZM21 20C21 21.1046 20.1046 22 19 22C17.8954 22 17 21.1046 17 20C17 18.8954 17.8954 18 19 18C20.1046 18 21 18.8954 21 20ZM16.0415 20.5C16.2795 21.9189 17.5135 23 19 23C20.4865 23 21.7205 21.9189 21.9585 20.5H23.5C23.7761 20.5 24 20.2761 24 20C24 19.7239 23.7761 19.5 23.5 19.5H21.9585C21.7205 18.0811 20.4865 17 19 17C17.5135 17 16.2795 18.0811 16.0415 19.5H8.5C8.22386 19.5 8 19.7239 8 20C8 20.2761 8.22386 20.5 8.5 20.5H16.0415Z",fill:"currentColor"})});var ed=n(99044),ef=n(80546);let ep=e=>(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{d:"M15.5 6L8 15.5L4.5 11",stroke:"#6F6E77",strokeLinecap:"round",strokeLinejoin:"round"})}),eh=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_11119_1080440)",children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.32913 10.1715C7.13387 10.3667 7.13387 10.6833 7.32913 10.8786L9.45048 12.9999L7.32906 15.1213C7.1338 15.3166 7.1338 15.6332 7.32906 15.8285C7.52432 16.0237 7.8409 16.0237 8.03616 15.8285L10.1576 13.707L12.2789 15.8283C12.4741 16.0236 12.7907 16.0236 12.986 15.8283C13.1812 15.6331 13.1812 15.3165 12.986 15.1212L10.8647 12.9999L12.9859 10.8787C13.1812 10.6834 13.1812 10.3669 12.9859 10.1716C12.7906 9.97634 12.4741 9.97634 12.2788 10.1716L10.1576 12.2928L8.03624 10.1715C7.84098 9.97621 7.5244 9.97621 7.32913 10.1715Z",fill:"#6F6E77"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11119_1080440",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),em=e=>(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,o.jsx)("path",{d:"M4.43868 8.23554L5.06668 7.9405L5.01013 7.24895C5.00343 7.16706 5 7.08404 5 7C5 5.34315 6.34315 4 8 4C9.20763 4 10.2507 4.71358 10.7266 5.7464L11.1628 6.69299L12.0905 6.21805C12.3622 6.07893 12.6704 6 13 6C14.1046 6 15 6.89543 15 8C15 8.03818 14.9989 8.07605 14.9969 8.1136L14.9552 8.86338L15.6636 9.11245C16.4434 9.38659 17 10.1296 17 11C17 12.1046 16.1046 13 15 13V14C16.6569 14 18 12.6569 18 11C18 9.69203 17.163 8.57956 15.9953 8.16905C15.9984 8.1131 16 8.05673 16 8C16 6.34315 14.6569 5 13 5C12.5961 5 12.2108 5.07982 11.8591 5.22454C11.7827 5.25599 11.7079 5.29049 11.6348 5.32791C11.5887 5.22784 11.5386 5.13 11.4847 5.03459C10.7981 3.81994 9.4948 3 8 3C5.79086 3 4 4.79086 4 7C4 7.11127 4.00454 7.22148 4.01346 7.33046C2.82373 7.88942 2 9.09851 2 10.5C2 12.2632 3.30385 13.7219 5 13.9646V12.95C3.85888 12.7184 3 11.7095 3 10.5C3 9.50045 3.58659 8.63588 4.43868 8.23554Z",fill:"#6F6E77"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 9.79289L13.3536 13.1464L12.6464 13.8536L10.5 11.7071V17.5H9.5V11.7071L7.35355 13.8536L6.64645 13.1464L10 9.79289Z",fill:"#6F6E77"})]});var eg=n(60821),ey=n.n(eg);let ev=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(em,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)(ep,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(eh,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.u,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:ey().root,children:[t.icon,(0,o.jsx)(i.xv,{className:ey().text,color:"grey11",children:t.text})]})}):t.icon};var eb=n(65821),eA=n(52762),ex=n(85647);let ew=e=>(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53868 5.08412L11.9985 7.96822V2.20001L8.53868 5.08412ZM16.5459 16.5508L17.3035 17.3084C18.3522 16.2597 19.0664 14.9235 19.3557 13.4689C19.6451 12.0143 19.4966 10.5066 18.929 9.13639C18.3614 7.76618 17.4003 6.59505 16.1672 5.77109C14.934 4.94712 13.4842 4.50733 12.0011 4.50733V5.57857C15.5508 5.57866 18.4284 8.45629 18.4284 12.006C18.4284 13.7809 17.709 15.3877 16.5459 16.5508ZM15.4609 18.9278L11.9989 16.0437L11.9989 21.8119L15.4609 18.9278ZM7.45385 7.46112L6.69631 6.70357C5.6476 7.75228 4.93342 9.08842 4.64408 10.543C4.35474 11.9976 4.50324 13.5054 5.0708 14.8756C5.63835 16.2458 6.59948 17.4169 7.83263 18.2409C9.06578 19.0648 10.5156 19.5046 11.9987 19.5046V18.4333C8.44897 18.4332 5.57139 15.5556 5.57139 12.0059C5.57139 10.2311 6.29077 8.62425 7.45385 7.46112Z",fill:"currentColor"})});var e_=n(58161),eS=n(41067);let eC=()=>{let{setSeenChangesToolTip:e}=(0,eS.Z)(),t=eE(),n=(0,a.useRouter)(),{autoSyncStatus:u}=(0,ef.g)(),l=(0,i.ac)({max:"medium"});return(0,o.jsxs)(ed.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.xu,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===u||"synced"===u||"syncing"===u?(0,o.jsx)(ev,{autoSyncStatus:u}):l?(0,o.jsx)(i.u,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.xu,{position:"relative",children:[(0,o.jsx)(i.hU,{icon:(0,o.jsx)(ew,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.xu,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(ek,{color:"purple"})})]})}):(0,o.jsx)(i.zx,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.xu,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.xv,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(ek,{color:"grey"})]})})}),children:[(0,o.jsx)(ed.Ev,{children:"Push your changes"}),(0,o.jsx)(ed.LB,{component:"image",src:"/push.png"}),(0,o.jsx)(ed.OJ,{children:"When you click Save, your changes are saved locally. Then, you can push your models to Prismic from the Changes page."}),(0,o.jsx)(ed.Rp,{children:"Got it"})]})},ek=e=>{let{color:t}=e,n=(0,ex.L)(),a=(0,eA.n)(),{unSyncedSlices:u,unSyncedCustomTypes:l}=(0,eb.X)(),s=u.length+l.length;return n&&a!==e_.t.UNAUTHORIZED&&a!==e_.t.FORBIDDEN&&0!==s?(0,o.jsx)(i.xu,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.xv,{color:"grey"===t?"grey11":"grey1",variant:"small",children:s>9?"+9":s})}):null},eE=()=>!1;var eT=n(37792),eO=n(18566),eI=n(70647),eR=n(69765);async function eM(e){await eI.managerClient.project.updateEnvironment({environment:e.domain}),(0,eO.gw)(eR.j,[]),(0,eO.gw)(v.y0,[])}async function ej(){try{let{environments:e}=await eI.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var eD=n(99757),eP=n(75665),eF=n(29040),eL=n(7896);n(28316);let eN=(0,u.forwardRef)((e,t)=>{let{children:n,...o}=e,i=u.Children.toArray(n),a=i.find(eW);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:u.Children.count(e)>1?u.Children.only(null):(0,u.isValidElement)(e)?e.props.children:null);return(0,u.createElement)(eU,(0,eL.Z)({},o,{ref:t}),(0,u.isValidElement)(e)?(0,u.cloneElement)(e,void 0,n):null)}return(0,u.createElement)(eU,(0,eL.Z)({},o,{ref:t}),n)});eN.displayName="Slot";let eU=(0,u.forwardRef)((e,t)=>{let{children:n,...o}=e;return(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{...function(e,t){let n={...t};for(let o in t){let i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=(...e)=>{a(...e),i(...e)}:i&&(n[o]=i):"style"===o?n[o]={...i,...a}:"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});eU.displayName="SlotClone";let eB=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function eW(e){return(0,u.isValidElement)(e)&&e.type===eB}let ez=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,u.forwardRef)((e,n)=>{let{asChild:o,...i}=e,a=o?eN:t;return(0,u.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,u.createElement)(a,(0,eL.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eV=(0,u.forwardRef)((e,t)=>(0,u.createElement)(ez.span,(0,eL.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),eK=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("path",{d:"M0 0h24v24H0z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M7.5 4A1.5 1.5 0 0 0 6 5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-3a.5.5 0 1 0-1 0v3A1.5 1.5 0 0 0 7.5 20h10a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 17.5 4H13zm6.25 8L10 15v-2.5H3.5a.5.5 0 1 1 0-1H10V9z"})]})}),e$=(0,u.forwardRef)((e,t)=>(0,o.jsxs)("svg",{...e,fill:"none",height:"32",ref:t,viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{fill:"#1A1523",height:"32",rx:"6",width:"32"}),(0,o.jsx)("path",{clipRule:"evenodd",d:"M16.2519 22.6786C19.7531 22.6786 22.5913 19.8404 22.5913 16.3393C22.5913 14.8061 22.0469 13.3999 21.141 12.3037L23.8238 10.7547C23.9923 10.6574 24.05 10.4421 23.9528 10.2736C23.8555 10.1052 23.6401 10.0474 23.4717 10.1447L20.65 11.7738C19.5101 10.6754 17.9599 10 16.2519 10C12.7508 10 9.91263 12.8382 9.91263 16.3393C9.91263 17.7073 10.3459 18.9741 11.0828 20.0099L8.17615 21.688C8.0077 21.7853 7.94999 22.0006 8.04724 22.1691C8.1445 22.3375 8.35989 22.3953 8.52834 22.298L11.5276 20.5664C12.6883 21.8628 14.3749 22.6786 16.2519 22.6786ZM11.5276 20.5664C11.3692 20.3895 11.2207 20.2038 11.0828 20.0099L17.3262 16.4052C17.4946 16.308 17.71 16.3657 17.8073 16.5341C17.9045 16.7026 17.8468 16.918 17.6784 17.0152L11.5276 20.5664ZM20.65 11.7738L14.3216 15.4275C14.1532 15.5247 14.0955 15.7401 14.1927 15.9086C14.29 16.077 14.5054 16.1347 14.6738 16.0375L21.141 12.3037C20.9874 12.1178 20.8235 11.9409 20.65 11.7738Z",fill:"white",fillRule:"evenodd"})]}));var eH=n(41173),eq=n.n(eH);let eZ=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:u=[],loading:l=!1,variant:s="default",onLogInClick:c,onSelect:d}=e,f=(0,i.ac)({max:"medium"}),p=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.xu,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.xu,{position:"relative",children:[f&&u.length>1?(0,o.jsx)(eG,{activeEnvironment:n,disabled:a||l,environments:u,onSelect:d,trigger:(0,o.jsx)(e$,{className:eq().logo})}):(0,o.jsx)(e$,{className:eq().logo}),u.length>1&&(0,o.jsx)(eJ,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:eq().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!f&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.xu,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===s?(0,o.jsx)(i.xv,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===s?(0,o.jsx)(i.zx,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===s?(0,o.jsx)(i.xv,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===s?(0,o.jsx)(i.xv,{component:"span",className:eq().activeEnvironmentName,"data-testid":"active-environment-name",children:p||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.xu,{flexShrink:0,children:["unauthenticated"===s?(0,o.jsx)(i.u,{content:"Log in",side:"right",children:(0,o.jsx)(i.hU,{icon:(0,o.jsx)(eK,{className:eq().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,u.length>1?(0,o.jsx)(eG,{activeEnvironment:n,disabled:a,environments:u,onSelect:d,trigger:(0,o.jsx)(i.hU,{icon:l?(0,o.jsx)(i._3,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eG=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:u,trigger:l}=e,s=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.h_,{modal:!0,children:[(0,o.jsx)(i.u,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.$F,{disabled:n,children:l})}),(0,o.jsxs)(i.AW,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.Ju,{children:"Regular Environments"}):void 0,s.map(e=>(0,o.jsx)(eY,{environment:e,onSelect:u,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Ju,{children:"Personal Environment"}),(0,o.jsx)(eY,{environment:c,onSelect:u,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eY=e=>{let{environment:t,onSelect:n,isActive:a}=e,u="prod"===t.kind;return(0,o.jsx)(i.Xi,{startIcon:(0,o.jsx)(eJ,{kind:t.kind,className:eq().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.I5,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:u?"Production":t.name})},eQ={prod:"Production",stage:"Staging",dev:"Development"},eJ=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,u=eQ[t];return(0,o.jsx)("div",{className:(0,s.W)(eq()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(eV,{children:[u," environment"]}):null})};function eX(){let{environments:e,error:t}=(0,eO.QT)(ej,[]),{activeEnvironment:n}=(0,y.J)(),{refreshState:i,openLoginModal:a}=(0,eS.Z)(),{syncChanges:l}=(0,ef.g)(),s=(0,ex.L)(),c=(0,eA.n)(),[d,f]=(0,u.useState)(!1),{autoSyncStatus:p}=(0,ef.g)();async function h(e){if((null==n?void 0:n.name)===e.name)return;f(!0),v.Xe.track({event:"environment:switch",domain:e.domain}),await eM(e);let t=await (0,v.y0)();i(t);let o=(0,eF.R)(t.libraries,t.remoteSlices),a=Object.values((0,eP.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:u,changedSlices:d}=(0,eD.m)({authStatus:c,customTypes:a,isOnline:s,libraries:t.libraries,slices:o});"dev"===e.kind&&(u.length>0||d.length>0)&&l({environment:e,changedCustomTypes:u,changedSlices:d}),f(!1)}if(!s)return(0,o.jsx)(eZ,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eZ,{environments:e,activeEnvironment:n,onSelect:h,disabled:d||"syncing"===p,loading:d});if((0,eT.ff)(t)||(0,eT.TW)(t))return(0,o.jsx)(eZ,{variant:(0,eT.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var e0=n(54991);function e1(){let e=(0,e0.d)();return(0,i.ac)({max:"medium"})?null:(0,o.jsxs)(i.xv,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function e2(){let e=(0,i.ac)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,T.P)();return(t||n)&&!e?(0,o.jsx)(i.Zb,{color:"grey3",padding:16,children:(0,o.jsxs)(i.aY,{children:[(0,o.jsx)(i.xv,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.xv,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.zx,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(M(),{href:"/changelog",children:"Learn more"})})]})}):null}function e5(){let e=(0,a.useRouter)(),t=(0,ea.M)(),[n,l]=(0,u.useState)(!1),{masterSliceLibrary:s}=_();function c(t){let{type:n}=t;return(0,o.jsx)(j,{title:A.$[n].name({start:!0,plural:!0}),href:b.cd[n].tablePagePathname,active:b.cd[n].matchesTablePagePathname(e.asPath),Icon:b.cd[n].Icon})}return(0,o.jsxs)(i.xu,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.xu,{flexDirection:"column",gap:16,children:[(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{fallback:(0,o.jsx)(i.Od,{height:40}),children:(0,o.jsx)(eX,{})})}),(0,o.jsx)(i.Z0,{style:"dashed"}),(0,o.jsx)(k,{}),(0,o.jsx)(eC,{})]}),(0,o.jsxs)(i.xu,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.S0,{variant:"compact",children:[(0,o.jsx)(c,{type:"page"}),(0,o.jsx)(c,{type:"custom"}),(0,o.jsx)(j,{title:"Slices",href:"/slices",Icon:eu,active:e.asPath.startsWith("/slices")})]}),(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsx)(e2,{})})})]}),(0,o.jsx)(i.xu,{flexDirection:"column",children:(0,o.jsxs)(i.S0,{variant:"compact",children:[(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsx)(ei,{})})}),s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(S,{isOpen:n,onClose:()=>{l(!1)}}),(0,o.jsx)(j,{title:"Master Slice Library",Icon:es,onClick:()=>{v.Xe.track({event:"slice-library:beta:modal-opened"}),l(!0)}})]}),t.eligible&&(0,o.jsx)(j,{title:"Settings",href:"/settings",Icon:ec,active:e.asPath.startsWith("/settings")}),(0,o.jsx)(j,{title:"Changelog",href:"/changelog",Icon:el,active:e.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{fallback:(0,o.jsx)(i.Od,{height:16}),children:(0,o.jsx)(e1,{})})})})]})})]})}let e3=e=>{let{children:t,...n}=e;return(0,o.jsx)(g.S,{children:(0,o.jsx)(u.Suspense,{children:(0,o.jsxs)(e6,{...n,children:[(0,o.jsx)(p,{children:(0,o.jsx)(e5,{})}),t]})})})},e4={prod:"purple",stage:"indigo",dev:"amber"},e6=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,y.J)(),a=i?e4[i.kind]:"purple";return(0,o.jsx)(f,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},e8=e=>{let{children:t,...n}=e;return(0,o.jsx)(h,{...n,children:(0,o.jsx)(i.xu,{alignItems:"center",gap:8,children:t})})},e9=e=>{let{url:t,...n}=e,u=(0,a.useRouter)();return(0,o.jsx)(i.zx,{...n,onClick:()=>{u.push(t)},startIcon:"arrowBack",color:"grey"})},e7=e=>(0,o.jsx)(i.xu,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),te=e=>(0,o.jsx)(i.hE,{...e}),tt=e=>(0,o.jsx)(m,{...e})},11104:function(e,t,n){"use strict";var o=n(52322);n(2784);var i=n(37149),a=n.n(i);t.Z=e=>{var t,n;let i={content:{padding:"0px",top:"10%",maxWidth:"950px",margin:"auto",border:"0",background:"0",borderRadius:"6px",...null===(t=e.style)||void 0===t?void 0:t.content},overlay:{backgroundColor:"rgba(11, 11, 12, 0.9)",backdropFilter:"blur(3px)",overflow:"auto",...null===(n=e.style)||void 0===n?void 0:n.overlay}};return(0,o.jsx)(a(),{...e,style:i})}},91133:function(e,t,n){"use strict";n.d(t,{GX:function(){return l},kQ:function(){return s}});var o=n(52322);n(2784);var i=n(65186),a=n(88932);let u=e=>{let{type:t}=e;switch(t){case a.Am.TYPE.INFO:return(0,o.jsx)(i.vVM,{});case a.Am.TYPE.ERROR:return(0,o.jsx)(i.JSF,{});case a.Am.TYPE.SUCCESS:return(0,o.jsx)(i.vB0,{});case a.Am.TYPE.WARNING:return(0,o.jsx)(i.YTL,{});default:return null}};t.ZP=()=>(0,o.jsx)(a.Ix,{autoClose:2500,hideProgressBar:!0,transition:a.Mi,closeButton:!1,position:a.Am.POSITION.TOP_CENTER,icon:u,style:{left:"50%"}});let l=e=>{let{message:t,path:n}=e,i=n.length<=28?n:n.slice(0,28)+"...";return(0,o.jsxs)("span",{children:[t,(0,o.jsx)("code",{children:i})]})},s=e=>(0,o.jsx)(l,{message:"Slice saved successfully at ",...e})},95799:function(e,t,n){"use strict";n.d(t,{Dc:function(){return b},L$:function(){return y}});var o=n(88866),i=n(10082),a=n(45974),u=n(32521),l=n(40878),s=n(2439),c=n(44772),d=n(13365);let f=u.type({key:u.string,value:u.array(u.type({key:u.string,value:u.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),p={fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM slicezone")})(d.DynamicSlices.decode({type:"Slices",fieldset:"Slice Zone",config:{choices:e.value.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}})),toSM(e,t){var n;return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic slicezone")})(f.decode({key:e,value:Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||[]).map(e=>{let[t,n]=e;return{key:t,value:n}})}))}},h=u.array(u.type({key:u.string,value:u.union([o.NestableWidget,o.UID,s.GT])})),m=u.intersection([u.type({key:u.string,value:h}),u.partial({sliceZone:f})]),g={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&p.toSM(n[0],n[1]);return{key:e,value:Object.entries(t).reduce((e,t)=>{let[n,o]=t;switch(o.type){case"Choice":case"Slices":return e;case"Group":return[...e,{key:n,value:s.Fl.toSM(o)}];default:return[...e,{key:n,value:o}]}},[]),...o?{sliceZone:o}:{}}},fromSM:e=>e.value.reduce((e,t)=>{let{key:n,value:o}=t;return"Group"===o.type?[...e,[n,s.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,p.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},y={fromSM:e=>"Group"===e.type?s.Fl.fromSM(e):e},v=u.exact(u.intersection([u.type({id:u.string,label:i.StringOrNull,format:(0,l.X)(u.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(u.boolean,!0),tabs:u.array(m),status:(0,l.X)(u.boolean,!0)}),u.partial({hash:u.string})])),b={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return g.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(v.decode({...e,tabs:t}))},fromSM:e=>(0,a.getOrElseW)(()=>{throw Error("Error while parsing an SM custom type.")})(o.CustomType.decode({...e,json:e.tabs.reduce((e,t)=>({...e,[t.key]:g.fromSM(t)}),{})}))}},26534:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var o=n(88866),i=n(32521);let a=i.array(i.type({key:i.string,value:o.NestableWidget}))},2439:function(e,t,n){"use strict";n.d(t,{Fl:function(){return h},GT:function(){return p}});var o=n(88866),i=n(59050),a=n(10082),u=n(45974),l=n(32521),s=n(26534);let c=e=>l.exact(l.partial({label:a.StringOrNull,repeat:l.boolean,fields:e})),d=e=>l.exact(l.intersection([l.type({type:l.literal("Group")}),l.partial({fieldset:a.StringOrNull,icon:l.string,description:l.string,config:c(e)})])),f=d(s.F),p=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,f])}))),h={fromSM(e){let t=(()=>{var t;if(null===(t=e.config)||void 0===t?void 0:t.fields)return e.config.fields.reduce((e,t)=>{let{key:n,value:o}=t;return o.type===i.GroupFieldType?{...e,[n]:h.fromSM(o)}:{...e,[n]:o}},{})})();return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(i.Group.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))},toSM(e){let t=(()=>{var t,n;if(null===(t=e.config)||void 0===t?void 0:t.fields)return Object.entries((null===(n=e.config)||void 0===n?void 0:n.fields)||{}).map(e=>{let[t,n]=e;return n.type===i.GroupFieldType?{key:t,value:h.toSM(n)}:{key:t,value:n}})})();return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(p.decode({...e,config:{...e.config,...t?{fields:t}:{}}}))}}},1744:function(e,t,n){"use strict";function o(e){return"local"in e&&"remote"in e}function i(e){return"local"in e}function a(e){return"remote"in e}function u(e){return a(e)&&!i(e)}function l(e){return i(e)?e.local.id:e.remote.id}n.d(t,{TG:function(){return i},n5:function(){return l},qt:function(){return o},wU:function(){return a},yp:function(){return u}})},5274:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(1744),u=n(69378),l=n.n(u);let s=e=>({...e,variations:e.variations.map(e=>({...e,imageUrl:void 0}))});(o=i||(i={})).New="NEW",o.Modified="MODIFIED",o.Synced="SYNCED",o.Deleted="DELETED",o.Unknown="UNKNOWN";let c=e=>"variations"in e.local&&"variations"in e.remote;function d(e,t){return e.reduce((e,n)=>{var o,u,d;let{status:f}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(u=o.remote,d=o.localScreenshots,u.variations.every(e=>{var t;let n=null===(t=d[e.id])||void 0===t?void 0:t.hash,o=e.imageUrl;return void 0===n?void 0===o:null==o?void 0:o.includes(n)})&&l()(s(o.local),s(o.remote)))?i.Synced:i.Modified:l()(o.local,o.remote)?i.Synced:i.Modified,model:o}:{status:"NEW",model:o}:{status:"DELETED",model:o}:{status:"UNKNOWN",model:o});return{...e,[(0,a.TG)(n)?n.local.id:n.remote.id]:f}},{})}},80410:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},bB:function(){return m},id:function(){return g}});var o,i,a=n(88866),u=n(45974),l=n(32521),s=n(26534),c=n(2439);(o=i||(i={})).Primary="primary",o.Items="items";let d=l.union([c.GT,a.NestableWidget]),f=l.array(l.type({key:l.string,value:d})),p=l.intersection([l.type({id:l.string,name:l.string,description:l.string,docURL:l.string,version:l.string}),l.partial({imageUrl:l.string,primary:f,items:s.F,display:l.string})]),h=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(p)}),l.partial({description:l.string})]),m={fromSM(e){var t,n;return(0,u.getOrElseW)(()=>{throw Error("Error while parsing an SM slice variation.")})(a.Variation.decode({...e,primary:null===(t=e.primary)||void 0===t?void 0:t.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o.type===a.GroupFieldType?c.Fl.fromSM(o):o}},{}),items:null===(n=e.items)||void 0===n?void 0:n.reduce((e,t)=>{let{key:n,value:o}=t;return{...e,[n]:o}},{})}))},toSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(p.decode({...e,imageUrl:"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"===e.imageUrl?void 0:e.imageUrl,primary:Object.entries(e.primary||{}).map(e=>{let[t,n]=e;return{key:t,value:n.type===a.GroupFieldType?c.Fl.toSM(n):n}}),items:Object.entries(e.items||{}).map(e=>{let[t,n]=e;return{key:t,value:n}})}))},g={fromSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(m.fromSM)})),toSM:e=>(0,u.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(h.decode({...e,variations:e.variations.map(m.toSM)}))}},75665:function(e,t,n){"use strict";n.d(t,{$:function(){return o},d:function(){return i}});let o=(e,t)=>t?{[e.id]:{local:e,remote:t}}:{[e.id]:{local:e}},i=(e,t)=>{let n={};return e.forEach(e=>n[e.id]={local:e}),t.forEach(e=>n[e.id]={...n[e.id],remote:e}),n}},29040:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});let o=(e,t)=>{let n={};return e.flatMap(e=>e.components).forEach(e=>{n[e.model.id]={local:e.model,localScreenshots:e.screenshots}}),t.forEach(e=>{n[e.id]={...n[e.id],remote:e}}),Object.values(n)}},99510:function(e,t,n){"use strict";n.d(t,{MP:function(){return a},T3:function(){return l},Ti:function(){return i},lV:function(){return s}});let o=/-(\w)/g;function i(e){return e.includes("-")?"['".concat(e,"']"):".".concat(e)}function a(e){return e?(e=e.replace(/_/g,"-").replace(o,(e,t)=>t?t.toUpperCase():""))[0].toUpperCase()+e.slice(1):""}let u=/\B([A-Z])/g;function l(e){return e.replace(u,"-$1").toLowerCase().replace(/-/g,"_")}let s=e=>e.trim().replace(/ /g,"_").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},70647:function(e,t,n){"use strict";let o;function i(e,t,n){e.setUint32(t,Math.floor(n/4294967296)),e.setUint32(t+4,n)}function a(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}n.d(t,{managerClient:function(){return Q}});var u,l,s,c,d=n(34406),f=(void 0===d||(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function p(e){for(var t=e.length,n=0,o=0;o<t;){var i=e.charCodeAt(o++);if((4294967168&i)==0){n++;continue}if((4294965248&i)==0)n+=2;else{if(i>=55296&&i<=56319&&o<t){var a=e.charCodeAt(o);(64512&a)==56320&&(++o,i=((1023&i)<<10)+(1023&a)+65536)}(4294901760&i)==0?n+=3:n+=4}}return n}var h=f?new TextEncoder:void 0,m=f?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,g=(null==h?void 0:h.encodeInto)?function(e,t,n){h.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(h.encode(e),n)};function y(e,t,n){for(var o=t,i=o+n,a=[],u="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var s=63&e[o++];a.push((31&l)<<6|s)}else if((240&l)==224){var s=63&e[o++],c=63&e[o++];a.push((31&l)<<12|s<<6|c)}else if((248&l)==240){var s=63&e[o++],c=63&e[o++],d=(7&l)<<18|s<<12|c<<6|63&e[o++];d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d)}else a.push(l);a.length>=4096&&(u+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(u+=String.fromCharCode.apply(String,a)),u}var v=f?new TextDecoder:null,b=f?void 0!==d&&(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_DECODER)!=="force"?200:0:4294967295,A=function(e,t){this.type=e,this.data=t},x=globalThis&&globalThis.__extends||(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(e){function t(n){var o=e.call(this,n)||this;return Object.setPrototypeOf(o,Object.create(t.prototype)),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:t.name}),o}return x(t,e),t}(Error),_={type:-1,encode:function(e){var t,n,o,a;return e instanceof Date?function(e){var t=e.sec,n=e.nsec;if(t>=0&&n>=0&&t<=17179869183){if(0===n&&t<=4294967295){var o=new Uint8Array(4),a=new DataView(o.buffer);return a.setUint32(0,t),o}var u=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&u),a.setUint32(4,4294967295&t),o}var o=new Uint8Array(12),a=new DataView(o.buffer);return a.setUint32(0,n),i(a,4,t),o}((n=Math.floor((t=e.getTime())/1e3),a=Math.floor((o=(t-1e3*n)*1e6)/1e9),{sec:n+a,nsec:o-1e9*a})):null},decode:function(e){var t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:var n=t.getUint32(0),o=0;return{sec:n,nsec:0};case 8:var i=t.getUint32(0),n=(3&i)*4294967296+t.getUint32(4),o=i>>>2;return{sec:n,nsec:o};case 12:var n=a(t,4),o=t.getUint32(0);return{sec:n,nsec:o};default:throw new w("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},S=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(_)}return e.prototype.register=function(e){var t=e.type,n=e.encode,o=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=o;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=o}},e.prototype.tryToEncode=function(e,t){for(var n=0;n<this.builtInEncoders.length;n++){var o=this.builtInEncoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=-1-n;return new A(a,i)}}}for(var n=0;n<this.encoders.length;n++){var o=this.encoders[n];if(null!=o){var i=o(e,t);if(null!=i){var a=n;return new A(a,i)}}}return e instanceof A?e:null},e.prototype.decode=function(e,t,n){var o=t<0?this.builtInDecoders[-1-t]:this.decoders[t];return o?o(e,t,n):new A(t,e)},e.defaultCodec=new e,e}();function C(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Uint8Array.from(e)}var k=function(){function e(e,t,n,o,i,a,u,l){void 0===e&&(e=S.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===o&&(o=2048),void 0===i&&(i=!1),void 0===a&&(a=!1),void 0===u&&(u=!1),void 0===l&&(l=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=o,this.sortKeys=i,this.forceFloat32=a,this.ignoreUndefined=u,this.forceIntegerToFloat=l,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength<t&&this.resizeBuffer(2*t)},e.prototype.resizeBuffer=function(e){var t=new ArrayBuffer(e),n=new Uint8Array(t),o=new DataView(t);n.set(this.bytes),this.view=o,this.bytes=n},e.prototype.encodeNil=function(){this.writeU8(192)},e.prototype.encodeBoolean=function(e){!1===e?this.writeU8(194):this.writeU8(195)},e.prototype.encodeNumber=function(e){Number.isSafeInteger(e)&&!this.forceIntegerToFloat?e>=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw Error("Too long string: ".concat(e," bytes in UTF-8"))},e.prototype.encodeString=function(e){if(e.length>m){var t=p(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),g(e,this.bytes,this.pos),this.pos+=t}else{var t=p(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var u=e.charCodeAt(a++);if((4294967168&u)==0){t[i++]=u;continue}if((4294965248&u)==0)t[i++]=u>>6&31|192;else{if(u>=55296&&u<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,u=((1023&u)<<10)+(1023&l)+65536)}(4294901760&u)==0?t[i++]=u>>12&15|224:(t[i++]=u>>18&7|240,t[i++]=u>>12&63|128),t[i++]=u>>6&63|128}t[i++]=63&u|128}}(e,this.bytes,this.pos),this.pos+=t}},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if("object"==typeof e)this.encodeMap(e,t);else throw Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else if(t<4294967296)this.writeU8(198),this.writeU32(t);else throw Error("Too large binary: ".concat(t));var n=C(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw Error("Too large array: ".concat(n));for(var o=0;o<e.length;o++){var i=e[o];this.doEncode(i,t+1)}},e.prototype.countWithoutUndefined=function(e,t){for(var n=0,o=0;o<t.length;o++)void 0!==e[t[o]]&&n++;return n},e.prototype.encodeMap=function(e,t){var n=Object.keys(e);this.sortKeys&&n.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,n):n.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else if(o<4294967296)this.writeU8(223),this.writeU32(o);else throw Error("Too large map object: ".concat(o));for(var i=0;i<n.length;i++){var a=n[i],u=e[a];this.ignoreUndefined&&void 0===u||(this.encodeString(a),this.doEncode(u,t+1))}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else if(t<4294967296)this.writeU8(201),this.writeU32(t);else throw Error("Too large extension object: ".concat(t));this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){var t,n;this.ensureBufferSizeToWrite(8),t=this.view,n=this.pos,t.setUint32(n,e/4294967296),t.setUint32(n+4,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),i(this.view,this.pos,e),this.pos+=8},e}();function E(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var T=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n<this.maxKeyLength;n++)this.caches.push([])}return e.prototype.canBeCached=function(e){return e>0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){var o=this.caches[n-1];n:for(var i=0;i<o.length;i++){for(var a=o[i],u=a.bytes,l=0;l<n;l++)if(u[l]!==e[t+l])continue n;return a.str}return null},e.prototype.store=function(e,t){var n=this.caches[e.length-1],o={bytes:e,str:t};n.length>=this.maxLengthPerKey?n[Math.random()*n.length|0]=o:n.push(o)},e.prototype.decode=function(e,t,n){var o=this.find(e,t,n);if(null!=o)return this.hit++,o;this.miss++;var i=y(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),O=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function u(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,l)}s((o=o.apply(e,t||[])).next())})},I=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,o=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},R=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,i){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,i,(t=e[n](t)).done,t.value)})}}},M=globalThis&&globalThis.__await||function(e){return this instanceof M?(this.v=e,this):new M(e)},j=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),a=[];return o={},u("next"),u("throw"),u("return"),o[Symbol.asyncIterator]=function(){return this},o;function u(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){a.push([e,t,n,o])>1||l(e,t)})})}function l(e,t){try{var n;(n=i[e](t)).value instanceof M?Promise.resolve(n.value.v).then(s,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function s(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},D=function(e){var t=typeof e;return"string"===t||"number"===t},P=new DataView(new ArrayBuffer(0)),F=new Uint8Array(P.buffer),L=function(){try{P.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),N=new L("Insufficient data"),U=new T,B=function(){function e(e,t,n,o,i,a,u,l){void 0===e&&(e=S.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=4294967295),void 0===o&&(o=4294967295),void 0===i&&(i=4294967295),void 0===a&&(a=4294967295),void 0===u&&(u=4294967295),void 0===l&&(l=U),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=u,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=P,this.bytes=F,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=C(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=C(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=C(e),o=new Uint8Array(t.length+n.length);o.set(t),o.set(n,t.length),this.setBuffer(o)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return I(this,function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:if(!this.hasRemaining(1))return[3,3];return[4,this.doDecodeSync()];case 2:return t.sent(),[3,1];case 3:return[2]}})},e.prototype.decodeAsync=function(e){var t,n,o,i;return O(this,void 0,void 0,function(){var a,u,l,s,c,d,f;return I(this,function(p){switch(p.label){case 0:a=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),t=R(e),p.label=2;case 2:return[4,t.next()];case 3:if((n=p.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{u=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof L))throw e}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:p.sent()},[3,12];case 7:if(p.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(o)throw o.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,u]}throw s=this,c=s.headByte,d=s.pos,f=s.totalPos,RangeError("Insufficient data in parsing ".concat(E(c)," at ").concat(f," (").concat(d," in the current buffer)"))}})})},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return j(this,arguments,function(){var n,o,i,a,u,l,s,c;return I(this,function(d){switch(d.label){case 0:n=t,o=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),i=R(e),d.label=2;case 2:return[4,M(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(u=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(u),n&&(o=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,M(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:if(d.sent(),0==--o)return[3,8];return[3,5];case 8:return[3,10];case 9:if(!((l=d.sent())instanceof L))throw l;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return s={error:d.sent()},[3,19];case 14:if(d.trys.push([14,,17,18]),!(a&&!a.done&&(c=i.return)))return[3,16];return[4,M(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(s)throw s.error;return[7];case 18:return[7];case 19:return[2]}})})},e.prototype.doDecodeSync=function(){r:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192){if(e<128)t=e;else if(e<144){var n=e-128;if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(e<160){var n=e-144;if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else{var o=e-160;t=this.decodeUtf8String(o,0)}}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e){var o=this.lookU8();t=this.decodeUtf8String(o,1)}else if(218===e){var o=this.lookU16();t=this.decodeUtf8String(o,2)}else if(219===e){var o=this.lookU32();t=this.decodeUtf8String(o,4)}else if(220===e){var n=this.readU16();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(221===e){var n=this.readU32();if(0!==n){this.pushArrayState(n),this.complete();continue}t=[]}else if(222===e){var n=this.readU16();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(223===e){var n=this.readU32();if(0!==n){this.pushMapState(n),this.complete();continue}t={}}else if(196===e){var n=this.lookU8();t=this.decodeBinary(n,1)}else if(197===e){var n=this.lookU16();t=this.decodeBinary(n,2)}else if(198===e){var n=this.lookU32();t=this.decodeBinary(n,4)}else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e){var n=this.lookU8();t=this.decodeExtension(n,1)}else if(200===e){var n=this.lookU16();t=this.decodeExtension(n,2)}else if(201===e){var n=this.lookU32();t=this.decodeExtension(n,4)}else throw new w("Unrecognized type byte: ".concat(E(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(0===a.type){if(a.array[a.position]=t,a.position++,a.position===a.size)i.pop(),t=a.array;else continue r}else if(1===a.type){if(!D(t))throw new w("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new w("The key __proto__ is not allowed");a.key=t,a.type=2;continue r}else if(a.map[a.key]=t,a.readCount++,a.readCount===a.size)i.pop(),t=a.map;else{a.key=null,a.type=1;continue r}}return t}},e.prototype.readHeadByte=function(){return -1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new w("Unrecognized array type byte: ".concat(E(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new w("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new w("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){if(e>this.maxStrLength)throw new w("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw N;var n,o,i,a=this.pos+t;return this.stateIsMapKey()&&(null===(o=this.keyDecoder)||void 0===o?void 0:o.canBeCached(e))?i=this.keyDecoder.decode(this.bytes,a,e):e>b?(n=this.bytes.subarray(a,a+e),i=v.decode(n)):i=y(this.bytes,a,e),this.pos+=t+e,i},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new w("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw N;var n=this.pos+t,o=this.bytes.subarray(n,n+e);return this.pos+=t+e,o},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new w("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),o=this.decodeBinary(e,t+1);return this.extensionCodec.decode(o,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=a(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),W={};let z=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,V=e=>z(e)&&"R19Error"===e.name&&"procedurePath"in e,K=e=>{if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await $(e[o],t);return n}if(K(e)){let n={};for(let o in e)n[o]=await $(e[o],t);return n}return await t(e)};var H=Object.defineProperty,q=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t,n)=>(q(e,"symbol"!=typeof t?t+"":t,n),n);class G extends Error{constructor(e,t={}){super(),Z(this,"procedurePath"),Z(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,G),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let Y=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>Y(e,[...t,o.toString()])}),Q=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return Y(async(n,o)=>{var i,a,u,l;let s=await $(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new G("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:s},new k((a={ignoreUndefined:!0}).extensionCodec,a.context,a.maxDepth,a.initialBufferSize,a.sortKeys,a.forceFloat32,a.ignoreUndefined,a.forceIntegerToFloat).encodeSharedRef(i)),d=await t(e.serverURL,{method:"POST",body:c,headers:{"Content-Type":"application/msgpack"}}),f=(u=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=W),new B(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(u));if(!("error"in f))return $(f.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=f.error;if(V(e)){let t=new G(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(z(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new G("An unexpected response was received from the RPC server.",{procedurePath:n,procedureArgs:o,cause:f})}})})({serverURL:(o={serverURL:"/_manager"}).serverURL,fetch:o.fetch})},40572:function(e,t,n){"use strict";n.d(t,{Vo:function(){return A},t7:function(){return p},Hm:function(){return m},jP:function(){return h},hr:function(){return f},W6:function(){return y},YS:function(){return v},Ch:function(){return g},Jk:function(){return b}});var o=n(17620),i=n.n(o),a=n(32145),u=n(1744),l=n(75665);let s=(e,t)=>void 0===e?e:{...e,tabs:e.tabs.map(e=>{var n;return e.sliceZone?{...e,sliceZone:{...e.sliceZone,value:null===(n=e.sliceZone)||void 0===n?void 0:n.value.filter(e=>e.key!==t)}}:e})};var c=n(79546),d=n(68916);let f=(0,a.createAction)("CUSTOM_TYPE/SAVE_SUCCESS")(),p=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),h=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),g=e=>Object.values(e.availableCustomTypes),y=e=>Object.keys(e.availableCustomTypes),v=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),b=(e,t)=>e.availableCustomTypes[t],A=(e,t)=>{if(!e)return null;switch(t.type){case(0,a.getType)(c.U1):return{...(0,l.d)(t.payload.localCustomTypes,t.payload.remoteCustomTypes)};case(0,a.getType)(p):{let n=(0,l.$)(t.payload.newCustomType);return{...e,...n}}case(0,a.getType)(f):{let n=t.payload.newCustomType;return{...e,[n.id]:{...e[n.id],local:n}}}case(0,a.getType)(h):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(m):{let n=e[t.payload.customTypeId];if((0,u.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,u.TG)(n))return i()(e,t.payload.customTypeId);return e}case(0,a.getType)(d.xg):{let n=t.payload.sliceId;return Object.entries(e).map(e=>{let[t,o]=e;return(0,u.TG)(o)?[t,{...o,local:s(o.local,n)}]:[t,o]}).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})}default:return e}}},79546:function(e,t,n){"use strict";n.d(t,{Ak:function(){return f},Lq:function(){return c},MY:function(){return s},TA:function(){return p},U1:function(){return i},gZ:function(){return d},wW:function(){return h},x0:function(){return l},zj:function(){return u}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),u=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,s=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,f=e=>e.environment.packageManager,p=e=>e.userContext.authStatus,h=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(i):return{...e,...t.payload.env};case(0,o.getType)(a):return{...e,manifest:{...e.manifest,localSliceSimulatorURL:t.payload.value}};default:return e}}},23798:function(e,t,n){"use strict";n.d(t,{CK:function(){return c},HP:function(){return s},U:function(){return f},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),u=n(93017);let l={...i()(u.z,()=>!1)},s=(0,a.createAction)("LOADING/START")(),c=(0,a.createAction)("LOADING/STOP")(),d=(e,t)=>e.loading[t],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(s):return{...e,[t.payload.loadingKey]:!0};case(0,a.getType)(c):return{...e,[t.payload.loadingKey]:!1};default:return e}}},93017:function(e,t,n){"use strict";var o,i;n.d(t,{z:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.REVIEW="REVIEW"},27078:function(e,t,n){"use strict";n.d(t,{XV:function(){return f},ZR:function(){return c},gP:function(){return d},re:function(){return s}});var o=n(34519),i=n.n(o),a=n(32145),u=n(46962);let l={...i()(u.q,()=>!1)},s=(0,a.createAction)("MODAL/CLOSE")(),c=(0,a.createAction)("MODAL/OPEN")(),d=(e,t)=>e.modal[t],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,a.getType)(s):return l;case(0,a.getType)(c):return{...l,[t.payload.modalKey]:!0};default:return e}}},46962:function(e,t,n){"use strict";var o,i;n.d(t,{q:function(){return o}}),(i=o||(o={})).LOGIN="LOGIN",i.SCREENSHOT_PREVIEW="SCREENSHOT_PREVIEW",i.SCREENSHOTS="SCREENSHOTS"},68916:function(e,t,n){"use strict";n.d(t,{Kg:function(){return l},Sd:function(){return p},dS:function(){return u},ek:function(){return d},og:function(){return f},sT:function(){return h},xB:function(){return g},xC:function(){return m},xg:function(){return s},zy:function(){return c}});var o=n(32145),i=n(29040),a=n(79546);let u=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),s=(0,o.createAction)("SLICES/DELETE_SUCCESS")(),c=(0,o.createAction)("SLICE/UPDATE_SUCCESS")(),d=(0,o.createAction)("SLICE/GENERATE_CUSTOM_SCREENSHOT_SUCCESS")(),f=(0,o.createAction)("SLICE/UPDATE_MOCK_SUCCESS")(),p=e=>e.slices.libraries,h=e=>e.slices.remoteSlices,m=e=>(0,i.R)(e.slices.libraries,h(e)),g=(e,t)=>{if(!e)return null;switch(t.type){case(0,o.getType)(a.U1):return{...e,libraries:t.payload.libraries,remoteSlices:t.payload.remoteSlices};case(0,o.getType)(u):return{...e,libraries:t.payload.libraries};case(0,o.getType)(l):{let{libName:n,renamedSlice:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.map(e=>e.model.id!==o.id?e:{...e,model:o})});return{...e,libraries:i}}case(0,o.getType)(c):{let n=t.payload.component,o=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id!==n.model.id?e:n)});return{...e,libraries:o}}case(0,o.getType)(d):{let{component:n,screenshot:o,variationId:i}=t.payload,a=e.libraries.map(e=>e.name!==n.from?e:{...e,components:e.components.map(e=>e.model.id===n.model.id?{...n,screenshots:{...n.screenshots,[i]:o}}:e)});return{...e,libraries:a}}case(0,o.getType)(s):{let{libName:n,sliceId:o}=t.payload,i=e.libraries.map(e=>e.name!==n?e:{...e,components:e.components.filter(e=>e.model.id!==o)});return{...e,libraries:i}}case(0,o.getType)(f):{let{libraryID:n,sliceID:o,mocks:i}=t.payload,a=e.libraries.map(e=>{if(e.name!==n)return e;let t=e.components.map(e=>e.model.id!==o?e:{...e,mocks:i});return{...e,components:t}});return{...e,libraries:a}}default:return e}}},41067:function(e,t,n){"use strict";var o=n(56580),i=n(95799),a=n(40572),u=n(79546),l=n(23798),s=n(93017),c=n(27078),d=n(46962),f=n(68916),p=n(17467);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,u.U1)({env:t.env,remoteCustomTypes:t.remoteCustomTypes,localCustomTypes:t.customTypes,libraries:t.libraries,remoteSlices:t.remoteSlices,clientError:t.clientError}))},openScreenshotsModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOTS})),openLoginModal:()=>e((0,c.ZR)({modalKey:d.q.LOGIN})),startLoadingLogin:()=>e((0,l.HP)({loadingKey:s.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:s.z.LOGIN})),stopLoadingReview:()=>e((0,l.CK)({loadingKey:s.z.REVIEW})),startLoadingReview:()=>e((0,l.HP)({loadingKey:s.z.REVIEW})),deleteCustomTypeSuccess:t=>e((0,a.Hm)({customTypeId:t})),renameCustomTypeSuccess:t=>e((0,a.jP)({renamedCustomType:i.Dc.toSM(t)})),saveCustomTypeSuccess:t=>e((0,a.hr)({newCustomType:i.Dc.toSM(t)})),saveSliceSuccess:t=>{e((0,f.zy)({component:t}))},saveSliceCustomScreenshotSuccess:(t,n,o)=>{e((0,f.ek)({variationId:t,screenshot:n,component:o}))},createSliceSuccess:t=>e((0,f.dS)({libraries:t})),renameSliceSuccess:(t,n)=>e((0,f.Kg)({renamedSlice:n,libName:t})),deleteSliceSuccess:(t,n)=>e((0,f.xg)({sliceId:t,libName:n})),sendAReview:t=>e((0,p.dR)({reviewType:t})),skipReview:t=>e((0,p.jv)({reviewType:t})),setSeenSimulatorToolTip:()=>e((0,p.kd)()),setSeenChangesToolTip:()=>e((0,p.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,p.po)()),createCustomTypeSuccess:t=>e((0,a.t7)({newCustomType:i.Dc.toSM(t)})),updateSliceMockSuccess:t=>e((0,f.og)(t))}}},17467:function(e,t,n){"use strict";n.d(t,{Eq:function(){return p},bv:function(){return h},dR:function(){return l},e4:function(){return g},jv:function(){return s},kd:function(){return c},mw:function(){return d},ov:function(){return m},po:function(){return f}});var o=n(32145),i=n(58161),a=n(79546);let u={userReview:{onboarding:!1,advancedRepository:!1},hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/SEND_REVIEW")(),s=(0,o.createAction)("USER_CONTEXT/SKIP_REVIEW")(),c=(0,o.createAction)("USER_CONTEXT/VIEW_SIMULATOR_TOOL_TIP")(),d=(0,o.createAction)("USER_CONTEXT/VIEW_CHANGES_TOOL_TIP")(),f=(0,o.createAction)("USER_CONTEXT/CHANGES_PUSH_SUCCESS")(),p=e=>{var t,n;return null!==(n=e.userContext.userReview)&&void 0!==n?n:{onboarding:null!==(t=e.userContext.hasSendAReview)&&void 0!==t&&t,advancedRepository:!1}},h=e=>e.userContext.hasSeenSimulatorToolTip||!1,m=e=>e.userContext.lastSyncChange,g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):case(0,o.getType)(s):return{...e,userReview:{...e.userReview,[t.payload.reviewType]:!0}};case(0,o.getType)(c):return{...e,hasSeenSimulatorToolTip:!0};case(0,o.getType)(d):return{...e,hasSeenChangesToolTip:!0};case(0,o.getType)(a.U1):return{...e,authStatus:y(t.payload.clientError)};case(0,o.getType)(f):return{...e,lastSyncChange:Date.now()};default:return e}},y=e=>{switch(null==e?void 0:e.status){case void 0:return i.t.AUTHORIZED;case 403:return i.t.UNAUTHORIZED;case 401:return i.t.FORBIDDEN;default:return i.t.UNKNOWN}}},58161:function(e,t,n){"use strict";var o,i;n.d(t,{t:function(){return o}}),(i=o||(o={})).AUTHORIZED="authorized",i.UNAUTHORIZED="unauthorized",i.FORBIDDEN="forbidden",i.UNKNOWN="unknown"},91853:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tN}});var o,i,a,u,l,s,c,d,f,p,h,m,g=n(52322);n(65497),n(99400),n(21412),n(33916),n(47125),n(31704),n(83658),n(49345),n(70978),n(24193),n(53498),n(59289),n(90330),n(54303);var y=n(33760),v=function(){return(v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},b={fromJS:function(e){return e},getIn:function(e,t){for(var n=e,o=0;o<t.length&&n;++o)n=n[t[o]];return n},merge:function(e,t){return v(v({},e),t)}},A=n(2784),x=n(56580),w=n(5632),_=n.n(w),S="@@router/LOCATION_CHANGE",C=function(e){return{type:S,payload:{location:e}}},k=n(38398),E=function(e){var t=(0,k.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},T=n(28316),O=function(e,t){var n={set:e.router.set};return e.router.set=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.set?new Promise(function(i,a){T.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(C(E(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},I=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:E(e)})}};I(b);var R=(p=b.merge,h=I(b)(),function(e,t){return(void 0===e&&(e=h),t.type===S)?p(e,t.payload):e}),M=(m=b.getIn,function(e){var t=e.Router||_(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,A.useRef)(0),u=(0,A.useRef)(!0),l=(0,A.useRef)(!1);function s(){u.current=--a.current<=0}function c(){u.current=++a.current<=0}return(0,A.useEffect)(function(){return i.subscribe(function(){if(u.current){var e=m(i.getState(),[o,"location"]),n=e.pathname,a=e.search,s=e.hash,c=e.href,d=E(t.asPath),f=d.pathname,p=d.search,h=d.hash;if(f!==n||p!==a||s!==h){var g="".concat(n).concat(a).concat(s);l.current=!0,t.replace(c,g)}}})},[t,i,o]),(0,A.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==m(i.getState(),[o,"location"]).href&&i.dispatch(C(E(e))),s()}return t.ready(function(){e=O(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",s),t.events.on("routeChangeComplete",n),t.events.on("hashChangeStart",c),t.events.on("hashChangeComplete",n)}),function(){e(),t.events.off("routeChangeStart",c),t.events.off("routeChangeError",s),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),A.createElement(A.Fragment,{},e.children)}),j=n(25237),D=n.n(j),P=n(97729),F=n.n(P);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z=function(e){var t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var e,t,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return o=(e=(t=N(n)).call.apply(t,[this].concat(a)))&&("object"===L(e)||"function"==typeof e)?e:U(this),W(U(o),"state",{bootstrapped:!1}),W(U(o),"_unsubscribe",void 0),W(U(o),"handlePersistorState",function(){o.props.persistor.getState().bootstrapped&&(o.props.onBeforeLift?Promise.resolve(o.props.onBeforeLift()).finally(function(){return o.setState({bootstrapped:!0})}):o.setState({bootstrapped:!0}),o._unsubscribe&&o._unsubscribe())}),o}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(A.PureComponent);W(z,"defaultProps",{children:null,loading:null});var V=n(59326),K=n(62273),$=n(28165);function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var q=function(e){return"--theme-ui-"+e.replace("-__default","")},Z=function(e){return"var("+q(e)+")"},G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},Y=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),Q=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],u=G(n,i);if(a&&"object"==typeof a){o[i]=e(a,u);continue}if(Y.has(i)){o[i]=a;continue}o[i]=Z(u)}return o},J=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=G(t,i),u=n[i];u&&"object"==typeof u?o=H({},o,e(a,u)):o[q(a)]=u}return o},X=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,u=e.rawColors||e.colors;if(!u||!1===a)return{};if(!1===n)return(0,K.iv)({color:"text",bg:"background"})(e);var l=u.modes||{},s=ee(u,l);if(i){var c=l[i];c||i!==o||(c=u),c?s["@media print"]=J("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:u,printColorModeName:i})}var d=function(e){return Z("colors-"+e)};return(0,K.iv)(H({},s,{color:d("text"),bg:d("background")}))(e)};function ee(e,t){var n=J("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=J("colors",t[e])}),n}var et="theme-ui-color-mode",en="(prefers-color-scheme: dark)",er={get:function(){try{return window.localStorage.getItem(et)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}},set:function(e){try{window.localStorage.setItem(et,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},eo=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(en).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},ei="undefined"==typeof window?function(){}:A.useLayoutEffect,ea=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,u=i.useColorSchemeMediaQuery,l=i.useLocalStorage,s=(0,A.useState)(function(){return!1!==u&&eo()||a}),c=s[0],d=s[1];ei(function(){var e=!1!==l&&er.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==u&&e&&e!==c&&(c=e,d(e))},[]),(0,A.useEffect)(function(){c&&!1!==l&&er.set(c)},[c,l]);var f=(0,A.useCallback)(function(){d(eo()||a)},[a]);(0,A.useEffect)(function(){if("system"===u&&window.matchMedia){var e=window.matchMedia(en);"function"==typeof e.addEventListener?e.addEventListener("change",f):"function"==typeof e.addListener&&e.addListener(f)}return function(){if("system"===u&&window.matchMedia){var e=window.matchMedia(en);"function"==typeof e.removeEventListener?e.removeEventListener("change",f):"function"==typeof e.removeListener&&e.removeListener(f)}}},[u,f]);var p=el({colorMode:c,outerTheme:o}),h=H({},t,{theme:p,colorMode:c,setColorMode:d});return A.createElement(V.vg,{context:h},A.createElement(es,{theme:p}),n)},eu=function(e){var t=H({},e);return delete t.modes,t};function el(e){var t=e.outerTheme,n=e.colorMode;return(0,A.useMemo)(function(){var e=H({},t),o=(0,K.U2)(e,"colors.modes",{}),i=(0,K.U2)(o,n,{});n&&(e.colors=H({},e.colors,i));var a=t.config||t,u=a.useCustomProperties,l=a.initialColorModeName,s=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==u){var d=null!=e.rawColors,f=e.colors||{};if(d)!function e(t,n){for(var o=0,i=Object.entries(t);o<i.length;o++){var a=i[o],u=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var s=H({},n[u]);e(l,s),n[u]=s}}else n[u]=l}}(f,c=H({},c)),c.modes&&(c.modes[s]=eu(c)),e.rawColors=c;else if("modes"in c){var p,h=H(((p={})[s]=eu(c),p),c.modes);e.rawColors=H({},f,{modes:h})}else e.rawColors=f;e.colors=Q(eu(c),"colors")}return e},[n,t])}function es(e){var t=e.theme;return(0,V.tZ)($.xB,{styles:function(){return{html:X(t)}}})}function ec(e){var t,n=e.outerCtx,o=e.children,i=el({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,A.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),u=a[0],l=a[1];ei(function(){l(!1)},[]);var s=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,A.useMemo)(function(){if(!1===c)return{};var e=s||{};return(0,K.iv)(ee(e,e.modes||{}))(i)},[i,s,c]);return A.createElement(V.vg,{context:H({},n,{theme:i})},(0,V.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(u),suppressHydrationWarning:!0,css:d,children:o}))}var ed=function(e){var t=e.children,n=(0,V.B7)();return"function"!=typeof n.setColorMode?A.createElement(ea,{outerCtx:n},t):A.createElement(ec,{outerCtx:n},t)},ef=function(){return(0,V.tZ)($.xB,{styles:function(e){if(!1===(e.config||e).useRootStyles||e.styles&&!e.styles.root)return null;var t,n=(null==(t=e.config)?void 0:t.useBorderBox)===!1?void 0:"border-box";return(0,K.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},ep=function(e){var t=e.theme,n=e.children,o=(0,V.B7)()===V.yo;return A.createElement(V.f6,{theme:t},A.createElement(ed,null,o&&A.createElement(ef,null),n))},eh=n(93188),em=n(30988),eg=n(41791),ey=n(4315);let ev=(0,A.createContext)(void 0),eb=e=>{let{children:t}=e,{eligible:n}=(0,eg.z)(),[o,i]=(0,ey.V)("isInAppGuideOpen",!0),a=(0,A.useMemo)(()=>n?{isInAppGuideOpen:!1,setIsInAppGuideOpen:()=>void 0}:{isInAppGuideOpen:o,setIsInAppGuideOpen:i},[o,i,n]);return(0,g.jsx)(ev.Provider,{value:a,children:t})},eA=()=>{let e=(0,A.useContext)(ev);if(void 0===e)throw Error("useInAppGuide must be used within an InAppGuideProvider");return e},ex=e=>(0,g.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,g.jsx)("path",{d:"M16 8C15.9847 7.44998 15.8169 6.91443 15.5147 6.45381C15.2133 5.99404 14.7893 5.62622 14.2903 5.39293C14.4802 4.87612 14.5202 4.31673 14.4095 3.77778C14.298 3.23797 14.0375 2.74074 13.6586 2.34142C13.2584 1.96254 12.762 1.70285 12.2222 1.59046C11.6833 1.47978 11.1239 1.5198 10.6071 1.70966C10.3746 1.20988 10.0077 0.785015 9.54704 0.48361C9.08642 0.182205 8.55087 0.0136228 8 0C7.44998 0.0144742 6.91613 0.181354 6.45636 0.48361C5.99659 0.785866 5.63133 1.21073 5.4006 1.70966C4.88293 1.5198 4.32184 1.47808 3.78118 1.59046C3.24053 1.70115 2.74244 1.96169 2.34227 2.34142C1.96339 2.74159 1.70456 3.23968 1.59472 3.77863C1.48404 4.31758 1.52661 4.87697 1.71733 5.39293C1.21754 5.62622 0.791826 5.99319 0.488719 6.45296C0.185611 6.91273 0.0161771 7.44913 0 8C0.0170285 8.55087 0.185611 9.08642 0.488719 9.54704C0.791826 10.0068 1.21754 10.3746 1.71733 10.6071C1.52661 11.123 1.48404 11.6824 1.59472 12.2214C1.70541 12.7612 1.96339 13.2584 2.34142 13.6586C2.74159 14.0358 3.23882 14.2946 3.77778 14.4061C4.31673 14.5185 4.87612 14.4777 5.39293 14.2903C5.62622 14.7893 5.99319 15.2133 6.45381 15.5155C6.91358 15.8169 7.44998 15.9847 8 16C8.55087 15.9864 9.08642 15.8186 9.54704 15.5172C10.0077 15.2158 10.3746 14.7901 10.6071 14.2912C11.1213 14.4947 11.685 14.5432 12.2273 14.4308C12.7688 14.3184 13.2661 14.0502 13.6577 13.6586C14.0494 13.2669 14.3184 12.7697 14.4308 12.2273C14.5432 11.685 14.4947 11.1213 14.2903 10.6071C14.7893 10.3738 15.2133 10.0068 15.5155 9.54619C15.8169 9.08642 15.9847 8.55002 16 8Z",fill:"#6E56CF"})});var ew=n(93451),e_=n.n(ew);let eS=e=>{let{children:t}=e;return(0,g.jsxs)("div",{className:e_().root,children:[(0,g.jsx)(ex,{}),(0,g.jsx)("span",{className:e_().count,children:t})]})};var eC=n(18566),ek=n(70647);async function eE(){let[{errors:e,models:t},{errors:n,models:o}]=await Promise.all([ek.managerClient.customTypes.readAllCustomTypes(void 0),ek.managerClient.slices.readAllSlices()]);if(e.length>0||n.length>0)throw[...e,...n];return(null==t?void 0:t.length)===0&&(null==o?void 0:o.length)===0}let eT=e=>(0,g.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 18.9824C15.9675 18.7377 18.7377 15.9675 18.9824 12.5H15.9691C15.7434 14.3094 14.3094 15.7434 12.5 15.9691V18.9824ZM15.9691 11.5H18.9824C18.7377 8.03251 15.9675 5.2623 12.5 5.01758V8.03095C14.3094 8.25657 15.7434 9.69064 15.9691 11.5ZM11.5 18.9824V15.9691C9.69064 15.7434 8.25657 14.3094 8.03095 12.5H5.01758C5.2623 15.9675 8.03251 18.7377 11.5 18.9824ZM5.01758 11.5H8.03095C8.25657 9.69064 9.69064 8.25657 11.5 8.03095V5.01758C8.03251 5.2623 5.2623 8.03251 5.01758 11.5ZM9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:"#EDEDEF"})});var eO=n(99579);let eI=()=>{let e=(0,eC.QT)(eE,[]),{isInAppGuideOpen:t,setIsInAppGuideOpen:n}=eA(),o=function(){let{repositoryUrl:e}=(0,eO.U)();return{title:"Build a page in 5 minutes",description:"Great, now that you have a page type, let's make it a live page!",steps:[{title:"Add slices to your page type",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/ADD_SLICE.mp4",description:"Use slice templates and add them to your page type."},{title:"Code your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/CODE_SNIP.mp4",description:"If you don't already have a page component, copy-paste the page snippets provided in your page type to create one."},{title:"Push to your Page Builder",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/PUSH.mp4",description:"You have just created some models, but you can't use them yet. First, you must push them to the Page Builder. The Page Builder is where you create content. Go head — push your models."},{title:"Create content",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/WRITE.mp4",description:(0,g.jsxs)(g.Fragment,{children:["Open your"," ",(0,g.jsx)(y.xv,{href:e,underline:!0,children:"Page Builder"}),", create a page, add slices, save, and publish. Then, come back here."]})},{title:"Render your page",videoUrl:"https://res.cloudinary.com/dmtf1daqp/video/upload/v1700213517/IN-APP-GUIDE-SM/PREVIEW.mp4",description:(0,g.jsxs)(g.Fragment,{children:["To render the page, run your project in your terminal and visit the page on localhost (e.g."," ",(0,g.jsx)(y.xv,{component:"code",children:"localhost:3000/example-page"}),")."]})}],successTitle:"Next",successDescription:"Create more slices and then go back to the Page Builder to build out your website."}}(),{eligible:i}=(0,eg.z)(),a=e||i?void 0:(0,g.jsx)(y.xu,{position:"fixed",right:16,bottom:16,children:(0,g.jsx)(y.hU,{color:"purple",icon:(0,g.jsx)(eT,{}),onClick:()=>{n(!t)},radius:"full",variant:"solid"})});return(0,g.jsxs)(y.Vq,{trigger:a,modal:!1,open:t&&!e,onOpenChange:e=>{n(e)},position:"bottomRight",size:{width:360,height:456},children:[(0,g.jsx)(y.fK,{title:o.title}),(0,g.jsx)(y.cZ,{children:(0,g.jsxs)(y.xr,{children:[(0,g.jsx)(y.xu,{flexDirection:"column",padding:{inline:16,block:8},children:(0,g.jsx)(y.xv,{children:o.description})}),(0,g.jsx)(y.xu,{children:(0,g.jsx)(y.Z0,{})}),o.steps.map((e,t)=>(0,g.jsxs)(y.xu,{flexDirection:"column",children:[(0,g.jsxs)(y.xu,{flexDirection:"column",padding:16,gap:8,children:[(0,g.jsxs)(y.xu,{alignItems:"center",gap:8,children:[(0,g.jsx)(eS,{children:t+1}),(0,g.jsx)(y.xv,{component:"h3",variant:"bold",children:e.title})]}),(0,g.jsx)(y.nk,{src:e.videoUrl,sizing:"contain",autoPlay:!0,loop:!0}),(0,g.jsx)(y.xv,{children:e.description})]}),(0,g.jsx)(y.Z0,{})]},t)),(0,g.jsxs)(y.xu,{flexDirection:"column",padding:16,gap:4,children:[(0,g.jsx)(y.xv,{variant:"bold",children:o.successTitle}),(0,g.jsx)(y.xv,{children:o.successDescription})]})]})})]})};var eR=n(80546),eM=n(5813),ej=n(65077),eD=n(77859),eP=n(49857),eF=n(41067),eL=()=>{let{refreshState:e}=(0,eF.Z)(),t=(0,A.useCallback)(e,[]),{data:n}=(0,eP.ZP)("getState",async()=>await (0,eh.y0)());(0,A.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),eD.av({id:n.env.shortId}),eD.YA("repository",n.env.repo),eD.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},eN=n(68916),eU=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,eN.Sd)(e)})),t=(0,w.useRouter)();(0,A.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);eh.Xe.group({manualLibsCount:e.filter(e=>e.meta.isManual).length,downloadedLibsCount:t.length,npmLibsCount:e.filter(e=>e.meta.isNodeModule).length,downloadedLibs:t.map(e=>{var t;return null!==(t=e.meta.name)&&void 0!==t?t:"Unknown"})})})(e),eB()},[]),(0,A.useEffect)(()=>{let e=()=>{eB()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eB(){let e=await ek.managerClient.project.getAdapterName();return eh.Xe.track({event:"page-view",url:window.location.href,path:window.location.pathname,search:window.location.search,title:document.title,referrer:document.referrer,adapter:e,outerWidth:window.outerWidth,outerHeight:window.outerHeight,screenWidth:window.screen.width,screenHeight:window.screen.height})}var eW=n(67677),ez=n(37149),eV=n.n(ez),eK=n(88932),e$=n(75289),eH=n(69765),eq=n(99757),eZ=n(11104),eG=n(75665),eY=n(29040);async function eQ(e,t,n,o){let i=0,a=(u,l)=>{Promise.resolve(e()).then(e=>{t(e)?u(e):i<o?(i+=1,setTimeout(a,n,u,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eJ=n(79546),eX=n(23798),e0=n(93017),e1=n(27078),e2=n(46962),e5=n(58161),e3=()=>{eV().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,e1.gP)(e,e2.q.LOGIN),isLoginLoading:(0,eX.hg)(e,e0.z.LOGIN),env:(0,eJ.zj)(e)})),{syncChanges:o}=(0,eR.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:u}=(0,eF.Z)(),l=function(e){try{let t=new URL(e);if(t.hostname.endsWith(".wroom.io"))return t.hostname="wroom.io",t.origin;if(t.hostname.endsWith(".wroom.test"))return t.hostname="wroom.test",t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),s="".concat(function(e){let t=t=>"".concat(e).concat(t);return{Dashboard:{index:t("dashboard"),cliLogin:t("dashboard/cli/login?source=slice-machine"),cliSignup:t("dashboard/cli/signup?source=slice-machine")}}}(l+"/").Dashboard.cliLogin,"&port=").concat(window.location.port||"9999","&path=/api/auth"),c=async()=>{if(s)try{a(),await (0,eh.Yf)(),window.open(s,"_blank"),await eQ(eh.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),eK.Am.success("Logged in"),u(),i();let e=await (0,eh.y0)(),t=(0,eY.R)(e.libraries,e.remoteSlices),n=Object.values((0,eG.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eq.m)({authStatus:e5.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eH.j)();(null==d?void 0:d.kind)==="dev"&&(l.length>0||c.length>0)&&o({environment:d,loggedIn:!0,changedCustomTypes:l,changedSlices:c})}catch(e){u(),eK.Am.error("Login failed")}};return(0,g.jsx)(eZ.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:i,contentLabel:"login_modal",style:{content:{position:"static",display:"flex",margin:"auto",minHeight:"initial"},overlay:{display:"flex"}},children:(0,g.jsxs)(e$.Zb,{children:[(0,g.jsxs)(e$.kC,{sx:{p:"16px",bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,g.jsx)(e$.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,g.jsx)(e$.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,g.jsxs)(e$.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,g.jsx)(e$.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,g.jsxs)(g.Fragment,{children:["Not seeing the browser tab? ",(0,g.jsx)("br",{}),(0,g.jsx)(e$.rU,{target:"_blank",href:s,children:"Click here"})]}):(0,g.jsxs)(g.Fragment,{children:["Your session has expired.",(0,g.jsx)("br",{}),"Please log in again."]})}),(0,g.jsx)(e$.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,g.jsx)(e$.$j,{color:"#FFF",size:16}):(0,g.jsx)(g.Fragment,{children:"Log in to Prismic"})})]})]})})};let e4=()=>(0,g.jsxs)(e$.xu,{children:[(0,g.jsxs)("p",{children:["We could not find any local library in your project.",(0,g.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,g.jsxs)("p",{children:[(0,g.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,g.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var e6=n(1744),e8=n(40572),e9=n(17467),e7=n(63397);let te=[1,2,3,4,5],tt=e=>{let{field:t,form:n}=e;return(0,g.jsx)(e$.xu,{sx:{mb:3,display:"flex",justifyContent:"space-between"},children:te.map((e,o)=>(0,g.jsx)(e$.zx,{variant:"secondary",type:"button",onClick:()=>void n.setFieldValue("rating",e),className:t.value===e?"selected":"",sx:{"&:not(:last-of-type)":{mr:1},"&.selected":{backgroundColor:"code.gray",color:"white"}},"data-testid":"review-form-score-".concat(e),children:e},o))})};eV().setAppElement("#__next");let tn=e=>{let{reviewType:t}=e,{isReviewLoading:n,isLoginModalOpen:o}=(0,x.v9)(e=>({isReviewLoading:(0,eX.hg)(e,e0.z.REVIEW),isLoginModalOpen:(0,e1.gP)(e,e2.q.LOGIN)})),{skipReview:i,sendAReview:a,startLoadingReview:u,stopLoadingReview:l}=(0,eF.Z)(),s=(e,n)=>{u(),eh.Xe.track({event:"review",rating:e,comment:n,type:"advancedRepository"===t?"advanced repository":"onboarding"}),a(t),l()};return(0,g.jsx)(eZ.Z,{isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:()=>i(t),closeTimeoutMS:500,contentLabel:"Review Modal",portalClassName:"ReviewModal",style:{content:{display:"flex",position:"initial",padding:"none",top:"initial",left:"initial",minHeight:"initial"},overlay:{top:"initial",left:"initial",right:16,bottom:16,position:"absolute",height:"fit-content",width:"fit-content",backgroundColor:"unset"}},children:(0,g.jsx)(e7.J9,{validateOnMount:!0,initialValues:{rating:0,comment:""},validate:e=>{let{rating:t}=e;if(!t)return{id:"Please choose a rating"}},onSubmit:e=>{s(e.rating,e.comment)},children:e=>{let{isValid:a}=e;return(0,g.jsx)(e7.l0,{id:"review-form",children:(0,g.jsxs)(e$.Zb,{children:[(0,g.jsxs)(e$.kC,{sx:{p:"16px",pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderRadius:"8px 8px 0px 0px",borderBottom:e=>{var t;return"1px solid ".concat(null===(t=e.colors)||void 0===t?void 0:t.borders)}},children:[(0,g.jsx)(e$.X6,{sx:{fontSize:"20px",mr:4},children:"Share feedback"}),(0,g.jsx)(e$.x8,{type:"button",onClick:()=>i(t)})]}),(0,g.jsxs)(e$.kC,{sx:{flexDirection:"column",padding:"16px 24px 32px",bg:"headSection"},children:[(0,g.jsx)(e$.xv,{variant:"xs",as:"p",sx:{maxWidth:302,mb:3},children:"Overall, how satisfied or dissatisfied are you with your Slice Machine experience so far?"}),(0,g.jsxs)(e$.xu,{mb:2,sx:{display:"flex",flex:1,justifyContent:"space-between"},children:[(0,g.jsx)(e$.xv,{variant:"xs",as:"p",children:"Very unsatisfied"}),(0,g.jsx)(e$.xv,{variant:"xs",as:"p",children:"Very satisfied"})]}),(0,g.jsx)(e7.gN,{name:"rating",component:tt}),(0,g.jsx)(e7.gN,{name:"comment",type:"text",placeholder:"Tell us more...",as:e$.gx,autoComplete:"off",sx:{height:80,mb:3},"data-testid":"review-form-comment"}),(0,g.jsx)(e$.zx,{form:"review-form",type:"submit",disabled:!a||n||o,children:"Submit"})]})]})})}})})},tr=()=>{let{isInAppGuideOpen:e}=eA(),{userReview:t,customTypes:n,libraries:o,lastSyncChange:i}=(0,x.v9)(e=>({userReview:(0,e9.Eq)(e),customTypes:(0,e8.Ch)(e),libraries:(0,eN.Sd)(e),lastSyncChange:(0,e9.ov)(e)}));if(e)return null;let a=o&&o.length?o.reduce((e,t)=>t?e+t.components.length:e,0):0,u=n.some(e=>(0,e6.TG)(e)&&e.local.tabs.some(e=>{var t;return e.sliceZone&&(null===(t=e.sliceZone)||void 0===t?void 0:t.value.length)>0})),l=!!(i&&Date.now()-i>=36e5),s=a>=6&&n.length>=6&&u&&l;if(!t.advancedRepository&&s)return(0,g.jsx)(tn,{reviewType:"advancedRepository"});let c=a>=1&&n.length>=1&&u&&l;return t.onboarding||t.advancedRepository||!c?null:(0,g.jsx)(tn,{reviewType:"onboarding"})};var to=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,eN.Sd)(e)}));return eU(),eL(),(0,g.jsxs)(g.Fragment,{children:[n.length>0?t:(0,g.jsx)(eW.LN,{children:(0,g.jsx)(eW.RN,{children:(0,g.jsx)(ej.xR,{children:(0,g.jsx)(e4,{})})})}),(0,g.jsx)(e3,{}),(0,g.jsx)(tr,{})]})},ti=e=>{let{children:t}=e;return(0,g.jsx)(e$.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},ta=()=>(0,g.jsx)(ti,{children:(0,g.jsx)(e$.$j,{variant:"styles.spinner",id:"spinner"})}),tu=n(91133),tl=n(18717),ts="persist:",tc="persist/FLUSH",td="persist/REHYDRATE",tf="persist/PAUSE",tp="persist/PERSIST",th="persist/PURGE",tm="persist/REGISTER";function tg(e){return(tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tv(e,t,n,o){o.debug;var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===tg(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function tb(e){return JSON.stringify(e)}function tA(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:ts).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:tx,i.getItem(o).then(function(e){if(e)try{var o={},i=t(e);return Object.keys(i).forEach(function(e){o[e]=n.reduceRight(function(t,n){return n.out(t,e,i)},t(i[e]))}),o}catch(e){throw e}})}function tx(e){return JSON.parse(e)}function tw(e){}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t_(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tC(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tk(n,!0).forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tk(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tT={registry:[],bootstrapped:!1},tO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tT,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case tm:return tE({},e,{registry:[].concat(tC(e.registry),[t.key])});case td:var n=e.registry.indexOf(t.key),o=tC(e.registry);return o.splice(n,1),tE({},e,{registry:o,bootstrapped:0===o.length});default:return e}},tI=n(14549),tR=()=>(0,tl.UY)({modal:e1.XV,loading:eX.U,userContext:e9.e4,environment:eJ.wW,availableCustomTypes:e8.Vo,slices:eN.xB,router:R});let tM={key:"root",storage:tI.Z,whitelist:["userContext"]},tj=(void 0===o&&(o={}),u=void 0===(a=o.Router)?_():a,s=void 0===(l=o.methods)?{}:l,d=void 0===(c=o.reducerKey)?"router":c,f=["push","prefetch","replace"].reduce(function(e,t){return e[t]=s[t]?s[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(u&&!i&&o!==S){var a=b.getIn(e.getState(),[d,"location"]);u.asPath!==a.href&&t(C(E(u.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,s=l.args,c=f[l.method];"go"!==c||i||"number"!=typeof s[0]?c&&Object.prototype.hasOwnProperty.call(u,c)&&u[c].apply(u,s):window.history.go(s[0])}}});var tD=n(12170),tP=()=>({initialColorModeName:"light",colors:{text:"#25252D",textClear:"#6F6E77",grayLight:"#E8E8ED",hoverBackground:"#f2f2f2",background:"#FFF",backgroundClear:"#FFF",primary:"#5D40F7",purpleLight:"#F6F1FC",purpleLight01:"#6548FF1A",purple12:"#F1EEFE",purpleStrong:"#5842C3",whiteButtonText:"#1A1523",codeBlockBackground:"#32275F",failedConnectText:"#86848D",changesWarning:{background:"#FFECC7",color:"#5C0C17"},greyIcon:"#6F6E77",greyIconDisabled:"#C9D0D8",missingScreenshotBanner:{color:"#5C0C17",bg:"#FFECC7"},badge:{new:{bg:"#DBEDDB",color:"#05644D"},modified:{bg:"#FFECC7",color:"#5C0C17"},synced:{bg:"purple12",color:"#5842C3"},deleted:{bg:"rgba(203, 36, 49, 0.1)"},unknown:{bg:"#F3F5F7",color:"#9AA4AF"}},codeBlockBorder:"#545454",secondary:"#F9FAFB",danger:"#CB2431",highlight:"hsl(10, 40%, 90%)",purple:"#5B3DF5",purple08:"#5842C3",muted:"#F9F9FB",icons:"#8091A5",gray:"#F8F9FA",grey01:"#F3F5F7",grey02:"#E6E6EA",grey03:"#F4F2F4",grey04:"#9AA4AF",grey05:"#667587",grey07:"#F9F8F9",grey10:"#86848D",grey12:"#1A1523",greyTransparent:"rgba(37, 37, 45, 0.4)",borders:"#E4E2E4",bordersFocused:"#6E56CF",deep:"#0E2150",deep1:"#A0ADE7",lightGreen:"#EBF8F1",lightOrange:"#FDF4EC",darkOrange:"#C17C10",error:"#E55737",success:"#3AB97A",headSection:"#fff",warning:"#E67E22",warning02:"#ED811C",sidebar:"#F1F1F4",link:"#6E56CF",choggleBox:"#5163BA",darkBorder:"#DCDBDD",code:{border:"#DFE1E5",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},modes:{dark:{text:"#fff",textClear:"#6E707B",hoverBackground:"#202020",grey02:"#E6E6EA",background:"#202022",backgroundClear:"#28282C",primary:"#4E54D7",secondary:"#28282C",icons:"#5D5D71",gray:"#1D1D1F",borders:"#3A3A46",deep:"#28282C",headSection:"#28282C",warning:"#E67E22",sidebar:"#28282C",code:{border:"#5D5D6F",blue:"#3B41BD",gray:"#667587",orange:"#EA6D46",green:"#3AB97A"},link:"#A9A9C6",choggleBox:"#fff"}}},fonts:{body:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",monospace:"Menlo, monospace"},fontSizes:[12,14,16,20,24,32,48,64,72],breakpoints:["40em","56em","64em"],fontWeights:{thin:300,body:400,heading:500,label:500,bold:600,display:900},lineHeights:{body:1.5,heading:1.25},textStyles:{heading:{fontFamily:"heading",fontWeight:"heading",lineHeight:"heading"},display:{variant:"textStyles.heading",fontSize:[5,6],fontWeight:"display",letterSpacing:"-0.03em",mt:3}},sizes:{leftSidebar:220,sidebar:340},text:{xs:{fontWeight:"400",color:"textClear",fontSize:1,fontFamily:"body"},small:{fontWeight:"500",fontSize:2,fontFamily:"body"},labelError:{color:"error",fontWeight:"body",fontSize:1,marginLeft:2,marginBottom:"0!important"},secondary:{color:"greyIcon",fontSize:1},pre:{fontSize:1,fontWeight:"400",color:"textClear",bg:"grey01",p:"2px"},heading:{fontWeight:"500"},grey:{color:"#4E4E55"}},badges:{SYNCED:{fontWeight:"body",color:"badge.synced.color",bg:"badge.synced.bg",px:1,py:"1px"},NEW:{fontWeight:"body",color:"badge.new.color",bg:"badge.new.bg",px:1,py:"1px"},MODIFIED:{fontWeight:"body",color:"badge.modified.color",bg:"badge.modified.bg",px:1,py:"1px"},DELETED:{fontWeight:"body",color:"danger",bg:"badge.deleted.bg",px:1,py:"1px"},UNKNOWN:{fontWeight:"body",color:"badge.unknown.color",bg:"badge.unknown.bg",px:1,py:"1px"},circle:{borderRadius:"50%",fontSize:"10px"},primary:{color:"text",bg:"primary"},"circle-right":{top:"-8px",right:"-8px",height:"24px",width:"24px",display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",borderRadius:"50%"},outline:{color:"primary",fontSize:"14px",fontWeight:"500",bg:"transparent",border:"none",borderColor:"borders"}},boxes:{centered:{height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"}},buttons:{primary:{color:"white",fontSize:1,fontFamily:"body",fontWeight:"body",lineHeight:"24px",padding:"7px 15px",borderRadius:"4px",userSelect:"none",bg:(0,tD.Fq)("primary",.9),borderColor:"primary",borderStyle:"solid",borderWidth:"1px",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{cursor:"pointer",bg:"primary"},"&:focus":{boxShadow:"0px 0px 0px 1px var(--theme-ui-colors-primary)",borderColor:"white",bg:"primary",outline:"none"},"&:disabled":{cursor:"not-allowed",bg:(0,tD.Fq)("primary",.5),borderColor:"transparent"}},screenSize:{p:0,fontFamily:"body",display:"flex",justifyContent:"center",alignItems:"center",height:"32px",width:"32px",bg:"text",color:"white",cursor:"pointer",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)"},secondary:{bg:"secondary",fontFamily:"body",fontWeight:"body",fontSize:"1",color:"textClear",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))},"&:hover:enabled":{bg:(0,tD._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,tD._j)("secondary",.05),borderColor:(0,tD._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,tD._j)("secondary",.06),outline:"none"}},danger:{bg:"danger",fontFamily:"body",fontWeight:"bold",fontSize:"1",color:"purple12",px:"16px",py:"8px",borderRadius:"6px",border:"1px solid #C61926","&:hover":{bg:(0,tD._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,tD._j)("danger",.05),borderColor:(0,tD._j)("danger",.15),outline:"none"},"&:active":{bg:(0,tD._j)("danger",.06),outline:"none"}},dropDownButton:{fontSize:"1",p:"3px",pl:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"6px",border:"1px solid #DCDBDD",fontWeight:"bold",bg:"secondary",fontFamily:"body",color:"textClear","&:hover":{"&:not([disabled])":{bg:(0,tD._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,tD._j)("secondary",.05),borderColor:(0,tD._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,tD._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,tD.Fq)("textClear",.6)},"&>svg":{pointerEvents:"none"}},small:{bg:"primary",borderRadius:"4px",pl:2,pr:2,pb:1,pt:1,fontFamily:"body",fontSize:"12px",fontWeight:"body"},secondarySmall:{background:"#FFFFFF",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",color:"#1A1523",fontFamily:"body",fontSize:"12px",lineHeight:"16px",pl:2,pr:2,py:"5px",cursor:"pointer","&:hover:enabled":{background:"#F4F2F4"},"&:active:enabled":{background:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"},"&:disabled":{cursor:"not-allowed",opacity:.5}},secondaryMedium:{padding:"4px 8px",borderRadius:"6px",fontSize:"14px",fontWeight:"bold",fontFamily:"body",lineHeight:"24px",letterSpacing:"-0.15px",color:"whiteButtonText",border:"1px solid #DCDBDD",backgroundColor:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer","&:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)",border:"1px solid #6E56CF"},"&:hover":{"&:not([disabled])":{backgroundColor:"#F4F2F4",cursor:"pointer"}},"&:active":{"&:not([disabled])":{backgroundColor:"#F4F2F4",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08)"}},"&:disabled":{color:"#908E96",cursor:"not-allowed"}},darkSmall:{borderRadius:"4px",color:"white",fontFamily:"body",fontSize:"12px",fontWeight:"body",bg:"text",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD.$n)("text",.05),cursor:"pointer"}},lightSmall:{borderRadius:"4px",color:"text",fontSize:"12px",fontWeight:"body",fontFamily:"body",bg:"white",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD._j)("white",.05),cursor:"pointer"}},actionDelete:{width:"100%",borderRadius:"4px",color:"error",fontSize:"16px",fontFamily:"body",fontWeight:"body",bg:"grey02",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.1), inset 0px -1px 0px rgba(0, 0, 0, 0.1)",userSelect:"none",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:(0,tD._j)("white",.05),cursor:"pointer"}},disabled:{bg:"#D6CEFC",fontSize:"1",color:"white",fontFamily:"body",cursor:"not-allowed",borderColor:"transparent"},disabledSecondary:{bg:"#F9F9FA",fontSize:"1",color:"#C9D0D8",fontFamily:"body",cursor:"not-allowed",border:"1px solid",borderColor:"1px solid rgba(62, 62, 72, 0.15)"},transparent:{background:"transparent",border:"none",fontFamily:"body",p:1,color:"primary",cursor:"pointer"},selectIcon:{fontFamily:"body","&:hover":{cursor:"pointer"},"&:focus, &:active":{outline:"none"}},textButton:{fontFamily:"body",border:"none",color:"primary",background:"transparent",p:1,position:"relative",top:"1px",ml:1,cursor:"pointer","&:hover":{background:"rgba(0,0,0,0.06) !important",borderRadius:"3px"}},close:{fontFamily:"body",color:"icons","&:hover":{bg:"rgba(0,0,0,0.08)",cursor:"pointer"},"&:focus":{outline:"none"}},icon:{fontFamily:"body","&:hover":{bg:"rgba(0,0,0,0.08)"},"&:focus":{outline:"none"}},round:{fontFamily:"body",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%"},white:{bg:"#FFF",color:"#1A1523",border:"1px solid #DCDBDD",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)",borderRadius:"6px",fontFamily:"body",fontWeight:"600",fontSize:1,px:3,cursor:"pointer"}},success:{done:{position:"absolute",top:"57px",width:"100%",p:2,bg:"success"},error:{position:"absolute",top:"57px",width:"100%",p:2,bg:"error"},warning:{position:"absolute",top:"57px",width:"100%",p:2,bg:"warning"}},cards:{primary:{bg:"gray",border:"1px solid",borderRadius:4,borderColor:"borders"},large:{py:2,bg:"gray",borderRadius:4,boxShadow:"0 0 8px rgba(0, 0, 0, 0.125)"},drawerCard:{backgroundColor:"white",boxShadow:"0px 2px 1px rgba(0, 0, 0, 0.05)",borderRadius:6,border:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))},px:16,py:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},forms:{disabled:{bg:"muted",cursor:"not-allowed",pointerEvents:"none"},checkbox:{color:"icons",dark:{color:"#161618",cursor:"pointer"}},radio:{color:"borders","&:checked":{color:"purple"}},input:{fontSize:1,bg:"headSection",borderColor:"borders",fontFamily:"body","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,tD._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},textarea:{fontSize:1,resize:"none",bg:"headSection",fontFamily:"body",borderColor:"borders","&::placeholder":{fontFamily:"body",color:"textClear"},"&:hover":{borderColor:(0,tD._j)("borders",.07)},"&:focus, &:active":{outline:"none",borderColor:"primary",boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2), inset 0 1px 2px rgba(102, 113, 123, 0.2)"}},hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.choggleBox}},label:{fontSize:1,primary:{mb:2,fontSize:1,fontWeight:"label",position:"relative","& > span":{mb:1,display:"inline-block",fontWeight:"label"}},border:{fontSize:1,mb:1,fontWeight:"body",pt:"7px",pb:"6px",px:1,borderRadius:"3px",border:e=>{var t;return"1px solid ".concat(String(null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.borders))}},large:{fontSize:1,color:"grey12"}},switch:{height:"24px",width:"45px",bg:"#EDECEE","input:checked ~ &":{bg:"#6E56CF"},"input ~ & > div":{height:"20px",width:"20px",border:"1px solid #DCDBDD",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ & > div":{height:"20px",width:"20px",border:"1px solid #5842C3",padding:"2px",boxShadow:"0px 1px 0px rgba(0, 0, 0, 0.04)"},"input:checked ~ &:hover":{bg:"#5842C3"},"input:checked ~ & > div:focus":{boxShadow:"0px 0px 0px 3px rgba(124, 102, 220, 0.3)"}}},links:{hint:{fontSize:1,color:e=>{var t;return null==e?void 0:null===(t=e.colors)||void 0===t?void 0:t.link},margin:"0 4px",textDecoration:"none",cursor:"pointer",display:"inline-block"},default:{color:"link"},invisible:{color:"text",textDecoration:"none",cursor:"pointer"},sidebar:{fontSize:1,color:"textClear",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{color:"text",bg:"grey02"}},sidebarEmphasis:{fontSize:1,color:"purple",textDecoration:"none",cursor:"pointer",borderRadius:"6px",p:2,transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey02"}},cardSmall:{color:"purple08",fontSize:"12px",textDecoration:"none","&:hover":{textDecoration:"underline"}}},styles:{navLink:{color:"#FFF","&:hover":{color:"#FFF"}},deepNavLink:{color:"deep1"},listItem:{borderRadius:"3px",my:3,listStyleType:"none",justifyContent:"space-between"},Container:{p:3,maxWidth:1024},fixedHeader:{position:"fixed",alignItems:"center",justifyContent:"space-between",height:"48px",width:"100%",bg:"background",p:2,top:"0",left:"0"},success:{position:"absolute",width:"100%",p:2},disabledBox:{position:"absolute",zIndex:"1",height:"100%",width:"100%",background:"rgba(0, 0, 0, .1)"},root:{fontFamily:"body",lineHeight:"body",fontWeight:"body"},h1:{variant:"textStyles.display",fontSize:1},h2:{variant:"textStyles.heading",fontSize:5},h4:{variant:"textStyles.heading",fontSize:3},h5:{variant:"textStyles.heading",fontSize:2},h6:{variant:"textStyles.heading",fontSize:1},ul:{p:0,m:0},li:{listStyleType:"none"},hint:{display:"block",fontStyle:"normal",fontWeight:"normal"},inlineCode:{fontFamily:"monospace",color:"#6E56CF",bg:"#F1EEFE"},"table[data-legacy-component]":{width:"100%",borderCollapse:"collapse",borderSpacing:0,"td, th":{textAlign:"left",borderColor:"muted",borderBottomStyle:"solid"},td:{p:"24px"},"thead tr":{bg:"grey02",borderRadius:"4px",th:{p:"12px 24px"},"th:first-of-type":{borderBottomLeftRadius:"4px",borderTopLeftRadius:"4px"},"th:last-of-type":{borderBottomRightRadius:"4px",borderTopRightRadius:"4px"}},"thead tr.transparent":{bg:"transparent",color:"greyTransparent"},"thead tr.small":{fontSize:"12px"},"tbody tr:not(.disabled)":{cursor:"pointer",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)","&:hover":{bg:"grey01"}},"tbody tr.disabled":{cursor:"not-allowed"}},th:{verticalAlign:"bottom",borderBottomWidth:"2px"},td:{verticalAlign:"top",borderBottomWidth:"1px"},hr:{border:0,borderBottom:"1px solid",borderColor:"code.border"},img:{maxWidth:"100%"}},alerts:{primary:{color:"background",bg:"primary"},muted:{color:"text",bg:"muted"}}});let tF=e=>{let{children:t}=e,{setColorMode:n}=(0,V.B7)();return(0,A.useEffect)(()=>{n&&n("light")},[]),(0,g.jsx)(g.Fragment,{children:t})};function tL(e){let{Component:t,pageProps:n}=e,[o,i]=(0,A.useState)(null),[a,u]=(0,A.useState)(null);(0,A.useEffect)(()=>{(async function(){i(await (0,eh.y0)())})()},[]),(0,A.useEffect)(()=>{if(!o||a)return;let e=(0,eG.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,u,l,s,c,d,f,p,h;let m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=[(0,tl.md)(tj)],y=tl.qC,v=tR(),b=(e=void 0!==tM.version?tM.version:-1,tM.debug,t=void 0===tM.stateReconciler?tv:tM.stateReconciler,n=tM.getStoredState||tA,o=void 0!==tM.timeout?tM.timeout:5e3,i=null,a=!1,u=!0,l=function(e){return e._persist.rehydrated&&i&&!u&&i.update(e),e},function(s,c){var d,f,p=s||{},h=p._persist,m=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(p,["_persist"]);if(c.type===tp){var g=!1,y=function(e,t){g||(c.rehydrate(tM.key,e,t),g=!0)};if(o&&setTimeout(function(){g||y(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tM.key,'"')))},o),u=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,u="".concat(void 0!==e.keyPrefix?e.keyPrefix:ts).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:tb;var s=e.writeFailHandler||null,c={},d={},f=[],p=null,h=null;function m(){if(0===f.length){p&&clearInterval(p),p=null;return}var e=f.shift(),n=i.reduce(function(t,n){return n.in(t,e,c)},c[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===f.length&&(Object.keys(d).forEach(function(e){void 0===c[e]&&delete d[e]}),h=l.setItem(u,t(d)).catch(y))}function g(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function y(e){s&&s(e)}return{update:function(e){Object.keys(e).forEach(function(t){g(t)&&c[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&g(t)&&-1===f.indexOf(t)&&void 0!==c[t]&&f.push(t)}),null===p&&(p=setInterval(m,a)),c=e},flush:function(){for(;0!==f.length;)m();return h||Promise.resolve()}}}(tM)),h)return tS({},v(m,c),{_persist:h});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(tM.key),n(tM).then(function(t){(tM.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){y(e)},function(e){y(void 0,e)})},function(e){y(void 0,e)}),tS({},v(m,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===th)return a=!0,c.result((d=tM.storage,f="".concat(void 0!==tM.keyPrefix?tM.keyPrefix:ts).concat(tM.key),d.removeItem(f,tw))),tS({},v(m,c),{_persist:h});if(c.type===tc)return c.result(i&&i.flush()),tS({},v(m,c),{_persist:h});if(c.type===tf)u=!0;else if(c.type===td){if(a)return tS({},m,{_persist:tS({},h,{rehydrated:!0})});if(c.key===tM.key){var b=v(m,c),A=c.payload;return l(tS({},!1!==t&&void 0!==A?t(A,s,b,tM):b,{_persist:tS({},h,{rehydrated:!0})}))}}if(!h)return v(s,c);var x=v(m,c);return x===m?s:l(tS({},x,{_persist:h}))}),A=(0,tl.MT)(b,m,y(...g)),x=(c=!1,d=(0,tl.MT)(tO,tT,void 0),f=function(e){d.dispatch({type:tm,key:e})},p=function(e,t,n){var o={type:td,payload:t,err:n,key:e};A.dispatch(o),d.dispatch(o),c&&h.getState().bootstrapped&&(c(),c=!1)},h=tE({},d,{purge:function(){var e=[];return A.dispatch({type:th,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return A.dispatch({type:tc,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){A.dispatch({type:tf})},persist:function(){A.dispatch({type:tp,register:f,rehydrate:p})}}),s&&s.manualPersist||h.persist(),h);return{store:A,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});u({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||to;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(F(),{children:(0,g.jsx)("title",{children:"Slice Machine"})}),(0,g.jsx)(ep,{theme:tP,children:(0,g.jsx)(tF,{children:(0,g.jsx)(y.f6,{mode:"light",children:(0,g.jsx)(y.pn,{children:a&&o?(0,g.jsxs)(x.zt,{store:a.store,children:[(0,g.jsx)(M,{Router:_(),children:(0,g.jsx)(z,{loading:null,persistor:a.persistor,children:(0,g.jsx)(em.S,{renderError:()=>(0,g.jsx)(y.xu,{justifyContent:"center",width:"100%",padding:80,children:(0,g.jsx)(y.Iq,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,g.jsx)(A.Suspense,{fallback:(0,g.jsx)(ta,{}),children:(0,g.jsx)(eR.E,{children:(0,g.jsxs)(eb,{children:[(0,g.jsx)(eM.e,{children:(0,g.jsx)(l,{children:(0,g.jsx)(t,{...n})})}),(0,g.jsx)(em.S,{children:(0,g.jsx)(A.Suspense,{children:(0,g.jsx)(eI,{})})})]})})})})})}),(0,g.jsx)(tu.ZP,{})]}):(0,g.jsx)(ta,{})})})})})]})}var tN=D()(()=>Promise.resolve(tL),{ssr:!1})},65497:function(){},47125:function(){},99400:function(){},21412:function(){},33916:function(){},31704:function(){},83658:function(){},49345:function(){},70978:function(){},24193:function(){},53498:function(){},59289:function(){},90330:function(){},54303:function(){},13821:function(e){e.exports={reset:"BaseHoverCard_reset__HckHR",container:"BaseHoverCard_container__IZMCG BaseHoverCard_reset__HckHR",arrow:"BaseHoverCard_arrow__gvcjD BaseHoverCard_reset__HckHR"}},63853:function(e){e.exports={items:"Breadcrumb_items__eNDGh"}},93451:function(e){e.exports={root:"Count_root__aoGb8",count:"Count_count__p6R5P"}},77452:function(e){e.exports={block:"HoverCard_block__Fubs4",blockWithDisplayRevert:"HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",root:"HoverCard_root__OaRBr HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",title:"HoverCard_title__dO_Y9 HoverCard_block__Fubs4",titleCloseIcon:"HoverCard_titleCloseIcon__DlZJS HoverCard_block__Fubs4",mediaContainer:"HoverCard_mediaContainer__4Lt3z HoverCard_block__Fubs4",media:"HoverCard_media__U7jSc HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",description:"HoverCard_description__HZ9_z HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4",closeButtonContainer:"HoverCard_closeButtonContainer__7JiLA HoverCard_blockWithDisplayRevert__H6Rbw HoverCard_block__Fubs4"}},27149:function(e){e.exports={grid:"PageLayout_grid__7Uz4n",root:"PageLayout_root___Ig6N PageLayout_grid__7Uz4n",borderTop:"PageLayout_borderTop__7ioR4","borderTopColor-amber":"PageLayout_borderTopColor-amber__S4eiH","borderTopColor-indigo":"PageLayout_borderTopColor-indigo__kxNiR","borderTopColor-purple":"PageLayout_borderTopColor-purple__xhEfx",pane:"PageLayout_pane__UIqt5 PageLayout_grid__7Uz4n",header:"PageLayout_header__hiJ6I PageLayout_grid__7Uz4n",content:"PageLayout_content__LanfI PageLayout_grid__7Uz4n",contentChildren:"PageLayout_contentChildren__ZjEbL PageLayout_grid__7Uz4n"}},57077:function(e){e.exports={container:"OnboardingGuide_container__0_meV",confettiCannon:"OnboardingGuide_confettiCannon__sE5Vb",visible:"OnboardingGuide_visible__3_Gfm",invisible:"OnboardingGuide_invisible__v6NZj"}},60821:function(e){e.exports={root:"AutoSyncStatusIndicator_root__5KDU5",text:"AutoSyncStatusIndicator_text__UHXHm"}},41173:function(e){e.exports={logo:"SideNavEnvironmentSelector_logo__IFs4z",environmentDotBase:"SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-prod":"SideNavEnvironmentSelector_environmentDot-prod__Acp7Z SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-stage":"SideNavEnvironmentSelector_environmentDot-stage__DaYWK SideNavEnvironmentSelector_environmentDotBase__abxi3","environmentDot-dev":"SideNavEnvironmentSelector_environmentDot-dev__O5Gy7 SideNavEnvironmentSelector_environmentDotBase__abxi3",menuItemEnvironmentDot:"SideNavEnvironmentSelector_menuItemEnvironmentDot__oaC3y",activeEnvironmentDot:"SideNavEnvironmentSelector_activeEnvironmentDot__82bDR",activeEnvironmentName:"SideNavEnvironmentSelector_activeEnvironmentName__qy4rk",loginIcon:"SideNavEnvironmentSelector_loginIcon___VsYZ"}},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},o={};function i(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}},u=!0;try{t[e](a,a.exports,i),u=!1}finally{u&&delete o[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=v(e));var o,i,a,u,l,s,c,d,f,p=(i=(o=e).auth,a=o.hostname,u=o.protocol||"",l=o.pathname||"",s=o.hash||"",c=o.query||"",d=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",o.host?d=i+o.host:a&&(d=i+(~a.indexOf(":")?"["+a+"]":a),o.port&&(d+=":"+o.port)),c&&"object"==typeof c&&(c=t.encode(c)),f=o.search||c&&"?"+c||"",u&&":"!==u.substr(-1)&&(u+=":"),o.slashes||(!u||n.test(u))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),s&&"#"!==s[0]&&(s="#"+s),f&&"?"!==f[0]&&(f="?"+f),{protocol:u,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:s});return""+p.protocol+p.host+p.pathname+p.search+p.hash}var u="http://",l=u+"w.w",s=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?o(e):e;var i=v(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var d=e.match(s);d&&!i.protocol&&(e=e.substr((a=d[1]+(d[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var f=new URL(e,l+"/"),p=new URL(t,f).toString().replace(l,""),h=i.protocol||n.protocol;return h+=n.slashes||i.slashes?"//":"",!a&&h?p=p.replace(u,h):a&&(p=p.replace(u,"")),c.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),a&&(p=a+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=v,f.prototype.format=o,f.prototype.resolve=d,f.prototype.resolveObject=d;var p=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof f)return e;var a=(e=e.trim()).match(h);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var u=!/(^javascript)/.test(e)&&e.match(m),s=g.test(e),c="";u&&(p.test(u[1])||(c=u[1].toLowerCase(),e=""+u[2]+u[3]),u[2]||(s=!1,p.test(u[1])?(c=u[1],e=""+u[3]):e="//"+u[3]),3!==u[2].length&&1!==u[2].length||(c=u[1],e="/"+u[3]));var d,v=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=v&&v[1],A=new f,x="",w="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return A.protocol=c,A.href=c,A}}A.slashes=s&&!w,A.host="w.w"===d.host?"":d.host,A.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),A.protocol=x?c||null:d.protocol,A.search=d.search.replace(/\\/g,"%5C"),A.hash=d.hash.replace(/\\/g,"%5C");var _=e.split("#");!A.search&&~_[0].indexOf("?")&&(A.search="?"),A.hash||""!==_[1]||(A.hash="#"),A.query=n?t.decode(d.search.substr(1)):A.search.substr(1),A.pathname=w+(u?d.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):d.pathname),"about:"===A.protocol&&"blank"===A.pathname&&(A.protocol="",A.pathname=""),x&&"/"!==e[0]&&(A.pathname=A.pathname.substr(1)),c&&!p.test(c)&&"/"!==e.slice(-1)&&"/"===A.pathname&&(A.pathname=""),A.path=A.pathname+A.search,A.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),A.port=d.port,b&&!A.host.endsWith(b)&&(A.host+=b,A.port=b.slice(1)),A.href=w?""+A.pathname+A.search+A.hash:o(A);var S=/^(file)/.test(A.href)?["host","hostname"]:[];return Object.keys(A).forEach(function(e){~S.indexOf(e)||(A[e]=A[e]||null)}),A}a.parse=v,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return v(d(e,t))},a.Url=f}(),e.exports=a}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,o,i){n=n||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var c=0;c<s;++c){var d,f,p,h,m=e[c].replace(u,"%20"),g=m.indexOf(o);(g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(a,p))?t(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,u,l){return(a=a||"&",u=u||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+u;return n(e[i])?o(e[i],function(e){return l+encodeURIComponent(t(e))}).join(a):l+encodeURIComponent(t(e[i]))}).join(a):l?encodeURIComponent(t(l))+u+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},u=!0;try{t[e](a,a.exports,o),u=!1}finally{u&&delete n[e]}return a.exports}o.ab="//";var i={};i.decode=i.parse=o(815),i.encode=i.stringify=o(577),e.exports=i}()},25237:function(e,t,n){e.exports=n(67328)},97729:function(e,t,n){e.exports=n(50044)},39097:function(e,t,n){e.exports=n(26713)},5632:function(e,t,n){e.exports=n(69442)},34406:function(e){var t,n,o,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(e){n=u}}();var s=[],c=!1,d=-1;function f(){c&&o&&(c=!1,o.length?s=o.concat(s):d=-1,s.length&&p())}function p(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(o=s,s=[];++d<t;)o&&o[d].run();d=-1,t=s.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},68262:function(e,t,n){"use strict";var o=n(23586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,u){if(u!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,u){if(a===u)return!0;if(a&&u&&"object"==typeof a&&"object"==typeof u){var l,s,c,d=t(a),f=t(u);if(d&&f){if((s=a.length)!=u.length)return!1;for(l=s;0!=l--;)if(!e(a[l],u[l]))return!1;return!0}if(d!=f)return!1;var p=a instanceof Date,h=u instanceof Date;if(p!=h)return!1;if(p&&h)return a.getTime()==u.getTime();var m=a instanceof RegExp,g=u instanceof RegExp;if(m!=g)return!1;if(m&&g)return a.toString()==u.toString();var y=n(a);if((s=y.length)!==n(u).length)return!1;for(l=s;0!=l--;)if(!o.call(u,y[l]))return!1;if(i&&a instanceof Element&&u instanceof Element)return a===u;for(l=s;0!=l--;)if(("_owner"!==(c=y[l])||!a.$$typeof)&&!e(a[c],u[c]))return!1;return!0}return a!=a&&u!=u}(e,a)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},68281:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var o=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),u=function(){return(u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function s(e){return function(t){return o.createElement(c,u({attr:u({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,u({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,s=e.title,c=l(e,["attr","size","title"]),d=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),e.children)};return void 0!==a?o.createElement(a.Consumer,null,function(e){return t(e)}):t(i)}},65186:function(e,t,n){"use strict";n.d(t,{$l_:function(){return m},$vK:function(){return w},B4e:function(){return A},BAW:function(){return v},Fwj:function(){return k},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return _},SQS:function(){return b},U8L:function(){return C},XN7:function(){return g},YTL:function(){return h},_b$:function(){return y},eJU:function(){return s},f$3:function(){return u},hs8:function(){return O},iy3:function(){return S},k71:function(){return c},lPv:function(){return E},nwY:function(){return T},vB0:function(){return l},vVM:function(){return p},wr$:function(){return f},xoN:function(){return i}});var o=n(68281);function i(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}}]})(e)}function a(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74L15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z"}}]})(e)}function u(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}}]})(e)}function l(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(e)}function s(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function c(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(e)}function d(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"}}]})(e)}function f(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function p(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function h(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function m(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function g(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4h4zm-6 4h-4v-4h4v4z"}}]})(e)}function y(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}function v(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function b(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M5 4v3h5.5v12h3V7H19V4z"}}]})(e)}function A(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function x(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function w(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}}]})(e)}function _(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"}},{tag:"path",attr:{d:"M6.49 10.5V15h1.15V9h-.87l-1.76 1.27.58.89zM11.47 10.05c.5 0 .81.32.81.72 0 .37-.14.64-.54 1.06-.36.38-1.06 1.08-2.13 2.15V15h3.89v-.99h-2.37l-.03-.05c.68-.68 1.15-1.14 1.4-1.39.61-.6.92-1.22.92-1.86 0-.24-.05-1.04-.91-1.48-.47-.23-1.26-.36-1.95-.03-.82.39-.99 1.13-1 1.15l1.01.42c.1-.33.38-.72.9-.72zM16.99 13.94c-.83 0-.99-.76-1.02-.86l-1.03.41c.45 1.59 2.01 1.51 2.05 1.51 1.2 0 1.68-.72 1.76-.85.32-.49.36-1.24-.01-1.76-.17-.24-.4-.41-.68-.52v-.07c.2-.1.37-.26.52-.48.26-.41.31-1.07-.02-1.57-.08-.11-.53-.75-1.62-.75-1.26 0-1.74.9-1.85 1.24l.99.41c.11-.32.35-.64.85-.64.44 0 .75.26.75.65 0 .58-.55.72-.88.72h-.46v1h.5c.56 0 1.04.24 1.04.79 0 .49-.48.77-.89.77z"}}]})(e)}function S(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-8-4h2v2h2v-2h2v-2h-2v-2h-2v2h-2z"}}]})(e)}function C(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0112 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 00-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 012.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"}},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"}},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"}},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"}}]})(e)}function k(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}}]})(e)}function E(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}}]})(e)}function T(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13l-4-4h8z"}}]})(e)}function O(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}},66866:function(e,t){"use strict";/** @license React v16.13.1
|
|
570
570
|
* react-is.production.min.js
|
|
571
571
|
*
|
|
572
572
|
* Copyright (c) Facebook, Inc. and its affiliates.
|