slice-machine-ui 2.15.2 → 2.15.3-alpha.lg-sections-experiment.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/{2Df8JFdNvYoOjiAMascPc → GlSyDlO_UeXreYdksqmPV}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/154-a4ec7ff827265f1b.js +1 -0
- package/out/_next/static/chunks/356-58e3305b86c3c0b7.js +1 -0
- package/out/_next/static/chunks/641-ceb394aeede9820c.js +1 -0
- package/out/_next/static/chunks/pages/{_app-8ebe9acc4f19e5c5.js → _app-b1750292936f34d7.js} +2 -2
- package/out/_next/static/chunks/pages/changes-7e4258b9d0ff9d2a.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-494a273bdfe05981.js → [customTypeId]-653001fc7293410d.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-f67cee98ab2e606f.js → [pageTypeId]-33b71bf77c056059.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-6afcefff44312aa5.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-71c02f14e207523b.js +1 -0
- package/out/_next/static/chunks/pages/slices-cc06ca3a4294f7f0.js +1 -0
- 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/builder/useSectionsExperiment.ts +29 -0
- package/src/features/customTypes/customTypesBuilder/CreateSliceFromImageModal/CreateSliceFromImageModal.tsx +20 -8
- package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +35 -52
- package/src/features/customTypes/customTypesBuilder/sliceCreationOptions.tsx +71 -0
- package/src/features/masterSliceLibrary/SliceLibraryPreviewModal.tsx +13 -5
- package/src/features/navigation/Navigation.tsx +4 -2
- package/src/legacy/components/ChangesItems/ChangesItems.tsx +5 -1
- package/src/legacy/components/Forms/CreateSliceModal/CreateSliceModal.tsx +5 -3
- package/src/legacy/components/Simulator/components/FailedConnect/index.tsx +56 -51
- package/src/legacy/components/ToasterContainer/index.tsx +12 -3
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/SlicesTemplatesModal.tsx +3 -1
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/UpdateSliceZoneModal.tsx +4 -1
- package/src/legacy/lib/builders/CustomTypeBuilder/SliceZone/index.tsx +31 -53
- package/src/legacy/lib/builders/SliceBuilder/index.tsx +3 -1
- package/src/legacy/lib/builders/common/Zone/components/ZoneEmptyState/ZoneEmptyState.tsx +10 -5
- package/src/pages/slices.tsx +34 -33
- package/out/_next/static/chunks/154-7a7fbf12ee00e12f.js +0 -1
- package/out/_next/static/chunks/356-09138784e77f5f66.js +0 -1
- package/out/_next/static/chunks/473-944c28c328500eba.js +0 -1
- package/out/_next/static/chunks/pages/changes-1d07d031e49cd4fa.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-682a7ae967ddc9e8.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-2db7593b552cc395.js +0 -1
- package/out/_next/static/chunks/pages/slices-4b5da413adf7c51c.js +0 -1
- /package/out/_next/static/{2Df8JFdNvYoOjiAMascPc → GlSyDlO_UeXreYdksqmPV}/_ssgManifest.js +0 -0
|
@@ -688,7 +688,7 @@ Error:`,t)}}function v(e,t=!1){return n=>{if(!n||a===n||function(e){if("keypress
|
|
|
688
688
|
*
|
|
689
689
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
690
690
|
* @license MIT
|
|
691
|
-
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(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 u(e,t,n)}function u(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|g(e,t),o=s(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(M(e,Uint8Array)){var t=new Uint8Array(e);return h(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return h(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|m(e.length),o=s(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?s(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),s(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),n=s(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(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 m(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(i)return o?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var i,a,s=!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+=j[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return w(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(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function v(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function b(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:A(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):A(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function A(e,t,n,o,i){var a,s=1,l=e.length,u=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;s=2,l/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}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===u)return d*s}else -1!==d&&(a-=a-d),d=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){for(var f=!0,h=0;h<u;h++)if(c(e,a+h)!==c(t,h)){f=!1;break}if(f)return a}return -1}function w(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var a,s,l,u,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&&(u=(31&c)<<6|63&a)>127&&(d=u);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(d=u);break;case 4:a=e[i+1],s=e[i+2],l=e[i+3],(192&a)==128&&(192&s)==128&&(192&l)==128&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&u<1114112&&(d=u)}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 C(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 S(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,o,a){return t=+t,n>>>=0,a||S(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function k(e,t,n,o,a){return t=+t,n>>>=0,a||S(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 u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(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(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),M(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(M(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=g,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)v(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)v(this,t,t+3),v(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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):y.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(M(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,s=n-t,u=Math.min(a,s),c=this.slice(o,i),d=e.slice(t,n),f=0;f<u;++f)if(c[f]!==d[f]){a=c[f],s=d[f];break}return a<s?-1:s<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 b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(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,s,l,u,c,d,f,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var m=!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 s=0;s<o;++s){var l=parseInt(t.substr(2*s,2),16);if(l!=l)break;e[n+s]=l}return s}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,I(O(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,l=n,I(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,s,l);case"base64":return u=t,c=n,I(R(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,f=n,I(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(m)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),m=!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;C(this,e,t,n,i,0)}var a=1,s=0;for(this[t]=255&e;++s<n&&(a*=256);)this[t+s]=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;C(this,e,t,n,i,0)}var a=n-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||C(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||C(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||C(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||C(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||C(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);C(this,e,t,n,i-1,-i)}var a=0,s=1,l=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/s>>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);C(this,e,t,n,i-1,-i)}var a=n-1,s=1,l=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/s>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||C(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||C(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||C(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||C(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||C(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 _(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return k(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 s=l.isBuffer(e)?e:l.from(e,o),u=s.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%u]}return this};var T=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var n,o=e.length,i=null,a=[],s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+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 R(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(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 M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=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,s,l,u,c,d,f,h,m,g,y){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 nI}),n.d(t,"Cloudinary",function(){return nB}),n.d(t,"Condition",function(){return tf}),n.d(t,"Configuration",function(){return tg}),n.d(t,"crc32",function(){return A}),n.d(t,"Expression",function(){return tl}),n.d(t,"FetchLayer",function(){return tO}),n.d(t,"HtmlTag",function(){return t8}),n.d(t,"ImageTag",function(){return nu}),n.d(t,"Layer",function(){return ty}),n.d(t,"PictureTag",function(){return nb}),n.d(t,"SubtitlesLayer",function(){return t_}),n.d(t,"TextLayer",function(){return tw}),n.d(t,"Transformation",function(){return t6}),n.d(t,"utf8_encode",function(){return b}),n.d(t,"Util",function(){return v}),n.d(t,"VideoTag",function(){return nE});var o,s,l,u,c,d,f,h,m,g,y={};n.r(y),n.d(y,"VERSION",function(){return el}),n.d(y,"CF_SHARED_CDN",function(){return eu}),n.d(y,"OLD_AKAMAI_SHARED_CDN",function(){return ec}),n.d(y,"AKAMAI_SHARED_CDN",function(){return ed}),n.d(y,"SHARED_CDN",function(){return ef}),n.d(y,"DEFAULT_TIMEOUT_MS",function(){return ep}),n.d(y,"DEFAULT_POSTER_OPTIONS",function(){return eh}),n.d(y,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return em}),n.d(y,"SEO_TYPES",function(){return eg}),n.d(y,"DEFAULT_IMAGE_PARAMS",function(){return ey}),n.d(y,"DEFAULT_VIDEO_PARAMS",function(){return ev}),n.d(y,"DEFAULT_VIDEO_SOURCES",function(){return eb}),n.d(y,"DEFAULT_EXTERNAL_LIBRARIES",function(){return eA}),n.d(y,"PLACEHOLDER_IMAGE_MODES",function(){return ew}),n.d(y,"ACCESSIBILITY_MODES",function(){return ex}),n.d(y,"URL_KEYS",function(){return eC});var v={};n.r(v),n.d(v,"getSDKAnalyticsSignature",function(){return k}),n.d(v,"getAnalyticsOptions",function(){return T}),n.d(v,"assign",function(){return R.a}),n.d(v,"cloneDeep",function(){return M.a}),n.d(v,"compact",function(){return D.a}),n.d(v,"difference",function(){return F.a}),n.d(v,"functions",function(){return N.a}),n.d(v,"identity",function(){return B.a}),n.d(v,"includes",function(){return z.a}),n.d(v,"isArray",function(){return K.a}),n.d(v,"isPlainObject",function(){return H.a}),n.d(v,"isString",function(){return Z.a}),n.d(v,"merge",function(){return Y.a}),n.d(v,"contains",function(){return z.a}),n.d(v,"isIntersectionObserverSupported",function(){return ei}),n.d(v,"isNativeLazyLoadSupported",function(){return ea}),n.d(v,"detectIntersection",function(){return es}),n.d(v,"omit",function(){return e_}),n.d(v,"allStrings",function(){return ek}),n.d(v,"without",function(){return eE}),n.d(v,"isNumberLike",function(){return eT}),n.d(v,"smartEscape",function(){return eO}),n.d(v,"defaults",function(){return eR}),n.d(v,"objectProto",function(){return eI}),n.d(v,"objToString",function(){return eM}),n.d(v,"isObject",function(){return ej}),n.d(v,"funcTag",function(){return eD}),n.d(v,"reWords",function(){return eF}),n.d(v,"camelCase",function(){return eL}),n.d(v,"snakeCase",function(){return eN}),n.d(v,"convertKeys",function(){return eU}),n.d(v,"withCamelCaseKeys",function(){return eB}),n.d(v,"withSnakeCaseKeys",function(){return eW}),n.d(v,"base64Encode",function(){return ez}),n.d(v,"base64EncodeURL",function(){return eV}),n.d(v,"extractUrlParams",function(){return eK}),n.d(v,"patchFetchFormat",function(){return e$}),n.d(v,"optionConsume",function(){return eH}),n.d(v,"isEmpty",function(){return eq}),n.d(v,"isAndroid",function(){return eG}),n.d(v,"isEdge",function(){return eY}),n.d(v,"isChrome",function(){return eQ}),n.d(v,"isSafari",function(){return eJ}),n.d(v,"isElement",function(){return X.a}),n.d(v,"isFunction",function(){return et.a}),n.d(v,"trim",function(){return er.a}),n.d(v,"getData",function(){return eX}),n.d(v,"setData",function(){return e0}),n.d(v,"getAttribute",function(){return e1}),n.d(v,"setAttribute",function(){return e2}),n.d(v,"removeAttribute",function(){return e5}),n.d(v,"setAttributes",function(){return e3}),n.d(v,"hasClass",function(){return e6}),n.d(v,"addClass",function(){return e4}),n.d(v,"getStyles",function(){return e8}),n.d(v,"cssExpand",function(){return e7}),n.d(v,"domStyle",function(){return e9}),n.d(v,"curCSS",function(){return te}),n.d(v,"cssValue",function(){return tt}),n.d(v,"augmentWidthOrHeight",function(){return tn}),n.d(v,"getWidthOrHeight",function(){return to}),n.d(v,"width",function(){return ti});var b=function(e){var t,n,o,i,a,s,l,u;if(null==e)return"";for(s=e+"",u="",a=void 0,o=void 0,l=0,a=o=0,l=s.length,i=0;i<l;)t=s.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&&(u+=s.slice(a,o)),u+=n,a=o=i+1),i++;return o>a&&(u+=s.slice(a,l)),u},A=function(e){var t,n,o,i,a,s;for(e=b(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,s=0,t=-1,n=0,o=e.length;n<o;)s=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*s,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function w(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 C=0,S={};function _(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 w(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=w(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+=S[e]}),t}function k(){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=_(e.sdkSemver),i=_(n),a=e.feature,s=e.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(e){return"E"}}function T(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=C.toString(2);S[t=w(t,6,"0")]=e,C++});var O=n("lodash/assign"),R=n.n(O),I=n("lodash/cloneDeep"),M=n.n(I),j=n("lodash/compact"),D=n.n(j),P=n("lodash/difference"),F=n.n(P),L=n("lodash/functions"),N=n.n(L),U=n("lodash/identity"),B=n.n(U),W=n("lodash/includes"),z=n.n(W),V=n("lodash/isArray"),K=n.n(V),$=n("lodash/isPlainObject"),H=n.n($),q=n("lodash/isString"),Z=n.n(q),G=n("lodash/merge"),Y=n.n(G),Q=n("lodash/isElement"),X=n.n(Q),ee=n("lodash/isFunction"),et=n.n(ee),en=n("lodash/trim"),er=n.n(en);function eo(e){return(eo="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 ei(){return("undefined"==typeof window?"undefined":eo(window))==="object"&&window.IntersectionObserver}function ea(){return("undefined"==typeof HTMLImageElement?"undefined":eo(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function es(e,t){try{if(ea()||!ei()){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 el="2.5.0",eu="d3jpl91pxevbkh.cloudfront.net",ec="cloudinary-a.akamaihd.net",ed="res.cloudinary.com",ef=ed,ep=1e4,eh={format:"jpg",resource_type:"video"},em=["webm","mp4","ogv"],eg={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ey={resource_type:"image",transformation:[],type:"upload"},ev={fallback_content:"",resource_type:"video",source_transformation:{},source_types:em,transformation:[],type:"upload"},eb=[{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"}}],eA={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ew={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"}]},ex={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eC=["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 eS(e){return(eS="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 e_(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!z()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var ek=function(e){return e.length&&e.every(Z.a)},eE=function(e,t){return e.filter(function(e){return e!==t})},eT=function(e){return null!=e&&!isNaN(parseFloat(e))},eO=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("")})},eR=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)},eI=Object.prototype,eM=eI.toString,ej=function(e){var t;return t=eS(e),!!e&&("object"===t||"function"===t)},eD="[object Function]",eP=function(e){return ej(e)&&eM.call(e)===eD},eF=RegExp((l="[A-Z]")+"+(?="+l+(s="[a-z]+")+")|"+l+"?"+s+"|"+l+"+|[0-9]+","g"),eL=function(e){var t=e.match(eF);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eN=function(e){var t=e.match(eF);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eU=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eq(i)||(n[i]=o);return n},eB=function(e){return eU(e,eL)},eW=function(e){return eU(e,eN)},ez="undefined"!=typeof btoa&&eP(btoa)?btoa:void 0!==i&&eP(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")},eV=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return ez(e)};function eK(e){return eC.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function e$(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eH(e,"format"))}function eH(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eq(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"==eS(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function eZ(){return navigator&&navigator.userAgent||""}function eG(){var e=eZ();return/Android/i.test(e)}function eY(){var e=eZ();return/Edg/i.test(e)}function eQ(){var e=eZ();return!eY()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eJ(){var e=eZ();return/Safari/i.test(e)&&!eQ()&&!eG()&&!eY()}var eX=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute("data-".concat(t));case!et()(e.getAttr):return e.getAttr("data-".concat(t));case!et()(e.data):return e.data(t);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t)}},e0=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!et()(e.setAttr):return e.setAttr("data-".concat(t),n);case!et()(e.data):return e.data(t,n);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t,n)}},e1=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute(t);case!et()(e.attr):return e.attr(t);case!et()(e.getAttr):return e.getAttr(t)}},e2=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute(t,n);case!et()(e.attr):return e.attr(t,n);case!et()(e.setAttr):return e.setAttr(t,n)}},e5=function(e,t){switch(!1){case null!=e:return;case!et()(e.removeAttribute):return e.removeAttribute(t);default:return e2(e,void 0)}},e3=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(e2(e,n,i)):o.push(e5(e,n));return o},e6=function(e,t){if(X()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e4=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=er()("".concat(e.className," ").concat(t))},e8=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e7=["Top","Right","Bottom","Left"];u=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 e9=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},te=function(e,t,n){var o,i,a,s,l,c;return(s=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e8(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||u(e.ownerDocument,e)||(a=e9(e,t)),tr.test(a)&&s.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},tt=function(e,t,n,o){var i;return(i=te(e,t,o),n)?parseFloat(i):i},tn=function(e,t,n,o,i){var a,s,l,u,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,s=(u="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<s;a++)l=u[a],"margin"===n&&(c+=tt(e,n+l,!0,i)),o?("content"===n&&(c-=tt(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=tt(e,"border".concat(l,"Width"),!0,i))):(c+=tt(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=tt(e,"border".concat(l,"Width"),!0,i)));return c},tr=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),to=function(e,t,n){var o,i,a,s;if(s=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e8(e),o="border-box"===tt(e,"boxSizing",!1,i),a<=0||null==a){if(((a=te(e,t,i))<0||null==a)&&(a=e.style[t]),tr.test(a))return a;s=o&&a===e.style[t],a=parseFloat(a)||0}return a+tn(e,t,n||(o?"border":"content"),s,i)},ti=function(e){return to(e,"width","content")};function ta(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 ts=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&&ta(n.prototype,e),t&&ta(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();ts.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ts.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"},ts.BOUNDRY="[ _]+";var tl=ts;function tu(e){return(tu="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 tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tf=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&&tc(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=td(i);return e=t?Reflect.construct(n,arguments,td(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tu(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}(tl);function tp(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 th=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?{}:M()(e),eR(this.configuration,tm)}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 R()(this.configuration,M()(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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tp(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 tp(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!Z()(e):return this.get(e);case!H()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return M()(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}(),tm={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:"};th.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 tg=th,ty=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[eN(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()),D()(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 tv(e){return(tv="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 tb(e,t){return(tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){return(tA=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&&tb(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=tA(i);return e=t?Reflect.construct(n,arguments,tA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tv(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[eN(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,s,l,u,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eq(o),n=!eq(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,s=0,c=eO(this.options.text,/[,\/]/g),u="";a=i.exec(c);)u+=eO(c.slice(s,a.index))+a[0],s=a.index+a[0].length;u+=eO(c.slice(s))}return e=[this.options.resourceType,l,o,u],D()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eq(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),eq(this.options.letterSpacing)&&!eT(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eq(this.options.lineSpacing)&&!eT(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eq(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eq(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eq(D()(e))){if(eq(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eq(this.options.fontSize)&&!eT(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=D()(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}(ty);function tx(e){return(tx="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 tC(e,t){return(tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t_=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&&tC(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=tS(o);return e=t?Reflect.construct(n,arguments,tS(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tx(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}(tw);function tk(e){return(tk="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 tE(e,t){return(tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tT(e){return(tT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tO=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&&tE(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=tT(i);return e=t?Reflect.construct(n,arguments,tT(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tk(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),Z()(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(eV(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}(ty);function tR(e){return(tR="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 tI(){return(tI="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=tP(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 tM(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&&tj(e,t)}function tj(e,t){return(tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tD(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=tP(e);return n=t?Reflect.construct(o,arguments,tP(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tR(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 tP(e){return(tP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tF(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tL(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 tN(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tU=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.a;tF(this,e),this.name=t,this.shortName=n,this.process=o}return tN(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=K()(e)||H()(e)||Z()(e)?!eq(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?[]:K()(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}(),tB=function(e){tM(n,e);var t=tD(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tF(this,n),(i=t.call(this,e,o,s)).sep=a,i}return tN(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eq(e))return"";if(Z()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return et()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return K()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||K()(e)?tI(tP(n.prototype),"set",this).call(this,e):tI(tP(n.prototype),"set",this).call(this,[e])}}]),n}(tU),tW=function(e){tM(n,e);var t=tD(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]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tF(this,n),(o=t.call(this,e,i,s)).sep=a,o}return tN(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eq(n))return t;if(ek(n)){var o=n.join(this.sep);eq(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return Z()(t)&&!eq(t)?"".concat(e.shortName,"_").concat(t):et()(t.serialize)?t.serialize():H()(t)&&!eq(t)?new t6(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,K()(this.origValue))?tI(tP(n.prototype),"set",this).call(this,this.origValue):tI(tP(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tU),tz=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tF(this,n),t.call(this,e,o,i)}return tN(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 tl.normalize(e)}}]),n}(tU),tV=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.a;return tF(this,n),t.call(this,e,o,i)}return tN(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tU),tK=function(e){tM(n,e);var t=tD(n);function n(){return tF(this,n),t.apply(this,arguments)}return tN(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof ty)e=this.origValue;else if(H()(this.origValue)){var e,t=eB(this.origValue);e="text"===t.resourceType||null!=t.text?new tw(t):"subtitles"===t.resourceType?new t_(t):"fetch"===t.resourceType||null!=t.url?new tO(t):new ty(t)}else e=Z()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tO(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tw(e).textStyleIdentifier()}}]),n}(tU);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 tH(e,t){return(tH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tq(e){return(tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tZ(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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tG(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 tG(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 tG(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 tY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tQ(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 tJ(e,t,n){return t&&tQ(e.prototype,t),n&&tQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(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 t0=function(){function e(t){var n,o;tY(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}),tX(t,this.otherOptions),e&&!eq(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tX(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=et()(i)?i:B.a),o[t]=new tU(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tV(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tz(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=t2(arguments),o[t]=new tB(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=t2(arguments),o[t]=new tW(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tK(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(t1)?e:eN(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),H()(e[t])&&(e[t]=M()(e[t]));return eq(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 tJ(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(Z()(t)||K()(t))&&(t={transformation:t}),(t=M()(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(t1)?"$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=eL(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return z()(t3.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,s,l,u,c,d,f,h,m,g,y,v;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),m=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,y=function(e){var t,n,o,i,a;if(!K()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var s=tZ(e[t],2);o=s[0],a=s[1],i.push("".concat(o,"_").concat(tl.normalize(a)))}return i}(null!=(s=this.get("variables"))?s.value():void 0),o=F()(o,["transformation","if","variables"]),v=[],f=[],n=o.length;t<n;t++)(d=o[t]).match(t1)?v.push(d+"_"+tl.normalize(null!=(l=this.get(d))?l.value():void 0)):f.push(null!=(u=this.get(d))?u.serialize():void 0);switch(!1){case!Z()(m):f.push(m);break;case!K()(m):c=c.concat(m)}return f=function(){var e,t,n;for(e=0,n=[],t=f.length;e<t;e++)g=f[e],(K()(g)&&!eq(g)||!K()(g)&&g)&&n.push(g);return n}(),f=v.sort().concat(y).concat(f.sort()),"if_end"===e?f.push(e):eq(e)||f.unshift(e),eq(h=D()(f).join(this.param_separator))||c.push(h),D()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,s,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],s=eN(e),z()(t3.PARAM_NAMES,s)||z()(eC,s)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eL(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||z()(["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 t3.methods}},{key:"isValidParamName",value:function(e){return t3.methods.indexOf(eL(e))>=0}}]),e}(),t1=/^\$[a-zA-Z0-9]+$/;function t2(e){var t;return(t=null!=e?e[e.length-1]:void 0,et()(t))?t:void 0}function t5(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}t0.prototype.trans_separator="/",t0.prototype.param_separator=",";var t3=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&&tH(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=tq(o);return e=t?Reflect.construct(n,arguments,tq(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 o(e){return tY(this,o),n.call(this,e)}return tJ(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",tl.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",tl.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tU.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 H()(e)?(e=R()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tU.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tU.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 t5(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t5(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":tl.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",tl.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 Z()(e)?e:K()(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")?tl.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,s,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"),s=this.chained[e],this.chained[e]=o.new().transformation([a,s]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return tf.new().setParent(this);default:return this.param(l,"if","if",function(e){return tf.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=tZ(et()(null!=e?e.split:void 0)?e.split(".."):K()(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",tl.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",tl.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",tl.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(et()(null!=e?e.split:void 0)){var o=tZ(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",tU.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")?tl.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",tl.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",tl.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",tl.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(t0);t3.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"],t3.PARAM_NAMES=t3.methods.map(eN).concat(tg.CONFIG_PARAMS);var t6=t3;function t4(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 t8=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&&(H()(t)?(o=t,this.publicId=void 0):o={}),(i=new t6(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=Z()(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){H()(e[t])&&delete e[t]}),e.attributes&&(Y()(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(!et()("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=eX(e,"src-cache")||eX(e,"src"),e6(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t4(n.prototype,e),t&&t4(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t7=["placeholder","accessibility"];function t9(e){return!!e&&!!e.match(/^https?:\//)}function ne(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function nt(e){var t,n,o,i,a,s,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=u)instanceof t6&&(t=t.toOptions()),"fetch"===(t=eR({},t,c,ey)).type&&(t.fetch_format=t.fetch_format||t.format),u=t,n=e,o=u.type,e=t9(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=(s=(a=u).cloud_name,l=a.url_suffix,s?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var f=function(e,t){if(t9(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,s,l,u,c,d,f=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t9(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),h=(s=(a=t||{}).placeholder,l=a.accessibility,u=new t6(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,t7)),l&&ex[l]&&u.chain().effect(ex[l]),s&&("predominant-color"===s&&u.getValue("width")&&u.getValue("height")&&(s+="-pixel"),(ew[s]||ew.blur).forEach(function(e){return u.chain().transformation(e)})),u.serialize()),m=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",s="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",s=""),t.cdn_subdomain&&(i="res-"+(A(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==ec&&t.secure_distribution!==ef&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(A(e)%5+1)+".":"",a=t.cname),[n,o,i,a,s].join("")}(e,t),g=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),y=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,s=e.use_root_path,l=e.shorten,u=void 0===n?"image":n;if(H()(u)&&(u=(t=u).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(u=eg["".concat(u,"/").concat(i)],i=null,null==u))throw Error("URL Suffix only supported for ".concat(Object.keys(eg).join(", ")));if(s){if("image"===u&&"upload"===i||"images"===u)u=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===u&&"upload"===i&&(u="iu",i=null),[u,i].join("/")}(t);return e=function(e,t){if(t9(e))e=ne(e);else{try{e=decodeURIComponent(e)}catch(e){}e=ne(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),D()([m,y,g,h,f,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,u);if(u.urlAnalytics){var h=k(T(u)),m="?";f.indexOf("?")>=0&&(m="&"),f="".concat(f).concat(m,"_a=").concat(h)}if(u.auth_token){var g=f.indexOf("?")>=0?"&":"?";f="".concat(f).concat(g,"__cld_token__=").concat(u.auth_token)}return f}function nn(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 nr=eq;function no(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(nr(n))return i;var a=!t.sizes&&!0===n.sizes,s=!t.srcset;if(s||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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),3!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return nn(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 nn(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],s=o[2];if([i,a,s].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(s<=0)throw"max_images must be a positive integer";1===s&&(i=a);for(var l=Math.ceil((a-i)/Math.max(s-1,1)),u=i;u<a;u+=l)n.push(u);return n.push(a),n}(t)}(e,n,o);if(s){var u,c=n.transformation,d=(u=o,e$(u=M.a(u)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eK(o);return n=n||o,i.raw_transformation=new t6([Y.a({},n),{crop:"scale",width:t}]).toString(),nt(e,i)}(e,t,c,u)," ").concat(t,"w")}).join(", "));nr(d)||(i.srcset=d)}if(a){var f=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");nr(f)||(i.sizes=f)}}return i}function ni(e){return(ni="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 na(){return(na="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=nl(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 nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=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=nl(i);return e=t?Reflect.construct(n,arguments,nl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ni(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=na(nl(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,s={};return Z()(a)?s.srcset=a:s=no(this.publicId,o,a,t),eq(s)||(delete e.width,delete e.height),Y()(e,s),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=nt(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}(t8);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 nd(){return(nd="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=np(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 nf(e,t){return(nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function np(e){return(np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nh=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&&nf(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=np(i);return e=t?Reflect.construct(n,arguments,np(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){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=nd(np(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Y()(o,no(this.publicId,o,n,a)),o.srcset||(o.srcset=nt(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}(t8);function nm(e){return(nm="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 ng(){return(ng="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=nv(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 ny(e,t){return(ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){return(nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nb=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&&ny(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=nv(i);return e=t?Reflect.construct(n,arguments,nv(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nm(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(),s=new t6(a);return s.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eK(a)).media={min_width:n,max_width:o},a.transformation=s,new nh(e.publicId,a).toHtml()}).join("")+new nu(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=ng(nv(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}(t8);function nA(e){return(nA="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 nw(){return(nw="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 nx(e,t){return(nx=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 nS=["source_types","source_transformation","fallback_content","poster","sources"],n_=["webm","mp4","ogv"],nk={format:"jpg",resource_type:"video"},nE=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&&nx(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"===nA(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=eR({},t,ev),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 K()(i)&&!eq(i)?a=i.map(function(t){var n=nt(e.publicId,eR({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eq(t)&&(t=n_),K()(t)&&(a=t.map(function(t){var o=nt(e.publicId,eR({},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={}),H()(t)){var n=null!=t.public_id?ey:nk;t=nt(t.public_id||this.publicId,eR({},t,n,this.getOptions()))}var o=nw(nC(i.prototype),"attributes",this).call(this)||{};return o=e_(o,nS),!eq(this.getOption("sources"))||eq(e)||K()(e)||(o.src=nt(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 eq(t)||(o="video/"+("ogv"===t?"ogg":t),eq(n)||(o+="; codecs="+(K()(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}(t8);function nT(e){return(nT="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 nO(e,t){return(nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nR(e){return(nR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nI=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=nR(i);return e=t?Reflect.construct(n,arguments,nR(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nT(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,R()({"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}(t8);function nM(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 nj=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))},nD=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ep,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=eA.seeThru),nj(e,"alpha")},nP=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,s=e.blobURL,l=e.videoURL,u=document.createElement("video");return u.style.visibility="hidden",u.position="absolute",u.x=0,u.y=0,u.src=s,u.setAttribute("data-video-url",l),t&&u.setAttribute("autoplay",t),n&&u.setAttribute("playsinline",n),o&&u.setAttribute("loop",o),i&&u.setAttribute("muted",i),i&&(u.muted=i),a&&u.setAttribute("poster",a),u.onload=function(){URL.revokeObjectURL(s)},u},nF=function(e,t,n,o){var i=window,a=i.seeThru,s=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,u){var c=s(function(){u({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 u({status:"error",message:"Error instantiating seeThru instance"})})},nL=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,s=n.loop,l=n.muted;return t+=".mp4",new Promise(function(u,c){var d,f,h;(d=n.externalLibraries.seeThru,f=n.max_timeout_ms,h=window.seeThru,new Promise(function(e,t){if(h)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=nP({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:s,muted:l});e.appendChild(f),nF(f,n.max_timeout_ms,n.class,n.autoplay).then(function(){u(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 nN(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,s,l;return(l=null!=(i=null!=(a=null!=(s=o.responsive_use_breakpoints)?s: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},h=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=ti(e));return t},g=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},m=function(e,t){var n;return e>(n=eX(t,"width")||0)&&(n=e,e0(t,"width",e)),n};var nU=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 tg(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 nt(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=R()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=R()({},eh,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t6(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||(e0(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new nu(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new nb(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nh(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Y()({},eh,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,R()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,R()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,R()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,R()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,R()({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 nE(e,t=eR({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=R()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,s=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Y()(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 u=function(){var e,t,n,o,l,u,c;return(e=null!=(t=null!=(n=s.responsiveConfig.responsive_debounce)?n:s.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return s.cloudinary_update("img.".concat(i),s.responsiveConfig)},c=function(){return o(),l()},u=function(){o(),a=setTimeout(c,e)},e)?u():l()};return window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eX(e,"breakpoints")||eX(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||f;return et()(o)?o(t,n):(Z()(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(eq(e))return this;t=eR({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=R()({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 t6(n).toHtmlAttributes();return e0(e,"src-cache",nt(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,s,l,u=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=K()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nM(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 nM(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 nM(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.")}():Z()(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 y=!0;if(d&&e4(n,l),!eq(i=eX(n,"src-cache")||eX(n,"src"))){i=g.call(u,i,f),t8.isResponsive(n,l)&&(0!==(o=h(n))?(/w_auto:breakpoints/.test(i)?(s=m(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(s)):y=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((s=m(s=c.call(u,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(s)):y=!1),e5(n,"width"),t.responsive_preserve_height||e5(n,"height")):y=!1);var v="lazy"===t.loading&&!u.isNativeLazyLoadSupported()&&u.isLazyLoadSupported()&&!e[0].getAttribute("src");(y||v)&&u.setAttributeIfExists(e[0],"width","data-width"),y&&!v&&e2(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&e2(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 t6.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"}),nD(o);var s=n.video_url(t,o);new Promise(function(e,t){eJ()&&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 u;l?(u=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):u=nL(e,s,o),u.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&&nN(n.prototype,e),t&&nN(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();R()(nU,y);var nB=nU;t.default={ClientHintsMetaTag:nI,Cloudinary:nB,Condition:tf,Configuration:tg,crc32:A,Expression:tl,FetchLayer:tO,HtmlTag:t8,ImageTag:nu,Layer:ty,PictureTag:nb,SubtitlesLayer:t_,TextLayer:tw,Transformation:t6,utf8_encode:b,Util:v,VideoTag:nE}},"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=s},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=u},"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=h},"lodash/isString":function(e,t){e.exports=m},"lodash/merge":function(e,t){e.exports=g},"lodash/trim":function(e,t){e.exports=y}})},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 V}});var o=n(2784),i=n(13980),a=n.n(i),s=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 u(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"],h=["publicId"],m=["children"],g=["children","accessibility","placeholder"],y=s.Util.camelCase,v=s.Util.withCamelCaseKeys,b=s.Util.isEmpty,A=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],w={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"},C=[].concat(s.Transformation.PARAM_NAMES,A).map(s.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),S=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=s.Util.withSnakeCaseKeys(t);return s.Cloudinary.new(n)},_=function(e,t){var n=e.publicId,o=d(e,h);return S(o)[t+"Tag"](n,s.Util.withSnakeCaseKeys(o))},k=function(e,t){var n=s.Util.withSnakeCaseKeys(t),o=S(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},T=function(e){var t=e.children,n=d(e,m),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=s.Util.camelCase(e),i=n[e];C[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},O=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},R=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},{})},I=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return O(e,"CloudinaryPlaceholder")})),t},M=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return O(e,"CloudinaryTransformation")}).map(function(t){var n=R(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},j=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=v(d(e,g)),((void 0===(n=s.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),u=M(o);b(u)||(l.transformation=u);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},D=(0,o.createContext)(),P=s.Util.camelCase,F=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()),R(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 u(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);F.defaultProps={innerRef:null,publicId:null},F.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[y(e[n])]=a().any;return t}(s.Transformation.PARAM_NAMES.map(P)),{innerRef:a().any,publicId:a().string}),F.contextType=D;var L=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=T(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(D.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(F);L.propTypes=l({},F.propTypes,{includeOwnBody:a().bool}),L.defaultProps={includeOwnBody:!1};var N=["children","innerRef"],U="\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(),B=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(U),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,j(e)),N);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=T(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,u=n.cloudinaryReactProps,c=_(l({},o,u),"image"),d=s.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),A.forEach(function(e){delete f[e]}),f},i.update=function(){if(i.shouldLazyLoad())s.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=k(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=k(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=I(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}u(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}(F);B.defaultProps={},B.propTypes=F.propTypes,B.propTypes.responsive=a().bool,B.propTypes.loading=a().string,B.propTypes.accessibility=a().string;var W=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t}(F);W.propTypes=F.propTypes,W.defaultProps={},W.exposesProps=!0,W.displayName="CloudinaryTransformation";var z=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],V=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=w,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=s.Util.withSnakeCaseKeys(s.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,s=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,s,t.buildMimeType(s,l))})},t.toSourceTag=function(e,n,i,a,s,l){var u=t.generateVideoUrl(e,n,i,a,s);return o.createElement("source",{key:u+l,src:u,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return s.Util.isEmpty(n)||(o+="; codecs="+(s.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,u=void 0===a?{}:a,c=e.sources,f=d(e,z),h=T(f=R(f,{})),m=h.cloudinaryProps,g=h.cloudinaryReactProps,y=h.nonCloudinaryProps;f=l({},m,g);var v=s.Util.withSnakeCaseKeys(f),b=s.Cloudinary.new(v),A=b.videoTag(n,f).attributes();A=l({},s.Util.withCamelCaseKeys(A),y);var w=j(l({},f,{children:o})),x=null;return s.Util.isArray(c)&&!s.Util.isEmpty(c)?x=t.generateUsingSources(b,n,w,c):s.Util.isArray(i)?x=t.generateUsingSourceTypes(b,n,w,u,i):A.src=t.generateVideoUrl(b,n,w,u[i]||{},i),{sources:x,tagAttributes:A}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}u(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,s=i.sources;return o.createElement("video",l({ref:this.attachRef},a),s,t,n)},t}(F);V.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},V.defaultProps={sourceTypes:s.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var K=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 u(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),s=a.tagAttributes,u=a.sources;return delete s.poster,o.createElement("audio",l({ref:t},s),u,n,i)},t}(V);K.propTypes={publicId:a().string},K.defaultProps={sourceTypes:["aac","mp3","ogg"]};var $=function(e){return null};$.propTypes={type:a().string},$.defaultProps={type:"blur"},$.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 s(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=o;var c,d,f=Array.isArray(n);return f!==Array.isArray(e)?o(n,u):f?u.arrayMerge(e,n,u):(d={},(c=u).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(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,s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},63397:function(e,t,n){"use strict";n.d(t,{gN:function(){return nb},F2:function(){return nT},l0:function(){return nA},J9:function(){return nh},U$:function(){return nv},u6:function(){return nc}});var o,i,a,s,l,u=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!==h},h="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function m(e,t){return!1!==t.clone&&t.isMergeableObject(e)?y(Array.isArray(e)?[]:{},e,t):e}function g(e,t,n){return e.concat(t).map(function(e){return m(e,n)})}function y(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||g,n.isMergeableObject=n.isMergeableObject||f;var o,i,a=Array.isArray(t);return a!==Array.isArray(e)?m(t,n):a?n.arrayMerge(e,t,n):(i={},(o=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=m(e[t],o)}),Object.keys(t).forEach(function(n){o.isMergeableObject(t[n])&&e[n]?i[n]=y(e[n],t[n],o):i[n]=m(t[n],o)}),i)}y.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return y(e,n,t)},{})};var v=y,b="object"==typeof global&&global&&global.Object===Object&&global,A="object"==typeof self&&self&&self.Object===Object&&self,w=b||A||Function("return this")(),x=w.Symbol,C=Object.prototype,S=C.hasOwnProperty,_=C.toString,k=x?x.toStringTag:void 0,T=function(e){var t=S.call(e,k),n=e[k];try{e[k]=void 0;var o=!0}catch(e){}var i=_.call(e);return o&&(t?e[k]=n:delete e[k]),i},O=Object.prototype.toString,R=x?x.toStringTag:void 0,I=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":R&&R in Object(e)?T(e):O.call(e)},M=function(e,t){return function(n){return e(t(n))}},j=M(Object.getPrototypeOf,Object),D=function(e){return null!=e&&"object"==typeof e},P=Object.prototype,F=Function.prototype.toString,L=P.hasOwnProperty,N=F.call(Object),U=function(e){if(!D(e)||"[object Object]"!=I(e))return!1;var t=j(e);if(null===t)return!0;var n=L.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&F.call(n)==N},B=function(e,t){return e===t||e!=e&&t!=t},W=function(e,t){for(var n=e.length;n--;)if(B(e[n][0],t))return n;return -1},z=Array.prototype.splice;function V(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])}}V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,n=W(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},V.prototype.get=function(e){var t=this.__data__,n=W(t,e);return n<0?void 0:t[n][1]},V.prototype.has=function(e){return W(this.__data__,e)>-1},V.prototype.set=function(e,t){var n=this.__data__,o=W(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var K=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!K(e))return!1;var t=I(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},H=w["__core-js_shared__"],q=(o=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",Z=Function.prototype.toString,G=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Y=/^\[object .+?Constructor\]$/,Q=Object.prototype,X=Function.prototype.toString,ee=Q.hasOwnProperty,et=RegExp("^"+X.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=function(e,t){var n,o=null==e?void 0:e[t];return K(n=o)&&(!q||!(q in n))&&($(n)?et:Y).test(G(n))?o:void 0},er=en(w,"Map"),eo=en(Object,"create"),ei=Object.prototype.hasOwnProperty,ea=Object.prototype.hasOwnProperty;function es(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])}}es.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},es.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},es.prototype.get=function(e){var t=this.__data__;if(eo){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ei.call(t,e)?t[e]:void 0},es.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:ea.call(t,e)},es.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=eo&&void 0===t?"__lodash_hash_undefined__":t,this};var el=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eu=function(e,t){var n=e.__data__;return el(t)?n["string"==typeof t?"string":"hash"]:n.map};function ec(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 ed(e){var t=this.__data__=new V(e);this.size=t.size}ec.prototype.clear=function(){this.size=0,this.__data__={hash:new es,map:new(er||V),string:new es}},ec.prototype.delete=function(e){var t=eu(this,e).delete(e);return this.size-=t?1:0,t},ec.prototype.get=function(e){return eu(this,e).get(e)},ec.prototype.has=function(e){return eu(this,e).has(e)},ec.prototype.set=function(e,t){var n=eu(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},ed.prototype.clear=function(){this.__data__=new V,this.size=0},ed.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ed.prototype.get=function(e){return this.__data__.get(e)},ed.prototype.has=function(e){return this.__data__.has(e)},ed.prototype.set=function(e,t){var n=this.__data__;if(n instanceof V){var o=n.__data__;if(!er||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ec(o)}return n.set(e,t),this.size=n.size,this};var ef=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e},ep=function(){try{var e=en(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),eh=function(e,t,n){"__proto__"==t&&ep?ep(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},em=Object.prototype.hasOwnProperty,eg=function(e,t,n){var o=e[t];em.call(e,t)&&B(o,n)&&(void 0!==n||t in e)||eh(e,t,n)},ey=function(e,t,n,o){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=o?o(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),i?eh(n,l,u):eg(n,l,u)}return n},ev=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},eb=function(e){return D(e)&&"[object Arguments]"==I(e)},eA=Object.prototype,ew=eA.hasOwnProperty,ex=eA.propertyIsEnumerable,eC=eb(function(){return arguments}())?eb:function(e){return D(e)&&ew.call(e,"callee")&&!ex.call(e,"callee")},eS=Array.isArray,e_="object"==typeof exports&&exports&&!exports.nodeType&&exports,ek=e_&&"object"==typeof module&&module&&!module.nodeType&&module,eE=ek&&ek.exports===e_?w.Buffer:void 0,eT=(eE?eE.isBuffer:void 0)||function(){return!1},eO=/^(?:0|[1-9]\d*)$/,eR=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&eO.test(e))&&e>-1&&e%1==0&&e<t},eI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eM={};eM["[object Float32Array]"]=eM["[object Float64Array]"]=eM["[object Int8Array]"]=eM["[object Int16Array]"]=eM["[object Int32Array]"]=eM["[object Uint8Array]"]=eM["[object Uint8ClampedArray]"]=eM["[object Uint16Array]"]=eM["[object Uint32Array]"]=!0,eM["[object Arguments]"]=eM["[object Array]"]=eM["[object ArrayBuffer]"]=eM["[object Boolean]"]=eM["[object DataView]"]=eM["[object Date]"]=eM["[object Error]"]=eM["[object Function]"]=eM["[object Map]"]=eM["[object Number]"]=eM["[object Object]"]=eM["[object RegExp]"]=eM["[object Set]"]=eM["[object String]"]=eM["[object WeakMap]"]=!1;var ej=function(e){return function(t){return e(t)}},eD="object"==typeof exports&&exports&&!exports.nodeType&&exports,eP=eD&&"object"==typeof module&&module&&!module.nodeType&&module,eF=eP&&eP.exports===eD&&b.process,eL=function(){try{var e=eP&&eP.require&&eP.require("util").types;if(e)return e;return eF&&eF.binding&&eF.binding("util")}catch(e){}}(),eN=eL&&eL.isTypedArray,eU=eN?ej(eN):function(e){return D(e)&&eI(e.length)&&!!eM[I(e)]},eB=Object.prototype.hasOwnProperty,eW=function(e,t){var n=eS(e),o=!n&&eC(e),i=!n&&!o&&eT(e),a=!n&&!o&&!i&&eU(e),s=n||o||i||a,l=s?ev(e.length,String):[],u=l.length;for(var c in e)(t||eB.call(e,c))&&!(s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||eR(c,u)))&&l.push(c);return l},ez=Object.prototype,eV=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ez)},eK=M(Object.keys,Object),e$=Object.prototype.hasOwnProperty,eH=function(e){if(!eV(e))return eK(e);var t=[];for(var n in Object(e))e$.call(e,n)&&"constructor"!=n&&t.push(n);return t},eq=function(e){return null!=e&&eI(e.length)&&!$(e)},eZ=function(e){return eq(e)?eW(e):eH(e)},eG=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eY=Object.prototype.hasOwnProperty,eQ=function(e){if(!K(e))return eG(e);var t=eV(e),n=[];for(var o in e)"constructor"==o&&(t||!eY.call(e,o))||n.push(o);return n},eJ=function(e){return eq(e)?eW(e,!0):eQ(e)},eX="object"==typeof exports&&exports&&!exports.nodeType&&exports,e0=eX&&"object"==typeof module&&module&&!module.nodeType&&module,e1=e0&&e0.exports===eX?w.Buffer:void 0,e2=e1?e1.allocUnsafe:void 0,e5=function(e,t){if(t)return e.slice();var n=e.length,o=e2?e2(n):new e.constructor(n);return e.copy(o),o},e3=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},e6=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a},e4=function(){return[]},e8=Object.prototype.propertyIsEnumerable,e7=Object.getOwnPropertySymbols,e9=e7?function(e){return null==e?[]:e6(e7(e=Object(e)),function(t){return e8.call(e,t)})}:e4,te=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e},tt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)te(t,e9(e)),e=j(e);return t}:e4,tn=function(e,t,n){var o=t(e);return eS(e)?o:te(o,n(e))},tr=function(e){return tn(e,eZ,e9)},to=function(e){return tn(e,eJ,tt)},ti=en(w,"DataView"),ta=en(w,"Promise"),ts=en(w,"Set"),tl=en(w,"WeakMap"),tu="[object Map]",tc="[object Promise]",td="[object Set]",tf="[object WeakMap]",tp="[object DataView]",th=G(ti),tm=G(er),tg=G(ta),ty=G(ts),tv=G(tl),tb=I;(ti&&tb(new ti(new ArrayBuffer(1)))!=tp||er&&tb(new er)!=tu||ta&&tb(ta.resolve())!=tc||ts&&tb(new ts)!=td||tl&&tb(new tl)!=tf)&&(tb=function(e){var t=I(e),n="[object Object]"==t?e.constructor:void 0,o=n?G(n):"";if(o)switch(o){case th:return tp;case tm:return tu;case tg:return tc;case ty:return td;case tv:return tf}return t});var tA=tb,tw=Object.prototype.hasOwnProperty,tx=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tw.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tC=w.Uint8Array,tS=function(e){var t=new e.constructor(e.byteLength);return new tC(t).set(new tC(e)),t},t_=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tk=/\w*$/,tE=function(e){var t=new e.constructor(e.source,tk.exec(e));return t.lastIndex=e.lastIndex,t},tT=x?x.prototype:void 0,tO=tT?tT.valueOf:void 0,tR=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tI=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return tS(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return t_(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 tR(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 tE(e);case"[object Symbol]":return tO?Object(tO.call(e)):{}}},tM=Object.create,tj=function(){function e(){}return function(t){if(!K(t))return{};if(tM)return tM(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tD=eL&&eL.isMap,tP=tD?ej(tD):function(e){return D(e)&&"[object Map]"==tA(e)},tF=eL&&eL.isSet,tL=tF?ej(tF):function(e){return D(e)&&"[object Set]"==tA(e)},tN="[object Arguments]",tU="[object Function]",tB="[object Object]",tW={};tW[tN]=tW["[object Array]"]=tW["[object ArrayBuffer]"]=tW["[object DataView]"]=tW["[object Boolean]"]=tW["[object Date]"]=tW["[object Float32Array]"]=tW["[object Float64Array]"]=tW["[object Int8Array]"]=tW["[object Int16Array]"]=tW["[object Int32Array]"]=tW["[object Map]"]=tW["[object Number]"]=tW[tB]=tW["[object RegExp]"]=tW["[object Set]"]=tW["[object String]"]=tW["[object Symbol]"]=tW["[object Uint8Array]"]=tW["[object Uint8ClampedArray]"]=tW["[object Uint16Array]"]=tW["[object Uint32Array]"]=!0,tW["[object Error]"]=tW[tU]=tW["[object WeakMap]"]=!1;var tz=function e(t,n,o,i,a,s){var l,u=1&n,c=2&n,d=4&n;if(o&&(l=a?o(t,i,a,s):o(t)),void 0!==l)return l;if(!K(t))return t;var f=eS(t);if(f){if(l=tx(t),!u)return e3(t,l)}else{var h,m,g,y,v=tA(t),b=v==tU||"[object GeneratorFunction]"==v;if(eT(t))return e5(t,u);if(v==tB||v==tN||b&&!a){if(l=c||b?{}:"function"!=typeof t.constructor||eV(t)?{}:tj(j(t)),!u)return c?(m=(h=l)&&ey(t,eJ(t),h),ey(t,tt(t),m)):(y=(g=l)&&ey(t,eZ(t),g),ey(t,e9(t),y))}else{if(!tW[v])return a?t:{};l=tI(t,v,u)}}s||(s=new ed);var A=s.get(t);if(A)return A;s.set(t,l),tL(t)?t.forEach(function(i){l.add(e(i,n,o,i,t,s))}):tP(t)&&t.forEach(function(i,a){l.set(a,e(i,n,o,a,t,s))});var w=d?c?to:tr:c?eJ:eZ,x=f?void 0:w(t);return ef(x||t,function(i,a){x&&(i=t[a=i]),eg(l,a,e(i,n,o,a,t,s))}),l},tV=function(e){return tz(e,4)},tK=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},t$=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==I(e)};function tH(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 s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};return n.cache=new(tH.Cache||ec),n}tH.Cache=ec;var tq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tZ=/\\(\\)?/g,tG=(a=(i=tH(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tq,function(e,n,o,i){t.push(o?i.replace(tZ,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,i),tY=1/0,tQ=function(e){if("string"==typeof e||t$(e))return e;var t=e+"";return"0"==t&&1/e==-tY?"-0":t},tJ=1/0,tX=x?x.prototype:void 0,t0=tX?tX.toString:void 0,t1=function e(t){if("string"==typeof t)return t;if(eS(t))return tK(t,e)+"";if(t$(t))return t0?t0.call(t):"";var n=t+"";return"0"==n&&1/t==-tJ?"-0":n},t2=function(e){return eS(e)?tK(e,tQ):t$(e)?[e]:e3(tG(null==e?"":t1(e)))},t5=function(e,t){},t3=n(73463),t6=n.n(t3);function t4(){return(t4=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 t8(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 t7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t9=function(e){return Array.isArray(e)&&0===e.length},ne=function(e){return"function"==typeof e},nt=function(e){return null!==e&&"object"==typeof e},nn=function(e){return"[object String]"===Object.prototype.toString.call(e)},nr=function(e){return 0===u.Children.count(e)},no=function(e){return nt(e)&&ne(e.then)};function ni(e,t,n,o){void 0===o&&(o=0);for(var i=t2(t);e&&o<i.length;)e=e[i[o++]];return o===i.length||e?void 0===e?n:e:n}function na(e,t,n){for(var o=tV(e),i=o,a=0,s=t2(t);a<s.length-1;a++){var l=s[a],u=ni(e,s.slice(0,a+1));if(u&&(nt(u)||Array.isArray(u)))i=i[l]=tV(u);else{var c=s[a+1];i=i[l]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===a?e:i)[s[a]]===n?e:(void 0===n?delete i[s[a]]:i[s[a]]=n,0===a&&void 0===n&&delete o[s[a]],o)}var ns=(0,u.createContext)(void 0);ns.displayName="FormikContext";var nl=ns.Provider,nu=ns.Consumer;function nc(){var e=(0,u.useContext)(ns);return e||t5(!1),e}function nd(e,t){switch(t.type){case"SET_VALUES":return t4({},e,{values:t.payload});case"SET_TOUCHED":return t4({},e,{touched:t.payload});case"SET_ERRORS":if(d()(e.errors,t.payload))return e;return t4({},e,{errors:t.payload});case"SET_STATUS":return t4({},e,{status:t.payload});case"SET_ISSUBMITTING":return t4({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return t4({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return t4({},e,{values:na(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return t4({},e,{touched:na(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return t4({},e,{errors:na(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return t4({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return t4({},e,{touched:function e(t,n,o,i){void 0===o&&(o=new WeakMap),void 0===i&&(i={});for(var a=0,s=Object.keys(t);a<s.length;a++){var l=s[a],u=t[l];nt(u)?o.get(u)||(o.set(u,!0),i[l]=Array.isArray(u)?[]:{},e(u,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 t4({},e,{isSubmitting:!1});default:return e}}var nf={},np={};function nh(e){var t,n,o,i,a,s,l,c,f,h,m,g,y,b,A,w,x,C,S,_,k,T,O,R,I,M,j,D,P,F,L,N,B,W,z,V,K,$,H,q,Z,G,Y,Q,X,ee,et,en,er,eo,ei,ea,es,el,eu=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(o=e.validateOnBlur)||o,s=void 0!==(a=e.validateOnMount)&&a,l=e.isInitialValid,f=void 0!==(c=e.enableReinitialize)&&c,h=e.onSubmit,m=t8(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=t4({validateOnChange:n,validateOnBlur:i,validateOnMount:s,onSubmit:h},m),y=(0,u.useRef)(g.initialValues),b=(0,u.useRef)(g.initialErrors||nf),A=(0,u.useRef)(g.initialTouched||np),w=(0,u.useRef)(g.initialStatus),x=(0,u.useRef)(!1),C=(0,u.useRef)({}),(0,u.useEffect)(function(){return x.current=!0,function(){x.current=!1}},[]),_=(S=(0,u.useReducer)(nd,{values:g.initialValues,errors:g.initialErrors||nf,touched:g.initialTouched||np,status:g.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],k=S[1],T=(0,u.useCallback)(function(e,t){return new Promise(function(n,o){var i=g.validate(e,t);null==i?n(nf):no(i)?i.then(function(e){n(e||nf)},function(e){o(e)}):n(i)})},[g.validate]),O=(0,u.useCallback)(function(e,t){var n,o,i=g.validationSchema,a=ne(i)?i(t):i,s=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)||U(t)?e(t):""!==t?t:void 0}):U(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){s.then(function(){e(nf)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return na(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,s=a;ni(t,s.path)||(t=na(t,s.path,s.message))}}return t}(n)):t(n)})})},[g.validationSchema]),R=(0,u.useCallback)(function(e,t){return new Promise(function(n){return n(C.current[e].validate(t))})},[]),I=(0,u.useCallback)(function(e){var t=Object.keys(C.current).filter(function(e){return ne(C.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return R(t,ni(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=na(e,t[o],n)),e},{})})},[R]),M=(0,u.useCallback)(function(e){return Promise.all([I(e),g.validationSchema?O(e):{},g.validate?T(e):{}]).then(function(e){var t=e[0],n=e[1],o=e[2];return v.all([t,n,o],{arrayMerge:nm})})},[g.validate,g.validationSchema,I,T,O]),j=ny(function(e){return void 0===e&&(e=_.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return x.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})}),(0,u.useEffect)(function(){s&&!0===x.current&&d()(y.current,g.initialValues)&&j(y.current)},[s,j]),D=(0,u.useCallback)(function(e){var t=e&&e.values?e.values:y.current,n=e&&e.errors?e.errors:b.current?b.current:g.initialErrors||{},o=e&&e.touched?e.touched:A.current?A.current:g.initialTouched||{},i=e&&e.status?e.status:w.current?w.current:g.initialStatus;y.current=t,b.current=n,A.current=o,w.current=i;var a=function(){k({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(g.onReset){var s=g.onReset(_.values,et);no(s)?s.then(a):a()}else a()},[g.initialErrors,g.initialStatus,g.initialTouched]),(0,u.useEffect)(function(){!0===x.current&&!d()(y.current,g.initialValues)&&f&&(y.current=g.initialValues,D(),s&&j(y.current))},[f,g.initialValues,D,s,j]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(b.current,g.initialErrors)&&(b.current=g.initialErrors||nf,k({type:"SET_ERRORS",payload:g.initialErrors||nf}))},[f,g.initialErrors]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(A.current,g.initialTouched)&&(A.current=g.initialTouched||np,k({type:"SET_TOUCHED",payload:g.initialTouched||np}))},[f,g.initialTouched]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(w.current,g.initialStatus)&&(w.current=g.initialStatus,k({type:"SET_STATUS",payload:g.initialStatus}))},[f,g.initialStatus,g.initialTouched]),P=ny(function(e){if(C.current[e]&&ne(C.current[e].validate)){var t=ni(_.values,e),n=C.current[e].validate(t);return no(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),O(_.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:ni(t,e)}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),F=(0,u.useCallback)(function(e,t){var n=t.validate;C.current[e]={validate:n}},[]),L=(0,u.useCallback)(function(e){delete C.current[e]},[]),N=ny(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?j(_.values):Promise.resolve()}),B=(0,u.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),W=ny(function(e,t){var o=ne(e)?e(_.values):e;return k({type:"SET_VALUES",payload:o}),(void 0===t?n:t)?j(o):Promise.resolve()}),z=(0,u.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=ny(function(e,t,o){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===o?n:o)?j(na(_.values,e,t)):Promise.resolve()}),K=(0,u.useCallback)(function(e,t){var n,o=t,i=e;if(!nn(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,s=a.type,l=a.name,u=a.id,c=a.value,d=a.checked,f=(a.outerHTML,a.options),h=a.multiple;o=t||l||u,i=/number|range/.test(s)?isNaN(n=parseFloat(c))?"":n:/checkbox/.test(s)?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}(ni(_.values,o),d,c):f&&h?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}o&&V(o,i)},[V,_.values]),$=ny(function(e){if(nn(e))return function(t){return K(t,e)};K(e)}),H=ny(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?j(_.values):Promise.resolve()}),q=(0,u.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,o=n.name,i=n.id;n.outerHTML,H(t||o||i,!0)},[H]),Z=ny(function(e){if(nn(e))return function(t){return q(t,e)};q(e)}),G=(0,u.useCallback)(function(e){ne(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),Y=(0,u.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Q=(0,u.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),X=ny(function(){return k({type:"SUBMIT_ATTEMPT"}),j().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=en(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),ee=ny(function(e){e&&e.preventDefault&&ne(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ne(e.stopPropagation)&&e.stopPropagation(),X().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),et={resetForm:D,validateForm:j,validateField:P,setErrors:B,setFieldError:z,setFieldTouched:H,setFieldValue:V,setStatus:Y,setSubmitting:Q,setTouched:N,setValues:W,setFormikState:G,submitForm:X},en=ny(function(){return h(_.values,et)}),er=ny(function(e){e&&e.preventDefault&&ne(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ne(e.stopPropagation)&&e.stopPropagation(),D()}),eo=(0,u.useCallback)(function(e){return{value:ni(_.values,e),error:ni(_.errors,e),touched:!!ni(_.touched,e),initialValue:ni(y.current,e),initialTouched:!!ni(A.current,e),initialError:ni(b.current,e)}},[_.errors,_.touched,_.values]),ei=(0,u.useCallback)(function(e){return{setValue:function(t,n){return V(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[V,H,z]),ea=(0,u.useCallback)(function(e){var t=nt(e),n=t?e.name:e,o=ni(_.values,n),i={name:n,value:o,onChange:$,onBlur:Z};if(t){var a=e.type,s=e.value,l=e.as,u=e.multiple;"checkbox"===a?void 0===s?i.checked=!!o:(i.checked=!!(Array.isArray(o)&&~o.indexOf(s)),i.value=s):"radio"===a?(i.checked=o===s,i.value=s):"select"===l&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[Z,$,_.values]),es=(0,u.useMemo)(function(){return!d()(y.current,_.values)},[y.current,_.values]),el=(0,u.useMemo)(function(){return void 0!==l?es?_.errors&&0===Object.keys(_.errors).length:!1!==l&&ne(l)?l(g):l:_.errors&&0===Object.keys(_.errors).length},[l,es,_.errors,g]),t4({},_,{initialValues:y.current,initialErrors:b.current,initialTouched:A.current,initialStatus:w.current,handleBlur:Z,handleChange:$,handleReset:er,handleSubmit:ee,resetForm:D,setErrors:B,setFormikState:G,setFieldTouched:H,setFieldValue:V,setFieldError:z,setStatus:Y,setSubmitting:Q,setTouched:N,setValues:W,submitForm:X,validateForm:j,validateField:P,isValid:el,dirty:es,unregisterField:L,registerField:F,getFieldProps:ea,getFieldMeta:eo,getFieldHelpers:ei,validateOnBlur:i,validateOnChange:n,validateOnMount:s})),ec=e.component,ed=e.children,ef=e.render,ep=e.innerRef;return(0,u.useImperativeHandle)(ep,function(){return eu}),(0,u.createElement)(nl,{value:eu},ec?(0,u.createElement)(ec,eu):ef?ef(eu):ed?ne(ed)?ed(eu):nr(ed)?null:u.Children.only(ed):null)}function nm(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?v(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?o[i]=v(e[i],t,n):-1===e.indexOf(t)&&o.push(t)}),o}var ng="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function ny(e){var t=(0,u.useRef)(e);return ng(function(){t.current=e}),(0,u.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 nv(e){var t=nc(),n=t.getFieldProps,o=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,s=t.unregisterField,l=nt(e)?e:{name:e},c=l.name,d=l.validate;(0,u.useEffect)(function(){return c&&a(c,{validate:d}),function(){c&&s(c)}},[a,s,c,d]),c||t5(!1);var f=(0,u.useMemo)(function(){return i(c)},[i,c]);return[n(l),o(c),f]}function nb(e){var t=e.validate,n=e.name,o=e.render,i=e.children,a=e.as,s=e.component,l=t8(e,["validate","name","render","children","as","component"]),c=t8(nc(),["validate","validationSchema"]),d=c.registerField,f=c.unregisterField;(0,u.useEffect)(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var h=c.getFieldProps(t4({name:n},l)),m=c.getFieldMeta(n),g={field:h,form:c};if(o)return o(t4({},g,{meta:m}));if(ne(i))return i(t4({},g,{meta:m}));if(s){if("string"==typeof s){var y=l.innerRef,v=t8(l,["innerRef"]);return(0,u.createElement)(s,t4({ref:y},h,v),i)}return(0,u.createElement)(s,t4({field:h,form:c},l),i)}var b=a||"input";if("string"==typeof b){var A=l.innerRef,w=t8(l,["innerRef"]);return(0,u.createElement)(b,t4({ref:A},h,w),i)}return(0,u.createElement)(b,t4({},h,l),i)}var nA=(0,u.forwardRef)(function(e,t){var n=e.action,o=t8(e,["action"]),i=nc(),a=i.handleReset,s=i.handleSubmit;return(0,u.createElement)("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:null!=n?n:"#"},o))});nA.displayName="Form";var nw=function(e,t,n){var o=n_(e),i=o[t];return o.splice(t,1),o.splice(n,0,i),o},nx=function(e,t,n){var o=n_(e),i=o[t];return o[t]=o[n],o[n]=i,o},nC=function(e,t,n){var o=n_(e);return o.splice(t,0,n),o},nS=function(e,t,n){var o=n_(e);return o[t]=n,o},n_=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(t4({},e,{length:t+1}))},nk=function(e,t){var n="function"==typeof e?e:t;return function(e){return Array.isArray(e)||nt(e)?n(n_(e)):e}},nE=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=nk(o,e),s=nk(t,e),l=na(n.values,a,e(ni(n.values,a))),u=o?i(ni(n.errors,a)):void 0,c=t?s(ni(n.touched,a)):void 0;return t9(u)&&(u=void 0),t9(c)&&(c=void 0),t4({},n,{values:l,errors:o?na(n.errors,a,u):n.errors,touched:t?na(n.touched,a,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(n_(t),[tz(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 nx(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 nw(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 nC(n,e,t)},function(t){return nC(t,e,null)},function(t){return nC(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 nS(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(t7(n)),n.pop=n.pop.bind(t7(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()(ni(e.formik.values,e.name),ni(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?n_(n):[];return t||(t=o[e]),ne(o.splice)&&o.splice(e,1),ne(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,s=t8(t.formik,["validate","validationSchema"]),l=t4({},e,{form:s,name:a});return n?(0,u.createElement)(n,l):o?o(l):i?"function"==typeof i?i(l):nr(i)?null:u.Children.only(i):null},t}(u.Component);nE.defaultProps={validateOnChange:!0};var nT=(s=function(e){return(0,u.createElement)(nu,null,function(t){return t||t5(!1),(0,u.createElement)(nE,Object.assign({},e,{formik:t}))})},l=nE.displayName||nE.name||nE.constructor&&nE.constructor.name||"Component",s.WrappedComponent=nE,s.displayName="FormikConnect("+l+")",t6()(s,nE))},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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return o.isMemo(e)?s:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var i=m(n);i&&i!==g&&e(t,i,o)}var s=d(n);f&&(s=s.concat(f(n)));for(var l=u(t),y=u(n),v=0;v<s.length;++v){var b=s[v];if(!a[b]&&!(o&&o[b])&&!(y&&y[b])&&!(l&&l[b])){var A=h(n,b);try{c(t,b,A)}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,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,d=-7,f=n?i-1:0,h=n?-1:1,m=e[t+f];for(f+=h,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+f],f+=h,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=256*s+e[t+f],f+=h,d-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,o),a-=c}return(m?-1:1)*s*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var s,l,u,c=8*a-i-1,d=(1<<c)-1,f=d>>1,h=23===i?5960464477539062e-23:0,m=o?0:a-1,g=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(s++,u/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(t*u-1)*Math.pow(2,i),s+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=255&l,m+=g,l/=256,i-=8);for(s=s<<i|l,c+=i;c>0;e[n+m]=255&s,m+=g,s/=256,c-=8);e[n+m-g]|=128*y}},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),s=n(4174),l=n(7942);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),s=n(72344),l=n(94769);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},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),s=n(79493),l=n(24150);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},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 s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=a,e.exports=s},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),s=n(4417),l=n(8605),u=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=s,c.prototype.has=l,c.prototype.set=u,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 s=e[n];t(s,n,e)&&(a[i++]=s)}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),s=n(73226),l=n(39045),u=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),f=!n&&!d&&s(e),h=!n&&!d&&!f&&u(e),m=n||d||f||h,g=m?o(e.length,String):[],y=g.length;for(var v in e)(t||c.call(e,v))&&!(m&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,y)))&&g.push(v);return g}},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 s=e[t];a.call(e,t)&&i(s,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),s=n(67993),l=n(55906),u=n(92175),c=n(51522),d=n(7680),f=n(19987),h=n(13483),m=n(76939),g=n(70940),y=n(99917),v=n(8222),b=n(78725),A=n(86152),w=n(73226),x=n(4714),C=n(29259),S=n(43679),_=n(90249),k=n(18582),T="[object Arguments]",O="[object Function]",R="[object Object]",I={};I[T]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[R]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,M,j,D,P){var F,L=1&n,N=2&n,U=4&n;if(M&&(F=D?M(t,j,D,P):M(t)),void 0!==F)return F;if(!C(t))return t;var B=A(t);if(B){if(F=y(t),!L)return c(t,F)}else{var W=g(t),z=W==O||"[object GeneratorFunction]"==W;if(w(t))return u(t,L);if(W==R||W==T||z&&!D){if(F=N||z?{}:b(t),!L)return N?f(t,l(F,t)):d(t,s(F,t))}else{if(!I[W])return D?t:{};F=v(t,W,L)}}P||(P=new o);var V=P.get(t);if(V)return V;P.set(t,F),S(t)?t.forEach(function(o){F.add(e(o,n,M,o,t,P))}):x(t)&&t.forEach(function(o,i){F.set(i,e(o,n,M,i,t,P))});var K=U?N?m:h:N?k:_,$=B?void 0:K(t);return i($||t,function(o,i){$&&(o=t[i=o]),a(F,i,e(o,n,M,i,t,P))}),F}},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),s=n(50343),l=n(47826),u=n(59950);e.exports=function(e,t,n,c){var d=-1,f=i,h=!0,m=e.length,g=[],y=t.length;if(!m)return g;n&&(t=s(t,l(n))),c?(f=a,h=!1):t.length>=200&&(f=u,h=!1,t=new o(t));t:for(;++d<m;){var v=e[d],b=null==n?v:n(v);if(v=c||0!==v?v:0,h&&b==b){for(var A=y;A--;)if(t[A]===b)continue t;g.push(v)}else f(t,b,c)||g.push(v)}return g}},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,s,l){var u=-1,c=t.length;for(a||(a=i),l||(l=[]);++u<c;){var d=t[u];n>0&&a(d)?n>1?e(d,n-1,a,s,l):o(l,d):s||(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),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s 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,s,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,s,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),s=n(17416),l=n(70940),u=n(86152),c=n(73226),d=n(77598),f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,b){var A=u(e),w=u(t),x=A?h:l(e),C=w?h:l(t);x=x==f?m:x,C=C==f?m:C;var S=x==m,_=C==m,k=x==C;if(k&&c(e)){if(!c(t))return!1;A=!0,S=!1}if(k&&!S)return b||(b=new o),A||d(e)?i(e,t,n,y,v,b):a(e,t,x,n,y,v,b);if(!(1&n)){var T=S&&g.call(e,"__wrapped__"),O=_&&g.call(t,"__wrapped__");if(T||O){var R=T?e.value():e,I=O?t.value():t;return b||(b=new o),v(R,I,n,y,b)}}return!!k&&(b||(b=new o),s(e,t,n,y,v,b))}},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 s=n.length,l=s,u=!a;if(null==e)return!l;for(e=Object(e);s--;){var c=n[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<l;){var d=(c=n[s])[0],f=e[d],h=c[1];if(u&&c[2]){if(void 0===f&&!(d in e))return!1}else{var m=new o;if(a)var g=a(f,h,d,e,t,m);if(!(void 0===g?i(h,f,3,a,m):g))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),s=n(87035),l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.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(s(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),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),s=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(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),s=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||!s.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),s=n(21401),l=n(28792),u=n(73477),c=n(33812);e.exports=function(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):o(t,s,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),s=n(25561),l=n(29259),u=n(18582),c=n(52434);e.exports=function e(t,n,d,f,h){t!==n&&a(n,function(a,u){if(h||(h=new o),l(a))s(t,n,u,d,e,f,h);else{var m=f?f(c(t,u),a,u+"",t,n,h):void 0;void 0===m&&(m=a),i(t,u,m)}},u)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),s=n(51522),l=n(78725),u=n(79631),c=n(86152),d=n(93746),f=n(73226),h=n(61049),m=n(29259),g=n(97030),y=n(77598),v=n(52434),b=n(63329);e.exports=function(e,t,n,A,w,x,C){var S=v(e,n),_=v(t,n),k=C.get(_);if(k){o(e,n,k);return}var T=x?x(S,_,n+"",e,t,C):void 0,O=void 0===T;if(O){var R=c(_),I=!R&&f(_),M=!R&&!I&&y(_);T=_,R||I||M?c(S)?T=S:d(S)?T=s(S):I?(O=!1,T=i(_,!0)):M?(O=!1,T=a(_,!0)):T=[]:g(_)||u(_)?(T=S,u(S)?T=b(S):(!m(S)||h(S))&&(T=l(_))):O=!1}O&&(C.set(_,T),w(T,_,A,x,C),C.delete(_)),o(e,n,T)}},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),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=s},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),s=n(4795),l=1/0,u=o?o.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(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),s=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[s(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),s=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(s(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,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.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 s=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?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,s=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,l&&i(n[0],n[1],l)&&(s=a<3?void 0:s,a=1),t=Object(t);++o<a;){var u=n[o];u&&e(t,u,o,s)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var u=s[e?l:++i];if(!1===n(a[u],u,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,s,l,u){var c=1&n,d=e.length,f=t.length;if(d!=f&&!(c&&f>d))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,y=!0,v=2&n?new o:void 0;for(u.set(e,t),u.set(t,e);++g<d;){var b=e[g],A=t[g];if(s)var w=c?s(A,b,g,t,e,u):s(b,A,g,e,t,u);if(void 0!==w){if(w)continue;y=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(b===e||l(b,e,n,s,u)))return v.push(t)})){y=!1;break}}else if(!(b===A||l(b,A,n,s,u))){y=!1;break}}return u.delete(e),u.delete(t),y}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),s=n(74871),l=n(75179),u=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,f,h){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 m=l;case"[object Set]":var g=1&o;if(m||(m=u),e.size!=t.size&&!g)break;var y=h.get(e);if(y)return y==t;o|=2,h.set(e,t);var v=s(m(e),m(t),o,c,f,h);return h.delete(e),v;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,s,l){var u=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!u)return!1;for(var f=d;f--;){var h=c[f];if(!(u?h in t:i.call(t,h)))return!1}var m=l.get(e),g=l.get(t);if(m&&g)return m==t&&g==e;var y=!0;l.set(e,t),l.set(t,e);for(var v=u;++f<d;){var b=e[h=c[f]],A=t[h];if(a)var w=u?a(A,b,h,t,e,l):a(b,A,h,e,t,l);if(!(void 0===w?b===A||s(b,A,n,a,l):w)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return l.delete(e),l.delete(t),y}},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],s=e[a];t[n]=[a,s,o(s)]}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,s=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=s.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,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:o(s(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),s=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:s;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),s=n(2143),l=n(93215),u=n(53366),c=n(87035),d="[object Map]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=c(o),v=c(i),b=c(a),A=c(s),w=c(l),x=u;(o&&x(new o(new ArrayBuffer(1)))!=g||i&&x(new i)!=d||a&&x(a.resolve())!=f||s&&x(new s)!=h||l&&x(new l)!=m)&&(x=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case y:return g;case v:return d;case b:return f;case A:return h;case w:return m}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),s=n(39045),l=n(61158),u=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,f=!1;++c<d;){var h=u(t[c]);if(!(f=null!=e&&n(e,h)))break;e=e[h]}return f||++c!=d?f:!!(d=null==e?0:e.length)&&l(d)&&s(h,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),s=n(70169),l=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new u(+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 u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(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),s=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(s&&e&&e[s])}},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),s=n(29259);e.exports=function(e,t,n){if(!s(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)\]/,s=/^\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))||s.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,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.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,s=-1,l=i(a.length-t,0),u=Array(l);++s<l;)u[s]=a[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=a[s];return c[t]=n(u),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 s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}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,s=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=s},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}",s="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,s].join("|")+")"+u+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,s,"["+t+"]"].join("|")+")"+(u+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),s=n(67878),l=n(16001),u=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||s(t)){i(t,u(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),s=n(93746),l=a(function(e,t){return s(e)?o(e,i(t,1,s,!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),s=n(38101),l=n(98346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?s(n):0;var d=e.length;return n<0&&(n=u(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,s=a.hasOwnProperty,l=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(e){return i(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},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,s=a&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||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),s=a&&a.isMap,l=s?i(s):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),s=Object.prototype,l=Function.prototype.toString,u=s.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=u.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),s=a&&a.isSet,l=s?i(s):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),s=a&&a.isTypedArray,l=s?i(s):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 s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};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),s=n(17297),l=n(752),u=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=s(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,u));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),s=n(33812);e.exports=function(e){return a(e)?o(s(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),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;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=u.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?s:+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),s=n(10768),l=n(51821),u=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=u(e),f=u(t),h=l(d,f),m=s(d,f)+1;return a(d,h,m).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(15214)}])},27501:function(e,t,n){"use strict";var o=n(77859),i=n(70314),a=n.n(i),s=window;s.__sentryRewritesTunnelPath__=void 0,s.SENTRY_RELEASE={id:"7142dffa3f75548a6652dbe935f6094e1e716a6f"},s.__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 s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return m}});let s="refresh",l="navigate",u="restore",c="server-patch",d="prefetch",f="fast-refresh",h="server-action";function m(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)),s=n(98047),l=n(26790),u=n(47973),c=n(49274),d=n(78074),f=n(17942),h=n(1586),m=n(70514),g=n(8250),y=n(87891),v=n(94684),b=new Set;function A(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(b.has(i))return;b.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:u,as:b,children:x,prefetch:C=null,passHref:S,replace:_,shallow:k,scroll:T,locale:O,onClick:R,onMouseEnter:I,onTouchStart:M,legacyBehavior:j=!1,...D}=e;n=x,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let P=a.default.useContext(f.RouterContext),F=a.default.useContext(h.AppRouterContext),L=null!=P?P:F,N=!P,U=!1!==C,B=null===C?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:W,as:z}=a.default.useMemo(()=>{if(!P){let e=w(u);return{href:e,as:b?w(b):e}}let[e,t]=(0,s.resolveHref)(P,u,!0);return{href:e,as:b?(0,s.resolveHref)(P,b):t||e}},[P,u,b]),V=a.default.useRef(W),K=a.default.useRef(z);j&&(o=a.default.Children.only(n));let $=j?o&&"object"==typeof o&&o.ref:t,[H,q,Z]=(0,m.useIntersection)({rootMargin:"200px"}),G=a.default.useCallback(e=>{(K.current!==z||V.current!==W)&&(Z(),K.current=z,V.current=W),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[z,$,W,Z,H]);a.default.useEffect(()=>{L&&q&&U&&A(L,W,z,{locale:O},{kind:B},N)},[z,W,q,O,U,null==P?void 0:P.locale,L,N,B]);let Y={ref:G,onClick(e){j||"function"!=typeof R||R(e),j&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,o,i,s,u,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 h=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(h):h()}(e,L,W,z,_,k,T,O,N)},onMouseEnter(e){j||"function"!=typeof I||I(e),j&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&(U||!N)&&A(L,W,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:B},N)},onTouchStart:function(e){j||"function"!=typeof M||M(e),j&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&(U||!N)&&A(L,W,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:B},N)}};if((0,c.isAbsoluteUrl)(z))Y.href=z;else if(!j||S||"a"===o.type&&!("href"in o.props)){let e=void 0!==O?O:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,g.getDomainLocale)(z,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);Y.href=t||(0,y.addBasePath)((0,d.addLocale)(z,e,null==P?void 0:P.defaultLocale))}return j?a.default.cloneElement(o,Y):(0,i.jsx)("a",{...D,...Y,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 u}});let o=n(2784),i=n(25132),a="function"==typeof IntersectionObserver,s=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)(null),m=(0,o.useCallback)(e=>{h.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=h.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=s.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),s.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(),s.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,h.current]),[m,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 s}});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 s(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,s(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";/**
|
|
691
|
+
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(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 u(e,t,n)}function u(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|g(e,t),o=s(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(M(e,Uint8Array)){var t=new Uint8Array(e);return h(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(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return h(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|m(e.length),o=s(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?s(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),s(e<0?0:0|m(e))}function f(e){for(var t=e.length<0?0:0|m(e.length),n=s(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(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 m(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(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 O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(i)return o?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var i,a,s=!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+=j[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return w(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(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function v(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function b(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:A(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):A(e,[t],n,o,i);throw TypeError("val must be string, number or Buffer")}function A(e,t,n,o,i){var a,s=1,l=e.length,u=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;s=2,l/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}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===u)return d*s}else -1!==d&&(a-=a-d),d=-1}else for(n+u>l&&(n=l-u),a=n;a>=0;a--){for(var f=!0,h=0;h<u;h++)if(c(e,a+h)!==c(t,h)){f=!1;break}if(f)return a}return -1}function w(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var a,s,l,u,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&&(u=(31&c)<<6|63&a)>127&&(d=u);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(u=(15&c)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(d=u);break;case 4:a=e[i+1],s=e[i+2],l=e[i+3],(192&a)==128&&(192&s)==128&&(192&l)==128&&(u=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&u<1114112&&(d=u)}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 C(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 S(e,t,n,o,i,a){if(n+o>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,o,a){return t=+t,n>>>=0,a||S(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,o,23,4),n+4}function k(e,t,n,o,a){return t=+t,n>>>=0,a||S(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 u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(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(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),M(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(M(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=g,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)v(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)v(this,t,t+3),v(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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):y.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(M(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,s=n-t,u=Math.min(a,s),c=this.slice(o,i),d=e.slice(t,n),f=0;f<u;++f)if(c[f]!==d[f]){a=c[f],s=d[f];break}return a<s?-1:s<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 b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(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,s,l,u,c,d,f,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var m=!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 s=0;s<o;++s){var l=parseInt(t.substr(2*s,2),16);if(l!=l)break;e[n+s]=l}return s}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,I(O(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,l=n,I(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,s,l);case"base64":return u=t,c=n,I(R(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,f=n,I(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(m)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),m=!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;C(this,e,t,n,i,0)}var a=1,s=0;for(this[t]=255&e;++s<n&&(a*=256);)this[t+s]=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;C(this,e,t,n,i,0)}var a=n-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||C(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||C(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||C(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||C(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||C(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);C(this,e,t,n,i-1,-i)}var a=0,s=1,l=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/s>>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);C(this,e,t,n,i-1,-i)}var a=n-1,s=1,l=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/s>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||C(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||C(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||C(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||C(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||C(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 _(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return k(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 s=l.isBuffer(e)?e:l.from(e,o),u=s.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%u]}return this};var T=/[^+/0-9A-Za-z-_]/g;function O(e,t){t=t||1/0;for(var n,o=e.length,i=null,a=[],s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+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 R(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(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 M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=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,s,l,u,c,d,f,h,m,g,y){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 nI}),n.d(t,"Cloudinary",function(){return nB}),n.d(t,"Condition",function(){return tf}),n.d(t,"Configuration",function(){return tg}),n.d(t,"crc32",function(){return A}),n.d(t,"Expression",function(){return tl}),n.d(t,"FetchLayer",function(){return tO}),n.d(t,"HtmlTag",function(){return t8}),n.d(t,"ImageTag",function(){return nu}),n.d(t,"Layer",function(){return ty}),n.d(t,"PictureTag",function(){return nb}),n.d(t,"SubtitlesLayer",function(){return t_}),n.d(t,"TextLayer",function(){return tw}),n.d(t,"Transformation",function(){return t6}),n.d(t,"utf8_encode",function(){return b}),n.d(t,"Util",function(){return v}),n.d(t,"VideoTag",function(){return nE});var o,s,l,u,c,d,f,h,m,g,y={};n.r(y),n.d(y,"VERSION",function(){return el}),n.d(y,"CF_SHARED_CDN",function(){return eu}),n.d(y,"OLD_AKAMAI_SHARED_CDN",function(){return ec}),n.d(y,"AKAMAI_SHARED_CDN",function(){return ed}),n.d(y,"SHARED_CDN",function(){return ef}),n.d(y,"DEFAULT_TIMEOUT_MS",function(){return ep}),n.d(y,"DEFAULT_POSTER_OPTIONS",function(){return eh}),n.d(y,"DEFAULT_VIDEO_SOURCE_TYPES",function(){return em}),n.d(y,"SEO_TYPES",function(){return eg}),n.d(y,"DEFAULT_IMAGE_PARAMS",function(){return ey}),n.d(y,"DEFAULT_VIDEO_PARAMS",function(){return ev}),n.d(y,"DEFAULT_VIDEO_SOURCES",function(){return eb}),n.d(y,"DEFAULT_EXTERNAL_LIBRARIES",function(){return eA}),n.d(y,"PLACEHOLDER_IMAGE_MODES",function(){return ew}),n.d(y,"ACCESSIBILITY_MODES",function(){return ex}),n.d(y,"URL_KEYS",function(){return eC});var v={};n.r(v),n.d(v,"getSDKAnalyticsSignature",function(){return k}),n.d(v,"getAnalyticsOptions",function(){return T}),n.d(v,"assign",function(){return R.a}),n.d(v,"cloneDeep",function(){return M.a}),n.d(v,"compact",function(){return D.a}),n.d(v,"difference",function(){return F.a}),n.d(v,"functions",function(){return N.a}),n.d(v,"identity",function(){return B.a}),n.d(v,"includes",function(){return z.a}),n.d(v,"isArray",function(){return K.a}),n.d(v,"isPlainObject",function(){return H.a}),n.d(v,"isString",function(){return Z.a}),n.d(v,"merge",function(){return Y.a}),n.d(v,"contains",function(){return z.a}),n.d(v,"isIntersectionObserverSupported",function(){return ei}),n.d(v,"isNativeLazyLoadSupported",function(){return ea}),n.d(v,"detectIntersection",function(){return es}),n.d(v,"omit",function(){return e_}),n.d(v,"allStrings",function(){return ek}),n.d(v,"without",function(){return eE}),n.d(v,"isNumberLike",function(){return eT}),n.d(v,"smartEscape",function(){return eO}),n.d(v,"defaults",function(){return eR}),n.d(v,"objectProto",function(){return eI}),n.d(v,"objToString",function(){return eM}),n.d(v,"isObject",function(){return ej}),n.d(v,"funcTag",function(){return eD}),n.d(v,"reWords",function(){return eF}),n.d(v,"camelCase",function(){return eL}),n.d(v,"snakeCase",function(){return eN}),n.d(v,"convertKeys",function(){return eU}),n.d(v,"withCamelCaseKeys",function(){return eB}),n.d(v,"withSnakeCaseKeys",function(){return eW}),n.d(v,"base64Encode",function(){return ez}),n.d(v,"base64EncodeURL",function(){return eV}),n.d(v,"extractUrlParams",function(){return eK}),n.d(v,"patchFetchFormat",function(){return e$}),n.d(v,"optionConsume",function(){return eH}),n.d(v,"isEmpty",function(){return eq}),n.d(v,"isAndroid",function(){return eG}),n.d(v,"isEdge",function(){return eY}),n.d(v,"isChrome",function(){return eQ}),n.d(v,"isSafari",function(){return eJ}),n.d(v,"isElement",function(){return X.a}),n.d(v,"isFunction",function(){return et.a}),n.d(v,"trim",function(){return er.a}),n.d(v,"getData",function(){return eX}),n.d(v,"setData",function(){return e0}),n.d(v,"getAttribute",function(){return e1}),n.d(v,"setAttribute",function(){return e2}),n.d(v,"removeAttribute",function(){return e5}),n.d(v,"setAttributes",function(){return e3}),n.d(v,"hasClass",function(){return e6}),n.d(v,"addClass",function(){return e4}),n.d(v,"getStyles",function(){return e8}),n.d(v,"cssExpand",function(){return e7}),n.d(v,"domStyle",function(){return e9}),n.d(v,"curCSS",function(){return te}),n.d(v,"cssValue",function(){return tt}),n.d(v,"augmentWidthOrHeight",function(){return tn}),n.d(v,"getWidthOrHeight",function(){return to}),n.d(v,"width",function(){return ti});var b=function(e){var t,n,o,i,a,s,l,u;if(null==e)return"";for(s=e+"",u="",a=void 0,o=void 0,l=0,a=o=0,l=s.length,i=0;i<l;)t=s.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&&(u+=s.slice(a,o)),u+=n,a=o=i+1),i++;return o>a&&(u+=s.slice(a,l)),u},A=function(e){var t,n,o,i,a,s;for(e=b(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,s=0,t=-1,n=0,o=e.length;n<o;)s=(t^e.charCodeAt(n))&255,t=t>>>8^(a="0x"+i.substr(9*s,8)),n++;return(t^=-1)<0&&(t+=4294967296),t};function w(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 C=0,S={};function _(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 w(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((o=w(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+=S[e]}),t}function k(){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=_(e.sdkSemver),i=_(n),a=e.feature,s=e.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(e){return"E"}}function T(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=C.toString(2);S[t=w(t,6,"0")]=e,C++});var O=n("lodash/assign"),R=n.n(O),I=n("lodash/cloneDeep"),M=n.n(I),j=n("lodash/compact"),D=n.n(j),P=n("lodash/difference"),F=n.n(P),L=n("lodash/functions"),N=n.n(L),U=n("lodash/identity"),B=n.n(U),W=n("lodash/includes"),z=n.n(W),V=n("lodash/isArray"),K=n.n(V),$=n("lodash/isPlainObject"),H=n.n($),q=n("lodash/isString"),Z=n.n(q),G=n("lodash/merge"),Y=n.n(G),Q=n("lodash/isElement"),X=n.n(Q),ee=n("lodash/isFunction"),et=n.n(ee),en=n("lodash/trim"),er=n.n(en);function eo(e){return(eo="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 ei(){return("undefined"==typeof window?"undefined":eo(window))==="object"&&window.IntersectionObserver}function ea(){return("undefined"==typeof HTMLImageElement?"undefined":eo(HTMLImageElement))==="object"&&HTMLImageElement.prototype.loading}function es(e,t){try{if(ea()||!ei()){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 el="2.5.0",eu="d3jpl91pxevbkh.cloudfront.net",ec="cloudinary-a.akamaihd.net",ed="res.cloudinary.com",ef=ed,ep=1e4,eh={format:"jpg",resource_type:"video"},em=["webm","mp4","ogv"],eg={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},ey={resource_type:"image",transformation:[],type:"upload"},ev={fallback_content:"",resource_type:"video",source_transformation:{},source_types:em,transformation:[],type:"upload"},eb=[{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"}}],eA={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},ew={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"}]},ex={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},eC=["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 eS(e){return(eS="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 e_(e,t){var n=Object.keys(e=e||{}).filter(function(e){return!z()(t,e)}),o={};return n.forEach(function(t){return o[t]=e[t]}),o}var ek=function(e){return e.length&&e.every(Z.a)},eE=function(e,t){return e.filter(function(e){return e!==t})},eT=function(e){return null!=e&&!isNaN(parseFloat(e))},eO=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("")})},eR=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)},eI=Object.prototype,eM=eI.toString,ej=function(e){var t;return t=eS(e),!!e&&("object"===t||"function"===t)},eD="[object Function]",eP=function(e){return ej(e)&&eM.call(e)===eD},eF=RegExp((l="[A-Z]")+"+(?="+l+(s="[a-z]+")+")|"+l+"?"+s+"|"+l+"+|[0-9]+","g"),eL=function(e){var t=e.match(eF);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},eN=function(e){var t=e.match(eF);return(t=t.map(function(e){return e.toLocaleLowerCase()})).join("_")},eU=function(e,t){var n,o;for(var i in n={},e)o=e[i],t&&(i=t(i)),eq(i)||(n[i]=o);return n},eB=function(e){return eU(e,eL)},eW=function(e){return eU(e,eN)},ez="undefined"!=typeof btoa&&eP(btoa)?btoa:void 0!==i&&eP(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")},eV=function(e){try{e=decodeURI(e)}finally{e=encodeURI(e)}return ez(e)};function eK(e){return eC.reduce(function(t,n){return null!=e[n]&&(t[n]=e[n]),t},{})}function e$(e){null==e&&(e={}),"fetch"===e.type&&null==e.fetch_format&&(e.fetch_format=eH(e,"format"))}function eH(e,t,n){var o=e[t];return(delete e[t],null!=o)?o:n}function eq(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"==eS(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0}function eZ(){return navigator&&navigator.userAgent||""}function eG(){var e=eZ();return/Android/i.test(e)}function eY(){var e=eZ();return/Edg/i.test(e)}function eQ(){var e=eZ();return!eY()&&(/Chrome/i.test(e)||/CriOS/i.test(e))}function eJ(){var e=eZ();return/Safari/i.test(e)&&!eQ()&&!eG()&&!eY()}var eX=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute("data-".concat(t));case!et()(e.getAttr):return e.getAttr("data-".concat(t));case!et()(e.data):return e.data(t);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t)}},e0=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute("data-".concat(t),n);case!et()(e.setAttr):return e.setAttr("data-".concat(t),n);case!et()(e.data):return e.data(t,n);case!(et()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&X()(e)):return jQuery(e).data(t,n)}},e1=function(e,t){switch(!1){case null!=e:return;case!et()(e.getAttribute):return e.getAttribute(t);case!et()(e.attr):return e.attr(t);case!et()(e.getAttr):return e.getAttr(t)}},e2=function(e,t,n){switch(!1){case null!=e:return;case!et()(e.setAttribute):return e.setAttribute(t,n);case!et()(e.attr):return e.attr(t,n);case!et()(e.setAttr):return e.setAttr(t,n)}},e5=function(e,t){switch(!1){case null!=e:return;case!et()(e.removeAttribute):return e.removeAttribute(t);default:return e2(e,void 0)}},e3=function(e,t){var n,o,i;for(n in o=[],t)null!=(i=t[n])?o.push(e2(e,n,i)):o.push(e5(e,n));return o},e6=function(e,t){if(X()(e))return e.className.match(new RegExp("\\b".concat(t,"\\b")))},e4=function(e,t){if(!e.className.match(new RegExp("\\b".concat(t,"\\b"))))return e.className=er()("".concat(e.className," ").concat(t))},e8=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)},e7=["Top","Right","Bottom","Left"];u=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 e9=function(e,t){if(!(!e||3===e.nodeType||8===e.nodeType||!e.style))return e.style[t]},te=function(e,t,n){var o,i,a,s,l,c;return(s=/^margin/,c=void 0,i=void 0,o=void 0,a=void 0,l=e.style,(n=n||e8(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||u(e.ownerDocument,e)||(a=e9(e,t)),tr.test(a)&&s.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},tt=function(e,t,n,o){var i;return(i=te(e,t,o),n)?parseFloat(i):i},tn=function(e,t,n,o,i){var a,s,l,u,c;if(n===(o?"border":"content"))return 0;for(a=0,c=0,s=(u="width"===t?["Right","Left"]:["Top","Bottom"]).length;a<s;a++)l=u[a],"margin"===n&&(c+=tt(e,n+l,!0,i)),o?("content"===n&&(c-=tt(e,"padding".concat(l),!0,i)),"margin"!==n&&(c-=tt(e,"border".concat(l,"Width"),!0,i))):(c+=tt(e,"padding".concat(l),!0,i),"padding"!==n&&(c+=tt(e,"border".concat(l,"Width"),!0,i)));return c},tr=RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),to=function(e,t,n){var o,i,a,s;if(s=!0,a="width"===t?e.offsetWidth:e.offsetHeight,i=e8(e),o="border-box"===tt(e,"boxSizing",!1,i),a<=0||null==a){if(((a=te(e,t,i))<0||null==a)&&(a=e.style[t]),tr.test(a))return a;s=o&&a===e.style[t],a=parseFloat(a)||0}return a+tn(e,t,n||(o?"border":"content"),s,i)},ti=function(e){return to(e,"width","content")};function ta(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 ts=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&&ta(n.prototype,e),t&&ta(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();ts.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ts.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"},ts.BOUNDRY="[ _]+";var tl=ts;function tu(e){return(tu="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 tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tf=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&&tc(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=td(i);return e=t?Reflect.construct(n,arguments,td(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tu(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}(tl);function tp(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 th=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?{}:M()(e),eR(this.configuration,tm)}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 R()(this.configuration,M()(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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tp(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 tp(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!Z()(e):return this.get(e);case!H()(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return M()(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}(),tm={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:"};th.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 tg=th,ty=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[eN(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()),D()(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 tv(e){return(tv="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 tb(e,t){return(tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){return(tA=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&&tb(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=tA(i);return e=t?Reflect.construct(n,arguments,tA(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tv(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[eN(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,s,l,u,c;if(l=this.textStyleIdentifier(),null!=this.options.publicId&&(o=this.getFullPublicId()),null!=this.options.text){if(t=!eq(o),n=!eq(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,s=0,c=eO(this.options.text,/[,\/]/g),u="";a=i.exec(c);)u+=eO(c.slice(s,a.index))+a[0],s=a.index+a[0].length;u+=eO(c.slice(s))}return e=[this.options.resourceType,l,o,u],D()(e).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(!eq(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),eq(this.options.letterSpacing)&&!eT(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),eq(this.options.lineSpacing)&&!eT(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),eq(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),eq(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!eq(D()(e))){if(eq(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);if(eq(this.options.fontSize)&&!eT(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=D()(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}(ty);function tx(e){return(tx="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 tC(e,t){return(tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var t_=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&&tC(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=tS(o);return e=t?Reflect.construct(n,arguments,tS(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tx(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}(tw);function tk(e){return(tk="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 tE(e,t){return(tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tT(e){return(tT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tO=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&&tE(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=tT(i);return e=t?Reflect.construct(n,arguments,tT(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tk(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),Z()(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(eV(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}(ty);function tR(e){return(tR="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 tI(){return(tI="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=tP(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 tM(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&&tj(e,t)}function tj(e,t){return(tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tD(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=tP(e);return n=t?Reflect.construct(o,arguments,tP(this).constructor):o.apply(this,arguments),function(e,t){if(t&&("object"===tR(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 tP(e){return(tP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tF(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tL(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 tN(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tU=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.a;tF(this,e),this.name=t,this.shortName=n,this.process=o}return tN(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(e=this.value(),t=K()(e)||H()(e)||Z()(e)?!eq(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?[]:K()(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}(),tB=function(e){tM(n,e);var t=tD(n);function n(e,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tF(this,n),(i=t.call(this,e,o,s)).sep=a,i}return tN(n,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if(eq(e))return"";if(Z()(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return et()(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return K()(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||K()(e)?tI(tP(n.prototype),"set",this).call(this,e):tI(tP(n.prototype),"set",this).call(this,[e])}}]),n}(tU),tW=function(e){tM(n,e);var t=tD(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]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return tF(this,n),(o=t.call(this,e,i,s)).sep=a,o}return tN(n,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if(eq(n))return t;if(ek(n)){var o=n.join(this.sep);eq(o)||(t="".concat(this.shortName,"_").concat(o))}else t=n.map(function(t){return Z()(t)&&!eq(t)?"".concat(e.shortName,"_").concat(t):et()(t.serialize)?t.serialize():H()(t)&&!eq(t)?new t6(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,K()(this.origValue))?tI(tP(n.prototype),"set",this).call(this,this.origValue):tI(tP(n.prototype),"set",this).call(this,[this.origValue])}}]),n}(tU),tz=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.norm_range_value;return tF(this,n),t.call(this,e,o,i)}return tN(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 tl.normalize(e)}}]),n}(tU),tV=function(e){tM(n,e);var t=tD(n);function n(e,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:B.a;return tF(this,n),t.call(this,e,o,i)}return tN(n,[{key:"serialize",value:function(){return this.value()}}]),n}(tU),tK=function(e){tM(n,e);var t=tD(n);function n(){return tF(this,n),t.apply(this,arguments)}return tN(n,[{key:"value",value:function(){if(null==this.origValue)return"";if(this.origValue instanceof ty)e=this.origValue;else if(H()(this.origValue)){var e,t=eB(this.origValue);e="text"===t.resourceType||null!=t.text?new tw(t):"subtitles"===t.resourceType?new t_(t):"fetch"===t.resourceType||null!=t.url?new tO(t):new ty(t)}else e=Z()(this.origValue)?/^fetch:.+/.test(this.origValue)?new tO(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new tw(e).textStyleIdentifier()}}]),n}(tU);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 tH(e,t){return(tH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tq(e){return(tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tZ(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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tG(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 tG(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 tG(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 tY(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tQ(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 tJ(e,t,n){return t&&tQ(e.prototype,t),n&&tQ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(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 t0=function(){function e(t){var n,o;tY(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}),tX(t,this.otherOptions),e&&!eq(this.chained)){var n=this.chained.map(function(e){return e.toOptions()});n.push(t),tX(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=et()(i)?i:B.a),o[t]=new tU(t,n,a).set(e),this},this.rawParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tV(t,n,a).set(e),this},this.rangeParam=function(e,t,n,i,a){return a=t2(arguments),o[t]=new tz(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=t2(arguments),o[t]=new tB(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=t2(arguments),o[t]=new tW(t,n,i,a).set(e),this},this.layerParam=function(e,t,n){return o[t]=new tK(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(t1)?e:eN(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},o)e[t]=o[t].value(),H()(e[t])&&(e[t]=M()(e[t]));return eq(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 tJ(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(Z()(t)||K()(t))&&(t={transformation:t}),(t=M()(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(t1)?"$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=eL(e);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return z()(t3.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,s,l,u,c,d,f,h,m,g,y,v;for(t=0,c=this.chained.map(function(e){return e.serialize()}),o=this.keys(),m=null!=(i=this.get("transformation"))?i.serialize():void 0,e=null!=(a=this.get("if"))?a.serialize():void 0,y=function(e){var t,n,o,i,a;if(!K()(e))return e;for(t=0,i=[],n=e.length;t<n;t++){var s=tZ(e[t],2);o=s[0],a=s[1],i.push("".concat(o,"_").concat(tl.normalize(a)))}return i}(null!=(s=this.get("variables"))?s.value():void 0),o=F()(o,["transformation","if","variables"]),v=[],f=[],n=o.length;t<n;t++)(d=o[t]).match(t1)?v.push(d+"_"+tl.normalize(null!=(l=this.get(d))?l.value():void 0)):f.push(null!=(u=this.get(d))?u.serialize():void 0);switch(!1){case!Z()(m):f.push(m);break;case!K()(m):c=c.concat(m)}return f=function(){var e,t,n;for(e=0,n=[],t=f.length;e<t;e++)g=f[e],(K()(g)&&!eq(g)||!K()(g)&&g)&&n.push(g);return n}(),f=v.sort().concat(y).concat(f.sort()),"if_end"===e?f.push(e):eq(e)||f.unshift(e),eq(h=D()(f).join(this.param_separator))||c.push(h),D()(c).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var e,t,n,o,i,a,s,l=this;return t={},Object.keys(this.otherOptions).forEach(function(e){i=l.otherOptions[e],s=eN(e),z()(t3.PARAM_NAMES,s)||z()(eC,s)||(t[/^html_/.test(e)?e.slice(5):e]=i)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[eL(e.slice(5))]=l.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||z()(["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 t3.methods}},{key:"isValidParamName",value:function(e){return t3.methods.indexOf(eL(e))>=0}}]),e}(),t1=/^\$[a-zA-Z0-9]+$/;function t2(e){var t;return(t=null!=e?e[e.length-1]:void 0,et()(t))?t:void 0}function t5(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0}t0.prototype.trans_separator="/",t0.prototype.param_separator=",";var t3=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&&tH(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=tq(o);return e=t?Reflect.construct(n,arguments,tq(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 o(e){return tY(this,o),n.call(this,e)}return tJ(o,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",tl.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",tl.normalize)}},{key:"background",value:function(e){return this.param(e,"background","b",tU.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 H()(e)?(e=R()({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(tU.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",tU.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 t5(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=t5(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":tl.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",tl.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 Z()(e)?e:K()(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")?tl.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,s,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"),s=this.chained[e],this.chained[e]=o.new().transformation([a,s]),"else"===t));e=n+=-1);return this.param(l,"if","if");case"":return tf.new().setParent(this);default:return this.param(l,"if","if",function(e){return tf.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=tZ(et()(null!=e?e.split:void 0)?e.split(".."):K()(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",tl.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",tl.normalize)}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",tl.normalize)}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation")}},{key:"size",value:function(e){var t,n;if(et()(null!=e?e.split:void 0)){var o=tZ(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",tU.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")?tl.normalize(e):null})}},{key:"x",value:function(e){return this.param(e,"x","x",tl.normalize)}},{key:"y",value:function(e){return this.param(e,"y","y",tl.normalize)}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",tl.normalize)}}],[{key:"new",value:function(e){return new o(e)}}]),o}(t0);t3.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"],t3.PARAM_NAMES=t3.methods.map(eN).concat(tg.CONFIG_PARAMS);var t6=t3;function t4(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 t8=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&&(H()(t)?(o=t,this.publicId=void 0):o={}),(i=new t6(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=Z()(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){H()(e[t])&&delete e[t]}),e.attributes&&(Y()(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(!et()("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=eX(e,"src-cache")||eX(e,"src"),e6(e,t)&&/\bw_auto\b/.exec(n)}}],e&&t4(n.prototype,e),t&&t4(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),t7=["placeholder","accessibility"];function t9(e){return!!e&&!!e.match(/^https?:\//)}function ne(e){return encodeURIComponent(e).replace(/%3A/g,":").replace(/%2F/g,"/")}function nt(e){var t,n,o,i,a,s,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;(t=u)instanceof t6&&(t=t.toOptions()),"fetch"===(t=eR({},t,c,ey)).type&&(t.fetch_format=t.fetch_format||t.format),u=t,n=e,o=u.type,e=t9(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=(s=(a=u).cloud_name,l=a.url_suffix,s?l&&l.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name");if(d)throw d;var f=function(e,t){if(t9(e)&&("upload"===t.type||"asset"===t.type))return e;var n,o,i,a,s,l,u,c,d,f=(n=e,o=t.force_version||void 0===t.force_version,i=0>n.indexOf("/")||n.match(/^v[0-9]+/)||t9(n)||t.version,o&&!i&&(t.version=1),t.version?"v".concat(t.version):""),h=(s=(a=t||{}).placeholder,l=a.accessibility,u=new t6(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,t7)),l&&ex[l]&&u.chain().effect(ex[l]),s&&("predominant-color"===s&&u.getValue("width")&&u.getValue("height")&&(s+="-pixel"),(ew[s]||ew.blur).forEach(function(e){return u.chain().transformation(e)})),u.serialize()),m=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",s="/"+t.cloud_name;return t.protocol&&(n=t.protocol+"//"),t.private_cdn&&(o=t.cloud_name+"-",s=""),t.cdn_subdomain&&(i="res-"+(A(e)%5+1)),t.secure?(n="https://",!1===t.secure_cdn_subdomain&&(i="res"),null!=t.secure_distribution&&t.secure_distribution!==ec&&t.secure_distribution!==ef&&(o="",i="",a=t.secure_distribution)):t.cname&&(n="http://",o="",i=t.cdn_subdomain?"a"+(A(e)%5+1)+".":"",a=t.cname),[n,o,i,a,s].join("")}(e,t),g=(d=!(c=t.signature)||0===c.indexOf("s--")&&"--"===c.substr(-2),delete t.signature,d?c:"s--".concat(c,"--")),y=function(e){var t,n=e.resource_type,o=e.type,i=void 0===o?"upload":o,a=e.url_suffix,s=e.use_root_path,l=e.shorten,u=void 0===n?"image":n;if(H()(u)&&(u=(t=u).resource_type,i=t.type,l=t.shorten),null==i&&(i="upload"),null!=a&&(u=eg["".concat(u,"/").concat(i)],i=null,null==u))throw Error("URL Suffix only supported for ".concat(Object.keys(eg).join(", ")));if(s){if("image"===u&&"upload"===i||"images"===u)u=null,i=null;else throw Error("Root path only supported for image/upload")}return l&&"image"===u&&"upload"===i&&(u="iu",i=null),[u,i].join("/")}(t);return e=function(e,t){if(t9(e))e=ne(e);else{try{e=decodeURIComponent(e)}catch(e){}e=ne(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),D()([m,y,g,h,f,e]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}(e,u);if(u.urlAnalytics){var h=k(T(u)),m="?";f.indexOf("?")>=0&&(m="&"),f="".concat(f).concat(m,"_a=").concat(h)}if(u.auth_token){var g=f.indexOf("?")>=0?"&":"?";f="".concat(f).concat(g,"__cld_token__=").concat(u.auth_token)}return f}function nn(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 nr=eq;function no(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(nr(n))return i;var a=!t.sizes&&!0===n.sizes,s=!t.srcset;if(s||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=[],s=!0,l=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),3!==a.length);s=!0);}catch(e){l=!0,o=e}finally{try{s||null==i.return||i.return()}finally{if(l)throw o}}return a}}(t,3)||function(e,t){if(e){if("string"==typeof e)return nn(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 nn(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],s=o[2];if([i,a,s].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(s<=0)throw"max_images must be a positive integer";1===s&&(i=a);for(var l=Math.ceil((a-i)/Math.max(s-1,1)),u=i;u<a;u+=l)n.push(u);return n.push(a),n}(t)}(e,n,o);if(s){var u,c=n.transformation,d=(u=o,e$(u=M.a(u)),l.map(function(t){return"".concat(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=eK(o);return n=n||o,i.raw_transformation=new t6([Y.a({},n),{crop:"scale",width:t}]).toString(),nt(e,i)}(e,t,c,u)," ").concat(t,"w")}).join(", "));nr(d)||(i.srcset=d)}if(a){var f=null==l?"":l.map(function(e){return"(max-width: ".concat(e,"px) ").concat(e,"px")}).join(", ");nr(f)||(i.sizes=f)}}return i}function ni(e){return(ni="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 na(){return(na="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=nl(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 nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=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=nl(i);return e=t?Reflect.construct(n,arguments,nl(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===ni(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=na(nl(i.prototype),"attributes",this).call(this)||{},t=this.getOptions();var e,t,n,o=this.getOption("attributes")||{},a=this.getOption("srcset")||o.srcset,s={};return Z()(a)?s.srcset=a:s=no(this.publicId,o,a,t),eq(s)||(delete e.width,delete e.height),Y()(e,s),null==e[n=t.responsive&&!t.client_hints?"data-src":"src"]&&(e[n]=nt(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}(t8);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 nd(){return(nd="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=np(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 nf(e,t){return(nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function np(e){return(np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nh=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&&nf(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=np(i);return e=t?Reflect.construct(n,arguments,np(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){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=nd(np(i.prototype),"attributes",this).call(this)||{},a=this.getOptions();return Y()(o,no(this.publicId,o,n,a)),o.srcset||(o.srcset=nt(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}(t8);function nm(e){return(nm="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 ng(){return(ng="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=nv(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 ny(e,t){return(ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nv(e){return(nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nb=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&&ny(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=nv(i);return e=t?Reflect.construct(n,arguments,nv(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nm(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(),s=new t6(a);return s.chain().fromOptions("string"==typeof i?{raw_transformation:i}:i),(a=eK(a)).media={min_width:n,max_width:o},a.transformation=s,new nh(e.publicId,a).toHtml()}).join("")+new nu(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var e=ng(nv(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}(t8);function nA(e){return(nA="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 nw(){return(nw="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 nx(e,t){return(nx=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 nS=["source_types","source_transformation","fallback_content","poster","sources"],n_=["webm","mp4","ogv"],nk={format:"jpg",resource_type:"video"},nE=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&&nx(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"===nA(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=eR({},t,ev),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 K()(i)&&!eq(i)?a=i.map(function(t){var n=nt(e.publicId,eR({},t.transformations||{},{resource_type:"video",format:t.type}),e.getOptions());return e.createSourceTag(n,t.type,t.codecs)}):(eq(t)&&(t=n_),K()(t)&&(a=t.map(function(t){var o=nt(e.publicId,eR({},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={}),H()(t)){var n=null!=t.public_id?ey:nk;t=nt(t.public_id||this.publicId,eR({},t,n,this.getOptions()))}var o=nw(nC(i.prototype),"attributes",this).call(this)||{};return o=e_(o,nS),!eq(this.getOption("sources"))||eq(e)||K()(e)||(o.src=nt(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 eq(t)||(o="video/"+("ogv"===t?"ogg":t),eq(n)||(o+="; codecs="+(K()(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}(t8);function nT(e){return(nT="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 nO(e,t){return(nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nR(e){return(nR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nI=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=nR(i);return e=t?Reflect.construct(n,arguments,nR(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===nT(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,R()({"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}(t8);function nM(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 nj=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))},nD=function(e){e.autoplay=!0,e.muted=!0,e.controls=!1,e.max_timeout_ms=e.max_timeout_ms||ep,e.class=e.class||"",e.class+=" cld-transparent-video",e.externalLibraries=e.externalLibraries||{},e.externalLibraries.seeThru||(e.externalLibraries.seeThru=eA.seeThru),nj(e,"alpha")},nP=function(e){var t=e.autoplay,n=e.playsinline,o=e.loop,i=e.muted,a=e.poster,s=e.blobURL,l=e.videoURL,u=document.createElement("video");return u.style.visibility="hidden",u.position="absolute",u.x=0,u.y=0,u.src=s,u.setAttribute("data-video-url",l),t&&u.setAttribute("autoplay",t),n&&u.setAttribute("playsinline",n),o&&u.setAttribute("loop",o),i&&u.setAttribute("muted",i),i&&(u.muted=i),a&&u.setAttribute("poster",a),u.onload=function(){URL.revokeObjectURL(s)},u},nF=function(e,t,n,o){var i=window,a=i.seeThru,s=i.setTimeout,l=i.clearTimeout;return new Promise(function(i,u){var c=s(function(){u({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 u({status:"error",message:"Error instantiating seeThru instance"})})},nL=function(e,t,n){var o=n.poster,i=n.autoplay,a=n.playsinline,s=n.loop,l=n.muted;return t+=".mp4",new Promise(function(u,c){var d,f,h;(d=n.externalLibraries.seeThru,f=n.max_timeout_ms,h=window.seeThru,new Promise(function(e,t){if(h)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=nP({blobURL:d.payload.blobURL,videoURL:t,poster:o,autoplay:i,playsinline:a,loop:s,muted:l});e.appendChild(f),nF(f,n.max_timeout_ms,n.class,n.autoplay).then(function(){u(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 nN(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,s,l;return(l=null!=(i=null!=(a=null!=(s=o.responsive_use_breakpoints)?s: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},h=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=ti(e));return t},g=function(e,t){return e.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(t))},m=function(e,t){var n;return e>(n=eX(t,"width")||0)&&(n=e,e0(t,"width",e)),n};var nU=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 tg(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 nt(e,t,this.config())}},{key:"video_url",value:function(e,t){return t=R()({resource_type:"video"},t),this.url(e,t)}},{key:"video_thumbnail_url",value:function(e,t){return t=R()({},eh,t),this.url(e,t)}},{key:"transformation_string",value:function(e){return new t6(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||(e0(n,"src-cache",this.url(e,i)),this.cloudinary_update(n,i)),n}},{key:"imageTag",value:function(e,t){var n;return(n=new nu(e,this.config())).transformation().fromOptions(t),n}},{key:"pictureTag",value:function(e,t,n){var o;return(o=new nb(e,this.config(),n)).transformation().fromOptions(t),o}},{key:"sourceTag",value:function(e,t){var n;return(n=new nh(e,this.config())).transformation().fromOptions(t),n}},{key:"video_thumbnail",value:function(e,t){return this.image(e,Y()({},eh,t))}},{key:"facebook_profile_image",value:function(e,t){return this.image(e,R()({type:"facebook"},t))}},{key:"twitter_profile_image",value:function(e,t){return this.image(e,R()({type:"twitter"},t))}},{key:"twitter_name_profile_image",value:function(e,t){return this.image(e,R()({type:"twitter_name"},t))}},{key:"gravatar_image",value:function(e,t){return this.image(e,R()({type:"gravatar"},t))}},{key:"fetch_image",value:function(e,t){return this.image(e,R()({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 nE(e,t=eR({},t,this.config()))}},{key:"sprite_css",value:function(e,t){return t=R()({type:"sprite"},t),e.match(/.css$/)||(t.format="css"),this.url(e,t)}},{key:"responsive",value:function(e){var t,n,o,i,a,s=this,l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(this.responsiveConfig=Y()(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 u=function(){var e,t,n,o,l,u,c;return(e=null!=(t=null!=(n=s.responsiveConfig.responsive_debounce)?n:s.config("responsive_debounce"))?t:100,o=function(){a&&(clearTimeout(a),a=null)},l=function(){return s.cloudinary_update("img.".concat(i),s.responsiveConfig)},c=function(){return o(),l()},u=function(){o(),a=setTimeout(c,e)},e)?u():l()};return window.addEventListener("resize",u),function(){return window.removeEventListener("resize",u)}}}},{key:"calc_breakpoint",value:function(e,t,n){var o=eX(e,"breakpoints")||eX(e,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||f;return et()(o)?o(t,n):(Z()(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(eq(e))return this;t=eR({},t||{},this.config());var n=e.filter(function(e){return/^img$/i.test(e.tagName)}).map(function(e){var n=R()({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 t6(n).toHtmlAttributes();return e0(e,"src-cache",nt(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,s,l,u=this;if(null===e)return this;null==t&&(t={});var d=null!=t.responsive?t.responsive:this.config("responsive");n=e,e=K()(n)?n:"NodeList"===n.constructor.name?function(e){if(Array.isArray(e))return nM(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 nM(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 nM(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.")}():Z()(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 y=!0;if(d&&e4(n,l),!eq(i=eX(n,"src-cache")||eX(n,"src"))){i=g.call(u,i,f),t8.isResponsive(n,l)&&(0!==(o=h(n))?(/w_auto:breakpoints/.test(i)?(s=m(o,n))?i=i.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(s)):y=!1:(a=/w_auto(:(\d+))?/.exec(i))&&((s=m(s=c.call(u,n,o,a[2],t),n))?i=i.replace(/w_auto[^,\/]*/g,"w_".concat(s)):y=!1),e5(n,"width"),t.responsive_preserve_height||e5(n,"height")):y=!1);var v="lazy"===t.loading&&!u.isNativeLazyLoadSupported()&&u.isLazyLoadSupported()&&!e[0].getAttribute("src");(y||v)&&u.setAttributeIfExists(e[0],"width","data-width"),y&&!v&&e2(n,"src",i)}}}),this}},{key:"setAttributeIfExists",value:function(e,t,n){var o=e.getAttribute(n);null!=o&&e2(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 t6.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"}),nD(o);var s=n.video_url(t,o);new Promise(function(e,t){eJ()&&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 u;l?(u=new Promise(function(i,a){e.innerHTML=n.videoTag(t,o).toHtml(),e.querySelector(".cld-transparent-video").style.width="100%",i(e)}),i(e)):u=nL(e,s,o),u.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&&nN(n.prototype,e),t&&nN(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();R()(nU,y);var nB=nU;t.default={ClientHintsMetaTag:nI,Cloudinary:nB,Condition:tf,Configuration:tg,crc32:A,Expression:tl,FetchLayer:tO,HtmlTag:t8,ImageTag:nu,Layer:ty,PictureTag:nb,SubtitlesLayer:t_,TextLayer:tw,Transformation:t6,utf8_encode:b,Util:v,VideoTag:nE}},"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=s},"lodash/identity":function(e,t){e.exports=l},"lodash/includes":function(e,t){e.exports=u},"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=h},"lodash/isString":function(e,t){e.exports=m},"lodash/merge":function(e,t){e.exports=g},"lodash/trim":function(e,t){e.exports=y}})},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 V}});var o=n(2784),i=n(13980),a=n.n(i),s=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 u(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"],h=["publicId"],m=["children"],g=["children","accessibility","placeholder"],y=s.Util.camelCase,v=s.Util.withCamelCaseKeys,b=s.Util.isEmpty,A=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],w={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"},C=[].concat(s.Transformation.PARAM_NAMES,A).map(s.Util.camelCase).reduce(function(e,t){return e[t]=!0,e},{}),S=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=s.Util.withSnakeCaseKeys(t);return s.Cloudinary.new(n)},_=function(e,t){var n=e.publicId,o=d(e,h);return S(o)[t+"Tag"](n,s.Util.withSnakeCaseKeys(o))},k=function(e,t){var n=s.Util.withSnakeCaseKeys(t),o=S(n);return o.cloudinary_update(e,n),o.responsive(n,!1)},T=function(e){var t=e.children,n=d(e,m),o={children:t,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(n).forEach(function(e){var t=s.Util.camelCase(e),i=n[e];C[t]?void 0!==n[e]&&null!==n[e]&&(o.cloudinaryProps[t]=i):"includeOwnBody"===t?o.cloudinaryReactProps[t]=i:o.nonCloudinaryProps[e]=i}),o},O=function(e,t){return!!(o.isValidElement(e)&&e.type&&e.type.displayName===t)},R=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},{})},I=function(e){var t=null;return e&&(t=o.Children.toArray(e).find(function(e){return O(e,"CloudinaryPlaceholder")})),t},M=function e(t){var n=t?o.Children.toArray(t).filter(function(e){return O(e,"CloudinaryTransformation")}).map(function(t){var n=R(t.props,t.context),o=e(t.props.children);return o&&(n.transformation=o),n}):[];return n.length?n:null},j=function(e){var t,n,o=e.children,i=e.accessibility,a=e.placeholder,l=(t=v(d(e,g)),((void 0===(n=s.Transformation.methods)&&(n=[]),t)?n.reduce(function(e,n){return n in t&&(e[n]=t[n]),e},{}):t)||{}),u=M(o);b(u)||(l.transformation=u);var c={accessibility:i,placeholder:a};return Object.keys(c).filter(function(e){return c[e]}).forEach(function(e){l[e]=c[e]}),l},D=(0,o.createContext)(),P=s.Util.camelCase,F=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()),R(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 u(t,e),t.prototype.render=function(){return null},t}(o.PureComponent);F.defaultProps={innerRef:null,publicId:null},F.propTypes=l({},function(e){e=e||[];for(var t={},n=0;n<e.length;n++)t[y(e[n])]=a().any;return t}(s.Transformation.PARAM_NAMES.map(P)),{innerRef:a().any,publicId:a().string}),F.contextType=D;var L=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=T(l({},this.getContext(),this.props)),t=e.children,n=e.cloudinaryProps,i=e.nonCloudinaryProps,a=e.cloudinaryReactProps;return o.createElement(D.Provider,{value:n},a.includeOwnBody?t:o.createElement("div",i,t))},t}(F);L.propTypes=l({},F.propTypes,{includeOwnBody:a().bool}),L.defaultProps={includeOwnBody:!1};var N=["children","innerRef"],U="\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(),B=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(U),t&&i.element&&i.element.current},i.getOptions=function(){var e=i.getExtendedProps(),t=d(l({},e,j(e)),N);return i.shouldLazyLoad()||delete t.loading,t},i.getAttributes=function(e){void 0===e&&(e={});var t=e.placeholder,n=T(l({},i.getOptions(),e)),o=n.cloudinaryProps,a=n.nonCloudinaryProps,u=n.cloudinaryReactProps,c=_(l({},o,u),"image"),d=s.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),A.forEach(function(e){delete f[e]}),f},i.update=function(){if(i.shouldLazyLoad())s.Util.detectIntersection(i.element.current,i.onIntersect);else if(i.isResponsive()){var e=i.getOptions(),t=i.getPlaceholderType();if(t){var n=k(i.placeholderElement.current,l({},e,{placeholder:t}));i.listenerRemovers.push(n)}var o=k(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=I(i.getExtendedProps().children);return e?e.props.type:null},i.placeholderElement=(0,o.createRef)(),i.state={isLoaded:!1},i.listenerRemovers=[],i}u(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}(F);B.defaultProps={},B.propTypes=F.propTypes,B.propTypes.responsive=a().bool,B.propTypes.loading=a().string,B.propTypes.accessibility=a().string;var W=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return null},t}(F);W.propTypes=F.propTypes,W.defaultProps={},W.exposesProps=!0,W.displayName="CloudinaryTransformation";var z=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],V=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=w,t.getMergedProps=function(){return l({},t.getContext(),t.props)},t.generateVideoUrl=function(e,t,n,o,i){var a=s.Util.withSnakeCaseKeys(s.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,s=i.type,l=i.codecs;return t.toSourceTag(e,n,o,void 0===a?{}:a,s,t.buildMimeType(s,l))})},t.toSourceTag=function(e,n,i,a,s,l){var u=t.generateVideoUrl(e,n,i,a,s);return o.createElement("source",{key:u+l,src:u,type:l})},t.buildMimeType=function(e,n){var o=t.mimeType+"/"+(t.mimeSubTypes[e]||e);return s.Util.isEmpty(n)||(o+="; codecs="+(s.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,u=void 0===a?{}:a,c=e.sources,f=d(e,z),h=T(f=R(f,{})),m=h.cloudinaryProps,g=h.cloudinaryReactProps,y=h.nonCloudinaryProps;f=l({},m,g);var v=s.Util.withSnakeCaseKeys(f),b=s.Cloudinary.new(v),A=b.videoTag(n,f).attributes();A=l({},s.Util.withCamelCaseKeys(A),y);var w=j(l({},f,{children:o})),x=null;return s.Util.isArray(c)&&!s.Util.isEmpty(c)?x=t.generateUsingSources(b,n,w,c):s.Util.isArray(i)?x=t.generateUsingSourceTypes(b,n,w,u,i):A.src=t.generateVideoUrl(b,n,w,u[i]||{},i),{sources:x,tagAttributes:A}},t.reloadVideo=function(){t.element&&t.element.current&&t.element.current.load()},t}u(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,s=i.sources;return o.createElement("video",l({ref:this.attachRef},a),s,t,n)},t}(F);V.propTypes={publicId:a().string,sources:a().arrayOf(a().shape({type:a().string,codecs:a().oneOfType([a().string,a().arrayOf(a().string)]),transformations:a().object}))},V.defaultProps={sourceTypes:s.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types};var K=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 u(t,e),t.prototype.render=function(){var e=this.props,t=e.innerRef,n=e.fallback,i=e.children,a=this.getVideoTagProps(),s=a.tagAttributes,u=a.sources;return delete s.poster,o.createElement("audio",l({ref:t},s),u,n,i)},t}(V);K.propTypes={publicId:a().string},K.defaultProps={sourceTypes:["aac","mp3","ogg"]};var $=function(e){return null};$.propTypes={type:a().string},$.defaultProps={type:"blur"},$.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 s(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=o;var c,d,f=Array.isArray(n);return f!==Array.isArray(e)?o(n,u):f?u.arrayMerge(e,n,u):(d={},(c=u).isMergeableObject(e)&&a(e).forEach(function(t){d[t]=o(e[t],c)}),a(n).forEach(function(t){(!s(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(s(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,s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},63397:function(e,t,n){"use strict";n.d(t,{gN:function(){return nb},F2:function(){return nT},l0:function(){return nA},J9:function(){return nh},U$:function(){return nv},u6:function(){return nc}});var o,i,a,s,l,u=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!==h},h="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function m(e,t){return!1!==t.clone&&t.isMergeableObject(e)?y(Array.isArray(e)?[]:{},e,t):e}function g(e,t,n){return e.concat(t).map(function(e){return m(e,n)})}function y(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||g,n.isMergeableObject=n.isMergeableObject||f;var o,i,a=Array.isArray(t);return a!==Array.isArray(e)?m(t,n):a?n.arrayMerge(e,t,n):(i={},(o=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=m(e[t],o)}),Object.keys(t).forEach(function(n){o.isMergeableObject(t[n])&&e[n]?i[n]=y(e[n],t[n],o):i[n]=m(t[n],o)}),i)}y.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return y(e,n,t)},{})};var v=y,b="object"==typeof global&&global&&global.Object===Object&&global,A="object"==typeof self&&self&&self.Object===Object&&self,w=b||A||Function("return this")(),x=w.Symbol,C=Object.prototype,S=C.hasOwnProperty,_=C.toString,k=x?x.toStringTag:void 0,T=function(e){var t=S.call(e,k),n=e[k];try{e[k]=void 0;var o=!0}catch(e){}var i=_.call(e);return o&&(t?e[k]=n:delete e[k]),i},O=Object.prototype.toString,R=x?x.toStringTag:void 0,I=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":R&&R in Object(e)?T(e):O.call(e)},M=function(e,t){return function(n){return e(t(n))}},j=M(Object.getPrototypeOf,Object),D=function(e){return null!=e&&"object"==typeof e},P=Object.prototype,F=Function.prototype.toString,L=P.hasOwnProperty,N=F.call(Object),U=function(e){if(!D(e)||"[object Object]"!=I(e))return!1;var t=j(e);if(null===t)return!0;var n=L.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&F.call(n)==N},B=function(e,t){return e===t||e!=e&&t!=t},W=function(e,t){for(var n=e.length;n--;)if(B(e[n][0],t))return n;return -1},z=Array.prototype.splice;function V(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])}}V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,n=W(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},V.prototype.get=function(e){var t=this.__data__,n=W(t,e);return n<0?void 0:t[n][1]},V.prototype.has=function(e){return W(this.__data__,e)>-1},V.prototype.set=function(e,t){var n=this.__data__,o=W(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var K=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!K(e))return!1;var t=I(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},H=w["__core-js_shared__"],q=(o=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",Z=Function.prototype.toString,G=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Y=/^\[object .+?Constructor\]$/,Q=Object.prototype,X=Function.prototype.toString,ee=Q.hasOwnProperty,et=RegExp("^"+X.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=function(e,t){var n,o=null==e?void 0:e[t];return K(n=o)&&(!q||!(q in n))&&($(n)?et:Y).test(G(n))?o:void 0},er=en(w,"Map"),eo=en(Object,"create"),ei=Object.prototype.hasOwnProperty,ea=Object.prototype.hasOwnProperty;function es(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])}}es.prototype.clear=function(){this.__data__=eo?eo(null):{},this.size=0},es.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},es.prototype.get=function(e){var t=this.__data__;if(eo){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ei.call(t,e)?t[e]:void 0},es.prototype.has=function(e){var t=this.__data__;return eo?void 0!==t[e]:ea.call(t,e)},es.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=eo&&void 0===t?"__lodash_hash_undefined__":t,this};var el=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eu=function(e,t){var n=e.__data__;return el(t)?n["string"==typeof t?"string":"hash"]:n.map};function ec(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 ed(e){var t=this.__data__=new V(e);this.size=t.size}ec.prototype.clear=function(){this.size=0,this.__data__={hash:new es,map:new(er||V),string:new es}},ec.prototype.delete=function(e){var t=eu(this,e).delete(e);return this.size-=t?1:0,t},ec.prototype.get=function(e){return eu(this,e).get(e)},ec.prototype.has=function(e){return eu(this,e).has(e)},ec.prototype.set=function(e,t){var n=eu(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},ed.prototype.clear=function(){this.__data__=new V,this.size=0},ed.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ed.prototype.get=function(e){return this.__data__.get(e)},ed.prototype.has=function(e){return this.__data__.has(e)},ed.prototype.set=function(e,t){var n=this.__data__;if(n instanceof V){var o=n.__data__;if(!er||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ec(o)}return n.set(e,t),this.size=n.size,this};var ef=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e},ep=function(){try{var e=en(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),eh=function(e,t,n){"__proto__"==t&&ep?ep(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},em=Object.prototype.hasOwnProperty,eg=function(e,t,n){var o=e[t];em.call(e,t)&&B(o,n)&&(void 0!==n||t in e)||eh(e,t,n)},ey=function(e,t,n,o){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=o?o(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),i?eh(n,l,u):eg(n,l,u)}return n},ev=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o},eb=function(e){return D(e)&&"[object Arguments]"==I(e)},eA=Object.prototype,ew=eA.hasOwnProperty,ex=eA.propertyIsEnumerable,eC=eb(function(){return arguments}())?eb:function(e){return D(e)&&ew.call(e,"callee")&&!ex.call(e,"callee")},eS=Array.isArray,e_="object"==typeof exports&&exports&&!exports.nodeType&&exports,ek=e_&&"object"==typeof module&&module&&!module.nodeType&&module,eE=ek&&ek.exports===e_?w.Buffer:void 0,eT=(eE?eE.isBuffer:void 0)||function(){return!1},eO=/^(?:0|[1-9]\d*)$/,eR=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&eO.test(e))&&e>-1&&e%1==0&&e<t},eI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eM={};eM["[object Float32Array]"]=eM["[object Float64Array]"]=eM["[object Int8Array]"]=eM["[object Int16Array]"]=eM["[object Int32Array]"]=eM["[object Uint8Array]"]=eM["[object Uint8ClampedArray]"]=eM["[object Uint16Array]"]=eM["[object Uint32Array]"]=!0,eM["[object Arguments]"]=eM["[object Array]"]=eM["[object ArrayBuffer]"]=eM["[object Boolean]"]=eM["[object DataView]"]=eM["[object Date]"]=eM["[object Error]"]=eM["[object Function]"]=eM["[object Map]"]=eM["[object Number]"]=eM["[object Object]"]=eM["[object RegExp]"]=eM["[object Set]"]=eM["[object String]"]=eM["[object WeakMap]"]=!1;var ej=function(e){return function(t){return e(t)}},eD="object"==typeof exports&&exports&&!exports.nodeType&&exports,eP=eD&&"object"==typeof module&&module&&!module.nodeType&&module,eF=eP&&eP.exports===eD&&b.process,eL=function(){try{var e=eP&&eP.require&&eP.require("util").types;if(e)return e;return eF&&eF.binding&&eF.binding("util")}catch(e){}}(),eN=eL&&eL.isTypedArray,eU=eN?ej(eN):function(e){return D(e)&&eI(e.length)&&!!eM[I(e)]},eB=Object.prototype.hasOwnProperty,eW=function(e,t){var n=eS(e),o=!n&&eC(e),i=!n&&!o&&eT(e),a=!n&&!o&&!i&&eU(e),s=n||o||i||a,l=s?ev(e.length,String):[],u=l.length;for(var c in e)(t||eB.call(e,c))&&!(s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||eR(c,u)))&&l.push(c);return l},ez=Object.prototype,eV=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ez)},eK=M(Object.keys,Object),e$=Object.prototype.hasOwnProperty,eH=function(e){if(!eV(e))return eK(e);var t=[];for(var n in Object(e))e$.call(e,n)&&"constructor"!=n&&t.push(n);return t},eq=function(e){return null!=e&&eI(e.length)&&!$(e)},eZ=function(e){return eq(e)?eW(e):eH(e)},eG=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eY=Object.prototype.hasOwnProperty,eQ=function(e){if(!K(e))return eG(e);var t=eV(e),n=[];for(var o in e)"constructor"==o&&(t||!eY.call(e,o))||n.push(o);return n},eJ=function(e){return eq(e)?eW(e,!0):eQ(e)},eX="object"==typeof exports&&exports&&!exports.nodeType&&exports,e0=eX&&"object"==typeof module&&module&&!module.nodeType&&module,e1=e0&&e0.exports===eX?w.Buffer:void 0,e2=e1?e1.allocUnsafe:void 0,e5=function(e,t){if(t)return e.slice();var n=e.length,o=e2?e2(n):new e.constructor(n);return e.copy(o),o},e3=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},e6=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,a=[];++n<o;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a},e4=function(){return[]},e8=Object.prototype.propertyIsEnumerable,e7=Object.getOwnPropertySymbols,e9=e7?function(e){return null==e?[]:e6(e7(e=Object(e)),function(t){return e8.call(e,t)})}:e4,te=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e},tt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)te(t,e9(e)),e=j(e);return t}:e4,tn=function(e,t,n){var o=t(e);return eS(e)?o:te(o,n(e))},tr=function(e){return tn(e,eZ,e9)},to=function(e){return tn(e,eJ,tt)},ti=en(w,"DataView"),ta=en(w,"Promise"),ts=en(w,"Set"),tl=en(w,"WeakMap"),tu="[object Map]",tc="[object Promise]",td="[object Set]",tf="[object WeakMap]",tp="[object DataView]",th=G(ti),tm=G(er),tg=G(ta),ty=G(ts),tv=G(tl),tb=I;(ti&&tb(new ti(new ArrayBuffer(1)))!=tp||er&&tb(new er)!=tu||ta&&tb(ta.resolve())!=tc||ts&&tb(new ts)!=td||tl&&tb(new tl)!=tf)&&(tb=function(e){var t=I(e),n="[object Object]"==t?e.constructor:void 0,o=n?G(n):"";if(o)switch(o){case th:return tp;case tm:return tu;case tg:return tc;case ty:return td;case tv:return tf}return t});var tA=tb,tw=Object.prototype.hasOwnProperty,tx=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tw.call(e,"index")&&(n.index=e.index,n.input=e.input),n},tC=w.Uint8Array,tS=function(e){var t=new e.constructor(e.byteLength);return new tC(t).set(new tC(e)),t},t_=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tk=/\w*$/,tE=function(e){var t=new e.constructor(e.source,tk.exec(e));return t.lastIndex=e.lastIndex,t},tT=x?x.prototype:void 0,tO=tT?tT.valueOf:void 0,tR=function(e,t){var n=t?tS(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tI=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return tS(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return t_(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 tR(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 tE(e);case"[object Symbol]":return tO?Object(tO.call(e)):{}}},tM=Object.create,tj=function(){function e(){}return function(t){if(!K(t))return{};if(tM)return tM(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tD=eL&&eL.isMap,tP=tD?ej(tD):function(e){return D(e)&&"[object Map]"==tA(e)},tF=eL&&eL.isSet,tL=tF?ej(tF):function(e){return D(e)&&"[object Set]"==tA(e)},tN="[object Arguments]",tU="[object Function]",tB="[object Object]",tW={};tW[tN]=tW["[object Array]"]=tW["[object ArrayBuffer]"]=tW["[object DataView]"]=tW["[object Boolean]"]=tW["[object Date]"]=tW["[object Float32Array]"]=tW["[object Float64Array]"]=tW["[object Int8Array]"]=tW["[object Int16Array]"]=tW["[object Int32Array]"]=tW["[object Map]"]=tW["[object Number]"]=tW[tB]=tW["[object RegExp]"]=tW["[object Set]"]=tW["[object String]"]=tW["[object Symbol]"]=tW["[object Uint8Array]"]=tW["[object Uint8ClampedArray]"]=tW["[object Uint16Array]"]=tW["[object Uint32Array]"]=!0,tW["[object Error]"]=tW[tU]=tW["[object WeakMap]"]=!1;var tz=function e(t,n,o,i,a,s){var l,u=1&n,c=2&n,d=4&n;if(o&&(l=a?o(t,i,a,s):o(t)),void 0!==l)return l;if(!K(t))return t;var f=eS(t);if(f){if(l=tx(t),!u)return e3(t,l)}else{var h,m,g,y,v=tA(t),b=v==tU||"[object GeneratorFunction]"==v;if(eT(t))return e5(t,u);if(v==tB||v==tN||b&&!a){if(l=c||b?{}:"function"!=typeof t.constructor||eV(t)?{}:tj(j(t)),!u)return c?(m=(h=l)&&ey(t,eJ(t),h),ey(t,tt(t),m)):(y=(g=l)&&ey(t,eZ(t),g),ey(t,e9(t),y))}else{if(!tW[v])return a?t:{};l=tI(t,v,u)}}s||(s=new ed);var A=s.get(t);if(A)return A;s.set(t,l),tL(t)?t.forEach(function(i){l.add(e(i,n,o,i,t,s))}):tP(t)&&t.forEach(function(i,a){l.set(a,e(i,n,o,a,t,s))});var w=d?c?to:tr:c?eJ:eZ,x=f?void 0:w(t);return ef(x||t,function(i,a){x&&(i=t[a=i]),eg(l,a,e(i,n,o,a,t,s))}),l},tV=function(e){return tz(e,4)},tK=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},t$=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==I(e)};function tH(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 s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};return n.cache=new(tH.Cache||ec),n}tH.Cache=ec;var tq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tZ=/\\(\\)?/g,tG=(a=(i=tH(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tq,function(e,n,o,i){t.push(o?i.replace(tZ,"$1"):n||e)}),t},function(e){return 500===a.size&&a.clear(),e})).cache,i),tY=1/0,tQ=function(e){if("string"==typeof e||t$(e))return e;var t=e+"";return"0"==t&&1/e==-tY?"-0":t},tJ=1/0,tX=x?x.prototype:void 0,t0=tX?tX.toString:void 0,t1=function e(t){if("string"==typeof t)return t;if(eS(t))return tK(t,e)+"";if(t$(t))return t0?t0.call(t):"";var n=t+"";return"0"==n&&1/t==-tJ?"-0":n},t2=function(e){return eS(e)?tK(e,tQ):t$(e)?[e]:e3(tG(null==e?"":t1(e)))},t5=function(e,t){},t3=n(73463),t6=n.n(t3);function t4(){return(t4=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 t8(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 t7(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t9=function(e){return Array.isArray(e)&&0===e.length},ne=function(e){return"function"==typeof e},nt=function(e){return null!==e&&"object"==typeof e},nn=function(e){return"[object String]"===Object.prototype.toString.call(e)},nr=function(e){return 0===u.Children.count(e)},no=function(e){return nt(e)&&ne(e.then)};function ni(e,t,n,o){void 0===o&&(o=0);for(var i=t2(t);e&&o<i.length;)e=e[i[o++]];return o===i.length||e?void 0===e?n:e:n}function na(e,t,n){for(var o=tV(e),i=o,a=0,s=t2(t);a<s.length-1;a++){var l=s[a],u=ni(e,s.slice(0,a+1));if(u&&(nt(u)||Array.isArray(u)))i=i[l]=tV(u);else{var c=s[a+1];i=i[l]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===a?e:i)[s[a]]===n?e:(void 0===n?delete i[s[a]]:i[s[a]]=n,0===a&&void 0===n&&delete o[s[a]],o)}var ns=(0,u.createContext)(void 0);ns.displayName="FormikContext";var nl=ns.Provider,nu=ns.Consumer;function nc(){var e=(0,u.useContext)(ns);return e||t5(!1),e}function nd(e,t){switch(t.type){case"SET_VALUES":return t4({},e,{values:t.payload});case"SET_TOUCHED":return t4({},e,{touched:t.payload});case"SET_ERRORS":if(d()(e.errors,t.payload))return e;return t4({},e,{errors:t.payload});case"SET_STATUS":return t4({},e,{status:t.payload});case"SET_ISSUBMITTING":return t4({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return t4({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return t4({},e,{values:na(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return t4({},e,{touched:na(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return t4({},e,{errors:na(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return t4({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return t4({},e,{touched:function e(t,n,o,i){void 0===o&&(o=new WeakMap),void 0===i&&(i={});for(var a=0,s=Object.keys(t);a<s.length;a++){var l=s[a],u=t[l];nt(u)?o.get(u)||(o.set(u,!0),i[l]=Array.isArray(u)?[]:{},e(u,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 t4({},e,{isSubmitting:!1});default:return e}}var nf={},np={};function nh(e){var t,n,o,i,a,s,l,c,f,h,m,g,y,b,A,w,x,C,S,_,k,T,O,R,I,M,j,D,P,F,L,N,B,W,z,V,K,$,H,q,Z,G,Y,Q,X,ee,et,en,er,eo,ei,ea,es,el,eu=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(o=e.validateOnBlur)||o,s=void 0!==(a=e.validateOnMount)&&a,l=e.isInitialValid,f=void 0!==(c=e.enableReinitialize)&&c,h=e.onSubmit,m=t8(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=t4({validateOnChange:n,validateOnBlur:i,validateOnMount:s,onSubmit:h},m),y=(0,u.useRef)(g.initialValues),b=(0,u.useRef)(g.initialErrors||nf),A=(0,u.useRef)(g.initialTouched||np),w=(0,u.useRef)(g.initialStatus),x=(0,u.useRef)(!1),C=(0,u.useRef)({}),(0,u.useEffect)(function(){return x.current=!0,function(){x.current=!1}},[]),_=(S=(0,u.useReducer)(nd,{values:g.initialValues,errors:g.initialErrors||nf,touched:g.initialTouched||np,status:g.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}))[0],k=S[1],T=(0,u.useCallback)(function(e,t){return new Promise(function(n,o){var i=g.validate(e,t);null==i?n(nf):no(i)?i.then(function(e){n(e||nf)},function(e){o(e)}):n(i)})},[g.validate]),O=(0,u.useCallback)(function(e,t){var n,o,i=g.validationSchema,a=ne(i)?i(t):i,s=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)||U(t)?e(t):""!==t?t:void 0}):U(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){s.then(function(){e(nf)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return na(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,s=a;ni(t,s.path)||(t=na(t,s.path,s.message))}}return t}(n)):t(n)})})},[g.validationSchema]),R=(0,u.useCallback)(function(e,t){return new Promise(function(n){return n(C.current[e].validate(t))})},[]),I=(0,u.useCallback)(function(e){var t=Object.keys(C.current).filter(function(e){return ne(C.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return R(t,ni(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=na(e,t[o],n)),e},{})})},[R]),M=(0,u.useCallback)(function(e){return Promise.all([I(e),g.validationSchema?O(e):{},g.validate?T(e):{}]).then(function(e){var t=e[0],n=e[1],o=e[2];return v.all([t,n,o],{arrayMerge:nm})})},[g.validate,g.validationSchema,I,T,O]),j=ny(function(e){return void 0===e&&(e=_.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return x.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})}),(0,u.useEffect)(function(){s&&!0===x.current&&d()(y.current,g.initialValues)&&j(y.current)},[s,j]),D=(0,u.useCallback)(function(e){var t=e&&e.values?e.values:y.current,n=e&&e.errors?e.errors:b.current?b.current:g.initialErrors||{},o=e&&e.touched?e.touched:A.current?A.current:g.initialTouched||{},i=e&&e.status?e.status:w.current?w.current:g.initialStatus;y.current=t,b.current=n,A.current=o,w.current=i;var a=function(){k({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(g.onReset){var s=g.onReset(_.values,et);no(s)?s.then(a):a()}else a()},[g.initialErrors,g.initialStatus,g.initialTouched]),(0,u.useEffect)(function(){!0===x.current&&!d()(y.current,g.initialValues)&&f&&(y.current=g.initialValues,D(),s&&j(y.current))},[f,g.initialValues,D,s,j]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(b.current,g.initialErrors)&&(b.current=g.initialErrors||nf,k({type:"SET_ERRORS",payload:g.initialErrors||nf}))},[f,g.initialErrors]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(A.current,g.initialTouched)&&(A.current=g.initialTouched||np,k({type:"SET_TOUCHED",payload:g.initialTouched||np}))},[f,g.initialTouched]),(0,u.useEffect)(function(){f&&!0===x.current&&!d()(w.current,g.initialStatus)&&(w.current=g.initialStatus,k({type:"SET_STATUS",payload:g.initialStatus}))},[f,g.initialStatus,g.initialTouched]),P=ny(function(e){if(C.current[e]&&ne(C.current[e].validate)){var t=ni(_.values,e),n=C.current[e].validate(t);return no(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),O(_.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:ni(t,e)}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),F=(0,u.useCallback)(function(e,t){var n=t.validate;C.current[e]={validate:n}},[]),L=(0,u.useCallback)(function(e){delete C.current[e]},[]),N=ny(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?j(_.values):Promise.resolve()}),B=(0,u.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),W=ny(function(e,t){var o=ne(e)?e(_.values):e;return k({type:"SET_VALUES",payload:o}),(void 0===t?n:t)?j(o):Promise.resolve()}),z=(0,u.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),V=ny(function(e,t,o){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===o?n:o)?j(na(_.values,e,t)):Promise.resolve()}),K=(0,u.useCallback)(function(e,t){var n,o=t,i=e;if(!nn(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,s=a.type,l=a.name,u=a.id,c=a.value,d=a.checked,f=(a.outerHTML,a.options),h=a.multiple;o=t||l||u,i=/number|range/.test(s)?isNaN(n=parseFloat(c))?"":n:/checkbox/.test(s)?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}(ni(_.values,o),d,c):f&&h?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}o&&V(o,i)},[V,_.values]),$=ny(function(e){if(nn(e))return function(t){return K(t,e)};K(e)}),H=ny(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?j(_.values):Promise.resolve()}),q=(0,u.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,o=n.name,i=n.id;n.outerHTML,H(t||o||i,!0)},[H]),Z=ny(function(e){if(nn(e))return function(t){return q(t,e)};q(e)}),G=(0,u.useCallback)(function(e){ne(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),Y=(0,u.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Q=(0,u.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),X=ny(function(){return k({type:"SUBMIT_ATTEMPT"}),j().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=en(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),ee=ny(function(e){e&&e.preventDefault&&ne(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ne(e.stopPropagation)&&e.stopPropagation(),X().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),et={resetForm:D,validateForm:j,validateField:P,setErrors:B,setFieldError:z,setFieldTouched:H,setFieldValue:V,setStatus:Y,setSubmitting:Q,setTouched:N,setValues:W,setFormikState:G,submitForm:X},en=ny(function(){return h(_.values,et)}),er=ny(function(e){e&&e.preventDefault&&ne(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&ne(e.stopPropagation)&&e.stopPropagation(),D()}),eo=(0,u.useCallback)(function(e){return{value:ni(_.values,e),error:ni(_.errors,e),touched:!!ni(_.touched,e),initialValue:ni(y.current,e),initialTouched:!!ni(A.current,e),initialError:ni(b.current,e)}},[_.errors,_.touched,_.values]),ei=(0,u.useCallback)(function(e){return{setValue:function(t,n){return V(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[V,H,z]),ea=(0,u.useCallback)(function(e){var t=nt(e),n=t?e.name:e,o=ni(_.values,n),i={name:n,value:o,onChange:$,onBlur:Z};if(t){var a=e.type,s=e.value,l=e.as,u=e.multiple;"checkbox"===a?void 0===s?i.checked=!!o:(i.checked=!!(Array.isArray(o)&&~o.indexOf(s)),i.value=s):"radio"===a?(i.checked=o===s,i.value=s):"select"===l&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[Z,$,_.values]),es=(0,u.useMemo)(function(){return!d()(y.current,_.values)},[y.current,_.values]),el=(0,u.useMemo)(function(){return void 0!==l?es?_.errors&&0===Object.keys(_.errors).length:!1!==l&&ne(l)?l(g):l:_.errors&&0===Object.keys(_.errors).length},[l,es,_.errors,g]),t4({},_,{initialValues:y.current,initialErrors:b.current,initialTouched:A.current,initialStatus:w.current,handleBlur:Z,handleChange:$,handleReset:er,handleSubmit:ee,resetForm:D,setErrors:B,setFormikState:G,setFieldTouched:H,setFieldValue:V,setFieldError:z,setStatus:Y,setSubmitting:Q,setTouched:N,setValues:W,submitForm:X,validateForm:j,validateField:P,isValid:el,dirty:es,unregisterField:L,registerField:F,getFieldProps:ea,getFieldMeta:eo,getFieldHelpers:ei,validateOnBlur:i,validateOnChange:n,validateOnMount:s})),ec=e.component,ed=e.children,ef=e.render,ep=e.innerRef;return(0,u.useImperativeHandle)(ep,function(){return eu}),(0,u.createElement)(nl,{value:eu},ec?(0,u.createElement)(ec,eu):ef?ef(eu):ed?ne(ed)?ed(eu):nr(ed)?null:u.Children.only(ed):null)}function nm(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?v(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?o[i]=v(e[i],t,n):-1===e.indexOf(t)&&o.push(t)}),o}var ng="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function ny(e){var t=(0,u.useRef)(e);return ng(function(){t.current=e}),(0,u.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 nv(e){var t=nc(),n=t.getFieldProps,o=t.getFieldMeta,i=t.getFieldHelpers,a=t.registerField,s=t.unregisterField,l=nt(e)?e:{name:e},c=l.name,d=l.validate;(0,u.useEffect)(function(){return c&&a(c,{validate:d}),function(){c&&s(c)}},[a,s,c,d]),c||t5(!1);var f=(0,u.useMemo)(function(){return i(c)},[i,c]);return[n(l),o(c),f]}function nb(e){var t=e.validate,n=e.name,o=e.render,i=e.children,a=e.as,s=e.component,l=t8(e,["validate","name","render","children","as","component"]),c=t8(nc(),["validate","validationSchema"]),d=c.registerField,f=c.unregisterField;(0,u.useEffect)(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var h=c.getFieldProps(t4({name:n},l)),m=c.getFieldMeta(n),g={field:h,form:c};if(o)return o(t4({},g,{meta:m}));if(ne(i))return i(t4({},g,{meta:m}));if(s){if("string"==typeof s){var y=l.innerRef,v=t8(l,["innerRef"]);return(0,u.createElement)(s,t4({ref:y},h,v),i)}return(0,u.createElement)(s,t4({field:h,form:c},l),i)}var b=a||"input";if("string"==typeof b){var A=l.innerRef,w=t8(l,["innerRef"]);return(0,u.createElement)(b,t4({ref:A},h,w),i)}return(0,u.createElement)(b,t4({},h,l),i)}var nA=(0,u.forwardRef)(function(e,t){var n=e.action,o=t8(e,["action"]),i=nc(),a=i.handleReset,s=i.handleSubmit;return(0,u.createElement)("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:null!=n?n:"#"},o))});nA.displayName="Form";var nw=function(e,t,n){var o=n_(e),i=o[t];return o.splice(t,1),o.splice(n,0,i),o},nx=function(e,t,n){var o=n_(e),i=o[t];return o[t]=o[n],o[n]=i,o},nC=function(e,t,n){var o=n_(e);return o.splice(t,0,n),o},nS=function(e,t,n){var o=n_(e);return o[t]=n,o},n_=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(t4({},e,{length:t+1}))},nk=function(e,t){var n="function"==typeof e?e:t;return function(e){return Array.isArray(e)||nt(e)?n(n_(e)):e}},nE=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=nk(o,e),s=nk(t,e),l=na(n.values,a,e(ni(n.values,a))),u=o?i(ni(n.errors,a)):void 0,c=t?s(ni(n.touched,a)):void 0;return t9(u)&&(u=void 0),t9(c)&&(c=void 0),t4({},n,{values:l,errors:o?na(n.errors,a,u):n.errors,touched:t?na(n.touched,a,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(n_(t),[tz(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 nx(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 nw(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 nC(n,e,t)},function(t){return nC(t,e,null)},function(t){return nC(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 nS(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(t7(n)),n.pop=n.pop.bind(t7(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()(ni(e.formik.values,e.name),ni(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?n_(n):[];return t||(t=o[e]),ne(o.splice)&&o.splice(e,1),ne(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,s=t8(t.formik,["validate","validationSchema"]),l=t4({},e,{form:s,name:a});return n?(0,u.createElement)(n,l):o?o(l):i?"function"==typeof i?i(l):nr(i)?null:u.Children.only(i):null},t}(u.Component);nE.defaultProps={validateOnChange:!0};var nT=(s=function(e){return(0,u.createElement)(nu,null,function(t){return t||t5(!1),(0,u.createElement)(nE,Object.assign({},e,{formik:t}))})},l=nE.displayName||nE.name||nE.constructor&&nE.constructor.name||"Component",s.WrappedComponent=nE,s.displayName="FormikConnect("+l+")",t6()(s,nE))},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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return o.isMemo(e)?s:l[e.$$typeof]||i}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var i=m(n);i&&i!==g&&e(t,i,o)}var s=d(n);f&&(s=s.concat(f(n)));for(var l=u(t),y=u(n),v=0;v<s.length;++v){var b=s[v];if(!a[b]&&!(o&&o[b])&&!(y&&y[b])&&!(l&&l[b])){var A=h(n,b);try{c(t,b,A)}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,s,l=8*i-o-1,u=(1<<l)-1,c=u>>1,d=-7,f=n?i-1:0,h=n?-1:1,m=e[t+f];for(f+=h,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=256*a+e[t+f],f+=h,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=256*s+e[t+f],f+=h,d-=8);if(0===a)a=1-c;else{if(a===u)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,o),a-=c}return(m?-1:1)*s*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var s,l,u,c=8*a-i-1,d=(1<<c)-1,f=d>>1,h=23===i?5960464477539062e-23:0,m=o?0:a-1,g=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(s++,u/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(t*u-1)*Math.pow(2,i),s+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=255&l,m+=g,l/=256,i-=8);for(s=s<<i|l,c+=i;c>0;e[n+m]=255&s,m+=g,s/=256,c-=8);e[n+m-g]|=128*y}},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),s=n(4174),l=n(7942);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},80235:function(e,t,n){var o=n(3945),i=n(21846),a=n(88028),s=n(72344),l=n(94769);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},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),s=n(79493),l=n(24150);function u(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])}}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},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 s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=a,e.exports=s},86571:function(e,t,n){var o=n(80235),i=n(15243),a=n(72858),s=n(4417),l=n(8605),u=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=s,c.prototype.has=l,c.prototype.set=u,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 s=e[n];t(s,n,e)&&(a[i++]=s)}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),s=n(73226),l=n(39045),u=n(77598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),f=!n&&!d&&s(e),h=!n&&!d&&!f&&u(e),m=n||d||f||h,g=m?o(e.length,String):[],y=g.length;for(var v in e)(t||c.call(e,v))&&!(m&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,y)))&&g.push(v);return g}},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 s=e[t];a.call(e,t)&&i(s,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),s=n(67993),l=n(55906),u=n(92175),c=n(51522),d=n(7680),f=n(19987),h=n(13483),m=n(76939),g=n(70940),y=n(99917),v=n(8222),b=n(78725),A=n(86152),w=n(73226),x=n(4714),C=n(29259),S=n(43679),_=n(90249),k=n(18582),T="[object Arguments]",O="[object Function]",R="[object Object]",I={};I[T]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[R]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,M,j,D,P){var F,L=1&n,N=2&n,U=4&n;if(M&&(F=D?M(t,j,D,P):M(t)),void 0!==F)return F;if(!C(t))return t;var B=A(t);if(B){if(F=y(t),!L)return c(t,F)}else{var W=g(t),z=W==O||"[object GeneratorFunction]"==W;if(w(t))return u(t,L);if(W==R||W==T||z&&!D){if(F=N||z?{}:b(t),!L)return N?f(t,l(F,t)):d(t,s(F,t))}else{if(!I[W])return D?t:{};F=v(t,W,L)}}P||(P=new o);var V=P.get(t);if(V)return V;P.set(t,F),S(t)?t.forEach(function(o){F.add(e(o,n,M,o,t,P))}):x(t)&&t.forEach(function(o,i){F.set(i,e(o,n,M,i,t,P))});var K=U?N?m:h:N?k:_,$=B?void 0:K(t);return i($||t,function(o,i){$&&(o=t[i=o]),a(F,i,e(o,n,M,i,t,P))}),F}},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),s=n(50343),l=n(47826),u=n(59950);e.exports=function(e,t,n,c){var d=-1,f=i,h=!0,m=e.length,g=[],y=t.length;if(!m)return g;n&&(t=s(t,l(n))),c?(f=a,h=!1):t.length>=200&&(f=u,h=!1,t=new o(t));t:for(;++d<m;){var v=e[d],b=null==n?v:n(v);if(v=c||0!==v?v:0,h&&b==b){for(var A=y;A--;)if(t[A]===b)continue t;g.push(v)}else f(t,b,c)||g.push(v)}return g}},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,s,l){var u=-1,c=t.length;for(a||(a=i),l||(l=[]);++u<c;){var d=t[u];n>0&&a(d)?n>1?e(d,n-1,a,s,l):o(l,d):s||(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),s=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s 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,s,l){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?o(t,n,a,s,e,l):t!=t&&n!=n)}},51952:function(e,t,n){var o=n(86571),i=n(74871),a=n(11491),s=n(17416),l=n(70940),u=n(86152),c=n(73226),d=n(77598),f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,b){var A=u(e),w=u(t),x=A?h:l(e),C=w?h:l(t);x=x==f?m:x,C=C==f?m:C;var S=x==m,_=C==m,k=x==C;if(k&&c(e)){if(!c(t))return!1;A=!0,S=!1}if(k&&!S)return b||(b=new o),A||d(e)?i(e,t,n,y,v,b):a(e,t,x,n,y,v,b);if(!(1&n)){var T=S&&g.call(e,"__wrapped__"),O=_&&g.call(t,"__wrapped__");if(T||O){var R=T?e.value():e,I=O?t.value():t;return b||(b=new o),v(R,I,n,y,b)}}return!!k&&(b||(b=new o),s(e,t,n,y,v,b))}},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 s=n.length,l=s,u=!a;if(null==e)return!l;for(e=Object(e);s--;){var c=n[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<l;){var d=(c=n[s])[0],f=e[d],h=c[1];if(u&&c[2]){if(void 0===f&&!(d in e))return!1}else{var m=new o;if(a)var g=a(f,h,d,e,t,m);if(!(void 0===g?i(h,f,3,a,m):g))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),s=n(87035),l=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,d=u.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(s(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),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[o(e)]}},68286:function(e,t,n){var o=n(26423),i=n(74716),a=n(23059),s=n(86152),l=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(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),s=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||!s.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),s=n(21401),l=n(28792),u=n(73477),c=n(33812);e.exports=function(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):o(t,s,3)}}},84565:function(e,t,n){var o=n(86571),i=n(28582),a=n(15308),s=n(25561),l=n(29259),u=n(18582),c=n(52434);e.exports=function e(t,n,d,f,h){t!==n&&a(n,function(a,u){if(h||(h=new o),l(a))s(t,n,u,d,e,f,h);else{var m=f?f(c(t,u),a,u+"",t,n,h):void 0;void 0===m&&(m=a),i(t,u,m)}},u)}},25561:function(e,t,n){var o=n(28582),i=n(92175),a=n(6190),s=n(51522),l=n(78725),u=n(79631),c=n(86152),d=n(93746),f=n(73226),h=n(61049),m=n(29259),g=n(97030),y=n(77598),v=n(52434),b=n(63329);e.exports=function(e,t,n,A,w,x,C){var S=v(e,n),_=v(t,n),k=C.get(_);if(k){o(e,n,k);return}var T=x?x(S,_,n+"",e,t,C):void 0,O=void 0===T;if(O){var R=c(_),I=!R&&f(_),M=!R&&!I&&y(_);T=_,R||I||M?c(S)?T=S:d(S)?T=s(S):I?(O=!1,T=i(_,!0)):M?(O=!1,T=a(_,!0)):T=[]:g(_)||u(_)?(T=S,u(S)?T=b(S):(!m(S)||h(S))&&(T=l(_))):O=!1}O&&(C.set(_,T),w(T,_,A,x,C),C.delete(_)),o(e,n,T)}},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),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:a;e.exports=s},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),s=n(4795),l=1/0,u=o?o.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(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),s=n(33812);e.exports=function(e,t){return t=o(t,e),null==(e=a(e,t))||delete e[s(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),s=n(66188);e.exports=function(e,t){return o(e)?e:i(e,t)?[e]:a(s(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,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.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 s=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var c=t[l],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?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,s=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(a--,s):void 0,l&&i(n[0],n[1],l)&&(s=a<3?void 0:s,a=1),t=Object(t);++o<a;){var u=n[o];u&&e(t,u,o,s)}return t})}},55463:function(e){e.exports=function(e){return function(t,n,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var u=s[e?l:++i];if(!1===n(a[u],u,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,s,l,u){var c=1&n,d=e.length,f=t.length;if(d!=f&&!(c&&f>d))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,y=!0,v=2&n?new o:void 0;for(u.set(e,t),u.set(t,e);++g<d;){var b=e[g],A=t[g];if(s)var w=c?s(A,b,g,t,e,u):s(b,A,g,e,t,u);if(void 0!==w){if(w)continue;y=!1;break}if(v){if(!i(t,function(e,t){if(!a(v,t)&&(b===e||l(b,e,n,s,u)))return v.push(t)})){y=!1;break}}else if(!(b===A||l(b,A,n,s,u))){y=!1;break}}return u.delete(e),u.delete(t),y}},11491:function(e,t,n){var o=n(50857),i=n(79162),a=n(41225),s=n(74871),l=n(75179),u=n(16909),c=o?o.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,o,c,f,h){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 m=l;case"[object Set]":var g=1&o;if(m||(m=u),e.size!=t.size&&!g)break;var y=h.get(e);if(y)return y==t;o|=2,h.set(e,t);var v=s(m(e),m(t),o,c,f,h);return h.delete(e),v;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,s,l){var u=1&n,c=o(e),d=c.length;if(d!=o(t).length&&!u)return!1;for(var f=d;f--;){var h=c[f];if(!(u?h in t:i.call(t,h)))return!1}var m=l.get(e),g=l.get(t);if(m&&g)return m==t&&g==e;var y=!0;l.set(e,t),l.set(t,e);for(var v=u;++f<d;){var b=e[h=c[f]],A=t[h];if(a)var w=u?a(A,b,h,t,e,l):a(b,A,h,e,t,l);if(!(void 0===w?b===A||s(b,A,n,a,l):w)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return l.delete(e),l.delete(t),y}},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],s=e[a];t[n]=[a,s,o(s)]}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,s=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=s.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,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:o(s(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),s=n(30981),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,a(e)),e=i(e);return t}:s;e.exports=l},70940:function(e,t,n){var o=n(39515),i=n(10326),a=n(52760),s=n(2143),l=n(93215),u=n(53366),c=n(87035),d="[object Map]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",y=c(o),v=c(i),b=c(a),A=c(s),w=c(l),x=u;(o&&x(new o(new ArrayBuffer(1)))!=g||i&&x(new i)!=d||a&&x(a.resolve())!=f||s&&x(new s)!=h||l&&x(new l)!=m)&&(x=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,o=n?c(n):"";if(o)switch(o){case y:return g;case v:return d;case b:return f;case A:return h;case w:return m}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),s=n(39045),l=n(61158),u=n(33812);e.exports=function(e,t,n){t=o(t,e);for(var c=-1,d=t.length,f=!1;++c<d;){var h=u(t[c]);if(!(f=null!=e&&n(e,h)))break;e=e[h]}return f||++c!=d?f:!!(d=null==e?0:e.length)&&l(d)&&s(h,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),s=n(70169),l=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return o(e);case"[object Boolean]":case"[object Date]":return new u(+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 u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(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),s=o?o.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(s&&e&&e[s])}},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),s=n(29259);e.exports=function(e,t,n){if(!s(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)\]/,s=/^\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))||s.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,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.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,s=-1,l=i(a.length-t,0),u=Array(l);++s<l;)u[s]=a[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=a[s];return c[t]=n(u),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 s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}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,s=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=s},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}",s="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,a,s].join("|")+")"+u+l+")*",d=RegExp(o+"(?="+o+")|(?:"+[i+n+"?",n,a,s,"["+t+"]"].join("|")+")"+(u+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),s=n(67878),l=n(16001),u=n(90249),c=Object.prototype.hasOwnProperty,d=a(function(e,t){if(l(t)||s(t)){i(t,u(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),s=n(93746),l=a(function(e,t){return s(e)?o(e,i(t,1,s,!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),s=n(38101),l=n(98346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:l(e),n=n&&!c?s(n):0;var d=e.length;return n<0&&(n=u(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,s=a.hasOwnProperty,l=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(e){return i(e)&&s.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},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,s=a&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||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),s=a&&a.isMap,l=s?i(s):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),s=Object.prototype,l=Function.prototype.toString,u=s.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=u.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),s=a&&a.isSet,l=s?i(s):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),s=a&&a.isTypedArray,l=s?i(s):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 s=e.apply(this,o);return n.cache=a.set(i,s)||a,s};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),s=n(17297),l=n(752),u=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=s(t,e),c||(c=t.length>1),t}),l(e,d(e),n),c&&(n=i(n,7,u));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),s=n(33812);e.exports=function(e){return a(e)?o(s(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),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;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=u.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):l.test(e)?s:+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),s=n(10768),l=n(51821),u=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=u(e),f=u(t),h=l(d,f),m=s(d,f)+1;return a(d,h,m).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(15214)}])},27501:function(e,t,n){"use strict";var o=n(77859),i=n(70314),a=n.n(i),s=window;s.__sentryRewritesTunnelPath__=void 0,s.SENTRY_RELEASE={id:"df6a4a3efb5cd1ea25c203fb7ef493edcf6941a9"},s.__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 s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return n},isThenable:function(){return m}});let s="refresh",l="navigate",u="restore",c="server-patch",d="prefetch",f="fast-refresh",h="server-action";function m(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)),s=n(98047),l=n(26790),u=n(47973),c=n(49274),d=n(78074),f=n(17942),h=n(1586),m=n(70514),g=n(8250),y=n(87891),v=n(94684),b=new Set;function A(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(b.has(i))return;b.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,o))().catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,o;let{href:u,as:b,children:x,prefetch:C=null,passHref:S,replace:_,shallow:k,scroll:T,locale:O,onClick:R,onMouseEnter:I,onTouchStart:M,legacyBehavior:j=!1,...D}=e;n=x,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let P=a.default.useContext(f.RouterContext),F=a.default.useContext(h.AppRouterContext),L=null!=P?P:F,N=!P,U=!1!==C,B=null===C?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:W,as:z}=a.default.useMemo(()=>{if(!P){let e=w(u);return{href:e,as:b?w(b):e}}let[e,t]=(0,s.resolveHref)(P,u,!0);return{href:e,as:b?(0,s.resolveHref)(P,b):t||e}},[P,u,b]),V=a.default.useRef(W),K=a.default.useRef(z);j&&(o=a.default.Children.only(n));let $=j?o&&"object"==typeof o&&o.ref:t,[H,q,Z]=(0,m.useIntersection)({rootMargin:"200px"}),G=a.default.useCallback(e=>{(K.current!==z||V.current!==W)&&(Z(),K.current=z,V.current=W),H(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[z,$,W,Z,H]);a.default.useEffect(()=>{L&&q&&U&&A(L,W,z,{locale:O},{kind:B},N)},[z,W,q,O,U,null==P?void 0:P.locale,L,N,B]);let Y={ref:G,onClick(e){j||"function"!=typeof R||R(e),j&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,o,i,s,u,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 h=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,o,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](o||n,{scroll:e})};d?a.default.startTransition(h):h()}(e,L,W,z,_,k,T,O,N)},onMouseEnter(e){j||"function"!=typeof I||I(e),j&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&(U||!N)&&A(L,W,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:B},N)},onTouchStart:function(e){j||"function"!=typeof M||M(e),j&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&(U||!N)&&A(L,W,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:B},N)}};if((0,c.isAbsoluteUrl)(z))Y.href=z;else if(!j||S||"a"===o.type&&!("href"in o.props)){let e=void 0!==O?O:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,g.getDomainLocale)(z,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);Y.href=t||(0,y.addBasePath)((0,d.addLocale)(z,e,null==P?void 0:P.defaultLocale))}return j?a.default.cloneElement(o,Y):(0,i.jsx)("a",{...D,...Y,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 u}});let o=n(2784),i=n(25132),a="function"==typeof IntersectionObserver,s=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!a,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)(null),m=(0,o.useCallback)(e=>{h.current=e},[]);return(0,o.useEffect)(()=>{if(a){if(c||d)return;let e=h.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=s.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),s.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(),s.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,h.current]),[m,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 s}});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 s(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,s(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";/**
|
|
692
692
|
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
|
|
693
693
|
MIT License
|
|
694
694
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -707,7 +707,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
707
707
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
708
708
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
709
709
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
|
|
710
|
-
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let o=n(17653)._(n(2784)),i=n(46085),a=[],s=[],l=!1;function u(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 u(){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&&s.push(t=>{for(let n of e)if(t.includes(n))return u()})}function d(e,t){!function(){u();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return s.loading||s.error?o.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?o.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>u(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(u,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(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},30988:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var o=n(52322),i=n(7729),a=n(37792),s=n(2784),l=n(52762);let u=e=>{let t=(0,s.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.SVk,{...e,onError:e=>{t.current=e},ref:(0,s.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 h},X$:function(){return u},XQ:function(){return f},Xe:function(){return A},Xi:function(){return d},Yf:function(){return g},eH:function(){return c},pL:function(){return v},t0:function(){return y},tI:function(){return m},y0:function(){return s},y3:function(){return b}});var o=n(95799),i=n(80410),a=n(70647);let s=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}),u=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}},h=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),m=async e=>await a.managerClient.prismicRepository.pushChanges(e),g=async()=>await a.managerClient.user.logout(),y=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}}},v=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),b=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),A={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},23335:function(e,t,n){"use strict";n.d(t,{a:function(){return u},g:function(){return c}});var o=n(52322),i=n(7729),a=n(2784),s=n(63853),l=n.n(s);let u=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.xvT,{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.xvT,{component:"span",color:"grey11",children:"/"})})},99044:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return ty},Rp:function(){return tS},OJ:function(){return tC},LB:function(){return tx},Ev:function(){return tw}});var a=n(52322),s=n(7729),l=n(36887),u=n(6277),c=n(2784),d=n(10635),f=n(7896);function h(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 m(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 s(t){let{scope:n,children:o,...s}=t,l=(null==n?void 0:n[e][a])||i,u=(0,c.useMemo)(()=>s,Object.values(s));return(0,c.createElement)(l.Provider,{value:u},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||i,u=(0,c.useContext)(l);if(u)return u;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 g(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 y(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return(0,c.useCallback)(y(...e),e)}function b(e){return e.split("-")[1]}function A(e){return"y"===e?"height":"width"}function w(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(w(e))?"x":"y"}function C(e,t,n){let o,{reference:i,floating:a}=e,s=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,u=x(t),c=A(u),d=i[c]/2-a[c]/2,f="x"===u;switch(w(t)){case"top":o={x:s,y:i.y-a.height};break;case"bottom":o={x:s,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(b(t)){case"start":o[u]-=d*(n&&f?-1:1);break;case"end":o[u]+=d*(n&&f?-1:1)}return o}let S=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=C(c,o,u),h=o,m={},g=0;for(let n=0;n<l.length;n++){let{name:a,fn:y}=l[n],{x:v,y:b,data:A,reset:w}=await y({x:d,y:f,initialPlacement:o,placement:h,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=b?b:f,m={...m,[a]:{...m[a],...A}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=C(c,h,u)),n=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};function _(e,t){return"function"==typeof e?e(t):e}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function O(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=_(t,e),g=k(m),y=l[h?"floating"===f?"reference":"floating":f],v=T(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{...s.floating,x:o,y:i}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},x=T(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:A,strategy:u}):b);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}let R=Math.min,I=Math.max,M=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:s,elements:l}=t,{element:u,padding:c=0}=_(e,t)||{};if(null==u)return{};let d=k(c),f={x:n,y:o},h=x(i),m=A(h),g=await s.getDimensions(u),y="y"===h,v=y?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-f[h]-a.floating[m],C=f[h]-a.reference[h],S=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),T=S?S[v]:0;T&&await (null==s.isElement?void 0:s.isElement(S))||(T=l.floating[v]||a.floating[m]);let O=T/2-g[m]/2-1,M=R(d[y?"top":"left"],O),j=R(d[y?"bottom":"right"],O),D=T-g[m]-j,P=T/2-g[m]/2+(w/2-C/2),F=I(M,R(P,D)),L=null!=b(i)&&P!=F&&a.reference[m]/2-(P<M?M:j)-g[m]/2<0?P<M?M-P:D-P:0;return{[h]:f[h]-L,data:{[h]:F,centerOffset:P-F+L}}}}),j=["top","right","bottom","left"],D=(j.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function P(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}let F={start:"end",end:"start"};function L(e){return e.replace(/start|end/g,e=>F[e])}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U(e){return j.some(t=>e[t]>=0)}function B(e){return"x"===e?"y":"x"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){return W(e).getComputedStyle(e)}function V(e){return e instanceof W(e).Node}function K(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){return e instanceof W(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Z(e){let t=G(),n=z(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 G(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Y(e){return["html","body","#document"].includes(K(e))}let Q=Math.min,X=Math.max,ee=Math.round,et=Math.floor,en=e=>({x:e,y:e});function er(e){let t=z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=$(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=ee(n)!==a||ee(o)!==s;return l&&(n=a,o=s),{width:n,height:o,$:l}}function eo(e){return e instanceof W(e).Element}function ei(e){return eo(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!$(t))return en(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=er(t),s=(a?ee(n.width):n.width)/o,l=(a?ee(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let es=en(0);function el(e){let t=W(e);return G()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=ei(e),l=en(1);t&&(o?eo(o)&&(l=ea(o)):l=ea(e));let u=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==W(s))&&i)?el(s):en(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,f=a.width/l.x,h=a.height/l.y;if(s){let e=W(s),t=o&&eo(o)?W(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=ea(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,h*=e.y,c+=i,d+=a,n=W(n).frameElement}}return T({width:f,height:h,x:c,y:d})}function ec(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ed(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function ef(e){return eu(ed(e)).left+ec(e).scrollLeft}function ep(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||ed(e);return H(t)?t.host:t}function eh(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ep(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&q(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=W(o);return i?t.concat(a,a.visualViewport||[],q(o)?o:[]):t.concat(o,eh(o))}function em(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=W(e),o=ed(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){a=i.width,s=i.height;let e=G();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:l,y:u}}(e,n);else if("document"===t)o=function(e){let t=ed(e),n=ec(e),o=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=X(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=X(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}(ed(e));else if(eo(t))o=function(e,t){let n=eu(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=$(e)?ea(e):en(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=el(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function eg(e,t){return $(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ey(e,t){let n=W(e);if(!$(e))return n;let o=eg(e,t);for(;o&&["table","td","th"].includes(K(o))&&"static"===z(o).position;)o=eg(o,t);return o&&("html"===K(o)||"body"===K(o)&&"static"===z(o).position&&!Z(o))?n:o||function(e){let t=ep(e);for(;$(t)&&!Y(t);){if(Z(t))return t;t=ep(t)}return null}(e)||n}let ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=$(n),a=ed(n);if(n===a)return t;let s={scrollLeft:0,scrollTop:0},l=en(1),u=en(0);if((i||!i&&"fixed"!==o)&&(("body"!==K(n)||q(a))&&(s=ec(n)),$(n))){let e=eu(n);l=ea(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:ed,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=eh(e).filter(e=>eo(e)&&"body"!==K(e)),i=null,a="fixed"===z(e).position,s=a?ep(e):e;for(;eo(s)&&!Y(s);){let t=z(s),n=Z(s);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||q(s)&&!n&&function e(t,n){let o=ep(t);return!(o===n||!eo(o)||Y(o))&&("fixed"===z(o).position||e(o,n))}(e,s))?o=o.filter(e=>e!==s):i=t,s=ep(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((e,n)=>{let o=em(t,n,i);return e.top=X(o.top,e.top),e.right=Q(o.right,e.right),e.bottom=Q(o.bottom,e.bottom),e.left=X(o.left,e.left),e},em(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ey,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||ey,a=this.getDimensions;return{reference:function(e,t,n){let o=$(t),i=ed(t),a="fixed"===n,s=eu(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=en(0);if(o||!o&&!a){if(("body"!==K(t)||q(i))&&(l=ec(t)),$(t)){let e=eu(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ef(i))}return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.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 er(e)},getScale:ea,isElement:eo,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eb(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=ei(e),d=i||a?[...c?eh(c):[],...eh(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=ed(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;let m={rootMargin:-et(d)+"px "+-et(i.clientWidth-(c+f))+"px "+-et(i.clientHeight-(d+h))+"px "+-et(c)+"px",threshold:X(0,Q(1,u))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!g)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,m)}o.observe(e)}(!0),a}(c,n):null,h,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y=u?eu(e):null;return u&&function t(){let o=eu(e);y&&(o.x!==y.x||o.y!==y.y||o.width!==y.width||o.height!==y.height)&&n(),y=o,h=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,u&&cancelAnimationFrame(h)}}let eA=(e,t,n)=>{let o=new Map,i={platform:ev,...n},a={...i.platform,_c:o};return S(e,t,{...i,platform:a})};var ew=n(28316);let ex=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 M({element:n.current,padding:o}).fn(t)}else if(n)return M({element:n,padding:o}).fn(t);return{}}});var eC="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function eS(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(!eS(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)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=e_(e);return Math.round(t*n)/n}function eE(e){let t=c.useRef(e);return eC(()=>{t.current=e}),t}let eT=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eI);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)(eO,(0,f.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(eO,(0,f.Z)({},o,{ref:t}),n)});eT.displayName="Slot";let eO=(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?y(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});eO.displayName="SlotClone";let eR=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eI(e){return(0,c.isValidElement)(e)&&e.type===eR}let eM=["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?eT: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}},{}),ej=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eM.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"}))}),eD=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eP="Popper",[eF,eL]=m(eP),[eN,eU]=eF(eP),eB=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eU("PopperAnchor",n),s=(0,c.useRef)(null),l=v(t,s);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,c.createElement)(eM.div,(0,f.Z)({},i,{ref:l}))}),eW="PopperContent",[ez,eV]=eF(eW),eK=(0,c.forwardRef)((e,t)=>{var n,o,i,a,s,l,u,d,h,m,y,C,S,k;let{__scopePopper:T,side:M="bottom",sideOffset:j=0,align:D="center",alignOffset:F=0,arrowPadding:W=0,collisionBoundary:z=[],collisionPadding:V=0,sticky:K="partial",hideWhenDetached:$=!1,avoidCollisions:H=!0,onPlaced:q,...Z}=e,G=eU(eW,T),[Y,Q]=(0,c.useState)(null),X=v(t,e=>Q(e)),[ee,et]=(0,c.useState)(null),en=function(e){let[t,n]=(0,c.useState)(void 0);return eD(()=>{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}(ee),er=null!==(n=null==en?void 0:en.width)&&void 0!==n?n:0,eo=null!==(o=null==en?void 0:en.height)&&void 0!==o?o:0,ei="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ea=Array.isArray(z)?z:[z],es=ea.length>0,el={padding:ei,boundary:ea.filter(eq),altBoundary:es},{refs:eu,floatingStyles:ec,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(o);eS(m,o)||g(o);let[y,v]=c.useState(null),[b,A]=c.useState(null),w=c.useCallback(e=>{e!=_.current&&(_.current=e,v(e))},[v]),x=c.useCallback(e=>{e!==k.current&&(k.current=e,A(e))},[A]),C=a||y,S=s||b,_=c.useRef(null),k=c.useRef(null),T=c.useRef(f),O=eE(u),R=eE(i),I=c.useCallback(()=>{if(!_.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};R.current&&(e.platform=R.current),eA(_.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!eS(T.current,t)&&(T.current=t,ew.flushSync(()=>{h(t)}))})},[m,t,n,R]);eC(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let M=c.useRef(!1);eC(()=>(M.current=!0,()=>{M.current=!1}),[]),eC(()=>{if(C&&(_.current=C),S&&(k.current=S),C&&S){if(O.current)return O.current(C,S,I);I()}},[C,S,I,O]);let j=c.useMemo(()=>({reference:_,floating:k,setReference:w,setFloating:x}),[w,x]),D=c.useMemo(()=>({reference:C,floating:S}),[C,S]),P=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ek(D.floating,f.x),o=ek(D.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:I,refs:j,elements:D,floatingStyles:P}),[f,I,j,D,P])}({strategy:"fixed",placement:M+("center"!==D?"-"+D:""),whileElementsMounted:eb,elements:{reference:G.anchor},middleware:[{name:"offset",options:h={mainAxis:j+eo,alignmentAxis:F},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)),s=w(n),l=b(n),u="x"===x(n),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=_(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}(e,h);return{x:t+o.x,y:n+o.y,data:o}}},H&&{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?(void 0===m&&(m={}),{options:m,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=_(m,e),c={x:t,y:n},d=x(o),f=B(d),h=c[d],g=c[f],y=_(s,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var b,A;let e="y"===d?"width":"height",t=["top","left"].includes(w(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[f])||0)+(t?0:v.crossAxis),s=i.reference[f]+i.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[f])||0)-(t?v.crossAxis:0);g<n?g=n:g>s&&(g=s)}return{[d]:h,[f]:g}}}):void 0,...el},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_(y,e),u={x:t,y:n},c=await O(e,l),d=x(w(o)),f=B(d),h=u[d],m=u[f];if(i){let e="y"===d?"bottom":"right";h=I(h+c["y"===d?"top":"left"],R(h,h-c[e]))}if(a){let e="y"===f?"bottom":"right";m=I(m+c["y"===f?"top":"left"],R(m,m-c[e]))}let g=s.fn({...e,[d]:h,[f]:m});return{...g,data:{x:g.x-t,y:g.y-n}}}},H&&{name:"flip",options:C={...el},async fn(e){var t,n,o,i;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...S}=_(C,e),k=w(a),T=w(u)===u,R=await (null==c.isRTL?void 0:c.isRTL(d.floating)),I=m||(T||!v?[P(u)]:function(e){let t=P(e);return[L(e),t,L(t)]}(u));m||"none"===y||I.push(...function(e,t,n,o){let i=b(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[]}}(w(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(L)))),a}(u,v,y,R));let M=[u,...I],j=await O(e,S),D=[],F=(null==(t=s.flip)?void 0:t.overflows)||[];if(f&&D.push(j[k]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=b(e),i=x(e),a=A(i),s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=P(s)),{main:s,cross:P(s)}}(a,l,R);D.push(j[e],j[t])}if(F=[...F,{placement:a,overflows:D}],!D.every(e=>e<=0)){let e=((null==(n=s.flip)?void 0:n.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let l=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(g){case"bestFit":{let e=null==(i=F.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=u}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:S={...el,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${o}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=_(S,e),c=await O(e,u),d=w(o),f=b(o),h="x"===x(o),{width:m,height:g}=i.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let y=g-c[t],v=m-c[n],A=!e.middlewareData.shift,C=y,k=v;if(h){let e=m-c.left-c.right;k=f||A?R(v,e):e}else{let e=g-c.top-c.bottom;C=f||A?R(y,e):e}if(A&&!f){let e=I(c.left,0),t=I(c.right,0),n=I(c.top,0),o=I(c.bottom,0);h?k=m-2*(0!==e||0!==t?e+t:I(c.left,c.right)):C=g-2*(0!==n||0!==o?n+o:I(c.top,c.bottom))}await l({...e,availableWidth:k,availableHeight:C});let T=await a.getDimensions(s.floating);return m!==T.width||g!==T.height?{reset:{rects:!0}}:{}}},ee&&ex({element:ee,padding:W}),eZ({arrowWidth:er,arrowHeight:eo}),$&&{name:"hide",options:k={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=_(k,e);switch(n){case"referenceHidden":{let n=N(await O(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:U(n)}}}case"escaped":{let n=N(await O(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:U(n)}}}default:return{}}}}]}),[eh,em]=eG(ed),eg=g(q);eD(()=>{ef&&(null==eg||eg())},[ef,eg]);let ey=null===(i=ep.arrow)||void 0===i?void 0:i.x,ev=null===(a=ep.arrow)||void 0===a?void 0:a.y,eT=(null===(s=ep.arrow)||void 0===s?void 0:s.centerOffset)!==0,[eO,eR]=(0,c.useState)();return eD(()=>{Y&&eR(window.getComputedStyle(Y).zIndex)},[Y]),(0,c.createElement)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ef?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eO,"--radix-popper-transform-origin":[null===(l=ep.transformOrigin)||void 0===l?void 0:l.x,null===(u=ep.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(ez,{scope:T,placedSide:eh,onArrowChange:et,arrowX:ey,arrowY:ev,shouldHideArrow:eT},(0,c.createElement)(eM.div,(0,f.Z)({"data-side":eh,"data-align":em},Z,{ref:X,style:{...Z.style,animation:ef?void 0:"none",opacity:null!==(d=ep.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),e$={top:"bottom",right:"left",bottom:"top",left:"right"},eH=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eV("PopperArrow",n),a=e$[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)(ej,(0,f.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eq(e){return null!==e}let eZ=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,s;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=eG(l),y={start:"0%",center:"50%",end:"100%"}[g],v=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+f/2,b=(null!==(a=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==a?a:0)+h/2,A="",w="";return"bottom"===m?(A=d?y:`${v}px`,w=`${-h}px`):"top"===m?(A=d?y:`${v}px`,w=`${u.floating.height+h}px`):"right"===m?(A=`${-h}px`,w=d?y:`${b}px`):"left"===m&&(A=`${u.floating.width+h}px`,w=d?y:`${b}px`),{data:{x:A,y:w}}}});function eG(e){let[t,n="center"]=e.split("-");return[t,n]}let eY=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eN,{scope:t,anchor:o,onAnchorChange:i},n)},eQ=(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?ew.createPortal((0,c.createElement)(eM.div,(0,f.Z)({},i,{ref:t})),o):null}),eJ=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),s=(0,c.useRef)(e),l=(0,c.useRef)("none"),[u,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=eX(a.current);l.current="mounted"===u?e:"none"},[u]),eD(()=>{let t=a.current,n=s.current;if(n!==e){let o=l.current,i=eX(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),eD(()=>{if(o){let e=e=>{let t=eX(a.current).includes(e.animationName);e.target===o&&t&&(0,ew.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eX(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(u),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=v(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eX(e){return(null==e?void 0:e.animationName)||"none"}eJ.displayName="Presence";let e0="dismissableLayer.update",e1=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...m}=e,y=(0,c.useContext)(e1),[b,A]=(0,c.useState)(null),w=null!==(n=null==b?void 0:b.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),C=v(t,e=>A(e)),S=Array.from(y.layers),[_]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(_),T=b?S.indexOf(b):-1,O=y.layersWithOutsidePointerEventsDisabled.size>0,R=T>=k,I=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(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(){e3("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=[...y.branches].some(e=>e.contains(t));!R||n||(null==s||s(e),null==u||u(e),e.defaultPrevented||null==d||d())},w),M=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e3("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;[...y.branches].some(e=>e.contains(t))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==d||d())},w);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{T!==y.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},w),(0,c.useEffect)(()=>{if(b)return i&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),e5(),()=>{i&&1===y.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o)}},[b,w,i,y]),(0,c.useEffect)(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),e5())},[b,y]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(e0,e),()=>document.removeEventListener(e0,e)},[]),(0,c.createElement)(eM.div,(0,f.Z)({},m,{ref:C,style:{pointerEvents:O?R?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,M.onFocusCapture),onBlurCapture:h(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,I.onPointerDownCapture)}))});function e5(){let e=new CustomEvent(e0);document.dispatchEvent(e)}function e3(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,ew.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e6="HoverCard",[e4,e8]=m(e6,[eL]),e7=eL(),[e9,te]=e4(e6),tt=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=te("HoverCardTrigger",n),a=e7(n);return(0,c.createElement)(eB,(0,f.Z)({asChild:!0},a),(0,c.createElement)(eM.a,(0,f.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:h(e.onPointerEnter,tu(i.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(i.onClose)),onFocus:h(e.onFocus,i.onOpen),onBlur:h(e.onBlur,i.onClose),onTouchStart:h(e.onTouchStart,e=>e.preventDefault())})))}),tn="HoverCardPortal",[tr,to]=e4(tn,{forceMount:void 0}),ti="HoverCardContent",ta=(0,c.forwardRef)((e,t)=>{let n=to(ti,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=te(ti,e.__scopeHoverCard);return(0,c.createElement)(eJ,{present:o||a.open},(0,c.createElement)(ts,(0,f.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:h(e.onPointerEnter,tu(a.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(a.onClose)),ref:t})))}),ts=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,...u}=e,d=te(ti,n),m=e7(n),g=(0,c.useRef)(null),y=v(t,g),[b,A]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(b){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}}},[b]),(0,c.useEffect)(()=>{if(g.current){let e=()=>{A(!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)(()=>{g.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})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(e2,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:h(s,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eK,(0,f.Z)({},m,u,{onPointerDown:h(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&A(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:y,style:{...u.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"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)"}})))}),tl=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e7(n);return(0,c.createElement)(eH,(0,f.Z)({},i,o,{ref:t}))});function tu(e){return t=>"touch"===t.pointerType?void 0:e()}let tc=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,u=e7(t),d=(0,c.useRef)(0),f=(0,c.useRef)(0),h=(0,c.useRef)(!1),m=(0,c.useRef)(!1),[y=!1,v]=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=g(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,s=a?e:o,l=g(n);return[s,(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}),b=(0,c.useCallback)(()=>{clearTimeout(f.current),d.current=window.setTimeout(()=>v(!0),s)},[s,v]),A=(0,c.useCallback)(()=>{clearTimeout(d.current),h.current||m.current||(f.current=window.setTimeout(()=>v(!1),l))},[l,v]),w=(0,c.useCallback)(()=>v(!1),[v]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]),(0,c.createElement)(e9,{scope:t,open:y,onOpenChange:v,onOpen:b,onClose:A,onDismiss:w,hasSelectionRef:h,isPointerDownOnContentRef:m},(0,c.createElement)(eY,u,n))},td=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=te(tn,t);return(0,c.createElement)(tr,{scope:t,forceMount:n},(0,c.createElement)(eJ,{present:n||a.open},(0,c.createElement)(eQ,{asChild:!0,container:i},o)))};var tf=n(13821),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(s.rSc.space[16]),side:u,sideOffset:d=4,trigger:f,...h}=e,{arrowWidth:m,arrowHeight:g}=(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)(tc,{...h,children:[(0,a.jsx)(tt,{asChild:!0,children:f}),(0,a.jsx)(td,{children:(0,a.jsxs)(ta,{align:t,alignOffset:n,className:tp().container,collisionPadding:l,side:u,sideOffset:d,children:[i,(0,a.jsx)(tl,{className:tp().arrow,height:g,width:m})]})})]})};var tm=n(77452),tg=n.n(tm);let ty=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:s,onClose:l,open:u,openDelay:d=5e3,side:f,sideOffset:h,trigger:m}=e,[g,y]=(0,c.useState)(!1),v=(0,c.useCallback)(()=>{l&&l(),y(!1)},[l,y]);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===u,action:(0,c.useCallback)(()=>y(e=>!1===e),[y]),delay:d}),(0,a.jsx)(th,{align:t,alignOffset:n,arrowSize:o,collisionPadding:s,onOpenChange:e=>{!0===e&&!0===u&&y(e)},open:g,openDelay:d,side:f,sideOffset:h,trigger:m,children:(0,a.jsx)(tv,{handleClose:v,children:i})})},tv=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tb.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tg().root,children:n})})},tb=(0,c.createContext)({handleClose:()=>void 0});function tA(){return(0,c.useContext)(tb)}let tw=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsxs)("div",{className:tg().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tg().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tx=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tg().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,u.W)(tg().media,n.className)})})},tC=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tg().description,children:t})},tS=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsx)("div",{className:tg().closeButtonContainer,children:(0,a.jsx)(s.zxk,{sx:{width:"100%"},onClick:n,children:t})})}},3181:function(e,t,n){"use strict";n.d(t,{AK:function(){return m},Dj:function(){return c},Kp:function(){return h},L4:function(){return g},Oh:function(){return w},PQ:function(){return A},cx:function(){return u},d7:function(){return d},fo:function(){return b},gR:function(){return v},ux:function(){return f},xS:function(){return y}});var o=n(88866),i=n(2439),a=n(80410),s=n(99510);let l="default";function u(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&&"Table"!==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,s;let l={},u={};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)u[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)u[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!==(s=e.items)&&void 0!==s?s:[])u[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(u).sort().map(e=>[e,u[e]]))}}function h(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 m(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 g(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:s}=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:s}:e)}}return e})}}}function y(e){let{slice:t,variationId:n,widgetArea:s,newFieldId:l,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:u.type!==o.GroupFieldType?{...e,[s]:null===(c=e[s])||void 0===c?void 0:c.concat([{key:l,value:u}])}:s===a.Rt.Items?e:{...e,[s]:null===(t=e[s])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(u)}])}})}}}function v(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:s,destinationIndex:l}=e,u=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=u.splice(s,1);return u.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:u}:e)}}}function b(e){return{id:(0,s.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,s.MP)(l),docURL:"...",version:"initial",description:(0,s.MP)(l),imageUrl:""}]}}function A(e,t){return{...e,model:{...e.model,name:t}}}function w(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 s}});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 s(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 h}});var o=n(74217),i=n(18566),a=n(88932),s=n(72432);let{fetchOnboarding:l,toggleOnboarding:u,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 h(){let e=(0,s.d)().eligible,t=(0,i.QT)(e?d:f,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function h(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 m(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await h(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:h,completeStep:m,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 u();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)}}}}},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-new");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 C},g:function(){return S}});var o=n(52322),i=n(74217),a=n(37792),s=n(2784),l=n(93188),u=n(52762),c=n(85647),d=n(58161),f=n(41067),h=n(43874),m=n(53047),g=n(6529),y=n(75665),v=n(29040),b=n(99757);async function A(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,v.R)(o.libraries,o.remoteSlices),a=Object.values((0,y.d)(o.customTypes,o.remoteCustomTypes));return(0,b.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var w=n(65821);let x=(0,s.createContext)(void 0),C=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:y}=(0,w.X)(),v=(0,c.L)(),b=(0,u.n)(),{refreshState:C,pushChangesSuccess:S}=(0,f.Z)(),_=(0,i.R9)(C),k=(0,i.R9)(S),{activeEnvironment:T}=(0,m.J)(),{setNextAction:O,actionQueueStatus:R}=(0,h.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),I=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=T,loggedIn:n=v&&b===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&O(async()=>{let{changedCustomTypes:e,changedSlices:t}=await A({isOnline:v,authStatus:b});if(0!==e.length||0!==t.length)try{let n=await (0,g.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)();_(o),k()}catch(e){if((0,a.ff)(e))return;throw e}})},[_,k,O,v,b,T]);(0,s.useEffect)(()=>{(n.length>0||y.length>0)&&I()},[]),(0,i.pQ)(v,()=>{v&&(n.length>0||y.length>0)&&I()});let M=(0,s.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:T,isOnline:v,authStatus:b,actionQueueStatus:R}),[R,b,v,T]),j=(0,s.useMemo)(()=>({syncChanges:I,autoSyncStatus:M}),[I,M]);return(0,o.jsx)(x.Provider,{value:j,children:t})};function S(){let e=(0,s.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 s(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,u=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:u}=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=u.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=u.length+l.length,h=u.reduce((e,t)=>e+(0,i.cx)(t.slice),0),m=Date.now()-t;o.Xe.track({event:"changes:pushed",...c,...d,total:f,missingScreenshots:h,duration:m,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=s(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=s(e,t.primary,"slice");e.push(...n)}),e),[]),...i].forEach(e=>{o.Xe.track({event:"changes:group-pushed",...e})})}({changedCustomTypes:l,changedSlices:u})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:l,startTime:u})}},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 s=[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),h=i.filter(o.yp).map(u),m=f.concat(h).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&s.includes(d.slices[e.model.id])),g=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&s.includes(d.customTypes[(0,o.n5)(e)])),y=m.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>s.includes(e.status));return{changedCustomTypes:g.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>s.includes(e.status)),changedSlices:y,unSyncedCustomTypes:g,unSyncedSlices:m,modelsStatuses:d}}function u(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:s}=e,l=o&&s!=a.t.FORBIDDEN&&s!=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),s=n(40572),l=n(68916),u=n(85647),c=n(99757);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,s.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,u.L)(),f=(0,a.n)(),h=(0,c.m)({authStatus:f,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>h,[h])}},43874:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(7729),a=n(74930),s=n.n(a),l=n(2784),u=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}),[h,m]=(0,l.useState)("done"),[g,y]=(0,l.useState)(h),v=(0,l.useCallback)(e=>{f(t=>({...t,nextAction:e}))},[]),b=(0,l.useCallback)(async e=>{if(e){m("pending");try{await e(),m("done")}catch(e){m("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=s()();u.Am.error(()=>(0,o.jsxs)(i.xuv,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.xvT,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.zxk,{size:"small",color:"grey",onClick:()=>{u.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:m,setActionQueueStack:f})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===h&&d.nextAction&&(b(d.nextAction),f({pendingAction:d.nextAction,nextAction:void 0}))},[h,d,b]),(0,l.useEffect)(()=>{if("pending"===h)y("pending");else{let e=setTimeout(()=>{y(h)},t);return()=>{clearTimeout(e)}}},[h,t]),(0,l.useMemo)(()=>({actionQueueStatus:g,setNextAction:v}),[g,v])}},58133:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});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 s(){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 s}});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 s(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}},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 u}});var o=n(52322),i=n(5632),a=n(2784);let s=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(s.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,s]=(0,a.useState)(n),[l,u]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(s(n),u({source:o,destination:n})),l}()});function u(){let e=(0,a.useContext)(s);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 s}});var o=n(18566),i=n(70647);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function s(){return(0,o.QT)(a,[])}},85404:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});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 s(){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"})})},5335:function(e,t,n){"use strict";n.d(t,{LN:function(){return eN},K2:function(){return eK},Xq:function(){return ez},Cx:function(){return eV},RN:function(){return e$},wd:function(){return eW}});var o=n(52322),i=n(7729),a=n(5632),s=n(2784),l=n(23335),u=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,u.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},h=e=>(0,o.jsx)("div",{...e,className:d().pane}),m=e=>(0,o.jsx)("header",{...e,className:d().header}),g=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 y=n(30988),v=n(53047),b=n(93188),A=n(63447),w=n(77507),x=n(58133);let C={"@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 S(){var e;return null!==(e=C[(0,x.p)()])&&void 0!==e?e:{}}let _=e=>{let{isOpen:t,onClose:n}=e,{masterSliceLibrary:a}=S();if(!a)return null;let{exampleLinkUrl:s,codeLinkUrl:l,previewVideoUrl:u}=a;return(0,o.jsxs)(i.VqE,{size:"small",open:t,onOpenChange:e=>!e&&n(),children:[(0,o.jsx)(i.fKu,{title:"Master Slice Library Generator (BETA)"}),(0,o.jsx)(i.cZJ,{children:(0,o.jsxs)(i.xuv,{flexDirection:"column",padding:16,gap:16,children:[(0,o.jsx)(i.xvT,{variant:"h2",children:"Create a Master Slice Library"}),(0,o.jsx)(i.nkn,{src:u,sizing:"contain",autoPlay:!0,loop:!0}),(0,o.jsxs)(i.xvT,{children:["This is an"," ",(0,o.jsx)("a",{href:s,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.zxk,{size:"large",onClick:()=>{b.Xe.track({event:"slice-library:beta:code-opened"}),window.open(l,"_blank")},children:"Get the code"})]})})]})};var k=n(99579);function T(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,k.U)(),a=(0,i.ach)({max:"medium"});return(0,o.jsxs)(i.xuv,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.xuv,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.xvT,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.xvT,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.ua7,{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 O=n(85404),R=n(25966),I=n(29184),M=n(39097),j=n.n(M);function D(e){let{title:t,href:n,target:a,active:l,Icon:u,RightElement:c,onClick:d}=e,f=(0,i.ach)({max:"medium"}),h=(0,s.useCallback)(()=>(0,o.jsx)(u,{width:f?28:32}),[u,f]),m=(0,o.jsx)(i.F8s,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:h,endAdornment:c,selected:l,children:f?null:t});return(0,o.jsx)(i.ua7,{content:t,side:"right",visible:f,children:void 0!==n?(0,o.jsx)(j(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,children:m}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:m})})}var P=n(65856);function F(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,P.k)();return e?e.isDismissed?(0,o.jsx)(D,{title:"Get Started",Icon:I.z,onClick:()=>void n()}):(0,o.jsx)(R.TI,{tracking:{track:e=>b.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var L=n(72432);function N(){let e=function(){let e=(0,i.ach)({min:"medium"}),t=(0,O.P)();return e&&!t.sliceMachineUpdateAvailable&&!t.adapterUpdateAvailable}(),t=(0,L.d)().eligible;return e&&t?(0,o.jsx)(F,{}):null}var U=n(52677);let B=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"})}),W=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"})}),z=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"})}),V=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 K=n(99044),$=n(80546);let H=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"})}),q=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"})})})]}),Z=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 G=n(60821),Y=n.n(G);let Q=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(Z,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)(H,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(q,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.ua7,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:Y().root,children:[t.icon,(0,o.jsx)(i.xvT,{className:Y().text,color:"grey11",children:t.text})]})}):t.icon};var X=n(65821),ee=n(52762),et=n(85647);let en=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 er=n(58161),eo=n(41067);let ei=()=>{let{setSeenChangesToolTip:e}=(0,eo.Z)(),t=es(),n=(0,a.useRouter)(),{autoSyncStatus:s}=(0,$.g)(),l=(0,i.ach)({max:"medium"});return(0,o.jsxs)(K.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.xuv,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===s||"synced"===s||"syncing"===s?(0,o.jsx)(Q,{autoSyncStatus:s}):l?(0,o.jsx)(i.ua7,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.xuv,{position:"relative",children:[(0,o.jsx)(i.hU,{icon:(0,o.jsx)(en,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.xuv,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(ea,{color:"purple"})})]})}):(0,o.jsx)(i.zxk,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.xuv,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.xvT,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(ea,{color:"grey"})]})})}),children:[(0,o.jsx)(K.Ev,{children:"Push your changes"}),(0,o.jsx)(K.LB,{component:"image",src:"/push.png"}),(0,o.jsx)(K.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)(K.Rp,{children:"Got it"})]})},ea=e=>{let{color:t}=e,n=(0,et.L)(),a=(0,ee.n)(),{unSyncedSlices:s,unSyncedCustomTypes:l}=(0,X.X)(),u=s.length+l.length;return n&&a!==er.t.UNAUTHORIZED&&a!==er.t.FORBIDDEN&&0!==u?(0,o.jsx)(i.xuv,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.xvT,{color:"grey"===t?"grey11":"grey1",variant:"small",children:u>9?"+9":u})}):null},es=()=>!1;var el=n(37792),eu=n(18566),ec=n(70647),ed=n(69765);async function ef(e){await ec.managerClient.project.updateEnvironment({environment:e.domain}),(0,eu.gw)(ed.j,[]),(0,eu.gw)(b.y0,[])}async function ep(){try{let{environments:e}=await ec.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var eh=n(99757),em=n(75665),eg=n(29040);function ey(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(28316);var ev=s.forwardRef((e,t)=>{let{children:n,...i}=e,a=s.Children.toArray(n),l=a.find(ew);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,o.jsx)(eb,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,o.jsx)(eb,{...i,ref:t,children:n})});ev.displayName="Slot";var eb=s.forwardRef((e,t)=>{let{children:n,...o}=e;if(s.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return s.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=>{let n=!1,o=e.map(e=>{let o=ey(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():ey(e[t],null)}}}}(t,a):a})}return s.Children.count(n)>1?s.Children.only(null):null});eb.displayName="SlotClone";var eA=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function ew(e){return s.isValidElement(e)&&e.type===eA}var ex=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=s.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?ev:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eC=s.forwardRef((e,t)=>(0,o.jsx)(ex.span,{...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}}));eC.displayName="VisuallyHidden";let eS=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,s.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 ek=n(41173),eE=n.n(ek);let eT=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:s=[],loading:l=!1,variant:u="default",onLogInClick:c,onSelect:d}=e,f=(0,i.ach)({max:"medium"}),h=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.xuv,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.xuv,{position:"relative",children:[f&&s.length>1?(0,o.jsx)(eO,{activeEnvironment:n,disabled:a||l,environments:s,onSelect:d,trigger:(0,o.jsx)(e_,{className:eE().logo})}):(0,o.jsx)(e_,{className:eE().logo}),s.length>1&&(0,o.jsx)(eM,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:eE().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!f&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.xuv,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===u?(0,o.jsx)(i.xvT,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===u?(0,o.jsx)(i.zxk,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===u?(0,o.jsx)(i.xvT,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===u?(0,o.jsx)(i.xvT,{component:"span",className:eE().activeEnvironmentName,"data-testid":"active-environment-name",children:h||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.xuv,{flexShrink:0,children:["unauthenticated"===u?(0,o.jsx)(i.ua7,{content:"Log in",side:"right",children:(0,o.jsx)(i.hU,{icon:(0,o.jsx)(eS,{className:eE().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,s.length>1?(0,o.jsx)(eO,{activeEnvironment:n,disabled:a,environments:s,onSelect:d,trigger:(0,o.jsx)(i.hU,{icon:l?(0,o.jsx)(i._3P,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eO=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:s,trigger:l}=e,u=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.h_2,{modal:!0,children:[(0,o.jsx)(i.ua7,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.$FS,{disabled:n,children:l})}),(0,o.jsxs)(i.AWV,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.Juw,{children:"Regular Environments"}):void 0,u.map(e=>(0,o.jsx)(eR,{environment:e,onSelect:s,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Juw,{children:"Personal Environment"}),(0,o.jsx)(eR,{environment:c,onSelect:s,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eR=e=>{let{environment:t,onSelect:n,isActive:a}=e,s="prod"===t.kind;return(0,o.jsx)(i.Xiv,{startIcon:(0,o.jsx)(eM,{kind:t.kind,className:eE().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.JO$,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:s?"Production":t.name})},eI={prod:"Production",stage:"Staging",dev:"Development"},eM=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,s=eI[t];return(0,o.jsx)("div",{className:(0,u.W)(eE()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(eC,{children:[s," environment"]}):null})};function ej(){let{environments:e,error:t}=(0,eu.QT)(ep,[]),{activeEnvironment:n}=(0,v.J)(),{refreshState:i,openLoginModal:a}=(0,eo.Z)(),{syncChanges:l}=(0,$.g)(),u=(0,et.L)(),c=(0,ee.n)(),[d,f]=(0,s.useState)(!1),{autoSyncStatus:h}=(0,$.g)();async function m(e){if((null==n?void 0:n.name)===e.name)return;f(!0),b.Xe.track({event:"environment:switch",domain:e.domain}),await ef(e);let t=await (0,b.y0)();i(t);let o=(0,eg.R)(t.libraries,t.remoteSlices),a=Object.values((0,em.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:s,changedSlices:d}=(0,eh.m)({authStatus:c,customTypes:a,isOnline:u,libraries:t.libraries,slices:o});"dev"===e.kind&&(s.length>0||d.length>0)&&l({environment:e,changedCustomTypes:s,changedSlices:d}),f(!1)}if(!u)return(0,o.jsx)(eT,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eT,{environments:e,activeEnvironment:n,onSelect:m,disabled:d||"syncing"===h,loading:d});if((0,el.ff)(t)||(0,el.TW)(t))return(0,o.jsx)(eT,{variant:(0,el.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var eD=n(54991);function eP(){let e=(0,eD.d)();return(0,i.ach)({max:"medium"})?null:(0,o.jsxs)(i.xvT,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function eF(){let e=(0,i.ach)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,O.P)();return(t||n)&&!e?(0,o.jsx)(i.Zbd,{color:"grey3",padding:16,children:(0,o.jsxs)(i.aYP,{children:[(0,o.jsx)(i.xvT,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.xvT,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.zxk,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(j(),{href:"/changelog",children:"Learn more"})})]})}):null}function eL(){let e=(0,a.useRouter)(),t=(0,U.M)(),[n,l]=(0,s.useState)(!1),{masterSliceLibrary:u}=S();function c(t){let{type:n}=t;return(0,o.jsx)(D,{title:w.$[n].name({start:!0,plural:!0}),href:A.cd[n].tablePagePathname,active:A.cd[n].matchesTablePagePathname(e.asPath),Icon:A.cd[n].Icon})}return(0,o.jsxs)(i.xuv,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.xuv,{flexDirection:"column",gap:16,children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.OdW,{height:40}),children:(0,o.jsx)(ej,{})})}),(0,o.jsx)(i.Z0O,{style:"dashed"}),(0,o.jsx)(T,{}),(0,o.jsx)(ei,{})]}),(0,o.jsxs)(i.xuv,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.S0S,{variant:"compact",children:[(0,o.jsx)(c,{type:"page"}),(0,o.jsx)(c,{type:"custom"}),(0,o.jsx)(D,{title:"Slices",href:"/slices",Icon:B,active:e.asPath.startsWith("/slices")})]}),(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(eF,{})})})]}),(0,o.jsx)(i.xuv,{flexDirection:"column",children:(0,o.jsxs)(i.S0S,{variant:"compact",children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(N,{})})}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_,{isOpen:n,onClose:()=>{l(!1)}}),(0,o.jsx)(D,{title:"Master Slice Library",Icon:z,onClick:()=>{b.Xe.track({event:"slice-library:beta:modal-opened"}),l(!0)}})]}),t.eligible&&(0,o.jsx)(D,{title:"Settings",href:"/settings",Icon:V,active:e.asPath.startsWith("/settings")}),(0,o.jsx)(D,{title:"Changelog",href:"/changelog",Icon:W,active:e.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.OdW,{height:16}),children:(0,o.jsx)(eP,{})})})})]})})]})}let eN=e=>{let{children:t,...n}=e;return(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsxs)(eB,{...n,children:[(0,o.jsx)(h,{children:(0,o.jsx)(eL,{})}),t]})})})},eU={prod:"purple",stage:"indigo",dev:"amber"},eB=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,v.J)(),a=i?eU[i.kind]:"purple";return(0,o.jsx)(f,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},eW=e=>{let{children:t,...n}=e;return(0,o.jsx)(m,{...n,children:(0,o.jsx)(i.xuv,{alignItems:"center",gap:8,children:t})})},ez=e=>{let{url:t,...n}=e,s=(0,a.useRouter)();return(0,o.jsx)(i.zxk,{...n,onClick:()=>{s.push(t)},startIcon:"arrowBack",color:"grey"})},eV=e=>(0,o.jsx)(i.xuv,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),eK=e=>(0,o.jsx)(i.hE2,{...e}),e$=e=>(0,o.jsx)(g,{...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 u}});var o=n(52322);n(2784);var i=n(65186),a=n(88932);let s=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:s,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})]})},u=e=>(0,o.jsx)(l,{message:"Slice saved successfully at ",...e})},95799:function(e,t,n){"use strict";n.d(t,{Dc:function(){return A},L$:function(){return v}});var o=n(88866),i=n(10082),a=n(45974),s=n(32521),l=n(40878),u=n(2439),c=n(44772),d=n(13365);let f=s.type({key:s.string,value:s.array(s.type({key:s.string,value:s.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),h={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}})}))}},m=s.array(s.type({key:s.string,value:s.union([o.NestableWidget,o.UID,u.GT])})),g=s.intersection([s.type({key:s.string,value:m}),s.partial({sliceZone:f})]),y={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&h.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:u.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,u.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,h.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},v={fromSM:e=>"Group"===e.type?u.Fl.fromSM(e):e},b=s.exact(s.intersection([s.type({id:s.string,label:i.StringOrNull,format:(0,l.X)(s.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(s.boolean,!0),tabs:s.array(g),status:(0,l.X)(s.boolean,!0)}),s.partial({hash:s.string})])),A={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return y.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(b.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]:y.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 m},GT:function(){return h}});var o=n(88866),i=n(59050),a=n(10082),s=n(45974),l=n(32521),u=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(u.F),h=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,f])}))),m={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]:m.fromSM(o)}:{...e,[n]:o}},{})})();return(0,s.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:m.toSM(n)}:{key:t,value:n}})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(h.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 s(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 s}})},5274:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(1744),s=n(69378),l=n.n(s);let u=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,s,d;let{status:f}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(s=o.remote,d=o.localScreenshots,s.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()(u(o.local),u(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 g},id:function(){return y}});var o,i,a=n(88866),s=n(45974),l=n(32521),u=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})),h=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:u.F,display:l.string})]),m=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(h)}),l.partial({description:l.string})]),g={fromSM(e){var t,n;return(0,s.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,s.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(h.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}})}))},y={fromSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(g.fromSM)})),toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(m.decode({...e,variations:e.variations.map(g.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 u}});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 s=/\B([A-Z])/g;function l(e){return e.replace(s,"-$1").toLowerCase().replace(/-/g,"_")}let u=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 ee}});var s,l,u,c,d=n(34406),f=(void 0===d||(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function h(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 m=f?new TextEncoder:void 0,g=f?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,y=(null==m?void 0:m.encodeInto)?function(e,t,n){m.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(m.encode(e),n)};function v(e,t,n){for(var o=t,i=o+n,a=[],s="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var u=63&e[o++];a.push((31&l)<<6|u)}else if((240&l)==224){var u=63&e[o++],c=63&e[o++];a.push((31&l)<<12|u<<6|c)}else if((248&l)==240){var u=63&e[o++],c=63&e[o++],d=(7&l)<<18|u<<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&&(s+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(s+=String.fromCharCode.apply(String,a)),s}var b=f?new TextDecoder:null,A=f?void 0!==d&&(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_DECODER)!=="force"?200:0:4294967295,w=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)}),C=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),S={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 s=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&s),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 C("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},_=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(S)}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 w(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 w(a,i)}}}return e instanceof w?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 w(t,e)},e.defaultCodec=new e,e}();function k(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 T=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.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===s&&(s=!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=s,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>g){var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),y(e,this.bytes,this.pos),this.pos+=t}else{var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var s=e.charCodeAt(a++);if((4294967168&s)==0){t[i++]=s;continue}if((4294965248&s)==0)t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,s=((1023&s)<<10)+(1023&l)+65536)}(4294901760&s)==0?t[i++]=s>>12&15|224:(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128),t[i++]=s>>6&63|128}t[i++]=63&s|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=k(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],s=e[a];this.ignoreUndefined&&void 0===s||(this.encodeString(a),this.doEncode(s,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 O(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var R=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],s=a.bytes,l=0;l<n;l++)if(s[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=v(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),I=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function s(e){try{u(o.next(e))}catch(e){a(e)}}function l(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}u((o=o.apply(e,t||[])).next())})},M=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,s={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(;s;)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 s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}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])}}},j=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)})}}},D=globalThis&&globalThis.__await||function(e){return this instanceof D?(this.v=e,this):new D(e)},P=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={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(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 D?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function u(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])}},F=function(e){var t=typeof e;return"string"===t||"number"===t},L=new DataView(new ArrayBuffer(0)),N=new Uint8Array(L.buffer),U=function(){try{L.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),B=new U("Insufficient data"),W=new R,z=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.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===s&&(s=4294967295),void 0===l&&(l=W),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=L,this.bytes=N,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=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(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=k(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 M(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 I(this,void 0,void 0,function(){var a,s,l,u,c,d,f;return M(this,function(h){switch(h.label){case 0:a=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=j(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof U))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:h.sent()},[3,12];case 7:if(h.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:h.sent(),h.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,s]}throw u=this,c=u.headByte,d=u.pos,f=u.totalPos,RangeError("Insufficient data in parsing ".concat(O(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 P(this,arguments,function(){var n,o,i,a,s,l,u,c;return M(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=j(e),d.label=2;case 2:return[4,D(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(s=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),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,D(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 U))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 u={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,D(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(u)throw u.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 C("Unrecognized type byte: ".concat(O(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(!F(t))throw new C("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new C("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 C("Unrecognized array type byte: ".concat(O(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new C("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 C("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 C("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw B;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>A?(n=this.bytes.subarray(a,a+e),i=b.decode(n)):i=v(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 C("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw B;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 C("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}(),V={};let K=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,$=e=>K(e)&&"R19Error"===e.name&&"procedurePath"in e,H=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)},q=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await q(e[o],t);return n}if(H(e)){let n={};for(let o in e)n[o]=await q(e[o],t);return n}return await t(e)};var Z=Object.defineProperty,G=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>(G(e,"symbol"!=typeof t?t+"":t,n),n);class Q extends Error{constructor(e,t={}){super(),Y(this,"procedurePath"),Y(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,Q),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let X=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>X(e,[...t,o.toString()])}),ee=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return X(async(n,o)=>{var i,a,s,l;let u=await q(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new Q("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:u},new T((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=(s=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=V),new z(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(s));if(!("error"in f))return q(f.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=f.error;if($(e)){let t=new Q(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(K(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new Q("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 w},t7:function(){return h},Hm:function(){return g},jP:function(){return m},hr:function(){return f},W6:function(){return v},YS:function(){return b},Ch:function(){return y},Jk:function(){return A}});var o=n(17620),i=n.n(o),a=n(32145),s=n(1744),l=n(75665);let u=(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")(),h=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),g=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),y=e=>Object.values(e.availableCustomTypes),v=e=>Object.keys(e.availableCustomTypes),b=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),A=(e,t)=>e.availableCustomTypes[t],w=(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)(h):{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)(m):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(g):{let n=e[t.payload.customTypeId];if((0,s.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,s.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,s.TG)(o)?[t,{...o,local:u(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 u},TA:function(){return h},U1:function(){return i},gZ:function(){return d},wW:function(){return m},x0:function(){return l},zj:function(){return s}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),s=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,u=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,f=e=>e.environment.packageManager,h=e=>e.userContext.authStatus,m=(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 u},U:function(){return f},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),s=n(93017);let l={...i()(s.z,()=>!1)},u=(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)(u):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 u}});var o=n(34519),i=n.n(o),a=n(32145),s=n(46962);let l={...i()(s.q,()=>!1)},u=(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)(u):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 h},dS:function(){return s},ek:function(){return d},og:function(){return f},sT:function(){return m},xB:function(){return y},xC:function(){return g},xg:function(){return u},zy:function(){return c}});var o=n(32145),i=n(29040),a=n(79546);let s=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),u=(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")(),h=e=>e.slices.libraries,m=e=>e.slices.remoteSlices,g=e=>(0,i.R)(e.slices.libraries,m(e)),y=(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)(s):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)(u):{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),s=n(79546),l=n(23798),u=n(93017),c=n(27078),d=n(46962),f=n(68916),h=n(17467);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,s.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:u.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:u.z.LOGIN})),stopLoadingReview:()=>e((0,l.CK)({loadingKey:u.z.REVIEW})),startLoadingReview:()=>e((0,l.HP)({loadingKey:u.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,h.dR)({reviewType:t})),skipReview:t=>e((0,h.jv)({reviewType:t})),setSeenSimulatorToolTip:()=>e((0,h.kd)()),setSeenChangesToolTip:()=>e((0,h.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,h.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 h},bv:function(){return m},dR:function(){return l},e4:function(){return y},jv:function(){return u},kd:function(){return c},mw:function(){return d},ov:function(){return g},po:function(){return f}});var o=n(32145),i=n(58161),a=n(79546);let s={userReview:{onboarding:!1},hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/SEND_REVIEW")(),u=(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")(),h=e=>{var t,n;return null!==(n=e.userContext.userReview)&&void 0!==n?n:{onboarding:null!==(t=e.userContext.hasSendAReview)&&void 0!==t&&t}},m=e=>e.userContext.hasSeenSimulatorToolTip||!1,g=e=>e.userContext.lastSyncChange,y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):case(0,o.getType)(u):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:v(t.payload.clientError)};case(0,o.getType)(f):return{...e,lastSyncChange:Date.now()};default:return e}},v=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"},15214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tT}});var o,i,a,s,l,u,c,d,f,h,m,g,y=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 v=n(7729),b=function(){return(b=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)},A={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 b(b({},e),t)}},w=n(2784),x=n(56580),C=n(5632),S=n.n(C),_="@@router/LOCATION_CHANGE",k=function(e){return{type:_,payload:{location:e}}},T=n(38398),O=function(e){var t=(0,T.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},R=n(28316),I=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){R.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(k(O(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},M=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:O(e)})}};M(A);var j=(h=A.merge,m=M(A)(),function(e,t){return(void 0===e&&(e=m),t.type===_)?h(e,t.payload):e}),D=(g=A.getIn,function(e){var t=e.Router||S(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,w.useRef)(0),s=(0,w.useRef)(!0),l=(0,w.useRef)(!1);function u(){s.current=--a.current<=0}function c(){s.current=++a.current<=0}return(0,w.useEffect)(function(){return i.subscribe(function(){if(s.current){var e=g(i.getState(),[o,"location"]),n=e.pathname,a=e.search,u=e.hash,c=e.href,d=O(t.asPath),f=d.pathname,h=d.search,m=d.hash;if(f!==n||h!==a||u!==m){var y="".concat(n).concat(a).concat(u);l.current=!0,t.replace(c,y)}}})},[t,i,o]),(0,w.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==g(i.getState(),[o,"location"]).href&&i.dispatch(k(O(e))),u()}return t.ready(function(){e=I(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",u),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",u),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),w.createElement(w.Fragment,{},e.children)}),P=n(25237),F=n.n(P),L=n(97729),N=n.n(L);function U(e){return(U="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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=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),s=0;s<i;s++)a[s]=arguments[s];return o=(e=(t=B(n)).call.apply(t,[this].concat(a)))&&("object"===U(e)||"function"==typeof e)?e:W(this),V(W(o),"state",{bootstrapped:!1}),V(W(o),"_unsubscribe",void 0),V(W(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&&z(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}(w.PureComponent);V(K,"defaultProps",{children:null,loading:null});var $=n(59326),H=n(62273),q=n(28165);function Z(){return(Z=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 G=function(e){return"--theme-ui-"+e.replace("-__default","")},Y=function(e){return"var("+G(e)+")"},Q=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},X=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),ee=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],s=Q(n,i);if(a&&"object"==typeof a){o[i]=e(a,s);continue}if(X.has(i)){o[i]=a;continue}o[i]=Y(s)}return o},et=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=Q(t,i),s=n[i];s&&"object"==typeof s?o=Z({},o,e(a,s)):o[G(a)]=s}return o},en=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,s=e.rawColors||e.colors;if(!s||!1===a)return{};if(!1===n)return(0,H.iv)({color:"text",bg:"background"})(e);var l=s.modes||{},u=er(s,l);if(i){var c=l[i];c||i!==o||(c=s),c?u["@media print"]=et("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:s,printColorModeName:i})}var d=function(e){return Y("colors-"+e)};return(0,H.iv)(Z({},u,{color:d("text"),bg:d("background")}))(e)};function er(e,t){var n=et("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=et("colors",t[e])}),n}var eo="theme-ui-color-mode",ei="(prefers-color-scheme: dark)",ea={get:function(){try{return window.localStorage.getItem(eo)}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(eo,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},es=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(ei).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},el="undefined"==typeof window?function(){}:w.useLayoutEffect,eu=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,s=i.useColorSchemeMediaQuery,l=i.useLocalStorage,u=(0,w.useState)(function(){return!1!==s&&es()||a}),c=u[0],d=u[1];el(function(){var e=!1!==l&&ea.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==s&&e&&e!==c&&(c=e,d(e))},[]),(0,w.useEffect)(function(){c&&!1!==l&&ea.set(c)},[c,l]);var f=(0,w.useCallback)(function(){d(es()||a)},[a]);(0,w.useEffect)(function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.addEventListener?e.addEventListener("change",f):"function"==typeof e.addListener&&e.addListener(f)}return function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.removeEventListener?e.removeEventListener("change",f):"function"==typeof e.removeListener&&e.removeListener(f)}}},[s,f]);var h=ed({colorMode:c,outerTheme:o}),m=Z({},t,{theme:h,colorMode:c,setColorMode:d});return w.createElement($.vg,{context:m},w.createElement(ef,{theme:h}),n)},ec=function(e){var t=Z({},e);return delete t.modes,t};function ed(e){var t=e.outerTheme,n=e.colorMode;return(0,w.useMemo)(function(){var e=Z({},t),o=(0,H.U2)(e,"colors.modes",{}),i=(0,H.U2)(o,n,{});n&&(e.colors=Z({},e.colors,i));var a=t.config||t,s=a.useCustomProperties,l=a.initialColorModeName,u=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==s){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],s=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var u=Z({},n[s]);e(l,u),n[s]=u}}else n[s]=l}}(f,c=Z({},c)),c.modes&&(c.modes[u]=ec(c)),e.rawColors=c;else if("modes"in c){var h,m=Z(((h={})[u]=ec(c),h),c.modes);e.rawColors=Z({},f,{modes:m})}else e.rawColors=f;e.colors=ee(ec(c),"colors")}return e},[n,t])}function ef(e){var t=e.theme;return(0,$.tZ)(q.xB,{styles:function(){return{html:en(t)}}})}function ep(e){var t,n=e.outerCtx,o=e.children,i=ed({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,w.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),s=a[0],l=a[1];el(function(){l(!1)},[]);var u=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,w.useMemo)(function(){if(!1===c)return{};var e=u||{};return(0,H.iv)(er(e,e.modes||{}))(i)},[i,u,c]);return w.createElement($.vg,{context:Z({},n,{theme:i})},(0,$.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(s),suppressHydrationWarning:!0,css:d,children:o}))}var eh=function(e){var t=e.children,n=(0,$.B7)();return"function"!=typeof n.setColorMode?w.createElement(eu,{outerCtx:n},t):w.createElement(ep,{outerCtx:n},t)},em=function(){return(0,$.tZ)(q.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,H.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},eg=function(e){var t=e.theme,n=e.children,o=(0,$.B7)()===$.yo;return w.createElement($.f6,{theme:t},w.createElement(eh,null,o&&w.createElement(em,null),n))},ey=n(93188),ev=n(30988),eb=n(80546),eA=n(5813),ew=n(65077),ex=n(77859),eC=n(49857),eS=n(41067),e_=()=>{let{refreshState:e}=(0,eS.Z)(),t=(0,w.useCallback)(e,[]),{data:n}=(0,eC.ZP)("getState",async()=>await (0,ey.y0)());(0,w.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),ex.av({id:n.env.shortId}),ex.YA("repository",n.env.repo),ex.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},ek=n(68916),eE=n(70647),eT=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)})),t=(0,C.useRouter)();(0,w.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);ey.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),eO()},[]),(0,w.useEffect)(()=>{let e=()=>{eO()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eO(){let e=await eE.managerClient.project.getAdapterName();return ey.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 eR=n(5335),eI=n(37149),eM=n.n(eI),ej=n(88932),eD=n(75289),eP=n(69765),eF=n(99757),eL=n(11104),eN=n(75665),eU=n(29040);async function eB(e,t,n,o){let i=0,a=(s,l)=>{Promise.resolve(e()).then(e=>{t(e)?s(e):i<o?(i+=1,setTimeout(a,n,s,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eW=n(79546),ez=n(23798),eV=n(93017),eK=n(27078),e$=n(46962),eH=n(58161),eq=()=>{eM().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,eK.gP)(e,e$.q.LOGIN),isLoginLoading:(0,ez.hg)(e,eV.z.LOGIN),env:(0,eW.zj)(e)})),{syncChanges:o}=(0,eb.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:s}=(0,eS.Z)(),l=function(e){try{let t=new URL(e),n=[".wroom.io",".wroom.test",".dev-tools-wroom.com",".marketing-tools-wroom.com",".platform-wroom.com"].find(e=>t.hostname.endsWith(e));if(void 0!==n)return t.hostname=n.slice(1),t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),u="".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(u)try{a(),await (0,ey.Yf)(),window.open(u,"_blank"),await eB(ey.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),ej.Am.success("Logged in"),s(),i();let e=await (0,ey.y0)(),t=(0,eU.R)(e.libraries,e.remoteSlices),n=Object.values((0,eN.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eF.m)({authStatus:eH.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eP.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){s(),ej.Am.error("Login failed")}};return(0,y.jsx)(eL.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,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.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,y.jsx)(eD.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,y.jsx)(eD.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,y.jsx)(eD.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,y.jsxs)(y.Fragment,{children:["Not seeing the browser tab? ",(0,y.jsx)("br",{}),(0,y.jsx)(eD.rU,{target:"_blank",href:u,children:"Click here"})]}):(0,y.jsxs)(y.Fragment,{children:["Your session has expired.",(0,y.jsx)("br",{}),"Please log in again."]})}),(0,y.jsx)(eD.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,y.jsx)(eD.$j,{color:"#FFF",size:16}):(0,y.jsx)(y.Fragment,{children:"Log in to Prismic"})})]})]})})};let eZ=()=>(0,y.jsxs)(eD.xu,{children:[(0,y.jsxs)("p",{children:["We could not find any local library in your project.",(0,y.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,y.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var eG=n(1744),eY=n(40572),eQ=n(17467),eJ=n(63397);let eX=[1,2,3,4,5],e0=e=>{let{field:t,form:n}=e;return(0,y.jsx)(eD.xu,{sx:{mb:3,display:"flex",justifyContent:"space-between"},children:eX.map((e,o)=>(0,y.jsx)(eD.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))})};eM().setAppElement("#__next");let e1="onboarding",e2=()=>{let{isReviewLoading:e,isLoginModalOpen:t}=(0,x.v9)(e=>({isReviewLoading:(0,ez.hg)(e,eV.z.REVIEW),isLoginModalOpen:(0,eK.gP)(e,e$.q.LOGIN)})),{skipReview:n,sendAReview:o,startLoadingReview:i,stopLoadingReview:a}=(0,eS.Z)(),s=(e,t)=>{i(),ey.Xe.track({event:"review",rating:e,comment:t,type:e1}),o(e1),a()};return(0,y.jsx)(eL.Z,{isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:()=>n(e1),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,y.jsx)(eJ.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:o=>{let{isValid:i}=o;return(0,y.jsx)(eJ.l0,{id:"review-form",children:(0,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.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,y.jsx)(eD.X6,{sx:{fontSize:"20px",mr:4},children:"Share feedback"}),(0,y.jsx)(eD.x8,{type:"button",onClick:()=>n(e1)})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",padding:"16px 24px 32px",bg:"headSection"},children:[(0,y.jsx)(eD.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,y.jsxs)(eD.xu,{mb:2,sx:{display:"flex",flex:1,justifyContent:"space-between"},children:[(0,y.jsx)(eD.xv,{variant:"xs",as:"p",children:"Very unsatisfied"}),(0,y.jsx)(eD.xv,{variant:"xs",as:"p",children:"Very satisfied"})]}),(0,y.jsx)(eJ.gN,{name:"rating",component:e0}),(0,y.jsx)(eJ.gN,{name:"comment",type:"text",placeholder:"Tell us more...",as:eD.gx,autoComplete:"off",sx:{height:80,mb:3},"data-testid":"review-form-comment"}),(0,y.jsx)(eD.zx,{form:"review-form",type:"submit",disabled:!i||e||t,children:"Submit"})]})]})})}})})},e5=()=>{let{userReview:e,customTypes:t,libraries:n,lastSyncChange:o}=(0,x.v9)(e=>({userReview:(0,eQ.Eq)(e),customTypes:(0,eY.Ch)(e),libraries:(0,ek.Sd)(e),lastSyncChange:(0,eQ.ov)(e)})),i=n&&n.length?n.reduce((e,t)=>t?e+t.components.length:e,0):0,a=t.some(e=>(0,eG.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})),s=!!(o&&Date.now()-o>=36e5),l=i>=1&&t.length>=1&&a&&s;return!e.onboarding&&l?(0,y.jsx)(e2,{}):null};var e3=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)}));return eT(),e_(),(0,y.jsxs)(y.Fragment,{children:[n.length>0?t:(0,y.jsx)(eR.LN,{children:(0,y.jsx)(eR.RN,{children:(0,y.jsx)(ew.xR,{children:(0,y.jsx)(eZ,{})})})}),(0,y.jsx)(eq,{}),(0,y.jsx)(e5,{})]})},e6=e=>{let{children:t}=e;return(0,y.jsx)(eD.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},e4=()=>(0,y.jsx)(e6,{children:(0,y.jsx)(eD.$j,{variant:"styles.spinner",id:"spinner"})}),e8=n(91133),e7=n(18717),e9="persist:",te="persist/FLUSH",tt="persist/REHYDRATE",tn="persist/PAUSE",tr="persist/PERSIST",to="persist/PURGE",ti="persist/REGISTER";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 ts(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 tl(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?ts(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)):ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===ta(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function tu(e){return JSON.stringify(e)}function tc(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:e9).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:td,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 td(e){return JSON.parse(e)}function tf(e){}function tp(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(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)):tp(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tm(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 tg(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 ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(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)):tg(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tv={registry:[],bootstrapped:!1},tb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tv,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ti:return ty({},e,{registry:[].concat(tm(e.registry),[t.key])});case tt:var n=e.registry.indexOf(t.key),o=tm(e.registry);return o.splice(n,1),ty({},e,{registry:o,bootstrapped:0===o.length});default:return e}},tA=n(14549),tw=()=>(0,e7.UY)({modal:eK.XV,loading:ez.U,userContext:eQ.e4,environment:eW.wW,availableCustomTypes:eY.Vo,slices:ek.xB,router:j});let tx={key:"root",storage:tA.Z,whitelist:["userContext"]},tC=(void 0===o&&(o={}),s=void 0===(a=o.Router)?S():a,u=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]=u[t]?u[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(s&&!i&&o!==_){var a=A.getIn(e.getState(),[d,"location"]);s.asPath!==a.href&&t(k(O(s.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,u=l.args,c=f[l.method];"go"!==c||i||"number"!=typeof u[0]?c&&Object.prototype.hasOwnProperty.call(s,c)&&s[c].apply(s,u):window.history.go(u[0])}}});var tS=n(12170),t_=()=>({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,tS.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,tS.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,tS._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,tS._j)("secondary",.05),borderColor:(0,tS._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,tS._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,tS._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,tS._j)("danger",.05),borderColor:(0,tS._j)("danger",.15),outline:"none"},"&:active":{bg:(0,tS._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,tS._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,tS._j)("secondary",.05),borderColor:(0,tS._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,tS._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,tS.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,tS.$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,tS._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,tS._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,tS._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,tS._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 tk=e=>{let{children:t}=e,{setColorMode:n}=(0,$.B7)();return(0,w.useEffect)(()=>{n&&n("light")},[]),(0,y.jsx)(y.Fragment,{children:t})};function tE(e){let{Component:t,pageProps:n}=e,[o,i]=(0,w.useState)(null),[a,s]=(0,w.useState)(null);(0,w.useEffect)(()=>{(async function(){i(await (0,ey.y0)())})()},[]),(0,w.useEffect)(()=>{if(!o||a)return;let e=(0,eN.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,s,l,u,c,d,f,h,m;let g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=[(0,e7.md)(tC)],v=e7.qC,b=tw(),A=(e=void 0!==tx.version?tx.version:-1,tx.debug,t=void 0===tx.stateReconciler?tl:tx.stateReconciler,n=tx.getStoredState||tc,o=void 0!==tx.timeout?tx.timeout:5e3,i=null,a=!1,s=!0,l=function(e){return e._persist.rehydrated&&i&&!s&&i.update(e),e},function(u,c){var d,f,h=u||{},m=h._persist,g=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}(h,["_persist"]);if(c.type===tr){var y=!1,v=function(e,t){y||(c.rehydrate(tx.key,e,t),y=!0)};if(o&&setTimeout(function(){y||v(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tx.key,'"')))},o),s=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:e9).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:tu;var u=e.writeFailHandler||null,c={},d={},f=[],h=null,m=null;function g(){if(0===f.length){h&&clearInterval(h),h=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]}),m=l.setItem(s,t(d)).catch(v))}function y(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function v(e){u&&u(e)}return{update:function(e){Object.keys(e).forEach(function(t){y(t)&&c[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&y(t)&&-1===f.indexOf(t)&&void 0!==c[t]&&f.push(t)}),null===h&&(h=setInterval(g,a)),c=e},flush:function(){for(;0!==f.length;)g();return m||Promise.resolve()}}}(tx)),m)return th({},b(g,c),{_persist:m});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(tx.key),n(tx).then(function(t){(tx.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){v(e)},function(e){v(void 0,e)})},function(e){v(void 0,e)}),th({},b(g,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===to)return a=!0,c.result((d=tx.storage,f="".concat(void 0!==tx.keyPrefix?tx.keyPrefix:e9).concat(tx.key),d.removeItem(f,tf))),th({},b(g,c),{_persist:m});if(c.type===te)return c.result(i&&i.flush()),th({},b(g,c),{_persist:m});if(c.type===tn)s=!0;else if(c.type===tt){if(a)return th({},g,{_persist:th({},m,{rehydrated:!0})});if(c.key===tx.key){var A=b(g,c),w=c.payload;return l(th({},!1!==t&&void 0!==w?t(w,u,A,tx):A,{_persist:th({},m,{rehydrated:!0})}))}}if(!m)return b(u,c);var x=b(g,c);return x===g?u:l(th({},x,{_persist:m}))}),w=(0,e7.MT)(A,g,v(...y)),x=(c=!1,d=(0,e7.MT)(tb,tv,void 0),f=function(e){d.dispatch({type:ti,key:e})},h=function(e,t,n){var o={type:tt,payload:t,err:n,key:e};w.dispatch(o),d.dispatch(o),c&&m.getState().bootstrapped&&(c(),c=!1)},m=ty({},d,{purge:function(){var e=[];return w.dispatch({type:to,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return w.dispatch({type:te,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){w.dispatch({type:tn})},persist:function(){w.dispatch({type:tr,register:f,rehydrate:h})}}),u&&u.manualPersist||m.persist(),m);return{store:w,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});s({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||e3;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(N(),{children:(0,y.jsx)("title",{children:"Slice Machine"})}),(0,y.jsx)(eg,{theme:t_,children:(0,y.jsx)(tk,{children:(0,y.jsx)(v.f6W,{mode:"light",children:(0,y.jsx)(v.pnl,{children:a&&o?(0,y.jsxs)(x.zt,{store:a.store,children:[(0,y.jsx)(D,{Router:S(),children:(0,y.jsx)(K,{loading:null,persistor:a.persistor,children:(0,y.jsx)(ev.S,{renderError:()=>(0,y.jsx)(v.xuv,{justifyContent:"center",width:"100%",padding:80,children:(0,y.jsx)(v.Iq8,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,y.jsx)(w.Suspense,{fallback:(0,y.jsx)(e4,{}),children:(0,y.jsx)(eb.E,{children:(0,y.jsx)(eA.e,{children:(0,y.jsx)(l,{children:(0,y.jsx)(t,{...n})})})})})})})}),(0,y.jsx)(e8.ZP,{})]}):(0,y.jsx)(e4,{})})})})})]})}var tT=F()(()=>Promise.resolve(tE),{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"}},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"}},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:{}},s=!0;try{t[e](a,a.exports,i),s=!1}finally{s&&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=b(e));var o,i,a,s,l,u,c,d,f,h=(i=(o=e).auth,a=o.hostname,s=o.protocol||"",l=o.pathname||"",u=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||"",s&&":"!==s.substr(-1)&&(s+=":"),o.slashes||(!s||n.test(s))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:s,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var s="http://",l=s+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?b(e):e;e="object"==typeof e?o(e):e;var i=b(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(u);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+"/"),h=new URL(t,f).toString().replace(l,""),m=i.protocol||n.protocol;return m+=n.slashes||i.slashes?"//":"",!a&&m?h=h.replace(s,m):a&&(h=h.replace(s,"")),c.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),a&&(h=a+("/"===h[0]?h.substr(1):h)),h}function f(){}f.prototype.parse=b,f.prototype.format=o,f.prototype.resolve=d,f.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(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(m);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var s=!/(^javascript)/.test(e)&&e.match(g),u=y.test(e),c="";s&&(h.test(s[1])||(c=s[1].toLowerCase(),e=""+s[2]+s[3]),s[2]||(u=!1,h.test(s[1])?(c=s[1],e=""+s[3]):e="//"+s[3]),3!==s[2].length&&1!==s[2].length||(c=s[1],e="/"+s[3]));var d,b=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=b&&b[1],w=new f,x="",C="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(C="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return w.protocol=c,w.href=c,w}}w.slashes=u&&!C,w.host="w.w"===d.host?"":d.host,w.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),w.protocol=x?c||null:d.protocol,w.search=d.search.replace(/\\/g,"%5C"),w.hash=d.hash.replace(/\\/g,"%5C");var S=e.split("#");!w.search&&~S[0].indexOf("?")&&(w.search="?"),w.hash||""!==S[1]||(w.hash="#"),w.query=n?t.decode(d.search.substr(1)):w.search.substr(1),w.pathname=C+(s?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:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=d.port,A&&!w.host.endsWith(A)&&(w.host+=A,w.port=A.slice(1)),w.href=C?""+w.pathname+w.search+w.hash:o(w);var _=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~_.indexOf(e)||(w[e]=w[e]||null)}),w}a.parse=b,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return b(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 s=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,f,h,m,g=e[c].replace(s,"%20"),y=g.indexOf(o);(y>=0?(d=g.substr(0,y),f=g.substr(y+1)):(d=g,f=""),h=decodeURIComponent(d),m=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(a,h))?t(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}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,s,l){return(a=a||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+s;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))+s+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:{}},s=!0;try{t[e](a,a.exports,o),s=!1}finally{s&&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 s(){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:s}catch(e){n=s}}();var u=[],c=!1,d=-1;function f(){c&&o&&(c=!1,o.length?u=o.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=l(f);c=!0;for(var t=u.length;t;){for(o=u,u=[];++d<t;)o&&o[d].run();d=-1,t=u.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!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 m(e,t){this.fun=e,this.array=t}function g(){}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];u.push(new m(e,t)),1!==u.length||c||l(h)},m.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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,s){if(s!==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,s){if(a===s)return!0;if(a&&s&&"object"==typeof a&&"object"==typeof s){var l,u,c,d=t(a),f=t(s);if(d&&f){if((u=a.length)!=s.length)return!1;for(l=u;0!=l--;)if(!e(a[l],s[l]))return!1;return!0}if(d!=f)return!1;var h=a instanceof Date,m=s instanceof Date;if(h!=m)return!1;if(h&&m)return a.getTime()==s.getTime();var g=a instanceof RegExp,y=s instanceof RegExp;if(g!=y)return!1;if(g&&y)return a.toString()==s.toString();var v=n(a);if((u=v.length)!==n(s).length)return!1;for(l=u;0!=l--;)if(!o.call(s,v[l]))return!1;if(i&&a instanceof Element&&s instanceof Element)return a===s;for(l=u;0!=l--;)if(("_owner"!==(c=v[l])||!a.$$typeof)&&!e(a[c],s[c]))return!1;return!0}return a!=a&&s!=s}(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 u}});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),s=function(){return(s=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 u(e){return function(t){return o.createElement(c,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,s({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,u=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",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&o.createElement("title",null,u),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 g},$vK:function(){return C},B4e:function(){return w},BAW:function(){return b},Fwj:function(){return T},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return S},SQS:function(){return A},U8L:function(){return k},XN7:function(){return y},YTL:function(){return m},_b$:function(){return v},eJU:function(){return u},f$3:function(){return s},hs8:function(){return I},iy3:function(){return _},k71:function(){return c},lPv:function(){return O},nwY:function(){return R},vB0:function(){return l},vVM:function(){return h},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 s(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 u(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 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:"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 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:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function g(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 y(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 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:"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 b(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 A(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 w(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 C(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 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 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 _(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 k(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 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:"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 O(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 R(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 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:"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
|
|
710
|
+
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let o=n(17653)._(n(2784)),i=n(46085),a=[],s=[],l=!1;function u(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 u(){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&&s.push(t=>{for(let n of e)if(t.includes(n))return u()})}function d(e,t){!function(){u();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=o.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return s.loading||s.error?o.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?o.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>u(),d.displayName="LoadableComponent",o.default.forwardRef(d)}(u,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(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},30988:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var o=n(52322),i=n(7729),a=n(37792),s=n(2784),l=n(52762);let u=e=>{let t=(0,s.useRef)(),n=(0,l.n)();return(0,o.jsx)(i.SVk,{...e,onError:e=>{t.current=e},ref:(0,s.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 h},X$:function(){return u},XQ:function(){return f},Xe:function(){return A},Xi:function(){return d},Yf:function(){return g},eH:function(){return c},pL:function(){return v},t0:function(){return y},tI:function(){return m},y0:function(){return s},y3:function(){return b}});var o=n(95799),i=n(80410),a=n(70647);let s=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}),u=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}},h=async e=>await a.managerClient.slices.updateSlice({libraryID:e.from,model:i.id.fromSM(e.model),mocks:e.mocks}),m=async e=>await a.managerClient.prismicRepository.pushChanges(e),g=async()=>await a.managerClient.user.logout(),y=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}}},v=async e=>await a.managerClient.slices.readSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID}),b=async e=>await a.managerClient.slices.updateSliceMocks({libraryID:e.libraryID,sliceID:e.sliceID,mocks:e.mocks}),A={group:a.managerClient.telemetry.group,track:a.managerClient.telemetry.track}},23335:function(e,t,n){"use strict";n.d(t,{a:function(){return u},g:function(){return c}});var o=n(52322),i=n(7729),a=n(2784),s=n(63853),l=n.n(s);let u=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.xvT,{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.xvT,{component:"span",color:"grey11",children:"/"})})},99044:function(e,t,n){"use strict";let o,i;n.d(t,{zs:function(){return ty},Rp:function(){return tS},OJ:function(){return tC},LB:function(){return tx},Ev:function(){return tw}});var a=n(52322),s=n(7729),l=n(36887),u=n(6277),c=n(2784),d=n(10635),f=n(7896);function h(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 m(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 s(t){let{scope:n,children:o,...s}=t,l=(null==n?void 0:n[e][a])||i,u=(0,c.useMemo)(()=>s,Object.values(s));return(0,c.createElement)(l.Provider,{value:u},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||i,u=(0,c.useContext)(l);if(u)return u;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 g(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 y(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return(0,c.useCallback)(y(...e),e)}function b(e){return e.split("-")[1]}function A(e){return"y"===e?"height":"width"}function w(e){return e.split("-")[0]}function x(e){return["top","bottom"].includes(w(e))?"x":"y"}function C(e,t,n){let o,{reference:i,floating:a}=e,s=i.x+i.width/2-a.width/2,l=i.y+i.height/2-a.height/2,u=x(t),c=A(u),d=i[c]/2-a[c]/2,f="x"===u;switch(w(t)){case"top":o={x:s,y:i.y-a.height};break;case"bottom":o={x:s,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(b(t)){case"start":o[u]-=d*(n&&f?-1:1);break;case"end":o[u]+=d*(n&&f?-1:1)}return o}let S=async(e,t,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=C(c,o,u),h=o,m={},g=0;for(let n=0;n<l.length;n++){let{name:a,fn:y}=l[n],{x:v,y:b,data:A,reset:w}=await y({x:d,y:f,initialPlacement:o,placement:h,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=b?b:f,m={...m,[a]:{...m[a],...A}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=C(c,h,u)),n=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};function _(e,t){return"function"==typeof e?e(t):e}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function O(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=_(t,e),g=k(m),y=l[h?"floating"===f?"reference":"floating":f],v=T(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{...s.floating,x:o,y:i}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},x=T(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:A,strategy:u}):b);return{top:(v.top-x.top+g.top)/w.y,bottom:(x.bottom-v.bottom+g.bottom)/w.y,left:(v.left-x.left+g.left)/w.x,right:(x.right-v.right+g.right)/w.x}}let R=Math.min,I=Math.max,M=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:a,platform:s,elements:l}=t,{element:u,padding:c=0}=_(e,t)||{};if(null==u)return{};let d=k(c),f={x:n,y:o},h=x(i),m=A(h),g=await s.getDimensions(u),y="y"===h,v=y?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-f[h]-a.floating[m],C=f[h]-a.reference[h],S=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),T=S?S[v]:0;T&&await (null==s.isElement?void 0:s.isElement(S))||(T=l.floating[v]||a.floating[m]);let O=T/2-g[m]/2-1,M=R(d[y?"top":"left"],O),j=R(d[y?"bottom":"right"],O),D=T-g[m]-j,P=T/2-g[m]/2+(w/2-C/2),F=I(M,R(P,D)),L=null!=b(i)&&P!=F&&a.reference[m]/2-(P<M?M:j)-g[m]/2<0?P<M?M-P:D-P:0;return{[h]:f[h]-L,data:{[h]:F,centerOffset:P-F+L}}}}),j=["top","right","bottom","left"],D=(j.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function P(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}let F={start:"end",end:"start"};function L(e){return e.replace(/start|end/g,e=>F[e])}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U(e){return j.some(t=>e[t]>=0)}function B(e){return"x"===e?"y":"x"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){return W(e).getComputedStyle(e)}function V(e){return e instanceof W(e).Node}function K(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){return e instanceof W(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof W(e).ShadowRoot||e instanceof ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Z(e){let t=G(),n=z(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 G(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Y(e){return["html","body","#document"].includes(K(e))}let Q=Math.min,X=Math.max,ee=Math.round,et=Math.floor,en=e=>({x:e,y:e});function er(e){let t=z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=$(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=ee(n)!==a||ee(o)!==s;return l&&(n=a,o=s),{width:n,height:o,$:l}}function eo(e){return e instanceof W(e).Element}function ei(e){return eo(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!$(t))return en(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:a}=er(t),s=(a?ee(n.width):n.width)/o,l=(a?ee(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let es=en(0);function el(e){let t=W(e);return G()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=ei(e),l=en(1);t&&(o?eo(o)&&(l=ea(o)):l=ea(e));let u=(void 0===(i=n)&&(i=!1),!(!o||i&&o!==W(s))&&i)?el(s):en(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,f=a.width/l.x,h=a.height/l.y;if(s){let e=W(s),t=o&&eo(o)?W(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=ea(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,h*=e.y,c+=i,d+=a,n=W(n).frameElement}}return T({width:f,height:h,x:c,y:d})}function ec(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ed(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function ef(e){return eu(ed(e)).left+ec(e).scrollLeft}function ep(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||ed(e);return H(t)?t.host:t}function eh(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=ep(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&q(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=W(o);return i?t.concat(a,a.visualViewport||[],q(o)?o:[]):t.concat(o,eh(o))}function em(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=W(e),o=ed(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){a=i.width,s=i.height;let e=G();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:l,y:u}}(e,n);else if("document"===t)o=function(e){let t=ed(e),n=ec(e),o=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=X(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=X(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}(ed(e));else if(eo(t))o=function(e,t){let n=eu(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,a=$(e)?ea(e):en(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=el(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function eg(e,t){return $(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ey(e,t){let n=W(e);if(!$(e))return n;let o=eg(e,t);for(;o&&["table","td","th"].includes(K(o))&&"static"===z(o).position;)o=eg(o,t);return o&&("html"===K(o)||"body"===K(o)&&"static"===z(o).position&&!Z(o))?n:o||function(e){let t=ep(e);for(;$(t)&&!Y(t);){if(Z(t))return t;t=ep(t)}return null}(e)||n}let ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=$(n),a=ed(n);if(n===a)return t;let s={scrollLeft:0,scrollTop:0},l=en(1),u=en(0);if((i||!i&&"fixed"!==o)&&(("body"!==K(n)||q(a))&&(s=ec(n)),$(n))){let e=eu(n);l=ea(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}},getDocumentElement:ed,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=eh(e).filter(e=>eo(e)&&"body"!==K(e)),i=null,a="fixed"===z(e).position,s=a?ep(e):e;for(;eo(s)&&!Y(s);){let t=z(s),n=Z(s);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||q(s)&&!n&&function e(t,n){let o=ep(t);return!(o===n||!eo(o)||Y(o))&&("fixed"===z(o).position||e(o,n))}(e,s))?o=o.filter(e=>e!==s):i=t,s=ep(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((e,n)=>{let o=em(t,n,i);return e.top=X(o.top,e.top),e.right=Q(o.right,e.right),e.bottom=Q(o.bottom,e.bottom),e.left=X(o.left,e.left),e},em(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ey,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||ey,a=this.getDimensions;return{reference:function(e,t,n){let o=$(t),i=ed(t),a="fixed"===n,s=eu(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=en(0);if(o||!o&&!a){if(("body"!==K(t)||q(i))&&(l=ec(t)),$(t)){let e=eu(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ef(i))}return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.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 er(e)},getScale:ea,isElement:eo,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function eb(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=ei(e),d=i||a?[...c?eh(c):[],...eh(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=ed(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;let m={rootMargin:-et(d)+"px "+-et(i.clientWidth-(c+f))+"px "+-et(i.clientHeight-(d+h))+"px "+-et(c)+"px",threshold:X(0,Q(1,u))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!g)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}g=!1}try{o=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,m)}o.observe(e)}(!0),a}(c,n):null,h,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y=u?eu(e):null;return u&&function t(){let o=eu(e);y&&(o.x!==y.x||o.y!==y.y||o.width!==y.width||o.height!==y.height)&&n(),y=o,h=requestAnimationFrame(t)}(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,u&&cancelAnimationFrame(h)}}let eA=(e,t,n)=>{let o=new Map,i={platform:ev,...n},a={...i.platform,_c:o};return S(e,t,{...i,platform:a})};var ew=n(28316);let ex=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 M({element:n.current,padding:o}).fn(t)}else if(n)return M({element:n,padding:o}).fn(t);return{}}});var eC="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function eS(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(!eS(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)&&!eS(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e_(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=e_(e);return Math.round(t*n)/n}function eE(e){let t=c.useRef(e);return eC(()=>{t.current=e}),t}let eT=(0,c.forwardRef)((e,t)=>{let{children:n,...o}=e,i=c.Children.toArray(n),a=i.find(eI);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)(eO,(0,f.Z)({},o,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(eO,(0,f.Z)({},o,{ref:t}),n)});eT.displayName="Slot";let eO=(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?y(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});eO.displayName="SlotClone";let eR=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function eI(e){return(0,c.isValidElement)(e)&&e.type===eR}let eM=["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?eT: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}},{}),ej=(0,c.forwardRef)((e,t)=>{let{children:n,width:o=10,height:i=5,...a}=e;return(0,c.createElement)(eM.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"}))}),eD=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},eP="Popper",[eF,eL]=m(eP),[eN,eU]=eF(eP),eB=(0,c.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eU("PopperAnchor",n),s=(0,c.useRef)(null),l=v(t,s);return(0,c.useEffect)(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,c.createElement)(eM.div,(0,f.Z)({},i,{ref:l}))}),eW="PopperContent",[ez,eV]=eF(eW),eK=(0,c.forwardRef)((e,t)=>{var n,o,i,a,s,l,u,d,h,m,y,C,S,k;let{__scopePopper:T,side:M="bottom",sideOffset:j=0,align:D="center",alignOffset:F=0,arrowPadding:W=0,collisionBoundary:z=[],collisionPadding:V=0,sticky:K="partial",hideWhenDetached:$=!1,avoidCollisions:H=!0,onPlaced:q,...Z}=e,G=eU(eW,T),[Y,Q]=(0,c.useState)(null),X=v(t,e=>Q(e)),[ee,et]=(0,c.useState)(null),en=function(e){let[t,n]=(0,c.useState)(void 0);return eD(()=>{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}(ee),er=null!==(n=null==en?void 0:en.width)&&void 0!==n?n:0,eo=null!==(o=null==en?void 0:en.height)&&void 0!==o?o:0,ei="number"==typeof V?V:{top:0,right:0,bottom:0,left:0,...V},ea=Array.isArray(z)?z:[z],es=ea.length>0,el={padding:ei,boundary:ea.filter(eq),altBoundary:es},{refs:eu,floatingStyles:ec,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(o);eS(m,o)||g(o);let[y,v]=c.useState(null),[b,A]=c.useState(null),w=c.useCallback(e=>{e!=_.current&&(_.current=e,v(e))},[v]),x=c.useCallback(e=>{e!==k.current&&(k.current=e,A(e))},[A]),C=a||y,S=s||b,_=c.useRef(null),k=c.useRef(null),T=c.useRef(f),O=eE(u),R=eE(i),I=c.useCallback(()=>{if(!_.current||!k.current)return;let e={placement:t,strategy:n,middleware:m};R.current&&(e.platform=R.current),eA(_.current,k.current,e).then(e=>{let t={...e,isPositioned:!0};M.current&&!eS(T.current,t)&&(T.current=t,ew.flushSync(()=>{h(t)}))})},[m,t,n,R]);eC(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let M=c.useRef(!1);eC(()=>(M.current=!0,()=>{M.current=!1}),[]),eC(()=>{if(C&&(_.current=C),S&&(k.current=S),C&&S){if(O.current)return O.current(C,S,I);I()}},[C,S,I,O]);let j=c.useMemo(()=>({reference:_,floating:k,setReference:w,setFloating:x}),[w,x]),D=c.useMemo(()=>({reference:C,floating:S}),[C,S]),P=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ek(D.floating,f.x),o=ek(D.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,l,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:I,refs:j,elements:D,floatingStyles:P}),[f,I,j,D,P])}({strategy:"fixed",placement:M+("center"!==D?"-"+D:""),whileElementsMounted:eb,elements:{reference:G.anchor},middleware:[{name:"offset",options:h={mainAxis:j+eo,alignmentAxis:F},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)),s=w(n),l=b(n),u="x"===x(n),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=_(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}(e,h);return{x:t+o.x,y:n+o.y,data:o}}},H&&{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===K?(void 0===m&&(m={}),{options:m,fn(e){let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=_(m,e),c={x:t,y:n},d=x(o),f=B(d),h=c[d],g=c[f],y=_(s,e),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var b,A;let e="y"===d?"width":"height",t=["top","left"].includes(w(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[f])||0)+(t?0:v.crossAxis),s=i.reference[f]+i.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[f])||0)-(t?v.crossAxis:0);g<n?g=n:g>s&&(g=s)}return{[d]:h,[f]:g}}}):void 0,...el},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_(y,e),u={x:t,y:n},c=await O(e,l),d=x(w(o)),f=B(d),h=u[d],m=u[f];if(i){let e="y"===d?"bottom":"right";h=I(h+c["y"===d?"top":"left"],R(h,h-c[e]))}if(a){let e="y"===f?"bottom":"right";m=I(m+c["y"===f?"top":"left"],R(m,m-c[e]))}let g=s.fn({...e,[d]:h,[f]:m});return{...g,data:{x:g.x-t,y:g.y-n}}}},H&&{name:"flip",options:C={...el},async fn(e){var t,n,o,i;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...S}=_(C,e),k=w(a),T=w(u)===u,R=await (null==c.isRTL?void 0:c.isRTL(d.floating)),I=m||(T||!v?[P(u)]:function(e){let t=P(e);return[L(e),t,L(t)]}(u));m||"none"===y||I.push(...function(e,t,n,o){let i=b(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[]}}(w(e),"start"===n,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(L)))),a}(u,v,y,R));let M=[u,...I],j=await O(e,S),D=[],F=(null==(t=s.flip)?void 0:t.overflows)||[];if(f&&D.push(j[k]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let o=b(e),i=x(e),a=A(i),s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=P(s)),{main:s,cross:P(s)}}(a,l,R);D.push(j[e],j[t])}if(F=[...F,{placement:a,overflows:D}],!D.every(e=>e<=0)){let e=((null==(n=s.flip)?void 0:n.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let l=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!l)switch(g){case"bestFit":{let e=null==(i=F.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=u}if(a!==l)return{reset:{placement:l}}}return{}}},{name:"size",options:S={...el,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{let{width:i,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${o}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){let t,n;let{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=_(S,e),c=await O(e,u),d=w(o),f=b(o),h="x"===x(o),{width:m,height:g}=i.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let y=g-c[t],v=m-c[n],A=!e.middlewareData.shift,C=y,k=v;if(h){let e=m-c.left-c.right;k=f||A?R(v,e):e}else{let e=g-c.top-c.bottom;C=f||A?R(y,e):e}if(A&&!f){let e=I(c.left,0),t=I(c.right,0),n=I(c.top,0),o=I(c.bottom,0);h?k=m-2*(0!==e||0!==t?e+t:I(c.left,c.right)):C=g-2*(0!==n||0!==o?n+o:I(c.top,c.bottom))}await l({...e,availableWidth:k,availableHeight:C});let T=await a.getDimensions(s.floating);return m!==T.width||g!==T.height?{reset:{rects:!0}}:{}}},ee&&ex({element:ee,padding:W}),eZ({arrowWidth:er,arrowHeight:eo}),$&&{name:"hide",options:k={strategy:"referenceHidden"},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...o}=_(k,e);switch(n){case"referenceHidden":{let n=N(await O(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:U(n)}}}case"escaped":{let n=N(await O(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:U(n)}}}default:return{}}}}]}),[eh,em]=eG(ed),eg=g(q);eD(()=>{ef&&(null==eg||eg())},[ef,eg]);let ey=null===(i=ep.arrow)||void 0===i?void 0:i.x,ev=null===(a=ep.arrow)||void 0===a?void 0:a.y,eT=(null===(s=ep.arrow)||void 0===s?void 0:s.centerOffset)!==0,[eO,eR]=(0,c.useState)();return eD(()=>{Y&&eR(window.getComputedStyle(Y).zIndex)},[Y]),(0,c.createElement)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ef?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eO,"--radix-popper-transform-origin":[null===(l=ep.transformOrigin)||void 0===l?void 0:l.x,null===(u=ep.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(ez,{scope:T,placedSide:eh,onArrowChange:et,arrowX:ey,arrowY:ev,shouldHideArrow:eT},(0,c.createElement)(eM.div,(0,f.Z)({"data-side":eh,"data-align":em},Z,{ref:X,style:{...Z.style,animation:ef?void 0:"none",opacity:null!==(d=ep.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))}),e$={top:"bottom",right:"left",bottom:"top",left:"right"},eH=(0,c.forwardRef)(function(e,t){let{__scopePopper:n,...o}=e,i=eV("PopperArrow",n),a=e$[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)(ej,(0,f.Z)({},o,{ref:t,style:{...o.style,display:"block"}})))});function eq(e){return null!==e}let eZ=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,a,s;let{placement:l,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=eG(l),y={start:"0%",center:"50%",end:"100%"}[g],v=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==o?o:0)+f/2,b=(null!==(a=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==a?a:0)+h/2,A="",w="";return"bottom"===m?(A=d?y:`${v}px`,w=`${-h}px`):"top"===m?(A=d?y:`${v}px`,w=`${u.floating.height+h}px`):"right"===m?(A=`${-h}px`,w=d?y:`${b}px`):"left"===m&&(A=`${u.floating.width+h}px`,w=d?y:`${b}px`),{data:{x:A,y:w}}}});function eG(e){let[t,n="center"]=e.split("-");return[t,n]}let eY=e=>{let{__scopePopper:t,children:n}=e,[o,i]=(0,c.useState)(null);return(0,c.createElement)(eN,{scope:t,anchor:o,onAnchorChange:i},n)},eQ=(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?ew.createPortal((0,c.createElement)(eM.div,(0,f.Z)({},i,{ref:t})),o):null}),eJ=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=(0,c.useState)(),a=(0,c.useRef)({}),s=(0,c.useRef)(e),l=(0,c.useRef)("none"),[u,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=eX(a.current);l.current="mounted"===u?e:"none"},[u]),eD(()=>{let t=a.current,n=s.current;if(n!==e){let o=l.current,i=eX(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&o!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),eD(()=>{if(o){let e=e=>{let t=eX(a.current).includes(e.animationName);e.target===o&&t&&(0,ew.flushSync)(()=>d("ANIMATION_END"))},t=e=>{e.target===o&&(l.current=eX(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(u),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=v(o.ref,i.ref);return"function"==typeof n||o.isPresent?(0,c.cloneElement)(i,{ref:a}):null};function eX(e){return(null==e?void 0:e.animationName)||"none"}eJ.displayName="Presence";let e0="dismissableLayer.update",e1=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=(0,c.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...m}=e,y=(0,c.useContext)(e1),[b,A]=(0,c.useState)(null),w=null!==(n=null==b?void 0:b.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,x]=(0,c.useState)({}),C=v(t,e=>A(e)),S=Array.from(y.layers),[_]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(_),T=b?S.indexOf(b):-1,O=y.layersWithOutsidePointerEventsDisabled.size>0,R=T>=k,I=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(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(){e3("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=[...y.branches].some(e=>e.contains(t));!R||n||(null==s||s(e),null==u||u(e),e.defaultPrevented||null==d||d())},w),M=function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e),o=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let e=e=>{e.target&&!o.current&&e3("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;[...y.branches].some(e=>e.contains(t))||(null==l||l(e),null==u||u(e),e.defaultPrevented||null==d||d())},w);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=g(e);(0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{T!==y.layers.size-1||(null==a||a(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},w),(0,c.useEffect)(()=>{if(b)return i&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),e5(),()=>{i&&1===y.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o)}},[b,w,i,y]),(0,c.useEffect)(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),e5())},[b,y]),(0,c.useEffect)(()=>{let e=()=>x({});return document.addEventListener(e0,e),()=>document.removeEventListener(e0,e)},[]),(0,c.createElement)(eM.div,(0,f.Z)({},m,{ref:C,style:{pointerEvents:O?R?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,M.onFocusCapture),onBlurCapture:h(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,I.onPointerDownCapture)}))});function e5(){let e=new CustomEvent(e0);document.dispatchEvent(e)}function e3(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,ew.flushSync)(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}let e6="HoverCard",[e4,e8]=m(e6,[eL]),e7=eL(),[e9,te]=e4(e6),tt=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=te("HoverCardTrigger",n),a=e7(n);return(0,c.createElement)(eB,(0,f.Z)({asChild:!0},a),(0,c.createElement)(eM.a,(0,f.Z)({"data-state":i.open?"open":"closed"},o,{ref:t,onPointerEnter:h(e.onPointerEnter,tu(i.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(i.onClose)),onFocus:h(e.onFocus,i.onOpen),onBlur:h(e.onBlur,i.onClose),onTouchStart:h(e.onTouchStart,e=>e.preventDefault())})))}),tn="HoverCardPortal",[tr,to]=e4(tn,{forceMount:void 0}),ti="HoverCardContent",ta=(0,c.forwardRef)((e,t)=>{let n=to(ti,e.__scopeHoverCard),{forceMount:o=n.forceMount,...i}=e,a=te(ti,e.__scopeHoverCard);return(0,c.createElement)(eJ,{present:o||a.open},(0,c.createElement)(ts,(0,f.Z)({"data-state":a.open?"open":"closed"},i,{onPointerEnter:h(e.onPointerEnter,tu(a.onOpen)),onPointerLeave:h(e.onPointerLeave,tu(a.onClose)),ref:t})))}),ts=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,...u}=e,d=te(ti,n),m=e7(n),g=(0,c.useRef)(null),y=v(t,g),[b,A]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(b){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}}},[b]),(0,c.useEffect)(()=>{if(g.current){let e=()=>{A(!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)(()=>{g.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})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,c.createElement)(e2,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:h(s,e=>{e.preventDefault()}),onDismiss:d.onDismiss},(0,c.createElement)(eK,(0,f.Z)({},m,u,{onPointerDown:h(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&A(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:y,style:{...u.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"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)"}})))}),tl=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...o}=e,i=e7(n);return(0,c.createElement)(eH,(0,f.Z)({},i,o,{ref:t}))});function tu(e){return t=>"touch"===t.pointerType?void 0:e()}let tc=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:l=300}=e,u=e7(t),d=(0,c.useRef)(0),f=(0,c.useRef)(0),h=(0,c.useRef)(!1),m=(0,c.useRef)(!1),[y=!1,v]=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=g(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,s=a?e:o,l=g(n);return[s,(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}),b=(0,c.useCallback)(()=>{clearTimeout(f.current),d.current=window.setTimeout(()=>v(!0),s)},[s,v]),A=(0,c.useCallback)(()=>{clearTimeout(d.current),h.current||m.current||(f.current=window.setTimeout(()=>v(!1),l))},[l,v]),w=(0,c.useCallback)(()=>v(!1),[v]);return(0,c.useEffect)(()=>()=>{clearTimeout(d.current),clearTimeout(f.current)},[]),(0,c.createElement)(e9,{scope:t,open:y,onOpenChange:v,onOpen:b,onClose:A,onDismiss:w,hasSelectionRef:h,isPointerDownOnContentRef:m},(0,c.createElement)(eY,u,n))},td=e=>{let{__scopeHoverCard:t,forceMount:n,children:o,container:i}=e,a=te(tn,t);return(0,c.createElement)(tr,{scope:t,forceMount:n},(0,c.createElement)(eJ,{present:n||a.open},(0,c.createElement)(eQ,{asChild:!0,container:i},o)))};var tf=n(13821),tp=n.n(tf);let th=e=>{let{align:t,alignOffset:n,arrowSize:o=12,children:i,collisionPadding:l=parseFloat(s.rSc.space[16]),side:u,sideOffset:d=4,trigger:f,...h}=e,{arrowWidth:m,arrowHeight:g}=(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)(tc,{...h,children:[(0,a.jsx)(tt,{asChild:!0,children:f}),(0,a.jsx)(td,{children:(0,a.jsxs)(ta,{align:t,alignOffset:n,className:tp().container,collisionPadding:l,side:u,sideOffset:d,children:[i,(0,a.jsx)(tl,{className:tp().arrow,height:g,width:m})]})})]})};var tm=n(77452),tg=n.n(tm);let ty=e=>{let{align:t,alignOffset:n,arrowSize:o,children:i,collisionPadding:s,onClose:l,open:u,openDelay:d=5e3,side:f,sideOffset:h,trigger:m}=e,[g,y]=(0,c.useState)(!1),v=(0,c.useCallback)(()=>{l&&l(),y(!1)},[l,y]);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===u,action:(0,c.useCallback)(()=>y(e=>!1===e),[y]),delay:d}),(0,a.jsx)(th,{align:t,alignOffset:n,arrowSize:o,collisionPadding:s,onOpenChange:e=>{!0===e&&!0===u&&y(e)},open:g,openDelay:d,side:f,sideOffset:h,trigger:m,children:(0,a.jsx)(tv,{handleClose:v,children:i})})},tv=e=>{let{handleClose:t,children:n}=e;return(0,a.jsx)(tb.Provider,{value:{handleClose:t},children:(0,a.jsx)("div",{className:tg().root,children:n})})},tb=(0,c.createContext)({handleClose:()=>void 0});function tA(){return(0,c.useContext)(tb)}let tw=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsxs)("div",{className:tg().title,children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)("button",{className:tg().titleCloseIcon,onClick:n,children:(0,a.jsx)(d.T,{})})]})},tx=e=>{let{component:t,...n}=e,o="image"===t?"img":l.nk;return(0,a.jsx)("div",{className:tg().mediaContainer,children:(0,c.createElement)(o,{...n,className:(0,u.W)(tg().media,n.className)})})},tC=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:tg().description,children:t})},tS=e=>{let{children:t}=e,{handleClose:n}=tA();return(0,a.jsx)("div",{className:tg().closeButtonContainer,children:(0,a.jsx)(s.zxk,{sx:{width:"100%"},onClick:n,children:t})})}},3181:function(e,t,n){"use strict";n.d(t,{AK:function(){return m},Dj:function(){return c},Kp:function(){return h},L4:function(){return g},Oh:function(){return w},PQ:function(){return A},cx:function(){return u},d7:function(){return d},fo:function(){return b},gR:function(){return v},ux:function(){return f},xS:function(){return y}});var o=n(88866),i=n(2439),a=n(80410),s=n(99510);let l="default";function u(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&&"Table"!==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,s;let l={},u={};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)u[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)u[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!==(s=e.items)&&void 0!==s?s:[])u[t]=n.type}return{primary:JSON.stringify(Object.keys(l).sort().map(e=>[e,l[e]])),items:JSON.stringify(Object.keys(u).sort().map(e=>[e,u[e]]))}}function h(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 m(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 g(e){let{slice:t,variationId:n,widgetArea:o,previousFieldId:i,newFieldId:a,newField:s}=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:s}:e)}}return e})}}}function y(e){let{slice:t,variationId:n,widgetArea:s,newFieldId:l,newField:u}=e;return{...t,model:{...t.model,variations:t.model.variations.map(e=>{var t,c;return e.id!==n?e:u.type!==o.GroupFieldType?{...e,[s]:null===(c=e[s])||void 0===c?void 0:c.concat([{key:l,value:u}])}:s===a.Rt.Items?e:{...e,[s]:null===(t=e[s])||void 0===t?void 0:t.concat([{key:l,value:i.Fl.toSM(u)}])}})}}}function v(e){var t,n;let{slice:o,variationId:i,widgetArea:a,sourceIndex:s,destinationIndex:l}=e,u=[...null!==(n=null===(t=o.model.variations.find(e=>e.id===i))||void 0===t?void 0:t[a])&&void 0!==n?n:[]],[c]=u.splice(s,1);return u.splice(l,0,c),{...o,model:{...o.model,variations:o.model.variations.map(e=>e.id===i?{...e,[a]:u}:e)}}}function b(e){return{id:(0,s.T3)(e),type:"SharedSlice",name:e,description:e,variations:[{id:l,name:(0,s.MP)(l),docURL:"...",version:"initial",description:(0,s.MP)(l),imageUrl:""}]}}function A(e,t){return{...e,model:{...e.model,name:t}}}function w(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})}}}},81679:function(e,t,n){"use strict";function o(){return{eligible:!1,singular:{uppercase:"Slice",lowercase:"slice"},plural:{uppercase:"Slices",lowercase:"slices"}}}n.d(t,{$:function(){return o}})},63447:function(e,t,n){"use strict";n.d(t,{cd:function(){return i},ne:function(){return a},Ag:function(){return s}});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 s(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 h}});var o=n(74217),i=n(18566),a=n(88932),s=n(72432);let{fetchOnboarding:l,toggleOnboarding:u,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 h(){let e=(0,s.d)().eligible,t=(0,i.QT)(e?d:f,[]),n=(0,o.l$)(t);function l(e){(0,i.VA)(d,[],e)}async function h(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 m(t){if(!e)return;let o=n();if(o)try{o.completedSteps.includes(String(t))||await h(t)}catch(e){a.Am.error("Failed to complete onboarding step"),console.error("Failed to complete onboarding step",e)}}return{onboarding:t,toggleStep:h,completeStep:m,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 u();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)}}}}},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-new");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 C},g:function(){return S}});var o=n(52322),i=n(74217),a=n(37792),s=n(2784),l=n(93188),u=n(52762),c=n(85647),d=n(58161),f=n(41067),h=n(43874),m=n(53047),g=n(6529),y=n(75665),v=n(29040),b=n(99757);async function A(e){let{isOnline:t,authStatus:n}=e,o=await (0,l.y0)(),i=(0,v.R)(o.libraries,o.remoteSlices),a=Object.values((0,y.d)(o.customTypes,o.remoteCustomTypes));return(0,b.m)({customTypes:a,libraries:o.libraries,slices:i,isOnline:t,authStatus:n})}var w=n(65821);let x=(0,s.createContext)(void 0),C=e=>{let{children:t}=e,{unSyncedCustomTypes:n,unSyncedSlices:y}=(0,w.X)(),v=(0,c.L)(),b=(0,u.n)(),{refreshState:C,pushChangesSuccess:S}=(0,f.Z)(),_=(0,i.R9)(C),k=(0,i.R9)(S),{activeEnvironment:T}=(0,m.J)(),{setNextAction:O,actionQueueStatus:R}=(0,h.c)({actionQueueStatusDelay:0,errorMessage:"Failed to sync changes. Check your browser's console for more information."}),I=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{environment:t=T,loggedIn:n=v&&b===d.t.AUTHORIZED}=e;n&&(null==t?void 0:t.kind)==="dev"&&O(async()=>{let{changedCustomTypes:e,changedSlices:t}=await A({isOnline:v,authStatus:b});if(0!==e.length||0!==t.length)try{let n=await (0,g.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)();_(o),k()}catch(e){if((0,a.ff)(e))return;throw e}})},[_,k,O,v,b,T]);(0,s.useEffect)(()=>{(n.length>0||y.length>0)&&I()},[]),(0,i.pQ)(v,()=>{v&&(n.length>0||y.length>0)&&I()});let M=(0,s.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:T,isOnline:v,authStatus:b,actionQueueStatus:R}),[R,b,v,T]),j=(0,s.useMemo)(()=>({syncChanges:I,autoSyncStatus:M}),[I,M]);return(0,o.jsx)(x.Provider,{value:j,children:t})};function S(){let e=(0,s.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 s(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,u=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:u}=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=u.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=u.length+l.length,h=u.reduce((e,t)=>e+(0,i.cx)(t.slice),0),m=Date.now()-t;o.Xe.track({event:"changes:pushed",...c,...d,total:f,missingScreenshots:h,duration:m,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=s(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=s(e,t.primary,"slice");e.push(...n)}),e),[]),...i].forEach(e=>{o.Xe.track({event:"changes:group-pushed",...e})})}({changedCustomTypes:l,changedSlices:u})}({changedCustomTypes:n,changedSlices:t,hasDeletedDocuments:l,startTime:u})}},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 s=[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),h=i.filter(o.yp).map(u),m=f.concat(h).sort((e,t)=>e.model.name>t.model.name?1:-1).filter(e=>d.slices[e.model.id]&&s.includes(d.slices[e.model.id])),g=t.filter(e=>d.customTypes[(0,o.n5)(e)]&&s.includes(d.customTypes[(0,o.n5)(e)])),y=m.map(e=>({slice:e,status:d.slices[e.model.id]})).filter(e=>s.includes(e.status));return{changedCustomTypes:g.map(e=>(0,o.TG)(e)?e.local:e.remote).map(e=>({customType:e,status:d.customTypes[e.id]})).filter(e=>s.includes(e.status)),changedSlices:y,unSyncedCustomTypes:g,unSyncedSlices:m,modelsStatuses:d}}function u(e){return{model:e.remote,screenshots:{},from:"",href:"",pathToSlice:"",fileName:"",extension:""}}let c=e=>{let{slices:t,customTypes:n,isOnline:o,authStatus:s}=e,l=o&&s!=a.t.FORBIDDEN&&s!=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),s=n(40572),l=n(68916),u=n(85647),c=n(99757);let d=()=>{let{customTypes:e,slices:t,libraries:n}=(0,i.v9)(e=>({customTypes:(0,s.Ch)(e),slices:(0,l.xC)(e),libraries:(0,l.Sd)(e)})),d=(0,u.L)(),f=(0,a.n)(),h=(0,c.m)({authStatus:f,customTypes:e,isOnline:d,libraries:n,slices:t});return(0,o.useMemo)(()=>h,[h])}},43874:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var o=n(52322),i=n(7729),a=n(74930),s=n.n(a),l=n(2784),u=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}),[h,m]=(0,l.useState)("done"),[g,y]=(0,l.useState)(h),v=(0,l.useCallback)(e=>{f(t=>({...t,nextAction:e}))},[]),b=(0,l.useCallback)(async e=>{if(e){m("pending");try{await e(),m("done")}catch(e){m("failed"),console.error(n,e),function(e){let{errorMessage:t,retryDelay:n,retryMessage:a,setActionQueueStatusActual:l,setActionQueueStack:c}=e,d=s()();u.Am.error(()=>(0,o.jsxs)(i.xuv,{gap:8,alignItems:"center",children:[(0,o.jsx)(i.xvT,{color:"grey1",variant:"small",children:t}),(0,o.jsx)(i.zxk,{size:"small",color:"grey",onClick:()=>{u.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:m,setActionQueueStack:f})}}},[n,a,c]);return(0,l.useEffect)(()=>{"done"===h&&d.nextAction&&(b(d.nextAction),f({pendingAction:d.nextAction,nextAction:void 0}))},[h,d,b]),(0,l.useEffect)(()=>{if("pending"===h)y("pending");else{let e=setTimeout(()=>{y(h)},t);return()=>{clearTimeout(e)}}},[h,t]),(0,l.useMemo)(()=>({actionQueueStatus:g,setNextAction:v}),[g,v])}},58133:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});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 s(){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 s}});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 s(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}},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 u}});var o=n(52322),i=n(5632),a=n(2784);let s=(0,a.createContext)(void 0),l=e=>(0,o.jsx)(s.Provider,{...e,value:function(){let{asPath:e,query:t}=(0,i.useRouter)(),n={asPath:e,query:t},[o,s]=(0,a.useState)(n),[l,u]=(0,a.useState)({source:n,destination:n});return(n.asPath!==o.asPath||n.query!==o.query)&&(s(n),u({source:o,destination:n})),l}()});function u(){let e=(0,a.useContext)(s);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 s}});var o=n(18566),i=n(70647);async function a(){return await i.managerClient.versions.getRunningSliceMachineVersion()}function s(){return(0,o.QT)(a,[])}},85404:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});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 s(){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"})})},5335:function(e,t,n){"use strict";n.d(t,{LN:function(){return eU},K2:function(){return e$},Xq:function(){return eV},Cx:function(){return eK},RN:function(){return eH},wd:function(){return ez}});var o=n(52322),i=n(7729),a=n(5632),s=n(2784),l=n(23335),u=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,u.W)(d().borderTop,d()["borderTopColor-".concat(t)])})]})},h=e=>(0,o.jsx)("div",{...e,className:d().pane}),m=e=>(0,o.jsx)("header",{...e,className:d().header}),g=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 y=n(30988),v=n(53047),b=n(93188),A=n(63447),w=n(77507),x=n(58133);let C={"@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 S(){var e;return null!==(e=C[(0,x.p)()])&&void 0!==e?e:{}}var _=n(81679);let k=e=>{let{isOpen:t,onClose:n}=e,{masterSliceLibrary:a}=S(),s=(0,_.$)();if(!a)return null;let{exampleLinkUrl:l,codeLinkUrl:u,previewVideoUrl:c}=a;return(0,o.jsxs)(i.VqE,{size:"small",open:t,onOpenChange:e=>!e&&n(),children:[(0,o.jsx)(i.fKu,{title:"Master ".concat(s.singular.uppercase," Library Generator (BETA)")}),(0,o.jsx)(i.cZJ,{children:(0,o.jsxs)(i.xuv,{flexDirection:"column",padding:16,gap:16,children:[(0,o.jsxs)(i.xvT,{variant:"h2",children:["Create a Master ",s.singular.uppercase," Library"]}),(0,o.jsx)(i.nkn,{src:c,sizing:"contain",autoPlay:!0,loop:!0}),(0,o.jsxs)(i.xvT,{children:["This is an"," ",(0,o.jsxs)("a",{href:l,target:"_blank",children:["example ",s.singular.lowercase," library"]}),", which provides you with an overview of all your"," ",s.plural.lowercase," in one place. Build it yourself in a few steps."]}),(0,o.jsx)(i.zxk,{size:"large",onClick:()=>{b.Xe.track({event:"slice-library:beta:code-opened"}),window.open(u,"_blank")},children:"Get the code"})]})})]})};var T=n(99579);function O(){let{repositoryName:e,repositoryDomain:t,repositoryUrl:n}=(0,T.U)(),a=(0,i.ach)({max:"medium"});return(0,o.jsxs)(i.xuv,{justifyContent:"center",height:48,children:[!a&&(0,o.jsxs)(i.xuv,{flexGrow:1,flexDirection:"column",gap:2,maxWidth:"100%",children:[(0,o.jsx)(i.xvT,{noWrap:!0,component:"h1",variant:"h3",children:e}),(0,o.jsx)(i.xvT,{noWrap:!0,component:"h2",variant:"small",color:"grey11",children:t})]}),(0,o.jsx)(i.ua7,{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 R=n(85404),I=n(25966),M=n(29184),j=n(39097),D=n.n(j);function P(e){let{title:t,href:n,target:a,active:l,Icon:u,RightElement:c,onClick:d}=e,f=(0,i.ach)({max:"medium"}),h=(0,s.useCallback)(()=>(0,o.jsx)(u,{width:f?28:32}),[u,f]),m=(0,o.jsx)(i.F8s,{textVariant:"normal",backgroundColor:"transparent",renderStartIcon:h,endAdornment:c,selected:l,children:f?null:t});return(0,o.jsx)(i.ua7,{content:t,side:"right",visible:f,children:void 0!==n?(0,o.jsx)(D(),{href:n,target:a,style:{textDecoration:"none"},"data-active":l,children:m}):(0,o.jsx)("button",{style:{backgroundColor:"transparent",border:"none",padding:0,textAlign:"left"},onClick:d,"data-active":l,children:m})})}var F=n(65856);function L(){let{onboarding:e,toggleStep:t,toggleGuide:n}=(0,F.k)();return e?e.isDismissed?(0,o.jsx)(P,{title:"Get Started",Icon:M.z,onClick:()=>void n()}):(0,o.jsx)(I.TI,{tracking:{track:e=>b.Xe.track({...e,source:"SliceMachine"}),source:"SliceMachine"},onboardingState:e,onToggleStep:t,onToggleGuide:n}):null}var N=n(72432);function U(){let e=function(){let e=(0,i.ach)({min:"medium"}),t=(0,R.P)();return e&&!t.sliceMachineUpdateAvailable&&!t.adapterUpdateAvailable}(),t=(0,N.d)().eligible;return e&&t?(0,o.jsx)(L,{}):null}var B=n(52677);let W=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"})}),z=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"})}),V=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"})}),K=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 $=n(99044),H=n(80546);let q=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"})}),Z=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"})})})]}),G=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 Y=n(60821),Q=n.n(Y);let X=e=>{let t;let{autoSyncStatus:n}=e;switch(n){case"syncing":t={icon:(0,o.jsx)(G,{}),text:"Syncing...",tooltipText:"Your local changes are currently syncing with your personal sandbox."};break;case"synced":t={icon:(0,o.jsx)(q,{}),text:"Synced",tooltipText:"Your local changes are in sync with your personal sandbox."};break;case"failed":t={icon:(0,o.jsx)(Z,{}),text:"Sync failed",tooltipText:"An error occurred while syncing your changes with your personal sandbox."}}return void 0!==t.tooltipText?(0,o.jsx)(i.ua7,{content:t.tooltipText,side:"right",children:(0,o.jsxs)("div",{className:Q().root,children:[t.icon,(0,o.jsx)(i.xvT,{className:Q().text,color:"grey11",children:t.text})]})}):t.icon};var ee=n(65821),et=n(52762),en=n(85647);let er=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 eo=n(58161),ei=n(41067);let ea=()=>{let{setSeenChangesToolTip:e}=(0,ei.Z)(),t=el(),n=(0,a.useRouter)(),{autoSyncStatus:s}=(0,H.g)(),l=(0,i.ach)({max:"medium"});return(0,o.jsxs)($.zs,{align:"start",open:t,openDelay:3e3,onClose:()=>{e()},side:"right",sideOffset:24,trigger:(0,o.jsx)(i.xuv,{alignItems:l?"center":void 0,flexDirection:"column",children:"failed"===s||"synced"===s||"syncing"===s?(0,o.jsx)(X,{autoSyncStatus:s}):l?(0,o.jsx)(i.ua7,{content:"Review changes",side:"right",children:(0,o.jsxs)(i.xuv,{position:"relative",children:[(0,o.jsx)(i.hU,{icon:(0,o.jsx)(er,{}),onClick:()=>{n.push("/changes")},variant:"solid"}),(0,o.jsx)(i.xuv,{left:"100%",position:"absolute",top:0,transform:"translate(-50%, -50%)",children:(0,o.jsx)(es,{color:"purple"})})]})}):(0,o.jsx)(i.zxk,{color:"grey",onClick:()=>{n.push("/changes")},sx:{width:"100%"},children:(0,o.jsxs)(i.xuv,{alignItems:"center",gap:4,children:[(0,o.jsx)(i.xvT,{variant:"bold",children:"Review changes"})," ",(0,o.jsx)(es,{color:"grey"})]})})}),children:[(0,o.jsx)($.Ev,{children:"Push your changes"}),(0,o.jsx)($.LB,{component:"image",src:"/push.png"}),(0,o.jsx)($.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)($.Rp,{children:"Got it"})]})},es=e=>{let{color:t}=e,n=(0,en.L)(),a=(0,et.n)(),{unSyncedSlices:s,unSyncedCustomTypes:l}=(0,ee.X)(),u=s.length+l.length;return n&&a!==eo.t.UNAUTHORIZED&&a!==eo.t.FORBIDDEN&&0!==u?(0,o.jsx)(i.xuv,{padding:{inline:6},borderRadius:10,backgroundColor:"grey"===t?"grey5":"purple9",children:(0,o.jsx)(i.xvT,{color:"grey"===t?"grey11":"grey1",variant:"small",children:u>9?"+9":u})}):null},el=()=>!1;var eu=n(37792),ec=n(18566),ed=n(70647),ef=n(69765);async function ep(e){await ed.managerClient.project.updateEnvironment({environment:e.domain}),(0,ec.gw)(ef.j,[]),(0,ec.gw)(b.y0,[])}async function eh(){try{let{environments:e}=await ed.managerClient.prismicRepository.fetchEnvironments();return{environments:e}}catch(e){return{error:e}}}var em=n(99757),eg=n(75665),ey=n(29040);function ev(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(28316);var eb=s.forwardRef((e,t)=>{let{children:n,...i}=e,a=s.Children.toArray(n),l=a.find(ex);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,o.jsx)(eA,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,o.jsx)(eA,{...i,ref:t,children:n})});eb.displayName="Slot";var eA=s.forwardRef((e,t)=>{let{children:n,...o}=e;if(s.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return s.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=>{let n=!1,o=e.map(e=>{let o=ev(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():ev(e[t],null)}}}}(t,a):a})}return s.Children.count(n)>1?s.Children.only(null):null});eA.displayName="SlotClone";var ew=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function ex(e){return s.isValidElement(e)&&e.type===ew}var eC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=s.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?eb:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eS=s.forwardRef((e,t)=>(0,o.jsx)(eC.span,{...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}}));eS.displayName="VisuallyHidden";let e_=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"})]})}),ek=(0,s.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 eE=n(41173),eT=n.n(eE);let eO=e=>{var t;let{activeEnvironment:n,disabled:a=!1,environments:s=[],loading:l=!1,variant:u="default",onLogInClick:c,onSelect:d}=e,f=(0,i.ach)({max:"medium"}),h=(null==n?void 0:n.kind)==="prod";return(0,o.jsxs)(i.xuv,{alignItems:"center",gap:16,children:[(0,o.jsxs)(i.xuv,{position:"relative",children:[f&&s.length>1?(0,o.jsx)(eR,{activeEnvironment:n,disabled:a||l,environments:s,onSelect:d,trigger:(0,o.jsx)(ek,{className:eT().logo})}):(0,o.jsx)(ek,{className:eT().logo}),s.length>1&&(0,o.jsx)(ej,{kind:null!==(t=null==n?void 0:n.kind)&&void 0!==t?t:"prod",asStatus:!0,className:eT().activeEnvironmentDot,"data-testid":"active-environment-dot"})]}),!f&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.xuv,{flexGrow:1,flexDirection:"column",overflow:"hidden",alignItems:"flex-start",children:["default"===u?(0,o.jsx)(i.xvT,{component:"span",variant:"small",color:"grey11",children:"Environment"}):void 0,"unauthenticated"===u?(0,o.jsx)(i.zxk,{invisible:!0,onClick:c,children:"Login required"}):void 0,"offline"===u?(0,o.jsx)(i.xvT,{component:"span",variant:"bold",children:"Offline"}):void 0,"default"===u?(0,o.jsx)(i.xvT,{component:"span",className:eT().activeEnvironmentName,"data-testid":"active-environment-name",children:h||void 0===n?"Production":null==n?void 0:n.name}):void 0]}),(0,o.jsxs)(i.xuv,{flexShrink:0,children:["unauthenticated"===u?(0,o.jsx)(i.ua7,{content:"Log in",side:"right",children:(0,o.jsx)(i.hU,{icon:(0,o.jsx)(e_,{className:eT().loginIcon}),onClick:c,hiddenLabel:"Log in to enable environments"})}):void 0,s.length>1?(0,o.jsx)(eR,{activeEnvironment:n,disabled:a,environments:s,onSelect:d,trigger:(0,o.jsx)(i.hU,{icon:l?(0,o.jsx)(i._3P,{}):"unfoldMore",hiddenLabel:"Select environment"})}):void 0]})]})]})},eR=e=>{let{activeEnvironment:t,disabled:n,environments:a,onSelect:s,trigger:l}=e,u=a.filter(e=>"dev"!==e.kind),c=a.find(e=>"dev"===e.kind);return(0,o.jsxs)(i.h_2,{modal:!0,children:[(0,o.jsx)(i.ua7,{content:"Select environment",side:"right",stableMount:!0,visible:!n,children:(0,o.jsx)(i.$FS,{disabled:n,children:l})}),(0,o.jsxs)(i.AWV,{align:"end",minWidth:256,children:[c?(0,o.jsx)(i.Juw,{children:"Regular Environments"}):void 0,u.map(e=>(0,o.jsx)(eI,{environment:e,onSelect:s,isActive:e.domain===(null==t?void 0:t.domain)},e.domain)),c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Juw,{children:"Personal Environment"}),(0,o.jsx)(eI,{environment:c,onSelect:s,isActive:c.domain===(null==t?void 0:t.domain)},c.domain)]}):void 0]})]})},eI=e=>{let{environment:t,onSelect:n,isActive:a}=e,s="prod"===t.kind;return(0,o.jsx)(i.Xiv,{startIcon:(0,o.jsx)(ej,{kind:t.kind,className:eT().menuItemEnvironmentDot}),endIcon:a?(0,o.jsx)(i.JO$,{name:"check"}):void 0,onSelect:()=>void(null==n||n(t)),children:s?"Production":t.name})},eM={prod:"Production",stage:"Staging",dev:"Development"},ej=e=>{let{kind:t,asStatus:n=!1,className:i,...a}=e,s=eM[t];return(0,o.jsx)("div",{className:(0,u.W)(eT()["environmentDot-".concat(t)],i),role:n?"status":void 0,...a,children:n?(0,o.jsxs)(eS,{children:[s," environment"]}):null})};function eD(){let{environments:e,error:t}=(0,ec.QT)(eh,[]),{activeEnvironment:n}=(0,v.J)(),{refreshState:i,openLoginModal:a}=(0,ei.Z)(),{syncChanges:l}=(0,H.g)(),u=(0,en.L)(),c=(0,et.n)(),[d,f]=(0,s.useState)(!1),{autoSyncStatus:h}=(0,H.g)();async function m(e){if((null==n?void 0:n.name)===e.name)return;f(!0),b.Xe.track({event:"environment:switch",domain:e.domain}),await ep(e);let t=await (0,b.y0)();i(t);let o=(0,ey.R)(t.libraries,t.remoteSlices),a=Object.values((0,eg.d)(t.customTypes,t.remoteCustomTypes)),{changedCustomTypes:s,changedSlices:d}=(0,em.m)({authStatus:c,customTypes:a,isOnline:u,libraries:t.libraries,slices:o});"dev"===e.kind&&(s.length>0||d.length>0)&&l({environment:e,changedCustomTypes:s,changedSlices:d}),f(!1)}if(!u)return(0,o.jsx)(eO,{variant:"offline"});if(void 0===t)return(0,o.jsx)(eO,{environments:e,activeEnvironment:n,onSelect:m,disabled:d||"syncing"===h,loading:d});if((0,eu.ff)(t)||(0,eu.TW)(t))return(0,o.jsx)(eO,{variant:(0,eu.ff)(t)?"unauthenticated":"unauthorized",onLogInClick:()=>a()});throw t}var eP=n(54991);function eF(){let e=(0,eP.d)();return(0,i.ach)({max:"medium"})?null:(0,o.jsxs)(i.xvT,{variant:"small",color:"grey11",noWrap:!0,"data-testid":"slicemachine-version",children:["v",e]})}function eL(){let e=(0,i.ach)({max:"medium"}),{sliceMachineUpdateAvailable:t,adapterUpdateAvailable:n}=(0,R.P)();return(t||n)&&!e?(0,o.jsx)(i.Zbd,{color:"grey3",padding:16,children:(0,o.jsxs)(i.aYP,{children:[(0,o.jsx)(i.xvT,{variant:"smallBold",color:"grey12",children:"Updates Available"}),(0,o.jsx)(i.xvT,{color:"grey11",variant:"small",children:"Some updates of Slice Machine are available."}),(0,o.jsx)(i.zxk,{size:"large",color:"grey",sx:{width:"100%",marginTop:16},asChild:!0,children:(0,o.jsx)(D(),{href:"/changelog",children:"Learn more"})})]})}):null}function eN(){let e=(0,a.useRouter)(),t=(0,B.M)(),[n,l]=(0,s.useState)(!1),{masterSliceLibrary:u}=S(),c=(0,_.$)();function d(t){let{type:n}=t;return(0,o.jsx)(P,{title:w.$[n].name({start:!0,plural:!0}),href:A.cd[n].tablePagePathname,active:A.cd[n].matchesTablePagePathname(e.asPath),Icon:A.cd[n].Icon})}return(0,o.jsxs)(i.xuv,{as:"nav",flexDirection:"column",padding:{block:16,inline:16},gap:24,minWidth:0,children:[(0,o.jsxs)(i.xuv,{flexDirection:"column",gap:16,children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.OdW,{height:40}),children:(0,o.jsx)(eD,{})})}),(0,o.jsx)(i.Z0O,{style:"dashed"}),(0,o.jsx)(O,{}),(0,o.jsx)(ea,{})]}),(0,o.jsxs)(i.xuv,{flexDirection:"column",flexGrow:1,gap:32,children:[(0,o.jsxs)(i.S0S,{variant:"compact",children:[(0,o.jsx)(d,{type:"page"}),(0,o.jsx)(d,{type:"custom"}),(0,o.jsx)(P,{title:c.plural.uppercase,href:"/slices",Icon:W,active:e.asPath.startsWith("/slices")})]}),(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(eL,{})})})]}),(0,o.jsx)(i.xuv,{flexDirection:"column",children:(0,o.jsxs)(i.S0S,{variant:"compact",children:[(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsx)(U,{})})}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{isOpen:n,onClose:()=>{l(!1)}}),(0,o.jsx)(P,{title:"Master ".concat(c.singular.uppercase," Library"),Icon:V,onClick:()=>{b.Xe.track({event:"slice-library:beta:modal-opened"}),l(!0)}})]}),t.eligible&&(0,o.jsx)(P,{title:"Settings",href:"/settings",Icon:K,active:e.asPath.startsWith("/settings")}),(0,o.jsx)(P,{title:"Changelog",href:"/changelog",Icon:z,active:e.asPath.startsWith("/changelog"),RightElement:(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{fallback:(0,o.jsx)(i.OdW,{height:16}),children:(0,o.jsx)(eF,{})})})})]})})]})}let eU=e=>{let{children:t,...n}=e;return(0,o.jsx)(y.S,{children:(0,o.jsx)(s.Suspense,{children:(0,o.jsxs)(eW,{...n,children:[(0,o.jsx)(h,{children:(0,o.jsx)(eN,{})}),t]})})})},eB={prod:"purple",stage:"indigo",dev:"amber"},eW=e=>{let{children:t,...n}=e,{activeEnvironment:i}=(0,v.J)(),a=i?eB[i.kind]:"purple";return(0,o.jsx)(f,{borderTopColor:a,"data-testid":"app-layout-top-border-color-".concat(a),...n,children:t})},ez=e=>{let{children:t,...n}=e;return(0,o.jsx)(m,{...n,children:(0,o.jsx)(i.xuv,{alignItems:"center",gap:8,children:t})})},eV=e=>{let{url:t,...n}=e,s=(0,a.useRouter)();return(0,o.jsx)(i.zxk,{...n,onClick:()=>{s.push(t)},startIcon:"arrowBack",color:"grey"})},eK=e=>(0,o.jsx)(i.xuv,{flexGrow:1,children:(0,o.jsx)(l.a,{...e})}),e$=e=>(0,o.jsx)(i.hE2,{...e}),eH=e=>(0,o.jsx)(g,{...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 u},kQ:function(){return c}});var o=n(52322);n(2784);var i=n(65186),a=n(88932),s=n(81679);let l=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:l,style:{left:"50%"}});let u=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})]})},c=e=>{let t=(0,s.$)();return(0,o.jsx)(u,{message:"".concat(t.singular.uppercase," saved successfully at "),...e})}},95799:function(e,t,n){"use strict";n.d(t,{Dc:function(){return A},L$:function(){return v}});var o=n(88866),i=n(10082),a=n(45974),s=n(32521),l=n(40878),u=n(2439),c=n(44772),d=n(13365);let f=s.type({key:s.string,value:s.array(s.type({key:s.string,value:s.union([c.LegacySlice,c.CompositeSlice,c.SharedSliceRef])}))}),h={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}})}))}},m=s.array(s.type({key:s.string,value:s.union([o.NestableWidget,o.UID,u.GT])})),g=s.intersection([s.type({key:s.string,value:m}),s.partial({sliceZone:f})]),y={toSM(e,t){let n=Object.entries(t).find(e=>{let[,t]=e;return"Slices"===t.type}),o=n&&h.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:u.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,u.Fl.fromSM(o)]]:[...e,[n,o]]},[]).concat(e.sliceZone?[[e.sliceZone.key,h.fromSM(e.sliceZone)]]:[]).reduce((e,t)=>{let[n,o]=t;return{...e,[n]:o}},{})},v={fromSM:e=>"Group"===e.type?u.Fl.fromSM(e):e},b=s.exact(s.intersection([s.type({id:s.string,label:i.StringOrNull,format:(0,l.X)(s.keyof({page:"page",custom:"custom"}),"custom"),repeatable:(0,l.X)(s.boolean,!0),tabs:s.array(g),status:(0,l.X)(s.boolean,!0)}),s.partial({hash:s.string})])),A={toSM(e){let t=Object.entries(e.json).map(e=>{let[t,n]=e;return y.toSM(t,n)});return(0,a.getOrElseW)(()=>{throw Error("Error while parsing a prismic custom type.")})(b.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]:y.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 m},GT:function(){return h}});var o=n(88866),i=n(59050),a=n(10082),s=n(45974),l=n(32521),u=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(u.F),h=d(l.array(l.type({key:l.string,value:l.union([o.NestableWidget,f])}))),m={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]:m.fromSM(o)}:{...e,[n]:o}},{})})();return(0,s.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:m.toSM(n)}:{key:t,value:n}})})();return(0,s.getOrElseW)(()=>{throw Error("Error while parsing an SM group.")})(h.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 s(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 s}})},5274:function(e,t,n){"use strict";n.d(t,{GJ:function(){return i},zb:function(){return d}});var o,i,a=n(1744),s=n(69378),l=n.n(s);let u=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,s,d;let{status:f}=(o=n,t?(0,a.TG)(o)?(0,a.wU)(o)?{status:c(o)?(s=o.remote,d=o.localScreenshots,s.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()(u(o.local),u(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 g},id:function(){return y}});var o,i,a=n(88866),s=n(45974),l=n(32521),u=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})),h=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:u.F,display:l.string})]),m=l.intersection([l.type({id:l.string,type:l.literal("SharedSlice"),name:l.string,variations:l.array(h)}),l.partial({description:l.string})]),g={fromSM(e){var t,n;return(0,s.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,s.getOrElseW)(()=>{throw Error("Error while parsing a prismic slice variation.")})(h.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}})}))},y={fromSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic an SM prismic slice")})(a.SharedSlice.decode({...e,variations:e.variations.map(g.fromSM)})),toSM:e=>(0,s.getOrElseW)(()=>{throw Error("Error while prismic a prismic slice")})(m.decode({...e,variations:e.variations.map(g.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 u}});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 s=/\B([A-Z])/g;function l(e){return e.replace(s,"-$1").toLowerCase().replace(/-/g,"_")}let u=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 ee}});var s,l,u,c,d=n(34406),f=(void 0===d||(null===(s=null==d?void 0:d.env)||void 0===s?void 0:s.TEXT_ENCODING)!=="never")&&"undefined"!=typeof TextEncoder&&"undefined"!=typeof TextDecoder;function h(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 m=f?new TextEncoder:void 0,g=f?void 0!==d&&(null===(l=null==d?void 0:d.env)||void 0===l?void 0:l.TEXT_ENCODING)!=="force"?200:0:4294967295,y=(null==m?void 0:m.encodeInto)?function(e,t,n){m.encodeInto(e,t.subarray(n))}:function(e,t,n){t.set(m.encode(e),n)};function v(e,t,n){for(var o=t,i=o+n,a=[],s="";o<i;){var l=e[o++];if((128&l)==0)a.push(l);else if((224&l)==192){var u=63&e[o++];a.push((31&l)<<6|u)}else if((240&l)==224){var u=63&e[o++],c=63&e[o++];a.push((31&l)<<12|u<<6|c)}else if((248&l)==240){var u=63&e[o++],c=63&e[o++],d=(7&l)<<18|u<<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&&(s+=String.fromCharCode.apply(String,a),a.length=0)}return a.length>0&&(s+=String.fromCharCode.apply(String,a)),s}var b=f?new TextDecoder:null,A=f?void 0!==d&&(null===(u=null==d?void 0:d.env)||void 0===u?void 0:u.TEXT_DECODER)!=="force"?200:0:4294967295,w=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)}),C=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),S={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 s=t/4294967296,o=new Uint8Array(8),a=new DataView(o.buffer);return a.setUint32(0,n<<2|3&s),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 C("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}(e);return new Date(1e3*t.sec+t.nsec/1e6)}},_=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(S)}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 w(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 w(a,i)}}}return e instanceof w?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 w(t,e)},e.defaultCodec=new e,e}();function k(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 T=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.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===s&&(s=!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=s,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>g){var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),y(e,this.bytes,this.pos),this.pos+=t}else{var t=h(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var o=e.length,i=n,a=0;a<o;){var s=e.charCodeAt(a++);if((4294967168&s)==0){t[i++]=s;continue}if((4294965248&s)==0)t[i++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&a<o){var l=e.charCodeAt(a);(64512&l)==56320&&(++a,s=((1023&s)<<10)+(1023&l)+65536)}(4294901760&s)==0?t[i++]=s>>12&15|224:(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128),t[i++]=s>>6&63|128}t[i++]=63&s|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=k(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],s=e[a];this.ignoreUndefined&&void 0===s||(this.encodeString(a),this.doEncode(s,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 O(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var R=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],s=a.bytes,l=0;l<n;l++)if(s[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=v(e,t,n),a=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(a,i),i},e}(),I=globalThis&&globalThis.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,a){function s(e){try{u(o.next(e))}catch(e){a(e)}}function l(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,l)}u((o=o.apply(e,t||[])).next())})},M=globalThis&&globalThis.__generator||function(e,t){var n,o,i,a,s={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(;s;)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 s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}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])}}},j=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)})}}},D=globalThis&&globalThis.__await||function(e){return this instanceof D?(this.v=e,this):new D(e)},P=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={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(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 D?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}}function u(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])}},F=function(e){var t=typeof e;return"string"===t||"number"===t},L=new DataView(new ArrayBuffer(0)),N=new Uint8Array(L.buffer),U=function(){try{L.getInt8(0)}catch(e){return e.constructor}throw Error("never reached")}(),B=new U("Insufficient data"),W=new R,z=function(){function e(e,t,n,o,i,a,s,l){void 0===e&&(e=_.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===s&&(s=4294967295),void 0===l&&(l=W),this.extensionCodec=e,this.context=t,this.maxStrLength=n,this.maxBinLength=o,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=L,this.bytes=N,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=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(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=k(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 M(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 I(this,void 0,void 0,function(){var a,s,l,u,c,d,f;return M(this,function(h){switch(h.label){case 0:a=!1,h.label=1;case 1:h.trys.push([1,6,7,12]),t=j(e),h.label=2;case 2:return[4,t.next()];case 3:if((n=h.sent()).done)return[3,5];if(l=n.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(e){if(!(e instanceof U))throw e}this.totalPos+=this.pos,h.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o={error:h.sent()},[3,12];case 7:if(h.trys.push([7,,10,11]),!(n&&!n.done&&(i=t.return)))return[3,9];return[4,i.call(t)];case 8:h.sent(),h.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,s]}throw u=this,c=u.headByte,d=u.pos,f=u.totalPos,RangeError("Insufficient data in parsing ".concat(O(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 P(this,arguments,function(){var n,o,i,a,s,l,u,c;return M(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=j(e),d.label=2;case 2:return[4,D(i.next())];case 3:if((a=d.sent()).done)return[3,12];if(s=a.value,t&&0===o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),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,D(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 U))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 u={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,D(c.call(i))];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(u)throw u.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 C("Unrecognized type byte: ".concat(O(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(!F(t))throw new C("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new C("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 C("Unrecognized array type byte: ".concat(O(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new C("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 C("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 C("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength<this.pos+t+e)throw B;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>A?(n=this.bytes.subarray(a,a+e),i=b.decode(n)):i=v(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 C("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw B;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 C("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}(),V={};let K=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e,$=e=>K(e)&&"R19Error"===e.name&&"procedurePath"in e,H=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)},q=async(e,t)=>{if(Array.isArray(e)){let n=[];for(let o=0;o<e.length;o++)n[o]=await q(e[o],t);return n}if(H(e)){let n={};for(let o in e)n[o]=await q(e[o],t);return n}return await t(e)};var Z=Object.defineProperty,G=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>(G(e,"symbol"!=typeof t?t+"":t,n),n);class Q extends Error{constructor(e,t={}){super(),Y(this,"procedurePath"),Y(this,"procedureArgs"),Error.captureStackTrace&&Error.captureStackTrace(this,Q),this.name="R19Error",this.message=e,this.cause=t.cause,this.procedurePath=t.procedurePath,this.procedureArgs=t.procedureArgs}}let X=(e,t=[])=>new Proxy(()=>void 0,{apply:(n,o,i)=>e(t,i),get:(n,o)=>X(e,[...t,o.toString()])}),ee=(e=>{let t=e.fetch||globalThis.fetch.bind(globalThis);return X(async(n,o)=>{var i,a,s,l;let u=await q(o,async e=>{if(e instanceof Blob)return new Uint8Array(await e.arrayBuffer());if("function"==typeof e)throw new Q("r19 does not support function arguments.",{procedurePath:n,procedureArgs:o});return e}),c=(i={procedurePath:n,procedureArgs:u},new T((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=(s=new Uint8Array(await d.arrayBuffer()),void 0===l&&(l=V),new z(l.extensionCodec,l.context,l.maxStrLength,l.maxBinLength,l.maxArrayLength,l.maxMapLength,l.maxExtLength).decode(s));if(!("error"in f))return q(f.data,async e=>e instanceof Uint8Array?new Blob([e]):e);{let e=f.error;if($(e)){let t=new Q(e.message,{procedurePath:n,procedureArgs:o});throw t.stack=e.stack,t}if(K(e)){let t=Error(e.message);throw t.name=e.name,t.stack=e.stack,t}throw new Q("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 w},t7:function(){return h},Hm:function(){return g},jP:function(){return m},hr:function(){return f},W6:function(){return v},YS:function(){return b},Ch:function(){return y},Jk:function(){return A}});var o=n(17620),i=n.n(o),a=n(32145),s=n(1744),l=n(75665);let u=(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")(),h=(0,a.createAction)("CUSTOM_TYPES/CREATE_SUCCESS")(),m=(0,a.createAction)("CUSTOM_TYPES/RENAME_SUCCESS")(),g=(0,a.createAction)("CUSTOM_TYPES/DELETE_SUCCESS")(),y=e=>Object.values(e.availableCustomTypes),v=e=>Object.keys(e.availableCustomTypes),b=e=>Object.values(e.availableCustomTypes).flatMap(e=>Object.values(e)).reduce((e,t)=>void 0!=t.label?[...e,t.label]:e,[]),A=(e,t)=>e.availableCustomTypes[t],w=(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)(h):{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)(m):{let n=t.payload.renamedCustomType.id,o={...e[n],local:t.payload.renamedCustomType};return{...e,[n]:o}}case(0,a.getType)(g):{let n=e[t.payload.customTypeId];if((0,s.qt)(n)){let t=i()(n,"local");return{...e,[t.remote.id]:t}}if((0,s.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,s.TG)(o)?[t,{...o,local:u(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 u},TA:function(){return h},U1:function(){return i},gZ:function(){return d},wW:function(){return m},x0:function(){return l},zj:function(){return s}});var o=n(32145);let i=(0,o.createAction)("STATE/REFRESH.RESPONSE")(),a=(0,o.createAction)("STATE/UPDATE_MANIFEST")(),s=e=>e.environment,l=e=>e.environment.manifest.localSliceSimulatorURL,u=e=>e.environment.repo,c=e=>e.environment.manifest.apiEndpoint,d=e=>e.environment.endpoints,f=e=>e.environment.packageManager,h=e=>e.userContext.authStatus,m=(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 u},U:function(){return f},hg:function(){return d}});var o=n(34519),i=n.n(o),a=n(32145),s=n(93017);let l={...i()(s.z,()=>!1)},u=(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)(u):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 u}});var o=n(34519),i=n.n(o),a=n(32145),s=n(46962);let l={...i()(s.q,()=>!1)},u=(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)(u):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 h},dS:function(){return s},ek:function(){return d},og:function(){return f},sT:function(){return m},xB:function(){return y},xC:function(){return g},xg:function(){return u},zy:function(){return c}});var o=n(32145),i=n(29040),a=n(79546);let s=(0,o.createAction)("SLICES/CREATE_SUCCESS")(),l=(0,o.createAction)("SLICES/RENAME_SUCCESS")(),u=(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")(),h=e=>e.slices.libraries,m=e=>e.slices.remoteSlices,g=e=>(0,i.R)(e.slices.libraries,m(e)),y=(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)(s):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)(u):{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),s=n(79546),l=n(23798),u=n(93017),c=n(27078),d=n(46962),f=n(68916),h=n(17467);t.Z=()=>{let e=(0,o.I0)();return{refreshState:t=>{e((0,s.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:u.z.LOGIN})),stopLoadingLogin:()=>e((0,l.CK)({loadingKey:u.z.LOGIN})),stopLoadingReview:()=>e((0,l.CK)({loadingKey:u.z.REVIEW})),startLoadingReview:()=>e((0,l.HP)({loadingKey:u.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,h.dR)({reviewType:t})),skipReview:t=>e((0,h.jv)({reviewType:t})),setSeenSimulatorToolTip:()=>e((0,h.kd)()),setSeenChangesToolTip:()=>e((0,h.mw)()),openScreenshotPreviewModal:()=>e((0,c.ZR)({modalKey:d.q.SCREENSHOT_PREVIEW})),closeModals:()=>{e((0,c.re)())},pushChangesSuccess:()=>e((0,h.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 h},bv:function(){return m},dR:function(){return l},e4:function(){return y},jv:function(){return u},kd:function(){return c},mw:function(){return d},ov:function(){return g},po:function(){return f}});var o=n(32145),i=n(58161),a=n(79546);let s={userReview:{onboarding:!1},hasSeenSimulatorToolTip:!1,hasSeenChangesToolTip:!1,authStatus:i.t.UNKNOWN,lastSyncChange:null},l=(0,o.createAction)("USER_CONTEXT/SEND_REVIEW")(),u=(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")(),h=e=>{var t,n;return null!==(n=e.userContext.userReview)&&void 0!==n?n:{onboarding:null!==(t=e.userContext.hasSendAReview)&&void 0!==t&&t}},m=e=>e.userContext.hasSeenSimulatorToolTip||!1,g=e=>e.userContext.lastSyncChange,y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case(0,o.getType)(l):case(0,o.getType)(u):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:v(t.payload.clientError)};case(0,o.getType)(f):return{...e,lastSyncChange:Date.now()};default:return e}},v=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"},15214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tT}});var o,i,a,s,l,u,c,d,f,h,m,g,y=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 v=n(7729),b=function(){return(b=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)},A={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 b(b({},e),t)}},w=n(2784),x=n(56580),C=n(5632),S=n.n(C),_="@@router/LOCATION_CHANGE",k=function(e){return{type:_,payload:{location:e}}},T=n(38398),O=function(e){var t=(0,T.parse)(e),n=t.hash,o=t.search;return{href:e,pathname:t.pathname||"",search:o||"",hash:n||""}},R=n(28316),I=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){R.unstable_batchedUpdates(function(){n.set.apply(e.router,o).then(i,a),t.dispatch(k(O(e.asPath)))})}):Promise.resolve()},function(){e.router.set=n.set}},M=function(e){var t=e.fromJS;return function(e){return void 0===e&&(e="/"),t({location:O(e)})}};M(A);var j=(h=A.merge,m=M(A)(),function(e,t){return(void 0===e&&(e=m),t.type===_)?h(e,t.payload):e}),D=(g=A.getIn,function(e){var t=e.Router||S(),n=e.reducerKey,o=void 0===n?"router":n,i=(0,x.oR)(),a=(0,w.useRef)(0),s=(0,w.useRef)(!0),l=(0,w.useRef)(!1);function u(){s.current=--a.current<=0}function c(){s.current=++a.current<=0}return(0,w.useEffect)(function(){return i.subscribe(function(){if(s.current){var e=g(i.getState(),[o,"location"]),n=e.pathname,a=e.search,u=e.hash,c=e.href,d=O(t.asPath),f=d.pathname,h=d.search,m=d.hash;if(f!==n||h!==a||u!==m){var y="".concat(n).concat(a).concat(u);l.current=!0,t.replace(c,y)}}})},[t,i,o]),(0,w.useEffect)(function(){var e=function(){};function n(e){l.current?l.current=!1:e!==g(i.getState(),[o,"location"]).href&&i.dispatch(k(O(e))),u()}return t.ready(function(){e=I(t,i),t.events.on("routeChangeStart",c),t.events.on("routeChangeError",u),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",u),t.events.off("routeChangeComplete",n),t.events.off("hashChangeStart",c),t.events.off("hashChangeComplete",n)}},[t,o,i]),w.createElement(w.Fragment,{},e.children)}),P=n(25237),F=n.n(P),L=n(97729),N=n.n(L);function U(e){return(U="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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=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),s=0;s<i;s++)a[s]=arguments[s];return o=(e=(t=B(n)).call.apply(t,[this].concat(a)))&&("object"===U(e)||"function"==typeof e)?e:W(this),V(W(o),"state",{bootstrapped:!1}),V(W(o),"_unsubscribe",void 0),V(W(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&&z(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}(w.PureComponent);V(K,"defaultProps",{children:null,loading:null});var $=n(59326),H=n(62273),q=n(28165);function Z(){return(Z=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 G=function(e){return"--theme-ui-"+e.replace("-__default","")},Y=function(e){return"var("+G(e)+")"},Q=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join("-")},X=new Set(["useCustomProperties","initialColorModeName","printColorModeName","initialColorMode","useLocalStorage","config"]),ee=function e(t,n){var o=Array.isArray(t)?[]:{};for(var i in t){var a=t[i],s=Q(n,i);if(a&&"object"==typeof a){o[i]=e(a,s);continue}if(X.has(i)){o[i]=a;continue}o[i]=Y(s)}return o},et=function e(t,n){var o={};for(var i in n)if("modes"!==i){var a=Q(t,i),s=n[i];s&&"object"==typeof s?o=Z({},o,e(a,s)):o[G(a)]=s}return o},en=function(e){void 0===e&&(e={});var t=e.config||e||{},n=t.useCustomProperties,o=t.initialColorModeName,i=t.printColorModeName,a=t.useRootStyles,s=e.rawColors||e.colors;if(!s||!1===a)return{};if(!1===n)return(0,H.iv)({color:"text",bg:"background"})(e);var l=s.modes||{},u=er(s,l);if(i){var c=l[i];c||i!==o||(c=s),c?u["@media print"]=et("colors",c):console.error("Theme UI `printColorModeName` was not found in colors scale",{colors:s,printColorModeName:i})}var d=function(e){return Y("colors-"+e)};return(0,H.iv)(Z({},u,{color:d("text"),bg:d("background")}))(e)};function er(e,t){var n=et("colors",e);return Object.keys(t).forEach(function(e){var o=".theme-ui-"+e;n["&"+o+", "+o+" &"]=et("colors",t[e])}),n}var eo="theme-ui-color-mode",ei="(prefers-color-scheme: dark)",ea={get:function(){try{return window.localStorage.getItem(eo)}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(eo,e)}catch(e){console.warn("localStorage is disabled and color mode might not work as expected.","Please check your Site Settings.",e)}}},es=function(){if("undefined"!=typeof window&&window.matchMedia){if(window.matchMedia(ei).matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null},el="undefined"==typeof window?function(){}:w.useLayoutEffect,eu=function(e){var t=e.outerCtx,n=e.children,o=t.theme||{},i=o.config||o,a=i.initialColorModeName,s=i.useColorSchemeMediaQuery,l=i.useLocalStorage,u=(0,w.useState)(function(){return!1!==s&&es()||a}),c=u[0],d=u[1];el(function(){var e=!1!==l&&ea.get();"undefined"!=typeof document&&document.documentElement.classList.remove("theme-ui-"+e),"system"!==s&&e&&e!==c&&(c=e,d(e))},[]),(0,w.useEffect)(function(){c&&!1!==l&&ea.set(c)},[c,l]);var f=(0,w.useCallback)(function(){d(es()||a)},[a]);(0,w.useEffect)(function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.addEventListener?e.addEventListener("change",f):"function"==typeof e.addListener&&e.addListener(f)}return function(){if("system"===s&&window.matchMedia){var e=window.matchMedia(ei);"function"==typeof e.removeEventListener?e.removeEventListener("change",f):"function"==typeof e.removeListener&&e.removeListener(f)}}},[s,f]);var h=ed({colorMode:c,outerTheme:o}),m=Z({},t,{theme:h,colorMode:c,setColorMode:d});return w.createElement($.vg,{context:m},w.createElement(ef,{theme:h}),n)},ec=function(e){var t=Z({},e);return delete t.modes,t};function ed(e){var t=e.outerTheme,n=e.colorMode;return(0,w.useMemo)(function(){var e=Z({},t),o=(0,H.U2)(e,"colors.modes",{}),i=(0,H.U2)(o,n,{});n&&(e.colors=Z({},e.colors,i));var a=t.config||t,s=a.useCustomProperties,l=a.initialColorModeName,u=void 0===l?"__default":l,c=t.rawColors||t.colors||{};if(!1!==s){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],s=a[0],l=a[1];if("string"!=typeof l||l.startsWith("var(")){if("object"==typeof l){var u=Z({},n[s]);e(l,u),n[s]=u}}else n[s]=l}}(f,c=Z({},c)),c.modes&&(c.modes[u]=ec(c)),e.rawColors=c;else if("modes"in c){var h,m=Z(((h={})[u]=ec(c),h),c.modes);e.rawColors=Z({},f,{modes:m})}else e.rawColors=f;e.colors=ee(ec(c),"colors")}return e},[n,t])}function ef(e){var t=e.theme;return(0,$.tZ)(q.xB,{styles:function(){return{html:en(t)}}})}function ep(e){var t,n=e.outerCtx,o=e.children,i=ed({outerTheme:n.theme,colorMode:n.colorMode}),a=(0,w.useState)(function(){var e;return(null==(e=i.config)?void 0:e.useLocalStorage)!==!1}),s=a[0],l=a[1];el(function(){l(!1)},[]);var u=i.rawColors||i.colors,c=null==(t=i.config)?void 0:t.useCustomProperties,d=(0,w.useMemo)(function(){if(!1===c)return{};var e=u||{};return(0,H.iv)(er(e,e.modes||{}))(i)},[i,u,c]);return w.createElement($.vg,{context:Z({},n,{theme:i})},(0,$.tZ)("div",{"data-themeui-nested-provider":!0,key:Number(s),suppressHydrationWarning:!0,css:d,children:o}))}var eh=function(e){var t=e.children,n=(0,$.B7)();return"function"!=typeof n.setColorMode?w.createElement(eu,{outerCtx:n},t):w.createElement(ep,{outerCtx:n},t)},em=function(){return(0,$.tZ)(q.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,H.iv)({"*":{boxSizing:n},html:{variant:"styles.root"},body:{margin:0}})(e)}})},eg=function(e){var t=e.theme,n=e.children,o=(0,$.B7)()===$.yo;return w.createElement($.f6,{theme:t},w.createElement(eh,null,o&&w.createElement(em,null),n))},ey=n(93188),ev=n(30988),eb=n(80546),eA=n(5813),ew=n(65077),ex=n(77859),eC=n(49857),eS=n(41067),e_=()=>{let{refreshState:e}=(0,eS.Z)(),t=(0,w.useCallback)(e,[]),{data:n}=(0,eC.ZP)("getState",async()=>await (0,ey.y0)());(0,w.useEffect)(()=>{let e=!1;return n&&!e&&(t(n),ex.av({id:n.env.shortId}),ex.YA("repository",n.env.repo),ex.v("Repository Data",{name:n.env.repo})),()=>{e=!0}},[n,t])},ek=n(68916),eE=n(70647),eT=()=>{let{libraries:e}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)})),t=(0,C.useRouter)();(0,w.useEffect)(()=>{(function(e){let t=e.filter(e=>e.meta.isDownloaded);ey.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),eO()},[]),(0,w.useEffect)(()=>{let e=()=>{eO()};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};async function eO(){let e=await eE.managerClient.project.getAdapterName();return ey.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 eR=n(5335),eI=n(37149),eM=n.n(eI),ej=n(88932),eD=n(75289),eP=n(69765),eF=n(99757),eL=n(11104),eN=n(75665),eU=n(29040);async function eB(e,t,n,o){let i=0,a=(s,l)=>{Promise.resolve(e()).then(e=>{t(e)?s(e):i<o?(i+=1,setTimeout(a,n,s,l)):l(Error("AsyncPoller: reached timeout"))}).catch(e=>{l(e)})};return new Promise(a)}var eW=n(79546),ez=n(23798),eV=n(93017),eK=n(27078),e$=n(46962),eH=n(58161),eq=()=>{eM().setAppElement("#__next");let{env:e,isOpen:t,isLoginLoading:n}=(0,x.v9)(e=>({isOpen:(0,eK.gP)(e,e$.q.LOGIN),isLoginLoading:(0,ez.hg)(e,eV.z.LOGIN),env:(0,eW.zj)(e)})),{syncChanges:o}=(0,eb.g)(),{closeModals:i,startLoadingLogin:a,stopLoadingLogin:s}=(0,eS.Z)(),l=function(e){try{let t=new URL(e),n=[".wroom.io",".wroom.test",".dev-tools-wroom.com",".marketing-tools-wroom.com",".platform-wroom.com"].find(e=>t.hostname.endsWith(e));if(void 0!==n)return t.hostname=n.slice(1),t.origin;return"https://prismic.io"}catch(e){return"https://prismic.io"}}(e.manifest.apiEndpoint),u="".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(u)try{a(),await (0,ey.Yf)(),window.open(u,"_blank"),await eB(ey.t0,e=>"ok"===e.status&&!!e.shortId&&!!e.intercomHash,3e3,60),ej.Am.success("Logged in"),s(),i();let e=await (0,ey.y0)(),t=(0,eU.R)(e.libraries,e.remoteSlices),n=Object.values((0,eN.d)(e.customTypes,e.remoteCustomTypes)),{changedCustomTypes:l,changedSlices:c}=(0,eF.m)({authStatus:eH.t.AUTHORIZED,customTypes:n,isOnline:!0,libraries:e.libraries,slices:t}),{activeEnvironment:d}=await (0,eP.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){s(),ej.Am.error("Login failed")}};return(0,y.jsx)(eL.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,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.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,y.jsx)(eD.X6,{sx:{fontSize:"16px"},children:"You're not connected"}),(0,y.jsx)(eD.x8,{sx:{p:0},type:"button",onClick:i})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",p:3,justifyContent:"center",alignItems:"stretch"},children:[(0,y.jsx)(eD.xv,{variant:"xs",sx:{mb:3,maxWidth:280,textAlign:"center"},children:n?(0,y.jsxs)(y.Fragment,{children:["Not seeing the browser tab? ",(0,y.jsx)("br",{}),(0,y.jsx)(eD.rU,{target:"_blank",href:u,children:"Click here"})]}):(0,y.jsxs)(y.Fragment,{children:["Your session has expired.",(0,y.jsx)("br",{}),"Please log in again."]})}),(0,y.jsx)(eD.zx,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:240,mb:3},onClick:()=>void c(),children:n?(0,y.jsx)(eD.$j,{color:"#FFF",size:16}):(0,y.jsx)(y.Fragment,{children:"Log in to Prismic"})})]})]})})};let eZ=()=>(0,y.jsxs)(eD.xu,{children:[(0,y.jsxs)("p",{children:["We could not find any local library in your project.",(0,y.jsx)("br",{}),"Please update your `slicemachine.config.json` file with a path to slices, eg:"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("pre",{children:'{ "libraries": ["@/slices"] }'}),"and create the ",(0,y.jsx)("b",{children:"slices"})," folder at the root of your project."]})]});var eG=n(1744),eY=n(40572),eQ=n(17467),eJ=n(63397);let eX=[1,2,3,4,5],e0=e=>{let{field:t,form:n}=e;return(0,y.jsx)(eD.xu,{sx:{mb:3,display:"flex",justifyContent:"space-between"},children:eX.map((e,o)=>(0,y.jsx)(eD.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))})};eM().setAppElement("#__next");let e1="onboarding",e2=()=>{let{isReviewLoading:e,isLoginModalOpen:t}=(0,x.v9)(e=>({isReviewLoading:(0,ez.hg)(e,eV.z.REVIEW),isLoginModalOpen:(0,eK.gP)(e,e$.q.LOGIN)})),{skipReview:n,sendAReview:o,startLoadingReview:i,stopLoadingReview:a}=(0,eS.Z)(),s=(e,t)=>{i(),ey.Xe.track({event:"review",rating:e,comment:t,type:e1}),o(e1),a()};return(0,y.jsx)(eL.Z,{isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:()=>n(e1),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,y.jsx)(eJ.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:o=>{let{isValid:i}=o;return(0,y.jsx)(eJ.l0,{id:"review-form",children:(0,y.jsxs)(eD.Zb,{children:[(0,y.jsxs)(eD.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,y.jsx)(eD.X6,{sx:{fontSize:"20px",mr:4},children:"Share feedback"}),(0,y.jsx)(eD.x8,{type:"button",onClick:()=>n(e1)})]}),(0,y.jsxs)(eD.kC,{sx:{flexDirection:"column",padding:"16px 24px 32px",bg:"headSection"},children:[(0,y.jsx)(eD.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,y.jsxs)(eD.xu,{mb:2,sx:{display:"flex",flex:1,justifyContent:"space-between"},children:[(0,y.jsx)(eD.xv,{variant:"xs",as:"p",children:"Very unsatisfied"}),(0,y.jsx)(eD.xv,{variant:"xs",as:"p",children:"Very satisfied"})]}),(0,y.jsx)(eJ.gN,{name:"rating",component:e0}),(0,y.jsx)(eJ.gN,{name:"comment",type:"text",placeholder:"Tell us more...",as:eD.gx,autoComplete:"off",sx:{height:80,mb:3},"data-testid":"review-form-comment"}),(0,y.jsx)(eD.zx,{form:"review-form",type:"submit",disabled:!i||e||t,children:"Submit"})]})]})})}})})},e5=()=>{let{userReview:e,customTypes:t,libraries:n,lastSyncChange:o}=(0,x.v9)(e=>({userReview:(0,eQ.Eq)(e),customTypes:(0,eY.Ch)(e),libraries:(0,ek.Sd)(e),lastSyncChange:(0,eQ.ov)(e)})),i=n&&n.length?n.reduce((e,t)=>t?e+t.components.length:e,0):0,a=t.some(e=>(0,eG.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})),s=!!(o&&Date.now()-o>=36e5),l=i>=1&&t.length>=1&&a&&s;return!e.onboarding&&l?(0,y.jsx)(e2,{}):null};var e3=e=>{let{children:t}=e,{libraries:n}=(0,x.v9)(e=>({libraries:(0,ek.Sd)(e)}));return eT(),e_(),(0,y.jsxs)(y.Fragment,{children:[n.length>0?t:(0,y.jsx)(eR.LN,{children:(0,y.jsx)(eR.RN,{children:(0,y.jsx)(ew.xR,{children:(0,y.jsx)(eZ,{})})})}),(0,y.jsx)(eq,{}),(0,y.jsx)(e5,{})]})},e6=e=>{let{children:t}=e;return(0,y.jsx)(eD.kC,{sx:{height:"calc(100vh - 57px)",width:"100vw",alignItems:"center",justifyContent:"center"},children:t})},e4=()=>(0,y.jsx)(e6,{children:(0,y.jsx)(eD.$j,{variant:"styles.spinner",id:"spinner"})}),e8=n(91133),e7=n(18717),e9="persist:",te="persist/FLUSH",tt="persist/REHYDRATE",tn="persist/PAUSE",tr="persist/PERSIST",to="persist/PURGE",ti="persist/REGISTER";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 ts(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 tl(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?ts(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)):ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===ta(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===n[o]&&(i[o]=e[o])}),i}function tu(e){return JSON.stringify(e)}function tc(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:e9).concat(e.key),i=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:td,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 td(e){return JSON.parse(e)}function tf(e){}function tp(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(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)):tp(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tm(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 tg(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 ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(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)):tg(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tv={registry:[],bootstrapped:!1},tb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tv,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ti:return ty({},e,{registry:[].concat(tm(e.registry),[t.key])});case tt:var n=e.registry.indexOf(t.key),o=tm(e.registry);return o.splice(n,1),ty({},e,{registry:o,bootstrapped:0===o.length});default:return e}},tA=n(14549),tw=()=>(0,e7.UY)({modal:eK.XV,loading:ez.U,userContext:eQ.e4,environment:eW.wW,availableCustomTypes:eY.Vo,slices:ek.xB,router:j});let tx={key:"root",storage:tA.Z,whitelist:["userContext"]},tC=(void 0===o&&(o={}),s=void 0===(a=o.Router)?S():a,u=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]=u[t]?u[t]:t,e},((i={}).go="go",i)),function(e){return function(t){return function(n){var o=n.type,i="undefined"==typeof window;if(s&&!i&&o!==_){var a=A.getIn(e.getState(),[d,"location"]);s.asPath!==a.href&&t(k(O(s.asPath)))}if("@@router/CALL_ROUTER_METHOD"!==o)return t(n);var l=n.payload,u=l.args,c=f[l.method];"go"!==c||i||"number"!=typeof u[0]?c&&Object.prototype.hasOwnProperty.call(s,c)&&s[c].apply(s,u):window.history.go(u[0])}}});var tS=n(12170),t_=()=>({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,tS.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,tS.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,tS._j)("secondary",.02),cursor:"pointer"},"&:focus:enabled":{bg:(0,tS._j)("secondary",.05),borderColor:(0,tS._j)("secondary",.15),outline:"none"},"&:active:enabled":{bg:(0,tS._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,tS._j)("danger",.05),cursor:"pointer"},"&:focus":{bg:(0,tS._j)("danger",.05),borderColor:(0,tS._j)("danger",.15),outline:"none"},"&:active":{bg:(0,tS._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,tS._j)("secondary",.02),cursor:"pointer"}},"&:focus":{bg:(0,tS._j)("secondary",.05),borderColor:(0,tS._j)("secondary",.15),outline:"none",boxShadow:"inset 0px 2px 0px rgba(0, 0, 0, 0.08);"},"&:active":{"&:not([disabled])":{bg:(0,tS._j)("secondary",.06),outline:"none"}},"&:disabled":{cursor:"not-allowed",color:(0,tS.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,tS.$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,tS._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,tS._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,tS._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,tS._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 tk=e=>{let{children:t}=e,{setColorMode:n}=(0,$.B7)();return(0,w.useEffect)(()=>{n&&n("light")},[]),(0,y.jsx)(y.Fragment,{children:t})};function tE(e){let{Component:t,pageProps:n}=e,[o,i]=(0,w.useState)(null),[a,s]=(0,w.useState)(null);(0,w.useEffect)(()=>{(async function(){i(await (0,ey.y0)())})()},[]),(0,w.useEffect)(()=>{if(!o||a)return;let e=(0,eN.d)(o.customTypes,o.remoteCustomTypes),{store:t,persistor:n}=function(){var e,t,n,o,i,a,s,l,u,c,d,f,h,m;let g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=[(0,e7.md)(tC)],v=e7.qC,b=tw(),A=(e=void 0!==tx.version?tx.version:-1,tx.debug,t=void 0===tx.stateReconciler?tl:tx.stateReconciler,n=tx.getStoredState||tc,o=void 0!==tx.timeout?tx.timeout:5e3,i=null,a=!1,s=!0,l=function(e){return e._persist.rehydrated&&i&&!s&&i.update(e),e},function(u,c){var d,f,h=u||{},m=h._persist,g=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}(h,["_persist"]);if(c.type===tr){var y=!1,v=function(e,t){y||(c.rehydrate(tx.key,e,t),y=!0)};if(o&&setTimeout(function(){y||v(void 0,Error('redux-persist: persist timed out for persist key "'.concat(tx.key,'"')))},o),s=!1,i||(i=function(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:e9).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:tu;var u=e.writeFailHandler||null,c={},d={},f=[],h=null,m=null;function g(){if(0===f.length){h&&clearInterval(h),h=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]}),m=l.setItem(s,t(d)).catch(v))}function y(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function v(e){u&&u(e)}return{update:function(e){Object.keys(e).forEach(function(t){y(t)&&c[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&y(t)&&-1===f.indexOf(t)&&void 0!==c[t]&&f.push(t)}),null===h&&(h=setInterval(g,a)),c=e},flush:function(){for(;0!==f.length;)g();return m||Promise.resolve()}}}(tx)),m)return th({},b(g,c),{_persist:m});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(tx.key),n(tx).then(function(t){(tx.migrate||function(e,t){return Promise.resolve(e)})(t,e).then(function(e){v(e)},function(e){v(void 0,e)})},function(e){v(void 0,e)}),th({},b(g,c),{_persist:{version:e,rehydrated:!1}})}if(c.type===to)return a=!0,c.result((d=tx.storage,f="".concat(void 0!==tx.keyPrefix?tx.keyPrefix:e9).concat(tx.key),d.removeItem(f,tf))),th({},b(g,c),{_persist:m});if(c.type===te)return c.result(i&&i.flush()),th({},b(g,c),{_persist:m});if(c.type===tn)s=!0;else if(c.type===tt){if(a)return th({},g,{_persist:th({},m,{rehydrated:!0})});if(c.key===tx.key){var A=b(g,c),w=c.payload;return l(th({},!1!==t&&void 0!==w?t(w,u,A,tx):A,{_persist:th({},m,{rehydrated:!0})}))}}if(!m)return b(u,c);var x=b(g,c);return x===g?u:l(th({},x,{_persist:m}))}),w=(0,e7.MT)(A,g,v(...y)),x=(c=!1,d=(0,e7.MT)(tb,tv,void 0),f=function(e){d.dispatch({type:ti,key:e})},h=function(e,t,n){var o={type:tt,payload:t,err:n,key:e};w.dispatch(o),d.dispatch(o),c&&m.getState().bootstrapped&&(c(),c=!1)},m=ty({},d,{purge:function(){var e=[];return w.dispatch({type:to,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return w.dispatch({type:te,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){w.dispatch({type:tn})},persist:function(){w.dispatch({type:tr,register:f,rehydrate:h})}}),u&&u.manualPersist||m.persist(),m);return{store:w,persistor:x}}({environment:o.env,availableCustomTypes:{...e},slices:{libraries:o.libraries,remoteSlices:o.remoteSlices}});s({store:t,persistor:n})},[o,a]);let l=t.CustomLayout||e3;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(N(),{children:(0,y.jsx)("title",{children:"Slice Machine"})}),(0,y.jsx)(eg,{theme:t_,children:(0,y.jsx)(tk,{children:(0,y.jsx)(v.f6W,{mode:"light",children:(0,y.jsx)(v.pnl,{children:a&&o?(0,y.jsxs)(x.zt,{store:a.store,children:[(0,y.jsx)(D,{Router:S(),children:(0,y.jsx)(K,{loading:null,persistor:a.persistor,children:(0,y.jsx)(ev.S,{renderError:()=>(0,y.jsx)(v.xuv,{justifyContent:"center",width:"100%",padding:80,children:(0,y.jsx)(v.Iq8,{title:"Error",description:"An error occurred while rendering the app."})}),children:(0,y.jsx)(w.Suspense,{fallback:(0,y.jsx)(e4,{}),children:(0,y.jsx)(eb.E,{children:(0,y.jsx)(eA.e,{children:(0,y.jsx)(l,{children:(0,y.jsx)(t,{...n})})})})})})})}),(0,y.jsx)(e8.ZP,{})]}):(0,y.jsx)(e4,{})})})})})]})}var tT=F()(()=>Promise.resolve(tE),{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"}},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"}},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:{}},s=!0;try{t[e](a,a.exports,i),s=!1}finally{s&&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=b(e));var o,i,a,s,l,u,c,d,f,h=(i=(o=e).auth,a=o.hostname,s=o.protocol||"",l=o.pathname||"",u=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||"",s&&":"!==s.substr(-1)&&(s+=":"),o.slashes||(!s||n.test(s))&&!1!==d?(d="//"+(d||""),l&&"/"!==l[0]&&(l="/"+l)):d||(d=""),u&&"#"!==u[0]&&(u="#"+u),f&&"?"!==f[0]&&(f="?"+f),{protocol:s,host:d,pathname:l=l.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var s="http://",l=s+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var n="string"==typeof e?b(e):e;e="object"==typeof e?o(e):e;var i=b(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(u);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+"/"),h=new URL(t,f).toString().replace(l,""),m=i.protocol||n.protocol;return m+=n.slashes||i.slashes?"//":"",!a&&m?h=h.replace(s,m):a&&(h=h.replace(s,"")),c.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),a&&(h=a+("/"===h[0]?h.substr(1):h)),h}function f(){}f.prototype.parse=b,f.prototype.format=o,f.prototype.resolve=d,f.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(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(m);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var s=!/(^javascript)/.test(e)&&e.match(g),u=y.test(e),c="";s&&(h.test(s[1])||(c=s[1].toLowerCase(),e=""+s[2]+s[3]),s[2]||(u=!1,h.test(s[1])?(c=s[1],e=""+s[3]):e="//"+s[3]),3!==s[2].length&&1!==s[2].length||(c=s[1],e="/"+s[3]));var d,b=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),A=b&&b[1],w=new f,x="",C="";try{d=new URL(e)}catch(t){x=t,c||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(C="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return w.protocol=c,w.href=c,w}}w.slashes=u&&!C,w.host="w.w"===d.host?"":d.host,w.hostname="w.w"===d.hostname?"":d.hostname.replace(/(\[|\])/g,""),w.protocol=x?c||null:d.protocol,w.search=d.search.replace(/\\/g,"%5C"),w.hash=d.hash.replace(/\\/g,"%5C");var S=e.split("#");!w.search&&~S[0].indexOf("?")&&(w.search="?"),w.hash||""!==S[1]||(w.hash="#"),w.query=n?t.decode(d.search.substr(1)):w.search.substr(1),w.pathname=C+(s?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:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=d.port,A&&!w.host.endsWith(A)&&(w.host+=A,w.port=A.slice(1)),w.href=C?""+w.pathname+w.search+w.hash:o(w);var _=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~_.indexOf(e)||(w[e]=w[e]||null)}),w}a.parse=b,a.format=o,a.resolve=d,a.resolveObject=function(e,t){return b(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 s=/\+/g;e=e.split(n);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,f,h,m,g=e[c].replace(s,"%20"),y=g.indexOf(o);(y>=0?(d=g.substr(0,y),f=g.substr(y+1)):(d=g,f=""),h=decodeURIComponent(d),m=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(a,h))?t(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}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,s,l){return(a=a||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?o(i(e),function(i){var l=encodeURIComponent(t(i))+s;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))+s+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:{}},s=!0;try{t[e](a,a.exports,o),s=!1}finally{s&&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 s(){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:s}catch(e){n=s}}();var u=[],c=!1,d=-1;function f(){c&&o&&(c=!1,o.length?u=o.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=l(f);c=!0;for(var t=u.length;t;){for(o=u,u=[];++d<t;)o&&o[d].run();d=-1,t=u.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!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 m(e,t){this.fun=e,this.array=t}function g(){}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];u.push(new m(e,t)),1!==u.length||c||l(h)},m.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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,s){if(s!==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,s){if(a===s)return!0;if(a&&s&&"object"==typeof a&&"object"==typeof s){var l,u,c,d=t(a),f=t(s);if(d&&f){if((u=a.length)!=s.length)return!1;for(l=u;0!=l--;)if(!e(a[l],s[l]))return!1;return!0}if(d!=f)return!1;var h=a instanceof Date,m=s instanceof Date;if(h!=m)return!1;if(h&&m)return a.getTime()==s.getTime();var g=a instanceof RegExp,y=s instanceof RegExp;if(g!=y)return!1;if(g&&y)return a.toString()==s.toString();var v=n(a);if((u=v.length)!==n(s).length)return!1;for(l=u;0!=l--;)if(!o.call(s,v[l]))return!1;if(i&&a instanceof Element&&s instanceof Element)return a===s;for(l=u;0!=l--;)if(("_owner"!==(c=v[l])||!a.$$typeof)&&!e(a[c],s[c]))return!1;return!0}return a!=a&&s!=s}(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 u}});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),s=function(){return(s=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 u(e){return function(t){return o.createElement(c,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return o.createElement(t.tag,s({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,a=e.size,u=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",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&o.createElement("title",null,u),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 g},$vK:function(){return C},B4e:function(){return w},BAW:function(){return b},Fwj:function(){return T},HhX:function(){return x},I2R:function(){return d},JSF:function(){return a},KZU:function(){return S},SQS:function(){return A},U8L:function(){return k},XN7:function(){return y},YTL:function(){return m},_b$:function(){return v},eJU:function(){return u},f$3:function(){return s},hs8:function(){return I},iy3:function(){return _},k71:function(){return c},lPv:function(){return O},nwY:function(){return R},vB0:function(){return l},vVM:function(){return h},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 s(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 u(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 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:"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 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:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function g(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 y(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 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:"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 b(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 A(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 w(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 C(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 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 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 _(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 k(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 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:"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 O(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 R(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 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:"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
|
|
711
711
|
* react-is.production.min.js
|
|
712
712
|
*
|
|
713
713
|
* Copyright (c) Facebook, Inc. and its affiliates.
|