@agentica/chat 0.12.21 → 0.13.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.
@@ -1 +0,0 @@
1
- import{l as x,n as K,o as F}from"./AgenticaChatApplication-Bss6Wmz6.js";var A;(function(a){a.is=m=>typeof m=="object"&&m!==null&&typeof m.openapi=="string"&&m.openapi.startsWith("3.0")})(A||(A={}));var S;(function(a){a.is=m=>typeof m=="object"&&m!==null&&typeof m.openapi=="string"&&m.openapi.startsWith("3.1")})(S||(S={}));var _;(function(a){a.is=m=>typeof m=="object"&&m!==null&&typeof m.swagger=="string"&&m.swagger.startsWith("2.0")})(_||(_={}));var q;(function(a){a.convert=i=>i["x-samchon-emended"]===!0?i:{...i,components:w(i.components??{}),paths:i.paths?Object.fromEntries(Object.entries(i.paths).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,O(i)(r)])):void 0,webhooks:i.webhooks?Object.fromEntries(Object.entries(i.webhooks).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,m(i)(r)]).filter(([e,r])=>r!==void 0)):void 0,"x-samchon-emended":!0};const m=i=>e=>{var o,d;if(!n.isReference(e))return O(i)(e);const r=(d=(o=i.components)==null?void 0:o.pathItems)==null?void 0:d[e.$ref.split("/").pop()??""];return r?O(i)(r):void 0},O=i=>e=>({...e,...e.get?{get:b(i)(e)(e.get)}:void 0,...e.put?{put:b(i)(e)(e.put)}:void 0,...e.post?{post:b(i)(e)(e.post)}:void 0,...e.delete?{delete:b(i)(e)(e.delete)}:void 0,...e.options?{options:b(i)(e)(e.options)}:void 0,...e.head?{head:b(i)(e)(e.head)}:void 0,...e.patch?{patch:b(i)(e)(e.patch)}:void 0,...e.trace?{trace:b(i)(e)(e.trace)}:void 0}),b=i=>e=>r=>({...r,parameters:e.parameters!==void 0||r.parameters!==void 0?[...e.parameters??[],...r.parameters??[]].map(o=>{var u,s,v,p;if(!n.isReference(o))return g(i.components??{})(o);const d=o.$ref.startsWith("#/components/headers/")?(s=(u=i.components)==null?void 0:u.headers)==null?void 0:s[o.$ref.split("/").pop()??""]:(p=(v=i.components)==null?void 0:v.parameters)==null?void 0:p[o.$ref.split("/").pop()??""];return d!==void 0?g(i.components??{})({...d,in:"header"}):void 0}).filter((o,d)=>d!==void 0):void 0,requestBody:r.requestBody?$(i)(r.requestBody):void 0,responses:r.responses?Object.fromEntries(Object.entries(r.responses).filter(([o,d])=>d!==void 0).map(([o,d])=>[o,R(i)(d)]).filter(([o,d])=>d!==void 0)):void 0}),g=i=>e=>({...e,schema:l(i)(e.schema),examples:e.examples?Object.fromEntries(Object.entries(e.examples).map(([r,o])=>{var d;return[r,n.isReference(o)?(d=i.examples)==null?void 0:d[o.$ref.split("/").pop()??""]:o]}).filter(([r,o])=>o!==void 0)):void 0}),$=i=>e=>{var r,o;if(n.isReference(e)){const d=(o=(r=i.components)==null?void 0:r.requestBodies)==null?void 0:o[e.$ref.split("/").pop()??""];if(d===void 0)return;e=d}return{...e,content:e.content?E(i.components??{})(e.content):void 0}},R=i=>e=>{var r,o;if(n.isReference(e)){const d=(o=(r=i.components)==null?void 0:r.responses)==null?void 0:o[e.$ref.split("/").pop()??""];if(d===void 0)return;e=d}return{...e,content:e.content?E(i.components??{})(e.content):void 0,headers:e.headers?Object.fromEntries(Object.entries(e.headers).filter(([d,u])=>u!==void 0).map(([d,u])=>[d,(()=>{var v,p;if(n.isReference(u)===!1)return g(i.components??{})({...u,in:"header"});const s=u.$ref.startsWith("#/components/headers/")?(p=(v=i.components)==null?void 0:v.headers)==null?void 0:p[u.$ref.split("/").pop()??""]:void 0;return s!==void 0?g(i.components??{})({...s,in:"header"}):void 0})()]).filter(([d,u])=>u!==void 0)):void 0}},E=i=>e=>Object.fromEntries(Object.entries(e).filter(([r,o])=>o!==void 0).map(([r,o])=>[r,{...o,schema:o.schema?l(i)(o.schema):void 0,examples:o.examples?Object.fromEntries(Object.entries(o.examples).map(([d,u])=>{var s;return[d,n.isReference(u)?(s=i.examples)==null?void 0:s[u.$ref.split("/").pop()??""]:u]}).filter(([d,u])=>u!==void 0)):void 0}])),w=i=>({schemas:Object.fromEntries(Object.entries(i.schemas??{}).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,l(i)(r)])),securitySchemes:i.securitySchemes}),l=i=>e=>{const r=[],o={title:e.title,description:e.description,...Object.fromEntries(Object.entries(e).filter(([s,v])=>s.startsWith("x-")&&v!==void 0))},d={value:!1,default:void 0},u=s=>{var v,p,j,N,z,M,U;if(s.nullable===!0&&(d.value||(d.value=!0),s.default===null&&(d.default=null)),Array.isArray(s.enum)&&((v=s.enum)!=null&&v.length)&&((p=s.enum)!=null&&p.some(c=>c===null))&&(d.value||(d.value=!0)),n.isMixed(s)){s.const!==void 0&&u({...s,type:void 0,oneOf:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),s.oneOf!==void 0&&u({...s,type:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),s.anyOf!==void 0&&u({...s,type:void 0,oneOf:void 0,allOf:void 0,$ref:void 0}),s.allOf!==void 0&&u({...s,type:void 0,oneOf:void 0,anyOf:void 0,$ref:void 0});for(const c of s.type)u(c==="boolean"||c==="number"||c==="string"?{...s,enum:(j=s.enum)!=null&&j.length&&s.enum.filter(y=>y!==null)?s.enum.filter(y=>typeof y===c):void 0,type:c}:c==="integer"?{...s,enum:(N=s.enum)!=null&&N.length&&s.enum.filter(y=>y!==null)?s.enum.filter(y=>y!==null&&typeof y=="number"&&Number.isInteger(y)):void 0,type:c}:{...s,type:c})}else if(n.isOneOf(s))s.oneOf.forEach(u);else if(n.isAnyOf(s))s.anyOf.forEach(u);else if(n.isAllOf(s))s.allOf.length===1?u(s.allOf[0]):r.push(f(i)(s));else if(n.isBoolean(s))if((z=s.enum)!=null&&z.length&&s.enum.filter(c=>c!==null).length)for(const c of s.enum.filter(y=>y!==null))r.push({const:c,...s,type:void 0,enum:void 0,default:void 0});else r.push({...s,default:s.default??void 0,enum:void 0});else if(n.isInteger(s)||n.isNumber(s))if((M=s.enum)!=null&&M.length&&s.enum.filter(c=>c!==null))for(const c of s.enum.filter(y=>y!==null))r.push({const:c,...s,type:void 0,enum:void 0,default:void 0,minimum:void 0,maximum:void 0,exclusiveMinimum:void 0,exclusiveMaximum:void 0,multipleOf:void 0});else r.push({...s,default:s.default??void 0,enum:void 0,...typeof s.exclusiveMinimum=="number"?{minimum:s.exclusiveMinimum,exclusiveMinimum:!0}:{exclusiveMinimum:s.exclusiveMinimum},...typeof s.exclusiveMaximum=="number"?{maximum:s.exclusiveMaximum,exclusiveMaximum:!0}:{exclusiveMaximum:s.exclusiveMaximum}});else if(n.isString(s))if((U=s.enum)!=null&&U.length&&s.enum.filter(c=>c!==null).length)for(const c of s.enum.filter(y=>y!==null))r.push({const:c,...s,type:void 0,enum:void 0,default:void 0});else r.push({...s,default:s.default??void 0,enum:void 0});else n.isArray(s)?Array.isArray(s.items)?r.push({...s,items:void 0,prefixItems:s.items.map(l(i)),additionalItems:typeof s.additionalItems=="object"&&s.additionalItems!==null?l(i)(s.additionalItems):s.additionalItems}):Array.isArray(s.prefixItems)?r.push({...s,items:void 0,prefixItems:s.prefixItems.map(l(i)),additionalItems:typeof s.additionalItems=="object"&&s.additionalItems!==null?l(i)(s.additionalItems):s.additionalItems}):s.items===void 0?r.push({...s,items:void 0,prefixItems:[]}):r.push({...s,items:l(i)(s.items),prefixItems:void 0,additionalItems:void 0}):n.isObject(s)?r.push({...s,properties:s.properties?Object.fromEntries(Object.entries(s.properties).filter(([c,y])=>y!==void 0).map(([c,y])=>[c,l(i)(y)])):{},additionalProperties:s.additionalProperties?typeof s.additionalProperties=="object"&&s.additionalProperties!==null?l(i)(s.additionalProperties):s.additionalProperties:void 0,required:s.required??[]}):n.isRecursiveReference(s)?r.push({...s,$ref:s.$recursiveRef,$recursiveRef:void 0}):r.push(s)};return u(e),d.value===!0&&!r.some(s=>s.type==="null")&&r.push({type:"null",default:d.default}),{...r.length===0?{type:void 0}:r.length===1?{...r[0]}:{oneOf:r.map(s=>({...s,nullable:void 0}))},...o,nullable:void 0}},f=i=>e=>{const r=e.allOf.map(o=>t(i)(o));return r.some(o=>o===null)?{type:void 0,allOf:void 0}:{...e,type:"object",properties:Object.fromEntries(r.map(o=>Object.entries((o==null?void 0:o.properties)??{})).flat().map(([o,d])=>[o,l(i)(d)])),allOf:void 0,required:[...new Set(r.map(o=>(o==null?void 0:o.required)??[]).flat())]}},t=i=>(e,r=new Set)=>{var o,d;return n.isObject(e)?e.properties!==void 0&&!e.additionalProperties?e:null:r.has(e)?null:(r.add(e),n.isReference(e)?t(i)(((o=i.schemas)==null?void 0:o[e.$ref.split("/").pop()??""])??{},r):n.isRecursiveReference(e)?t(i)(((d=i.schemas)==null?void 0:d[e.$recursiveRef.split("/").pop()??""])??{},r):null)};let n;(function(i){i.isConstant=e=>e.const!==void 0,i.isBoolean=e=>e.type==="boolean",i.isInteger=e=>e.type==="integer",i.isNumber=e=>e.type==="number",i.isString=e=>e.type==="string",i.isArray=e=>e.type==="array",i.isObject=e=>e.type==="object",i.isReference=e=>e.$ref!==void 0,i.isRecursiveReference=e=>e.$recursiveRef!==void 0,i.isAllOf=e=>e.allOf!==void 0,i.isAnyOf=e=>e.anyOf!==void 0,i.isOneOf=e=>e.oneOf!==void 0,i.isNullOnly=e=>e.type==="null",i.isMixed=e=>Array.isArray(e.type)})(n||(n={}))})(q||(q={}));var P;(function(a){a.downgrade=l=>{var t,n,i;const f=a.downgradeComponents(l.components);return{swagger:"2.0",info:l.info,host:(n=(t=l.servers)==null?void 0:t[0])!=null&&n.url?l.servers[0].url.split("://").pop():"",definitions:f.downgraded,securityDefinitions:(i=l.components)!=null&&i.securitySchemes?Object.fromEntries(Object.entries(l.components.securitySchemes).filter(([e,r])=>r!==void 0).map(([e,r])=>E(r).map(o=>[e,o])).flat()):void 0,paths:l.paths?Object.fromEntries(Object.entries(l.paths).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,m(f)(r)])):void 0,security:l.security,tags:l.tags}};const m=l=>f=>({...f,...f.get?{get:O(l)(f.get)}:void 0,...f.put?{put:O(l)(f.put)}:void 0,...f.post?{post:O(l)(f.post)}:void 0,...f.delete?{delete:O(l)(f.delete)}:void 0,...f.options?{options:O(l)(f.options)}:void 0,...f.head?{head:O(l)(f.head)}:void 0,...f.patch?{patch:O(l)(f.patch)}:void 0,...f.trace?{trace:O(l)(f.trace)}:void 0}),O=l=>f=>({...f,parameters:f.parameters!==void 0||f.requestBody!==void 0?[...(f.parameters??[]).map(b(l)),...f.requestBody?[g(l)(f.requestBody)]:[]]:void 0,responses:f.responses?Object.fromEntries(Object.entries(f.responses).filter(([t,n])=>n!==void 0).map(([t,n])=>[t,$(l)(n)])):void 0,requestBody:void 0,servers:void 0}),b=l=>(f,t)=>{var n;return{...a.downgradeSchema(l)(f.schema),...f,required:(n=f.schema)==null?void 0:n.required,schema:void 0,name:f.name??`p${t}`,example:void 0,examples:void 0}},g=l=>f=>{var t;return{name:"body",in:"body",description:f.description,required:f.required,schema:a.downgradeSchema(l)(((t=Object.values(f.content??{})[0])==null?void 0:t.schema)??{})}},$=l=>f=>{var t;return{description:f.description,schema:a.downgradeSchema(l)(((t=Object.values(f.content??{})[0])==null?void 0:t.schema)??{}),headers:f.headers?Object.fromEntries(Object.entries(f.headers).filter(([n,i])=>i!==void 0).map(([n,i])=>[n,{...i,schema:a.downgradeSchema(l)(i.schema),example:void 0,examples:void 0}])):void 0}};a.downgradeComponents=l=>{const f={original:l,downgraded:{}};if(l.schemas){f.downgraded.schemas={};for(const[t,n]of Object.entries(l.schemas))n!==void 0&&(f.downgraded[t.split("/").pop()]=a.downgradeSchema(f)(n))}return f},a.downgradeSchema=l=>f=>{const t=w(new Set)(l.original)(f),n=[],i={title:f.title,description:f.description,example:f.example,examples:f.examples?Object.values(f.examples):void 0,...Object.fromEntries(Object.entries(f).filter(([r,o])=>r.startsWith("x-")&&o!==void 0))},e=r=>{x.isBoolean(r)?n.push({type:"boolean"}):x.isBoolean(r)||x.isInteger(r)||x.isNumber(r)||x.isString(r)?n.push({...r,examples:r.examples?Object.values(r.examples):void 0}):x.isReference(r)?n.push({$ref:`#/definitions/${r.$ref.split("/").pop()}`}):x.isArray(r)?n.push({...r,items:a.downgradeSchema(l)(r.items),examples:r.examples?Object.values(r.examples):void 0}):x.isTuple(r)?n.push({...r,items:(()=>{if(r.additionalItems===!0)return{};const o=[...r.prefixItems,...typeof r.additionalItems=="object"?[a.downgradeSchema(l)(r.additionalItems)]:[]];return o.length===0?{}:{"x-oneOf":o.map(a.downgradeSchema(l))}})(),minItems:r.prefixItems.length,maxItems:r.additionalItems?void 0:r.prefixItems.length,prefixItems:void 0,additionalItems:void 0,examples:r.examples?Object.values(r.examples):void 0}):x.isObject(r)?n.push({...r,properties:r.properties?Object.fromEntries(Object.entries(r.properties).filter(([o,d])=>d!==void 0).map(([o,d])=>[o,a.downgradeSchema(l)(d)])):void 0,additionalProperties:typeof r.additionalProperties=="object"?a.downgradeSchema(l)(r.additionalProperties):r.additionalProperties,required:r.required,examples:r.examples?Object.values(r.examples):void 0}):x.isOneOf(r)&&r.oneOf.forEach(e)};if(e(f),t)for(const r of n)x.isReference(r)?R(new Set)(l)(r):r["x-nullable"]=!0;return t===!0&&n.length===0?{type:"null",...i}:{...n.length===0?{type:void 0}:n.length===1?{...n[0]}:{"x-oneOf":n},...i,...n.length>1?{discriminator:void 0}:{}}};const R=l=>f=>t=>{var e;const n=t.$ref.split("/").pop();if(n.endsWith(".Nullable"))return;const i=(e=f.original.schemas)==null?void 0:e[n];if(i!==void 0){{if(w(l)(f.original)(i)===!0)return;f.downgraded[`${n}.Nullable`]===void 0&&(f.downgraded[`${n}.Nullable`]={},f.downgraded[`${n}.Nullable`]=a.downgradeSchema(f)(x.isOneOf(i)?{...i,oneOf:[...i.oneOf,{type:"null"}]}:{title:i.title,description:i.description,example:i.example,examples:i.examples?Object.values(i.examples):void 0,...Object.fromEntries(Object.entries(i).filter(([r,o])=>r.startsWith("x-")&&o!==void 0)),oneOf:[i,{type:"null"}]}))}t.$ref+=".Nullable"}},E=l=>{if(l.type==="apiKey")return[l];if(l.type==="http")return l.scheme==="basic"?[{type:"basic",description:l.description}]:[];if(l.type==="oauth2"){const f=[];return l.flows.implicit&&f.push({type:"oauth2",flow:"implicit",authorizationUrl:l.flows.implicit.authorizationUrl,scopes:l.flows.implicit.scopes}),l.flows.password&&f.push({type:"oauth2",flow:"password",tokenUrl:l.flows.password.tokenUrl,scopes:l.flows.password.scopes}),l.flows.clientCredentials&&f.push({type:"oauth2",flow:"application",tokenUrl:l.flows.clientCredentials.tokenUrl,scopes:l.flows.clientCredentials.scopes}),l.flows.authorizationCode&&f.push({type:"oauth2",flow:"accessCode",authorizationUrl:l.flows.authorizationCode.authorizationUrl,tokenUrl:l.flows.authorizationCode.tokenUrl,scopes:l.flows.authorizationCode.scopes}),f}return[]},w=l=>f=>t=>{var n;if(x.isNull(t))return!0;if(x.isReference(t)){if(l.has(t.$ref))return!1;l.add(t.$ref);const i=t.$ref.split("/").pop(),e=(n=f.schemas)==null?void 0:n[i];return e?w(l)(f)(e):!1}return x.isOneOf(t)&&t.oneOf.some(w(l)(f))}})(P||(P={}));var B;(function(a){a.convert=t=>({openapi:"3.1.0",info:t.info,components:R(t),paths:t.paths?Object.fromEntries(Object.entries(t.paths).filter(([n,i])=>i!==void 0).map(([n,i])=>[n,m(t)(i)])):void 0,servers:t.host?[{url:t.host}]:void 0,security:t.security,tags:t.tags,"x-samchon-emended":!0});const m=t=>n=>({...n,...n.get?{get:O(t)(n)(n.get)}:void 0,...n.put?{put:O(t)(n)(n.put)}:void 0,...n.post?{post:O(t)(n)(n.post)}:void 0,...n.delete?{delete:O(t)(n)(n.delete)}:void 0,...n.options?{options:O(t)(n)(n.options)}:void 0,...n.head?{head:O(t)(n)(n.head)}:void 0,...n.patch?{patch:O(t)(n)(n.patch)}:void 0,...n.trace?{trace:O(t)(n)(n.trace)}:void 0}),O=t=>n=>i=>({...i,parameters:n.parameters!==void 0||i.parameters!==void 0?[...n.parameters??[],...i.parameters??[]].map(e=>{var r;return f.isReference(e)?(r=t.parameters)==null?void 0:r[e.$ref.split("/").pop()??""]:e}).filter(e=>e!==void 0&&e.in!=="body"&&e.schema===void 0).map(b(t.definitions??{})):void 0,requestBody:(()=>{var r;const e=(r=i.parameters)==null?void 0:r.find(o=>{var d;return f.isReference(o)&&(o=(d=t.parameters)==null?void 0:d[o.$ref.split("/").pop()??""]),(o==null?void 0:o.schema)!==void 0});return e?g(t.definitions??{})(e):void 0})(),responses:i.responses?Object.fromEntries(Object.entries(i.responses).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,$(t)(r)]).filter(([e,r])=>r!==void 0)):void 0}),b=t=>n=>({name:n.name,in:n.in,description:n.description,schema:a.convertSchema(t)(n),required:!0}),g=t=>n=>({description:n.description,content:{"application/json":{schema:a.convertSchema(t)(n.schema)}}}),$=t=>n=>{var i;if(f.isReference(n)){const e=(i=t.responses)==null?void 0:i[n.$ref.split("/").pop()??""];if(e===void 0)return;n=e}return{description:n.description,content:n.schema?{"application/json":{schema:a.convertSchema(t.definitions??{})(n.schema),example:n.example}}:void 0,headers:n.headers?Object.fromEntries(Object.entries(n.headers).filter(([e,r])=>r!==void 0).map(([e,r])=>[e,{schema:a.convertSchema(t.definitions??{})(r),in:"header"}])):void 0}},R=t=>({schemas:Object.fromEntries(Object.entries(t.definitions??{}).filter(([n,i])=>i!==void 0).map(([n,i])=>[n,a.convertSchema(t.definitions??{})(i)])),securitySchemes:t.securityDefinitions?Object.fromEntries(Object.entries(t.securityDefinitions).filter(([n,i])=>i!==void 0).map(([n,i])=>[n,E(i)]).filter(([n,i])=>i!==void 0)):void 0}),E=t=>{if(t.type==="apiKey")return t;if(t.type==="basic")return{type:"http",scheme:"basic",description:t.description};if(t.type==="oauth2")return t.flow==="implicit"?{type:"oauth2",description:t.description,flows:{implicit:{authorizationUrl:t.authorizationUrl,scopes:t.scopes}}}:t.flow==="accessCode"?{type:"oauth2",description:t.description,flows:{authorizationCode:{authorizationUrl:t.authorizationUrl,tokenUrl:t.tokenUrl,scopes:t.scopes}}}:t.flow==="password"?{type:"oauth2",description:t.description,flows:{password:{tokenUrl:t.tokenUrl,scopes:t.scopes}}}:t.flow==="application"?{type:"oauth2",description:t.description,flows:{clientCredentials:{tokenUrl:t.tokenUrl,scopes:t.scopes}}}:void 0};a.convertSchema=t=>n=>{const i={value:!1,default:void 0},e=[],r={title:n.title,description:n.description,...Object.fromEntries(Object.entries(n).filter(([d,u])=>d.startsWith("x-")&&u!==void 0)),example:n.example,examples:n.examples?Object.fromEntries(n.examples.map((d,u)=>[u.toString(),d])):void 0},o=d=>{var u,s,v;d["x-nullable"]===!0&&(i.value||(i.value=!0),d.default===null&&(i.default=null)),Array.isArray(d.enum)&&((u=d.enum)!=null&&u.length)&&((s=d.enum)!=null&&s.some(p=>p===null))&&(i.value||(i.value=!0)),f.isAnyOf(d)?d["x-anyOf"].forEach(o):f.isOneOf(d)?d["x-oneOf"].forEach(o):f.isAllOf(d)?d.allOf.length===1?o(d.allOf[0]):e.push(w(t)(d)):f.isBoolean(d)||f.isInteger(d)||f.isNumber(d)||f.isString(d)?(v=d.enum)!=null&&v.length&&d.enum.filter(p=>p!==null).length?e.push(...d.enum.filter(p=>p!==null).map(p=>({const:p}))):e.push({...d,default:d.default??void 0,examples:d.examples?Object.fromEntries(d.examples.map((p,j)=>[j.toString(),p])):void 0,enum:void 0}):f.isArray(d)?e.push({...d,items:a.convertSchema(t)(d.items),examples:d.examples?Object.fromEntries(d.examples.map((p,j)=>[j.toString(),p])):void 0}):f.isObject(d)?e.push({...d,properties:d.properties?Object.fromEntries(Object.entries(d.properties).filter(([p,j])=>j!==void 0).map(([p,j])=>[p,a.convertSchema(t)(j)])):{},additionalProperties:d.additionalProperties?typeof d.additionalProperties=="object"&&d.additionalProperties!==null?a.convertSchema(t)(d.additionalProperties):d.additionalProperties:void 0,examples:d.examples?Object.fromEntries(d.examples.map((p,j)=>[j.toString(),p])):void 0,required:d.required??[]}):f.isReference(d)?e.push({...d,$ref:d.$ref.replace("#/definitions/","#/components/schemas/"),examples:d.examples?Object.fromEntries(d.examples.map((p,j)=>[j.toString(),p])):void 0}):e.push({...d,examples:d.examples?Object.fromEntries(d.examples.map((p,j)=>[j.toString(),p])):void 0})};if(o(n),i.value===!0&&!e.some(d=>d.type==="null")&&e.push({type:"null",default:i.default}),e.length===2&&e.filter(d=>x.isNull(d)).length===1){const d=e.filter(u=>x.isNull(u)===!1)[0];for(const u of["title","description","deprecated","example","examples"])d[u]!==void 0&&delete d[u]}return{...e.length===0?{type:void 0}:e.length===1?{...e[0]}:{oneOf:e.map(d=>({...d,"x-nullable":void 0}))},...r,"x-nullable":void 0}};const w=t=>n=>{const i=n.allOf.map(e=>l(t)(e));return i.some(e=>e===null)?{type:void 0,allOf:void 0}:{...n,type:"object",properties:Object.fromEntries(i.map(e=>Object.entries((e==null?void 0:e.properties)??{})).flat().map(([e,r])=>[e,a.convertSchema(t)(r)])),allOf:void 0,required:[...new Set(i.map(e=>(e==null?void 0:e.required)??[]).flat())]}},l=t=>(n,i=new Set)=>f.isObject(n)?n.properties!==void 0&&!n.additionalProperties?n:null:i.has(n)?null:(i.add(n),f.isReference(n)?l(t)((t==null?void 0:t[n.$ref.split("/").pop()??""])??{},i):null);let f;(function(t){t.isBoolean=n=>n.type==="boolean",t.isInteger=n=>n.type==="integer",t.isNumber=n=>n.type==="number",t.isString=n=>n.type==="string",t.isArray=n=>n.type==="array",t.isObject=n=>n.type==="object",t.isReference=n=>n.$ref!==void 0,t.isAllOf=n=>n.allOf!==void 0,t.isOneOf=n=>n["x-oneOf"]!==void 0,t.isAnyOf=n=>n["x-anyOf"]!==void 0,t.isNullOnly=n=>n.type==="null"})(f||(f={}))})(B||(B={}));var W;(function(a){function m(b){if(S.is(b))return q.convert(b);if(A.is(b))return K.convert(b);if(_.is(b))return B.convert(b);throw new TypeError("Unrecognized Swagger/OpenAPI version.")}a.convert=m;function O(b,g){if(g==="2.0")return P.downgrade(b);if(g==="3.0")return F.downgrade(b);throw new TypeError("Unrecognized Swagger/OpenAPI version.")}a.downgrade=O})(W||(W={}));export{W as O,_ as S,A as a,S as b};
@@ -1 +0,0 @@
1
- import{c as q,j as s,g as $,a as B,r as l,u as N,L as f,b as st,d as _,s as R,e as I,f as F,B as ot,h as nt,m as tt,i as V,k as at,l as K,n as Q,T as w,t as X,o as rt,R as D,p as it}from"./client-BwmHWUFW.js";import{D as Z}from"./Divider-D4B39gYv.js";const ct=q(s.jsx("path",{d:"M11 9h2V6h3V4h-3V1h-2v3H8v2h3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2m10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2m-9.83-3.25.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25"}),"AddShoppingCart"),lt=q(s.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),dt=q(s.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9 8H3V9h9zm0-4H3V5h9z"}),"FeaturedPlayList");function pt(t){return $("MuiListItem",t)}B("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function ut(t){return $("MuiListItemButton",t)}const A=B("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters]},yt=t=>{const{alignItems:e,classes:o,dense:n,disabled:a,disableGutters:i,divider:r,selected:c}=t,y=F({root:["root",n&&"dense",!i&&"gutters",r&&"divider",a&&"disabled",e==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},ut,o);return{...o,...y}},gt=R(ot,{shouldForwardProp:t=>nt(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:mt})(tt(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:V(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${A.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:V(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${A.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:V(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:V(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${A.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),vt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:r="div",children:c,dense:d=!1,disableGutters:y=!1,divider:S=!1,focusVisibleClassName:T,selected:P=!1,className:C,...u}=n,b=l.useContext(f),m=l.useMemo(()=>({dense:d||b.dense||!1,alignItems:a,disableGutters:y}),[a,b.dense,d,y]),p=l.useRef(null);st(()=>{i&&p.current&&p.current.focus()},[i]);const g={...n,alignItems:a,dense:m.dense,disableGutters:y,divider:S,selected:P},v=yt(g),L=_(p,o);return s.jsx(f.Provider,{value:m,children:s.jsx(gt,{ref:L,href:u.href||u.to,component:(u.href||u.to)&&r==="div"?"button":r,focusVisibleClassName:I(v.focusVisible,T),ownerState:g,className:I(v.root,C),...u,classes:v,children:c})})});function ht(t){return $("MuiListItemSecondaryAction",t)}B("MuiListItemSecondaryAction",["root","disableGutters"]);const xt=t=>{const{disableGutters:e,classes:o}=t;return F({root:["root",e&&"disableGutters"]},ht,o)},ft=R("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),et=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemSecondaryAction"}),{className:a,...i}=n,r=l.useContext(f),c={...n,disableGutters:r.disableGutters},d=xt(c);return s.jsx(ft,{className:I(d.root,a),ownerState:c,ref:o,...i})});et.muiName="ListItemSecondaryAction";const bt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters,!o.disablePadding&&e.padding,o.hasSecondaryAction&&e.secondaryAction]},It=t=>{const{alignItems:e,classes:o,dense:n,disableGutters:a,disablePadding:i,divider:r,hasSecondaryAction:c}=t;return F({root:["root",n&&"dense",!a&&"gutters",!i&&"padding",r&&"divider",e==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},pt,o)},St=R("div",{name:"MuiListItem",slot:"Root",overridesResolver:bt})(tt(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${A.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ct=R("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Lt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItem"}),{alignItems:a="center",children:i,className:r,component:c,components:d={},componentsProps:y={},ContainerComponent:S="li",ContainerProps:{className:T,...P}={},dense:C=!1,disableGutters:u=!1,disablePadding:b=!1,divider:m=!1,secondaryAction:p,slotProps:g={},slots:v={},...L}=n,G=l.useContext(f),h=l.useMemo(()=>({dense:C||G.dense||!1,alignItems:a,disableGutters:u}),[a,G.dense,C,u]),z=l.useRef(null),x=l.Children.toArray(i),W=x.length&&at(x[x.length-1],["ListItemSecondaryAction"]),U={...n,alignItems:a,dense:h.dense,disableGutters:u,disablePadding:b,divider:m,hasSecondaryAction:W},J=It(U),Y=_(z,o),O=v.root||d.Root||St,k=g.root||y.root||{},M={className:I(J.root,k.className,r),...L};let j=c||"li";return W?(j=!M.component&&!c?"div":j,S==="li"&&(j==="li"?j="div":M.component==="li"&&(M.component="div")),s.jsx(f.Provider,{value:h,children:s.jsxs(Ct,{as:S,className:I(J.container,T),ref:Y,ownerState:U,...P,children:[s.jsx(O,{...k,...!K(O)&&{as:j,ownerState:{...U,...k.ownerState}},...M,children:x}),x.pop()]})})):s.jsx(f.Provider,{value:h,children:s.jsxs(O,{...k,as:j,ref:Y,...!K(O)&&{ownerState:{...U,...k.ownerState}},...M,children:[x,p&&s.jsx(et,{children:p})]})})});function jt(t){return $("MuiListItemAvatar",t)}B("MuiListItemAvatar",["root","alignItemsFlexStart"]);const At=t=>{const{alignItems:e,classes:o}=t;return F({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},jt,o)},wt=R("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.alignItems==="flex-start"&&e.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Rt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemAvatar"}),{className:a,...i}=n,r=l.useContext(f),c={...n,alignItems:r.alignItems},d=At(c);return s.jsx(wt,{className:I(d.root,a),ownerState:c,ref:o,...i})});function Tt(t){return $("MuiListItemText",t)}const H=B("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Pt=t=>{const{classes:e,inset:o,primary:n,secondary:a,dense:i}=t;return F({root:["root",o&&"inset",i&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Tt,e)},kt=R("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${H.primary}`]:e.primary},{[`& .${H.secondary}`]:e.secondary},e.root,o.inset&&e.inset,o.primary&&o.secondary&&e.multiline,o.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${X.root}:where(& .${H.primary})`]:{display:"block"},[`.${X.root}:where(& .${H.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),Mt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemText"}),{children:a,className:i,disableTypography:r=!1,inset:c=!1,primary:d,primaryTypographyProps:y,secondary:S,secondaryTypographyProps:T,slots:P={},slotProps:C={},...u}=n,{dense:b}=l.useContext(f);let m=d??a,p=S;const g={...n,disableTypography:r,inset:c,primary:!!m,secondary:!!p,dense:b},v=Pt(g),L={slots:P,slotProps:{primary:y,secondary:T,...C}},[G,h]=Q("primary",{className:v.primary,elementType:w,externalForwardedProps:L,ownerState:g}),[z,x]=Q("secondary",{className:v.secondary,elementType:w,externalForwardedProps:L,ownerState:g});return m!=null&&m.type!==w&&!r&&(m=s.jsx(G,{variant:b?"body2":"body1",component:h!=null&&h.variant?void 0:"span",...h,children:m})),p!=null&&p.type!==w&&!r&&(p=s.jsx(z,{variant:"body2",color:"textSecondary",...x,children:p})),s.jsxs(kt,{className:I(v.root,i),ownerState:g,ref:o,...u,children:[m,p]})}),E=t=>s.jsx(Lt,{alignItems:"flex-start",children:s.jsxs(vt,{href:t.href,children:[s.jsx(Rt,{children:t.icon}),s.jsx(Mt,{primary:t.title,secondary:s.jsxs(D.Fragment,{children:[s.jsx(w,{component:"span",variant:"body2",sx:{color:"text.primary",display:"inline"},children:t.summary}),t.description]})})]})}),$t=()=>s.jsxs(D.Fragment,{children:[s.jsx(w,{variant:"h4",children:"Agentica Playground"}),s.jsx("hr",{}),s.jsxs(it,{sx:{width:"100%",maxWidth:720,bgcolor:"background.paper"},children:[s.jsx(E,{href:"./uploader/",title:"Swagger Uploader",summary:"Test your backend server's AI chatbot",icon:s.jsx(dt,{}),description:s.jsx("p",{children:"Upload your Swagger document file to the playground website, and start conversation with your backend server. Validate your backend server's Swagger documentation quality before developing your AI chatbot application."})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(E,{href:"./shopping/",title:"Shopping AI Chatbot",summary:"AI chatbot by Swagger document",icon:s.jsx(ct,{}),description:s.jsxs(D.Fragment,{children:[s.jsx("p",{children:"Shopping AI chatbot which can search products, and take orders just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to prove a key concept of ",s.jsx("code",{children:"nestia/agent"})," that every backend servers providing Swagger documents can be conversed with the AI chatbot. You can search products, and take orders just by conversation texts."]}),s.jsx("p",{children:"If you've developed a backend server, then you can chat with the backend server just by delivering the Swagger document. If your documentation quality is enough, you can experience the new AI era. No more GUI development required. Just develop only backend server and chat with it."})]})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(E,{href:"./bbs/",title:"BBS AI Chatbot",summary:"AI chatbot by TypeScript Class",icon:s.jsx(lt,{}),description:s.jsxs(D.Fragment,{children:[s.jsx("p",{children:"BBS (Bullet-in Board System) AI chatbot posting articles just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to demonstrate"," ",s.jsx("code",{children:"typia.llm.application<App, Model>()"})," function which can generate LLM (Large Language Model) function calling application schema from a TypeScript class type."]}),s.jsx("p",{children:"If you've developed a TypeScript facade class, then you can chat with the class just by taking the class type. If you've done enough documentations on the class methods and DTO (Data Transfer Object) types, you can experience the new AI era. No more GUI development required. Just develop only TypeScript class containing the business logics and chat with it."})]})})]})]});rt(window.document.getElementById("root")).render(s.jsx($t,{}));
@@ -1 +0,0 @@
1
- import{a as lo,g as ho,J as Kn,i as Zn,r as q,u as uo,j,s as mo,e as Ao,z as Xa,f as fo,T as In,m as To,D as yo,K as Na,M as go,N as b,o as Eo}from"../client-BwmHWUFW.js";import{O as eo,a as Do,b as Mo,S as jo}from"../OpenApi-BjKF5-pJ.js";import{u as Co,C as $o,f as vo,G as _o,h as So,H as to,i as xo,L as bo,j as Uo,k as Ro,l as qo,v as ga,m as u,A as wo,e as Oo,F as Po,T as Qn,R as ko,c as Ba,d as Va,B as Fo,O as zo}from"../AgenticaChatApplication-Bss6Wmz6.js";import{_ as v,a as O}from"../_isFormatUri-YqTfGpHo.js";import{D as Go}from"../Divider-D4B39gYv.js";function Ho(e){return ho("MuiLink",e)}const Lo=lo("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),No=({theme:e,ownerState:t})=>{const s=t.color,a=Kn(e,`palette.${s}.main`,!1)||Kn(e,`palette.${s}`,!1)||t.color,o=Kn(e,`palette.${s}.mainChannel`)||Kn(e,`palette.${s}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Zn(a,.4)},Ja={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Bo=e=>{const{classes:t,component:s,focusVisible:a,underline:o}=e,i={root:["root",`underline${Xa(o)}`,s==="button"&&"button",a&&"focusVisible"]};return fo(i,Ho,t)},Vo=mo(In,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`underline${Xa(s.underline)}`],s.component==="button"&&t.button]}})(To(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:s})=>t==="always"&&s.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(yo()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Zn(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Zn(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Zn(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Lo.focusVisible}`]:{outline:"auto"}}}]}))),Jo=q.forwardRef(function(t,s){const a=uo({props:t,name:"MuiLink"}),o=Co(),{className:i,color:p="primary",component:A="a",onBlur:f,onFocus:h,TypographyClasses:y,underline:M="always",variant:x="inherit",sx:E,...g}=a,[D,S]=q.useState(!1),c=_=>{Na(_.target)||S(!1),f&&f(_)},T=_=>{Na(_.target)&&S(!0),h&&h(_)},l={...a,color:p,component:A,focusVisible:D,underline:M,variant:x},C=Bo(l);return j.jsx(Vo,{color:p,className:Ao(C.root,i),classes:y,component:A,onBlur:c,onFocus:T,ref:s,ownerState:l,variant:x,...g,sx:[...Ja[p]===void 0?[{color:p}]:[],...Array.isArray(E)?E:[E]],style:{...g.style,...M==="always"&&p!=="inherit"&&!Ja[p]&&{"--Link-underlineColor":No({theme:o,ownerState:l})}}})});var Ea;Ea||(Ea={});var Da;Da||(Da={});const Wo=Object.freeze(Object.defineProperty({__proto__:null,get ChatGptTypeChecker(){return $o},ClaudeTypeChecker:vo,get GeminiTypeChecker(){return _o},HttpError:So,get HttpLlm(){return to},get HttpMigration(){return xo},get IClaudeSchema(){return Ea},get ILlamaSchema(){return Da},LlamaTypeChecker:bo,get LlmTypeCheckerV3(){return Uo},get LlmTypeCheckerV3_1(){return Ro},get OpenApi(){return eo},get OpenApiTypeChecker(){return qo},get OpenApiV3(){return Do},get OpenApiV3_1(){return Mo},get SwaggerV2(){return jo}},Symbol.toStringTag,{value:"Module"}));var so={},no={};Object.defineProperty(no,"__esModule",{value:!0});var Ua={};const Ko=go(Wo);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HttpError=void 0;var t=Ko;Object.defineProperty(e,"HttpError",{enumerable:!0,get:function(){return t.HttpError}})})(Ua);var ao={};Object.defineProperty(ao,"__esModule",{value:!0});var oo={};Object.defineProperty(oo,"__esModule",{value:!0});var ro={};Object.defineProperty(ro,"__esModule",{value:!0});var po={};Object.defineProperty(po,"__esModule",{value:!0});var io={};Object.defineProperty(io,"__esModule",{value:!0});(function(e){var t=b&&b.__createBinding||(Object.create?function(a,o,i,p){p===void 0&&(p=i);var A=Object.getOwnPropertyDescriptor(o,i);(!A||("get"in A?!o.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(a,p,A)}:function(a,o,i,p){p===void 0&&(p=i),a[p]=o[i]}),s=b&&b.__exportStar||function(a,o){for(var i in a)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,a,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(no,e),s(Ua,e),s(ao,e),s(oo,e),s(ro,e),s(po,e),s(io,e)})(so);var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});var Fn=Ra._isFormatIpv4=void 0;const Qo=e=>Yo.test(e);Fn=Ra._isFormatIpv4=Qo;const Yo=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});var zn=qa._isFormatIpv6=void 0;const Zo=e=>Io.test(e);zn=qa._isFormatIpv6=Zo;const Io=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});var $=wa._isFormatDateTime=void 0;const Xo=e=>er.test(e);$=wa._isFormatDateTime=Xo;const er=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i;var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});var Pa=Oa._miscCloneAny=void 0;const tr=e=>P(e);Pa=Oa._miscCloneAny=tr;const P=e=>{if(e!==void 0){if(typeof e=="object"){if(e===null)return null;if(Array.isArray(e))return e.map(P);if(e instanceof Date)return new Date(e);if(e instanceof Uint8Array)return new Uint8Array(e);if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);if(e instanceof Uint16Array)return new Uint16Array(e);if(e instanceof Uint32Array)return new Uint32Array(e);if(e instanceof BigUint64Array)return new BigUint64Array(e);if(e instanceof Int8Array)return new Int8Array(e);if(e instanceof Int16Array)return new Int16Array(e);if(e instanceof Int32Array)return new Int32Array(e);if(e instanceof BigInt64Array)return new BigInt64Array(e);if(e instanceof Float32Array)return new Float32Array(e);if(e instanceof Float64Array)return new Float64Array(e);if(e instanceof ArrayBuffer)return e.slice(0);if(e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView)return new DataView(e.buffer.slice(0));if(typeof File<"u"&&e instanceof File)return new File([e],e.name,{type:e.type});if(typeof Blob<"u"&&e instanceof Blob)return new Blob([e],{type:e.type});if(e instanceof Set)return new Set([...e].map(P));if(e instanceof Map)return new Map([...e].map(([t,s])=>[P(t),P(s)]));if(e instanceof WeakSet||e instanceof WeakMap)throw new Error("WeakSet and WeakMap are not supported");return e.valueOf()!==e?P(e.valueOf()):Object.fromEntries(Object.entries(e).map(([t,s])=>[t,P(s)]).filter(([,t])=>t!==void 0))}else if(typeof e=="function")return;return e}};var ka={};Object.defineProperty(ka,"__esModule",{value:!0});var Gn=ka._isFormatEmail=void 0;const sr=e=>nr.test(e);Gn=ka._isFormatEmail=sr;const nr=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;var Fa={},ra={},L=b&&b.__assign||function(){return L=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},L.apply(this,arguments)},Ta=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},ya=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Xn=b&&b.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],a=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pa=b&&b.__read||function(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var a=s.call(e),o,i=[],p;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(A){p={error:A}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return i},ar=b&&b.__spreadArray||function(e,t,s){if(s||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(ra,"__esModule",{value:!0});ra.FetcherBase=void 0;var or=Ua,Wa;(function(e){var t=this;e.request=function(a){return function(o,i,p,A){return Ta(t,void 0,void 0,function(){var f;return ya(this,function(h){switch(h.label){case 0:return[4,s("fetch")(a)(o,i,p,A)];case 1:if(f=h.sent(),f.success===!1)throw new or.HttpError(i.method,i.path,f.status,f.headers,f.data);return[2,f.data]}})})}},e.propagate=function(a){return function(o,i,p,A){return Ta(t,void 0,void 0,function(){return ya(this,function(f){return[2,s("propagate")(a)(o,i,p,A)]})})}};var s=function(a){return function(o){return function(i,p,A,f){return Ta(t,void 0,void 0,function(){var h,y,M,x,E,g,D,S,c,T,l,C,_,n,m,d,R,z,ia,ca,la,ha,ua,da,ma;return ya(this,function(U){switch(U.label){case 0:if(h=L({},(R=i.headers)!==null&&R!==void 0?R:{}),A!==void 0){if(((z=p.request)===null||z===void 0?void 0:z.type)===void 0)throw new Error("Error on ".concat(o.className,".fetch(): no content-type being configured."));p.request.type!=="multipart/form-data"&&(h["Content-Type"]=p.request.type)}else A===void 0&&h["Content-Type"]!==void 0&&delete h["Content-Type"];y=L(L({},(ia=i.options)!==null&&ia!==void 0?ia:{}),{method:p.method,headers:function(){var Nn,za,Bn,Ga,Aa=[];try{for(var Vn=Xn(Object.entries(h)),G=Vn.next();!G.done;G=Vn.next()){var Ha=pa(G.value,2),La=Ha[0],Jn=Ha[1];if(Jn!==void 0)if(Array.isArray(Jn))try{for(var Wn=(Bn=void 0,Xn(Jn)),H=Wn.next();!H.done;H=Wn.next()){var co=H.value;Aa.push([La,String(co)])}}catch(fa){Bn={error:fa}}finally{try{H&&!H.done&&(Ga=Wn.return)&&Ga.call(Wn)}finally{if(Bn)throw Bn.error}}else Aa.push([La,String(Jn)])}}catch(fa){Nn={error:fa}}finally{try{G&&!G.done&&(za=Vn.return)&&za.call(Vn)}finally{if(Nn)throw Nn.error}}return Aa}()}),A!==void 0&&(y.body=o.encode(((ca=p.request)===null||ca===void 0?void 0:ca.type)==="application/x-www-form-urlencoded"?rr(A):((la=p.request)===null||la===void 0?void 0:la.type)==="multipart/form-data"?pr(A):((ha=p.request)===null||ha===void 0?void 0:ha.type)!=="text/plain"?(f??JSON.stringify)(A):A,h)),M=i.host[i.host.length-1]!=="/"&&p.path[0]!=="/"?"/".concat(p.path):p.path,x=new URL("".concat(i.host).concat(M)),E={route:p,path:M,status:null,input:A,output:void 0,started_at:new Date,respond_at:null,completed_at:null},U.label=1;case 1:return U.trys.push([1,12,13,18]),[4,((ua=i.fetch)!==null&&ua!==void 0?ua:fetch)(x.href,y)];case 2:return g=U.sent(),E.respond_at=new Date,E.status=g.status,D={success:g.status===200||g.status===201||g.status===p.status,status:g.status,headers:ir(g.headers),data:void 0},D.success!==!1?[3,4]:(S=D,[4,g.text()]);case 3:if(S.data=U.sent(),c=g.headers.get("content-type"),a!=="fetch"&&c&&c.indexOf("application/json")!==-1)try{D.data=JSON.parse(D.data)}catch{}return[3,11];case 4:return p.method!=="HEAD"?[3,5]:(D.data=void 0,[3,11]);case 5:return((da=p.response)===null||da===void 0?void 0:da.type)!=="application/json"?[3,7]:[4,g.text()];case 6:return T=U.sent(),D.data=T.length?JSON.parse(T):void 0,[3,11];case 7:return((ma=p.response)===null||ma===void 0?void 0:ma.type)!=="application/x-www-form-urlencoded"?[3,9]:(C=URLSearchParams.bind,[4,g.text()]);case 8:return l=new(C.apply(URLSearchParams,[void 0,U.sent()])),D.data=p.parseQuery?p.parseQuery(l):l,[3,11];case 9:return _=D,m=(n=o).decode,[4,g.text()];case 10:_.data=m.apply(n,[U.sent(),D.headers]),U.label=11;case 11:return E.output=D.data,[2,D];case 12:throw d=U.sent(),d;case 13:if(E.completed_at=new Date,!i.logger)return[3,17];U.label=14;case 14:return U.trys.push([14,16,,17]),[4,i.logger(E)];case 15:return U.sent(),[3,17];case 16:return U.sent(),[3,17];case 17:return[7];case 18:return[2]}})})}}}})(Wa||(ra.FetcherBase=Wa={}));var rr=function(e){var t,s,a=new URLSearchParams,o=function(y,M){if(M===void 0)return"continue";Array.isArray(M)?M.forEach(function(x){return a.append(y,String(x))}):a.set(y,String(M))};try{for(var i=Xn(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=pa(p.value,2),f=A[0],h=A[1];o(f,h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},pr=function(e){var t,s,a=new FormData,o=function(y){return function(M){M!==void 0&&(typeof File=="function"&&M instanceof File?a.append(y,M,M.name):a.append(y,M))}};try{for(var i=Xn(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=pa(p.value,2),f=A[0],h=A[1];Array.isArray(h)?h.map(o(f)):o(f)(h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},ir=function(e){var t={};return e.forEach(function(s,a){var o,i;a==="set-cookie"?((i=t[a])!==null&&i!==void 0||(t[a]=[]),(o=t[a]).push.apply(o,ar([],pa(s.split(";").map(function(p){return p.trim()})),!1))):t[a]=s}),t},Ka=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},Qa=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(Fa,"__esModule",{value:!0});var r=Fa.PlainFetcher=void 0,Ya=ra,Za;(function(e){function t(a,o,i,p){return Ka(this,void 0,void 0,function(){var A,f;return Qa(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ya.FetcherBase.request({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.fetch=t;function s(a,o,i,p){return Ka(this,void 0,void 0,function(){var A,f;return Qa(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ya.FetcherBase.propagate({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.propagate=s})(Za||(r=Fa.PlainFetcher=Za={}));var Ma;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.administrator;return!s||!a||!o?null:{id:o.id,type:"administrator",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&v(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(Fn(n.ip)||zn(n.ip))&&typeof n.created_at=="string"&&$(n.created_at),A=n=>typeof n.id=="string"&&v(n.id)&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&v(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&v(n.id)&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(Fn(n.ip)||zn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Pa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const C=(n,m)=>(T(n)===!1&&(l=m,((d,R,z=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_(C(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&v(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&$(c.created_at),f=c=>typeof c.id=="string"&&v(c.id)&&typeof c.value=="string"&&Gn(c.value)&&typeof c.created_at=="string"&&$(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(v(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every((C,_)=>(typeof C=="object"&&C!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:C},g))&&y(C,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:C},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&($(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(v(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Gn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&($(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,C,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:C+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,C+"",!0)||u(!0,{method:"typia.misc.assertClone",path:C+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})(Ma||(Ma={}));var ja;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.seller;return!s||!a||!o?null:{id:o.id,type:"seller",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&v(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(Fn(n.ip)||zn(n.ip))&&typeof n.created_at=="string"&&$(n.created_at),A=n=>typeof n.id=="string"&&v(n.id)&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&v(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&v(n.id)&&typeof n.created_at=="string"&&$(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(Fn(n.ip)||zn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(v(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&($(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Pa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const C=(n,m)=>(T(n)===!1&&(l=m,((d,R,z=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_(C(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&v(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&$(c.created_at),f=c=>typeof c.id=="string"&&v(c.id)&&typeof c.value=="string"&&Gn(c.value)&&typeof c.created_at=="string"&&$(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(v(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every((C,_)=>(typeof C=="object"&&C!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:C},g))&&y(C,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:C},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&($(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(v(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Gn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&($(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,C,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:C+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,C+"",!0)||u(!0,{method:"typia.misc.assertClone",path:C+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})(ja||(ja={}));var ea;(function(e){e.adjustable=s=>{const a=t(s);return s.criteria.direction==="include"?a:!a};const t=s=>s.criteria.type==="section"?s.criteria.sections.some(a=>a.id===s.sale.section.id):s.criteria.type==="seller"?s.criteria.sellers.some(a=>a.id===s.sale.seller.id):s.criteria.type==="sale"?s.criteria.sales.some(a=>a.id===s.sale.id):s.criteria.type==="funnel"?s.criteria.funnels.some(a=>{if(a.kind==="url")return s.customer.href.startsWith(a.value);if(a.kind==="referrer")return s.customer.referrer!==null&&s.customer.referrer.startsWith(a.value);if(a.kind==="variable"){const o=s.customer.href.lastIndexOf("?");return o===-1?!1:new URLSearchParams(s.customer.href.substring(o+1)).get(a.key)===a.value}return!1}):!1})(ea||(ea={}));var Ca;(function(e){e.take=(t,s,a)=>{const o=t.get(s);if(o)return o;const i=a();return t.set(s,i),i}})(Ca||(Ca={}));var w;(function(e){e.validate=t=>{const s=[],a=new Set;return t.items.forEach((o,i)=>{if(t.filter&&t.filter(o)===!1)return;const p=t.key(o);a.has(p)===!0?s.push(t.message(o,i)):a.add(p)}),s}})(w||(w={}));var ta;(function(e){e.replica=t=>({name:t.name,extension:t.extension,url:t.url})})(ta||(ta={}));var $a;(function(e){e.replica=t=>({title:t.title,body:t.body,format:t.format,thumbnails:t.thumbnails.map(ta.replica),files:t.files.map(ta.replica)})})($a||($a={}));var sa;(function(e){e.validate=t=>{if(t.option.type!=="select")return[];const s=`input.units[${t.unitIndex}].options[${t.index}]`,a=[];return t.option.candidates.length===0&&a.push({accessor:`${s}.candidates`,message:'Candidates must not be empty when type of the option is "select".'}),a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.candidates[${i}]`,message:`Duplicated candidate name: "${o.name}"`}),items:t.option.candidates})),a},e.replica=t=>t.type==="select"?{type:t.type,name:t.name,variable:t.variable,candidates:t.candidates.map(s=>({name:s.name}))}:{type:t.type,name:t.name}})(sa||(sa={}));var na;(function(e){e.validate=t=>{const s=`input.units.[${t.unitIndex}].stocks[${t.stockIndex}].choices[${t.index}]`,a=[],o=t.unit.options[t.choice.option_index];return o===void 0?a.push({accessor:s,message:`Option index ${t.choice.option_index} is out of bounds.`}):o.type!=="select"?a.push({accessor:s,message:'Option type must be "select".'}):o.variable===!1?a.push({accessor:s,message:"Option is not variable."}):o.candidates[t.choice.candidate_index]===void 0&&a.push({accessor:s,message:`Candidate index ${t.choice.candidate_index} is out of bounds.`}),a},e.replica=t=>{const s=t.options.findIndex(i=>i.id===t.choice.option_id);if(s===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched option.");const a=t.options[s];if(a.type!=="select")throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option type must be 'select'.");if(a.variable===!1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option must be variable.");const o=a.candidates.findIndex(i=>i.id===t.choice.candidate_id);if(o===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched candidate.");return{option_index:s,candidate_index:o}}})(na||(na={}));var va;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>JSON.stringify([a.option_index,a.candidate_index]),message:(a,o)=>({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].choices[${o}]`,message:`Duplicated choice: (${a.option_index}, ${a.candidate_index})`}),items:t.stock.choices})),t.stock.choices.forEach((a,o)=>{s.push(...na.validate({unit:t.unit,unitIndex:t.unitIndex,stock:t.stock,stockIndex:t.index,choice:a,index:o}))}),t.stock.price.nominal<t.stock.price.real&&s.push({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].price.real`,message:"Real price cannot be greater than nominal price"}),s},e.replica=t=>({name:t.stock.name,choices:t.stock.choices.map(s=>na.replica({options:t.options,choice:s})),quantity:Math.max(0,t.stock.inventory.income-t.stock.inventory.outcome),price:{nominal:t.stock.price.nominal,real:t.stock.price.real}})})(va||(va={}));var aa;(function(e){e.validate=t=>{const s=`input.units[${t.index}]`,a=[];if(a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.options[${i}]`,message:`Duplicated option name: "${o.name}"`}),items:t.unit.options})),t.unit.options.forEach((o,i)=>a.push(...sa.validate({unit:t.unit,unitIndex:t.index,option:o,index:i}))),t.unit.stocks.length===0)a.push({accessor:`${s}.stocks.length`,message:"No stock exists."});else{const o=t.unit.options.map(i=>i.type==="select"&&i.variable?i.candidates.length:1).reduce((i,p)=>i*p,1);t.unit.stocks.length>o&&a.push({accessor:`${s}.stocks.length`,message:`Incorrect number of stocks: must not over the ${o} but ${t.unit.stocks.length}.`})}return a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.stocks[${i}]`,message:`Duplicated stock name: "${o.name}"`}),items:t.unit.stocks})),a},e.replica=t=>({name:t.name,primary:t.primary,required:t.required,options:t.options.map(sa.replica),stocks:t.stocks.map(s=>va.replica({options:t.options,stock:s}))})})(aa||(aa={}));var Hn;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.category_codes[${o}]`,message:`Duplicated category code: "${a}"`}),items:t.category_codes})),t.units.length===0?s.push({accessor:"input.units",message:"No unit"}):t.units.every(a=>a.required===!1)&&s.push({accessor:"input.units[].required",message:"No required unit"}),s.push(...w.validate({key:a=>a.name,message:(a,o)=>({accessor:`input.units[${o}]`,message:`Duplicated unit name: "${a.name}"`}),items:t.units})),t.units.forEach((a,o)=>s.push(...aa.validate({unit:a,index:o}))),s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.tags[${o}]`,message:`Duplicated tags: "${a}"`}),items:t.tags})),s},e.replica=t=>({category_codes:t.categories.map(s=>s.code),content:$a.replica(t.content),units:t.units.map(aa.replica),tags:t.tags.slice()})})(Hn||(Hn={}));var Ln;(function(e){e.validate=t=>{const s=[];return t.opened_at&&t.closed_at&&new Date(t.closed_at).getTime()<new Date(t.opened_at).getTime()&&s.push({accessor:"input.closed_at",message:"Closed date is earlier than opened date"}),s.push(...Hn.validate(t)),s},e.replica=t=>({...Hn.replica(t),section_code:t.section.code,opened_at:t.opened_at,closed_at:t.closed_at}),e.readable=t=>{const s=[];t.sale.opened_at===null?s.push({accessor:t.accessor,message:"The sale has not been opened."}):new Date(t.sale.opened_at).getTime()>Date.now()&&s.push({accessor:t.accessor,message:"The sale has not been opened yet."});const a=(o,i)=>{i!==null&&Date.now()>=new Date(i).getTime()&&s.push({accessor:t.accessor,message:`The sale has been ${o}.`})};return a("closed",t.sale.closed_at),t.checkPause&&a("paused",t.sale.paused_at),a("suspended",t.sale.suspended_at),s}})(Ln||(Ln={}));var oa;(function(e){e.validate=t=>{const s=[],a=t.unit.options.find(o=>o.id===t.input.option_id);return a===void 0?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].option_id`,message:"Unable to find the matched option."}):a.type==="select"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}]`,message:"The select option does not require the choice composition."}):t.input.value!==null&&(a.type==="boolean"&&typeof t.input.value!="boolean"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be boolean type."}):a.type==="number"&&typeof t.input.value!="number"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be number type."}):a.type==="string"&&typeof t.input.value!="string"&&s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be string type."})),s},e.replica=t=>t.option.type==="select"?null:{option_id:t.option.id,value:t.value}})(oa||(oa={}));var F;(function(e){e.validate=t=>{const s=[];t.input.choices.forEach((o,i)=>{oa.validate({unit:t.unit,stockIndex:t.index,input:o,index:i})});const a=t.unit.stocks.find(o=>o.id===t.input.stock_id);return a===void 0?s.push({accessor:`$input.stocks[${t.index}].stock_id`,message:"Unable to find the matched stock."}):a.inventory.income-a.inventory.outcome<t.input.quantity*t.commodity.volume&&s.push({accessor:`$input.stocks[${t.index}].quantity`,message:"Insufficient inventory."}),s},e.replica=t=>({unit_id:t.unit.id,stock_id:t.stock.id,choices:t.stock.choices.map(oa.replica).filter(s=>s!==null),quantity:t.stock.quantity}),e.preview=t=>{const s=t.unit.stocks.find(a=>a.id===t.input.stock_id);if(s===void 0)throw new Error("Unable to find the matched stock.");return{id:s.id,name:s.name,price:s.price,inventory:s.inventory,quantity:t.input.quantity,choices:[...s.choices.map(a=>{const o=t.unit.options.find(p=>p.id===a.option_id),i=o.candidates.find(p=>p.id===a.candidate_id);return{id:a.id,option:o,candidate:i,value:null}}),...t.input.choices.map(a=>{const o=t.unit.options.find(i=>i.id===a.option_id);return{id:ga(),option:o,candidate:null,value:a.value}})]}}})(F||(F={}));var _a;(function(e){e.validate=t=>{const s=Ln.readable({accessor:"$input.sale_id",checkPause:!0,sale:t.sale});return t.input.stocks.forEach((a,o)=>{const i=t.sale.units.find(p=>p.id===a.unit_id);i===void 0?s.push({accessor:`$input.stocks[${o}].unit_id`,message:"Unable to find the matched unit."}):s.push(...F.validate({unit:i,commodity:t.input,input:a,index:o}))}),s},e.replica=t=>({sale_id:t.sale.id,stocks:t.sale.units.map(s=>s.stocks.map(a=>F.replica({unit:s,stock:a}))).flat(),volume:t.volume}),e.preview=t=>{const s=t.input.stocks.map(o=>{const i=t.sale.units.find(p=>p.id===o.unit_id);if(i===void 0)throw new Error(`Error on ShoppingCartItemDiagnoser.preview(): unable to find the matched unit by its id "${o.unit_id}".`);return[{id:i.id,name:i.name,primary:i.primary,required:i.required,stocks:[]},F.preview({unit:i,input:o})]}),a=new Map;for(const[o,i]of s)Ca.take(a,o.id,()=>o).stocks.push(i);return{id:ga(),sale:{...t.sale,content:{id:ga(),title:t.sale.content.title,thumbnails:t.sale.content.thumbnails},units:[...a.values()]},pseudo:!0,volume:t.input.volume,price:{nominal:s.map(([,o])=>o.price.nominal).reduce((o,i)=>o+i),real:s.map(([,o])=>o.price.real).reduce((o,i)=>o+i)},created_at:new Date().toISOString(),orderable:!0}}})(_a||(_a={}));var Sa;(function(e){e.validate=t=>{const s=Ln.readable({accessor:`input.goods.${t.index}.commodity.sale`,checkPause:!0,sale:t.commodity.sale});for(const a of t.commodity.sale.units)for(const o of a.stocks)o.quantity*t.input.volume>o.inventory.income-o.inventory.outcome&&s.push({accessor:`input.goods.${t.index}.volume`,message:`Not enough inventory on nested stock#${o.id}.`});return s}})(Sa||(Sa={}));var xa;(function(e){e.validate=t=>t.input.goods.map((s,a)=>{const o=t.commodities.find(i=>i.id===s.commodity_id);return o===void 0?{accessor:`input.goods[${a}].commodity_id`,message:`Commodity#${s.commodity_id} is not found.`}:Sa.validate({commodity:o,input:s,index:a})}).flat()})(xa||(xa={}));var N;(function(e){e.adjustable=s=>s.coupon.criterias.every(a=>ea.adjustable({customer:s.customer,sale:s.sale,criteria:a})),e.coexistable=s=>s.length<=1||s.every(a=>a.restriction.exclusive===!1),e.sort=s=>s.sort(t);function t(s,a){return s.discount.unit!==a.discount.unit?s.discount.unit==="percent"?-1:1:s.discount.unit==="amount"&&a.discount.unit==="amount"?Number(s.discount.value)-Number(a.discount.value):a.discount.value-s.discount.value}})(N||(N={}));var k;(function(e){e.checkCoupon=p=>e.filterItems(p).length!==0,e.filterItems=p=>t(p);const t=p=>s({accessor:p.accessor,coupon:p.coupon,data:p.data.filter(A=>N.adjustable({customer:p.customer,sale:p.accessor.item(A).sale,coupon:p.coupon}))}),s=p=>p.coupon.discount.threshold===null?p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.value):p.data:p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.threshold&&p.accessor.item(f).price.real>=p.coupon.discount.value):p.data.map(f=>a(p.accessor)(f)).reduce((f,h)=>f+h,0)>=p.coupon.discount.threshold?p.data:[],a=p=>A=>p.item(A).price.real*p.volume(A);e.discount=p=>o({...p,title:`${p.className}.discount`});const o=p=>{if(N.sort(p.coupons),N.coexistable(p.coupons)===!1)throw new Error(`Error on ${p.title}(): target coupons are not coexistable.`);const A={amount:0,coupon_to_elem_dict:new Map};for(const f of p.coupons)t({accessor:p.accessor,customer:p.customer,data:p.data,coupon:f}).length!==0&&i({accessor:p.accessor,coupon:f,data:p.data,output:A});return A},i=p=>{const A=(f,h)=>{cr(p.output.coupon_to_elem_dict,p.coupon.id,()=>new Map).set(f.id,h)};if(p.coupon.discount.unit==="percent")for(const f of p.data){const h=p.coupon.discount.value/100*a(p.accessor)(f);p.output.amount+=h,A(f,h)}else if(p.coupon.discount.multiplicative===!0)for(const f of p.data){const h=p.coupon.discount.value*p.accessor.volume(f);A(f,h),p.output.amount+=h}else{const f=p.data.map(h=>a(p.accessor)(h)).reduce((h,y)=>h+y,0);for(const h of p.data){const y=p.coupon.discount.value/100*a(p.accessor)(h)/f;A(h,y)}p.output.amount+=p.coupon.discount.value}};e.combine=p=>{const A=new Map(p.tickets.map(E=>[E.coupon.id,E])),f=p.coupons.filter(E=>A.has(E.id)===!1&&e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E})),h=[...A.values()].filter(E=>e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E.coupon})),y=[...f,...h.map(E=>E.coupon)],M=[y.filter(E=>E.restriction.exclusive===!1),...y.filter(E=>E.restriction.exclusive===!0).map(E=>[E])].filter(E=>E.length!==0);return M.map(E=>o({title:`${p.className}.combine`,accessor:p.accessor,customer:p.customer,data:p.data,coupons:E})).map((E,g)=>({coupons:M[g].filter(D=>f.some(S=>D.id===S.id)),tickets:h.filter(D=>M[g].some(S=>S.id===D.coupon.id)),entries:[...E.coupon_to_elem_dict.entries()].map(([D,S])=>[...S.entries()].map(([c,T])=>({coupon_id:D,item_id:c,amount:T}))).flat(),amount:E.amount}))}})(k||(k={}));const cr=(e,t,s)=>{const a=e.get(t);if(a)return a;const o=s();return e.set(t,o),o};var ba;(function(e){e.checkCoupon=t=>k.checkCoupon({accessor:Yn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.filterGoods=t=>k.filterItems({accessor:Yn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.combine=t=>k.combine({className:"ShoppingOrderDiscountableDiagnoser",accessor:Yn,customer:t.customer,coupons:t.coupons,tickets:t.tickets,data:t.goods}).map(s=>({...s,entries:s.entries.map(a=>({coupon_id:a.coupon_id,good_id:a.item_id,amount:a.amount}))})),e.discount=t=>k.discount({className:"ShoppingOrderDiscountableDiagnoser",accessor:Yn,customer:t.customer,coupons:t.coupons,data:t.goods})})(ba||(ba={}));const Yn={item:e=>e.commodity,volume:e=>e.volume};var lr=Object.freeze({__proto__:null,get ShoppingAdministratorDiagnoser(){return Ma},get ShoppingCartCommodityDiagnoser(){return _a},get ShoppingCartCommodityStockDiagnoser(){return F},get ShoppingCouponCriteriaDiagnoser(){return ea},get ShoppingOrderDiagnoser(){return xa},get ShoppingOrderDiscountableDiagnoser(){return ba},get ShoppingSaleDiagnoser(){return Ln},get ShoppingSaleSnapshotDiagnoser(){return Hn},get ShoppingSellerDiagnoser(){return ja}}),hr=Object.freeze({__proto__:null,shoppings:lr});async function B(e){return r.fetch(e,{...B.METADATA,template:B.METADATA.path,path:B.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/health",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/health"})(B);var ur=Object.freeze({__proto__:null,get:B});async function V(e){return r.fetch(e,{...V.METADATA,template:V.METADATA.path,path:V.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/performance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/performance"})(V);var dr=Object.freeze({__proto__:null,get:V});async function J(e){return r.fetch(e,{...J.METADATA,template:J.METADATA.path,path:J.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system"})(J);async function W(e){return r.fetch(e,{...W.METADATA,template:W.METADATA.path,path:W.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/internal_server_error",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/internal_server_error"})(W);async function K(e){return r.fetch(e,{...K.METADATA,template:K.METADATA.path,path:K.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/uncaught_exception",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/uncaught_exception"})(K);var mr=Object.freeze({__proto__:null,get:J,internal_server_error:W,uncaught_exception:K}),Ar=Object.freeze({__proto__:null,health:ur,performance:dr,system:mr});async function Q(e){return r.fetch(e,{...Q.METADATA,template:Q.METADATA.path,path:Q.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate"})(Q);async function Y(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Y.METADATA,template:Y.METADATA.path,path:Y.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/authenticate"})(Y);async function Z(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Z.METADATA,template:Z.METADATA.path,path:Z.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate/login"})(Z);var fr=Object.freeze({__proto__:null,get:Q,join:Y,login:Z});async function I(e,t){return r.fetch(e,{...I.METADATA,template:I.METADATA.path,path:I.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id/destroy",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/destroy`})(I);async function X(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...X.METADATA,template:X.METADATA.path,path:X.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/coupons"})(X);async function ee(e,t){return r.fetch(e,{...ee.METADATA,template:ee.METADATA.path,path:ee.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ee);async function te(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...te.METADATA,template:te.METADATA.path,path:te.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/coupons"})(te);async function se(e,t){return r.fetch(e,{...se.METADATA,template:se.METADATA.path,path:se.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(se);var Tr=Object.freeze({__proto__:null,at:se,create:X,destroy:I,erase:ee,index:te});async function ne(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ne.METADATA,template:ne.METADATA.path,path:ne.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/deposits"})(ne);async function ae(e,t){return r.fetch(e,{...ae.METADATA,template:ae.METADATA.path,path:ae.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ae);async function oe(e,t){return r.fetch(e,{...oe.METADATA,template:oe.METADATA.path,path:oe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(oe);async function re(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...re.METADATA,template:re.METADATA.path,path:re.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/deposits"})(re);async function pe(e,t){return r.fetch(e,{...pe.METADATA,template:pe.METADATA.path,path:pe.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(pe);var yr=Object.freeze({__proto__:null,at:ae,create:re,erase:pe,get:oe,index:ne});async function ie(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ie.METADATA,template:ie.METADATA.path,path:ie.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages/donations"})(ie);async function ce(e,t){return r.fetch(e,{...ce.METADATA,template:ce.METADATA.path,path:ce.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/donations/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/donations/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ce);async function le(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...le.METADATA,template:le.METADATA.path,path:le.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages/donations"})(le);var gr=Object.freeze({__proto__:null,at:ce,create:le,index:ie});async function he(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...he.METADATA,template:he.METADATA.path,path:he.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages"})(he);async function ue(e,t){return r.fetch(e,{...ue.METADATA,template:ue.METADATA.path,path:ue.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ue);async function de(e,t){return r.fetch(e,{...de.METADATA,template:de.METADATA.path,path:de.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(de);async function me(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...me.METADATA,template:me.METADATA.path,path:me.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages"})(me);async function Ae(e,t){return r.fetch(e,{...Ae.METADATA,template:Ae.METADATA.path,path:Ae.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ae);var Er=Object.freeze({__proto__:null,at:ue,create:me,donations:gr,erase:Ae,get:de,index:he});async function fe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fe.METADATA,template:fe.METADATA.path,path:fe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/orders"})(fe);async function Te(e,t){return r.fetch(e,{...Te.METADATA,template:Te.METADATA.path,path:Te.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Te);var Dr=Object.freeze({__proto__:null,at:Te,index:fe});async function ye(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ye.METADATA,template:ye.METADATA.path,path:ye.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(ye);async function ge(e,t,s,a){return r.fetch(e,{...ge.METADATA,template:ge.METADATA.path,path:ge.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(ge);async function Ee(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ee.METADATA,template:Ee.METADATA.path,path:Ee.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ee);async function De(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...De.METADATA,template:De.METADATA.path,path:De.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(De);var Mr=Object.freeze({__proto__:null,at:ge,create:Ee,index:ye,update:De});async function Me(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Me.METADATA,template:Me.METADATA.path,path:Me.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Me);async function je(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...je.METADATA,template:je.METADATA.path,path:je.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(je);async function Ce(e,t,s){return r.fetch(e,{...Ce.METADATA,template:Ce.METADATA.path,path:Ce.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ce);var jr=Object.freeze({__proto__:null,abridges:je,at:Ce,comments:Mr,index:Me});async function $e(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$e.METADATA,template:$e.METADATA.path,path:$e.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})($e);async function ve(e,t,s,a){return r.fetch(e,{...ve.METADATA,template:ve.METADATA.path,path:ve.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(ve);async function _e(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._e.METADATA,template:_e.METADATA.path,path:_e.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(_e);async function Se(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Se.METADATA,template:Se.METADATA.path,path:Se.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Se);var Cr=Object.freeze({__proto__:null,at:ve,create:_e,index:$e,update:Se});async function xe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xe.METADATA,template:xe.METADATA.path,path:xe.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(xe);async function be(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...be.METADATA,template:be.METADATA.path,path:be.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(be);async function Ue(e,t,s){return r.fetch(e,{...Ue.METADATA,template:Ue.METADATA.path,path:Ue.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ue);var $r=Object.freeze({__proto__:null,abridges:be,at:Ue,comments:Cr,index:xe});async function Re(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Re.METADATA,template:Re.METADATA.path,path:Re.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(Re);async function qe(e,t,s){return r.fetch(e,{...qe.METADATA,template:qe.METADATA.path,path:qe.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(qe);async function we(e,t,s){return r.fetch(e,{...we.METADATA,template:we.METADATA.path,path:we.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(we);var vr=Object.freeze({__proto__:null,at:qe,flip:we,index:Re});async function Oe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Oe.METADATA,template:Oe.METADATA.path,path:Oe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales/details"})(Oe);async function Pe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pe.METADATA,template:Pe.METADATA.path,path:Pe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales"})(Pe);async function ke(e,t){return r.fetch(e,{...ke.METADATA,template:ke.METADATA.path,path:ke.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ke);var _r=Object.freeze({__proto__:null,at:ke,details:Oe,index:Pe,questions:jr,reviews:$r,snapshots:vr});async function Fe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fe.METADATA,template:Fe.METADATA.path,path:Fe.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Fe);async function ze(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ze.METADATA,template:ze.METADATA.path,path:ze.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ze);async function Ge(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ge.METADATA,template:Ge.METADATA.path,path:Ge.path(t)},s)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/:channelCode/categories/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/merge`})(Ge);async function He(e,t){return r.fetch(e,{...He.METADATA,template:He.METADATA.path,path:He.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(He);async function Le(e,t,s){return r.fetch(e,{...Le.METADATA,template:Le.METADATA.path,path:Le.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Le);async function Ne(e,t,s){return r.fetch(e,{...Ne.METADATA,template:Ne.METADATA.path,path:Ne.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Ne);var Sr=Object.freeze({__proto__:null,at:Le,create:Fe,index:He,invert:Ne,merge:Ge,update:ze});async function Be(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Be.METADATA,template:Be.METADATA.path,path:Be.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/channels"})(Be);async function Ve(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ve.METADATA,template:Ve.METADATA.path,path:Ve.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ve);async function Je(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Je.METADATA,template:Je.METADATA.path,path:Je.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/merge"})(Je);async function We(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...We.METADATA,template:We.METADATA.path,path:We.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels"})(We);async function Ke(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ke.METADATA,template:Ke.METADATA.path,path:Ke.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/hierarchical"})(Ke);async function Qe(e,t){return r.fetch(e,{...Qe.METADATA,template:Qe.METADATA.path,path:Qe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Qe);async function Ye(e,t){return r.fetch(e,{...Ye.METADATA,template:Ye.METADATA.path,path:Ye.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Ye);var xr=Object.freeze({__proto__:null,at:Qe,categories:Sr,create:Be,get:Ye,hierarchical:Ke,index:We,merge:Je,update:Ve});async function Ze(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ze.METADATA,template:Ze.METADATA.path,path:Ze.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/sections"})(Ze);async function Ie(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ie.METADATA,template:Ie.METADATA.path,path:Ie.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/sections/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ie);async function Xe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xe.METADATA,template:Xe.METADATA.path,path:Xe.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/sections/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections/merge"})(Xe);async function et(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...et.METADATA,template:et.METADATA.path,path:et.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections"})(et);async function tt(e,t){return r.fetch(e,{...tt.METADATA,template:tt.METADATA.path,path:tt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(tt);async function st(e,t){return r.fetch(e,{...st.METADATA,template:st.METADATA.path,path:st.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(st);var br=Object.freeze({__proto__:null,at:tt,create:Ze,get:st,index:et,merge:Xe,update:Ie}),Ur=Object.freeze({__proto__:null,channels:xr,sections:br}),Rr=Object.freeze({__proto__:null,authenticate:fr,coupons:Tr,deposits:yr,mileages:Er,orders:Dr,sales:_r,systematic:Ur});async function nt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...nt.METADATA,template:nt.METADATA.path,path:nt.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/password/change",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/password/change"})(nt);var qr=Object.freeze({__proto__:null,change:nt});async function at(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...at.METADATA,template:at.METADATA.path,path:at.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/authenticate/refresh",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/refresh"})(at);async function ot(e){return r.fetch(e,{...ot.METADATA,template:ot.METADATA.path,path:ot.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate"})(ot);async function rt(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rt.METADATA,template:rt.METADATA.path,path:rt.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate"})(rt);async function pt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pt.METADATA,template:pt.METADATA.path,path:pt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/join",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/join"})(pt);async function it(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...it.METADATA,template:it.METADATA.path,path:it.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/login"})(it);async function ct(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ct.METADATA,template:ct.METADATA.path,path:ct.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/activate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/activate"})(ct);async function lt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...lt.METADATA,template:lt.METADATA.path,path:lt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/external",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/external"})(lt);var wr=Object.freeze({__proto__:null,activate:ct,create:rt,external:lt,get:ot,join:pt,login:it,password:qr,refresh:at});async function ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ht.METADATA,template:ht.METADATA.path,path:ht.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons/tickets"})(ht);async function ut(e,t){return r.fetch(e,{...ut.METADATA,template:ut.METADATA.path,path:ut.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/tickets/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/tickets/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ut);async function dt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...dt.METADATA,template:dt.METADATA.path,path:dt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/coupons/tickets"})(dt);var Or=Object.freeze({__proto__:null,at:ut,create:dt,index:ht});async function mt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...mt.METADATA,template:mt.METADATA.path,path:mt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons"})(mt);async function At(e,t){return r.fetch(e,{...At.METADATA,template:At.METADATA.path,path:At.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(At);var Pr=Object.freeze({__proto__:null,at:At,index:mt,tickets:Or});async function ft(e,t){return r.fetch(e,{...ft.METADATA,template:ft.METADATA.path,path:ft.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:chargeId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(ft);async function Tt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Tt.METADATA,template:Tt.METADATA.path,path:Tt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges/:chargeId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(Tt);var kr=Object.freeze({__proto__:null,able:ft,create:Tt});async function yt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yt.METADATA,template:yt.METADATA.path,path:yt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/charges"})(yt);async function gt(e,t){return r.fetch(e,{...gt.METADATA,template:gt.METADATA.path,path:gt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(gt);async function Et(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Et.METADATA,template:Et.METADATA.path,path:Et.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/deposits/charges"})(Et);async function Dt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dt.METADATA,template:Dt.METADATA.path,path:Dt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/deposits/charges/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Dt);async function Mt(e,t){return r.fetch(e,{...Mt.METADATA,template:Mt.METADATA.path,path:Mt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Mt);var Fr=Object.freeze({__proto__:null,at:gt,create:Et,erase:Mt,index:yt,publish:kr,update:Dt});async function jt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...jt.METADATA,template:jt.METADATA.path,path:jt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories"})(jt);async function Ct(e,t){return r.fetch(e,{...Ct.METADATA,template:Ct.METADATA.path,path:Ct.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ct);async function $t(e){return r.fetch(e,{...$t.METADATA,template:$t.METADATA.path,path:$t.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories/balance"})($t);var zr=Object.freeze({__proto__:null,at:Ct,balance:$t,index:jt}),Gr=Object.freeze({__proto__:null,charges:Fr,histories:zr});async function vt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...vt.METADATA,template:vt.METADATA.path,path:vt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/mileages/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories"})(vt);async function _t(e,t){return r.fetch(e,{..._t.METADATA,template:_t.METADATA.path,path:_t.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/mileages/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(_t);async function St(e){return r.fetch(e,{...St.METADATA,template:St.METADATA.path,path:St.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories/balance"})(St);var Hr=Object.freeze({__proto__:null,at:_t,balance:St,index:vt}),Lr=Object.freeze({__proto__:null,histories:Hr});async function xt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xt.METADATA,template:xt.METADATA.path,path:xt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities"})(xt);async function bt(e,t){return r.fetch(e,{...bt.METADATA,template:bt.METADATA.path,path:bt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(bt);async function Ut(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ut.METADATA,template:Ut.METADATA.path,path:Ut.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/carts/commodities"})(Ut);async function Rt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rt.METADATA,template:Rt.METADATA.path,path:Rt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/carts/commodities/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Rt);async function qt(e,t){return r.fetch(e,{...qt.METADATA,template:qt.METADATA.path,path:qt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(qt);async function wt(e,t){return r.fetch(e,{...wt.METADATA,template:wt.METADATA.path,path:wt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(wt);async function Ot(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ot.METADATA,template:Ot.METADATA.path,path:Ot.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities/discountable"})(Ot);var Nr=Object.freeze({__proto__:null,at:bt,create:Ut,discountable:Ot,erase:wt,index:xt,replica:qt,update:Rt}),Br=Object.freeze({__proto__:null,commodities:Nr});async function Pt(e,t,s){return r.fetch(e,{...Pt.METADATA,template:Pt.METADATA.path,path:Pt.path(t,s)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:orderId/goods/:id/confirm",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/goods/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/confirm`})(Pt);var Vr=Object.freeze({__proto__:null,confirm:Pt});async function kt(e,t){return r.fetch(e,{...kt.METADATA,template:kt.METADATA.path,path:kt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:orderId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(kt);async function Ft(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ft.METADATA,template:Ft.METADATA.path,path:Ft.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/:orderId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(Ft);async function zt(e,t){return r.fetch(e,{...zt.METADATA,template:zt.METADATA.path,path:zt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:orderId/publish",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(zt);var Jr=Object.freeze({__proto__:null,able:kt,cancel:zt,create:Ft});async function Gt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Gt.METADATA,template:Gt.METADATA.path,path:Gt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders"})(Gt);async function Ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ht.METADATA,template:Ht.METADATA.path,path:Ht.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/direct",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders/direct"})(Ht);async function Lt(e,t){return r.fetch(e,{...Lt.METADATA,template:Lt.METADATA.path,path:Lt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Lt);async function Nt(e,t){return r.fetch(e,{...Nt.METADATA,template:Nt.METADATA.path,path:Nt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id/price",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/price`})(Nt);async function Bt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Bt.METADATA,template:Bt.METADATA.path,path:Bt.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders/:id/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discountable`})(Bt);async function Vt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Vt.METADATA,template:Vt.METADATA.path,path:Vt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:id/discount",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discount`})(Vt);async function Jt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Jt.METADATA,template:Jt.METADATA.path,path:Jt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/orders"})(Jt);async function Wt(e,t){return r.fetch(e,{...Wt.METADATA,template:Wt.METADATA.path,path:Wt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Wt);var Wr=Object.freeze({__proto__:null,at:Wt,create:Gt,direct:Ht,discount:Vt,discountable:Bt,erase:Lt,goods:Vr,index:Jt,price:Nt,publish:Jr});async function Kt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Kt.METADATA,template:Kt.METADATA.path,path:Kt.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Kt);async function Qt(e,t,s,a){return r.fetch(e,{...Qt.METADATA,template:Qt.METADATA.path,path:Qt.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Qt);async function Yt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Yt.METADATA,template:Yt.METADATA.path,path:Yt.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Yt);async function Zt(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zt.METADATA,template:Zt.METADATA.path,path:Zt.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Zt);var Kr=Object.freeze({__proto__:null,at:Qt,create:Yt,index:Kt,update:Zt});async function It(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...It.METADATA,template:It.METADATA.path,path:It.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(It);async function Xt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xt.METADATA,template:Xt.METADATA.path,path:Xt.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Xt);async function es(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...es.METADATA,template:es.METADATA.path,path:es.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(es);async function ts(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ts.METADATA,template:ts.METADATA.path,path:ts.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(ts);async function ss(e,t,s){return r.fetch(e,{...ss.METADATA,template:ss.METADATA.path,path:ss.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ss);var Qr=Object.freeze({__proto__:null,abridges:ts,at:ss,comments:Kr,create:It,index:es,update:Xt});async function ns(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ns.METADATA,template:ns.METADATA.path,path:ns.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(ns);async function as(e,t,s,a){return r.fetch(e,{...as.METADATA,template:as.METADATA.path,path:as.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(as);async function os(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...os.METADATA,template:os.METADATA.path,path:os.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(os);async function rs(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rs.METADATA,template:rs.METADATA.path,path:rs.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(rs);var Yr=Object.freeze({__proto__:null,at:as,create:os,index:ns,update:rs});async function ps(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ps.METADATA,template:ps.METADATA.path,path:ps.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(ps);async function is(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...is.METADATA,template:is.METADATA.path,path:is.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(is);async function cs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cs.METADATA,template:cs.METADATA.path,path:cs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(cs);async function ls(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ls.METADATA,template:ls.METADATA.path,path:ls.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(ls);async function hs(e,t,s){return r.fetch(e,{...hs.METADATA,template:hs.METADATA.path,path:hs.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(hs);var Zr=Object.freeze({__proto__:null,abridges:ls,at:hs,comments:Yr,create:ps,index:cs,update:is});async function us(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...us.METADATA,template:us.METADATA.path,path:us.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(us);async function ds(e,t,s){return r.fetch(e,{...ds.METADATA,template:ds.METADATA.path,path:ds.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ds);async function ms(e,t,s){return r.fetch(e,{...ms.METADATA,template:ms.METADATA.path,path:ms.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(ms);var Ir=Object.freeze({__proto__:null,at:ds,flip:ms,index:us});async function As(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...As.METADATA,template:As.METADATA.path,path:As.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales/details"})(As);async function fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fs.METADATA,template:fs.METADATA.path,path:fs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales"})(fs);async function Ts(e,t){return r.fetch(e,{...Ts.METADATA,template:Ts.METADATA.path,path:Ts.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ts);var Xr=Object.freeze({__proto__:null,at:Ts,details:As,index:fs,questions:Qr,reviews:Zr,snapshots:Ir});async function ys(e,t){return r.fetch(e,{...ys.METADATA,template:ys.METADATA.path,path:ys.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(ys);async function gs(e,t,s){return r.fetch(e,{...gs.METADATA,template:gs.METADATA.path,path:gs.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(gs);async function Es(e,t,s){return r.fetch(e,{...Es.METADATA,template:Es.METADATA.path,path:Es.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Es);var ep=Object.freeze({__proto__:null,at:gs,index:ys,invert:Es});async function Ds(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ds.METADATA,template:Ds.METADATA.path,path:Ds.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels"})(Ds);async function Ms(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ms.METADATA,template:Ms.METADATA.path,path:Ms.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels/hierarchical"})(Ms);async function js(e,t){return r.fetch(e,{...js.METADATA,template:js.METADATA.path,path:js.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(js);async function Cs(e,t){return r.fetch(e,{...Cs.METADATA,template:Cs.METADATA.path,path:Cs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Cs);var tp=Object.freeze({__proto__:null,at:js,categories:ep,get:Cs,hierarchical:Ms,index:Ds});async function $s(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$s.METADATA,template:$s.METADATA.path,path:$s.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/sections"})($s);async function vs(e,t){return r.fetch(e,{...vs.METADATA,template:vs.METADATA.path,path:vs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(vs);async function _s(e,t){return r.fetch(e,{..._s.METADATA,template:_s.METADATA.path,path:_s.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(_s);var sp=Object.freeze({__proto__:null,at:vs,get:_s,index:$s}),np=Object.freeze({__proto__:null,channels:tp,sections:sp}),ap=Object.freeze({__proto__:null,authenticate:wr,carts:Br,coupons:Pr,deposits:Gr,mileages:Lr,orders:Wr,sales:Xr,systematic:np});async function Ss(e){return r.fetch(e,{...Ss.METADATA,template:Ss.METADATA.path,path:Ss.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate"})(Ss);async function xs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xs.METADATA,template:xs.METADATA.path,path:xs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/authenticate"})(xs);async function bs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bs.METADATA,template:bs.METADATA.path,path:bs.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate/login"})(bs);var op=Object.freeze({__proto__:null,get:Ss,join:xs,login:bs});async function Us(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Us.METADATA,template:Us.METADATA.path,path:Us.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/journeys",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys`})(Us);async function Rs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rs.METADATA,template:Rs.METADATA.path,path:Rs.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id/complete",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/complete`})(Rs);async function qs(e,t,s){return r.fetch(e,{...qs.METADATA,template:qs.METADATA.path,path:qs.path(t,s)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(qs);var rp=Object.freeze({__proto__:null,complete:Rs,create:Us,erase:qs});async function ws(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ws.METADATA,template:ws.METADATA.path,path:ws.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/shippers",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/shippers`})(ws);var pp=Object.freeze({__proto__:null,create:ws});async function Os(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Os.METADATA,template:Os.METADATA.path,path:Os.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries"})(Os);async function Ps(e,t){return r.fetch(e,{...Ps.METADATA,template:Ps.METADATA.path,path:Ps.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/deliveries/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ps);async function ks(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ks.METADATA,template:ks.METADATA.path,path:ks.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/deliveries"})(ks);async function Fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fs.METADATA,template:Fs.METADATA.path,path:Fs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries/incompletes",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries/incompletes"})(Fs);var ip=Object.freeze({__proto__:null,at:Ps,create:ks,incompletes:Fs,index:Os,journeys:rp,shippers:pp});async function zs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zs.METADATA,template:zs.METADATA.path,path:zs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/coupons"})(zs);async function Gs(e,t){return r.fetch(e,{...Gs.METADATA,template:Gs.METADATA.path,path:Gs.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Gs);async function Hs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Hs.METADATA,template:Hs.METADATA.path,path:Hs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/coupons"})(Hs);async function Ls(e,t){return r.fetch(e,{...Ls.METADATA,template:Ls.METADATA.path,path:Ls.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ls);var cp=Object.freeze({__proto__:null,at:Ls,create:zs,erase:Gs,index:Hs});async function Ns(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ns.METADATA,template:Ns.METADATA.path,path:Ns.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/orders"})(Ns);async function Bs(e,t){return r.fetch(e,{...Bs.METADATA,template:Bs.METADATA.path,path:Bs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Bs);var lp=Object.freeze({__proto__:null,at:Bs,index:Ns});async function Vs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Vs.METADATA,template:Vs.METADATA.path,path:Vs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Vs);async function Js(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Js.METADATA,template:Js.METADATA.path,path:Js.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Js);var hp=Object.freeze({__proto__:null,create:Vs,update:Js});async function Ws(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ws.METADATA,template:Ws.METADATA.path,path:Ws.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ws);async function Ks(e,t,s,a){return r.fetch(e,{...Ks.METADATA,template:Ks.METADATA.path,path:Ks.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ks);async function Qs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qs.METADATA,template:Qs.METADATA.path,path:Qs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Qs);async function Ys(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ys.METADATA,template:Ys.METADATA.path,path:Ys.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ys);var up=Object.freeze({__proto__:null,at:Ks,create:Qs,index:Ws,update:Ys});async function Zs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zs.METADATA,template:Zs.METADATA.path,path:Zs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Zs);async function Is(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Is.METADATA,template:Is.METADATA.path,path:Is.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Is);async function Xs(e,t,s){return r.fetch(e,{...Xs.METADATA,template:Xs.METADATA.path,path:Xs.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Xs);var dp=Object.freeze({__proto__:null,abridges:Is,answer:hp,at:Xs,comments:up,index:Zs});async function en(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...en.METADATA,template:en.METADATA.path,path:en.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(en);async function tn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tn.METADATA,template:tn.METADATA.path,path:tn.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(tn);var mp=Object.freeze({__proto__:null,create:en,update:tn});async function sn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...sn.METADATA,template:sn.METADATA.path,path:sn.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(sn);async function nn(e,t,s,a){return r.fetch(e,{...nn.METADATA,template:nn.METADATA.path,path:nn.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(nn);async function an(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...an.METADATA,template:an.METADATA.path,path:an.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(an);async function on(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...on.METADATA,template:on.METADATA.path,path:on.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(on);var Ap=Object.freeze({__proto__:null,at:nn,create:an,index:sn,update:on});async function rn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rn.METADATA,template:rn.METADATA.path,path:rn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(rn);async function pn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pn.METADATA,template:pn.METADATA.path,path:pn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(pn);async function cn(e,t,s){return r.fetch(e,{...cn.METADATA,template:cn.METADATA.path,path:cn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(cn);var fp=Object.freeze({__proto__:null,abridges:pn,answer:mp,at:cn,comments:Ap,index:rn});async function ln(e,t,s){return r.fetch(e,{...ln.METADATA,template:ln.METADATA.path,path:ln.path(t,s)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/replica`})(ln);async function hn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...hn.METADATA,template:hn.METADATA.path,path:hn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(hn);async function un(e,t,s){return r.fetch(e,{...un.METADATA,template:un.METADATA.path,path:un.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(un);async function dn(e,t,s){return r.fetch(e,{...dn.METADATA,template:dn.METADATA.path,path:dn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(dn);var Tp=Object.freeze({__proto__:null,at:un,flip:dn,index:hn,replica:ln});async function mn(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...mn.METADATA,template:mn.METADATA.path,path:mn.path(t,s,a)},o)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(mn);async function An(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...An.METADATA,template:An.METADATA.path,path:An.path(t,s,a)},o)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(An);async function fn(e,t,s,a,o,i){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fn.METADATA,template:fn.METADATA.path,path:fn.path(t,s,a,o)},i)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(fn);async function Tn(e,t,s,a,o){return r.fetch(e,{...Tn.METADATA,template:Tn.METADATA.path,path:Tn.path(t,s,a,o)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(Tn);var yp=Object.freeze({__proto__:null,create:An,erase:Tn,index:mn,update:fn}),gp=Object.freeze({__proto__:null,supplements:yp}),Ep=Object.freeze({__proto__:null,stocks:gp});async function yn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yn.METADATA,template:yn.METADATA.path,path:yn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/sales"})(yn);async function gn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gn.METADATA,template:gn.METADATA.path,path:gn.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(gn);async function En(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...En.METADATA,template:En.METADATA.path,path:En.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/open",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/open`})(En);async function Dn(e,t){return r.fetch(e,{...Dn.METADATA,template:Dn.METADATA.path,path:Dn.path(t)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(Dn);async function Mn(e,t){return r.fetch(e,{...Mn.METADATA,template:Mn.METADATA.path,path:Mn.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/pause",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/pause`})(Mn);async function jn(e,t){return r.fetch(e,{...jn.METADATA,template:jn.METADATA.path,path:jn.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/suspend",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/suspend`})(jn);async function Cn(e,t){return r.fetch(e,{...Cn.METADATA,template:Cn.METADATA.path,path:Cn.path(t)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/restore",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/restore`})(Cn);async function $n(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$n.METADATA,template:$n.METADATA.path,path:$n.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales/details"})($n);async function vn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...vn.METADATA,template:vn.METADATA.path,path:vn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales"})(vn);async function _n(e,t){return r.fetch(e,{..._n.METADATA,template:_n.METADATA.path,path:_n.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(_n);var Dp=Object.freeze({__proto__:null,at:_n,create:yn,details:$n,index:vn,open:En,pause:Mn,questions:dp,replica:Dn,restore:Cn,reviews:fp,snapshots:Tp,suspend:jn,units:Ep,update:gn});async function Sn(e,t){return r.fetch(e,{...Sn.METADATA,template:Sn.METADATA.path,path:Sn.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Sn);async function xn(e,t,s){return r.fetch(e,{...xn.METADATA,template:xn.METADATA.path,path:xn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(xn);async function bn(e,t,s){return r.fetch(e,{...bn.METADATA,template:bn.METADATA.path,path:bn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(bn);var Mp=Object.freeze({__proto__:null,at:xn,index:Sn,invert:bn});async function Un(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Un.METADATA,template:Un.METADATA.path,path:Un.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels"})(Un);async function Rn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rn.METADATA,template:Rn.METADATA.path,path:Rn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels/hierarchical"})(Rn);async function qn(e,t){return r.fetch(e,{...qn.METADATA,template:qn.METADATA.path,path:qn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(qn);async function wn(e,t){return r.fetch(e,{...wn.METADATA,template:wn.METADATA.path,path:wn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(wn);var jp=Object.freeze({__proto__:null,at:qn,categories:Mp,get:wn,hierarchical:Rn,index:Un});async function On(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...On.METADATA,template:On.METADATA.path,path:On.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/sections"})(On);async function Pn(e,t){return r.fetch(e,{...Pn.METADATA,template:Pn.METADATA.path,path:Pn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Pn);async function kn(e,t){return r.fetch(e,{...kn.METADATA,template:kn.METADATA.path,path:kn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(kn);var Cp=Object.freeze({__proto__:null,at:Pn,get:kn,index:On}),$p=Object.freeze({__proto__:null,channels:jp,sections:Cp}),vp=Object.freeze({__proto__:null,authenticate:op,coupons:cp,deliveries:ip,orders:lp,sales:Dp,systematic:$p}),_p=Object.freeze({__proto__:null,admins:Rr,customers:ap,sellers:vp}),Sp=Object.freeze({__proto__:null,monitors:Ar,shoppings:_p}),Ia=Object.freeze({__proto__:null,HttpError:so.HttpError,diagnosers:hr,functional:Sp});const xp=e=>{const[t,s]=q.useState(null);if(q.useEffect(()=>{(async()=>{s(to.application({model:"chatgpt",document:eo.convert(await fetch("https://raw.githubusercontent.com/samchon/shopping-backend/refs/heads/master/packages/api/customer.swagger.json").then(o=>o.json()))}))})().catch(console.error)},[]),t===null)return j.jsxs("div",{children:[j.jsx("h2",{children:"Loading Swagger document"}),j.jsx("hr",{}),j.jsx("p",{children:"Wait for a moment please."}),j.jsx("p",{children:"Loading Swagger document..."})]});const a=new wo({model:"chatgpt",vendor:{api:e.api,model:"gpt-4o-mini"},controllers:[{protocol:"http",name:"main",application:t,connection:e.connection}],config:{locale:e.locale}});return j.jsx(Oo,{agent:a,title:"Agentica Shopping Chatbot"})},bp=()=>{const[e,t]=q.useState(""),[s,a]=q.useState("gpt-4o-mini"),[o,i]=q.useState(window.navigator.language),[p,A]=q.useState("John Doe"),[f,h]=q.useState("821012345678"),[y,M]=q.useState(!1),[x,E]=q.useState(null),g=async()=>{M(!0);const D={host:"https://shopping-be.wrtn.ai"};await Ia.functional.shoppings.customers.authenticate.create(D,{channel_code:"samchon",external_user:null,href:window.location.href,referrer:window.document.referrer}),await Ia.functional.shoppings.customers.authenticate.activate(D,{mobile:f,name:p}),E({api:new zo({apiKey:e,dangerouslyAllowBrowser:!0}),connection:D,name:p,mobile:f,locale:o})};return j.jsx("div",{style:{width:"100%",height:"100%",overflow:x!==null?void 0:"auto"},children:x!==null?j.jsx(xp,{...x}):j.jsxs(Po,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[j.jsx(In,{variant:"h4",children:"Shopping AI Chatbot"}),j.jsx("br",{}),j.jsx(Go,{}),j.jsx("br",{}),"Demonstration of Agentica with Shopping Backend API.",j.jsx("br",{}),j.jsx("br",{}),j.jsx(Jo,{href:"https://github.com/samchon/shopping-backend",target:"_blank",children:"https://github.com/samchon/shopping-backend"}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(In,{variant:"h6",children:" OpenAI Configuration "}),j.jsx(Qn,{onChange:D=>t(D.target.value),defaultValue:e,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:e.length===0}),j.jsx("br",{}),j.jsxs(ko,{defaultValue:s,onChange:(D,S)=>a(S),style:{paddingLeft:15},children:[j.jsx(Ba,{control:j.jsx(Va,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),j.jsx(Ba,{control:j.jsx(Va,{}),label:"GPT-4o",value:"gpt-4o"})]}),j.jsx("br",{}),j.jsx(In,{variant:"h6",children:" Membership Information "}),j.jsx("br",{}),j.jsx(Qn,{onChange:D=>i(D.target.value),defaultValue:o,label:"Locale",variant:"outlined",error:o.length===0}),j.jsx("br",{}),j.jsx(Qn,{onChange:D=>A(D.target.value),defaultValue:p,label:"Name",variant:"outlined",error:p.length===0}),j.jsx("br",{}),j.jsx(Qn,{onChange:D=>h(D.target.value),defaultValue:f,label:"Mobile",variant:"outlined",error:f.length===0}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(Fo,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:y||e.length===0||o.length===0||p.length===0||f.length===0,onClick:()=>g(),children:y?"Starting...":"Start AI Chatbot"})]})})};Eo(window.document.getElementById("root")).render(j.jsx(bp,{}));