datocms-plugin-everything-svg 1.0.0
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/README.md +17 -0
- package/build/asset-manifest.json +10 -0
- package/build/bundle.js +2 -0
- package/build/bundle.js.LICENSE.txt +54 -0
- package/build/index.html +1 -0
- package/build/main.css +956 -0
- package/build/robots.txt +3 -0
- package/build/static/css/main.1b8db9d0.css +2 -0
- package/build/static/css/main.1b8db9d0.css.map +1 -0
- package/build/static/js/main.9aa4e4c6.js +3 -0
- package/build/static/js/main.9aa4e4c6.js.LICENSE.txt +56 -0
- package/build/static/js/main.9aa4e4c6.js.map +1 -0
- package/docs/cover.png +0 -0
- package/docs/everything-svg-details.png +0 -0
- package/docs/everything-svg-field-settings.png +0 -0
- package/docs/everything-svg-plugin-settings.png +0 -0
- package/docs/everything-svg-selected.png +0 -0
- package/docs/everything-svg-selector.png +0 -0
- package/docs/everything-svg.png +0 -0
- package/docs/preview.mp4 +0 -0
- package/license.md +15 -0
- package/package.json +107 -0
package/build/bundle.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.js.LICENSE.txt */
|
|
2
|
+
!function(){var e,t,n={9102:function(e){e.exports.he=globalThis.fetch,globalThis.Headers,globalThis.Request,globalThis.Response,globalThis.FormData,globalThis.AbortController,globalThis.ReadableStream,globalThis.WritableStream,globalThis.TransformStream,globalThis.Blob,globalThis.File,globalThis.crypto,globalThis.btoa,globalThis.TextEncoder,globalThis.TextDecoder},4496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._meta=void 0,this._task=e,this._scheduler=t}withDescriptor(e){return this._descriptor=e,this}withMutex(e){return this._mutex=e,this}withMeta(e){return this._meta=e,this}runBeforeExecuting(e){return this._onPreExecute=e,this}handleCollisions(e){return this._onTaskCollision=e,this}execute(e){return this._scheduler.enqueue({priority:e,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}}},2374:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollisionStrategy=void 0,(n=t.TaskCollisionStrategy||(t.TaskCollisionStrategy={}))[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"},3474:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2374),a=o(n(3241)),u=n(8419),l=o(n(4496));var s;function c(e,t){for(let n of e.listeners)n.reject(t)}!function(e){e[e.PENDING=0]="PENDING",e[e.EXECUTING=1]="EXECUTING",e[e.TERMINATED=2]="TERMINATED"}(s||(s={})),t.default=class{constructor(e,t={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=e,this._samePriorityMutex=!!t.samePriorityMutex,this._mutexStrategy=t.mutexStrategy||u.mutexEquality,t.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(e){return new Promise(((t,n)=>{"function"==typeof e&&(e={priority:0,execute:e});const r=this._checkMutexes(e,t,n);r.task?this._addTask(r.task):r.canceled&&n(this.createCanceledError())}))}prepare(e){return new l.default(e,this)}_addTask(e){this._queue.push(e),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce(((e,t)=>t.state===s.EXECUTING?e+1:e),0)}createCanceledError(){return new a.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find((e=>e.state===s.PENDING))}_isIdle(){return 0===this._queue.length||!this._queue.find((e=>e.state!==s.TERMINATED))}_removeTaskAt(e){this._queue.splice(e,1)}_executeTask(e){return r(this,void 0,void 0,(function*(){try{return e.task.onPreExecute&&e.task.onPreExecute(),yield e.task.execute()}catch(e){throw e}finally{e.state=s.TERMINATED;let t=this._queue.indexOf(e);this._removeTaskAt(t),this._executeNextTasks()}}))}_executeNextTasks(){let e=this.executingTasks;if(e>=this._maxConcurrentTasks)return;let t=this._maxConcurrentTasks-e;for(let e=0;e<t;e++){const e=this._findFirstPendingTask();if(!e)return void(this._isIdle()&&this._switchToIdle());e.state=s.EXECUTING,this._executeTask(e).then((t=>{for(const{resolve:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while resolving listener",e)}})).catch((t=>{for(const{reject:n}of e.listeners)try{n(t)}catch(e){this._errorLog("An error occurred while rejecting listener",e)}}))}}_switchToIdle(){this._isExecuting=!1;const e=this._idleListeners;this._idleListeners=[];for(const{resolve:t}of e)try{t()}catch(e){}}waitForIdle(){return this._isExecuting?new Promise(((e,t)=>{this._idleListeners.push({resolve:e,reject:t})})):Promise.resolve()}_applyPriorities(){this._queue.sort(((e,t)=>t.task.priority-e.task.priority))}_checkMutexes(e,t,n){for(let r=0;r<this._queue.length;r++){let o,a,u=this._queue[r];if(u.state!==s.TERMINATED&&(!this._samePriorityMutex||u.task.priority==e.priority)&&u.task.mutex&&e.mutex&&this._mutexStrategy(u.task.mutex,e.mutex)){if(u.task.onTaskCollision){if(o=u.task.onTaskCollision(e),o===i.TaskCollisionStrategy.KEEP_OTHER&&u.state!==s.EXECUTING){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(o===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(o===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:s.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}};if(o===i.TaskCollisionStrategy.RESOLVE_THIS)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1}}if(e.onTaskCollision){if(a=e.onTaskCollision(u.task),a===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(a===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(r--),c(u,this.createCanceledError());continue}if(a===i.TaskCollisionStrategy.RESOLVE_OTHER)return u.listeners=[...u.listeners,{resolve:t,reject:n}],{canceled:!1};if(a===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(r--),{canceled:!1,task:{task:e,state:s.PENDING,listeners:[{resolve:t,reject:n},...u.listeners]}}}if(o!==i.TaskCollisionStrategy.KEEP_BOTH||a!==i.TaskCollisionStrategy.KEEP_BOTH)return{canceled:!0}}}return{canceled:!1,task:{task:e,state:s.PENDING,listeners:[{resolve:t,reject:n}]}}}}},3241:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t){this._code=e,this._message=t}get code(){return this._code}get message(){return this._message}}},8419:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=void 0,t.mutexBitwiseAnd=function(e,t){return 0!=(e&t)},t.mutexEquality=function(e,t){return e===t}},9390:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mutexEquality=t.mutexBitwiseAnd=t.SchedulerError=t.TaskCollisionStrategy=t.Scheduler=void 0;const o=r(n(3474));t.Scheduler=o.default;const i=n(2374);Object.defineProperty(t,"TaskCollisionStrategy",{enumerable:!0,get:function(){return i.TaskCollisionStrategy}});const a=r(n(3241));t.SchedulerError=a.default;const u=n(8419);Object.defineProperty(t,"mutexBitwiseAnd",{enumerable:!0,get:function(){return u.mutexBitwiseAnd}}),Object.defineProperty(t,"mutexEquality",{enumerable:!0,get:function(){return u.mutexEquality}})},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var u in n)r.call(n,u)&&n[u]&&e.push(u)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6932:function(e,t,n){"use strict";const r=n(8501),o=n(8844),i=n(1192);e.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},7849:function(e,t){"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),o=r.length;for(let i=0;i<o;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const o=[];o.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)o.push(r[e]);n.push(o),r=t.exec(e)}return n},t.nameRegexp=r},8501:function(e,t,n){"use strict";const r=n(7849),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function a(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)return h("InvalidXml","XML declaration allowed only at the start of the document.",y(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function u(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const n=[];let l=!1,s=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=a(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return h("InvalidChar","char '"+e[o]+"' is not expected.",y(e,o))}{let m=o;if(o++,"!"===e[o]){o=u(e,o);continue}{let v=!1;"/"===e[o]&&(v=!0,o++);let g="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)g+=e[o];if(g=g.trim(),"/"===g[g.length-1]&&(g=g.substring(0,g.length-1),o--),f=g,!r.isName(f)){let t;return t=0===g.trim().length?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",h("InvalidTag",t,y(e,o))}const b=c(e,o);if(!1===b)return h("InvalidAttr","Attributes for '"+g+"' have open quote.",y(e,o));let w=b.value;if(o=b.index,"/"===w[w.length-1]){const n=o-w.length;w=w.substring(0,w.length-1);const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,n+r.err.line));l=!0}else if(v){if(!b.tagClosed)return h("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",y(e,o));if(w.trim().length>0)return h("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",y(e,m));{const t=n.pop();if(g!==t.tagName){let n=y(e,t.tagStartPos);return h("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+g+"'.",y(e,m))}0==n.length&&(s=!0)}}else{const r=p(w,t);if(!0!==r)return h(r.err.code,r.err.msg,y(e,o-w.length+r.err.line));if(!0===s)return h("InvalidXml","Multiple possible root nodes found.",y(e,o));-1!==t.unpairedTags.indexOf(g)||n.push({tagName:g,tagStartPos:m}),l=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=u(e,o);continue}if("?"!==e[o+1])break;if(o=a(e,++o),o.err)return o}else if("&"===e[o]){const t=d(e,o);if(-1==t)return h("InvalidChar","char '&' is not expected.",y(e,o));o=t}else if(!0===s&&!i(e[o]))return h("InvalidXml","Extra text at the end",y(e,o));"<"===e[o]&&o--}}}var f;return l?1==n.length?h("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",y(e,n[0].tagStartPos)):!(n.length>0)||h("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};const l='"',s="'";function c(e,t){let n="",r="",o=!1;for(;t<e.length;t++){if(e[t]===l||e[t]===s)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){o=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:o}}const f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,f),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return h("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return h("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const r=n[e][2];if(!m(r))return h("InvalidAttr","Attribute '"+r+"' is an invalid name.",v(n[e]));if(o.hasOwnProperty(r))return h("InvalidAttr","Attribute '"+r+"' is repeated.",v(n[e]));o[r]=1}return!0}function d(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function h(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function y(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}},1192:function(e,t,n){"use strict";const r=n(2592),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function u(e){return this.options.indentBy.repeat(e)}function l(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let n="",r="";for(let o in e)if(void 0===e[o]);else if(null===e[o])"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)n+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const n=e[o].length;let i="";for(let a=0;a<n;a++){const n=e[o][a];void 0===n||(null===n?"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,o,t):i+=this.buildTextValNode(n,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),r+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else r+=this.processTextOrObjNode(e[o],o,t);return{attrStr:n,val:r}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+i+">"+e+o:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},2592:function(e){function t(e,a,u,l){let s="",c=!1;for(let f=0;f<e.length;f++){const p=e[f],d=n(p);let h="";if(h=0===u.length?d:`${u}.${d}`,d===a.textNodeName){let e=p[d];o(h,a)||(e=a.tagValueProcessor(d,e),e=i(e,a)),c&&(s+=l),s+=e,c=!1;continue}if(d===a.cdataPropName){c&&(s+=l),s+=`<![CDATA[${p[d][0][a.textNodeName]}]]>`,c=!1;continue}if(d===a.commentPropName){s+=l+`\x3c!--${p[d][0][a.textNodeName]}--\x3e`,c=!0;continue}if("?"===d[0]){const e=r(p[":@"],a),t="?xml"===d?"":l;let n=p[d][0][a.textNodeName];n=0!==n.length?" "+n:"",s+=t+`<${d}${n}${e}?>`,c=!0;continue}let m=l;""!==m&&(m+=a.indentBy);const y=l+`<${d}${r(p[":@"],a)}`,v=t(p[d],a,h,m);-1!==a.unpairedTags.indexOf(d)?a.suppressUnpairedNode?s+=y+">":s+=y+"/>":v&&0!==v.length||!a.suppressEmptyNode?v&&v.endsWith(">")?s+=y+`>${v}${l}</${d}>`:(s+=y+">",v&&""!==l&&(v.includes("/>")||v.includes("</"))?s+=l+a.indentBy+v+l:s+=v,s+=`</${d}>`):s+=y+"/>",c=!0}return s}function n(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){let o=t.attributeValueProcessor(r,e[r]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function o(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},4780:function(e,t,n){const r=n(7849);function o(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let o="";for(;t<e.length&&e[t]!==r;t++)o+=e[t];return[n,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function u(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function l(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function s(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function c(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,f=!1,p=!1,d="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?f=!0:d+=e[t];else{if(f&&a(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(n[c(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(f&&u(e,t))t+=8;else if(f&&l(e,t))t+=8;else if(f&&s(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,d=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},6745:function(e,t){const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},1078:function(e,t,n){"use strict";const r=n(7849),o=n(6311),i=n(4780),a=n(4153);function u(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function l(e,t,n,r,o,i,a){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,o,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function s(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function f(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,c),o=n.length,i={};for(let e=0;e<o;e++){const r=this.resolveNameSpace(n[e][1]);let o=n[e][4],a=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(a=this.options.transformAttributeName(a)),"__proto__"===a&&(a="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(r,o,t);i[a]=null==e?o:typeof e!=typeof o||e!==o?e:w(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[a]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let n=t,r="",a="";for(let u=0;u<e.length;u++)if("<"===e[u])if("/"===e[u+1]){const t=v(e,">",u,"Closing Tag is not closed.");let o=e.substring(u+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(r=this.saveTextToParentTag(r,n,a));const i=a.substring(a.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let l=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),n=this.tagsNodeStack.pop(),r="",u=t}else if("?"===e[u+1]){let t=g(e,u,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(n,e,a)}u=t.closeIndex+1}else if("!--"===e.substr(u+1,3)){const t=v(e,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(u+4,t-2);r=this.saveTextToParentTag(r,n,a),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}u=t}else if("!D"===e.substr(u+1,2)){const t=i(e,u);this.docTypeEntities=t.entities,u=t.i}else if("!["===e.substr(u+1,2)){const t=v(e,"]]>",u,"CDATA is not closed.")-2,o=e.substring(u+9,t);if(r=this.saveTextToParentTag(r,n,a),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]);else{let e=this.parseTextData(o,n.tagname,a,!0,!1,!0);null==e&&(e=""),n.add(this.options.textNodeName,e)}u=t+2}else{let i=g(e,u,this.options.removeNSPrefix),l=i.tagName,s=i.tagExp,c=i.attrExpPresent,f=i.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,a,!1));const p=n;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(n=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==t.tagname&&(a+=a?"."+l:l),this.isItStopNode(this.options.stopNodes,a,l)){let t="";if(s.length>0&&s.lastIndexOf("/")===s.length-1)u=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))u=i.closeIndex;else{const n=this.readStopNodeData(e,l,f+1);if(!n)throw new Error(`Unexpected end of ${l}`);u=n.i,t=n.tagContent}const r=new o(l);l!==s&&c&&(r[":@"]=this.buildAttributesMap(s,a,l)),t&&(t=this.parseTextData(t,l,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,a)}else{if(s.length>0&&s.lastIndexOf("/")===s.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),s=l):s=s.substr(0,s.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const e=new o(l);l!==s&&c&&(e[":@"]=this.buildAttributesMap(s,a,l)),this.addChild(n,e,a),a=a.substr(0,a.lastIndexOf("."))}else{const e=new o(l);this.tagsNodeStack.push(n),l!==s&&c&&(e[":@"]=this.buildAttributesMap(s,a,l)),this.addChild(n,e,a),n=e}r="",u=f}}else r+=e[u];return t.child};function d(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const h=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function y(e,t,n){const r="*."+n;for(const n in e){const o=e[n];if(r===o||t===o)return!0}return!1}function v(e,t,n,r){const o=e.indexOf(t,n);if(-1===o)throw new Error(r);return o+t.length-1}function g(e,t,n,r=">"){const o=function(e,t,n=">"){let r,o="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:o,index:i};if(e[i+1]===n[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,r);if(!o)return;let i=o.data;const a=o.index,u=i.search(/\s/);let l=i,s=!0;if(-1!==u&&(l=i.substr(0,u).replace(/\s\s*$/,""),i=i.substr(u+1)),n){const e=l.indexOf(":");-1!==e&&(l=l.substr(e+1),s=l!==o.data.substr(e+1))}return{tagName:l,tagExp:i,closeIndex:a,attrExpPresent:s}}function b(e,t,n){const r=n;let o=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=v(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(r,n),i:i};n=i}else if("?"===e[n+1])n=v(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=v(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=v(e,"]]>",n,"StopNode is not closed.")-2;else{const r=g(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&o++,n=r.closeIndex)}}function w(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&a(e,n)}return r.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=f,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=b,this.saveTextToParentTag=m,this.addChild=d}}},8844:function(e,t,n){const{buildOptions:r}=n(6745),o=n(1078),{prettify:i}=n(6997),a=n(8501);e.exports=class{constructor(e){this.externalEntities={},this.options=r(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const n=a.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new o(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},6997:function(e,t){"use strict";function n(e,t,a){let u;const l={};for(let s=0;s<e.length;s++){const c=e[s],f=r(c);let p="";if(p=void 0===a?f:a+"."+f,f===t.textNodeName)void 0===u?u=c[f]:u+=""+c[f];else{if(void 0===f)continue;if(c[f]){let e=n(c[f],t,p);const r=i(e,t);c[":@"]?o(e,c[":@"],p,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==l[f]&&l.hasOwnProperty(f)?(Array.isArray(l[f])||(l[f]=[l[f]]),l[f].push(e)):t.isArray(f,p,r)?l[f]=[e]:l[f]=e}}}return"string"==typeof u?u.length>0&&(l[t.textNodeName]=u):void 0!==u&&(l[t.textNodeName]=u),l}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function o(e,t,n,r){if(t){const o=Object.keys(t),i=o.length;for(let a=0;a<i;a++){const i=o[a];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},6311:function(e){"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},8679:function(e,t,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),m=l(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=p(n,v);try{s(t,v,g)}catch(e){}}}}return t}},1989:function(e,t,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),u=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},8407:function(e,t,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),u=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},7071:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(e,t,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),u=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=u,e.exports=l},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},9932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},8470:function(e,t,n){var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7786:function(e,t,n){var r=n(1811),o=n(327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},4239:function(e,t,n){var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8458:function(e,t,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),u=/^\[object .+?Constructor\]$/,l=Function.prototype,s=Object.prototype,c=l.toString,f=s.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},531:function(e,t,n){var r=n(2705),o=n(9932),i=n(1469),a=n(3448),u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1811:function(e,t,n){var r=n(1469),o=n(5403),i=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},4429:function(e,t,n){var r=n(5639)["__core-js_shared__"];e.exports=r},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},5050:function(e,t,n){var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:function(e,t,n){var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},9607:function(e,t,n){var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,n){var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:function(e,t,n){var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:function(e,t,n){var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5403:function(e,t,n){var r=n(1469),o=n(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,n){var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,n){var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},2117:function(e,t,n){var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:function(e,t,n){var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:function(e,t,n){var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},4523:function(e,t,n){var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:function(e,t,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5514:function(e,t,n){var r=n(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},327:function(e,t,n){var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346: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""}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:function(e,t,n){var r=n(7786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1469:function(e){var t=Array.isArray;e.exports=t},3560:function(e,t,n){var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),o=n(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},8306:function(e,t,n){var r=n(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},9833:function(e,t,n){var r=n(531);e.exports=function(e){return null==e?"":r(e)}},3409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1009),o=n(7996);t.default=(e,t,n)=>{const i=e.localName,a=e.local,u=e.remote,l=e.originForSending,s=e.originForReceiving;let c=!1;n(`${i}: Connecting call receiver`);const f=e=>{if(e.source!==u||e.data.penpal!==r.CALL)return;if(e.origin!==s)return void n(`${i} received message from origin ${e.origin} which did not match expected origin ${s}`);const a=e.data,f=a.methodName,p=a.args,d=a.id;n(`${i}: Received ${f}() call`);const h=e=>t=>{if(n(`${i}: Sending ${f}() reply`),c)return void n(`${i}: Unable to send ${f}() reply due to destroyed connection`);const a={penpal:r.REPLY,id:d,resolution:e,returnValue:t};e===r.REJECTED&&t instanceof Error&&(a.returnValue=(0,o.serializeError)(t),a.returnValueIsError=!0);try{u.postMessage(a,l)}catch(e){throw e.name===r.DATA_CLONE_ERROR&&u.postMessage({penpal:r.REPLY,id:d,resolution:r.REJECTED,returnValue:(0,o.serializeError)(e),returnValueIsError:!0},l),e}};new Promise((e=>e(t[f].apply(t,p)))).then(h(r.FULFILLED),h(r.REJECTED))};return a.addEventListener(r.MESSAGE,f),()=>{c=!0,a.removeEventListener(r.MESSAGE,f)}},e.exports=t.default},9701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(1009),i=n(3740),a=(r=n(5445))&&r.__esModule?r:{default:r},u=n(7996);t.default=(e,t,n,r,l)=>{const s=t.localName,c=t.local,f=t.remote,p=t.originForSending,d=t.originForReceiving;let h=!1;return l(`${s}: Connecting call sender`),n.reduce(((e,t)=>(e[t]=(e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let y;l(`${s}: Sending ${e}() call`);try{f.closed&&(y=!0)}catch(e){y=!0}if(y&&r(),h){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=i.ERR_CONNECTION_DESTROYED,t}return new Promise(((t,r)=>{const i=(0,a.default)(),h=n=>{if(n.source!==f||n.data.penpal!==o.REPLY||n.data.id!==i)return;if(n.origin!==d)return void l(`${s} received message from origin ${n.origin} which did not match expected origin ${d}`);l(`${s}: Received ${e}() reply`),c.removeEventListener(o.MESSAGE,h);let a=n.data.returnValue;n.data.returnValueIsError&&(a=(0,u.deserializeError)(a)),(n.data.resolution===o.FULFILLED?t:r)(a)};c.addEventListener(o.MESSAGE,h),f.postMessage({penpal:o.CALL,id:i,methodName:e,args:n},p)}))})(t),e)),e),()=>{h=!0}},e.exports=t.default},3804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(1009),o=n(3740),i=s(n(9443)),a=s(n(3409)),u=s(n(9701)),l=s(n(6392));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentOrigin,n=void 0===t?"*":t,s=e.methods,c=void 0===s?{}:s,f=e.timeout,p=e.debug;const d=(0,l.default)(p);if(window===window.top){const e=new Error("connectToParent() must be called within an iframe");throw e.code=o.ERR_NOT_IN_IFRAME,e}const h=(0,i.default)(),m=h.destroy,y=h.onDestroy,v=window,g=v.parent;return{promise:new Promise(((e,t)=>{let i;void 0!==f&&(i=setTimeout((()=>{const e=new Error(`Connection to parent timed out after ${f}ms`);e.code=o.ERR_CONNECTION_TIMEOUT,t(e),m()}),f));const l=t=>{try{clearTimeout()}catch(e){return}if(t.source!==g||t.data.penpal!==r.HANDSHAKE_REPLY)return;if("*"!==n&&n!==t.origin)return void d(`Child received handshake reply from origin ${t.origin} which did not match expected origin ${n}`);d("Child: Received handshake reply"),v.removeEventListener(r.MESSAGE,l);const o={localName:"Child",local:v,remote:g,originForSending:"null"===t.origin?"*":t.origin,originForReceiving:t.origin},s={},f=(0,a.default)(o,c,d);y(f);const p=(0,u.default)(s,o,t.data.methodNames,m,d);y(p),clearTimeout(i),e(s)};v.addEventListener(r.MESSAGE,l),y((()=>{v.removeEventListener(r.MESSAGE,l);const e=new Error("Connection destroyed");e.code=o.ERR_CONNECTION_DESTROYED,t(e)})),d("Child: Sending handshake"),g.postMessage({penpal:r.HANDSHAKE,methodNames:Object.keys(c)},n)})),destroy:m}},e.exports=t.default},1009:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DATA_CLONE_ERROR=t.MESSAGE=t.REJECTED=t.FULFILLED=t.REPLY=t.CALL=t.HANDSHAKE_REPLY=t.HANDSHAKE=void 0,t.HANDSHAKE="handshake",t.HANDSHAKE_REPLY="handshake-reply",t.CALL="call",t.REPLY="reply",t.FULFILLED="fulfilled",t.REJECTED="rejected",t.MESSAGE="message",t.DATA_CLONE_ERROR="DataCloneError"},9443:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=()=>{const e=[];let t=!1;return{destroy(){t=!0,e.forEach((e=>{e()}))},onDestroy(n){t?n():e.push(n)}}},e.exports=t.default},6392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},e.exports=t.default},3740:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERR_NO_IFRAME_SRC=t.ERR_NOT_IN_IFRAME=t.ERR_CONNECTION_TIMEOUT=t.ERR_CONNECTION_DESTROYED=void 0,t.ERR_CONNECTION_DESTROYED="ConnectionDestroyed",t.ERR_CONNECTION_TIMEOUT="ConnectionTimeout",t.ERR_NOT_IN_IFRAME="NotInIframe",t.ERR_NO_IFRAME_SRC="NoIframeSrc"},7996:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeError=t.serializeError=void 0,t.serializeError=e=>({name:e.name,message:e.message,stack:e.stack}),t.deserializeError=e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t}},5445:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=0;t.default=()=>++n,e.exports=t.default},4448:function(e,t,n){"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function l(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var A,F=Object.assign;function M(e){if(void 0===A)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var V=!1;function z(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,u=i.length-1;1<=a&&0<=u&&o[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(o[a]!==i[u]){if(1!==a||1!==u)do{if(a--,0>--u||o[a]!==i[u]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=u);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case O:return"Profiler";case S:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,xe=null,Se=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function ke(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Pe(){if(xe){var e=xe,t=Se;if(Se=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ce(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Te(e,t,n)}finally{Ne=!1,(null!==xe||null!==Se)&&(Ce(),Pe())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Le=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Le=!1}function Re(e,t,n,r,o,i,a,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Ae=!1,Fe=null,Me=!1,Ve=null,ze={onError:function(e){Ae=!0,Fe=e}};function Ue(e,t,n,r,o,i,a,u,l){Ae=!1,Fe=null,Re.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=a;break}if(l===r){u=!0,r=o,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,r=o;break}if(l===r){u=!0,r=a,n=o;break}l=l.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,We=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/lt|0)|0},ut=Math.log,lt=Math.LN2,st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var u=a&~o;0!==u?r=ft(u):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var _t,Et,xt,St,Ot,kt=!1,Pt=[],Tt=null,Ct=null,Nt=null,It=new Map,jt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function At(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&Et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Mt(e)&&n.delete(t)}function zt(){kt=!1,null!==Tt&&Mt(Tt)&&(Tt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==Nt&&Mt(Nt)&&(Nt=null),It.forEach(Vt),jt.forEach(Vt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Ct&&Ut(Ct,e),null!==Nt&&Ut(Nt,e),It.forEach(t),jt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Lt.shift()}var Bt=w.ReactCurrentBatchConfig,Ht=!0;function $t(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Bt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Bt.transition=i}}function Yt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Wt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=At(Tt,e,t,n,r,o),!0;case"dragenter":return Ct=At(Ct,e,t,n,r,o),!0;case"mouseover":return Nt=At(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,At(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,At(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Qt(e,t,n,r))&&Hr(e,t,r,Wt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Qt(e,t,n,r){if(Wt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,un,ln,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),fn=F({},sn,{view:0,detail:0}),pn=on(fn),dn=F({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,un=e.screenY-ln.screenY):un=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=on(dn),mn=on(F({},dn,{dataTransfer:0})),yn=on(F({},fn,{relatedTarget:0})),vn=on(F({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=F({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(F({},sn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return Sn}var kn=F({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),Tn=on(F({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(F({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Nn=on(F({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=F({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(In),Ln=[9,13,27,32],Dn=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var An=c&&"TextEvent"in window&&!Rn,Fn=c&&(!Dn||Rn&&8<Rn&&11>=Rn),Mn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function $n(e,t,n,r){ke(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Wn(e){Mr(e,0)}function Qn(e){if(Y(_o(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];$n(t,Yn,e,_e(e)),Ie(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==W(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},xr={},Sr={};function Or(e){if(xr[e])return xr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var kr=Or("animationend"),Pr=Or("animationiteration"),Tr=Or("animationstart"),Cr=Or("transitionend"),Nr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Nr.set(e,t),l(t,[e])}for(var Lr=0;Lr<Ir.length;Lr++){var Dr=Ir[Lr];jr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Pr,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Cr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,u,l,s){if(Ue.apply(this,arguments),Ae){if(!Ae)throw Error(i(198));var c=Fe;Ae=!1,Fe=null,Me||(Me=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],l=u.instance,s=u.currentTarget;if(u=u.listener,l!==i&&o.isPropagationStopped())break e;Fr(o,u,s),i=l}else for(a=0;a<r.length;a++){if(l=(u=r[a]).instance,s=u.currentTarget,u=u.listener,l!==i&&o.isPropagationStopped())break e;Fr(o,u,s),i=l}}}if(Me)throw e=Ve,Me=!1,Ve=null,e}function Vr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Kt(t)){case 1:var o=$t;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===o||8===u.nodeType&&u.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==u;){if(null===(a=bo(u)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}u=u.parentNode}}r=r.return}Ie((function(){var r=i,o=_e(n),a=[];e:{var u=Nr.get(e);if(void 0!==u){var l=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":s="focus",l=yn;break;case"focusout":s="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cn;break;case kr:case Pr:case Tr:l=vn;break;case Cr:l=Nn;break;case"scroll":l=pn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,p=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=je(h,p))&&c.push($r(h,m,d))),f)break;h=h.return}0<c.length&&(u=new l(u,s,null,n,o),a.push({event:u,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[mo])&&(l||u)&&(u=o.window===o?o:(u=o.ownerDocument)?u.defaultView||u.parentWindow:window,l?(l=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(f=qe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(l=null,s=r),l!==s)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==l?u:_o(l),d=null==s?u:_o(s),(u=new c(m,h+"leave",l,n,o)).target=f,u.relatedTarget=d,m=null,bo(o)===r&&((c=new c(p,h+"enter",s,n,o)).target=d,c.relatedTarget=f,m=c),f=m,l&&s)e:{for(p=s,h=0,d=c=l;d;d=Yr(d))h++;for(d=0,m=p;m;m=Yr(m))d++;for(;0<h-d;)c=Yr(c),h--;for(;0<d-h;)p=Yr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Yr(c),p=Yr(p)}c=null}else c=null;null!==l&&Wr(a,u,l,c,!1),null!==s&&null!==f&&Wr(a,f,s,c,!0)}if("select"===(l=(u=r?_o(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===l&&"file"===u.type)var y=Kn;else if(Hn(u))if(Xn)y=ar;else{y=or;var v=rr}else(l=u.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ir);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ee(u,"number",u.value)),v=r?_o(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(g=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,qn=!0)),0<(v=Gr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Un(n)))&&(b.data=g))),(g=An?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Vn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Gr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Mr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift($r(e,i,o)),null!=(i=je(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var u=n,l=u.alternate,s=u.stateNode;if(null!==l&&l===r)break;5===u.tag&&null!==s&&(u=s,o?null!=(l=je(n,i))&&a.unshift($r(n,l,u)):o||null!=(l=je(n,i))&&a.push($r(n,l,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(uo)}:ro;function uo(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[ho]||null}var xo=[],So=-1;function Oo(e){return{current:e}}function ko(e){0>So||(e.current=xo[So],xo[So]=null,So--)}function Po(e,t){So++,xo[So]=e.current,e.current=t}var To={},Co=Oo(To),No=Oo(!1),Io=To;function jo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=e.childContextTypes}function Do(){ko(No),ko(Co)}function Ro(e,t,n){if(Co.current!==To)throw Error(i(168));Po(Co,t),Po(No,n)}function Ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,B(e)||"Unknown",o));return F({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Io=Co.current,Po(Co,e),Po(No,No.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ao(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,ko(No),ko(Co),Po(Co,e)):ko(No),Po(No,n)}var Vo=null,zo=!1,Uo=!1;function qo(e){null===Vo?Vo=[e]:Vo.push(e)}function Bo(){if(!Uo&&null!==Vo){Uo=!0;var e=0,t=bt;try{var n=Vo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Vo=null,zo=!1}catch(t){throw null!==Vo&&(Vo=Vo.slice(e+1)),Ye(Ze,Bo),t}finally{bt=t,Uo=!1}}return null}var Ho=[],$o=0,Go=null,Yo=0,Wo=[],Qo=0,Ko=null,Xo=1,Jo="";function Zo(e,t){Ho[$o++]=Yo,Ho[$o++]=Go,Go=e,Yo=t}function ei(e,t,n){Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Ko=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Ho[--$o],Ho[$o]=null,Yo=Ho[--$o],Ho[$o]=null;for(;e===Ko;)Ko=Wo[--Qo],Wo[Qo]=null,Jo=Wo[--Qo],Wo[Qo]=null,Xo=Wo[--Qo],Wo[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function ui(e,t){var n=js(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=js(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&li(e,t)?ui(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw di(),Error(i(418));for(;t;)ui(e,t),t=so(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function di(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Oo(null),bi=null,wi=null,_i=null;function Ei(){_i=wi=bi=null}function xi(e){var t=gi.current;ko(gi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){bi=e,_i=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wu=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Ti(e){null===Pi?Pi=[e]:Pi.push(e)}function Ci(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Cl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function Ai(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var l=u,s=l.next;l.next=null,null===a?i=s:a.next=s,a=l;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=l)}if(null!==i){var f=o.baseState;for(a=0,c=s=l=null,u=i;;){var p=u.lane,d=u.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(p=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(d,f,p):h))break e;f=F({},f,p);break e;case 2:Ii=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=d,l=f):c=c.next=d,a|=p;if(null===(u=u.next)){if(null===(u=o.shared.pending))break;u=(p=u).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(l=f),o.baseState=l,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Fl|=a,e.lanes=a,e.memoizedState=f}}function Vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var zi=(new r.Component).refs;function Ui(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var qi={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Di(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Ai(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Ai(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),o=Di(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(e,o,r))&&(rs(t,e,r,n),Ai(t,e,r))}};function Bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=ki(i):(o=Lo(t)?Io:Co.current,i=(r=null!=(r=t.contextTypes))?jo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function $i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qi.enqueueReplaceState(t,t.state,null)}function Gi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=zi,ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ki(i):(i=Lo(t)?Io:Co.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ui(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&qi.enqueueReplaceState(o,o.state,null),Mi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Wi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ds(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===x?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===j&&Qi(i)===t.type)?((r=o(t,n.props)).ref=Yi(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=Yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=As(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case E:return(t=Vs(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=As(t,e.mode,n,null)).return=e,t;Wi(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?s(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case j:return d(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:f(e,t,n,r,null);Wi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,o,null);Wi(t,r)}return null}function m(o,i,u,l){for(var s=null,c=null,f=i,m=i=0,y=null;null!==f&&m<u.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=d(o,f,u[m],l);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v,f=y}if(m===u.length)return n(o,f),ii&&Zo(o,m),s;if(null===f){for(;m<u.length;m++)null!==(f=p(o,u[m],l))&&(i=a(f,i,m),null===c?s=f:c.sibling=f,c=f);return ii&&Zo(o,m),s}for(f=r(o,f);m<u.length;m++)null!==(y=h(f,o,m,u[m],l))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),s}function y(o,u,l,s){var c=R(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,m=u,y=u=0,v=null,g=l.next();null!==m&&!g.done;y++,g=l.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=d(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Zo(o,y),c;if(null===m){for(;!g.done;y++,g=l.next())null!==(g=p(o,g.value,s))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return ii&&Zo(o,y),c}for(m=r(o,m);!g.done;y++,g=l.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,y),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===j&&Qi(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=As(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Rs(a.type,a.key,a.props,null,r.mode,l)).ref=Yi(r,i,a),l.return=r,r=l)}return u(r);case E:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Vs(a,r.mode,l)).return=r,r=i}return u(r);case j:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(R(a))return y(r,i,a,l);Wi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Ms(a,r.mode,l)).return=r,r=i),u(r)):n(r,i)}}var Xi=Ki(!0),Ji=Ki(!1),Zi={},ea=Oo(Zi),ta=Oo(Zi),na=Oo(Zi);function ra(e){if(e===Zi)throw Error(i(174));return e}function oa(e,t){switch(Po(na,t),Po(ta,e),Po(ea,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(ea),Po(ea,t)}function ia(){ko(ea),ko(ta),ko(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Po(ta,e),Po(ea,n))}function ua(e){ta.current===e&&(ko(ea),ko(ta))}var la=Oo(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var pa=w.ReactCurrentDispatcher,da=w.ReactCurrentBatchConfig,ha=0,ma=null,ya=null,va=null,ga=!1,ba=!1,wa=0,_a=0;function Ea(){throw Error(i(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pa.current=null===e||null===e.memoizedState?uu:lu,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,va=ya=null,t.updateQueue=null,pa.current=su,e=n(r,o)}while(ba)}if(pa.current=au,t=null!==ya&&null!==ya.next,ha=0,va=ya=ma=null,ga=!1,t)throw Error(i(300));return e}function Oa(){var e=0!==wa;return wa=0,e}function ka(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Pa(){if(null===ya){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ya=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ta(e,t){return"function"==typeof t?t(e):t}function Ca(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ya,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=u=null,s=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=p,u=r):s=s.next=p,ma.lanes|=f,Fl|=f}c=c.next}while(null!==c&&c!==a);null===s?u=r:s.next=l,ur(r,t.memoizedState)||(wu=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Fl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Na(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);ur(a,t.memoizedState)||(wu=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ia(){}function ja(e,t){var n=ma,r=Pa(),o=t(),a=!ur(r.memoizedState,o);if(a&&(r.memoizedState=o,wu=!0),r=r.queue,Ha(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Va(9,Da.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(i(349));0!=(30&ha)||La(n,t,o)}return o}function La(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Da(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Fa(e)}function Ra(e,t,n){return n((function(){Aa(t)&&Fa(e)}))}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(e){return!0}}function Fa(e){var t=Ni(e,1);null!==t&&rs(t,e,1,-1)}function Ma(e){var t=ka();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=nu.bind(null,ma,e),[t.memoizedState,e]}function Va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Pa().memoizedState}function Ua(e,t,n,r){var o=ka();ma.flags|=e,o.memoizedState=Va(1|t,n,void 0,void 0===r?null:r)}function qa(e,t,n,r){var o=Pa();r=void 0===r?null:r;var i=void 0;if(null!==ya){var a=ya.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Va(t,n,i,r))}ma.flags|=e,o.memoizedState=Va(1|t,n,i,r)}function Ba(e,t){return Ua(8390656,8,e,t)}function Ha(e,t){return qa(2048,8,e,t)}function $a(e,t){return qa(4,2,e,t)}function Ga(e,t){return qa(4,4,e,t)}function Ya(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!=n?n.concat([e]):null,qa(4,4,Ya.bind(null,t,e),n)}function Qa(){}function Ka(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,wu=!0),e.memoizedState=n):(ur(n,t)||(n=mt(),ma.lanes|=n,Fl|=n,e.baseState=!0),t)}function Za(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{bt=n,da.transition=r}}function eu(){return Pa().memoizedState}function tu(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ru(e)?ou(t,n):null!==(n=Ci(e,t,n,r))&&(rs(n,e,r,ts()),iu(n,t,r))}function nu(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(e))ou(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.hasEagerState=!0,o.eagerState=u,ur(u,a)){var l=t.interleaved;return null===l?(o.next=o,Ti(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ci(e,t,o,r))&&(rs(n,e,r,o=ts()),iu(n,t,r))}}function ru(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function ou(e,t){ba=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iu(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var au={readContext:ki,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},uu={readContext:ki,useCallback:function(e,t){return ka().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=ka();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ka();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tu.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ka().memoizedState=e},useState:Ma,useDebugValue:Qa,useDeferredValue:function(e){return ka().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=Za.bind(null,e[1]),ka().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=ka();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!=(30&ha)||La(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ba(Ra.bind(null,r,a,e),[e]),r.flags|=2048,Va(9,Da.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ka(),t=Nl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_a++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lu={readContext:ki,useCallback:Ka,useContext:ki,useEffect:Ha,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Ga,useMemo:Xa,useReducer:Ca,useRef:za,useState:function(){return Ca(Ta)},useDebugValue:Qa,useDeferredValue:function(e){return Ja(Pa(),ya.memoizedState,e)},useTransition:function(){return[Ca(Ta)[0],Pa().memoizedState]},useMutableSource:Ia,useSyncExternalStore:ja,useId:eu,unstable_isNewReconciler:!1},su={readContext:ki,useCallback:Ka,useContext:ki,useEffect:Ha,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Ga,useMemo:Xa,useReducer:Na,useRef:za,useState:function(){return Na(Ta)},useDebugValue:Qa,useDeferredValue:function(e){var t=Pa();return null===ya?t.memoizedState=e:Ja(t,ya.memoizedState,e)},useTransition:function(){return[Na(Ta)[0],Pa().memoizedState]},useMutableSource:Ia,useSyncExternalStore:ja,useId:eu,unstable_isNewReconciler:!1};function cu(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fu(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pu(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var du="function"==typeof WeakMap?WeakMap:Map;function hu(e,t,n){(n=Di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Gl=r),pu(0,t)},n}function mu(e,t,n){(n=Di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pu(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){pu(0,t),"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new du;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ks.bind(null,e,t,n),t.then(e,e))}function vu(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gu(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Di(-1,1)).tag=2,Ri(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bu=w.ReactCurrentOwner,wu=!1;function _u(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Xi(t,e.child,n,r)}function Eu(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=Sa(e,t,n,r,i,o),n=Oa(),null===e||wu?(ii&&n&&ti(t),t.flags|=1,_u(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$u(e,t,o))}function xu(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ls(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Su(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return $u(e,t,o)}return t.flags|=1,(e=Ds(i,r)).ref=t.ref,e.return=t,t.child=e}function Su(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(wu=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,$u(e,t,o);0!=(131072&e.flags)&&(wu=!0)}}return Pu(e,t,n,r,o)}function Ou(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Dl,Ll),Ll|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Dl,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Dl,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Dl,Ll),Ll|=r;return _u(e,t,o,n),t.child}function ku(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pu(e,t,n,r,o){var i=Lo(n)?Io:Co.current;return i=jo(t,i),Oi(t,o),n=Sa(e,t,n,r,i,o),r=Oa(),null===e||wu?(ii&&r&&ti(t),t.flags|=1,_u(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$u(e,t,o))}function Tu(e,t,n,r,o){if(Lo(n)){var i=!0;Fo(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Hu(e,t),Hi(t,n,r),Gi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var l=a.context,s=n.contextType;s="object"==typeof s&&null!==s?ki(s):jo(t,s=Lo(n)?Io:Co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&$i(t,a,r,s),Ii=!1;var p=t.memoizedState;a.state=p,Mi(t,r,a,o),l=t.memoizedState,u!==r||p!==l||No.current||Ii?("function"==typeof c&&(Ui(t,n,c,r),l=t.memoizedState),(u=Ii||Bi(t,n,u,r,p,l,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Li(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:vi(t.type,u),a.props=s,f=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ki(l):jo(t,l=Lo(n)?Io:Co.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==f||p!==l)&&$i(t,a,r,l),Ii=!1,p=t.memoizedState,a.state=p,Mi(t,r,a,o);var h=t.memoizedState;u!==f||p!==h||No.current||Ii?("function"==typeof d&&(Ui(t,n,d,r),h=t.memoizedState),(s=Ii||Bi(t,n,s,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=s):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cu(e,t,n,r,i,o)}function Cu(e,t,n,r,o,i){ku(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Mo(t,n,!1),$u(e,t,i);r=t.stateNode,bu.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,u,i)):_u(e,t,u,i),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Nu(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),oa(e,t.containerInfo)}function Iu(e,t,n,r,o){return hi(),mi(o),t.flags|=256,_u(e,t,n,r),t.child}var ju,Lu,Du,Ru,Au={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mu(e,t,n){var r,o=t.pendingProps,a=la.current,u=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(u=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(la,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,u?(o=t.mode,u=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==u?(u.childLanes=0,u.pendingProps=l):u=Fs(l,o,0,null),e=As(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Fu(n),t.memoizedState=Au,e):Vu(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,u){if(n)return 256&t.flags?(t.flags&=-257,zu(e,t,u,r=fu(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Fs({mode:"visible",children:r.children},o,0,null),(a=As(a,o,u,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Xi(t,e.child,null,u),t.child.memoizedState=Fu(u),t.memoizedState=Au,a);if(0==(1&t.mode))return zu(e,t,u,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zu(e,t,u,r=fu(a=Error(i(419)),r,void 0))}if(l=0!=(u&e.childLanes),wu||l){if(null!==(r=Nl)){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|u))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ni(e,o),rs(r,e,o,-1))}return ys(),zu(e,t,u,r=fu(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ts.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Wo[Qo++]=Xo,Wo[Qo++]=Jo,Wo[Qo++]=Ko,Xo=e.id,Jo=e.overflow,Ko=t),(t=Vu(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(u){u=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ds(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?u=Ds(r,u):(u=As(u,l,n,null)).flags|=2,u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,l=null===(l=e.child.memoizedState)?Fu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},u.memoizedState=l,u.childLanes=e.childLanes&~n,t.memoizedState=Au,o}return e=(u=e.child).sibling,o=Ds(u,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Vu(e,t){return(t=Fs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zu(e,t,n,r){return null!==r&&mi(r),Xi(t,e.child,null,n),(e=Vu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Uu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function qu(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bu(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_u(e,t,r.children,n),0!=(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Uu(e,n,t);else if(19===e.tag)Uu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(la,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qu(t,!0,n,null,i);break;case"together":qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hu(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $u(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ds(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ds(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gu(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wu(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yu(t),null;case 1:case 17:return Lo(t.type)&&Do(),Yu(t),null;case 3:return r=t.stateNode,ia(),ko(No),ko(Co),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(us(ai),ai=null))),Lu(e,t),Yu(t),null;case 5:ua(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Du(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Yu(t),null}if(e=ra(ea.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":K(r,a),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Vr("invalid",r);break;case"textarea":oe(r,a),Vr("invalid",r)}for(var l in ge(n,a),o=null,a)if(a.hasOwnProperty(l)){var s=a[l];"children"===l?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",""+s]):u.hasOwnProperty(l)&&null!=s&&"onScroll"===l&&Vr("scroll",r)}switch(n){case"input":G(r),Z(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,ju(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),o=r;break;case"iframe":case"object":case"embed":Vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Vr(Rr[o],e);o=r;break;case"source":Vr("error",e),o=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),o=r;break;case"details":Vr("toggle",e),o=r;break;case"input":K(e,r),o=Q(e,r),Vr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Vr("invalid",e)}for(a in ge(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Vr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Yu(t),null;case 6:if(e&&null!=t.stateNode)Ru(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Yu(t),null;case 13:if(ko(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))di(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Yu(t),a=!1}else null!==ai&&(us(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Rl&&(Rl=3):ys())),null!==t.updateQueue&&(t.flags|=4),Yu(t),null);case 4:return ia(),Lu(e,t),null===e&&qr(t.stateNode.containerInfo),Yu(t),null;case 10:return xi(t.type._context),Yu(t),null;case 19:if(ko(la),null===(a=t.memoizedState))return Yu(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Gu(a,!1);else{if(0!==Rl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=sa(e))){for(t.flags|=128,Gu(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Bl&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sa(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Yu(t),null}else 2*Xe()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Gu(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=la.current,Po(la,r?1&n|2:1&n),t):(Yu(t),null);case 22:case 23:return ps(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ll)&&(Yu(t),6&t.subtreeFlags&&(t.flags|=8192)):Yu(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Qu(e,t){switch(ni(t),t.tag){case 1:return Lo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),ko(No),ko(Co),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ua(t),null;case 13:if(ko(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(la),null;case 4:return ia(),null;case 10:return xi(t.type._context),null;case 22:case 23:return ps(),null;default:return null}}ju=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Lu=function(){},Du=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(u.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(u.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Vr("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ru=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ku=!1,Xu=!1,Ju="function"==typeof WeakSet?WeakSet:Set,Zu=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Os(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Os(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ul(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ul(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var fl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xu||el(n,t);case 6:var r=fl,o=pl;fl=null,dl(e,t,n),pl=o,null!==(fl=r)&&(pl?(e=fl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fl.removeChild(n.stateNode));break;case 18:null!==fl&&(pl?(e=fl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(fl,n.stateNode));break;case 4:r=fl,o=pl,fl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),fl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Xu&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&tl(n,t,a),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Xu&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Os(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Xu=(r=Xu)||null!==n.memoizedState,dl(e,t,n),Xu=r):dl(e,t,n);break;default:dl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ju),t.forEach((function(t){var r=Cs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,u=t,l=u;e:for(;null!==l;){switch(l.tag){case 5:fl=l.stateNode,pl=!1;break e;case 3:case 4:fl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===fl)throw Error(i(160));hl(a,u,o),fl=null,pl=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Os(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yl(t,e),gl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Os(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Os(e,e.return,t)}}break;case 1:yl(t,e),gl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(yl(t,e),gl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Os(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,u=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(o,a),be(l,u);var c=be(l,a);for(u=0;u<s.length;u+=2){var f=s[u],p=s[u+1];"style"===f?ye(o,p):"dangerouslySetInnerHTML"===f?fe(o,p):"children"===f?pe(o,p):b(o,f,p,c)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Os(e,e.return,t)}}break;case 6:if(yl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Os(e,e.return,t)}}break;case 3:if(yl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){Os(e,e.return,t)}break;case 4:default:yl(t,e),gl(e);break;case 13:yl(t,e),gl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(ql=Xe())),4&r&&ml(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xu=(c=Xu)||f,yl(t,e),Xu=c):yl(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Zu=e,f=e.child;null!==f;){for(p=Zu=f;null!==Zu;){switch(h=(d=Zu).child,d.tag){case 0:case 11:case 14:case 15:rl(4,d,d.return);break;case 1:el(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Os(r,n,e)}}break;case 5:el(d,d.return);break;case 22:if(null!==d.memoizedState){El(p);continue}}null!==h?(h.return=d,Zu=h):El(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,u=null!=(s=p.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=me("display",u))}catch(t){Os(e,e.return,t)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){Os(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:yl(t,e),gl(e),4&r&&ml(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ul(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;sl(e,ll(e),a);break;default:throw Error(i(161))}}catch(t){Os(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zu=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!=(1&e.mode);null!==Zu;){var o=Zu,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ku;if(!a){var u=o.alternate,l=null!==u&&null!==u.memoizedState||Xu;u=Ku;var s=Xu;if(Ku=a,(Xu=l)&&!s)for(Zu=o;null!==Zu;)l=(a=Zu).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Zu=l):xl(o);for(;null!==i;)Zu=i,wl(i,t,n),i=i.sibling;Zu=o,Ku=u,Xu=s}_l(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zu=i):_l(e)}}function _l(e){for(;null!==Zu;){var t=Zu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xu||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xu)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vi(t,a,r);break;case 3:var u=t.updateQueue;if(null!==u){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vi(t,u,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(i(163))}Xu||512&t.flags&&il(t)}catch(e){Os(t,t.return,e)}}if(t===e){Zu=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zu=n;break}Zu=t.return}}function El(e){for(;null!==Zu;){var t=Zu;if(t===e){Zu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zu=n;break}Zu=t.return}}function xl(e){for(;null!==Zu;){var t=Zu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Os(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Os(t,o,e)}}var i=t.return;try{il(t)}catch(e){Os(t,i,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Os(t,a,e)}}}catch(e){Os(t,t.return,e)}if(t===e){Zu=null;break}var u=t.sibling;if(null!==u){u.return=t.return,Zu=u;break}Zu=t.return}}var Sl,Ol=Math.ceil,kl=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,Tl=w.ReactCurrentBatchConfig,Cl=0,Nl=null,Il=null,jl=0,Ll=0,Dl=Oo(0),Rl=0,Al=null,Fl=0,Ml=0,Vl=0,zl=null,Ul=null,ql=0,Bl=1/0,Hl=null,$l=!1,Gl=null,Yl=null,Wl=!1,Ql=null,Kl=0,Xl=0,Jl=null,Zl=-1,es=0;function ts(){return 0!=(6&Cl)?Xe():-1!==Zl?Zl:Zl=Xe()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Cl)&&0!==jl?jl&-jl:null!==yi.transition?(0===es&&(es=mt()),es):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function rs(e,t,n,r){if(50<Xl)throw Xl=0,Jl=null,Error(i(185));vt(e,n,r),0!=(2&Cl)&&e===Nl||(e===Nl&&(0==(2&Cl)&&(Ml|=n),4===Rl&&ls(e,jl)),os(e,r),1===n&&0===Cl&&0==(1&t.mode)&&(Bl=Xe()+500,zo&&Bo()))}function os(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),u=1<<a,l=o[a];-1===l?0!=(u&n)&&0==(u&r)||(o[a]=dt(u,t)):l<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=pt(e,e===Nl?jl:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){zo=!0,qo(e)}(ss.bind(null,e)):qo(ss.bind(null,e)),ao((function(){0==(6&Cl)&&Bo()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ns(n,is.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function is(e,t){if(Zl=-1,es=0,0!=(6&Cl))throw Error(i(327));var n=e.callbackNode;if(xs()&&e.callbackNode!==n)return null;var r=pt(e,e===Nl?jl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Cl;Cl|=2;var a=ms();for(Nl===e&&jl===t||(Hl=null,Bl=Xe()+500,ds(e,t));;)try{bs();break}catch(t){hs(e,t)}Ei(),kl.current=a,Cl=o,null!==Il?t=0:(Nl=null,jl=0,t=Rl)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=as(e,o)),1===t)throw n=Al,ds(e,0),ls(e,r),os(e,Xe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ur(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vs(e,r))&&0!==(a=ht(e))&&(r=a,t=as(e,a)),1===t))throw n=Al,ds(e,0),ls(e,r),os(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Es(e,Ul,Hl);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=ql+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Es.bind(null,e,Ul,Hl),t);break}Es(e,Ul,Hl);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-at(r);a=1<<u,(u=t[u])>o&&(o=u),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ol(r/1960))-r)){e.timeoutHandle=ro(Es.bind(null,e,Ul,Hl),r);break}Es(e,Ul,Hl);break;default:throw Error(i(329))}}}return os(e,Xe()),e.callbackNode===n?is.bind(null,e):null}function as(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Ul,Ul=n,null!==t&&us(t)),e}function us(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function ls(e,t){for(t&=~Vl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(0!=(6&Cl))throw Error(i(327));xs();var t=pt(e,0);if(0==(1&t))return os(e,Xe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=as(e,r))}if(1===n)throw n=Al,ds(e,0),ls(e,t),os(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Es(e,Ul,Hl),os(e,Xe()),null}function cs(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Bl=Xe()+500,zo&&Bo())}}function fs(e){null!==Ql&&0===Ql.tag&&0==(6&Cl)&&xs();var t=Cl;Cl|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,0==(6&(Cl=t))&&Bo()}}function ps(){Ll=Dl.current,ko(Dl)}function ds(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:ia(),ko(No),ko(Co),fa();break;case 5:ua(r);break;case 4:ia();break;case 13:case 19:ko(la);break;case 10:xi(r.type._context);break;case 22:case 23:ps()}n=n.return}if(Nl=e,Il=e=Ds(e.current,null),jl=Ll=t,Rl=0,Al=null,Vl=Ml=Fl=0,Ul=zl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function hs(e,t){for(;;){var n=Il;try{if(Ei(),pa.current=au,ga){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ga=!1}if(ha=0,va=ya=ma=null,ba=!1,wa=0,Pl.current=null,null===n||null===n.return){Rl=1,Al=t,Il=null;break}e:{var a=e,u=n.return,l=n,s=t;if(t=jl,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=l,p=f.tag;if(0==(1&f.mode)&&(0===p||11===p||15===p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vu(u);if(null!==h){h.flags&=-257,gu(h,u,l,0,t),1&h.mode&&yu(a,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(s),t.updateQueue=y}else m.add(s);break e}if(0==(1&t)){yu(a,c,t),ys();break e}s=Error(i(426))}else if(ii&&1&l.mode){var v=vu(u);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),gu(v,u,l,0,t),mi(cu(s,l));break e}}a=s=cu(s,l),4!==Rl&&(Rl=2),null===zl?zl=[a]:zl.push(a),a=u;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,hu(0,s,t));break e;case 1:l=s;var g=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Yl||!Yl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,mu(a,l,t));break e}}a=a.return}while(null!==a)}_s(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function ms(){var e=kl.current;return kl.current=au,null===e?au:e}function ys(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Nl||0==(268435455&Fl)&&0==(268435455&Ml)||ls(Nl,jl)}function vs(e,t){var n=Cl;Cl|=2;var r=ms();for(Nl===e&&jl===t||(Hl=null,ds(e,t));;)try{gs();break}catch(t){hs(e,t)}if(Ei(),Cl=n,kl.current=r,null!==Il)throw Error(i(261));return Nl=null,jl=0,Rl}function gs(){for(;null!==Il;)ws(Il)}function bs(){for(;null!==Il&&!Qe();)ws(Il)}function ws(e){var t=Sl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?_s(e):Il=t,Pl.current=null}function _s(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wu(n,t,Ll)))return void(Il=n)}else{if(null!==(n=Qu(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Rl=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Rl&&(Rl=5)}function Es(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{xs()}while(null!==Ql);if(0!=(6&Cl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Il=Nl=null,jl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Ns(tt,(function(){return xs(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var u=bt;bt=1;var l=Cl;Cl|=4,Pl.current=null,function(e,t){if(eo=Ht,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var u=0,l=-1,s=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=u+o),p!==a||0!==r&&3!==p.nodeType||(s=u+r),3===p.nodeType&&(u+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===o&&(l=u),d===a&&++f===r&&(s=u),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Zu=t;null!==Zu;)if(e=(t=Zu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zu=e;else for(;null!==Zu;){t=Zu;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:vi(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Os(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zu=e;break}Zu=t.return}m=nl,nl=!1}(e,n),vl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),Cl=l,bt=u,Tl.transition=a}else e.current=n;if(Wl&&(Wl=!1,Ql=e,Kl=o),0===(a=e.pendingLanes)&&(Yl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),os(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if($l)throw $l=!1,e=Gl,Gl=null,e;0!=(1&Kl)&&0!==e.tag&&xs(),0!=(1&(a=e.pendingLanes))?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Bo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function xs(){if(null!==Ql){var e=wt(Kl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Kl=0,0!=(6&Cl))throw Error(i(331));var o=Cl;for(Cl|=4,Zu=e.current;null!==Zu;){var a=Zu,u=a.child;if(0!=(16&Zu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(Zu=c;null!==Zu;){var f=Zu;switch(f.tag){case 0:case 11:case 15:rl(8,f,a)}var p=f.child;if(null!==p)p.return=f,Zu=p;else for(;null!==Zu;){var d=(f=Zu).sibling,h=f.return;if(al(f),f===c){Zu=null;break}if(null!==d){d.return=h,Zu=d;break}Zu=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Zu=a}}if(0!=(2064&a.subtreeFlags)&&null!==u)u.return=a,Zu=u;else e:for(;null!==Zu;){if(0!=(2048&(a=Zu).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Zu=g;break e}Zu=a.return}}var b=e.current;for(Zu=b;null!==Zu;){var w=(u=Zu).child;if(0!=(2064&u.subtreeFlags)&&null!==w)w.return=u,Zu=w;else e:for(u=b;null!==Zu;){if(0!=(2048&(l=Zu).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Os(l,l.return,e)}if(l===u){Zu=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Zu=_;break e}Zu=l.return}}if(Cl=o,Bo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Ss(e,t,n){e=Ri(e,t=hu(0,t=cu(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),os(e,t))}function Os(e,t,n){if(3===e.tag)Ss(e,e,n);else for(;null!==t;){if(3===t.tag){Ss(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Ri(t,e=mu(t,e=cu(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),os(t,e));break}}t=t.return}}function ks(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(jl&n)===n&&(4===Rl||3===Rl&&(130023424&jl)===jl&&500>Xe()-ql?ds(e,0):Vl|=n),os(e,t)}function Ps(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Ni(e,t))&&(vt(e,t,n),os(e,n))}function Ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ps(e,n)}function Cs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ps(e,n)}function Ns(e,t){return Ye(e,t)}function Is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function js(e,t,n,r){return new Is(e,t,n,r)}function Ls(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ds(e,t){var n=e.alternate;return null===n?((n=js(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)Ls(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case x:return As(n.children,o,a,t);case S:u=8,o|=8;break;case O:return(e=js(12,n,t,2|o)).elementType=O,e.lanes=a,e;case C:return(e=js(13,n,t,o)).elementType=C,e.lanes=a,e;case N:return(e=js(19,n,t,o)).elementType=N,e.lanes=a,e;case L:return Fs(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:u=10;break e;case P:u=9;break e;case T:u=11;break e;case I:u=14;break e;case j:u=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=js(u,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function As(e,t,n,r){return(e=js(7,e,r,t)).lanes=n,e}function Fs(e,t,n,r){return(e=js(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=js(6,e,null,t)).lanes=n,e}function Vs(e,t,n){return(t=js(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Us(e,t,n,r,o,i,a,u,l){return e=new zs(e,t,n,u,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=js(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function qs(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Ao(e,n,t)}return t}function Bs(e,t,n,r,o,i,a,u,l){return(e=Us(n,r,!0,e,0,i,0,u,l)).context=qs(null),n=e.current,(i=Di(r=ts(),o=ns(n))).callback=null!=t?t:null,Ri(n,i,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Hs(e,t,n,r){var o=t.current,i=ts(),a=ns(o);return n=qs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Di(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ri(o,t,a))&&(rs(e,o,a,i),Ai(e,o,a)),a}function $s(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ys(e,t){Gs(e,t),(e=e.alternate)&&Gs(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)wu=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wu=!1,function(e,t,n){switch(t.tag){case 3:Nu(t),hi();break;case 5:aa(t);break;case 1:Lo(t.type)&&Fo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(gi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Mu(e,t,n):(Po(la,1&la.current),null!==(e=$u(e,t,n))?e.sibling:null);Po(la,1&la.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bu(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Ou(e,t,n)}return $u(e,t,n)}(e,t,n);wu=0!=(131072&e.flags)}else wu=!1,ii&&0!=(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hu(e,t),e=t.pendingProps;var o=jo(t,Co.current);Oi(t,n),o=Sa(null,t,r,e,o,n);var a=Oa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(r)?(a=!0,Fo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=qi,t.stateNode=o,o._reactInternals=t,Gi(t,r,e,n),t=Cu(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),_u(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hu(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ls(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(r),e=vi(r,e),o){case 0:t=Pu(null,t,r,e,n);break e;case 1:t=Tu(null,t,r,e,n);break e;case 11:t=Eu(null,t,r,e,n);break e;case 14:t=xu(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Pu(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Tu(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(Nu(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Li(e,t),Mi(t,r,null,n);var u=t.memoizedState;if(r=u.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Iu(e,t,r,n,o=cu(Error(i(423)),t));break e}if(r!==o){t=Iu(e,t,r,n,o=cu(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=$u(e,t,n);break e}_u(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,no(r,o)?u=null:null!==a&&no(r,a)&&(t.flags|=32),ku(e,t),_u(e,t,u,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Mu(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xi(t,null,r,n):_u(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Eu(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return _u(e,t,t.pendingProps,n),t.child;case 8:case 12:return _u(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,u=o.value,Po(gi,r._currentValue),r._currentValue=u,null!==a)if(ur(a.value,u)){if(a.children===o.children&&!No.current){t=$u(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){u=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Di(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Si(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)u=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(u=a.return))throw Error(i(341));u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),Si(u,n,t),u=a.sibling}else u=a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===t){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}_u(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=ki(o)),t.flags|=1,_u(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),xu(e,t,r,o=vi(r.type,o),n);case 15:return Su(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Hu(e,t),t.tag=1,Lo(r)?(e=!0,Fo(t)):e=!1,Oi(t,n),Hi(t,r,o),Gi(t,r,o,n),Cu(null,t,r,!0,e,n);case 19:return Bu(e,t,n);case 22:return Ou(e,t,n)}throw Error(i(156,t.tag))};var Ws="function"==typeof reportError?reportError:function(e){console.error(e)};function Qs(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var u=o;o=function(){var e=$s(a);u.call(e)}}Hs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=$s(a);i.call(e)}}var a=Bs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),fs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var u=r;r=function(){var e=$s(l);u.call(e)}}var l=Us(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=l,e[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),fs((function(){Hs(t,l,n,r)})),l}(n,t,e,o,r);return $s(a)}Ks.prototype.render=Qs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hs(e,t,null,null)},Ks.prototype.unmount=Qs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fs((function(){Hs(null,e,null,null)})),t[mo]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Ft(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),os(t,Xe()),0==(6&Cl)&&(Bl=Xe()+500,Bo()))}break;case 13:fs((function(){var t=Ni(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),Ys(e,1)}},Et=function(e){if(13===e.tag){var t=Ni(e,134217728);null!==t&&rs(t,e,134217728,ts()),Ys(e,134217728)}},xt=function(e){if(13===e.tag){var t=ns(e),n=Ni(e,t);null!==n&&rs(n,e,t,ts()),Ys(e,t)}},St=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cs,Ce=fs;var tc={usingClientEntryPoint:!1,Events:[wo,_o,Eo,ke,Pe,cs]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=Ws;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Us(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Qs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return fs(e)},t.hydrate=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",u=Ws;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(u=n.onRecoverableError)),t=Bs(t,null,e,1,null!=n?n:null,o,0,a,u),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ks(t)},t.render=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(i(40));return!!e._reactRootContainer&&(fs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:function(e,t,n){"use strict";var r=n(3935);t.s=r.createRoot,r.hydrateRoot},3935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case d:return e;default:switch(e=e&&e.$$typeof){case s:case p:case y:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===s},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===u},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},9864:function(e,t,n){"use strict";e.exports=n(9921)},5251:function(e,t,n){"use strict";var r=n(7294),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:u.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},2408:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,u=null;if(null!=t)for(o in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:u,props:i,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var l=!1;if(null===e)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,_(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",_(e))for(var s=0;s<e.length;s++){var c=i+T(u=e[s],s);l+=C(u,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(u=e.next()).done;)l+=C(u=u.value,t,o,c=i+T(u,s++),a);else if("object"===u)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},L={transition:null},D={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:L,ReactCurrentOwner:x};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)E.call(t,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:u}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.2.0"},7294:function(e,t,n){"use strict";e.exports=n(2408)},5893:function(e,t,n){"use strict";e.exports=n(5251)},53:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var u=2*(r+1)-1,l=e[u],s=u+1,c=e[s];if(0>i(l,n))s<o&&0>i(c,l)?(e[r]=c,e[s]=n,r=s):(e[r]=l,e[u]=n,r=u);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var s=[],c=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function _(e){if(y=!1,w(e),!m)if(null!==r(s))m=!0,L(E);else{var t=r(c);null!==t&&D(_,t.startTime-e)}}function E(e,n){m=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=d;try{for(w(n),p=r(s);null!==p&&(!(p.expirationTime>n)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var u=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?p.callback=u:p===r(s)&&o(s),w(n)}else o(s);p=r(s)}if(null!==p)var l=!0;else{var f=r(c);null!==f&&D(_,f.startTime-n),l=!1}return l}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,O=null,k=-1,P=5,T=-1;function C(){return!(t.unstable_now()-T<P)}function N(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?x():(S=!1,O=null)}}else S=!1}if("function"==typeof b)x=function(){b(N)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,j=I.port2;I.port1.onmessage=N,x=function(){j.postMessage(null)}}else x=function(){v(N,0)};function L(e){O=e,S||(S=!0,x())}function D(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(y?(g(k),k=-1):y=!0,D(_,i-a))):(e.sortIndex=u,n(s,e),m||h||(m=!0,L(E))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},4153:function(e){const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},r,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let u=(a=t[3])&&-1!==a.indexOf(".")?("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1)),a):a;const l=t[4]||t[6];if(!o.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!o.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),a=""+t;return-1!==a.search(/[eE]/)||l?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===a&&""===u||a===u||n&&a==="-"+u?t:e:r?u===a||n+u===a?t:e:i===a||i===n+a?t:e}}return e}var a}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=o(5893),t=o(3804),n=o.n(t);function r(e){return function(t,n){return n.mode===e}}var i=r("onBoot"),a=r("renderPage"),u=r("renderConfigScreen"),l=r("renderModal"),s=r("renderItemFormSidebarPanel"),c=r("renderItemFormSidebar"),f=r("renderItemFormOutlet"),p=r("renderFieldExtension"),d=r("renderManualFieldExtensionConfigScreen"),h=r("renderAssetSource"),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function v(e){return function(t,n){if(!e)return{};for(var r={},o=0,i=t;o<i.length;o++){var a=i[o],u=n.itemTypes[a.relationships.item_type.data.id];r[a.id]=e(a,m(m({},n),{itemType:u}))}return r}}var g=function(e){var t=null,n=function(n){var r=void 0===n?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height):n;r!==t&&(e.setHeight(r),t=r)},r=null,o=null,i=function(){return n()};return{updateHeight:n,startAutoResizer:function(){n(),r||(r=new ResizeObserver(i)).observe(document.documentElement),o||(o=new MutationObserver(i)).observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stopAutoResizer:function(){r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null)}}},b=o(7294),w=o.t(b,2),_=JSON.parse('{"A":"_themeVariables_ovgoa_1","J":"_canvas_ovgoa_68"}'),E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)};function x(e){return e!=e.toLowerCase()&&(e=e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))),e}function S(e){return Object.entries(e.theme).reduce((function(e,t){var n,r,o=t[0],i=t[1];return E(E({},e),((n={})["--".concat(x(o))]=i,n["--".concat(x("".concat(o,"RgbComponents")))]=(null===(r=i.match(/rgb\((\d+, \d+, \d+)\)/))||void 0===r?void 0:r[1])||void 0,n))}),{padding:e.bodyPadding.map((function(e){return"".concat(e,"px")})).join(" ")})}var O=o(4184),k=o.n(O),P=(0,b.createContext)(null);function T(e){var t=e.ctx,n=e.children,r=e.noAutoResizer,o=t.mode;return(0,b.useEffect)((function(){if(!["renderPage","itemFormSidebar"].includes(o)&&!r){var e=t;return e.startAutoResizer(),function(){e.stopAutoResizer()}}}),[o,r]),b.createElement(P.Provider,{value:t},b.createElement("div",{className:k()(_.A,_.J),style:S(t)},n))}var C=JSON.parse('{"Form":"_Form_5qspp_1","Form__item":"_Form__item_5qspp_5","Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"}'),N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},N.apply(this,arguments)},I=function(e){var t=e.children,n=e.className,r=e.onSubmit,o=e.spacing,i=void 0===o?"default":o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","onSubmit","spacing"]),u=k()(C.Form,n),l=k()(C.Form__item,C["Form__item--".concat(i)]),s=(0,b.useCallback)((function(e){e.preventDefault(),r&&r(e)}),[r]);return b.createElement("form",N({className:u,onSubmit:s},a),b.Children.map(t,(function(e){return e?b.createElement("div",{className:l},e):null})))},j=JSON.parse('{"N":"_FieldGroup_uz9ju_1","k":"_FieldGroup__item_uz9ju_5"}'),L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},L.apply(this,arguments)},D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function R(e){var t=e.children,n=e.className,r=D(e,["children","className"]),o=k()(j.N,n);return b.createElement("div",L({},r,{className:o}),b.Children.map(t,(function(e){return b.createElement("div",{className:j.k},e)})))}var A=JSON.parse('{"Xv":"_formLabel_tcjrv_1","oD":"_formLabel__code_tcjrv_8","Ml":"_formLabel--error_tcjrv_14","G3":"_formLabel__label_tcjrv_18","lw":"_formLabel__required_tcjrv_30"}'),F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},F.apply(this,arguments)},M=function(e){var t,n=e.children,r=e.className,o=e.htmlFor,i=e.code,a=e.required,u=void 0!==a&&a,l=e.error,s=void 0!==l&&l,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","htmlFor","code","required","error"]),f=k()(A.Xv,r,((t={})[A.Ml]=s,t));return b.createElement("label",F({className:f,htmlFor:o},c),b.createElement("span",{className:A.G3},n,u&&b.createElement("span",{className:A.lw},"*")),i&&b.createElement("span",{className:A.oD},i))},V=JSON.parse('{"e":"_fieldError_qi0xk_1"}');function z(e){var t=e.children;return b.createElement("div",{className:V.e},t)}var U=JSON.parse('{"y":"_fieldHint_1avon_1"}');function q(e){var t=e.children;return b.createElement("div",{className:U.y},t)}var B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B.apply(this,arguments)};function H(e){var t=e.id,n=e.label,r=e.hint,o=e.error,i=e.required,a=e.formLabelProps,u=e.children;return b.createElement(b.Fragment,null,b.createElement(M,B({},a,{htmlFor:t,required:i,error:!!o}),n),u,o&&b.createElement(z,null,o),r&&b.createElement(q,null,r))}function $(e){return $="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 G(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$(t)?t:String(t)}function Y(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ee=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G(r.key),r)}}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ae(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ue=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),le=Math.abs,se=String.fromCharCode,ce=Object.assign;function fe(e){return e.trim()}function pe(e,t,n){return e.replace(t,n)}function de(e,t){return e.indexOf(t)}function he(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ye(e){return e.length}function ve(e){return e.length}function ge(e,t){return t.push(e),e}var be=1,we=1,_e=0,Ee=0,xe=0,Se="";function Oe(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:be,column:we,length:a,return:""}}function ke(e,t){return ce(Oe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pe(){return xe=Ee>0?he(Se,--Ee):0,we--,10===xe&&(we=1,be--),xe}function Te(){return xe=Ee<_e?he(Se,Ee++):0,we++,10===xe&&(we=1,be++),xe}function Ce(){return he(Se,Ee)}function Ne(){return Ee}function Ie(e,t){return me(Se,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Le(e){return be=we=1,_e=ye(Se=e),Ee=0,[]}function De(e){return Se="",e}function Re(e){return fe(Ie(Ee-1,Me(91===e?e+2:40===e?e+1:e)))}function Ae(e){for(;(xe=Ce())&&xe<33;)Te();return je(e)>2||je(xe)>3?"":" "}function Fe(e,t){for(;--t&&Te()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Ie(e,Ne()+(t<6&&32==Ce()&&32==Te()))}function Me(e){for(;Te();)switch(xe){case e:return Ee;case 34:case 39:34!==e&&39!==e&&Me(xe);break;case 40:41===e&&Me(e);break;case 92:Te()}return Ee}function Ve(e,t){for(;Te()&&e+xe!==57&&(e+xe!==84||47!==Ce()););return"/*"+Ie(t,Ee-1)+"*"+se(47===e?e:Te())}function ze(e){for(;!je(Ce());)Te();return Ie(e,Ee)}var Ue="-ms-",qe="-moz-",Be="-webkit-",He="comm",$e="rule",Ge="decl",Ye="@keyframes";function We(e,t){for(var n="",r=ve(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ge:return e.return=e.return||e.value;case He:return"";case Ye:return e.return=e.value+"{"+We(e.children,r)+"}";case $e:e.value=e.props.join(",")}return ye(n=We(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ke(e){return De(Xe("",null,null,null,[""],e=Le(e),0,[0],e))}function Xe(e,t,n,r,o,i,a,u,l){for(var s=0,c=0,f=a,p=0,d=0,h=0,m=1,y=1,v=1,g=0,b="",w=o,_=i,E=r,x=b;y;)switch(h=g,g=Te()){case 40:if(108!=h&&58==he(x,f-1)){-1!=de(x+=pe(Re(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=Re(g);break;case 9:case 10:case 13:case 32:x+=Ae(h);break;case 92:x+=Fe(Ne()-1,7);continue;case 47:switch(Ce()){case 42:case 47:ge(Ze(Ve(Te(),Ne()),t,n),l);break;default:x+="/"}break;case 123*m:u[s++]=ye(x)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:-1==v&&(x=pe(x,/\f/g,"")),d>0&&ye(x)-f&&ge(d>32?et(x+";",r,n,f-1):et(pe(x," ","")+";",r,n,f-2),l);break;case 59:x+=";";default:if(ge(E=Je(x,t,n,s,c,o,u,b,w=[],_=[],f),i),123===g)if(0===c)Xe(x,t,E,E,w,i,f,u,_);else switch(99===p&&110===he(x,3)?100:p){case 100:case 108:case 109:case 115:Xe(e,E,E,r&&ge(Je(e,E,E,0,0,o,u,b,o,w=[],f),_),o,_,f,u,r?w:_);break;default:Xe(x,E,E,E,[""],_,0,u,_)}}s=c=d=0,m=v=1,b=x="",f=a;break;case 58:f=1+ye(x),d=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Pe())continue;switch(x+=se(g),g*m){case 38:v=c>0?1:(x+="\f",-1);break;case 44:u[s++]=(ye(x)-1)*v,v=1;break;case 64:45===Ce()&&(x+=Re(Te())),p=Ce(),c=f=ye(b=x+=ze(Ne())),g++;break;case 45:45===h&&2==ye(x)&&(m=0)}}return i}function Je(e,t,n,r,o,i,a,u,l,s,c){for(var f=o-1,p=0===o?i:[""],d=ve(p),h=0,m=0,y=0;h<r;++h)for(var v=0,g=me(e,f+1,f=le(m=a[h])),b=e;v<d;++v)(b=fe(m>0?p[v]+" "+g:pe(g,/&\f/g,p[v])))&&(l[y++]=b);return Oe(e,t,n,0===o?$e:u,l,s,c)}function Ze(e,t,n){return Oe(e,t,n,He,se(xe),me(e,2,-2),0)}function et(e,t,n,r){return Oe(e,t,n,Ge,me(e,0,r),me(e,r+1,-1),r)}var tt=function(e,t,n){for(var r=0,o=0;r=o,o=Ce(),38===r&&12===o&&(t[n]=1),!je(o);)Te();return Ie(e,Ee)},nt=new WeakMap,rt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nt.get(n))&&!r){nt.set(e,!0);for(var o=[],i=function(e,t){return De(function(e,t){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Ce()&&(t[n]=1),e[n]+=tt(Ee-1,t,n);break;case 2:e[n]+=Re(r);break;case 4:if(44===r){e[++n]=58===Ce()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=se(r)}}while(r=Te());return e}(Le(e),t))}(t,o),a=n.props,u=0,l=0;u<i.length;u++)for(var s=0;s<a.length;s++,l++)e.props[l]=o[u]?i[u].replace(/&\f/g,a[s]):a[s]+" "+i[u]}}},ot=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function it(e,t){switch(function(e,t){return 45^he(e,0)?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+qe+e+Ue+e+e;case 6828:case 4268:return Be+e+Ue+e+e;case 6165:return Be+e+Ue+"flex-"+e+e;case 5187:return Be+e+pe(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return Be+e+Ue+"flex-item-"+pe(e,/flex-|-self/,"")+e;case 4675:return Be+e+Ue+"flex-line-pack"+pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+Ue+pe(e,"shrink","negative")+e;case 5292:return Be+e+Ue+pe(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+pe(e,"-grow","")+Be+e+Ue+pe(e,"grow","positive")+e;case 4554:return Be+pe(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return pe(pe(pe(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return pe(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return pe(pe(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return pe(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ye(e)-1-t>6)switch(he(e,t+1)){case 109:if(45!==he(e,t+4))break;case 102:return pe(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+qe+(108==he(e,t+3)?"$3":"$2-$3"))+e;case 115:return~de(e,"stretch")?it(pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==he(e,t+1))break;case 6444:switch(he(e,ye(e)-3-(~de(e,"!important")&&10))){case 107:return pe(e,":",":"+Be)+e;case 101:return pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(45===he(e,14)?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return Be+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Ue+pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Ue+e+e}return e}var at=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ge:e.return=it(e.value,e.length);break;case Ye:return We([ke(e,{value:pe(e.value,"@","@"+Be)})],r);case $e:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return We([ke(e,{props:[pe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return We([ke(e,{props:[pe(t,/:(plac\w+)/,":"+Be+"input-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,":-moz-$1")]}),ke(e,{props:[pe(t,/:(plac\w+)/,Ue+"input-$1")]})],r)}return""}))}}],ut=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||at,a={},u=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;u.push(e)}));var l,s,c,f,p=[Qe,(f=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],d=(s=[rt,ot].concat(i,p),c=ve(s),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=s[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,We(Ke(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ue({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(u),h},lt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},st={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ct(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ft=/[A-Z]|^ms/g,pt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dt=function(e){return 45===e.charCodeAt(1)},ht=function(e){return null!=e&&"boolean"!=typeof e},mt=ct((function(e){return dt(e)?e:e.replace(ft,"-$&").toLowerCase()})),yt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(pt,(function(e,t,n){return gt={name:t,styles:n,next:gt},t}))}return 1===st[e]||dt(e)||"number"!=typeof t||0===t?t:t+"px"};function vt(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return gt={name:n.name,styles:n.styles,next:gt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)gt={name:r.name,styles:r.styles,next:gt},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ht(a)&&(r+=mt(i)+":"+yt(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=vt(e,t,a);switch(i){case"animation":case"animationName":r+=mt(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var l=0;l<a.length;l++)ht(a[l])&&(r+=mt(i)+":"+yt(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=gt,i=n(e);return gt=o,vt(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var gt,bt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";gt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=vt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=vt(n,t,e[a]),r&&(o+=i[a]);bt.lastIndex=0;for(var u,l="";null!==(u=bt.exec(o));)l+="-"+u[1];var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:s,styles:o,next:gt}},_t=!!w.useInsertionEffect&&w.useInsertionEffect,Et=_t||function(e){return e()},xt=(_t||b.useLayoutEffect,{}.hasOwnProperty),St=b.createContext("undefined"!=typeof HTMLElement?ut({key:"css"}):null);St.Provider;var Ot=function(e){return(0,b.forwardRef)((function(t,n){var r=(0,b.useContext)(St);return e(t,r,n)}))},kt=b.createContext({}),Pt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lt(t,n,r),Et((function(){return function(e,t,n){lt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Ct=Ot((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Pt],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var u=wt(i,void 0,b.useContext(kt));a+=t.key+"-"+u.name;var l={};for(var s in e)xt.call(e,s)&&"css"!==s&&s!==Pt&&(l[s]=e[s]);return l.ref=n,l.className=a,b.createElement(b.Fragment,null,b.createElement(Tt,{cache:t,serialized:u,isStringTag:"string"==typeof o}),b.createElement(o,l))})),Nt=Ct,It=(o(8679),function(e,t){var n=arguments;if(null==t||!xt.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Nt,o[1]=function(e,t){var n={};for(var r in t)xt.call(t,r)&&(n[r]=t[r]);return n[Pt]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return b.createElement.apply(null,o)});function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wt(t)}var Lt=o(3935);Math.min,Math.max;function Dt(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rt(e){return Dt(e).getComputedStyle(e)}function At(e){return e instanceof Dt(e).Node}function Ft(e){return At(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){return e instanceof Dt(e).HTMLElement}function Vt(e){return e instanceof Dt(e).Element}function zt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Dt(e).ShadowRoot||e instanceof ShadowRoot)}function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const qt=Math.min,Bt=Math.max,Ht=Math.round,$t=Math.floor,Gt=e=>({x:e,y:e});function Yt(e){return Vt(e)?e:e.contextElement}function Wt(e){const t=Yt(e);if(!Mt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=Ht(n)!==i||Ht(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}(t);let a=(i?Ht(n.width):n.width)/r,u=(i?Ht(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const Qt=Gt(0);function Kt(e,t,n){var r,o;if(void 0===t&&(t=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return Qt;const i=e?Dt(e):window;return!n||t&&n!==i?Qt:{x:(null==(r=i.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}function Xt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Yt(e);let a=Gt(1);t&&(r?Vt(r)&&(a=Wt(r)):a=Wt(e));const u=Kt(i,n,r);let l=(o.left+u.x)/a.x,s=(o.top+u.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const e=Dt(i),t=r&&Vt(r)?Dt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Wt(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,s*=e.y,c*=e.x,f*=e.y,l+=o,s+=i,n=Dt(n).frameElement}}return p={width:c,height:f,x:l,y:s},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}function Jt(e){return((At(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zt(e){const t=function(e){if("html"===Ft(e))return e;const t=e.assignedSlot||e.parentNode||zt(e)&&e.host||Jt(e);return zt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Ft(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mt(t)&&Ut(t)?t:Zt(t)}function en(e,t){var n;void 0===t&&(t=[]);const r=Zt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Dt(r);return o?t.concat(i,i.visualViewport||[],Ut(r)?r:[]):t.concat(r,en(r))}var tn=b.useLayoutEffect,nn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],rn=function(){};function on(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function an(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(on(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var un=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$(e)&&null!==e?[e]:[];var t},ln=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Q({},Z(e,nn))},sn=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function cn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fn(e){return cn(e)?window.pageYOffset:e.scrollTop}function pn(e,t){cn(e)?window.scrollTo(0,t):e.scrollTop=t}function dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rn,o=fn(e),i=t-o,a=0;!function t(){var u=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);pn(e,u),a<n?window.requestAnimationFrame(t):r(e)}()}function hn(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?pn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&pn(e,Math.max(t.offsetTop-o,0))}function mn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var yn=!1,vn={get passive(){return yn=!0}},gn="undefined"!=typeof window?window:{};gn.addEventListener&&gn.removeEventListener&&(gn.addEventListener("p",rn,vn),gn.removeEventListener("p",rn,!1));var bn=yn;function wn(e){return null!=e}function _n(e,t,n){return e?t:n}var En=function(e){return"auto"===e?"bottom":e},xn=(0,b.createContext)(null),Sn=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,l=((0,b.useContext)(xn)||{}).setPortalPlacement,s=(0,b.useRef)(null),c=J((0,b.useState)(r),2),f=c[0],p=c[1],d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=u.spacing.controlHeight;return tn((function(){var e=s.current;if(e){var t="fixed"===i,u=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c,f=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,h=p.height,m=p.top,y=n.offsetParent.getBoundingClientRect().top,v=a||cn(c=l)?window.innerHeight:c.clientHeight,g=fn(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=y-w,E=v-m,x=_+g,S=f-g-m,O=d-v+g+b,k=g+m-w,P=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&dn(l,O,P),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&E>=r)return i&&dn(l,O,P),{placement:"bottom",maxHeight:a?E-b:S-b};if("auto"===o||a){var T=t,C=a?_:x;return C>=r&&(T=Math.min(C-b-u,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return i&&pn(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&dn(l,k,P),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&_>=r){var N=t;return(!a&&x>=r||a&&_>=r)&&(N=a?_-w:x-w),i&&dn(l,k,P),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(u.maxHeight),m(u.placement),null==l||l(u.placement)}}),[r,o,i,a,n,l,y]),t({ref:s,placerProps:Q(Q({},e),{},{placement:h||En(o),maxHeight:f})})},On=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Q({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},kn=On,Pn=On,Tn=function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};Tn.defaultProps={children:"No options"};var Cn=function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};Cn.defaultProps={children:"Loading..."};var Nn,In,jn,Ln=["size"],Dn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Rn=function(e){var t=e.size,n=Z(e,Ln);return It("svg",te({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Dn},n))},An=function(e){return It(Rn,te({size:20},e),It("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Fn=function(e){return It(Rn,te({size:20},e),It("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Mn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Vn=Mn,zn=Mn,Un=function(){var e=jt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Nn||(In=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],jn||(jn=In.slice(0)),Nn=Object.freeze(Object.defineProperties(In,{raw:{value:Object.freeze(jn)}})))),qn=function(e){var t=e.delay,n=e.offset;return It("span",{css:jt({animation:"".concat(Un," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Bn=function(e){var t=e.innerProps,n=e.isRtl;return It("div",te({},sn(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),It(qn,{delay:0,offset:n}),It(qn,{delay:160,offset:!0}),It(qn,{delay:320,offset:!n}))};Bn.defaultProps={size:4};var Hn=["data"],$n=["innerRef","isDisabled","isHidden","inputClassName"],Gn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Yn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gn)},Wn=function(e){return Q({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Gn)},Qn=function(e){var t=e.children,n=e.innerProps;return It("div",n,t)},Kn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||It(An,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return It("div",te({ref:o},sn(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||It(Fn,null))},DownChevron:Fn,CrossIcon:An,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,u=e.innerProps,l=e.label,s=e.theme,c=e.selectProps;return It("div",te({},sn(e,"group",{group:!0}),u),It(i,te({},a,{selectProps:c,theme:s,getStyles:r,getClassNames:o,cx:n}),l),It("div",null,t))},GroupHeading:function(e){var t=ln(e);t.data;var n=Z(t,Hn);return It("div",te({},sn(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return It("span",te({},t,sn(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=ln(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,l=Z(r,$n);return It("div",te({},sn(e,"input",{"input-container":!0}),{"data-value":n||""}),It("input",te({className:t({input:!0},u),ref:o,style:Wn(a),disabled:i},l)))},LoadingIndicator:Bn,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return It("div",te({},sn(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return It("div",te({},sn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,b.useRef)(null),l=(0,b.useRef)(null),s=J((0,b.useState)(En(i)),2),c=s[0],f=s[1],p=(0,b.useMemo)((function(){return{setPortalPlacement:f}}),[]),d=J((0,b.useState)(null),2),h=d[0],m=d[1],y=(0,b.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);tn((function(){y()}),[y]);var v=(0,b.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&u.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,s=Yt(e),c=o||i?[...s?en(s):[],...en(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=s&&u?function(e,t){let n,r=null;const o=Jt(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(u,l){void 0===u&&(u=!1),void 0===l&&(l=1),i();const{left:s,top:c,width:f,height:p}=e.getBoundingClientRect();if(u||t(),!f||!p)return;const d={rootMargin:-$t(c)+"px "+-$t(o.clientWidth-(s+f))+"px "+-$t(o.clientHeight-(c+p))+"px "+-$t(s)+"px",threshold:Bt(0,qt(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,d)}r.observe(e)}(!0),i}(s,n):null;let p,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),s&&!l&&h.observe(s),h.observe(t));let m=l?Xt(e):null;return l&&function t(){const r=Xt(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),f&&f(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(r,u.current,y,{elementResize:"ResizeObserver"in window}))}),[r,y]);tn((function(){v()}),[v]);var g=(0,b.useCallback)((function(e){u.current=e,v()}),[v]);if(!t&&"fixed"!==a||!h)return null;var w=It("div",te({ref:g},sn(Q(Q({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return It(xn.Provider,{value:p},t?(0,Lt.createPortal)(w,t):w)},LoadingMessage:Cn,NoOptionsMessage:Tn,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,l=n.Container,s=n.Label,c=n.Remove;return It(l,{data:r,innerProps:Q(Q({},sn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},It(s,{data:r,innerProps:Q({},sn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),It(c,{data:r,innerProps:Q(Q({},sn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:Qn,MultiValueLabel:Qn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return It("div",te({role:"button"},n),t||It(An,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return It("div",te({},sn(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return It("div",te({},sn(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return It("div",te({},sn(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return It("div",te({},sn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return It("div",te({},sn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Xn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Jn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Xn(r)&&Xn(o)))return!1;var r,o;return!0}for(var Zn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},er=function(e){return It("span",te({css:Zn},e))},tr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,u=e.isDisabled,l=e.isSelected,s=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(s(a,n),".");if("menu"===t){var c=u?" disabled":"",f="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(f,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},nr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,l=e.id,s=u.ariaLiveMessages,c=u.getOptionLabel,f=u.inputValue,p=u.isMulti,d=u.isOptionDisabled,h=u.isSearchable,m=u.menuIsOpen,y=u.options,v=u.screenReaderStatus,g=u.tabSelectsValue,w=u["aria-label"],_=u["aria-live"],E=(0,b.useMemo)((function(){return Q(Q({},tr),s||{})}),[s]),x=(0,b.useMemo)((function(){var e="";if(t&&E.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,l=o||n||function(e){return Array.isArray(e)?null:e}(u),s=l?c(l):"",f=r||i||void 0,p=f?f.map(c):[],h=Q({isDisabled:l&&d(l,a),label:s,labels:p},t);e=E.onChange(h)}return e}),[t,E,d,a,c]),S=(0,b.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var u={focused:t,label:c(t),isDisabled:d(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a};e=E.onFocus(u)}return e}),[n,r,c,d,E,o,a]),O=(0,b.useMemo)((function(){var e="";if(m&&y.length&&E.onFilter){var t=v({count:o.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,E,y,v]),k=(0,b.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":m?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:n&&d(n,a),isMulti:p,isSearchable:h,tabSelectsValue:g})}return e}),[w,n,r,p,d,h,m,E,a,g]),P="".concat(S," ").concat(O," ").concat(k),T=It(b.Fragment,null,It("span",{id:"aria-selection"},x),It("span",{id:"aria-context"},P)),C="initial-input-focus"===(null==t?void 0:t.action);return It(b.Fragment,null,It(er,{id:l},C&&T),It(er,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text"},i&&!C&&T))},rr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],or=new RegExp("["+rr.map((function(e){return e.letters})).join("")+"]","g"),ir={},ar=0;ar<rr.length;ar++)for(var ur=rr[ar],lr=0;lr<ur.letters.length;lr++)ir[ur.letters[lr]]=ur.base;var sr=function(e){return e.replace(or,(function(e){return ir[e]}))},cr=function(e,t){void 0===t&&(t=Jn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(sr),fr=function(e){return e.replace(/^\s+|\s+$/g,"")},pr=function(e){return"".concat(e.label," ").concat(e.value)},dr=["innerRef"];function hr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=J(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=J(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Z(e,dr),"onExited","in","enter","exit","appear");return It("input",te({ref:t},n,{css:jt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var mr=["boxSizing","height","overflow","paddingRight","position"],yr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function vr(e){e.preventDefault()}function gr(e){e.stopPropagation()}function br(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wr(){return"ontouchstart"in window||navigator.maxTouchPoints}var _r=!("undefined"==typeof window||!window.document||!window.document.createElement),Er=0,xr={capture:!1,passive:!1},Sr=function(){return document.activeElement&&document.activeElement.blur()},Or={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function kr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,b.useRef)(!1),u=(0,b.useRef)(!1),l=(0,b.useRef)(0),s=(0,b.useRef)(null),c=(0,b.useCallback)((function(e,t){if(null!==s.current){var l=s.current,c=l.scrollTop,f=l.scrollHeight,p=l.clientHeight,d=s.current,h=t>0,m=f-p-c,y=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=f,y=!0,a.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,y=!0,u.current=!0),y&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,b.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,b.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),d=(0,b.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,b.useCallback)((function(e){if(e){var t=!!bn&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,b.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,b.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,b.useRef)({}),i=(0,b.useRef)(null),a=(0,b.useCallback)((function(e){if(_r){var t=document.body,n=t&&t.style;if(r&&mr.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Er<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,u=window.innerWidth-a+i||0;Object.keys(yr).forEach((function(e){var t=yr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(u,"px"))}t&&wr()&&(t.addEventListener("touchmove",vr,xr),e&&(e.addEventListener("touchstart",br,xr),e.addEventListener("touchmove",gr,xr))),Er+=1}}),[r]),u=(0,b.useCallback)((function(e){if(_r){var t=document.body,n=t&&t.style;Er=Math.max(Er-1,0),r&&Er<1&&mr.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&wr()&&(t.removeEventListener("touchmove",vr,xr),e&&(e.removeEventListener("touchstart",br,xr),e.removeEventListener("touchmove",gr,xr)))}}),[r]);return(0,b.useEffect)((function(){if(t){var e=i.current;return a(e),function(){u(e)}}}),[t,a,u]),function(e){i.current=e}}({isEnabled:n});return It(b.Fragment,null,n&&It("div",{onClick:Sr,css:Or}),t((function(e){o(e),i(e)})))}var Pr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Tr=function(e){var t=e.name,n=e.onFocus;return It("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Pr,value:"",onChange:function(){}})},Cr={clearIndicator:zn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Vn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Q({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Q({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Q(Q({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Yn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Pn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return Q((Y(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Y(n,"position","absolute"),Y(n,"width","100%"),Y(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Q({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Q({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Q({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Q({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:kn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return Q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Q({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Nr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ir={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mn(),captureMenuScroll:!mn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Q({ignoreCase:!0,ignoreAccents:!0,stringify:pr,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,l=a?fr(t):t,s=a?fr(i(e)):i(e);return r&&(l=l.toLowerCase(),s=s.toLowerCase()),o&&(l=cr(l),s=sr(s)),"start"===u?s.substr(0,l.length)===l:s.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jr(e,t,n,r){return{type:"option",data:t,isDisabled:Mr(e,t,n),isSelected:Vr(e,t,n),label:Ar(e,t),value:Fr(e,t),index:r}}function Lr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return jr(e,n,t,r)})).filter((function(t){return Rr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=jr(e,n,t,r);return Rr(e,i)?i:void 0})).filter(wn)}function Dr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Rr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,u=t.value;return(!Ur(e)||!i)&&zr(e,{label:a,value:u,data:o},r)}var Ar=function(e,t){return e.getOptionLabel(t)},Fr=function(e,t){return e.getOptionValue(t)};function Mr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Vr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Fr(e,t);return n.some((function(t){return Fr(e,t)===r}))}function zr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ur=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},qr=1,Br=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&re(e,t)}(i,e);var t,n,r,o=ie(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,u=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:u}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,u=o&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(u){var s=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(ae(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=_n(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(_n(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=_n(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return an.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Ar(t.props,e)},t.getOptionValue=function(e){return Fr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Cr[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Q(Q({},Kn),e.components);var e},t.buildCategorizedOptions=function(){return Lr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Dr(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Q({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&cn(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Ur(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,u=n.isClearable,l=n.isDisabled,s=n.menuIsOpen,c=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,y=d.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():u&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!f||!h||p&&t.isOptionSelected(h,y))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):u&&i&&t.clearValue();break;case" ":if(a)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++qr),t.state.selectValue=un(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hn(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hn(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var u=i.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Nr):Q(Q({},Nr),this.props.theme):Nr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,u=this.props,l=u.isMulti,s=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:s,options:c,selectOption:i,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Mr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Vr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return zr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,l=e.required,s=this.getComponents().Input,c=this.state,f=c.inputIsHidden,p=c.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=Q(Q(Q({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?b.createElement(s,te({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):b.createElement(hr,te({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:rn,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,l=this.commonProps,s=this.props,c=s.controlShouldRenderValue,f=s.isDisabled,p=s.isMulti,d=s.inputValue,h=s.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return d?null:b.createElement(u,te({},l,{key:"placeholder",isDisabled:f,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return y.map((function(t,a){var u=t===v,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return b.createElement(n,te({},l,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:s,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=y[0];return b.createElement(a,te({},l,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?b.createElement(e,te({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return b.createElement(n,te({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(e,te({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,s=t.Option,c=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,y=p.loadingMessage,v=p.minMenuHeight,g=p.maxMenuHeight,w=p.menuIsOpen,_=p.menuPlacement,E=p.menuPosition,x=p.menuPortalTarget,S=p.menuShouldBlockScroll,O=p.menuShouldScrollIntoView,k=p.noOptionsMessage,P=p.onMenuScrollToTop,T=p.onMenuScrollToBottom;if(!w)return null;var C,N=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,u=t.label,l=t.value,p=f===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),y={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return b.createElement(s,te({},c,{innerProps:y,data:o,isDisabled:i,isSelected:a,key:m,label:u,type:r,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,u="".concat(e.getElementId("group"),"-").concat(a),l="".concat(u,"-heading");return b.createElement(n,te({},c,{key:u,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(m){var I=y({inputValue:h});if(null===I)return null;C=b.createElement(u,c,I)}else{var j=k({inputValue:h});if(null===j)return null;C=b.createElement(l,c,j)}var L={minMenuHeight:v,maxMenuHeight:g,menuPlacement:_,menuPosition:E,menuShouldScrollIntoView:O},D=b.createElement(Sn,te({},c,L),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return b.createElement(o,te({},c,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:a}),b.createElement(kr,{captureEnabled:d,onTopArrive:P,onBottomArrive:T,lockEnabled:S},(function(t){return b.createElement(i,te({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:u,focusedOption:f}),C)})))}));return x||"fixed"===E?b.createElement(a,te({},c,{appendTo:x,controlElement:this.controlRef,menuPlacement:_,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!r)return b.createElement(Tr,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return b.createElement("input",{name:i,type:"hidden",value:l})}var s=u.length>0?u.map((function(t,n){return b.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):b.createElement("input",{name:i,type:"hidden",value:""});return b.createElement("div",null,s)}var c=u[0]?this.getOptionValue(u[0]):"";return b.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return b.createElement(nr,te({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,l=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return b.createElement(r,te({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),b.createElement(t,te({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:s}),b.createElement(o,te({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(n,te({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,u=t.prevWasFocused,l=e.options,s=e.value,c=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=un(s),h={};if(n&&(s!==n.value||l!==n.options||c!==n.menuIsOpen||f!==n.inputValue)){var m=c?function(e,t){return Dr(Lr(e,t))}(e,d):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:d,focusedOption:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var g=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=i,w=a&&u;return a&&!w&&(b={value:_n(p,d,d[0]||null),options:d,action:"initial-input-focus"},w=!u),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),Q(Q(Q({},h),g),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}],n&&ne(t.prototype,n),r&&ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(b.Component);Br.defaultProps=Ir;var Hr=(0,b.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,u=e.inputValue,l=e.menuIsOpen,s=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=Z(e,ee),m=J((0,b.useState)(void 0!==u?u:n),2),y=m[0],v=m[1],g=J((0,b.useState)(void 0!==l?l:o),2),w=g[0],_=g[1],E=J((0,b.useState)(void 0!==d?d:a),2),x=E[0],S=E[1],O=(0,b.useCallback)((function(e,t){"function"==typeof s&&s(e,t),S(e)}),[s]),k=(0,b.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),v(void 0!==n?n:e)}),[c]),P=(0,b.useCallback)((function(){"function"==typeof p&&p(),_(!0)}),[p]),T=(0,b.useCallback)((function(){"function"==typeof f&&f(),_(!1)}),[f]),C=void 0!==u?u:y,N=void 0!==l?l:w,I=void 0!==d?d:x;return Q(Q({},h),{},{inputValue:C,menuIsOpen:N,onChange:O,onInputChange:k,onMenuClose:T,onMenuOpen:P,value:I})}(e);return b.createElement(Br,te({ref:t},n))})),$r=Hr,Gr=function(){return Gr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gr.apply(this,arguments)},Yr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Wr=function(e){return Gr(Gr({},e),{borderRadius:0,colors:Gr(Gr({},e.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},Qr=function(e,t){return(0,b.useMemo)((function(){return{placeholder:function(e){return Gr(Gr({},e),{color:"var(--placeholder-body-color)"})},container:function(e){return Gr(Gr({},e),{fontSize:"inherit"})},control:function(n,r){var o=r.isFocused,i=n;return i=Gr(Gr({},i),{minHeight:40}),Gr(Gr({},i),o?{borderColor:t?"var(--alert-color)":"var(--accent-color)",backgroundColor:e?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(t?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:t?"var(--alert-color)":"var(--accent-color)"}}:{borderColor:t?"var(--alert-color)":"var(--border-color)",backgroundColor:e?"var(--disabled-color)":"white","&:hover":{borderColor:t?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(e){return Gr(Gr({},e),{cursor:"pointer"})},menu:function(e){return Gr(Gr({},e),{zIndex:1e3,minWidth:250})},input:function(e){return Gr(Gr({},e),{boxShadow:"none","input:focus":{boxShadow:"none"}})},multiValue:function(e){return Gr(Gr({},e),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(e){return Gr(Gr({},e),{fontSize:"inherit",padding:3})}}}),[e,t])};function Kr(e){var t=e.isDisabled,n=e.error,r=Yr(e,["isDisabled","error"]),o=Qr(t,n);return b.createElement($r,Gr({},r,{isDisabled:t,theme:Wr,styles:o}))}var Xr,Jr,Zr=function(){return Zr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zr.apply(this,arguments)};function eo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.placeholder,l=e.formLabelProps,s=e.value,c=e.onChange,f=e.selectInputProps;return b.createElement(H,{formLabelProps:l,id:t,required:a,error:i,hint:o,label:r},b.createElement(Kr,Zr({},f,{id:t,name:n,value:s,placeholder:u,onChange:c,error:!!i})))}!function(e){e.MainNavigationTabs="mainNavigationTabs",e.ContentAreaSidebarItems="contentAreaSidebarItems",e.SettingsAreaSidebarItemGroups="settingsAreaSidebarItemGroups"}(Xr||(Xr={})),function(e){e.Before="before",e.After="after",e.MenuItems="menuItems",e.Settings="settings",e.Environment="environment",e.Project="project",e.Permissions="permissions",e.Webhooks="webhooks",e.Deployment="deployment",e.SSO="sso",e.AuditLog="auditLog",e.Usage="usage",e.Content="content",e.MediaArea="mediaArea",e.ApiExplorer="apiExplorer"}(Jr||(Jr={}));var to="Upload SVG",no="svg-uploader",ro="file-upload",oo="svg-raw-viewer-modal",io="New SVG",ao=[{label:"Top menu",value:Xr.MainNavigationTabs},{label:"Side menu",value:Xr.ContentAreaSidebarItems},{label:"Settings menu",value:Xr.SettingsAreaSidebarItemGroups}],uo=[{label:"Before menu item",value:Jr.Before},{label:"After menu item",value:Jr.After}],lo=[{label:"Menu items",value:Jr.MenuItems},{label:"Settings",value:Jr.Settings}],so=[{label:"Environment",value:Jr.Environment},{label:"Project",value:Jr.Project},{label:"Permissions",value:Jr.Permissions},{label:"Webhooks",value:Jr.Webhooks},{label:"Deployment",value:Jr.Deployment},{label:"SSO",value:Jr.SSO},{label:"Audit log",value:Jr.AuditLog},{label:"Usage",value:Jr.Usage}],co=[{label:"Content",value:Jr.Content},{label:"Media",value:Jr.MediaArea},{label:"CDA Playground",value:Jr.ApiExplorer},{label:"Settings",value:Jr.Settings}];function fo(e){return e===Xr.SettingsAreaSidebarItemGroups?so:e===Xr.ContentAreaSidebarItems?lo:co}var po=function(){return po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},po.apply(this,arguments)};function ho(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=(null==r?void 0:r.pageType)||ao[0],i=(null==r?void 0:r.placement)||uo[0],a=(0,b.useMemo)((function(){return(null==r?void 0:r.menuItemPlacement)||fo(o.value)[0]}),[null==r?void 0:r.menuItemPlacement,o.value]);function u(e){n.updatePluginParameters(po(po({},r),e)),n.notice("Settings updated successfully!")}return(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("p",{children:"This DatoCMS plugin"}),(0,e.jsx)(I,{children:(0,e.jsxs)(R,{children:[(0,e.jsx)(eo,{name:"pageType",id:"pageType",label:"Where do you want to show the menu item?",value:o,selectInputProps:{options:ao},onChange:function(e){u({pageType:e,menuItemPlacement:fo(e.value)[0]})}}),(0,e.jsx)(eo,{name:"placement",id:"placement",label:"Show the menu item before or after the other menu items?",value:i,selectInputProps:{options:uo},onChange:function(e){u({placement:e})}}),(0,e.jsx)(eo,{name:"menuItemPlacement",id:"menuItemPlacement",label:"".concat("before"===i.value?"Before":"After"," which menu item do you want to show the menu item?"),value:a,selectInputProps:{options:fo(o.value)},onChange:function(e){u({menuItemPlacement:e})}})]})})]})}var mo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let yo;const vo=new Uint8Array(16);function go(){if(!yo&&(yo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!yo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yo(vo)}const bo=[];for(let e=0;e<256;++e)bo.push((e+256).toString(16).slice(1));var wo=function(e,t,n){if(mo.randomUUID&&!t&&!e)return mo.randomUUID();const r=(e=e||{}).random||(e.rng||go)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(bo[e[t+0]]+bo[e[t+1]]+bo[e[t+2]]+bo[e[t+3]]+"-"+bo[e[t+4]]+bo[e[t+5]]+"-"+bo[e[t+6]]+bo[e[t+7]]+"-"+bo[e[t+8]]+bo[e[t+9]]+"-"+bo[e[t+10]]+bo[e[t+11]]+bo[e[t+12]]+bo[e[t+13]]+bo[e[t+14]]+bo[e[t+15]]).toLowerCase()}(r)},_o=JSON.parse('{"wW":"_Spinner--inline_oumod_1","Pr":"_Spinner--centered_oumod_7","Vs":"_Spinner__bar_oumod_13"}'),Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Eo.apply(this,arguments)};function xo(e){for(var t,n=e.size,r=void 0===n?32:n,o=e.placement,i=void 0===o?"inline":o,a=e.style,u=void 0===a?{}:a,l=[],s=0;s<12;s+=1){var c={};c.animationDelay="".concat((s-12)/10,"s"),c.transform="rotate(".concat(30*s,"deg) translate(146%)"),l.push(b.createElement("div",{style:c,className:_o.Vs,key:s}))}var f={width:.5*r,height:.5*r};return"inline"===i&&(f.marginLeft=.5*r,f.transform="translateY(33%)"),b.createElement("div",{className:k()((t={},t[_o.wW]="inline"===i,t[_o.Pr]="centered"===i,t)),style:Eo(Eo({},u),f)},l)}var So=JSON.parse('{"button":"_button_474wk_1","disabled":"_disabled_474wk_30","buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113","fullWidth":"_fullWidth_474wk_118","button__leftIcon":"_button__leftIcon_474wk_124","button__rightIcon":"_button__rightIcon_474wk_125"}');function Oo(e){var t,n=e.children,r=e.className,o=e.disabled,i=e.buttonType,a=void 0===i?"muted":i,u=e.buttonSize,l=void 0===u?"m":u,s=e.fullWidth,c=e.onClick,f=e.style,p=e.leftIcon,d=e.rightIcon,h=e.type,m=void 0===h?"button":h;return b.createElement("button",{type:m,className:k()(So.button,So["buttonType-".concat(a)],So["buttonSize-".concat(l)],(t={},t[So.disabled]=o,t[So.fullWidth]=s,t),r),disabled:o,onClick:c,style:f},p&&b.createElement("span",{className:So.button__leftIcon},p),n&&b.createElement("span",null,n),d&&b.createElement("span",{className:So.button__rightIcon},d))}var ko=JSON.parse('{"ch":"_switchInput__inner_1knbg_1","cY":"_switchInput_1knbg_1","w9":"_switchInput__checked_1knbg_47","ZH":"_switchInput__disabled_1knbg_60"}'),Po=function(){return Po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Po.apply(this,arguments)},To=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Co(e){var t,n=e.className,r=e.value,o=e.disabled,i=e.onClick,a=e.onChange,u=e.onKeyDown,l=To(e,["className","value","disabled","onClick","onChange","onKeyDown"]);function s(e,t){!o&&a&&a(e,t)}var c=k()(ko.cY,n,((t={})[ko.w9]=r,t[ko.ZH]=o,t));return b.createElement("button",Po({},l,{type:"button",role:"switch","aria-checked":r,disabled:o,className:c,onKeyDown:function(e){"ArrowLeft"===e.key?s(!1,e):"ArrowRight"===e.key&&s(!0,e),null==u||u(e)},onClick:function(e){s(!r,e),null==i||i(e)}}),b.createElement("span",{className:ko.ch}))}var No=JSON.parse('{"Nc":"_switchField__flex_16z4j_1","Zt":"_switchField__switchInput_16z4j_6","_E":"_switchField__label_16z4j_10","Ny":"_switchField__below_16z4j_22"}'),Io=function(){return Io=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Io.apply(this,arguments)};function jo(e){var t=e.id,n=e.name,r=e.label,o=e.hint,i=e.error,a=e.required,u=e.formLabelProps,l=e.value,s=e.onChange,c=e.switchInputProps;return b.createElement(b.Fragment,null,b.createElement("div",{className:No.Nc},b.createElement("div",{className:No.Zt},b.createElement(Co,Io({},c,{name:n,value:l,onChange:s}))),b.createElement(M,Io({},u,{htmlFor:t,required:a,className:k()(No._E,null==u?void 0:u.className),error:!!i}),r)),(o||i)&&b.createElement("div",{className:No.Ny},i&&b.createElement(z,null,i),o&&b.createElement(q,null,o)))}var Lo=function(){return Lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lo.apply(this,arguments)};function Do(e){return"object"==typeof e&&!!e&&"id"in e&&"type"in e}function Ro(e){return Array.isArray(e)&&e.every(Do)}function Ao(e,t){if("object"!=typeof e||!e)throw new Error("Invalid body!");var n=e,r=n.id,o=n.type,i=n.meta,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["id","type","meta"]),u={},l={};return"*"===t.attributes?Object.entries(a).forEach((function(e){var n=e[0],r=e[1];if(t.relationships.includes(n))if(Do(r)){var o=r.id,i=r.type;l[n]={data:{id:o,type:i}}}else Ro(r)?l[n]={data:r.map((function(e){return{id:e.id,type:e.type}}))}:l[n]={data:null};else u[n]=r})):"*"===t.relationships?Object.entries(a).forEach((function(e){var n=e[0],r=e[1];if(t.attributes.includes(n))u[n]=r;else if(Do(r)){var o=r.id,i=r.type;l[n]={data:{id:o,type:i}}}else Ro(r)?l[n]={data:r.map((function(e){return{id:e.id,type:e.type}}))}:l[n]={data:null}})):Object.entries(a).forEach((function(e){var n=e[0],r=e[1];if(t.attributes.includes(n))u[n]=r;else if(t.relationships.includes(n))if(Do(r)){var o=r.id,i=r.type;l[n]={data:{id:o,type:i}}}else Ro(r)?l[n]={data:r.map((function(e){return{id:e.id,type:e.type}}))}:l[n]={data:null}})),{data:Lo(Lo(Lo(Lo(Lo({},r||t.id?{id:r||t.id}:{}),{type:o||t.type}),Object.keys(u).length>0?{attributes:u}:{}),Object.keys(l).length>0?{relationships:l}:{}),i?{meta:i}:{})}}var Fo=function(){return Fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fo.apply(this,arguments)};function Mo(e){var t=e.id,n=e.type,r=e.attributes,o=e.relationships,i=e.meta;return Fo(Fo(Fo(Fo(Fo({},t?{id:t}:{}),n?{type:n}:{}),r||{}),o?Object.fromEntries(Object.entries(o).map((function(e){var t=e[0],n=e[1];return[t,null==n?void 0:n.data]}))):{}),i?{meta:i}:{})}function Vo(e){if("object"!=typeof(t=e)||!t||!("data"in t))throw new Error("Invalid body!");var t;return Array.isArray(e.data)?e.data.map(Mo):Mo(e.data)}function zo(e){return"string"==typeof e?e:e.id}var Uo,qo=function(e){this.client=e},Bo=(Uo=function(e,t){return Uo=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])},Uo(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Uo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bo(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/roles",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions"],relationships:["inherits_permissions_from"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/roles/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/roles"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/roles/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/roles/".concat(e)})},t.TYPE="role",t}(qo),$o=Ho,Go=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)},Wo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Qo(e,t){return null==e&&null==t||e===t}function Ko(e,t,n,r){if(!t)return e;var o=t.add,i=t.remove;return Wo(Wo([],i?i.reduce((function(e,t){var o=Yo(Yo({},t),{environment:n}),i=e.find((function(e){return function(e,t){for(var n in e)if(!Qo(e[n],t[n]))return!1;for(var n in t)if(!Qo(e[n],t[n]))return!1;return!0}(e,o)}));if(!i)throw new Error("Cannot find rule ".concat(JSON.stringify(o)," to remove in ").concat(r,"!"));return e.filter((function(e){return e!==i}))}),e):e,!0),o?o.map((function(e){return Yo({environment:n},e)})):[],!0)}var Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Go(t,e),t.prototype.updateCurrentEnvironmentPermissions=function(e,t){return n=this,r=void 0,i=function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:return(r=this.client.config.environment)?[3,2]:[4,this.client.environments.list()];case 1:r=l.sent().find((function(e){return e.meta.primary})).id,l.label=2;case 2:return n=r,[4,this.find(e)];case 3:return o=l.sent(),i=Boolean(t.positive_item_type_permissions||t.negative_item_type_permissions),a=Boolean(t.positive_upload_permissions||t.negative_upload_permissions),u=Yo(Yo({},i?{positive_item_type_permissions:Ko(o.positive_item_type_permissions,t.positive_item_type_permissions,n,"positive_item_type_permissions"),negative_item_type_permissions:Ko(o.negative_item_type_permissions,t.negative_item_type_permissions,n,"negative_item_type_permissions")}:{}),a?{positive_upload_permissions:Ko(o.positive_upload_permissions,t.positive_upload_permissions,n,"positive_upload_permissions"),negative_upload_permissions:Ko(o.negative_upload_permissions,t.negative_upload_permissions,n,"negative_upload_permissions")}:{}),[2,this.update(e,u)]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function u(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,u)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i},t}($o),Jo=Xo,Zo=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zo(t,e),t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"user",attributes:["is_active"],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/users/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/users"})},t.prototype.find=function(e,t){return this.rawFind(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/users/".concat(e),queryParams:t})},t.prototype.findMe=function(e){return this.rawFindMe(e).then((function(e){return Vo(e)}))},t.prototype.rawFindMe=function(e){return this.client.request({method:"GET",url:"/users/me",queryParams:e})},t.prototype.destroy=function(e,t){return this.rawDestroy(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/users/".concat(e),queryParams:t})},t.TYPE="user",t}(qo),ti=ei,ni=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ni(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-users"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/sso-users/".concat(e)})},t.prototype.copyUsers=function(){return this.rawCopyUsers().then((function(e){return Vo(e)}))},t.prototype.rawCopyUsers=function(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})},t.prototype.destroy=function(e,t){return this.rawDestroy(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/sso-users/".concat(e),queryParams:t})},t.TYPE="sso_user",t}(qo),oi=ri,ii=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ii(t,e),t.prototype.query=function(e){return this.rawQuery(Ao(e,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawQuery=function(e){return this.client.request({method:"POST",url:"/audit-log-events/query",body:e})},t.TYPE="audit_log_event",t}(qo),ui=ai,li=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/menu-items",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/menu-items/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/menu-items",queryParams:e})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/menu-items/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/menu-items/".concat(e)})},t.TYPE="menu_item",t}(qo),ci=si,fi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.create=function(e,t){return this.rawCreate(Ao(e,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]}),t).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types",body:e,queryParams:t})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","title_field","image_preview_field","excerpt_field","workflow"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-types/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-types"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/duplicate")})},t.prototype.destroy=function(e,t){return this.rawDestroy(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/item-types/".concat(e),queryParams:t})},t.TYPE="item_type",t}(qo),di=pi,hi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hi(t,e),t.prototype.create=function(e,t){return this.rawCreate(zo(e),Ao(t,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value"],relationships:["fieldset"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fields"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint"],relationships:["fieldset"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fields/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields")})},t.prototype.referencing=function(e){return this.rawReferencing(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawReferencing=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/referencing")})},t.prototype.related=function(e){return this.rawRelated(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawRelated=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fields/related")})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fields/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fields/".concat(e)})},t.prototype.duplicate=function(e){return this.rawDuplicate(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/fields/".concat(e,"/duplicate")})},t.TYPE="field",t}(qo),yi=mi,vi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vi(t,e),t.prototype.create=function(e,t){return this.rawCreate(zo(e),Ao(t,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/item-types/".concat(e,"/fieldsets"),body:t})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/fieldsets/".concat(e),body:t})},t.prototype.list=function(e){return this.rawList(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/item-types/".concat(e,"/fieldsets")})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/fieldsets/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/fieldsets/".concat(e)})},t.TYPE="fieldset",t}(qo),bi=gi,wi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wi(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/sessions",body:e})},t.TYPE="session",t}(qo),Ei=_i,xi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xi(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/access_tokens",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/access_tokens/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/access_tokens"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/access_tokens/".concat(e)})},t.prototype.regenerateToken=function(e){return this.rawRegenerateToken(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawRegenerateToken=function(e){return this.client.request({method:"POST",url:"/access_tokens/".concat(e,"/regenerate_token")})},t.prototype.destroy=function(e,t){return this.rawDestroy(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e,t){return this.client.request({method:"DELETE",url:"/access_tokens/".concat(e),queryParams:t})},t.TYPE="access_token",t}(qo),Oi=Si,ki=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ki(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/plugins",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/plugins/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/plugins"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/plugins/".concat(e)})},t.prototype.fields=function(e){return this.rawFields(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFields=function(e){return this.client.request({method:"GET",url:"/plugins/".concat(e,"/fields")})},t.TYPE="plugin",t}(qo),Ti=Pi,Ci=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ci(t,e),t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/job-results/".concat(e)})},t.TYPE="job_result",t}(qo),Ii=Ni,ji=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ji(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-limits"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/subscription-limits/".concat(e)})},t.TYPE="subscription_limit",t}(qo),Di=Li,Ri=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ri(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/subscription-features"})},t.TYPE="subscription_feature",t}(qo),Fi=Ai,Mi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mi(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-events"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-events/".concat(e)})},t.TYPE="build_event",t}(qo),zi=Vi,Ui=o(9390),qi=function(e){return this instanceof qi?(this.v=e,this):new qi(e)};function Bi(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof qi?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,l,s,c,f,p,d,h,m,y;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(v){switch(v.label){case 0:if((r=(null==n?void 0:n.perPage)||e.defaultLimit)>e.maxLimit)throw new Error("perPage option cannot exceed maximum value of ".concat(e.maxLimit));if((o=(null==n?void 0:n.concurrency)||1)>10)throw new Error("concurrency option cannot exceed maximum value of 10");return[4,qi(t({limit:r,offset:0}))];case 1:i=v.sent(),a=0,u=i.data,v.label=2;case 2:return a<u.length?(y=u[a],[4,qi(y)]):[3,6];case 3:return[4,v.sent()];case 4:v.sent(),v.label=5;case 5:return a++,[3,2];case 6:for(l=i.meta.total_count,s=new Ui.Scheduler(o),c=[],f=function(e){c.push(s.enqueue((function(){return t({limit:r,offset:e})})))},p=r;p<l;p+=r)f(p);v.label=7;case 7:return c.length>0?[4,qi(c.shift())]:[3,14];case 8:d=v.sent(),h=0,m=d.data,v.label=9;case 9:return h<m.length?(y=m[h],[4,qi(y)]):[3,13];case 10:return[4,v.sent()];case 11:v.sent(),v.label=12;case 12:return h++,[3,9];case 13:return[3,7];case 14:return[2]}}))}))}var Hi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=function(){return $i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$i.apply(this,arguments)},Gi=function(e){return this instanceof Gi?(this.v=e,this):new Gi(e)},Yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hi(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/items",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Gi?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,Gi(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,Gi(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,Gi(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList($i($i({},e),{page:t}))}),t)},t.prototype.validateExisting=function(e,t){return this.rawValidateExisting(zo(e),Ao(t,{id:zo(e),type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateExisting=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/validate"),body:t})},t.prototype.validateNew=function(e){return this.rawValidateNew(Ao(e,{type:"item",attributes:"*",relationships:["item_type","creator"]}))},t.prototype.rawValidateNew=function(e){return this.client.request({method:"POST",url:"/items/validate",body:e})},t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/items",body:e})},t.prototype.duplicate=function(e){return this.rawDuplicate(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDuplicate=function(e){return this.client.request({method:"POST",url:"/items/".concat(e,"/duplicate")})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"item",attributes:"*",relationships:["item_type","creator"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/items/".concat(e),body:t})},t.prototype.references=function(e,t){return this.rawReferences(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/references"),queryParams:t})},t.prototype.find=function(e,t){return this.rawFind(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e),queryParams:t})},t.prototype.currentVsPublishedState=function(e){return this.rawCurrentVsPublishedState(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawCurrentVsPublishedState=function(e){return this.client.request({method:"GET",url:"/items/".concat(e,"/current-vs-published-state")})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e)})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Vo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/items",queryParams:e})},t.prototype.batchPublish=function(e){return this.rawBatchPublish(e).then((function(e){return Vo(e)}))},t.prototype.rawBatchPublish=function(e){return this.client.request({method:"PUT",url:"/items/publish",queryParams:e})},t.prototype.batchUnpublish=function(e){return this.rawBatchUnpublish(e).then((function(e){return Vo(e)}))},t.prototype.rawBatchUnpublish=function(e){return this.client.request({method:"PUT",url:"/items/unpublish",queryParams:e})},t.prototype.publish=function(e,t,n){return this.rawPublish(zo(e),t?Ao(t,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,n).then((function(e){return Vo(e)}))},t.prototype.rawPublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/publish"),body:t,queryParams:n})},t.prototype.unpublish=function(e,t,n){return this.rawUnpublish(zo(e),t?Ao(t,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,n).then((function(e){return Vo(e)}))},t.prototype.rawUnpublish=function(e,t,n){return this.client.request({method:"PUT",url:"/items/".concat(e,"/unpublish"),body:t,queryParams:n})},t.prototype.bulkPublish=function(e){return this.rawBulkPublish(Ao(e,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkPublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/publish",body:e})},t.prototype.bulkUnpublish=function(e){return this.rawBulkUnpublish(Ao(e,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkUnpublish=function(e){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ao(e,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:e})},t.prototype.bulkMoveToStage=function(e){return this.rawBulkMoveToStage(Ao(e,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkMoveToStage=function(e){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:e})},t.TYPE="item",t}(qo),Wi=Yi,Qi=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ki=function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)},Xi=function(e){return this instanceof Xi?(this.v=e,this):new Xi(e)},Ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qi(t,e),t.prototype.restore=function(e){return this.rawRestore(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawRestore=function(e){return this.client.request({method:"POST",url:"/versions/".concat(e,"/restore")})},t.prototype.list=function(e,t){return this.rawList(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e,t){return this.client.request({method:"GET",url:"/items/".concat(e,"/versions"),queryParams:t})},t.prototype.listPagedIterator=function(e,t,n){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Xi?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var r,o,i,a,u,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(s){switch(s.label){case 0:s.trys.push([0,7,8,13]),r=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(zo(e),t,n)),s.label=1;case 1:return[4,Xi(r.next())];case 2:return(o=s.sent()).done?[3,6]:(i=o.value,[4,Xi(Mo(i))]);case 3:return[4,s.sent()];case 4:s.sent(),s.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return a=s.sent(),u={error:a},[3,13];case 8:return s.trys.push([8,,11,12]),o&&!o.done&&(l=r.return)?[4,Xi(l.call(r))]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t,n){var r=this;return Bi({defaultLimit:15,maxLimit:50},(function(n){return r.rawList(e,Ki(Ki({},t),{page:n}))}),n)},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/versions/".concat(e)})},t.TYPE="item_version",t}(qo),Zi=Ji,ea=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ta=function(){return ta=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ta.apply(this,arguments)},na=function(e){return this instanceof na?(this.v=e,this):new na(e)},ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ea(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/uploads",body:e})},t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/uploads",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof na?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,na(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,na(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,na(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(ta(ta({},e),{page:t}))}),t)},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/uploads/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/".concat(e)})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/uploads/".concat(e),body:t})},t.prototype.batchAddTags=function(e,t){return this.rawBatchAddTags(Ao(e,{type:"upload",attributes:["tags"],relationships:[]}),t).then((function(e){return Vo(e)}))},t.prototype.rawBatchAddTags=function(e,t){return this.client.request({method:"PUT",url:"/uploads/batch-add-tags",body:e,queryParams:t})},t.prototype.batchDestroy=function(e){return this.rawBatchDestroy(e).then((function(e){return Vo(e)}))},t.prototype.rawBatchDestroy=function(e){return this.client.request({method:"DELETE",url:"/uploads/batch-destroy",queryParams:e})},t.prototype.references=function(e,t){return this.rawReferences(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawReferences=function(e,t){return this.client.request({method:"GET",url:"/uploads/".concat(e,"/references"),queryParams:t})},t.prototype.bulkTag=function(e){return this.rawBulkTag(Ao(e,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkTag=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:e})},t.prototype.bulkDestroy=function(e){return this.rawBulkDestroy(Ao(e,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then((function(e){return Vo(e)}))},t.prototype.rawBulkDestroy=function(e){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:e})},t.TYPE="upload",t}(qo),oa=ra,ia=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ia(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"upload_request",attributes:["filename"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-requests",body:e})},t.TYPE="upload_request",t}(qo),ua=aa,la=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return la(t,e),t.prototype.create=function(e,t){return this.rawCreate(zo(e),Ao(t,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-publication"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-publication")})},t.TYPE="scheduled_publication",t}(qo),ca=sa,fa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fa(t,e),t.prototype.create=function(e,t){return this.rawCreate(zo(e),Ao(t,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e,t){return this.client.request({method:"POST",url:"/items/".concat(e,"/scheduled-unpublishing"),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/items/".concat(e,"/scheduled-unpublishing")})},t.TYPE="scheduled_unpublishing",t}(qo),da=pa,ha=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)},ya=function(e){return this instanceof ya?(this.v=e,this):new ya(e)},va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ha(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/search-results",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof ya?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,ya(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,ya(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,ya(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:20,maxLimit:100},(function(t){return n.rawList(ma(ma({},e),{page:t}))}),t)},t.TYPE="search_result",t}(qo),ga=va,ba=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ba(t,e),t.prototype.fork=function(e,t,n){return this.rawFork(zo(e),Ao(t,{id:zo(e),type:"environment",attributes:[],relationships:[]}),n).then((function(e){return Vo(e)}))},t.prototype.rawFork=function(e,t,n){return this.client.request({method:"POST",url:"/environments/".concat(e,"/fork"),body:t,queryParams:n})},t.prototype.promote=function(e){return this.rawPromote(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawPromote=function(e){return this.client.request({method:"PUT",url:"/environments/".concat(e,"/promote")})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/environments"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/environments/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/environments/".concat(e)})},t.TYPE="environment",t}(qo),_a=wa,Ea=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ea(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Vo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/maintenance-mode"})},t.prototype.activate=function(e){return this.rawActivate(e).then((function(e){return Vo(e)}))},t.prototype.rawActivate=function(e){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:e})},t.prototype.deactivate=function(){return this.rawDeactivate().then((function(e){return Vo(e)}))},t.prototype.rawDeactivate=function(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})},t.TYPE="maintenance_mode",t}(qo),Sa=xa,Oa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oa(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/webhooks",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/webhooks/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/webhooks"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/webhooks/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/webhooks/".concat(e)})},t.TYPE="webhook",t}(qo),Pa=ka,Ta=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ca.apply(this,arguments)},Na=function(e){return this instanceof Na?(this.v=e,this):new Na(e)},Ia=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof Na?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,Na(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,Na(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,Na(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:30,maxLimit:500},(function(t){return n.rawList(Ca(Ca({},e),{page:t}))}),t)},t.prototype.resendWebhook=function(e){return this.rawResendWebhook(zo(e))},t.prototype.rawResendWebhook=function(e){return this.client.request({method:"POST",url:"/webhook_calls/".concat(e,"/resend_webhook")})},t.TYPE="webhook_call",t}(qo),ja=Ia,La=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return La(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/build-triggers"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/build-triggers/".concat(e)})},t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/build-triggers",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"build_trigger",attributes:["name","adapter","indexing_enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e),body:t})},t.prototype.trigger=function(e){return this.rawTrigger(zo(e))},t.prototype.rawTrigger=function(e){return this.client.request({method:"POST",url:"/build-triggers/".concat(e,"/trigger")})},t.prototype.abort=function(e){return this.rawAbort(zo(e))},t.prototype.rawAbort=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort")})},t.prototype.abortIndexing=function(e){return this.rawAbortIndexing(zo(e))},t.prototype.rawAbortIndexing=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e,"/abort_indexing")})},t.prototype.reindex=function(e){return this.rawReindex(zo(e))},t.prototype.rawReindex=function(e){return this.client.request({method:"PUT",url:"/build-triggers/".concat(e,"/reindex")})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/build-triggers/".concat(e)})},t.TYPE="build_trigger",t}(qo),Ra=Da,Aa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/item-type-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/item-type-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/item-type-filters"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/item-type-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/item-type-filters/".concat(e)})},t.TYPE="item_type_filter",t}(qo),Ma=Fa,Va=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Va(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-filters",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/upload-filters/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/upload-filters"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/upload-filters/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/upload-filters/".concat(e)})},t.TYPE="upload_filter",t}(qo),Ua=za,qa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ba=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qa(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/site-invitations",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"site_invitation",attributes:[],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/site-invitations/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/site-invitations"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site-invitations/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/site-invitations/".concat(e)})},t.prototype.resend=function(e){return this.rawResend(zo(e))},t.prototype.rawResend=function(e){return this.client.request({method:"POST",url:"/site-invitations/".concat(e,"/resend")})},t.TYPE="site_invitation",t}(qo),Ha=Ba,$a=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ga=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $a(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/editing-sessions"})},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/editing-sessions/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/editing-sessions/".concat(e)})},t.TYPE="editing_session",t}(qo),Ya=Ga,Wa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wa(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/sso-groups"})},t.prototype.copyRoles=function(e){return this.rawCopyRoles(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawCopyRoles=function(e){return this.client.request({method:"POST",url:"/sso-groups/".concat(e,"/copy-roles")})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"sso_group",attributes:["priority"],relationships:["role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/sso-groups/".concat(e),body:t})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/sso-groups/".concat(e)})},t.TYPE="sso_group",t}(qo),Ka=Qa,Xa=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ja=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xa(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Vo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/sso-settings"})},t.prototype.generateToken=function(){return this.rawGenerateToken().then((function(e){return Vo(e)}))},t.prototype.rawGenerateToken=function(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})},t.prototype.update=function(e){return this.rawUpdate(Ao(e,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/sso-settings",body:e})},t.TYPE="sso_settings",t}(qo),Za=Ja,eu=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Vo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/white-label-settings"})},t.prototype.update=function(e){return this.rawUpdate(Ao(e,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/white-label-settings",body:e})},t.TYPE="white_label_settings",t}(qo),nu=tu,ru=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ru(t,e),t.prototype.find=function(){return this.rawFind().then((function(e){return Vo(e)}))},t.prototype.rawFind=function(){return this.client.request({method:"GET",url:"/public-info"})},t.TYPE="public_info",t}(qo),iu=ou,au=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return au(t,e),t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/daily-site-usages"})},t.TYPE="daily_usage",t}(qo),lu=uu,su=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.prototype.find=function(e,t){return this.rawFind(zo(e),t).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e,t){return this.client.request({method:"GET",url:"/usage-log-counters/".concat(e),queryParams:t})},t.TYPE="usage_counter",t}(qo),fu=cu,pu=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),du=function(){return du=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},du.apply(this,arguments)},hu=function(e){return this instanceof hu?(this.v=e,this):new hu(e)},mu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof hu?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,hu(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,hu(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,hu(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(du(du({},e),{page:t}))}),t)},t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"upload_tag",attributes:["name"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/upload-tags",body:e})},t.TYPE="upload_tag",t}(qo),yu=mu,vu=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gu=function(){return gu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gu.apply(this,arguments)},bu=function(e){return this instanceof bu?(this.v=e,this):new bu(e)},wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vu(t,e),t.prototype.list=function(e){return this.rawList(e).then((function(e){return Vo(e)}))},t.prototype.rawList=function(e){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:e})},t.prototype.listPagedIterator=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof bu?Promise.resolve(n.value.v).then(l,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]),n=function(e){if(!Symbol.asyncIterator)throw new 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={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(this.rawListPagedIterator(e,t)),l.label=1;case 1:return[4,bu(n.next())];case 2:return(r=l.sent()).done?[3,6]:(o=r.value,[4,bu(Mo(o))]);case 3:return[4,l.sent()];case 4:l.sent(),l.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return i=l.sent(),a={error:i},[3,13];case 8:return l.trys.push([8,,11,12]),r&&!r.done&&(u=n.return)?[4,bu(u.call(n))]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(a)throw a.error;return[7];case 12:return[7];case 13:return[2]}}))}))},t.prototype.rawListPagedIterator=function(e,t){var n=this;return Bi({defaultLimit:50,maxLimit:500},(function(t){return n.rawList(gu(gu({},e),{page:t}))}),t)},t.TYPE="upload_smart_tag",t}(qo),_u=wu,Eu=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Eu(t,e),t.prototype.find=function(e){return this.rawFind(e).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/site",queryParams:e})},t.prototype.update=function(e){return this.rawUpdate(Ao(e,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled"],relationships:["sso_default_role"]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e){return this.client.request({method:"PUT",url:"/site",body:e})},t.prototype.activateImprovedTimezoneManagement=function(){return this.rawActivateImprovedTimezoneManagement().then((function(e){return Vo(e)}))},t.prototype.rawActivateImprovedTimezoneManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})},t.prototype.activateImprovedHexManagement=function(){return this.rawActivateImprovedHexManagement().then((function(e){return Vo(e)}))},t.prototype.rawActivateImprovedHexManagement=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})},t.prototype.activateImprovedGqlMultilocaleFields=function(){return this.rawActivateImprovedGqlMultilocaleFields().then((function(e){return Vo(e)}))},t.prototype.rawActivateImprovedGqlMultilocaleFields=function(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})},t.TYPE="site",t}(qo),Su=xu,Ou=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ku=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ou(t,e),t.prototype.create=function(e){return this.rawCreate(Ao(e,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawCreate=function(e){return this.client.request({method:"POST",url:"/workflows",body:e})},t.prototype.update=function(e,t){return this.rawUpdate(zo(e),Ao(t,{id:zo(e),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then((function(e){return Vo(e)}))},t.prototype.rawUpdate=function(e,t){return this.client.request({method:"PUT",url:"/workflows/".concat(e),body:t})},t.prototype.list=function(){return this.rawList().then((function(e){return Vo(e)}))},t.prototype.rawList=function(){return this.client.request({method:"GET",url:"/workflows"})},t.prototype.find=function(e){return this.rawFind(zo(e)).then((function(e){return Vo(e)}))},t.prototype.rawFind=function(e){return this.client.request({method:"GET",url:"/workflows/".concat(e)})},t.prototype.destroy=function(e){return this.rawDestroy(zo(e))},t.prototype.rawDestroy=function(e){return this.client.request({method:"DELETE",url:"/workflows/".concat(e)})},t.TYPE="workflow",t}(qo),Pu=ku,Tu=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Cu(e){return e.reduce((function(e,t,n){return 0===n?t:"".concat(e,"[").concat(t,"]")}),"")}function Nu(e,t){void 0===t&&(t=[]);for(var n=[],r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],u=i[1];if("number"==typeof u||"string"==typeof u)n.push([Cu(Tu(Tu([],t,!0),[a],!1)),u.toString()]);else if(!0===u)n.push([Cu(Tu(Tu([],t,!0),[a],!1)),"true"]);else if(!1===u)n.push([Cu(Tu(Tu([],t,!0),[a],!1)),"false"]);else if("object"==typeof u)if(Array.isArray(u))for(var l=0,s=u;l<s.length;l++){var c=s[l];n.push(["".concat(Cu(Tu(Tu([],t,!0),[a],!1)),"[]"),c.toString()])}else if(u)for(var f=0,p=Nu(u,Tu(Tu([],t,!0),[a],!1));f<p.length;f++){var d=p[f];n.push(d)}}return n}var Iu=o(9102),ju=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lu={BATCH_DATA_VALIDATION_IN_PROGRESS:"The schema of this model changed, we're re-running validations over every record in background. Please retry with this operation in a few seconds!",INSUFFICIENT_PERMISSIONS:"Your role does not permit this action",MAINTENANCE_MODE:"The project is currently in maintenance mode!",DELETE_RESTRICTION:"Sorry, but you cannot delete this resource, as it's currently used/referenced elsewhere!",INVALID_CREDENTIALS:"Credentials are incorrect!",INVALID_EMAIL:"Email address is incorrect!",INVALID_FORMAT:"The format of the parameters passed is incorrect, take a look at the details of the error to know what's wrong!",ITEM_LOCKED:"The operation cannot be completed as some other user is currently editing this record!",LINKED_FROM_PUBLISHED_ITEMS:"Couldn't unpublish the record, as some published records are linked to it!",PLAN_UPGRADE_REQUIRED:"Cannot proceed, please upgrade plan!",PUBLISHED_CHILDREN:"Couldn't unpublish the record, some children records are still published!",REQUIRED_2FA_SETUP:"This project requires every user to turn on 2-factor authentication! Please go to your Dashboard and activate it! (https://dashboard.datocms.com/account/setup-2fa)",REQUIRED_BY_ASSOCIATION:"Cannot delete the record, as it's required by other records:",STALE_ITEM_VERSION:"Someone else made a change while you were editing this record, please refresh the page!",TITLE_ALREADY_PRESENT:"There can only be one Title field per model",UNPUBLISHED_LINK:"Couldn't publish the record, as it links some unpublished records!",UNPUBLISHED_PARENT:"Couldn't publish the record, as the parent record is not published!",UPLOAD_IS_CURRENTLY_IN_USE:"Couldn't delete this asset, as it's currently used by some records!",UPLOAD_NOT_PASSING_FIELD_VALIDATIONS:"Couldn't update this asset since some records are failing to pass the validations!"},Du={build_triggers:"You've reached the maximum number of build triggers your plan allows",sandbox_environments:"You've reached the maximum number of environments your plan allows",item_types:"You've reached the maximum number of models your plan allows to create",items:"You've reached the maximum number of records your plan allows to create",locales:"You've reached the maximum number of locales your plan allows",mux_encoding_seconds:"You've reached the maximum video encoding limits of your plan",otp:"Two-factor authentication cannot be on the current plan",plugins:"You've reached the maximum number of plugins your plan allows",roles:"You've reached the maximum number of roles your plan allows to create",uploadable_bytes:"You've reached the file storage limits of your plan",users:"You've reached the maximum number of collaborators your plan allows to invite to the project",access_tokens:"You've reached the maximum number of API tokens your plan allows to create"},Ru=function(e){function t(t){var n=this.constructor,r=e.call(this,"API Error!")||this;return Object.setPrototypeOf(r,n.prototype),"captureStackTrace"in Error?Error.captureStackTrace(r,Au):r.stack=(new Error).stack,r.request=t.request,r.preCallStack=t.preCallStack,r.message="".concat(t.request.method," ").concat(t.request.url,": Timeout error"),r.preCallStack&&(r.stack+="\nCaused By:\n".concat(r.preCallStack)),r}return ju(t,e),t}(Error),Au=function(e){function t(n){var r=this.constructor,o=e.call(this,"API Error!")||this;Object.setPrototypeOf(o,r.prototype),"captureStackTrace"in Error?Error.captureStackTrace(o,t):o.stack=(new Error).stack,o.request=n.request,o.response=n.response,o.preCallStack=n.preCallStack;var i="".concat(n.request.method," ").concat(n.request.url,": ").concat(o.response.status," ").concat(o.response.statusText);return o.errors.length>0&&(i+="\n\n".concat(JSON.stringify(o.errors,null,2))),o.message=i,o.preCallStack&&(o.stack+="\nCaused By:\n".concat(o.preCallStack)),o}return ju(t,e),Object.defineProperty(t.prototype,"errors",{get:function(){return function(e){if("object"!=typeof e||null===e||!("data"in e))return!1;var t=e;if(!Array.isArray(t.data))return!1;var n=t;if(0===n.data.length)return!1;var r=n.data[0];return"object"==typeof r&&null!==r&&"id"in r&&"type"in r&&"attributes"in r&&"api_error"===r.type}(this.response.body)?this.response.body.data:[]},enumerable:!1,configurable:!0}),t.prototype.findError=function(e,t){var n=Array.isArray(e)?e:[e];return this.errors.find((function(e){return n.includes(e.attributes.code)&&(!t||("function"==typeof t?t(e.attributes.details):Object.entries(t).every((function(t){var n=t[0],r=t[1];return e.attributes.details[n]===r}))))}))},Object.defineProperty(t.prototype,"humanMessage",{get:function(){var e=this,t=this.findError("PLAN_UPGRADE_REQUIRED");if(t){var n=t.attributes.details.limit;return"".concat(Du[n],". Please head over to your account dashboard (https://dashboard.datocms.com/) to upgrade the plan or, if no publicly available plan suits your needs, contact our Sales team (https://www.datocms.com/contact) to get a custom quote!")}var r=Object.keys(Lu).filter((function(t){return e.findError(t)})).map((function(e){return Lu[e]}));return 0===r.length?null:r.join("\n")},enumerable:!1,configurable:!0}),t}(Error);function Fu(e){return new Promise((function(t){setTimeout(t,e)}))}var Mu=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vu=function(e){function t(){var t=this.constructor,n=e.call(this,"Promise canceled!")||this;return Object.setPrototypeOf(n,t.prototype),n}return Mu(t,e),t}(Error);function zu(e,t){var n=null,r=new Promise((function(r,o){n=function(){try{t&&t(),o(new Vu)}catch(e){o(e)}},("function"==typeof e?e():e).then(r,o)}));return n&&(r.cancel=n),r}var Uu,qu=function(){return qu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qu.apply(this,arguments)},Bu="undefined"!=typeof window&&void 0!==window.document;function Hu(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o.status,statusText:o.statusText,headers:(u=o.headers,l={},u.forEach((function(e,t){l[t]=e})),l),body:i},preCallStack:a};var u,l}!function(e){e[e.NONE=0]="NONE",e[e.BASIC=1]="BASIC",e[e.BODY=2]="BODY",e[e.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"}(Uu||(Uu={}));var $u=1;function Gu(e){return t=this,n=void 0,o=function(){var t,n,r,o,i,a,u,l,s,c,f,p,d,h,m,y,v,g,b,w,_,E,x,S,O,k,P,T;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(C){switch(C.label){case 0:if(t=$u,$u+=1,n=e.preCallStack,r=e.userAgent||"@datocms/rest-client-utils",o=e.retryCount||1,i=e.logLevel||Uu.NONE,a=!("autoRetry"in e)||e.autoRetry,u=e.logFn||function(){return!0},l=qu({"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(e.apiToken),"user-agent":r},e.extraHeaders?(N=e.extraHeaders,Object.fromEntries(Object.entries(N).map((function(e){var t=e[0],n=e[1];return[t.toLowerCase(),n]})))):{}),Bu&&delete l["user-agent"],s=e.baseUrl.replace(/\/$/,""),c=e.body?JSON.stringify(e.body,null,2):void 0,f=e.queryParams&&Object.keys(e.queryParams).length>0?"?".concat(new URLSearchParams(Nu(e.queryParams)).toString()):"",p="".concat(s).concat(e.url).concat(f),i>=Uu.BASIC){if(u("[".concat(t,"] ").concat(e.method," ").concat(p)),i>=Uu.BODY_AND_HEADERS)for(d=0,h=Object.entries(l||{});d<h.length;d++)m=h[d],y=m[0],v=m[1],u("[".concat(t,"] ").concat(y,": ").concat(v));i>=Uu.BODY&&c&&u("[".concat(t,"] ").concat(c))}C.label=1;case 1:return C.trys.push([1,12,,16]),g=zu((0,Iu.he)(p,{method:e.method,headers:l,body:c})),b=setTimeout((function(){g.cancel()}),e.requestTimeout||3e4),[4,g];case 2:if(w=C.sent(),clearTimeout(b),_=w.headers.get("Content-Type"),E=_&&!_.includes("application/json"),429!==w.status&&!E)return[3,4];if(!a||E&&"GET"!==e.method)throw new Au(Hu(e.method,p,l,e.body,w,void 0,n));return x=w.headers.has("X-RateLimit-Reset")?parseInt(w.headers.get("X-RateLimit-Reset"),10):o,i>=Uu.BASIC&&(429===w.status?u("[".concat(t,"] Rate limit exceeded, wait ").concat(x," seconds then retry...")):u("[".concat(t,'] Invalid response content type "').concat(_,'" (status ').concat(w.status,"). Wait ").concat(x," seconds then retry..."))),[4,Fu(1e3*x)];case 3:return C.sent(),[2,Gu(qu(qu({},e),{retryCount:o+1}))];case 4:return i>=Uu.BASIC&&(u("[".concat(t,"] Status: ").concat(w.status," (").concat(w.statusText,")")),i>=Uu.BODY_AND_HEADERS&&["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"].forEach((function(e){var n=w.headers.get(e);n&&u("[".concat(t,"] ").concat(e,": ").concat(n))}))),204!==w.status?[3,5]:(O=void 0,[3,7]);case 5:return[4,w.json()];case 6:O=C.sent(),C.label=7;case 7:return S=O,i>=Uu.BODY&&S&&u("[".concat(t,"] ").concat(JSON.stringify(S,null,2))),202!==w.status?[3,9]:[4,e.fetchJobResult(S.data.id)];case 8:if((k=C.sent()).status<200||k.status>=300)throw new Au(function(e,t,n,r,o,i,a){return{request:{url:t,method:e,headers:n,body:r},response:{status:o,statusText:"N/A",headers:{},body:i},preCallStack:a}}(e.method,p,l,e.body,k.status,k.payload,n));S=k.payload,C.label=9;case 9:return w.status>=200&&w.status<300?[2,S]:(P=new Au(Hu(e.method,p,l,e.body,w,S,n)),a&&P.findError("BATCH_DATA_VALIDATION_IN_PROGRESS")?(i>=Uu.BASIC&&u("[".concat(t,"] Data validation in progress, wait ").concat(o," seconds then retry...")),[4,Fu(1e3*o)]):[3,11]);case 10:return C.sent(),[2,Gu(qu(qu({},e),{retryCount:o+1}))];case 11:throw P;case 12:return(T=C.sent())instanceof Vu||function(e){return"object"==typeof e&&!!e&&"code"in e}(T)&&T.code.includes("ETIMEDOUT")?a&&o<5?(i>=Uu.BASIC&&u("[".concat(t,"] Timeout error, wait ").concat(o," seconds then retry...")),[4,Fu(1e3*o)]):[3,14]:[3,15];case 13:return C.sent(),[2,Gu(qu(qu({},e),{retryCount:o+1}))];case 14:throw new Ru(function(e,t,n,r,o){return{request:{url:t,method:e,headers:n,body:r},preCallStack:o}}(e.method,p,l,e.body,n));case 15:throw T;case 16:return[2]}var N}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o}var Yu=function(){return Yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yu.apply(this,arguments)},Wu=function(){function e(e){this.config=e,this.roles=new Jo(this),this.users=new ti(this),this.ssoUsers=new oi(this),this.auditLogEvents=new ui(this),this.menuItems=new ci(this),this.itemTypes=new di(this),this.fields=new yi(this),this.fieldsets=new bi(this),this.session=new Ei(this),this.accessTokens=new Oi(this),this.plugins=new Ti(this),this.jobResults=new Ii(this),this.subscriptionLimits=new Di(this),this.subscriptionFeatures=new Fi(this),this.buildEvents=new zi(this),this.items=new Wi(this),this.itemVersions=new Zi(this),this.uploads=new oa(this),this.uploadRequest=new ua(this),this.scheduledPublication=new ca(this),this.scheduledUnpublishing=new da(this),this.searchResults=new ga(this),this.environments=new _a(this),this.maintenanceMode=new Sa(this),this.webhooks=new Pa(this),this.webhookCalls=new ja(this),this.buildTriggers=new Ra(this),this.itemTypeFilters=new Ma(this),this.uploadFilters=new Ua(this),this.siteInvitations=new Ha(this),this.editingSessions=new Ya(this),this.ssoGroups=new Ka(this),this.ssoSettings=new Za(this),this.whiteLabelSettings=new nu(this),this.publicInfo=new iu(this),this.dailyUsages=new lu(this),this.usageCounters=new fu(this),this.uploadTags=new yu(this),this.uploadSmartTags=new _u(this),this.site=new Su(this),this.workflows=new Pu(this)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.config.baseUrl||e.defaultBaseUrl},enumerable:!1,configurable:!0}),e.prototype.request=function(e){var t=this;return Gu(Yu(Yu(Yu({},this.config),e),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v2.0.0",baseUrl:this.baseUrl,preCallStack:(new Error).stack,extraHeaders:Yu(Yu(Yu({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:function(e){return t.jobResultsFetcher?t.jobResultsFetcher(e):function(n){return r=this,o=void 0,a=function(){var n,r,o;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,Fu(1e3*(r+=1))];case 2:return i.sent(),[4,t.jobResults.find(e)];case 3:return n=i.sent(),[3,5];case 4:if(!((o=i.sent())instanceof Au)||404!==o.response.status)throw o;return[3,5];case 5:if(!n)return[3,1];i.label=6;case 6:return[2,n]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function u(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,u)}l((a=a.apply(r,o||[])).next())}));var r,o,i,a}()}}))},e.prototype.eventsChannelName=function(){return e=this,t=void 0,r=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(t){switch(t.label){case 0:return this.cachedEventsChannelName?[2,this.cachedEventsChannelName]:[4,this.site.rawFind()];case 1:return e=t.sent().data,this.cachedEventsChannelName=this.config.environment?"private-site-".concat(e.id,"-environment-").concat(this.config.environment):"private-site-".concat(e.id),[2,this.cachedEventsChannelName]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}));var e,t,n,r},e.defaultBaseUrl="https://site-api.datocms.com",e}();function Qu(e,t,n){var r=this;if(void 0===n&&(n={}),!n.filename||!("name"in t))throw new Error("Missing filename, please provide it as an option!");var o=n.filename||t.name,i=!1,a=void 0;return zu((function(){return u=r,l=void 0,c=function(){var r,u,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(s){switch(s.label){case 0:return n.onProgress&&(null==n||n.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:o}})),[4,e.uploadRequest.create({filename:o})];case 1:if(r=s.sent(),u=r.id,l=r.url,i)throw new Vu;return n.onProgress&&n.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),a=function(e,t,n){var r=(void 0===n?{}:n).onProgress,o=new XMLHttpRequest;return zu(new Promise((function(n,i){r&&o.upload&&(o.upload.onprogress=function(e){e.lengthComputable&&r({type:"UPLOADING_FILE",payload:{progress:Math.round(e.loaded/e.total*100)}})}),o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n():i(new Error("Status ".concat(o.status))))},o.addEventListener("error",i,!1),o.open("PUT",t,!0),o.send(e)})),(function(){o.onreadystatechange=null,o.abort()}))}(t,l,n),[4,a];case 2:return s.sent(),[2,u]}}))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}o((c=c.apply(u,l||[])).next())}));var u,l,s,c}),(function(){a?a.cancel():i=!0}))}var Ku=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xu=function(){return Xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xu.apply(this,arguments)},Ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ku(t,e),t.prototype.createFromFileOrBlob=function(e){var t,n=this,r=!1;return zu((function(){return o=n,i=void 0,u=function(){var n,o,i,a,u;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(l){switch(l.label){case 0:if(r)throw new Vu;return n=e.fileOrBlob,o=e.filename,i=e.onProgress,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["fileOrBlob","filename","onProgress"]),[4,t=Qu(this.client,n,{filename:o,onProgress:i})];case 1:return u=l.sent(),i&&i({type:"CREATING_UPLOAD_OBJECT"}),[2,this.create(Xu(Xu({},a),{path:u}))]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{l(u.next(e))}catch(e){t(e)}}function r(e){try{l(u.throw(e))}catch(e){t(e)}}function l(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}l((u=u.apply(o,i||[])).next())}));var o,i,a,u}),(function(){t?t.cancel():r=!0}))},t}(oa),Zu=Ju,el=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=function(e){function t(t){var n=e.call(this,t)||this;return n.uploads=new Zu(n),n}return el(t,e),t}(Wu),nl=o(6932);function rl(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(0===(e=e.trim()).length)return!1;if(!0!==nl.XMLValidator.validate(e))return!1;let t;const n=new nl.XMLParser;try{t=n.parse(e)}catch{return!1}return!!t&&"svg"in t}function ol(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z"})})}function il(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zM354.2 80L317.5 24.9C307.1 9.4 289.6 0 270.9 0H177.1c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H80.1 32 24C10.7 80 0 90.7 0 104s10.7 24 24 24H35.6L59.6 452.7c2.5 33.4 30.3 59.3 63.8 59.3H324.6c33.5 0 61.3-25.9 63.8-59.3L412.4 128H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8H367.9 354.2zm10.1 48L340.5 449.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128H364.3z"})})}var al={root:"ImageViewer-module__root--PHPSR",medium:"ImageViewer-module__medium--xtt2R",small:"ImageViewer-module__small--C5ma5",border:"ImageViewer-module__border--CocHd",clickable:"ImageViewer-module__clickable--YNkn4",selected:"ImageViewer-module__selected--v7MzH",image:"ImageViewer-module__image--PBt7a",imageWithFilename:"ImageViewer-module__imageWithFilename--szUif",raw:"ImageViewer-module__raw--xfmgD",caption:"ImageViewer-module__caption--qKvmP",dropdown:"ImageViewer-module__dropdown--V_fG8",dropdownButton:"ImageViewer-module__dropdownButton--edHOU",dropdownDeleteButton:"ImageViewer-module__dropdownDeleteButton--M4_Y7",dropdownMenu:"ImageViewer-module__dropdownMenu--ziYe3",dropdownMenuButton:"ImageViewer-module__dropdownMenuButton--Fnta0",dropdownMenuDeleteButton:"ImageViewer-module__dropdownMenuDeleteButton--Jj5DS",tag:"ImageViewer-module__tag--PrjB5",tagText:"ImageViewer-module__tagText--LOlAw",filename:"ImageViewer-module__filename--ZX4Qx"};function ul(t){var n,r,o,i,a=t.image,u=t.component,l=void 0===u?"div":u,s=t.selected,c=t.showTag,f=t.disabled,p=t.size,d=void 0===p?"l":p,h=t.onDelete,m=t.onShowUpload,y=t.onShowRaw,v=t.onClick,g=(0,b.useState)(!1),w=g[0],_=g[1],E=null,x=v?"button":l,S=(o=function(){return _(!1)},i=(0,b.useRef)(),(0,b.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&o()};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}),[i]),i);return"svg"===a.type&&(E=(0,e.jsx)("div",{className:al.raw,dangerouslySetInnerHTML:{__html:a.raw}})),"image"===a.type&&(E=(0,e.jsx)("img",{src:a.url,alt:a.filename})),(0,e.jsxs)(x,{className:k()(al.root,(n={},n[al.border]=v||h,n[al.clickable]=v,n[al.selected]=s,n[al.small]="s"===d,n[al.medium]="m"===d,n)),onClick:v?function(){return v(a)}:void 0,disabled:f,children:[(h||m||y)&&(0,e.jsxs)("div",{ref:S,children:[(0,e.jsx)("div",{className:al.dropdown,children:y||m||!h?(0,e.jsxs)("button",{type:"button",className:al.dropdownButton,onClick:function(){return _(!w)},children:[(0,e.jsx)(ol,{}),(0,e.jsx)("span",{className:"sr-only",children:w?"Close menu":"Open menu"})]}):(0,e.jsxs)("button",{type:"button",className:k()(al.dropdownButton,al.dropdownDeleteButton),onClick:function(){return h(a)},children:[(0,e.jsx)(il,{}),(0,e.jsx)("span",{className:"sr-only",children:"Delete icon"})]})}),w&&(0,e.jsxs)("div",{className:al.dropdownMenu,children:["svg"===a.type&&y&&(0,e.jsx)("button",{type:"button",className:al.dropdownMenuButton,onClick:function(){return y(a)},children:"Show raw details"}),"image"===a.type&&m&&(0,e.jsx)("button",{type:"button",className:al.dropdownMenuButton,onClick:function(){return m(a)},children:"Show image details"}),h&&(0,e.jsx)("button",{type:"button",className:al.dropdownMenuDeleteButton,onClick:function(){return h(a)},children:"Delete"})]})]}),c&&(0,e.jsx)("div",{className:al.tag,children:(0,e.jsxs)("p",{className:k()(al.tagText,"body--small"),children:["svg"===a.type&&"Raw"," ","image"===a.type&&"Raw + Image"]})}),(0,e.jsx)("div",{className:k()(al.image,(r={},r[al.imageWithFilename]=a.filename,r)),children:E}),a.filename&&(0,e.jsx)("div",{className:al.caption,children:(0,e.jsx)("span",{className:k()("body--medium",al.filename),children:a.filename})})]})}var ll={root:"ImageList-module__root--zkSEd",small:"ImageList-module__small--Zz7tX",spinner:"ImageList-module__spinner--GZyBO"};function sl(t){var n,r=t.svgs,o=t.activeSvgs,i=t.onDelete,a=t.onShowUpload,u=t.onShowRaw,l=t.onClick,s=t.size,c=t.showTag,f=t.disabled,p=t.isLoading;return r&&0!==r.length?(0,e.jsxs)("ul",{className:k()(ll.root,(n={},n[ll.isLoading]=p,n[ll.small]="s"===s,n)),children:[null==r?void 0:r.map((function(t){var n;return(0,e.jsx)(ul,{component:"li",image:t,onDelete:i,onShowUpload:a,onShowRaw:u,onClick:l,selected:null===(n=null==o?void 0:o.map((function(e){return e.id})))||void 0===n?void 0:n.includes(t.id),size:s,showTag:c,disabled:f},t.id)})),p&&(0,e.jsx)("div",{className:ll.spinner,children:(0,e.jsx)(xo,{})})]}):null}var cl={root:"SvgViewer-module__root--JLl6V",svgInput:"SvgViewer-module__svgInput--p8Mqd",textarea:"SvgViewer-module__textarea--P5eOo",viewer:"SvgViewer-module__viewer--ps6H1",viewerSvg:"SvgViewer-module__viewerSvg--RPqBE",viewerSvgElement:"SvgViewer-module__viewerSvgElement--VfV8v",filename:"SvgViewer-module__filename--yVmDX",viewerText:"SvgViewer-module__viewerText--L91TL",text:"SvgViewer-module__text--FQb4f",viewerFilename:"SvgViewer-module__viewerFilename--gMlUO",filenameInput:"SvgViewer-module__filenameInput--YggJw"};function fl(t){var n,r=t.value,o=t.onChangeSvg,i=t.filename,a=t.onChangeFilename,u=(0,b.useMemo)((function(){return r&&!rl(r)}),[r]);return(0,e.jsxs)("form",{className:cl.root,children:[(0,e.jsxs)("div",{className:cl.svgInput,children:[(0,e.jsx)("label",{className:"sr-only",htmlFor:"embeded-svg",children:"Embeded svg"}),(0,e.jsx)("textarea",{className:k()(cl.textarea,(n={},n[cl.textareaError]=u,n)),name:"embeded-svg",id:"embeded-svg",value:r,onChange:function(e){return o(e.target.value)},placeholder:"<svg>Paste your svg here</svg>"})]}),(0,e.jsxs)("div",{className:cl.viewer,children:[(0,e.jsxs)("div",{className:cl.viewerSvg,children:[rl(r)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("div",{className:cl.viewerSvgElement,dangerouslySetInnerHTML:{__html:r}})}),(u||!r)&&(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:cl.viewerText,children:[r&&u&&(0,e.jsx)(z,{children:"Use a valid svg string"}),!r&&(0,e.jsxs)("p",{className:cl.text,children:[(0,e.jsx)("span",{className:"h3",children:"Nothing to show"}),(0,e.jsx)("span",{className:"body--medium",children:"Input a valid svg"})]})]})})]}),(0,e.jsx)("div",{className:cl.viewerFilename,children:rl(r)&&a&&(0,e.jsx)("input",{className:cl.filenameInput,value:i,onChange:function(e){return a(e.target.value)},autoFocus:!0})})]})]})}function pl(){return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",children:(0,e.jsx)("path",{fill:"currentColor",d:"M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24V232H40c-13.3 0-24 10.7-24 24s10.7 24 24 24H200V440c0 13.3 10.7 24 24 24s24-10.7 24-24V280H408c13.3 0 24-10.7 24-24s-10.7-24-24-24H248V72z"})})}var dl=function(){return dl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dl.apply(this,arguments)},hl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},ml=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}};function yl(e,t){return hl(this,void 0,void 0,(function(){var n,r=this;return ml(this,(function(o){switch(o.label){case 0:return[4,e.loadFieldsUsingPlugin()];case 1:return n=o.sent(),[4,Promise.all(n.map((function(n){return hl(r,void 0,void 0,(function(){var r,o;return ml(this,(function(i){switch(i.label){case 0:return r=n.attributes.appearance.parameters,t&&r.selectedSvgs?(o=r.selectedSvgs.filter((function(e){return null==t?void 0:t.find((function(t){return t.id===e.id}))})),[4,e.updateFieldAppearance(n.id,[{operation:"updateEditor",newParameters:dl(dl({},r),{selectedSvgs:o})}])]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))})))];case 2:return o.sent(),[2]}}))}))}var vl=function(){return vl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vl.apply(this,arguments)},gl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},bl=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}},wl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function _l(t){var n,r,o=t.ctx,i=o.plugin.attributes.parameters,a=(0,b.useState)(""),u=a[0],l=a[1],s=(0,b.useState)(io),c=s[0],f=s[1],p=(0,b.useState)(!1),d=p[0],h=p[1],m=(0,b.useState)(!1),y=m[0],v=m[1],g=(0,b.useState)(!1),w=g[0],_=g[1],E=o.currentUserAccessToken,x=o.environment;function S(e){return gl(this,void 0,void 0,(function(){return bl(this,(function(t){switch(t.label){case 0:return[4,o.updatePluginParameters(vl(vl({},i),{svgs:wl([e],i.svgs||[],!0)}))];case 1:return t.sent(),[2]}}))}))}function O(e){return gl(this,void 0,void 0,(function(){var t;return bl(this,(function(n){switch(n.label){case 0:if(!e||!rl(e))return[2];t={id:wo(),filename:c,type:"svg",raw:e},n.label=1;case 1:return n.trys.push([1,,3,4]),h(!0),[4,S(t)];case 2:return n.sent(),[3,4];case 3:return h(!1),l(""),f(io),[7];case 4:return[2]}}))}))}function k(e){return gl(this,void 0,void 0,(function(){var t,n,o;return bl(this,(function(i){switch(i.label){case 0:if(!e||!rl(e))return[2];t=new Blob([e],{type:"image/svg+xml"}),n=new File([t],c),i.label=1;case 1:return i.trys.push([1,,4,5]),h(!0),[4,r.uploads.createFromFileOrBlob({fileOrBlob:n,filename:"".concat(c,".svg")})];case 2:return o=i.sent(),[4,S({id:wo(),filename:c,type:"image",imageId:o.id,url:o.url,raw:e})];case 3:return i.sent(),[3,5];case 4:return h(!1),l(""),f(io),[7];case 5:return[2]}}))}))}function P(e){return gl(this,void 0,void 0,(function(){var t;return bl(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),v(!0),[4,r.uploads.destroy(e)];case 1:return n.sent(),[3,4];case 2:return t=n.sent(),console.error(t),[3,4];case 3:return v(!1),[7];case 4:return[2]}}))}))}function C(e){var t;return gl(this,void 0,void 0,(function(){var n;return bl(this,(function(r){switch(r.label){case 0:return"image"!==e.type?[3,2]:[4,P(e.imageId)];case 1:r.sent(),r.label=2;case 2:return n=null===(t=i.svgs)||void 0===t?void 0:t.filter((function(t){return t.id!==e.id})),[4,o.updatePluginParameters(vl(vl({},i),{svgs:n}))];case 3:return r.sent(),[4,yl(o,n)];case 4:return r.sent(),[2]}}))}))}function N(e){var t;return gl(this,void 0,void 0,(function(){var n;return bl(this,(function(r){switch(r.label){case 0:return n=null===(t=i.svgs)||void 0===t?void 0:t.map((function(t){return t.id===e.id?vl(vl({},t),{filename:e.filename}):t})),[4,o.updatePluginParameters(vl(vl({},i),{svgs:n}))];case 1:return r.sent(),o.notice("Svg renamed successfully!"),[2]}}))}))}return E&&(r=function(e){return new tl(e)}({apiToken:E,environment:x})),(0,e.jsx)(T,{ctx:o,children:(0,e.jsxs)("div",{className:"layout",children:[(0,e.jsx)(fl,{value:u,onChangeSvg:l,filename:c,onChangeFilename:f}),(0,e.jsxs)("div",{className:"PageScreen-module__uploadContainer--unBcu",children:[d&&(0,e.jsx)(xo,{}),!d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Oo,{disabled:!rl(u),onClick:function(){return function(e){return gl(this,void 0,void 0,(function(){return bl(this,(function(t){switch(t.label){case 0:return w?[4,k(e)]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,O(e)]}}))}))}(u)},leftIcon:(0,e.jsx)(pl,{}),children:"Upload raw svg"}),E&&(0,e.jsx)("div",{children:(0,e.jsx)(jo,{name:"uploadToMedia",id:"uploadToMedia",label:"Upload SVG to the Media library",value:w,onChange:function(e){return _(e)}})})]})]}),(0,e.jsx)("h3",{className:"h2",children:"Uploaded svgs"}),0===(null===(n=i.svgs)||void 0===n?void 0:n.length)&&(0,e.jsx)("p",{children:"Nothing to show (yet)"}),(0,e.jsx)(sl,{svgs:i.svgs,onDelete:y?void 0:C,onShowUpload:function(e){return gl(this,void 0,void 0,(function(){var t;return bl(this,(function(n){switch(n.label){case 0:return t=null,"image"!==e.type?[3,2]:[4,o.editUpload(e.imageId)];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.attributes.basename!==e.filename?[4,N(vl(vl({},e),{filename:t.attributes.basename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},onShowRaw:function(e){return gl(this,void 0,void 0,(function(){var t;return bl(this,(function(n){switch(n.label){case 0:return t=null,"svg"!==e.type?[3,2]:[4,o.openModal({id:oo,title:"Raw details",width:"s",parameters:{rawSvg:e}})];case 1:t=n.sent(),n.label=2;case 2:return t&&t.deleted?[4,C(e)]:[3,4];case 3:n.sent(),n.label=4;case 4:return t&&t.filename!==e.filename?[4,N(vl(vl({},e),{filename:t.filename}))]:[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},isLoading:y,showTag:!0})]})})}var El=function(){return El=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},El.apply(this,arguments)},xl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Sl(t){var n=t.ctx,r=n.plugin.attributes.parameters,o=n.parameters,i=(0,b.useState)(o.selectedSvgs||[]),a=i[0],u=i[1],l=(0,b.useState)(o.showAllSvgs||!1),s=l[0],c=l[1];return(0,b.useEffect)((function(){n.setParameters(El(El({},o),{selectedSvgs:s?[]:a,showAllSvgs:s}))}),[a,s]),(0,e.jsxs)(T,{ctx:n,children:[(0,e.jsx)("h2",{className:"FieldExtensionConfigScreen-module__heading--ZG1IO",children:"Select the svgs that are selectable for the user"}),(0,e.jsx)("div",{className:"FieldExtensionConfigScreen-module__switch--g3jVD",children:(0,e.jsx)(jo,{name:"showAllSvgs",id:"showAllSvgs",label:"Select all SVGs",hint:"When this is selected you can select all SVGs uploaded in this field",value:s,onChange:c})}),(0,e.jsx)(sl,{svgs:r.svgs,activeSvgs:s?r.svgs:o.selectedSvgs,onClick:function(e){var t;if(null===(t=null==a?void 0:a.map((function(e){return e.id})))||void 0===t?void 0:t.includes(e.id)){var n=null==a?void 0:a.filter((function(t){return t.id!==e.id}));u(n)}else u(xl(xl([],a,!0),[e],!1))},disabled:s,showTag:!0})]})}var Ol=o(7361),kl=o.n(Ol);function Pl(t){var n=t.ctx,r=String(kl()(n.formValues,n.fieldPath)),o=n.plugin.attributes.parameters,i=n.parameters,a=i.showAllSvgs?o.svgs:i.selectedSvgs,u=(0,e.jsx)("p",{children:"No SVG images to show"});return r&&(u=(0,e.jsx)("div",{className:"FieldExtension-module__content--JmNOb",children:(0,e.jsx)(ul,{size:"s",image:{id:n.field.id,raw:r,type:"svg"},onDelete:function(){n.setFieldValue(n.fieldPath,"")}})})),!r&&a&&a.length>0&&(u=(0,e.jsx)(sl,{svgs:a,onClick:function(e){n.setFieldValue(n.fieldPath,e.raw)},size:"s"})),(0,e.jsx)(T,{ctx:n,children:u})}var Tl=JSON.parse('{"pC":"_SidebarPanel_4uwco_1","X0":"_SidebarPanel__header_4uwco_5","JP":"_SidebarPanel__header__title_4uwco_30","ig":"_SidebarPanel__header__chevron_4uwco_36","am":"_SidebarPanel__content_4uwco_42","aP":"_SidebarPanel__content--no-padding_4uwco_47"}');function Cl(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))}function Nl(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},b.createElement("path",{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))}function Il(e){var t,n=e.startOpen,r=void 0!==n&&n,o=e.title,i=e.children,a=e.noPadding,u=(0,b.useState)(r),l=u[0],s=u[1];return b.createElement("div",{className:Tl.pC},o&&b.createElement("button",{type:"button",className:Tl.X0,onClick:function(){s(!l)}},b.createElement("div",{className:Tl.JP},o),b.createElement("div",{className:Tl.ig},l?b.createElement(Cl,null):b.createElement(Nl,null))),l&&b.createElement("div",{className:k()(Tl.am,(t={},t[Tl.aP]=a,t))},i))}var jl={header:"RawSvgViewer-module__header--_aaee",title:"RawSvgViewer-module__title--R0gYS",input:"RawSvgViewer-module__input--i7vSo",editing:"RawSvgViewer-module__editing--LVDdB",buttonList:"RawSvgViewer-module__buttonList--bMN0E",editingText:"RawSvgViewer-module__editingText--wLDy_",button:"RawSvgViewer-module__button--JR2Fm",deleteButton:"RawSvgViewer-module__deleteButton--DuioO",svgLogo:"RawSvgViewer-module__svgLogo--ROrY7",rawCode:"RawSvgViewer-module__rawCode--hMDfX"},Ll=function(){return Ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ll.apply(this,arguments)};function Dl(t){var n,r=t.svg,o=t.onRename,i=t.onDelete,a=(0,b.useState)(!1),u=a[0],l=a[1],s=(0,b.useState)(r.filename),c=s[0],f=s[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:k()(jl.header,(n={},n[jl.editing]=u,n)),children:[(0,e.jsx)("div",{className:jl.svgLogo,dangerouslySetInnerHTML:{__html:r.raw}}),(0,e.jsxs)("div",{children:[u?(0,e.jsx)("input",{className:jl.input,value:c,onChange:function(e){return f(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&o&&o(Ll(Ll({},r),{filename:c}))}}):(0,e.jsx)("h2",{className:k()("h3",jl.title),children:c}),(0,e.jsx)("div",{className:jl.buttonList,children:u?(0,e.jsx)("p",{className:jl.editingText,children:"Press Enter to confirm"}):(0,e.jsxs)(e.Fragment,{children:[o&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{className:jl.button,type:"button",onClick:function(){l(!0)},children:(0,e.jsx)("span",{children:"Rename"})}),(0,e.jsx)("span",{children:"•"})]}),i&&(0,e.jsx)("button",{className:k()(jl.button,jl.deleteButton),type:"button",onClick:function(){return i(r)},children:(0,e.jsx)("span",{children:"Delete"})})]})})]})]}),(0,e.jsx)(Il,{title:"Raw data",startOpen:!0,children:(0,e.jsx)("pre",{className:jl.rawCode,children:r.raw})})]})}var Rl=function(){return Rl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rl.apply(this,arguments)};function Al(t){var n=t.ctx,r=n.parameters;return(0,e.jsx)(T,{ctx:n,children:r.rawSvg?(0,e.jsx)(Dl,{svg:r.rawSvg,onDelete:function(e){n.resolve(Rl(Rl({},e),{deleted:!0}))},onRename:function(e){n.resolve(e)}}):(0,e.jsx)("p",{children:"Nothing to show here"})})}var Fl=o(745),Ml=document.getElementById("root"),Vl=(0,Fl.s)(Ml);function zl(t){return Vl.render((0,e.jsx)(b.StrictMode,{children:t}))}!function(e){var t,r,o,b;void 0===e&&(e={}),t=this,r=void 0,b=function(){var t,r,o,b,w,_,E,x,S,O,k,P,T,C,N,I,j,L,D,R,A,F,M;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(V){switch(V.label){case 0:return t=e.assetSources,r=e.mainNavigationTabs,o=e.settingsAreaSidebarItemGroups,b=e.contentAreaSidebarItems,w=e.manualFieldExtensions,_=e.itemFormSidebarPanels,E=e.itemFormSidebars,x=e.itemFormOutlets,S=null,O=null,k=n()({methods:{sdkVersion:function(){return"0.2.0"},implementedHooks:function(){return Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],n=e[1];return"function"==typeof n?[t,!0]:[t,n]})))},assetSources:t,mainNavigationTabs:r,settingsAreaSidebarItemGroups:o,contentAreaSidebarItems:b,manualFieldExtensions:w,itemFormSidebarPanels:_,itemFormSidebars:E,itemFormOutlets:x,overrideFieldExtensions:v(e.overrideFieldExtensions),customMarksForStructuredTextField:v(e.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:v(e.customBlockStylesForStructuredTextField),onChange:function(e){S&&S(e)},callMethodMergingBootCtx:function(e,t,n){return O?O(e,t,n):null}}}),[4,k.promise];case 1:return[4,(P=V.sent()).getSettings()];case 2:return T=V.sent(),i(P,T)&&(C=T,S=function(e){C=e},O=function(t,n,r){var o;if(t in e)return(o=e)[t].apply(o,y(y([],n,!1),[m(m(m({},P),C),r)],!1))},e.onBoot&&e.onBoot(m(m({},P),C))),a(P,T)&&(S=M=function(t){e.renderPage&&e.renderPage(t.pageId,m(m({},P),t))},M(T)),u(P,T)&&(N=g(P),S=M=function(t){e.renderConfigScreen&&e.renderConfigScreen(m(m(m({},P),t),N))},M(T)),l(P,T)&&(I=g(P),S=M=function(t){e.renderModal&&e.renderModal(t.modalId,m(m(m({},P),t),I))},M(T)),h(P,T)&&(j=g(P),S=M=function(t){e.renderAssetSource&&e.renderAssetSource(t.assetSourceId,m(m(m({},P),t),j))},M(T)),s(P,T)&&(L=g(P),S=M=function(t){e.renderItemFormSidebarPanel&&e.renderItemFormSidebarPanel(t.sidebarPaneId,m(m(m({},P),t),L))},M(T)),c(P,T)&&(D=g(P),S=M=function(t){e.renderItemFormSidebar&&e.renderItemFormSidebar(t.sidebarId,m(m(m({},P),t),D))},M(T)),f(P,T)&&(R=g(P),S=M=function(t){e.renderItemFormOutlet&&e.renderItemFormOutlet(t.itemFormOutletId,m(m(m({},P),t),R))},M(T)),p(P,T)&&(A=g(P),S=M=function(t){e.renderFieldExtension&&e.renderFieldExtension(t.fieldExtensionId,m(m(m({},P),t),A))},M(T)),d(P,T)&&(F=g(P),S=M=function(t){e.renderManualFieldExtensionConfigScreen&&e.renderManualFieldExtensionConfigScreen(t.fieldExtensionId,m(m(m({},P),t),F))},M(T)),[2]}}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{u(b.next(e))}catch(e){n(e)}}function a(e){try{u(b.throw(e))}catch(e){n(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}u((b=b.apply(t,r||[])).next())}))}({onBoot:function(e){return t=this,n=void 0,o=function(){var t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}(this,(function(n){switch(n.label){case 0:return t=e.plugin.attributes.parameters,[4,yl(e,t.svgs)];case 1:return n.sent(),[2]}}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function u(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,u)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o},renderConfigScreen:function(t){return zl((0,e.jsx)(ho,{ctx:t}))},mainNavigationTabs:function(e){var t,n,r=e.plugin.attributes.parameters;if(r.pageType&&r.pageType.value!==Xr.MainNavigationTabs)return[];var o=[(null===(t=r.placement)||void 0===t?void 0:t.value)||uo[0].value,(null===(n=r.menuItemPlacement)||void 0===n?void 0:n.value)||co[0].value];return[{label:to,icon:ro,placement:o,pointsTo:{pageId:"".concat(no,"--").concat(e.plugin.id)}}]},contentAreaSidebarItems:function(e){var t,n,r,o=e.plugin.attributes.parameters;if((null===(t=o.pageType)||void 0===t?void 0:t.value)!==Xr.ContentAreaSidebarItems)return[];var i=[(null===(n=o.placement)||void 0===n?void 0:n.value)||uo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||lo[0].value];return[{label:to,icon:ro,placement:i,pointsTo:{pageId:"".concat(no,"--").concat(e.plugin.id)}}]},settingsAreaSidebarItemGroups:function(e){var t,n,r,o=e.plugin.attributes.parameters;return e.currentRole.attributes.can_edit_schema&&(null===(t=o.pageType)||void 0===t?void 0:t.value)===Xr.SettingsAreaSidebarItemGroups?[{label:"Plugin",placement:[(null===(n=o.placement)||void 0===n?void 0:n.value)||uo[0].value,(null===(r=o.menuItemPlacement)||void 0===r?void 0:r.value)||so[0].value],items:[{label:to,icon:ro,pointsTo:{pageId:"".concat(no,"--").concat(e.plugin.id)}}]}]:[]},renderPage:function(t,n){if(t==="".concat(no,"--").concat(n.plugin.id))return zl((0,e.jsx)(_l,{ctx:n}))},renderModal:function(t,n){if(t===oo)return zl((0,e.jsx)(Al,{ctx:n}))},manualFieldExtensions:function(){return[{id:"svg-selector",name:"SVG Selector",type:"editor",fieldTypes:["string","text"],configurable:!0}]},renderManualFieldExtensionConfigScreen:function(t,n){return zl((0,e.jsx)(Sl,{ctx:n}))},renderFieldExtension:function(t,n){return zl((0,e.jsx)(Pl,{ctx:n}))}})}()}();
|